:root{
  --navy:#0d3558;--navy2:#174c74;--green:#25863b;--green2:#176b39;--green3:#0d5a32;
  --mint:#eef7ef;--cream:#fbfcf7;--paper:#fff;--text:#173148;--muted:#667681;--line:#dfe8df;
  --orange:#e57a2c;--blue:#347cb7;--purple:#7b55a7;--red:#d75343;--yellow:#efb52f;
  --shadow:0 16px 46px rgba(20,55,48,.10);--soft:0 8px 24px rgba(20,55,48,.08);
  --bottom:70px;
}
*{box-sizing:border-box}html{background:var(--cream);scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#fbfdf9,#f6faf7);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%}.app-shell{min-height:100dvh;padding-bottom:var(--bottom)}
.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,4vw,54px);position:sticky;top:0;z-index:80;background:rgba(252,253,249,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(25,78,53,.09)}
.brand{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--green3);padding:4px}.brand-mountain{width:37px;height:37px;border-radius:12px;background:linear-gradient(145deg,#0d3d62,#1c7f4e);display:grid;place-items:center;color:white;font-size:19px;clip-path:polygon(50% 2%,98% 98%,2% 98%)}.brand-copy{display:flex;flex-direction:column;text-align:left;line-height:.9}.brand-copy strong{font-family:Georgia,serif;font-size:25px;font-style:italic}.brand-copy small{font-size:8px;letter-spacing:.24em;font-weight:900;margin-top:5px;color:#3e6a54}.top-actions{display:flex;align-items:center;gap:9px}.star-pill,.progress-pill{height:38px;border:1px solid #dce6dd;border-radius:13px;background:white;display:flex;align-items:center;gap:6px;padding:0 12px;font-size:13px;box-shadow:0 4px 14px rgba(30,64,48,.04)}.star-pill span{color:var(--yellow);font-size:19px}.star-pill b,.progress-pill b{font-size:15px;color:var(--navy)}.progress-pill span{color:#789087}.icon-btn{width:38px;height:38px;border:1px solid #dce6dd;background:white;border-radius:13px;color:var(--green2);font-size:22px}
main{width:min(1260px,94vw);margin:auto}.screen{display:none;padding:34px 0 32px}.screen.active{display:block;animation:screenIn .22s ease both}@keyframes screenIn{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}.eyebrow{margin:0 0 7px;color:var(--green2);text-transform:uppercase;font-weight:950;letter-spacing:.12em;font-size:11px}.section-head,.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.section-head h2,.page-head h2{font-family:Georgia,serif;color:var(--navy);font-size:clamp(35px,5vw,54px);margin:0;letter-spacing:-.03em}.page-head p,.section-head p{color:var(--muted);margin:6px 0 0;max-width:650px}.text-btn{border:0;background:white;border:1px solid var(--line);border-radius:12px;padding:10px 13px;color:var(--navy);font-weight:850}.primary-btn,.secondary-btn,.green-action{border:0;border-radius:13px;padding:12px 17px;font-weight:900}.primary-btn,.green-action{background:linear-gradient(145deg,#2d973f,#1d7536);color:white;box-shadow:0 7px 20px rgba(38,130,61,.20)}.secondary-btn{background:white;color:var(--navy);border:1px solid #ceddd4}

/* Home */
.home-screen{padding-top:22px}.home-hero{height:clamp(330px,48vw,520px);border-radius:28px;overflow:hidden;position:relative;box-shadow:var(--shadow);isolation:isolate}.home-hero-img{width:100%;height:100%;object-fit:cover;display:block}.home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,34,35,.82) 0%,rgba(3,34,35,.48) 45%,rgba(3,34,35,.05) 78%)}.home-hero-copy{position:absolute;left:clamp(24px,6vw,74px);top:50%;transform:translateY(-50%);color:white;max-width:560px}.hero-kicker{font-size:12px;letter-spacing:.23em;font-weight:950;color:#d9f4d8;margin:0 0 8px}.home-hero h1{font-family:Georgia,serif;font-style:italic;font-size:clamp(58px,8vw,96px);line-height:.79;letter-spacing:-.04em;margin:0}.home-hero h1 span{font-family:inherit;font-style:normal;font-size:.55em;text-transform:uppercase;letter-spacing:.07em}.home-hero-copy>p:not(.hero-kicker){font-size:clamp(15px,2vw,19px);line-height:1.5;max-width:530px;margin:22px 0}.hero-start{border:0;border-radius:999px;background:linear-gradient(145deg,#37a947,#23843a);color:white;padding:14px 28px;font-weight:950;letter-spacing:.05em;display:flex;gap:10px;align-items:center;box-shadow:0 12px 25px rgba(18,103,46,.30)}.home-dashboard{background:white;border:1px solid var(--line);border-radius:28px;margin-top:18px;padding:22px;box-shadow:var(--soft)}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.welcome-row h2{font-family:Georgia,serif;color:var(--navy);font-size:29px;margin:0}.welcome-row p{margin:5px 0 0;color:var(--muted)}.big-star{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:15px;padding:9px 13px}.big-star span{font-size:22px;color:var(--yellow)}.big-star b{font-size:18px}.path-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin-top:18px}.path-card{position:relative;border:0;border-radius:18px;padding:0;overflow:hidden;background:white;min-height:180px;box-shadow:var(--soft);text-align:left;border:1px solid rgba(10,40,50,.07)}.path-card img{width:100%;height:145px;object-fit:cover;display:block}.path-tag{position:absolute;top:0;left:0;right:0;color:white;font-weight:900;padding:7px 10px;font-size:13px;background:var(--green2)}.animals .path-tag{background:var(--orange)}.places .path-tag{background:var(--blue)}.transport .path-tag{background:#2c6d93}.activities .path-tag{background:var(--purple)}.path-card strong{position:absolute;bottom:8px;left:9px;background:rgba(11,39,34,.82);color:#ffd657;padding:5px 8px;border-radius:9px;font-size:12px}.today-card{margin-top:18px;border:1px solid var(--line);border-radius:18px;padding:15px 16px;display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;background:#fcfdfb}.today-card strong{font-size:16px;color:var(--navy)}.goal-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.goal-bar{height:8px;border-radius:999px;background:#e5ece7;overflow:hidden}.goal-bar i{display:block;width:0;height:100%;background:var(--green2);border-radius:inherit;transition:.3s}.goal-progress b{font-size:13px}.gift-btn{border:0;border-radius:13px;background:#ffe196;font-size:22px;width:48px;height:48px}.bonus-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.bonus-card{border:1px solid var(--line);background:white;border-radius:16px;padding:14px;text-align:left;display:grid;grid-template-columns:auto 1fr;column-gap:9px;box-shadow:0 5px 16px rgba(22,65,49,.04)}.bonus-card>span{grid-row:1/3;font-size:25px}.bonus-card b{color:var(--navy)}.bonus-card small{color:var(--muted);margin-top:2px}

/* Bottom nav */
.bottom-nav{position:fixed;z-index:90;bottom:0;left:50%;transform:translateX(-50%);width:100%;height:var(--bottom);background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border-top:1px solid #dfe8e1;display:flex;align-items:stretch;justify-content:center;padding:4px max(8px,calc((100vw - 950px)/2));box-shadow:0 -6px 30px rgba(18,57,45,.06)}.bottom-nav button{border:0;background:transparent;color:#6f7a78;min-width:115px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-weight:800;border-radius:13px}.bottom-nav button span{font-size:21px;line-height:1}.bottom-nav button small{font-size:10px}.bottom-nav button.active-nav{color:var(--green2);background:#eff7ef}

/* immersive shared */
body.immersive #globalTopbar{display:none}.immersive-screen{height:calc(100dvh - var(--bottom));padding:8px 0 7px;overflow:hidden}.immersive-toolbar{height:52px;display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:10px}.round-back{width:39px;height:39px;border:0;border-radius:50%;background:var(--navy);color:white;font-size:30px;line-height:1;display:grid;place-items:center}.toolbar-title{text-align:center}.toolbar-title strong{display:block;font-family:Georgia,serif;color:var(--navy);font-size:24px;line-height:1.05}.toolbar-title small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.toolbar-score{justify-self:end;min-width:69px;height:37px;border-radius:999px;background:white;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:5px;font-size:14px}.toolbar-score span{color:var(--yellow);font-weight:900}.small-score span{font-size:11px;color:var(--muted)}

/* Learn: one-screen card */
.learn-screen{max-width:980px;margin:auto}.category-strip{height:39px;display:flex;gap:7px;align-items:center;overflow-x:auto;scrollbar-width:none;padding:0 2px 5px}.category-strip::-webkit-scrollbar{display:none}.category-pill{white-space:nowrap;border:1px solid #d8e5da;background:white;color:#536b5c;border-radius:999px;padding:7px 13px;font-size:11px;font-weight:900}.category-pill.active{background:var(--green2);color:white;border-color:var(--green2)}.learn-card{height:calc(100dvh - var(--bottom) - 106px);min-height:320px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-rows:minmax(145px,53%) minmax(120px,1fr) 39px}.learn-image-wrap{position:relative;overflow:hidden;background:#eaf3ec}.learn-image-wrap img{width:100%;height:100%;display:block;object-fit:cover}.category-badge{position:absolute;top:12px;left:12px;background:rgba(31,130,59,.92);color:white;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:900;box-shadow:0 5px 15px rgba(0,0,0,.13)}.heart-btn{position:absolute;top:10px;right:11px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:white;text-shadow:0 0 0 var(--green2);font-size:27px;display:grid;place-items:center}.heart-btn.known{background:var(--green2);color:white;text-shadow:none}.learn-content{display:grid;grid-template-columns:1fr 310px;gap:18px;padding:13px 18px 10px;align-items:stretch;min-height:0}.word-main{min-width:0;display:flex;flex-direction:column;justify-content:center}.word-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.word-title-row h2{font-family:Georgia,serif;color:var(--navy);font-size:clamp(36px,5.2vw,61px);line-height:.9;margin:0;text-transform:uppercase;letter-spacing:-.04em}.word-title-row p{color:var(--green2);font-family:Georgia,serif;font-style:italic;font-size:clamp(22px,2.6vw,31px);margin:4px 0 0}.word-counter{background:#edf7e9;color:var(--green2);border-radius:999px;padding:6px 9px;font-weight:900;font-size:11px;white-space:nowrap}.example-box{margin-top:8px;border:1px solid #d9e3d9;background:#fbfcf8;border-radius:14px;padding:10px 13px;font-family:Georgia,serif;font-size:clamp(21px,2.4vw,29px);font-weight:700;color:var(--navy);line-height:1.2}.example-box strong{color:var(--green2)}.audio-panel{display:flex;flex-direction:column;justify-content:center;gap:7px}.listen-big{border:0;border-radius:18px;background:linear-gradient(145deg,#2f9b43,#217c38);color:white;min-height:60px;display:grid;grid-template-columns:50px 1fr;align-items:center;text-align:left;padding:8px 14px;box-shadow:0 9px 24px rgba(27,117,53,.23)}.audio-icon{font-size:28px}.listen-big strong{font-size:20px;display:block}.listen-big small{font-size:11px;opacity:.9}.sentence-audio{height:34px;border:1px solid #cfe0d2;background:#f1f8ef;color:var(--green3);border-radius:12px;font-size:12px;font-weight:900;display:flex;gap:7px;align-items:center;justify-content:center}.audio-mini-row{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.audio-mini-row button{height:31px;border:1px solid #d9e4dc;border-radius:10px;background:white;color:#415e52;font-size:10px;font-weight:850}.recording-area{font-size:10px;color:#527063;background:#f3f8f4;padding:5px 8px;border-radius:8px;max-height:45px;overflow:auto}.recording-area audio{max-width:100%;height:28px}.learn-nav{border-top:1px solid var(--line);display:grid;grid-template-columns:120px 1fr 120px;align-items:center;gap:6px;padding:0 9px}.learn-nav>button{border:0;background:transparent;color:var(--navy);font-size:12px;font-weight:900;height:100%}.word-dots{display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}.word-dot{width:7px;height:7px;border:0;border-radius:50%;background:#dce5df;padding:0;flex:0 0 auto}.word-dot.current{background:var(--navy);transform:scale(1.25)}.word-dot.known{background:var(--green2)}

/* Games hub */
.score-card{min-width:110px;background:white;border:1px solid var(--line);border-radius:17px;padding:12px;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:7px;box-shadow:var(--soft)}.score-card span{font-size:28px;color:var(--yellow);grid-row:1/3}.score-card b{font-size:23px;line-height:1;color:var(--navy)}.score-card small{color:var(--muted);font-size:10px}.game-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.game-tile{border:1px solid var(--line);background:white;border-radius:22px;padding:18px;text-align:left;min-height:170px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:10px;box-shadow:var(--soft);transition:.2s transform,.2s box-shadow}.game-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.game-icon{width:53px;height:53px;border-radius:17px;background:#e7f4e8;color:var(--green2);display:grid;place-items:center;font-weight:950;font-size:24px}.puzzle-tile .game-icon{background:#e7f1fb;color:var(--blue)}.matchline-tile .game-icon{background:#f1eafa;color:var(--purple)}.unscramble-tile .game-icon{background:#fff0df;color:var(--orange)}.listen-tile .game-icon{background:#e8f4f7;color:#16728c}.blank-tile .game-icon{background:#f1f5e4;color:#6e7d1d}.tf-tile .game-icon{background:#fcebea;color:var(--red)}.quiz-tile .game-icon{background:#fff6d9;color:#a57a00}.game-tile b{display:block;color:var(--navy);font-size:18px}.game-tile small{display:block;color:var(--muted);margin-top:5px;line-height:1.35}.game-tile i{grid-column:1/-1;justify-self:end;color:var(--green2);font-style:normal;font-size:12px;font-weight:900}.bonus-games{margin-top:24px;border:1px solid var(--line);border-radius:20px;background:white;padding:17px}.bonus-games h3{font-family:Georgia,serif;color:var(--navy);margin:0 0 12px}.bonus-games>div{display:flex;gap:10px;flex-wrap:wrap}.bonus-games button{border:1px solid #d6e2da;background:#f7faf7;border-radius:12px;padding:11px 14px;font-weight:850;color:#345b49}

/* Game screens */
.game-screen{max-width:900px;margin:auto}.game-panel{height:calc(100dvh - var(--bottom) - 68px);min-height:300px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:16px;overflow:hidden}.compact-feedback{min-height:23px;text-align:center;font-size:12px;font-weight:850;color:var(--muted);padding:4px}.feedback.good{color:#1d7a34}.feedback.bad{color:#b34738}.centre-action{display:block;margin:8px auto 0}.game-button-row{display:flex;justify-content:center;gap:7px}.game-button-row button,.line-actions button,.ws-status button,.puzzle-top button{border:1px solid #d5e2d8;background:#f9fbf9;border-radius:11px;padding:8px 11px;color:#426151;font-size:11px;font-weight:900}

/* wordsearch */
.wordsearch-panel{display:grid;grid-template-rows:34px 1fr auto 26px;gap:7px}.ws-status{display:flex;justify-content:space-between;align-items:center}.ws-status span{font-weight:900;color:var(--green2);font-size:12px}.wordsearch-grid{margin:auto;display:grid;grid-template-columns:repeat(10,1fr);width:min(100%,520px);aspect-ratio:1;border:1px solid #dbe5dc;border-radius:16px;overflow:hidden;background:#fbfdf9}.ws-cell{border:0;background:transparent;font-weight:900;color:#132e48;font-size:clamp(13px,2.4vw,21px);display:grid;place-items:center;position:relative}.ws-cell:hover{background:#edf6ed}.ws-cell.start{background:#ffe9bf}.ws-cell.found{background:#dff2df;color:#186a30}.ws-cell.found::after{content:"";position:absolute;inset:5px;border-radius:999px;border:2px solid rgba(42,143,62,.30)}.ws-list{display:grid;grid-template-columns:repeat(4,1fr);gap:5px 12px;width:min(100%,650px);margin:auto}.ws-word{font-size:11px;font-weight:900;color:#536a60;display:flex;gap:5px;align-items:center}.ws-word::before{content:"•";color:var(--green2);font-size:17px}.ws-word.found{text-decoration:line-through;opacity:.55}

/* puzzle */
.puzzle-panel{display:grid;grid-template-rows:42px 1fr 26px;gap:8px}.puzzle-top{display:flex;align-items:center;justify-content:space-between}.puzzle-top strong{display:block;color:var(--navy);font-size:18px}.puzzle-top small{color:var(--muted);font-size:10px}.puzzle-board{margin:auto;width:min(100%,680px);height:100%;max-height:calc(100dvh - var(--bottom) - 150px);aspect-ratio:3/2;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;border-radius:17px;overflow:hidden;background:#dbe8df;border:5px solid #e8f0ea}.puzzle-tile{border:0;padding:0;background-size:300% 300%;background-repeat:no-repeat;min-width:0;min-height:0;position:relative}.puzzle-tile.selected{outline:4px solid #f1b12d;outline-offset:-4px;z-index:2}.puzzle-tile.correct-piece::after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.55);pointer-events:none}

/* draw a line */
.line-panel{display:grid;grid-template-rows:1fr 44px;gap:7px}.line-stage{position:relative;height:100%;display:grid;grid-template-columns:1fr 1fr;gap:clamp(70px,12vw,150px);padding:7px min(8vw,65px)}.match-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.match-svg line{stroke:var(--green2);stroke-width:4;stroke-linecap:round}.match-col{display:grid;grid-template-rows:repeat(4,1fr);gap:8px;position:relative;z-index:2}.image-match-btn,.word-match-btn{border:2px solid transparent;border-radius:15px;background:#f8fbf8;min-height:0;position:relative;box-shadow:0 4px 12px rgba(20,58,44,.05)}.image-match-btn{overflow:hidden;padding:0}.image-match-btn img{width:100%;height:100%;object-fit:cover;display:block}.image-match-btn::after,.word-match-btn::before{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:#1f7938;top:50%;transform:translateY(-50%)}.image-match-btn::after{right:-22px}.word-match-btn::before{left:-22px}.word-match-btn{font-weight:900;color:var(--navy);font-size:clamp(12px,2vw,18px)}.image-match-btn.selected,.word-match-btn.selected{border-color:#efb52f}.image-match-btn.matched,.word-match-btn.matched{border-color:#69ad77;background:#edf8ee}.line-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.line-actions .feedback{flex:1}

/* unscramble */
.unscramble-panel{display:grid;grid-template-rows:minmax(100px,37%) auto auto auto 40px 24px;align-items:center;gap:7px;text-align:center}.round-game-image{width:min(290px,54vw);height:100%;max-height:220px;object-fit:cover;border-radius:18px;margin:auto;box-shadow:var(--soft)}.scrambled-word{font-size:clamp(24px,5vw,40px);font-weight:950;letter-spacing:.22em;color:var(--navy);text-transform:uppercase}.answer-slots{display:flex;gap:5px;justify-content:center;flex-wrap:wrap}.answer-slot{width:clamp(27px,4vw,38px);height:clamp(34px,5vw,43px);border:1px solid #cbd9d0;border-radius:8px;background:#fbfdfa;display:grid;place-items:center;font-weight:950;color:var(--green2);font-size:20px}.letter-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}.letter-btn{min-width:38px;height:38px;border:0;border-radius:9px;background:var(--green2);color:white;font-weight:950;text-transform:uppercase}.letter-btn.used{opacity:.23;pointer-events:none}

/* listen */
.listen-panel{display:grid;grid-template-rows:auto 8px 1fr 26px auto;gap:8px;align-items:center}.listen-orb{margin:auto;border:0;border-radius:999px;background:linear-gradient(145deg,#2f9b43,#1d7737);color:white;padding:10px 24px;display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;box-shadow:0 9px 23px rgba(30,121,52,.20)}.listen-orb>span{grid-row:1/3;font-size:25px}.listen-orb strong{font-size:16px}.listen-orb small{font-size:9px;opacity:.85}.listen-progress{width:min(260px,60%);height:5px;background:#e0e8e1;border-radius:999px;overflow:hidden;margin:auto}.listen-progress i{display:block;width:25%;height:100%;background:var(--green2);transition:.3s}.picture-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:9px;width:min(100%,650px);height:100%;margin:auto}.picture-choice{border:2px solid transparent;border-radius:16px;overflow:hidden;padding:0;background:#f5faf6;min-height:0}.picture-choice img{width:100%;height:100%;object-fit:cover;display:block}.picture-choice.correct{border-color:#44a55a;box-shadow:0 0 0 3px #dff2e2}.picture-choice.wrong{border-color:#d86454;opacity:.7}

/* blank */
.blank-panel{display:grid;grid-template-rows:minmax(90px,35%) auto auto 26px auto;gap:9px;align-items:center;text-align:center}.blank-image{width:min(430px,72vw);height:100%;object-fit:cover;border-radius:18px;margin:auto}.blank-sentence{font-family:Georgia,serif;font-size:clamp(22px,4vw,35px);line-height:1.3;color:var(--navy);padding:13px 18px;background:#fbfdf9;border:1px solid #dce6de;border-radius:16px}.blank-sentence .blank-gap{display:inline-block;min-width:130px;border-bottom:3px solid #849a8e;color:var(--green2);font-weight:900}.blank-choices{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.blank-choice{border:1px solid #cad9d0;background:white;border-radius:12px;padding:10px 16px;color:var(--navy);font-weight:900}.blank-choice.correct{background:#e1f3e3;border-color:#61a66d}.blank-choice.wrong{background:#fdece9;border-color:#d47263}

/* true false */
.tf-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:20px}.tf-number{background:#edf6ee;color:var(--green2);border-radius:999px;padding:6px 12px;font-size:11px;font-weight:900}.tf-statement{width:min(100%,680px);border:1px solid #dce5dd;border-radius:20px;background:#fbfcf9;padding:clamp(22px,4vw,42px);font-family:Georgia,serif;font-size:clamp(28px,5vw,48px);font-weight:700;line-height:1.16;color:var(--navy)}.tf-buttons{display:flex;gap:14px}.tf-buttons button{border:0;border-radius:14px;color:white;padding:14px 25px;font-weight:950;min-width:140px}.true-btn{background:#2b983f}.false-btn{background:#e25a46}.tf-buttons button.correct{outline:4px solid #b9e1bf}.tf-buttons button.wrong{opacity:.55}

/* quiz */
.quiz-panel{display:flex;align-items:center;justify-content:center}.quiz-panel>div{width:min(100%,720px)}.quiz-progress{height:7px;background:#e2e9e3;border-radius:999px;overflow:hidden}.quiz-progress i{display:block;width:10%;height:100%;background:var(--green2);transition:.3s}.quiz-type{text-align:center;color:var(--muted);font-size:12px;font-weight:800}.quiz-image{display:block;width:min(400px,65vw);height:min(230px,28vh);object-fit:cover;border-radius:18px;margin:7px auto}.quiz-question{text-align:center;font-family:Georgia,serif;font-size:clamp(26px,4.6vw,42px);font-weight:700;color:var(--navy);margin:14px auto}.quiz-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.quiz-choice{border:1px solid #ccdad1;background:white;border-radius:13px;padding:13px;font-weight:900;color:var(--navy)}.quiz-choice.correct{background:#e2f3e4;border-color:#62a96f}.quiz-choice.wrong{background:#fdebe8;border-color:#d67263}.quiz-result{text-align:center}.confetti{color:var(--yellow);font-size:25px;letter-spacing:.3em}.quiz-result h3{font-family:Georgia,serif;color:var(--green2);font-size:45px;margin:6px 0}.quiz-result p{color:var(--muted)}.result-ring{width:145px;height:145px;border-radius:50%;border:13px solid #dfeee0;border-top-color:var(--green2);margin:16px auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.result-ring strong{font-size:24px;color:var(--navy)}.result-ring small{font-size:10px;color:var(--muted)}.quiz-result button{margin:4px;border:1px solid #d5e1d8;background:white;border-radius:12px;padding:10px 16px;font-weight:900;color:var(--navy)}.quiz-result .green-action{background:var(--green2);color:white;border:0}

/* progress */
.progress-overview{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.overall-card,.points-card,.category-progress-card{background:white;border:1px solid var(--line);border-radius:23px;box-shadow:var(--soft)}.overall-card{padding:20px;display:flex;align-items:center;gap:22px}.big-progress-ring{--p:0%;width:120px;height:120px;border-radius:50%;background:conic-gradient(var(--green2) var(--p),#e4ebe5 0);display:grid;place-items:center;position:relative;flex:0 0 auto}.big-progress-ring::after{content:"";position:absolute;width:86px;height:86px;background:white;border-radius:50%}.big-progress-ring strong{z-index:1;color:var(--navy);font-size:25px}.overall-card h3{font-family:Georgia,serif;color:var(--navy);font-size:26px;margin:0 0 7px}.overall-card p{margin:0;color:var(--muted);line-height:1.5}.points-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;text-align:center}.points-card span{font-size:32px}.points-card strong{font-size:28px;color:var(--navy)}.points-card small{color:var(--muted)}.category-progress-card{margin-top:16px;padding:20px}.category-progress-card h3{font-family:Georgia,serif;color:var(--navy);margin:0 0 15px}.cat-row{display:grid;grid-template-columns:110px 1fr 46px;align-items:center;gap:11px;margin:12px 0;font-size:12px}.cat-row strong{color:#435e52}.cat-bar{height:8px;border-radius:999px;background:#e4ebe5;overflow:hidden}.cat-bar i{display:block;height:100%;background:var(--green2);border-radius:inherit}.cat-row b{text-align:right;color:var(--navy)}.progress-actions{margin-top:14px;text-align:right}

/* achievements */
.achievement-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.achievement{background:white;border:1px solid var(--line);border-radius:22px;padding:20px;text-align:center;box-shadow:var(--soft);min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:.48;filter:grayscale(.7)}.achievement.unlocked{opacity:1;filter:none}.achievement-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#edf6ee;font-size:34px;box-shadow:inset 0 0 0 7px white,0 0 0 1px #d9e5dc}.achievement h3{font-family:Georgia,serif;color:var(--navy);margin:12px 0 4px}.achievement p{color:var(--muted);font-size:12px;margin:0}.achievement .unlock{margin-top:9px;font-size:10px;font-weight:950;color:var(--green2)}

/* Booklet dialogue route retained */
.content-screen{max-width:1180px;margin:auto}.activity-layout,.route-layout{display:grid;grid-template-columns:330px 1fr;gap:20px;align-items:start}.source-panel,.activity-panel,.town-wrap,.route-panel{background:white;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--soft)}.source-panel img{width:100%;display:block;border-radius:12px}.source-panel p{color:var(--muted);font-size:11px;margin:8px 0 0}.word-bank{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}.word-chip{border:0;border-radius:999px;background:#eaf5ec;color:#236a38;padding:7px 10px;font-weight:850;font-size:12px}.word-chip.used{opacity:.35}.dialogue-lines{display:grid;gap:7px}.dialogue-row{display:grid;grid-template-columns:70px 1fr;gap:7px;align-items:start;font-size:13px}.speaker{font-weight:950;color:var(--navy)}.speaker.agent{color:var(--green2)}.blank-select{border:1px solid #c8d9cf;border-radius:7px;padding:3px 5px;background:white}.blank-select.correct{background:#e7f5e8;border-color:#6bab76}.blank-select.wrong{background:#ffefec;border-color:#d27a6d}.feedback{min-height:28px;padding:6px;font-weight:850;font-size:12px}.activity-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.town-map{position:relative;aspect-ratio:1;background:linear-gradient(90deg,transparent 46%,#d1d8d4 46%,#d1d8d4 54%,transparent 54%),linear-gradient(transparent 46%,#d1d8d4 46%,#d1d8d4 54%,transparent 54%),#eef6ec;border-radius:17px;overflow:hidden}.place{position:absolute;background:white;border:1px solid #d2ded7;border-radius:10px;padding:6px 8px;font-size:10px;font-weight:850;color:var(--navy);box-shadow:0 3px 10px rgba(22,60,47,.08)}.museum{left:9%;top:9%}.park{left:42%;top:8%}.tourist{right:7%;top:8%}.bank{left:8%;top:43%}.market{left:42%;top:42%}.hotel{right:7%;top:42%}.restaurant{left:41%;bottom:8%}.bus{right:6%;bottom:8%}.traveller{position:absolute;left:13%;bottom:14%;color:#e15d44;font-size:24px;transition:.35s}.route-panel{display:flex;flex-direction:column;gap:11px}.route-step{font-family:Georgia,serif;font-size:28px;color:var(--navy);font-weight:700}.route-hint{color:var(--muted);font-size:12px}.route-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.route-choice{border:1px solid #cfded5;background:white;border-radius:12px;padding:11px;font-weight:850;color:var(--navy)}.page-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.page-gallery figure{margin:0;background:white;padding:10px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--soft)}.page-gallery img{width:100%;border-radius:10px;display:block}.page-gallery figcaption{padding:8px 4px 2px;color:var(--navy);font-weight:850}

/* Responsive */
@media(max-width:1050px){.path-grid{grid-template-columns:repeat(3,1fr)}.game-grid{grid-template-columns:repeat(3,1fr)}.achievement-grid{grid-template-columns:repeat(3,1fr)}.learn-content{grid-template-columns:1fr 280px}.progress-overview{grid-template-columns:2fr 1fr}.progress-overview .points-card:last-child{grid-column:2}.activity-layout,.route-layout{grid-template-columns:290px 1fr}}
@media(max-width:780px){:root{--bottom:64px}main{width:min(96vw,1260px)}.topbar{height:58px;padding:0 11px}.brand-copy strong{font-size:20px}.brand-mountain{width:31px;height:31px}.progress-pill{display:none}.home-screen{padding-top:11px}.home-hero{height:360px;border-radius:22px}.home-hero-shade{background:linear-gradient(0deg,rgba(3,34,35,.78),rgba(3,34,35,.13))}.home-hero-copy{left:22px;right:22px;top:auto;bottom:25px;transform:none}.home-hero h1{font-size:67px}.home-hero-copy>p:not(.hero-kicker){margin:13px 0;font-size:14px}.home-dashboard{padding:14px;border-radius:20px}.path-grid{grid-template-columns:repeat(2,1fr)}.path-card:last-child{grid-column:1/-1}.bonus-row{grid-template-columns:1fr}.today-card{grid-template-columns:1fr auto}.goal-progress{grid-column:1/-1;grid-row:2}.gift-btn{grid-column:2;grid-row:1}.bottom-nav{padding:3px 4px}.bottom-nav button{min-width:0;flex:1}.bottom-nav button span{font-size:18px}.game-grid{grid-template-columns:repeat(2,1fr)}.game-tile{min-height:155px;padding:14px}.achievement-grid{grid-template-columns:repeat(2,1fr)}.progress-overview{grid-template-columns:1fr 1fr}.overall-card{grid-column:1/-1}.progress-overview .points-card:last-child{grid-column:auto}.activity-layout,.route-layout{grid-template-columns:1fr}.source-panel{display:none}.page-gallery{grid-template-columns:1fr}.immersive-toolbar{height:48px}.toolbar-title strong{font-size:21px}.learn-card{height:calc(100dvh - var(--bottom) - 99px);grid-template-rows:minmax(128px,49%) 1fr 37px}.learn-content{grid-template-columns:1fr 230px;gap:10px;padding:9px 11px 6px}.word-title-row h2{font-size:clamp(32px,7vw,48px)}.word-title-row p{font-size:23px}.example-box{font-size:clamp(18px,3.8vw,24px);padding:8px 10px}.listen-big{min-height:50px}.listen-big strong{font-size:17px}.audio-icon{font-size:24px}.listen-big{grid-template-columns:42px 1fr}.learn-nav{grid-template-columns:83px 1fr 83px}.learn-nav>button span{display:none}.ws-list{grid-template-columns:repeat(2,1fr)}.line-stage{padding:6px 40px;gap:70px}.word-match-btn{font-size:13px}.quiz-choices{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.home-hero{height:330px}.home-hero h1{font-size:58px}.welcome-row h2{font-size:25px}.path-grid{gap:9px}.path-card{min-height:150px}.path-card img{height:120px}.game-grid{grid-template-columns:1fr 1fr;gap:9px}.game-tile{min-height:140px;grid-template-columns:45px 1fr}.game-icon{width:43px;height:43px;font-size:19px}.game-tile b{font-size:15px}.game-tile small{font-size:10px}.achievement-grid{grid-template-columns:1fr 1fr;gap:9px}.achievement{padding:12px;min-height:165px}.progress-overview{grid-template-columns:1fr}.progress-overview .points-card:last-child{grid-column:auto}.overall-card{flex-direction:column;text-align:center}.cat-row{grid-template-columns:78px 1fr 38px}.learn-content{grid-template-columns:1fr 175px}.word-title-row h2{font-size:34px}.word-title-row p{font-size:20px}.word-counter{display:none}.example-box{font-size:18px}.listen-big{min-height:47px;padding:6px 9px}.audio-mini-row button span{display:none}.audio-mini-row{grid-template-columns:repeat(3,1fr)}.sentence-audio b{font-size:10px}.game-panel{padding:10px}.wordsearch-grid{width:min(100%,390px)}.ws-cell{font-size:14px}.ws-list{gap:2px 8px}.ws-word{font-size:9px}.line-stage{padding:4px 30px;gap:48px}.image-match-btn::after{right:-17px}.word-match-btn::before{left:-17px}.tf-buttons button{min-width:120px;padding:12px 18px}.quiz-choices{grid-template-columns:1fr}.bottom-nav button small{font-size:9px}}
@media(max-height:650px){.immersive-toolbar{height:42px}.round-back{width:34px;height:34px;font-size:25px}.toolbar-title strong{font-size:19px}.toolbar-title small{display:none}.category-strip{height:31px;padding-bottom:3px}.category-pill{padding:4px 10px;font-size:9px}.learn-card{height:calc(100dvh - var(--bottom) - 76px);grid-template-rows:minmax(120px,48%) 1fr 31px;border-radius:18px}.learn-content{padding:6px 10px;gap:9px}.word-title-row h2{font-size:33px}.word-title-row p{font-size:18px;margin-top:1px}.example-box{margin-top:4px;font-size:17px;padding:6px 9px}.audio-panel{gap:4px}.listen-big{min-height:42px;border-radius:13px;padding:4px 8px;grid-template-columns:36px 1fr}.audio-icon{font-size:20px}.listen-big strong{font-size:15px}.listen-big small{font-size:8px}.sentence-audio{height:26px}.audio-mini-row button{height:25px}.learn-nav{height:31px}.learn-nav>button{font-size:10px}.game-panel{height:calc(100dvh - var(--bottom) - 51px);padding:10px}.wordsearch-panel{grid-template-rows:28px 1fr auto 20px}.ws-status button{padding:5px 8px}.puzzle-panel{grid-template-rows:34px 1fr 20px}.puzzle-board{max-height:calc(100dvh - var(--bottom) - 104px)}.listen-panel{grid-template-rows:auto 5px 1fr 20px auto;gap:5px}.listen-orb{padding:5px 18px}.blank-panel{grid-template-rows:minmax(70px,31%) auto auto 20px auto;gap:5px}.blank-sentence{padding:7px 12px;font-size:20px}.blank-choice{padding:7px 12px}.tf-panel{gap:10px}.tf-statement{padding:19px;font-size:28px}.quiz-question{font-size:27px;margin:7px auto}.quiz-choice{padding:8px}.quiz-image{height:min(150px,25vh)} }

/* V5 fit-and-finish: keep the word-search square inside its available row. */
.wordsearch-grid{
  height:100%;
  width:auto;
  max-width:100%;
  max-height:520px;
  aspect-ratio:1;
  justify-self:center;
}
@media(max-height:650px){.example-box{font-size:18px}}
.word-title-row h2.long-word{font-size:clamp(27px,3.8vw,43px);line-height:.96;letter-spacing:-.035em}
@media(max-width:780px){.word-title-row h2.long-word{font-size:clamp(25px,4.8vw,34px)}}
@media(max-height:650px){.word-title-row h2.long-word{font-size:25px;line-height:.95}}
@media(max-height:650px){
  .learn-card{height:calc(100dvh - var(--bottom) - 88px);min-height:0;grid-template-rows:minmax(105px,42%) 1fr 30px}
  .game-panel{height:calc(100dvh - var(--bottom) - 55px);min-height:0}
}
@media(max-height:650px){
  .unscramble-panel{grid-template-rows:minmax(68px,29%) auto auto auto 29px 17px;gap:3px}
  .unscramble-panel .round-game-image{width:min(210px,38vw);max-height:105px;border-radius:13px}
  .unscramble-panel .scrambled-word{font-size:27px;line-height:1;letter-spacing:.18em}
  .unscramble-panel .answer-slot{width:30px;height:32px;font-size:16px}
  .unscramble-panel .letter-btn{min-width:33px;height:33px}
  .unscramble-panel .game-button-row button{padding:5px 9px}

  .quiz-panel{align-items:stretch;padding:7px 10px}
  .quiz-panel>div{height:100%}
  #quizPlay{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:0}
  #quizPlay .quiz-progress{height:5px;flex:0 0 5px}
  #quizPlay .quiz-type{font-size:10px;line-height:1.1;margin:0}
  #quizPlay .quiz-image{width:min(210px,42vw);height:72px;margin:1px auto;border-radius:11px;flex:0 0 72px}
  #quizPlay .quiz-question{font-size:21px;line-height:1.05;margin:3px auto}
  #quizPlay .quiz-choices{gap:4px;grid-template-columns:repeat(2,1fr)}
  #quizPlay .quiz-choice{padding:5px 7px;font-size:11px;border-radius:9px}
  #quizPlay .compact-feedback{min-height:15px;height:15px;padding:0;font-size:10px}
  #quizPlay .centre-action{margin:1px auto 0;padding:6px 12px;border-radius:9px;font-size:11px}
  .quiz-result{display:flex;flex-direction:column;align-items:center;justify-content:center}
  .quiz-result .confetti{font-size:17px}
  .quiz-result h3{font-size:28px;margin:2px 0}
  .quiz-result p{margin:2px 0;font-size:11px}
  .quiz-result .result-ring{width:92px;height:92px;border-width:8px;margin:6px auto}
  .quiz-result .result-ring strong{font-size:18px}
  .quiz-result button{padding:6px 11px;margin:2px;font-size:11px}
}
[hidden]{display:none!important}
@media(max-height:650px) and (min-width:600px){
  .wordsearch-panel{grid-template-columns:minmax(220px,1fr) 220px;grid-template-rows:28px 1fr 20px;column-gap:14px;row-gap:5px}
  .wordsearch-panel .ws-status{grid-column:1/-1;grid-row:1}
  .wordsearch-panel .wordsearch-grid{grid-column:1;grid-row:2;height:100%;width:auto;max-height:100%;max-width:100%}
  .wordsearch-panel .ws-list{grid-column:2;grid-row:2;width:100%;grid-template-columns:1fr;align-content:center;gap:2px;margin:0}
  .wordsearch-panel .ws-word{font-size:10px}
  .wordsearch-panel .compact-feedback{grid-column:1/-1;grid-row:3}
}

/* V5.1 — compact vocabulary layout for laptop / classroom screens */
.learn-content{
  align-items:start;
}
.word-main,.audio-panel{
  justify-content:flex-start;
}
.example-box{
  font-size:clamp(23px,2.7vw,31px);
  line-height:1.15;
}

@media(max-height:650px) and (min-height:481px){
  .learn-card{
    grid-template-rows:minmax(175px,59%) minmax(108px,1fr) 30px;
  }
  .learn-content{
    padding:8px 11px 5px;
    gap:10px;
  }
  .word-title-row h2{font-size:38px}
  .word-title-row p{font-size:20px}
  .example-box{
    margin-top:5px;
    font-size:22px;
    padding:7px 10px;
    line-height:1.08;
  }
  .listen-big{
    min-height:48px;
    padding:5px 10px;
    grid-template-columns:38px 1fr;
  }
  .audio-icon{font-size:22px}
  .listen-big strong{font-size:17px}
  .listen-big small{font-size:9px}
  .sentence-audio{height:28px;font-size:11px}
  .audio-mini-row button{height:27px;font-size:9px}
}

@media(max-height:480px){
  .learn-card{
    height:calc(100dvh - var(--bottom) - 82px);
    grid-template-rows:minmax(118px,48%) 1fr 27px;
  }
  .learn-content{
    grid-template-columns:1fr 205px;
    padding:5px 8px 3px;
    gap:7px;
  }
  .word-title-row h2{font-size:29px}
  .word-title-row p{font-size:16px}
  .example-box{
    margin-top:3px;
    font-size:17px;
    padding:5px 7px;
    line-height:1.05;
  }
  .listen-big{min-height:38px;padding:3px 7px;grid-template-columns:31px 1fr;border-radius:11px}
  .audio-icon{font-size:18px}
  .listen-big strong{font-size:13px}
  .listen-big small{display:none}
  .sentence-audio{height:23px;font-size:9px}
  .audio-mini-row button{height:22px;font-size:8px}
  .learn-nav{height:27px}
}


/* V5.8 — tighter one-screen layout for classroom laptop screens */
body{overflow-x:hidden}
.learn-screen{height:calc(100dvh - var(--bottom));display:grid;grid-template-rows:auto auto 1fr;gap:6px}
.learn-card{height:100%;min-height:0;grid-template-rows:minmax(150px,52%) minmax(110px,1fr) 34px}
.learn-image-wrap{min-height:0}
.learn-content{grid-template-columns:minmax(0,1fr) clamp(220px,29vw,310px);padding:10px 14px 8px;gap:14px}
.word-main{justify-content:flex-start;padding-top:1px}
.word-title-row{align-items:flex-start}
.word-title-row h2{font-size:clamp(34px,4.5vw,56px)}
.word-title-row p{font-size:clamp(20px,2.3vw,28px)}
.example-box{margin-top:6px;padding:8px 11px;font-size:clamp(21px,2.5vw,28px);line-height:1.12}
.audio-panel{gap:5px}
.listen-big{min-height:54px;padding:6px 11px;grid-template-columns:40px 1fr}
.audio-icon{font-size:23px}
.listen-big strong{font-size:18px}
.listen-big small{font-size:9px}
.sentence-audio{height:30px}
.audio-mini-row button{height:28px}
.learn-nav{padding:0 8px;height:34px}
.word-dots{gap:5px}

@media(max-height:760px){
  .immersive-screen{padding:6px 0 5px}
  .immersive-toolbar{height:44px}
  .round-back{width:35px;height:35px;font-size:26px}
  .toolbar-title strong{font-size:20px}
  .toolbar-title small{font-size:10px;margin-top:1px}
  .category-strip{height:32px;padding-bottom:2px}
  .category-pill{padding:5px 10px;font-size:9px}
  .learn-screen{gap:4px}
  .learn-card{grid-template-rows:minmax(130px,50%) minmax(98px,1fr) 30px;border-radius:20px}
  .learn-content{padding:8px 10px 6px;gap:10px;grid-template-columns:minmax(0,1fr) 245px}
  .word-title-row h2{font-size:36px;line-height:.92}
  .word-title-row p{font-size:19px}
  .word-counter{padding:5px 8px;font-size:10px}
  .example-box{font-size:20px;line-height:1.08;padding:7px 9px;margin-top:5px}
  .audio-panel{gap:4px}
  .listen-big{min-height:46px;padding:4px 9px;grid-template-columns:36px 1fr;border-radius:14px}
  .audio-icon{font-size:21px}
  .listen-big strong{font-size:16px}
  .listen-big small{font-size:8px}
  .sentence-audio{height:27px;font-size:10px}
  .audio-mini-row{gap:4px}
  .audio-mini-row button{height:25px;font-size:9px}
  .recording-area{font-size:9px;padding:4px 6px;max-height:36px}
  .recording-area audio{height:24px}
  .learn-nav{height:30px;padding:0 6px}
  .learn-nav>button{font-size:10px}
}

@media(max-height:650px){
  .learn-screen{gap:3px}
  .learn-card{height:100%;grid-template-rows:minmax(120px,47%) minmax(92px,1fr) 28px;border-radius:18px}
  .learn-content{grid-template-columns:minmax(0,1fr) 220px;padding:6px 8px 4px;gap:8px}
  .word-title-row h2{font-size:31px}
  .word-title-row p{font-size:17px}
  .example-box{font-size:17px;padding:5px 7px;margin-top:4px}
  .listen-big{min-height:40px;padding:3px 7px;grid-template-columns:31px 1fr}
  .audio-icon{font-size:18px}
  .listen-big strong{font-size:14px}
  .listen-big small{display:none}
  .sentence-audio{height:24px;font-size:9px}
  .audio-mini-row button{height:22px;font-size:8px}
  .learn-nav{height:28px}
}

@media(max-width:900px){
  .games-screen .page-head,.progress-screen .page-head,.achievements-screen .page-head,.content-screen .section-head{margin-bottom:16px}
}

@media(max-width:780px){
  .learn-screen{gap:4px}
  .learn-card{grid-template-rows:minmax(128px,49%) minmax(112px,1fr) 31px}
  .learn-content{grid-template-columns:minmax(0,1fr) 215px;padding:8px 10px 5px;gap:8px}
}

@media(max-width:640px){
  .learn-content{grid-template-columns:1fr 170px}
}

@media(max-width:520px){
  .learn-card{grid-template-rows:minmax(126px,48%) minmax(115px,1fr) 31px}
  .learn-content{grid-template-columns:1fr 160px;padding:7px 9px 5px;gap:7px}
}


/* V5.9 — sharper visuals, better icons, stronger one-screen fit */
body.immersive .app-shell{height:100dvh;overflow:hidden}
body.immersive main{height:calc(100dvh - var(--bottom));overflow:hidden}
.home-hero{height:clamp(250px,31vw,380px)}
.home-hero-img{object-position:center center}
.home-hero-copy{max-width:510px}
.home-hero-copy>p:not(.hero-kicker){max-width:460px}
.path-card img,.learn-image-wrap img{object-position:center center}

.brand-mountain{clip-path:none;border-radius:12px}
.brand-mountain svg,.nav-ico svg,.feature-ico svg,.inline-ico svg,.game-icon svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.brand-mountain svg{width:22px;height:22px}
.gift-btn,.bonus-card>span,.bonus-games button .inline-ico,.points-card .inline-ico{display:grid;place-items:center}
.feature-ico{width:25px;height:25px;color:var(--green2)}
.gift-btn{display:grid;place-items:center}
.gift-btn .feature-ico{width:24px;height:24px;color:#946400}
.inline-ico{width:18px;height:18px;display:inline-grid;vertical-align:-3px;margin-right:6px;color:currentColor}
.inline-ico.large{width:27px;height:27px;margin-right:0;color:var(--green2)}
.nav-ico{width:22px;height:22px;display:grid;place-items:center}
.bottom-nav button span.nav-ico{font-size:0}
.game-icon{font-size:0;padding:12px}
.bonus-card>span{font-size:0}

.learn-screen{height:calc(100dvh - var(--bottom) - 4px);display:grid;grid-template-rows:40px 30px 1fr;gap:2px}
.immersive-toolbar{height:40px}
.round-back{width:34px;height:34px;font-size:24px}
.toolbar-title strong{font-size:18px}
.toolbar-title small{font-size:10px;margin-top:1px}
.toolbar-score{height:32px;min-width:64px;font-size:12px}
.category-strip{height:30px;padding:0 1px 1px}
.category-pill{padding:5px 10px;font-size:9px}
.learn-card{height:100%;min-height:0;border-radius:20px;grid-template-rows:minmax(110px,43%) minmax(88px,1fr) 28px}
.learn-content{grid-template-columns:minmax(0,1fr) 220px;padding:6px 8px 4px;gap:8px}
.word-main,.audio-panel{justify-content:flex-start}
.word-title-row h2{font-size:31px;line-height:.92}
.word-title-row p{font-size:17px;margin-top:2px}
.word-counter{padding:5px 8px;font-size:10px}
.example-box{margin-top:4px;padding:5px 8px;font-size:17px;line-height:1.06;border-radius:12px}
.audio-panel{gap:4px}
.listen-big{min-height:40px;padding:4px 8px;grid-template-columns:32px 1fr;border-radius:14px}
.audio-icon{font-size:19px}
.listen-big strong{font-size:14px}
.listen-big small{display:none}
.sentence-audio{height:24px;font-size:9px;border-radius:10px}
.audio-mini-row{gap:4px}
.audio-mini-row button{height:22px;font-size:8px;border-radius:9px}
.recording-area{font-size:8px;padding:4px 6px;max-height:32px}
.recording-area audio{height:22px}
.learn-nav{height:28px;padding:0 6px;grid-template-columns:84px 1fr 84px}
.learn-nav>button{font-size:10px}
.word-dot{width:6px;height:6px}

@media(min-height:760px){
  .learn-screen{grid-template-rows:44px 32px 1fr;gap:4px}
  .immersive-toolbar{height:44px}
  .toolbar-title strong{font-size:20px}
  .toolbar-score{height:34px}
  .category-strip{height:32px}
  .learn-card{grid-template-rows:minmax(128px,47%) minmax(96px,1fr) 30px}
  .learn-content{grid-template-columns:minmax(0,1fr) 245px;padding:8px 10px 6px;gap:10px}
  .word-title-row h2{font-size:36px}
  .word-title-row p{font-size:19px}
  .example-box{font-size:20px;padding:7px 9px}
  .listen-big{min-height:46px;padding:5px 9px;grid-template-columns:36px 1fr}
  .audio-icon{font-size:21px}
  .listen-big strong{font-size:16px}
  .sentence-audio{height:27px;font-size:10px}
  .audio-mini-row button{height:25px;font-size:9px}
  .learn-nav{height:30px}
}
@media(max-width:780px){
  .home-hero{height:300px}
  .learn-screen{height:calc(100dvh - var(--bottom) - 2px);grid-template-rows:42px 31px 1fr;gap:3px}
  .learn-card{grid-template-rows:minmax(116px,45%) minmax(96px,1fr) 29px}
  .learn-content{grid-template-columns:minmax(0,1fr) 188px;padding:6px 8px 4px;gap:7px}
  .word-title-row h2{font-size:30px}
  .word-title-row p{font-size:17px}
  .example-box{font-size:16px}
  .listen-big{min-height:38px;padding:3px 7px;grid-template-columns:30px 1fr}
  .sentence-audio{height:23px}
  .audio-mini-row button{height:21px}
  .bottom-nav button{gap:3px}
}
@media(max-width:520px){
  .learn-content{grid-template-columns:1fr 150px}
  .word-title-row h2{font-size:28px}
  .word-title-row p{font-size:15px}
  .example-box{font-size:15px;line-height:1.04}
  .word-counter{display:none}
  .listen-big strong{font-size:13px}
}
@media(max-height:620px){
  .home-hero{height:230px}
  .learn-screen{grid-template-rows:38px 28px 1fr;gap:2px}
  .immersive-toolbar{height:38px}
  .toolbar-title strong{font-size:17px}
  .toolbar-score{height:30px}
  .category-strip{height:28px}
  .category-pill{padding:4px 9px;font-size:8px}
  .learn-card{grid-template-rows:minmax(102px,42%) minmax(86px,1fr) 27px}
  .learn-content{grid-template-columns:minmax(0,1fr) 205px;padding:5px 7px 4px;gap:6px}
  .word-title-row h2{font-size:28px}
  .word-title-row p{font-size:15px}
  .example-box{font-size:15px;padding:5px 7px;margin-top:3px}
  .listen-big{min-height:35px;grid-template-columns:28px 1fr;padding:3px 6px}
  .audio-icon{font-size:17px}
  .listen-big strong{font-size:13px}
  .sentence-audio{height:22px}
  .audio-mini-row button{height:20px;font-size:8px}
  .learn-nav{height:27px}
}


/* V5.10 — smaller vocabulary photo, larger teaching text, automatic listening flow */
.learn-card{grid-template-rows:minmax(92px,34%) minmax(0,1fr)}
.learn-image-wrap{border-bottom:1px solid var(--line)}
.learn-image-wrap img{object-fit:cover;object-position:center 48%}
.learn-content{grid-template-columns:minmax(0,1fr) 235px;padding:10px 14px 9px;gap:14px;align-items:start}
.word-main{padding-top:2px}
.word-title-row h2{font-size:clamp(42px,5.4vw,64px);line-height:.9}
.word-title-row p{font-size:clamp(24px,3vw,34px);line-height:1;margin-top:5px}
.word-counter{font-size:12px;padding:7px 10px}
.example-box{font-size:clamp(25px,3vw,34px);line-height:1.08;padding:10px 12px;margin-top:9px}
.audio-panel{gap:6px;padding-top:2px}
.listen-big{min-height:54px;grid-template-columns:40px 1fr;padding:7px 10px}
.audio-icon{width:27px;height:27px;font-size:0;display:grid;place-items:center}
.audio-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.listen-big strong{font-size:18px}
.listen-big small{display:block;font-size:9px;opacity:.92;margin-top:1px}
.listen-big:disabled{opacity:.86;cursor:default}
.listen-big.is-listening{box-shadow:0 0 0 3px rgba(47,155,67,.16),0 9px 24px rgba(27,117,53,.23)}
.sentence-audio{height:30px;font-size:10px}
.audio-mini-row button{height:28px;font-size:9px}
.learn-nav{display:none!important}

@media(max-height:700px){
  .learn-card{grid-template-rows:minmax(88px,32%) minmax(0,1fr)}
  .learn-content{grid-template-columns:minmax(0,1fr) 220px;padding:8px 11px 7px;gap:11px}
  .word-title-row h2{font-size:40px}
  .word-title-row p{font-size:23px}
  .word-counter{font-size:10px;padding:5px 8px}
  .example-box{font-size:24px;padding:8px 10px;margin-top:7px}
  .listen-big{min-height:48px;grid-template-columns:36px 1fr;padding:5px 9px}
  .audio-icon{width:24px;height:24px}
  .listen-big strong{font-size:16px}
  .listen-big small{font-size:8px}
  .sentence-audio{height:27px}
  .audio-mini-row button{height:25px}
}
@media(max-height:580px){
  .learn-card{grid-template-rows:minmax(78px,29%) minmax(0,1fr)}
  .learn-content{grid-template-columns:minmax(0,1fr) 200px;padding:6px 9px 6px;gap:9px}
  .word-title-row h2{font-size:36px}
  .word-title-row p{font-size:20px}
  .example-box{font-size:21px;padding:7px 9px;margin-top:5px}
  .listen-big{min-height:43px;grid-template-columns:32px 1fr;padding:4px 8px}
  .audio-icon{width:21px;height:21px}
  .listen-big strong{font-size:15px}
  .sentence-audio{height:25px}
  .audio-mini-row button{height:23px;font-size:8px}
}
@media(max-width:780px){
  .learn-content{grid-template-columns:minmax(0,1fr) 195px;gap:8px;padding:7px 9px 6px}
  .word-title-row h2{font-size:38px}
  .word-title-row p{font-size:21px}
  .example-box{font-size:21px}
}
@media(max-width:560px){
  .learn-content{grid-template-columns:minmax(0,1fr) 155px}
  .word-title-row h2{font-size:34px}
  .word-title-row p{font-size:19px}
  .example-box{font-size:18px}
  .listen-big{grid-template-columns:28px 1fr}
  .listen-big small{display:none}
}


/* V5.11 — two-step listening flow: word, then model sentence, then auto-next */
.sentence-audio{display:grid;grid-template-columns:auto 1fr auto;align-items:center;padding:0 10px;column-gap:6px}
.sentence-audio b{justify-self:start}
.sentence-audio small{font-size:8px;font-weight:800;color:#587063;white-space:nowrap}
.listen-big.is-listening,.sentence-audio.is-listening{filter:saturate(.85);opacity:.9}
@media(max-width:640px){.sentence-audio small{display:none}.sentence-audio{grid-template-columns:auto 1fr}.sentence-audio b{justify-self:center}}


/* V5.13 — uncropped vocabulary images + larger reading text */
.learn-card{
  grid-template-rows:minmax(84px,28%) minmax(0,1fr)!important;
}
.learn-image-wrap{
  position:relative;
  background:#e9f0ec;
  isolation:isolate;
}
.learn-image-wrap::before{
  content:"";
  position:absolute;
  inset:-12px;
  background-image:var(--word-bg);
  background-size:cover;
  background-position:center;
  filter:blur(16px) saturate(.85);
  opacity:.24;
  transform:scale(1.08);
  z-index:0;
}
.learn-image-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.28),rgba(255,255,255,.06),rgba(255,255,255,.28));
  z-index:0;
  pointer-events:none;
}
.learn-image-wrap img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center center!important;
  padding:4px 7px;
}
.learn-image-wrap .category-badge,.learn-image-wrap .heart-btn{z-index:3}
.learn-content{
  grid-template-columns:minmax(0,1fr) 230px!important;
  padding:10px 14px 8px!important;
  gap:14px!important;
}
.word-title-row h2{
  font-size:clamp(48px,6vw,70px)!important;
  line-height:.88!important;
}
.word-title-row h2.long-word{
  font-size:clamp(33px,4.4vw,50px)!important;
}
.word-title-row p{
  font-size:clamp(28px,3.4vw,38px)!important;
  line-height:1!important;
  margin-top:7px!important;
}
.example-box{
  font-size:clamp(29px,3.35vw,39px)!important;
  line-height:1.07!important;
  padding:10px 13px!important;
  margin-top:10px!important;
}
.listen-big{min-height:54px!important}
.sentence-audio{height:31px!important;font-size:10px!important}
.audio-mini-row button{height:28px!important;font-size:9px!important}

@media(max-height:700px){
  .learn-card{grid-template-rows:minmax(78px,26%) minmax(0,1fr)!important}
  .learn-content{grid-template-columns:minmax(0,1fr) 220px!important;padding:8px 11px 7px!important;gap:11px!important}
  .word-title-row h2{font-size:44px!important}
  .word-title-row h2.long-word{font-size:31px!important}
  .word-title-row p{font-size:25px!important;margin-top:5px!important}
  .example-box{font-size:27px!important;padding:8px 10px!important;margin-top:7px!important}
  .listen-big{min-height:48px!important}
  .sentence-audio{height:28px!important}
  .audio-mini-row button{height:25px!important}
}
@media(max-height:580px){
  .learn-card{grid-template-rows:minmax(70px,24%) minmax(0,1fr)!important}
  .learn-content{grid-template-columns:minmax(0,1fr) 205px!important;padding:6px 9px 6px!important;gap:9px!important}
  .word-title-row h2{font-size:40px!important}
  .word-title-row h2.long-word{font-size:28px!important}
  .word-title-row p{font-size:22px!important}
  .example-box{font-size:24px!important;padding:7px 9px!important;margin-top:5px!important}
  .listen-big{min-height:43px!important}
  .sentence-audio{height:25px!important}
  .audio-mini-row button{height:23px!important}
}
@media(max-width:780px){
  .learn-content{grid-template-columns:minmax(0,1fr) 190px!important;gap:8px!important;padding:7px 9px 6px!important}
  .word-title-row h2{font-size:42px!important}
  .word-title-row h2.long-word{font-size:29px!important}
  .word-title-row p{font-size:23px!important}
  .example-box{font-size:23px!important}
}
@media(max-width:560px){
  .learn-content{grid-template-columns:minmax(0,1fr) 150px!important}
  .word-title-row h2{font-size:37px!important}
  .word-title-row h2.long-word{font-size:25px!important}
  .word-title-row p{font-size:20px!important}
  .example-box{font-size:20px!important}
}


/* V5.14 — clean horizontal vocabulary card; no crop, no blur, larger text */
.learn-card{
  display:grid!important;
  grid-template-columns:minmax(300px,42%) minmax(0,58%)!important;
  grid-template-rows:1fr!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden;
  background:#fff;
}
.learn-image-wrap{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px!important;
  background:#edf3ef!important;
  border-right:1px solid var(--line);
}
.learn-image-wrap::before,.learn-image-wrap::after{display:none!important}
.learn-image-wrap img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  border-radius:16px;
  box-shadow:0 8px 22px rgba(24,58,45,.10);
  background:white;
}
.learn-content{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  gap:14px!important;
  padding:18px 22px!important;
  min-width:0;
  min-height:0;
}
.word-main{justify-content:flex-start!important}
.word-title-row h2{
  font-size:clamp(52px,6vw,82px)!important;
  line-height:.86!important;
  margin:0!important;
}
.word-title-row h2.long-word{font-size:clamp(35px,4.2vw,54px)!important;line-height:.93!important}
.word-title-row p{
  font-size:clamp(30px,3.2vw,42px)!important;
  line-height:1!important;
  margin-top:10px!important;
}
.word-counter{font-size:11px!important;padding:6px 10px!important}
.example-box{
  margin-top:13px!important;
  padding:12px 14px!important;
  font-size:clamp(28px,3vw,40px)!important;
  line-height:1.08!important;
  border-radius:15px!important;
}
.audio-panel{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  grid-template-rows:auto auto auto!important;
  gap:8px!important;
  align-items:stretch!important;
}
.listen-big,.sentence-audio{
  min-height:58px!important;
  height:auto!important;
  border-radius:15px!important;
}
.listen-big{grid-column:1!important;grid-row:1!important;padding:8px 12px!important;grid-template-columns:40px 1fr!important}
.listen-big strong{font-size:18px!important}.listen-big small{display:block!important;font-size:9px!important}
.sentence-audio{
  grid-column:2!important;
  grid-row:1!important;
  padding:8px 12px!important;
  font-size:14px!important;
  background:#f0f7ef!important;
  border:1px solid #cfe0d2!important;
  color:var(--green3)!important;
}
.audio-mini-row{grid-column:1/-1!important;grid-row:2!important;gap:7px!important}
.audio-mini-row button{height:34px!important;font-size:10px!important}
.recording-area{grid-column:1/-1!important;grid-row:3!important}
.learn-nav{display:none!important}
.category-badge{top:22px!important;left:22px!important}
.heart-btn{top:20px!important;right:20px!important}

@media(max-height:700px){
  .learn-content{padding:13px 17px!important;gap:10px!important}
  .learn-image-wrap{padding:10px!important}
  .word-title-row h2{font-size:48px!important}
  .word-title-row h2.long-word{font-size:32px!important}
  .word-title-row p{font-size:27px!important;margin-top:7px!important}
  .example-box{font-size:25px!important;padding:9px 11px!important;margin-top:9px!important}
  .listen-big,.sentence-audio{min-height:50px!important}
  .listen-big strong{font-size:16px!important}
  .sentence-audio{font-size:12px!important}
  .audio-mini-row button{height:30px!important}
}
@media(max-height:580px){
  .learn-card{grid-template-columns:minmax(260px,39%) minmax(0,61%)!important}
  .learn-content{padding:9px 13px!important;gap:7px!important}
  .learn-image-wrap{padding:8px!important}
  .word-title-row h2{font-size:42px!important}
  .word-title-row h2.long-word{font-size:29px!important}
  .word-title-row p{font-size:23px!important;margin-top:5px!important}
  .example-box{font-size:21px!important;padding:7px 9px!important;margin-top:6px!important}
  .listen-big,.sentence-audio{min-height:43px!important}
  .listen-big{grid-template-columns:31px 1fr!important;padding:5px 8px!important}
  .listen-big strong{font-size:14px!important}.listen-big small{font-size:8px!important}
  .sentence-audio{font-size:11px!important;padding:5px 8px!important}
  .audio-mini-row button{height:26px!important;font-size:9px!important}
}
@media(max-width:760px){
  .learn-card{
    grid-template-columns:1fr!important;
    grid-template-rows:minmax(150px,42%) minmax(0,58%)!important;
  }
  .learn-image-wrap{grid-column:1!important;grid-row:1!important;border-right:0;border-bottom:1px solid var(--line);padding:9px!important}
  .learn-content{grid-column:1!important;grid-row:2!important;padding:10px 12px!important;gap:8px!important}
  .word-title-row h2{font-size:40px!important}.word-title-row h2.long-word{font-size:28px!important}
  .word-title-row p{font-size:22px!important;margin-top:4px!important}
  .example-box{font-size:20px!important;padding:7px 9px!important;margin-top:5px!important}
  .audio-panel{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .listen-big,.sentence-audio{min-height:42px!important}
  .audio-mini-row button{height:25px!important}
}


/* V5.16 — bigger UI text in vocabulary controls */
.toolbar-title strong{font-size:clamp(24px,2.2vw,32px)!important}
.toolbar-title small{font-size:12px!important}
.category-strip{height:42px!important;gap:8px!important;padding:0 2px 4px!important}
.category-pill{font-size:12px!important;padding:8px 14px!important}
.category-badge{font-size:13px!important;padding:9px 15px!important}
.word-counter{font-size:13px!important;padding:8px 12px!important}
.listen-big strong{font-size:24px!important;line-height:1.02!important}
.listen-big small{font-size:13px!important;line-height:1.05!important;margin-top:2px!important}
.sentence-audio{font-size:17px!important;font-weight:900!important}
.audio-mini-row button{font-size:13px!important;font-weight:900!important}

@media(max-height:700px){
  .toolbar-title strong{font-size:23px!important}
  .toolbar-title small{font-size:11px!important}
  .category-strip{height:38px!important}
  .category-pill{font-size:11px!important;padding:7px 12px!important}
  .category-badge{font-size:12px!important;padding:8px 13px!important}
  .word-counter{font-size:12px!important;padding:7px 11px!important}
  .listen-big strong{font-size:22px!important}
  .listen-big small{font-size:12px!important}
  .sentence-audio{font-size:15px!important}
  .audio-mini-row button{font-size:12px!important}
}
@media(max-height:580px){
  .toolbar-title strong{font-size:21px!important}
  .toolbar-title small{font-size:10px!important}
  .category-strip{height:35px!important;gap:6px!important}
  .category-pill{font-size:10px!important;padding:6px 10px!important}
  .category-badge{font-size:11px!important;padding:7px 11px!important}
  .word-counter{font-size:11px!important;padding:6px 9px!important}
  .listen-big strong{font-size:19px!important}
  .listen-big small{font-size:10px!important}
  .sentence-audio{font-size:13px!important}
  .audio-mini-row button{font-size:10px!important}
}
@media(max-width:760px){
  .toolbar-title strong{font-size:22px!important}
  .category-strip{height:36px!important}
  .category-pill{font-size:10px!important;padding:6px 10px!important}
  .listen-big strong{font-size:19px!important}
  .listen-big small{font-size:10px!important}
  .sentence-audio{font-size:13px!important}
  .audio-mini-row button{font-size:10px!important}
}


/* V5.17 — larger vocabulary heading and richer category pills with photo cues */
.toolbar-title strong{
  font-size:clamp(34px,3.1vw,48px)!important;
  letter-spacing:-.02em!important;
  line-height:.95!important;
}
.toolbar-title small{
  font-size:14px!important;
}
.category-strip{
  height:56px!important;
  gap:10px!important;
  padding:4px 2px 6px!important;
  align-items:center!important;
}
.category-pill{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:42px!important;
  padding:8px 14px!important;
  font-size:15px!important;
  font-weight:900!important;
  border-radius:999px!important;
  color:#486050!important;
  background:#fff!important;
  border:1px solid #ccddd2!important;
  box-shadow:0 3px 10px rgba(20,55,48,.05)!important;
}
.category-pill::before{
  content:'';
  width:24px;
  height:24px;
  border-radius:999px;
  flex:0 0 24px;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(19,76,53,.12);
  box-shadow:0 2px 6px rgba(18,57,45,.10);
}
.category-pill[data-cat="all"]::before{background-image:url('assets/vocab/town.jpg')}
.category-pill[data-cat="Nature"]::before{background-image:url('assets/vocab/mountain.jpg')}
.category-pill[data-cat="Animals"]::before{background-image:url('assets/vocab/puma.jpg')}
.category-pill[data-cat="Places"]::before{background-image:url('assets/vocab/glacier.jpg')}
.category-pill[data-cat="Transport"]::before{background-image:url('assets/vocab/plane.jpg')}
.category-pill[data-cat="Activities"]::before{background-image:url('assets/vocab/fishing.jpg')}
.category-pill.active{
  background:linear-gradient(145deg,#2e9740,#1c7636)!important;
  color:white!important;
  border-color:#1f7e3b!important;
}
.category-pill.active::before{
  border-color:rgba(255,255,255,.55);
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.category-badge{
  font-size:14px!important;
  padding:10px 16px!important;
}

@media(max-height:700px){
  .toolbar-title strong{font-size:32px!important}
  .toolbar-title small{font-size:13px!important}
  .category-strip{height:50px!important;gap:8px!important;padding:3px 2px 4px!important}
  .category-pill{min-height:38px!important;padding:7px 12px!important;font-size:13px!important;gap:8px!important}
  .category-pill::before{width:21px;height:21px;flex-basis:21px}
}
@media(max-height:580px){
  .toolbar-title strong{font-size:28px!important}
  .toolbar-title small{font-size:11px!important}
  .category-strip{height:44px!important;gap:6px!important;padding:2px 1px 3px!important}
  .category-pill{min-height:33px!important;padding:5px 10px!important;font-size:11px!important;gap:6px!important}
  .category-pill::before{width:18px;height:18px;flex-basis:18px}
  .category-badge{font-size:12px!important;padding:8px 13px!important}
}
@media(max-width:760px){
  .toolbar-title strong{font-size:30px!important}
  .toolbar-title small{font-size:12px!important}
  .category-strip{height:46px!important;gap:7px!important;padding:2px 1px 4px!important}
  .category-pill{min-height:34px!important;padding:5px 10px!important;font-size:11px!important;gap:6px!important}
  .category-pill::before{width:18px;height:18px;flex-basis:18px}
}
@media(max-width:520px){
  .toolbar-title strong{font-size:27px!important}
  .category-strip{height:42px!important}
  .category-pill{font-size:10px!important;padding:5px 9px!important}
}


/* V5.18 — stronger bottom navigation icons and clearer Activities entry */
.bottom-nav{
  height:72px!important;
  padding:6px max(8px,calc((100vw - 950px)/2))!important;
}
.bottom-nav button{
  min-width:118px!important;
  gap:4px!important;
  padding:6px 8px!important;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.bottom-nav button:active{transform:scale(.98)}
.nav-ico{
  width:28px!important;
  height:28px!important;
  color:currentColor;
}
.nav-ico svg{
  width:100%;height:100%;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bottom-nav button small{
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.01em;
}
.bottom-nav button.active-nav{
  color:var(--green2)!important;
  background:#eef7ef!important;
  box-shadow:inset 0 0 0 1px #d5e6d9;
}
.bottom-nav button:hover{background:#f8fbf8}
.bottom-nav button.active-nav .nav-ico{transform:translateY(-1px)}

@media(max-width:780px){
  .bottom-nav{height:68px!important;padding:4px 6px!important}
  .bottom-nav button{min-width:0!important;flex:1;padding:6px 4px!important;gap:3px!important}
  .nav-ico{width:25px!important;height:25px!important}
  .bottom-nav button small{font-size:10px!important}
}
@media(max-width:520px){
  .bottom-nav{height:66px!important}
  .nav-ico{width:23px!important;height:23px!important}
  .bottom-nav button small{font-size:9px!important}
}


/* =========================================================
   V5.19 — mature 5th–8th grade visual direction + navigation fix
   ========================================================= */

/* Critical navigation fix: inactive screens must never remain on top. */
.screen:not(.active){display:none!important}
.screen.active{display:block!important}
.screen.active.learn-screen{display:grid!important}

/* Mature home */
.home-v519{padding-top:18px}
.mature-hero{
  min-height:390px;
  display:grid;
  grid-template-columns:minmax(390px,44%) minmax(0,56%);
  overflow:hidden;
  border:1px solid #dbe4df;
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
}
.mature-hero-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:38px clamp(30px,4vw,58px);
  background:
    radial-gradient(circle at 100% 45%,rgba(255,255,255,0) 0 18%,#fff 58%),
    #fff;
}
.mature-kicker{
  margin:0 0 4px;
  color:#153a56;
  font-size:18px;
  font-weight:950;
  letter-spacing:.08em;
}
.mature-hero h1{
  margin:0;
  color:#092f50;
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:clamp(62px,7vw,92px);
  font-weight:950;
  line-height:.9;
  letter-spacing:-.055em;
}
.patagonia-ribbon{
  width:max-content;
  margin:15px 0 20px;
  padding:8px 18px;
  border-radius:7px;
  background:linear-gradient(145deg,#2c7f31,#256c2c);
  color:#fff;
  font-size:17px;
  font-weight:950;
  letter-spacing:.11em;
  box-shadow:0 6px 18px rgba(29,112,47,.18);
}
.mature-lead{
  margin:0 0 22px;
  max-width:390px;
  color:#253c4f;
  font-size:18px;
  line-height:1.38;
}
.mature-lead strong{color:#0d5c31;font-size:20px}
.mature-start{
  width:max-content;
  border:0;
  border-radius:14px;
  background:#0b7540;
  color:#fff;
  padding:12px 20px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:950;
  box-shadow:0 9px 22px rgba(11,117,64,.23);
}
.play-disc{
  width:27px;height:27px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.17);
  font-size:12px;
}
.mature-hero-visual{min-width:0;overflow:hidden;background:#dcebea}
.mature-hero-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 48%;
}

.home-actions{
  margin-top:18px;
  padding:22px;
  border:1px solid #dce5df;
  border-radius:24px;
  background:#fff;
  box-shadow:var(--soft);
}
.home-actions-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:17px;
}
.home-actions-head h2{
  margin:0;
  color:#0b3556;
  font-family:Georgia,serif;
  font-size:32px;
  letter-spacing:-.02em;
}
.home-score{
  min-width:100px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:8px;
  align-items:center;
  padding:8px 12px;
  border:1px solid #dce5df;
  border-radius:14px;
  background:#fdfefc;
}
.home-score span{grid-row:1/3;color:#e6a615;font-size:25px}
.home-score strong{font-size:19px;color:#0b3556;line-height:1}
.home-score small{font-size:9px;color:#74847c}

.mature-action-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.mature-action-card{
  position:relative;
  overflow:hidden;
  min-height:285px;
  border:1px solid #dce5df;
  border-radius:19px;
  background:#fff;
  padding:0 14px 14px;
  text-align:left;
  box-shadow:0 7px 19px rgba(15,49,42,.07);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.mature-action-card:hover{
  transform:translateY(-3px);
  box-shadow:0 13px 26px rgba(15,49,42,.12);
  border-color:#c7d8ce;
}
.mature-card-photo{
  height:120px;
  margin:0 -14px 0;
  overflow:hidden;
  background:#edf3ef;
}
.mature-card-photo img{
  width:100%;height:100%;display:block;object-fit:cover;object-position:center;
}
.mature-card-icon{
  width:46px;height:46px;
  margin:-23px 0 8px;
  position:relative;
  z-index:2;
  display:grid;place-items:center;
  border:4px solid #fff;
  border-radius:50%;
  background:#0b3556;
  color:#fff;
  box-shadow:0 5px 14px rgba(18,55,76,.18);
}
.mature-card-icon svg{
  width:23px;height:23px;
  fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;
}
.phrases-card .mature-card-icon{background:#2f7c3b}
.exercises-card .mature-card-icon{background:#8b5b12}
.activities-card .mature-card-icon{background:#7151a5}
.explore-card .mature-card-icon{background:#d66d17}
.mature-action-card h3{
  margin:0 0 7px;
  font-size:20px;
  line-height:1;
  color:#0b3556;
}
.phrases-card h3{color:#2c7737}
.exercises-card h3{color:#7b4f10}
.activities-card h3{color:#694b9a}
.explore-card h3{color:#c65f13}
.mature-action-card p{
  margin:0 0 13px;
  color:#5c6b74;
  font-size:12px;
  line-height:1.35;
}
.card-link{
  position:absolute;
  left:14px;right:14px;bottom:13px;
  color:#0b3556;
  font-size:11px;
  font-weight:950;
}
.activities-card .card-link{color:#694b9a}
.explore-card .card-link{color:#c65f13}

.home-secondary{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(520px,2fr);
  gap:14px;
  margin-top:16px;
}
.home-goal{
  border:1px solid #dce5df;
  border-radius:16px;
  padding:13px 15px;
  background:#fbfdfb;
}
.home-goal strong{color:#0b3556}
.home-goal .goal-progress{margin-top:10px}
.home-category-stats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}
.home-category-stats button{
  border:1px solid #dce5df;
  border-radius:14px;
  background:#fff;
  padding:11px 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#52665b;
  font-size:11px;
  font-weight:900;
}
.home-category-stats button b{color:#0b3556;font-size:11px}

/* Mature dark navigation, matching the approved direction */
.bottom-nav{
  background:#082e4c!important;
  border-top:0!important;
  box-shadow:0 -8px 26px rgba(5,35,58,.16)!important;
}
.bottom-nav button{
  color:#e9f0f3!important;
  background:transparent!important;
  border-radius:12px!important;
}
.bottom-nav button:hover{background:rgba(255,255,255,.07)!important}
.bottom-nav button.active-nav{
  color:#fff!important;
  background:rgba(255,255,255,.08)!important;
  box-shadow:none!important;
  position:relative;
}
.bottom-nav button.active-nav::after{
  content:'';
  position:absolute;
  bottom:2px;
  width:33px;
  height:3px;
  border-radius:99px;
  background:#89b83b;
}
.bottom-nav .nav-ico{color:currentColor!important}
.bottom-nav button small{color:currentColor!important}

/* Activities hub: make it obvious these are the activities the user asked for */
.games-screen .page-head h2{font-size:clamp(42px,5vw,58px)}
.game-grid{margin-top:4px}
.game-tile{border-top:4px solid transparent}
.wordsearch-tile{border-top-color:#2b8440}
.puzzle-tile{border-top-color:#397fb6}
.matchline-tile{border-top-color:#7653a5}
.unscramble-tile{border-top-color:#db7424}
.listen-tile{border-top-color:#21809b}
.blank-tile{border-top-color:#7d8d2c}
.tf-tile{border-top-color:#c85449}
.quiz-tile{border-top-color:#d4a31f}

/* Preserve the one-screen vocabulary layout after increasing the category header. */
body.immersive main{height:calc(100dvh - var(--bottom))!important}
.learn-screen.active{
  height:calc(100dvh - var(--bottom))!important;
  grid-template-rows:52px 54px minmax(0,1fr)!important;
  gap:4px!important;
  overflow:hidden!important;
}
.learn-card{min-height:0!important;height:100%!important}

/* Responsive */
@media(max-width:1050px){
  .mature-action-grid{grid-template-columns:repeat(3,1fr)}
  .mature-action-card:nth-child(4),.mature-action-card:nth-child(5){min-height:255px}
  .home-secondary{grid-template-columns:1fr}
}
@media(max-width:780px){
  .mature-hero{grid-template-columns:1fr;min-height:0}
  .mature-hero-copy{padding:28px 24px;background:#fff}
  .mature-hero-visual{height:270px}
  .mature-hero h1{font-size:64px}
  .mature-action-grid{grid-template-columns:repeat(2,1fr)}
  .mature-action-card{min-height:270px}
  .mature-action-card:last-child{grid-column:1/-1}
  .home-category-stats{grid-template-columns:repeat(2,1fr)}
  .home-category-stats button:last-child{grid-column:1/-1}
  .learn-screen.active{grid-template-rows:48px 48px minmax(0,1fr)!important}
}
@media(max-width:520px){
  .home-actions{padding:14px}
  .home-actions-head h2{font-size:27px}
  .home-score{display:none}
  .mature-action-grid{gap:10px}
  .mature-action-card{min-height:245px;padding:0 11px 12px}
  .mature-card-photo{height:104px;margin:0 -11px}
  .mature-action-card h3{font-size:17px}
  .mature-action-card p{font-size:10px}
  .card-link{left:11px;right:11px;bottom:10px}
}

/* Compact laptop-height vocabulary — readable, complete and never underneath nav */
@media(max-height:620px) and (min-width:761px){
  .learn-screen.active{
    grid-template-rows:43px 45px minmax(0,1fr)!important;
    gap:2px!important;
  }
  .toolbar-title strong{font-size:27px!important}
  .toolbar-title small{display:none!important}
  .category-strip{height:45px!important;padding:2px 1px 3px!important}
  .category-pill{min-height:34px!important;font-size:11px!important;padding:5px 10px!important}
  .learn-content{padding:8px 12px!important;gap:8px!important}
  .word-title-row h2{font-size:42px!important}
  .word-title-row p{font-size:24px!important}
  .example-box{font-size:22px!important}
  .listen-big,.sentence-audio{min-height:44px!important}
  .listen-big strong{font-size:18px!important}
  .sentence-audio{font-size:13px!important}
  .audio-mini-row button{height:28px!important;font-size:10px!important}
}


/* V5.20 — four additional full-size activities */
.memory-tile .game-icon{background:#e9f5ef;color:#19744a}.categorygame-tile .game-icon{background:#edf2ff;color:#405fa5}.builder-tile .game-icon{background:#fff1df;color:#b5641c}.translate-tile .game-icon{background:#f1eafa;color:#7652a2}
.memory-panel,.category-game-panel,.builder-panel,.translation-panel{height:calc(100dvh - var(--bottom) - 68px);min-height:300px}
.memory-panel{display:grid;grid-template-rows:1fr auto;gap:10px}
.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);gap:10px;min-height:0}
.memory-card{border:1px solid #cddbd2;background:#f6faf6;border-radius:16px;overflow:hidden;min-height:0;display:grid;place-items:center;color:var(--navy);font-weight:950;font-size:clamp(16px,2.2vw,25px);box-shadow:0 5px 14px rgba(20,55,48,.05)}
.memory-card img{width:100%;height:100%;object-fit:cover}.memory-card.open{background:white}.memory-card.matched{border:3px solid #4da35d;background:#e9f7eb}.memory-back{font-size:clamp(32px,5vw,54px);color:#7e9689}.memory-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}
.category-game-panel,.translation-panel{display:grid;grid-template-rows:minmax(130px,42%) auto auto 26px auto;gap:10px;align-items:center;text-align:center}
.category-game-image,.translation-image{width:min(520px,75vw);height:100%;object-fit:cover;border-radius:18px;margin:auto;box-shadow:0 8px 20px rgba(20,55,48,.08)}
.category-game-word,.translation-spanish{font-family:Georgia,serif;color:var(--navy);font-weight:800;font-size:clamp(34px,5vw,58px);line-height:1}
.translation-spanish{color:var(--green3);font-style:italic;text-transform:none}
.category-game-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;width:100%}.category-game-choice,.translation-choice{border:1px solid #cad9d0;background:white;border-radius:13px;padding:12px 10px;color:var(--navy);font-size:clamp(13px,1.6vw,17px);font-weight:900}
.category-game-choice.correct,.translation-choice.correct{background:#e1f3e3;border-color:#61a66d}.category-game-choice.wrong,.translation-choice.wrong{background:#fdece9;border-color:#d47263}
.translation-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;width:min(760px,100%);margin:auto}
.builder-panel{display:grid;grid-template-rows:minmax(100px,31%) auto 1fr 24px auto;gap:8px;align-items:center}
.builder-image{width:min(420px,68vw);height:100%;object-fit:cover;border-radius:17px;margin:auto}.builder-answer{min-height:58px;border:2px dashed #a9bdb0;background:#fbfdf9;border-radius:15px;padding:9px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px}.builder-placeholder{color:#82968b;font-weight:800}.builder-bank{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:8px;min-height:0}.builder-token,.builder-chosen{border:1px solid #cbdad1;background:white;border-radius:12px;padding:10px 13px;color:var(--navy);font-size:clamp(13px,1.7vw,18px);font-weight:900}.builder-chosen{background:#e8f4e9;border-color:#78ad80}
@media(max-width:780px){.memory-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr)}.category-game-choices{grid-template-columns:repeat(2,1fr)}.category-game-choice:last-child{grid-column:1/-1}.memory-card{font-size:14px}}
@media(max-height:650px){.memory-panel,.category-game-panel,.builder-panel,.translation-panel{height:calc(100dvh - var(--bottom) - 51px);padding:9px}.memory-grid{gap:6px}.category-game-panel,.translation-panel{grid-template-rows:minmax(90px,36%) auto auto 18px auto;gap:5px}.category-game-word,.translation-spanish{font-size:29px}.category-game-choice,.translation-choice{padding:7px 8px;font-size:12px}.builder-panel{grid-template-rows:minmax(75px,27%) auto 1fr 18px auto;gap:5px}.builder-answer{min-height:44px;padding:6px}.builder-token,.builder-chosen{padding:6px 9px;font-size:12px}}

/* =========================================================
   V5.21 — CERRO CASTILLO ADVENTURE
   Isolated visual system: dark teal + parchment + Patagonia.
   ========================================================= */
:root{--adv-teal:#063f49;--adv-teal2:#0a5c65;--adv-green:#1f7a43;--adv-gold:#d7a63e;--adv-parch:#f4ead6;--adv-ink:#173148;--adv-cream:#fffaf0}
.adventure-card{border-color:#b7d7c0!important;background:linear-gradient(180deg,#f9fffb,#f2f8f3)!important}
.adventure-card .mature-card-photo img{object-position:center 44%}
.adventure-feature-card{width:100%;border:0;border-radius:24px;min-height:190px;margin:0 0 22px;overflow:hidden;position:relative;text-align:left;color:white;background:linear-gradient(90deg,rgba(3,40,47,.96),rgba(6,66,72,.83)),url('assets/adventure/cerro-castillo-landscape.jpg') center/cover no-repeat;display:grid;grid-template-columns:1fr 126px;align-items:center;gap:18px;padding:24px 28px;box-shadow:var(--shadow)}
.adventure-feature-copy{max-width:730px}.adventure-feature-kicker{display:inline-block;font-size:11px;letter-spacing:.16em;font-weight:950;color:#e8d59f;margin-bottom:6px}.adventure-feature-card strong{display:block;font-family:Georgia,serif;font-size:clamp(30px,4.1vw,46px);line-height:1;color:white}.adventure-feature-card p{margin:8px 0 14px;color:#e7f3ef;font-size:15px}.adventure-feature-cta{display:inline-flex;border:1px solid rgba(255,255,255,.36);border-radius:999px;padding:9px 14px;font-weight:900;font-size:12px;background:rgba(255,255,255,.08)}.adventure-feature-card img{width:108px;height:130px;object-fit:cover;border-radius:18px;border:3px solid #d4b56b;box-shadow:0 10px 28px rgba(0,0,0,.24);justify-self:end}

.adventure-screen,.adventure-subscreen{max-width:1180px;margin:auto;padding:14px 0 24px}
.adventure-hero-shell{position:relative;min-height:560px;border-radius:28px;overflow:hidden;box-shadow:0 24px 60px rgba(9,45,47,.22);isolation:isolate;background:#0b4147}.adventure-hero-bg{position:absolute;inset:0;background:url('assets/adventure/cerro-castillo-landscape.jpg') center/cover no-repeat;transform:scale(1.02);filter:saturate(1.02) contrast(1.03)}.adventure-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,32,39,.96) 0%,rgba(3,48,54,.82) 47%,rgba(3,43,49,.30) 76%,rgba(2,33,38,.18) 100%),linear-gradient(0deg,rgba(1,29,34,.45),transparent 42%)}.adventure-hero-copy{position:absolute;left:clamp(28px,6vw,72px);top:50%;transform:translateY(-54%);max-width:570px;color:white;z-index:2}.adventure-kicker{margin:0 0 8px;color:#e7d49c;font-size:11px;letter-spacing:.18em;font-weight:950}.adventure-kicker.dark{color:#596a55}.adventure-hero-copy h2{font-family:Georgia,serif;text-transform:uppercase;font-size:clamp(52px,7vw,82px);line-height:.86;margin:0;letter-spacing:-.035em;text-shadow:0 2px 9px rgba(0,0,0,.22)}.adventure-hero-copy h2 span{color:#73c89a}.adventure-tagline{font-size:18px;margin:17px 0 21px;color:#edf7f1;font-weight:650}.adventure-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.adventure-primary,.adventure-secondary{border-radius:12px;min-height:46px;padding:10px 18px;font-weight:950;border:1px solid transparent}.adventure-primary{background:linear-gradient(145deg,#2d9449,#176c38);color:white;box-shadow:0 8px 20px rgba(12,68,37,.24)}.adventure-secondary{background:rgba(255,255,255,.92);color:var(--adv-teal);border-color:#d8e2d5}.adventure-primary.wide{width:100%;margin-top:12px}.adventure-passport{position:absolute;right:28px;bottom:26px;z-index:3;width:min(330px,36%);background:linear-gradient(180deg,#f8efdc,#ecdfc6);border:1px solid rgba(82,63,35,.28);border-radius:18px;padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px;box-shadow:0 15px 34px rgba(0,0,0,.20);color:#293b35}.adventure-passport>div{padding:10px 8px;border-bottom:1px solid rgba(82,63,35,.16)}.adventure-passport small{display:block;font-size:9px;letter-spacing:.08em;font-weight:950;color:#6a6a5e}.adventure-passport strong{display:block;font-family:Georgia,serif;font-size:24px;color:#143c44;margin-top:2px}.adventure-kingfisher{position:absolute;right:320px;bottom:20px;z-index:4;width:82px;height:102px;object-fit:cover;border-radius:18px;border:3px solid #d0af5d;box-shadow:0 10px 24px rgba(0,0,0,.22);transform:rotate(-3deg)}
.adventure-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.adventure-shortcuts button{border:1px solid #d5e1d9;background:white;border-radius:17px;padding:15px 16px;text-align:left;display:grid;grid-template-columns:38px 1fr;column-gap:10px;box-shadow:var(--soft)}.adventure-shortcuts button>span{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef5ef;color:var(--adv-green);font-size:11px;font-weight:950}.adventure-shortcuts b{color:#123c50;font-size:17px}.adventure-shortcuts small{color:#697b74;margin-top:2px;line-height:1.3}

.adventure-topline{min-height:66px;border-radius:18px;background:linear-gradient(90deg,#063f49,#07535c);color:white;display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:12px;padding:8px 14px;margin-bottom:14px;box-shadow:0 8px 24px rgba(5,53,59,.12)}.adventure-topline p{font-size:9px;letter-spacing:.14em;font-weight:950;color:#d6e6df;margin:0}.adventure-topline h2{font-family:Georgia,serif;font-size:28px;margin:0;line-height:1}.adventure-back{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.30);background:rgba(0,0,0,.12);color:white;font-size:28px;display:grid;place-items:center;line-height:1}.adventure-map-link{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:white;border-radius:10px;padding:9px 12px;font-weight:900}.backpack-count{font-family:Georgia,serif;font-size:20px;background:#f5ead2;color:#143c44;border-radius:12px;padding:8px 13px;border:1px solid #d7c39d}

.explorer-layout{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(320px,.95fr);gap:16px}.explorer-choice-card,.explorer-gear-panel{border:1px solid #d9d5c8;background:linear-gradient(180deg,#fffaf0,#f1e6d2);border-radius:22px;padding:18px;box-shadow:var(--soft)}.explorer-choice-card{position:relative}.explorer-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.explorer-tabs button{border:1px solid #cbb999;background:#f1e3c8;color:#3f3b2f;border-radius:10px;padding:11px;font-weight:950}.explorer-tabs button.active{background:var(--adv-teal);color:white;border-color:var(--adv-teal)}.explorer-portrait-wrap{height:390px;margin-top:12px;border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#d8edf0,#dfe8ce);display:flex;align-items:flex-end;justify-content:center}.explorer-portrait-wrap img{height:100%;width:auto;object-fit:contain;display:block}.equipped-ribbon{margin-top:10px;min-height:40px;border-radius:10px;background:#0a4852;color:white;padding:10px 12px;font-size:12px;font-weight:850;text-align:center}.explorer-gear-panel h3{font-family:Georgia,serif;color:#143c50;font-size:34px;margin:0}.gear-intro{color:#65766e;line-height:1.45;margin:7px 0 14px}.gear-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.gear-item{min-height:72px;border:1px solid #d7c7a7;background:#fffaf0;border-radius:12px;padding:10px;text-align:left;color:#34483e;display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center}.gear-item.locked{opacity:.46;filter:grayscale(1);cursor:not-allowed}.gear-item.equipped{border-color:#27804c;background:#eff8ef;box-shadow:inset 0 0 0 1px #27804c}.gear-symbol{width:32px;height:32px;border-radius:9px;background:#eadbbd;display:grid;place-items:center;font-size:15px;font-weight:950;color:#624b27}.gear-item b{display:block;font-size:13px}.gear-item small{display:block;font-size:9px;color:#798178;margin-top:2px}

.adventure-map-card{position:relative;height:min(620px,calc(100vh - 170px));min-height:480px;border-radius:24px;overflow:hidden;background:#163f46;box-shadow:0 18px 45px rgba(5,49,54,.20)}.adventure-map-bg{position:absolute;inset:0;background:url('assets/adventure/cerro-castillo-landscape.jpg') center/cover no-repeat;filter:saturate(1.05) contrast(1.04);transform:scale(1.02)}.adventure-map-card::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,33,36,.34),rgba(4,33,36,.03) 50%,rgba(4,33,36,.18));pointer-events:none}.adventure-route-svg{position:absolute;inset:0;width:100%;height:100%;z-index:2}.adventure-route-svg path{fill:none;stroke:rgba(255,246,214,.96);stroke-width:5;stroke-linecap:round;stroke-dasharray:10 10;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}.map-summary{position:absolute;left:20px;top:18px;z-index:5;display:flex;gap:6px;flex-wrap:wrap}.map-summary span{background:rgba(245,235,212,.94);border:1px solid rgba(91,69,32,.25);border-radius:10px;padding:8px 11px;font-size:11px;font-weight:850;color:#30453e}.map-summary b{font-size:18px;color:#0a4750;margin-right:2px}.checkpoint-layer{position:absolute;inset:0;z-index:6}.checkpoint{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;color:white;text-align:left;padding:0;display:flex;align-items:center;gap:7px;max-width:245px}.checkpoint-dot{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#183f48;border:3px solid #d9c795;box-shadow:0 5px 15px rgba(0,0,0,.26);font-family:Georgia,serif;font-size:20px;font-weight:950;flex:0 0 auto}.checkpoint-copy{background:rgba(8,42,47,.88);border:1px solid rgba(255,255,255,.20);border-radius:10px;padding:8px 10px;min-width:130px;backdrop-filter:blur(5px)}.checkpoint-copy b{display:block;font-size:12px;line-height:1.05;text-transform:uppercase}.checkpoint-copy small{display:block;font-size:9px;color:#dce9e4;margin-top:3px}.checkpoint.completed .checkpoint-dot{background:#1d7a43;border-color:#a5d1a5}.checkpoint.current .checkpoint-dot{background:#0b79a0;border-color:#b9e9f3;transform:scale(1.1)}.checkpoint.locked{opacity:.62}.checkpoint.locked .checkpoint-copy{background:rgba(30,38,38,.80)}.map-avatar{position:absolute;z-index:7;width:54px;height:82px;border-radius:999px;overflow:hidden;border:3px solid #f2d78b;background:#e5efe2;box-shadow:0 8px 20px rgba(0,0,0,.25);transition:left .35s ease,top .35s ease}.map-avatar img{width:100%;height:100%;object-fit:cover;object-position:top center}

.stage-shell{border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#f7f3e9,#efe3cd);box-shadow:0 18px 45px rgba(5,49,54,.16);border:1px solid #d8d1c3}.stage-head{height:74px;background:linear-gradient(90deg,#063f49,#07535c);color:white;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;padding:8px 14px}.stage-head p{font-size:9px;letter-spacing:.12em;font-weight:950;color:#cde0db;margin:0}.stage-head h2{font-family:Georgia,serif;font-size:27px;margin:0}.stage-score{min-width:78px;border-radius:999px;background:rgba(0,0,0,.18);padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:6px}.stage-score span{color:#f3c650}.stage-progress{height:7px;background:#d8e2dc}.stage-progress i{display:block;height:100%;width:0;background:#2a8b4b;transition:.25s}.stage-content{display:grid;grid-template-columns:minmax(300px,44%) 1fr;min-height:460px}.stage-image-panel{position:relative;background:#dce9e1;min-height:0;display:flex;align-items:center;justify-content:center;padding:18px;border-right:1px solid #d9d2c3}.stage-image-panel img{max-width:100%;max-height:390px;width:100%;height:100%;object-fit:contain;border-radius:18px;background:white;box-shadow:0 10px 26px rgba(17,54,48,.12)}.stage-listen{position:absolute;left:30px;bottom:28px;border:1px solid rgba(255,255,255,.52);background:rgba(4,69,76,.92);color:white;border-radius:999px;padding:10px 14px;font-weight:900;box-shadow:0 6px 16px rgba(0,0,0,.18)}.stage-question-panel{padding:26px 28px;display:flex;flex-direction:column;justify-content:center;min-width:0}.stage-instruction{font-size:13px;font-weight:900;color:#667970;margin:0 0 7px}.stage-question-panel h3{font-family:Georgia,serif;color:#123d52;font-size:clamp(28px,3vw,40px);line-height:1.08;margin:0 0 20px}.stage-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stage-choice{min-height:60px;border:1px solid #c8d9cf;background:#fff;border-radius:13px;color:#173b50;font-weight:900;font-size:16px;padding:10px 12px}.stage-choice.correct{background:#e9f7eb;border-color:#2e8a4d;color:#176833}.stage-choice.wrong{background:#fff0ed;border-color:#c95b49;color:#9d3e31}.stage-feedback{min-height:32px;margin-top:12px;font-weight:850;color:#67756f}.stage-feedback.good{color:#20763f}.stage-feedback.bad{color:#a84739}.stage-next{align-self:flex-start;margin-top:6px}.stage-builder{display:block}.stage-built{min-height:62px;border:1px dashed #8da496;background:#fffaf0;border-radius:13px;padding:10px;display:flex;gap:7px;flex-wrap:wrap;align-content:center}.stage-wordbank{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.stage-token{border:1px solid #c6d6cb;background:white;border-radius:10px;padding:9px 12px;font-weight:900;color:#173b50}.stage-token.used{opacity:.28;pointer-events:none}.stage-builder-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.stage-builder-actions>button:not(.adventure-primary){border:1px solid #d0d9d2;background:white;border-radius:10px;padding:9px 12px;font-weight:850;color:#53675c}

.reward-card{max-width:760px;margin:20px auto;background:linear-gradient(180deg,#fffaf0,#f0e3ca);border:1px solid #d5c19c;border-radius:28px;padding:26px;text-align:center;box-shadow:0 22px 52px rgba(26,52,42,.16);position:relative;overflow:hidden}.reward-card::before{content:'';position:absolute;inset:0 0 auto;height:8px;background:linear-gradient(90deg,#0a555f,#29754a,#c79d44)}.reward-badge-wrap{width:126px;height:150px;margin:0 auto 8px;border-radius:22px;overflow:hidden;border:4px solid #d6af51;box-shadow:0 10px 25px rgba(49,44,24,.16);background:#183f48}.reward-badge-wrap img{width:100%;height:100%;object-fit:cover}.reward-card h2{font-family:Georgia,serif;font-size:38px;color:#143d4f;margin:2px 0 7px}.reward-summary{color:#5e6e65;margin:0 auto 12px;max-width:560px;font-size:16px}.reward-stars{font-size:36px;letter-spacing:.08em;color:#d6a52f;margin:8px 0}.reward-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;margin:14px 0}.reward-word{border:1px solid #d5c8ad;background:white;border-radius:13px;overflow:hidden;text-align:left}.reward-word img{width:100%;height:80px;object-fit:cover}.reward-word div{padding:7px 9px}.reward-word b{display:block;color:#153d50;text-transform:uppercase;font-size:12px}.reward-word small{color:#5c7869}.reward-gear{min-height:26px;color:#5c654d;font-weight:850;margin:8px 0}.reward-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:14px}

.backpack-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.backpack-word{border:1px solid #d8e1db;background:white;border-radius:16px;overflow:hidden;min-height:180px;text-align:left;box-shadow:0 6px 18px rgba(22,65,49,.05);position:relative}.backpack-word img{width:100%;height:105px;object-fit:cover}.backpack-word>div{padding:9px 10px}.backpack-word b{display:block;text-transform:uppercase;color:#143d50;font-size:13px}.backpack-word small{display:block;color:#53705f;margin-top:2px}.backpack-word button{position:absolute;right:8px;top:82px;width:34px;height:34px;border-radius:50%;border:1px solid #d3e0d7;background:white;color:#207442}.backpack-word.locked{background:#173c43;border-color:#274d53;display:grid;place-items:center;color:#d2d9d5}.backpack-lock{font-size:44px;font-family:Georgia,serif;opacity:.8}.backpack-word.locked small{color:#b5c4bf;text-transform:uppercase;font-size:9px;letter-spacing:.08em}

.adventure-badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.adv-badge{border:1px solid #d7c6a5;background:linear-gradient(180deg,#fffaf0,#efe2cb);border-radius:19px;padding:15px;text-align:center;box-shadow:var(--soft)}.adv-badge img{width:118px;height:140px;object-fit:cover;border-radius:16px;border:3px solid #ba9550;box-shadow:0 8px 18px rgba(50,43,23,.12)}.adv-badge h3{font-family:Georgia,serif;color:#173d4e;margin:8px 0 2px;font-size:18px}.adv-badge p{margin:0;color:#6d7368;font-size:11px}.adv-badge.locked{filter:grayscale(1);opacity:.42}.adv-badge-state{margin-top:8px;font-size:9px;font-weight:950;letter-spacing:.1em;color:#227141}.adv-badge.locked .adv-badge-state{color:#66706c}.badge-finale{text-align:center;margin-top:14px;padding:14px;border-radius:15px;background:#eef5ef;color:#173d4e;border:1px solid #d4e0d7}

@media(max-width:980px){.adventure-passport{width:330px;max-width:44%}.adventure-kingfisher{display:none}.backpack-grid{grid-template-columns:repeat(4,1fr)}.adventure-badge-grid{grid-template-columns:repeat(3,1fr)}.stage-content{grid-template-columns:40% 60%}.checkpoint-copy{min-width:110px}.checkpoint-dot{width:42px;height:42px}}
@media(max-width:780px){.adventure-feature-card{grid-template-columns:1fr 90px;padding:18px}.adventure-feature-card img{width:82px;height:100px}.adventure-hero-shell{min-height:610px}.adventure-hero-copy{left:24px;right:24px;top:42%;transform:translateY(-50%)}.adventure-hero-copy h2{font-size:54px}.adventure-passport{left:20px;right:20px;bottom:18px;width:auto;max-width:none}.adventure-shortcuts{grid-template-columns:1fr}.explorer-layout{grid-template-columns:1fr}.stage-content{grid-template-columns:1fr}.stage-image-panel{height:260px;border-right:0;border-bottom:1px solid #d9d2c3;padding:12px}.stage-image-panel img{max-height:230px}.stage-question-panel{padding:18px}.backpack-grid{grid-template-columns:repeat(3,1fr)}.adventure-badge-grid{grid-template-columns:repeat(2,1fr)}.adventure-map-card{height:560px}.checkpoint-copy{display:none}.checkpoint-dot{width:44px;height:44px}.map-avatar{width:48px;height:72px}.adventure-topline{grid-template-columns:44px 1fr}.adventure-map-link{grid-column:1/-1;justify-self:stretch}.stage-head{height:68px}.stage-question-panel h3{font-size:30px}}
@media(max-width:520px){.adventure-hero-shell{min-height:630px}.adventure-hero-copy h2{font-size:45px}.adventure-tagline{font-size:15px}.adventure-passport{grid-template-columns:1fr 1fr}.explorer-portrait-wrap{height:330px}.gear-grid{grid-template-columns:1fr}.stage-choices{grid-template-columns:1fr}.backpack-grid{grid-template-columns:repeat(2,1fr)}.adventure-badge-grid{grid-template-columns:1fr 1fr}.adv-badge img{width:95px;height:116px}.map-summary{left:10px;top:10px;right:10px}.map-summary span{padding:6px 8px}.adventure-map-card{min-height:520px}.checkpoint-dot{width:40px;height:40px;font-size:17px}.reward-card{padding:20px 14px}.reward-card h2{font-size:31px}.bottom-nav button{min-width:84px!important}.bottom-nav{overflow-x:auto;justify-content:flex-start!important}.bottom-nav button{flex:0 0 84px!important}}
@media(min-width:1051px){.mature-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* V5.22 — richer avatar chooser, full badges, clearer progression */
.multi-avatar-layout{grid-template-columns:minmax(420px,1.08fr) minmax(360px,.92fr)!important}
.explorer-choice-top h3{font-family:Georgia,serif;color:#143c50;font-size:32px;margin:0 0 6px}
.avatar-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.avatar-option{border:1px solid #d7c6a5;background:#fffaf0;border-radius:18px;padding:8px;box-shadow:var(--soft);text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;position:relative}
.avatar-option:hover{transform:translateY(-2px);border-color:#a98747}
.avatar-option.active{border-color:#0a5a66;box-shadow:0 0 0 2px rgba(10,90,102,.18),0 10px 26px rgba(26,52,42,.10)}
.avatar-option img{width:100%;aspect-ratio:4/6;object-fit:contain;background:#f8f2e6;border-radius:14px;display:block}
.avatar-option span{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;min-width:92px;padding:6px 12px;border-radius:999px;background:#edf5ef;color:#1f6d3d;font-size:11px;font-weight:900;border:1px solid #d6e4d8}
.avatar-option.active span{background:#0a5a66;color:#fff;border-color:#0a5a66}
.explorer-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.explorer-preview-head h3{font-family:Georgia,serif;color:#143c50;font-size:34px;margin:0}
.explorer-portrait-wrap{height:460px!important;margin-top:10px;background:linear-gradient(180deg,#f3eee4,#e8dcc6)!important;align-items:center!important;padding:18px}
.explorer-portrait-wrap img{height:100%!important;width:100%!important;object-fit:contain!important;object-position:center center!important}
.explorer-gear-kicker{margin-top:14px}
.map-help-card{position:absolute;right:20px;bottom:18px;z-index:8;width:min(300px,calc(100% - 40px));border:1px solid rgba(215,198,165,.84);background:rgba(255,248,235,.94);border-radius:18px;padding:14px 14px 16px;box-shadow:0 15px 30px rgba(0,0,0,.18);color:#163b4d}
.map-help-card small{display:block;font-size:10px;letter-spacing:.12em;font-weight:950;color:#866a32}
.map-help-card strong{display:block;font-family:Georgia,serif;font-size:26px;line-height:1.05;margin:4px 0}
.map-help-card p{margin:0 0 10px;font-size:13px;line-height:1.4;color:#53665e}
.map-avatar{overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important}
.map-avatar img{width:100%;height:100%;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 7px 14px rgba(0,0,0,.26))}
.map-avatar.horse{width:84px!important;height:108px!important}
.map-avatar:not(.horse){width:60px!important;height:90px!important}
.adventure-feature-card img,.adventure-kingfisher,.reward-badge-wrap img,.adv-badge img{object-fit:contain!important;background:#f7efdf}
.adventure-feature-card img{padding:4px}
.reward-badge-wrap{width:150px!important;height:165px!important;background:#f9f2e4!important}
.adv-badge{padding:16px 14px 18px!important}
.adv-badge img{width:136px!important;height:150px!important;border-radius:14px!important}
.adv-badge h3{font-size:21px!important;line-height:1.05}
.adv-badge p{font-size:12px!important;margin-top:4px}
.adv-badge-state{font-size:10px!important}
@media(max-width:980px){.multi-avatar-layout{grid-template-columns:1fr!important}.avatar-option-grid{grid-template-columns:repeat(2,1fr)}.explorer-portrait-wrap{height:420px!important}.map-help-card{width:min(280px,calc(100% - 32px));right:16px;bottom:16px}}
@media(max-width:780px){.avatar-option-grid{grid-template-columns:1fr 1fr}.explorer-portrait-wrap{height:390px!important}.map-help-card{left:12px;right:12px;bottom:12px;width:auto}.map-avatar.horse{width:74px!important;height:96px!important}.map-avatar:not(.horse){width:54px!important;height:82px!important}}
@media(max-width:520px){.avatar-option-grid{grid-template-columns:1fr}.explorer-portrait-wrap{height:350px!important}.adv-badge img{width:118px!important;height:132px!important}.map-help-card strong{font-size:22px}}

/* =========================================================
   V5.23 — consolidated polish pass from user review
   Bigger navigation, richer Home/Activities/Achievements,
   animated Fill in the Blank, explorer gallery and route mission.
   ========================================================= */
:root{--bottom:78px}

/* HOME: goal and category progress are now readable at a glance */
.home-secondary{grid-template-columns:minmax(330px,1.05fr) minmax(650px,2fr)!important;gap:16px!important;margin-top:18px!important}
.home-goal{padding:17px 19px!important;border-radius:20px!important;background:linear-gradient(145deg,#ffffff,#f4f8f4)!important;box-shadow:0 8px 24px rgba(20,55,48,.06)}
.home-goal .eyebrow{font-size:13px!important;letter-spacing:.14em!important;margin-bottom:7px!important}
.home-goal strong{font-size:20px!important;line-height:1.15!important}
.home-goal .goal-progress{margin-top:15px!important;gap:13px!important}
.home-goal .goal-bar{height:11px!important}
.home-goal .goal-progress b{font-size:16px!important;min-width:48px;text-align:right}
.home-category-stats{gap:10px!important}
.home-category-stats button{min-height:82px!important;padding:10px 12px!important;border-radius:18px!important;display:grid!important;grid-template-columns:44px 1fr!important;grid-template-rows:1fr 1fr!important;column-gap:10px!important;align-items:center!important;text-align:left!important;box-shadow:0 7px 20px rgba(20,55,48,.055)!important;transition:.18s transform,.18s box-shadow!important}
.home-category-stats button:hover{transform:translateY(-2px);box-shadow:0 11px 24px rgba(20,55,48,.10)!important}
.home-category-stats button img{grid-row:1/3;width:44px;height:44px;object-fit:cover;border-radius:12px;border:1px solid #d5e2d9}
.home-category-stats button span{font-size:14px!important;color:#173c50;font-weight:950;align-self:end}
.home-category-stats button b{font-size:14px!important;color:#176b39!important;align-self:start}

/* BOTTOM NAV: larger, more distinctive icons and text */
.bottom-nav{height:var(--bottom)!important;padding:6px max(10px,calc((100vw - 1040px)/2))!important;background:linear-gradient(180deg,#0a3b5d,#082e4c)!important}
.bottom-nav button{min-width:132px!important;gap:5px!important;padding:5px 9px!important;border-radius:16px!important}
.bottom-nav .nav-ico{width:34px!important;height:34px!important;border-radius:11px;padding:6px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);transition:.18s transform,.18s background,.18s color}
.bottom-nav .nav-ico svg{stroke-width:2.25!important}
.bottom-nav button small{font-size:13px!important;font-weight:950!important;line-height:1!important}
.bottom-nav button:nth-child(1) .nav-ico{color:#f6e5bb}
.bottom-nav button:nth-child(2) .nav-ico{color:#bfe4cf}
.bottom-nav button:nth-child(3) .nav-ico{color:#e9d4ff}
.bottom-nav button:nth-child(4) .nav-ico{color:#f4d694}
.bottom-nav button:nth-child(5) .nav-ico{color:#b8d9f1}
.bottom-nav button:nth-child(6) .nav-ico{color:#ffe79d}
.bottom-nav button.active-nav{background:rgba(255,255,255,.11)!important}
.bottom-nav button.active-nav .nav-ico{background:#fff;color:#0a4f5a!important;transform:translateY(-1px) scale(1.04)}
.bottom-nav button.active-nav::after{height:4px!important;width:48px!important;bottom:0!important;background:#9bc447!important}

/* ACTIVITIES: real image previews + strong play actions */
.games-screen .page-head{margin-bottom:18px!important}
.game-grid{gap:16px!important}
.game-tile{min-height:252px!important;padding:0 14px 14px!important;border-radius:22px!important;overflow:hidden!important;display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;grid-template-rows:104px 1fr 42px!important;gap:10px 10px!important;background:#fff!important;box-shadow:0 10px 28px rgba(20,55,48,.075)!important;border:1px solid #dce5df!important;border-top-width:1px!important;position:relative}
.game-tile:hover{transform:translateY(-4px)!important;box-shadow:0 16px 34px rgba(20,55,48,.13)!important}
.game-thumb{grid-column:1/-1;grid-row:1;display:block;margin:0 -14px;overflow:hidden;background:#eef3ef}
.game-thumb img{display:block;width:100%;height:104px;object-fit:cover;transition:transform .25s ease}
.game-tile:hover .game-thumb img{transform:scale(1.025)}
.game-icon{grid-column:1;grid-row:2;width:52px!important;height:52px!important;align-self:start;padding:12px!important;border-radius:15px!important;margin-top:1px}
.game-tile>div{grid-column:2;grid-row:2;align-self:start;min-width:0}
.game-tile b{font-size:19px!important;line-height:1.06!important;margin-top:2px}
.game-tile small{font-size:12px!important;line-height:1.35!important;margin-top:7px!important}
.game-tile i{grid-column:1/-1!important;grid-row:3!important;justify-self:stretch!important;align-self:stretch!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#0c4b5b!important;color:#fff!important;border-radius:12px!important;font-size:13px!important;font-weight:950!important;font-style:normal!important;letter-spacing:.02em}
.game-tile i::before{content:'PLAY  ';font-weight:950}
.wordsearch-tile i{background:#237743!important}.puzzle-tile i{background:#2f70a8!important}.matchline-tile i{background:#6b4a99!important}.unscramble-tile i{background:#c76520!important}.listen-tile i{background:#16728c!important}.blank-tile i{background:#6f7d20!important}.tf-tile i{background:#b44840!important}.quiz-tile i{background:#a77a00!important}.memory-tile i{background:#1f7550!important}.categorygame-tile i{background:#405fa5!important}.builder-tile i{background:#a9591c!important}.translate-tile i{background:#704c9a!important}
.bonus-games{margin-top:20px!important;background:linear-gradient(145deg,#fff,#f6faf7)!important}
.bonus-games h3{font-size:24px!important}.bonus-games button{min-height:48px;font-size:14px!important}

/* FILL IN THE BLANK: the selected word physically moves into the sentence */
.blank-panel{gap:12px!important}
.blank-sentence{font-size:clamp(27px,3.3vw,42px)!important;padding:17px 22px!important;box-shadow:0 8px 22px rgba(22,60,47,.045)}
.blank-sentence .blank-gap{min-width:155px!important;padding:0 7px 3px!important;transition:.2s background,.2s color,.2s border-color}
.blank-sentence .blank-gap.filled{border-bottom-color:#248142!important;color:#176b39!important;background:#eaf7eb;border-radius:9px;animation:blankPop .36s ease both}
@keyframes blankPop{0%{transform:scale(.88)}65%{transform:scale(1.08)}100%{transform:scale(1)}}
.blank-choices{gap:12px!important}.blank-choice{padding:12px 20px!important;font-size:16px!important;border-radius:14px!important;min-width:92px;transition:.18s transform,.18s opacity,.18s background}
.blank-choice.moving,.blank-choice.used-choice{opacity:.22;transform:scale(.92)}
.flying-word{position:fixed;z-index:9999;display:flex;align-items:center;justify-content:center;border:2px solid #268144;background:#e8f6e9;color:#0b3556;border-radius:14px;font-weight:950;font-size:16px;box-shadow:0 15px 34px rgba(24,73,45,.22);pointer-events:none;transition:transform .48s cubic-bezier(.2,.8,.25,1),opacity .48s ease}
.blank-feedback{min-height:42px!important;border-radius:13px;padding:10px 14px!important;font-size:14px!important;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}
.blank-feedback.ready{color:#60726a}.blank-feedback.success{background:#eaf7ec;color:#176b39;border:1px solid #bcdcc2}.blank-feedback.retry{background:#fff3e5;color:#94501e;border:1px solid #efd1aa}.blank-feedback span{font-weight:950;color:#a77a00}
#nextBlank{min-width:185px!important;min-height:48px!important;font-size:15px!important;border-radius:14px!important}

/* ACHIEVEMENTS: visual collectible cards with progress instead of faded emojis */
.achievement-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.achievement{opacity:1!important;filter:none!important;min-height:285px!important;padding:0!important;overflow:hidden!important;display:grid!important;grid-template-rows:116px 1fr!important;align-items:stretch!important;justify-content:stretch!important;text-align:left!important;border-radius:22px!important;background:#fff!important;position:relative}
.achievement-art{height:116px;overflow:hidden;background:#e8eeea;position:relative}
.achievement-art::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,46,76,.28),transparent 65%)}
.achievement-art img{width:100%;height:100%;object-fit:cover;display:block}
.achievement.locked .achievement-art img{filter:saturate(.38) brightness(.88)}
.achievement-copy{padding:14px 15px 15px;display:flex;flex-direction:column;min-width:0}
.achievement-state{align-self:flex-start;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:950;letter-spacing:.08em;color:#64716b;background:#edf1ed;margin-bottom:6px}
.achievement.in-progress .achievement-state{background:#fff2d9;color:#8a6214}.achievement.unlocked .achievement-state{background:#e2f3e4;color:#176b39}
.achievement h3{font-size:22px!important;margin:2px 0 5px!important;line-height:1.04!important}.achievement p{font-size:12px!important;line-height:1.35!important;min-height:33px}
.achievement-progress{height:8px;border-radius:999px;background:#e7ece8;overflow:hidden;margin-top:auto}.achievement-progress i{display:block;height:100%;background:linear-gradient(90deg,#24763f,#78a83e);border-radius:inherit}
.achievement-count{display:flex;justify-content:space-between;align-items:center;margin-top:7px;color:#617169;font-size:11px;font-weight:900}.achievement-count b{color:#238044;font-size:17px}
.achievement.unlocked{border-color:#9ec7a4!important;box-shadow:0 12px 30px rgba(32,107,58,.10)!important}.achievement.in-progress{border-color:#dfc991!important}

/* EXPLORER: show all 8 choices immediately on desktop */
.multi-avatar-layout{grid-template-columns:minmax(610px,1.25fr) minmax(350px,.75fr)!important}
.avatar-option-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.avatar-option{padding:6px!important;border-radius:15px!important}.avatar-option img{aspect-ratio:4/5!important;border-radius:11px!important}.avatar-option span{margin-top:6px!important;padding:5px 8px!important;min-width:0!important;font-size:10px!important}
.explorer-choice-card{padding:16px!important}.explorer-choice-top h3{font-size:30px!important}.explorer-choice-top .gear-intro{margin-bottom:8px!important}
.explorer-portrait-wrap{height:380px!important;padding:12px!important}.explorer-gear-panel{padding:16px!important}.explorer-preview-head h3{font-size:31px!important}.explorer-gear-kicker{margin-top:10px!important}.gear-grid{gap:7px!important}.gear-item{min-height:62px!important;padding:7px!important}

/* ADVENTURE MAP: obvious path forward + cleaner full avatar */
.map-help-card{width:315px!important;padding:15px 16px 16px!important;border:2px solid #d5b55d!important}.map-help-card strong{font-size:28px!important}.map-help-card .adventure-primary{min-height:46px!important;font-size:14px!important}
.checkpoint.current .checkpoint-copy{box-shadow:0 0 0 2px rgba(255,220,117,.65),0 8px 20px rgba(0,0,0,.22)}
.checkpoint.current .checkpoint-copy small{color:#fff3ba!important;font-weight:900}
.map-avatar{transform:translate(-50%,-50%);transition:left .5s ease,top .5s ease!important}

/* BADGES: full artwork with breathing room; no visible crop look */
.adventure-badge-grid{gap:18px!important}.adv-badge{min-height:270px!important;background:linear-gradient(180deg,#fffaf0,#f1e3c9)!important;border:1px solid #ceb786!important}
.adv-badge img{width:min(100%,180px)!important;height:170px!important;object-fit:contain!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:auto}
.reward-badge-wrap{width:180px!important;height:180px!important;border:0!important;border-radius:18px!important;background:#f5ead3!important;box-shadow:none!important;padding:8px!important}.reward-badge-wrap img{object-fit:contain!important;border-radius:10px}
.adventure-feature-card img{width:128px!important;height:138px!important;object-fit:contain!important;border:0!important;background:#f4e9d2!important;padding:6px!important;border-radius:18px!important}
.adventure-kingfisher{object-fit:contain!important}

/* FOLLOW THE ROUTE: moving tourist, visible route and mission feedback */
.pro-route-layout{grid-template-columns:minmax(520px,1.2fr) minmax(360px,.8fr)!important;gap:18px!important}
.route-map-shell{padding:12px!important;background:linear-gradient(180deg,#fffdf8,#f3ede0)!important}
.route-map-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 4px 10px;color:#153d50}.route-map-head small{display:block;font-size:10px;letter-spacing:.13em;font-weight:950;color:#8a6a2f}.route-map-head strong{display:block;font-family:Georgia,serif;font-size:21px;margin-top:2px}.route-map-head span{border-radius:999px;background:#0b4d5b;color:white;padding:8px 12px;font-weight:950;font-size:13px}
.town-map{aspect-ratio:1.22!important;background:linear-gradient(90deg,transparent 44%,rgba(183,167,129,.55) 44%,rgba(183,167,129,.55) 51%,transparent 51%),linear-gradient(transparent 44%,rgba(183,167,129,.55) 44%,rgba(183,167,129,.55) 51%,transparent 51%),radial-gradient(circle at 20% 75%,#bcd7a5 0 13%,transparent 14%),radial-gradient(circle at 80% 25%,#c8dcad 0 11%,transparent 12%),#eaf1dd!important;border:2px solid #d4c7a5!important;box-shadow:inset 0 0 0 6px rgba(255,255,255,.45)}
.route-trace{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}.route-trace-base,.route-trace-progress{fill:none;stroke-linecap:round;stroke-linejoin:round}.route-trace-base{stroke:rgba(255,255,255,.76);stroke-width:1.5;stroke-dasharray:2.4 2.4;filter:drop-shadow(0 1px 2px rgba(0,0,0,.18))}.route-trace-progress{stroke:#efb52f;stroke-width:2.6;filter:drop-shadow(0 2px 3px rgba(91,63,3,.28));transition:.6s}
.place{z-index:3!important;padding:8px 10px!important;font-size:11px!important;border-radius:11px!important;border:1px solid #cdbf9c!important;background:rgba(255,253,246,.95)!important;box-shadow:0 5px 12px rgba(63,61,40,.11)!important}.restaurant,.bus{border-color:#8fb989!important}.bus{background:#edf8ee!important}
.traveller{z-index:6!important;width:64px!important;height:86px!important;margin:0!important;color:transparent!important;transform:translate(-50%,-50%)!important;transition:left .72s cubic-bezier(.2,.8,.25,1),top .72s cubic-bezier(.2,.8,.25,1)!important;filter:drop-shadow(0 7px 7px rgba(0,0,0,.20))}.traveller img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}
.pro-route-panel{padding:20px!important;background:linear-gradient(180deg,#fff,#f7faf7)!important;gap:13px!important}.route-progress{height:9px;border-radius:999px;background:#e2e9e4;overflow:hidden}.route-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1c7a44,#9bbb3b);transition:.5s}.route-stage-label{margin:0!important;font-size:11px!important;letter-spacing:.13em;color:#8b6a28!important;font-weight:950}.route-step{font-size:30px!important;line-height:1.18!important}.route-audio-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.route-audio-row span{font-size:11px;color:#6a7b72}.route-listen{border:1px solid #b8d4c0;background:#eaf6ec;color:#176b39;border-radius:12px;padding:10px 13px;font-weight:900}.route-buttons{gap:10px!important}.route-choice{padding:13px 12px!important;font-size:14px!important;border-radius:13px!important;transition:.17s transform,.17s background}.route-choice:hover{transform:translateY(-1px);background:#f2f8f3}.route-choice.wrong{background:#fff0eb!important;border-color:#dc8a77!important}.route-feedback{min-height:58px!important;border-radius:14px!important;padding:12px 14px!important;font-size:13px!important;line-height:1.4}.route-feedback.ready{background:#f3f6f4;color:#64746c}.route-feedback.success{background:#e8f6ea;color:#176b39;border:1px solid #b9dabe}.route-feedback.retry{background:#fff1e6;color:#99511f;border:1px solid #efd0ad}.route-feedback span{color:#a77a00;font-weight:950}

@media(max-width:1100px){
 .home-secondary{grid-template-columns:1fr!important}.game-grid{grid-template-columns:repeat(3,1fr)!important}.achievement-grid{grid-template-columns:repeat(3,1fr)!important}.multi-avatar-layout{grid-template-columns:1fr!important}.avatar-option-grid{grid-template-columns:repeat(4,1fr)!important}.pro-route-layout{grid-template-columns:1fr!important}
}
@media(max-width:780px){
 :root{--bottom:72px}.bottom-nav{overflow-x:auto!important;justify-content:flex-start!important;padding:5px 7px!important}.bottom-nav button{flex:0 0 102px!important;min-width:102px!important}.bottom-nav .nav-ico{width:29px!important;height:29px!important}.bottom-nav button small{font-size:11px!important}.home-category-stats{grid-template-columns:repeat(2,1fr)!important}.game-grid{grid-template-columns:repeat(2,1fr)!important}.game-tile{min-height:238px!important}.achievement-grid{grid-template-columns:repeat(2,1fr)!important}.avatar-option-grid{grid-template-columns:repeat(2,1fr)!important}.explorer-portrait-wrap{height:360px!important}.pro-route-layout{grid-template-columns:1fr!important}.route-map-head strong{font-size:18px}.route-step{font-size:25px!important}
}
@media(max-width:520px){
 .home-category-stats{grid-template-columns:1fr!important}.home-category-stats button:last-child{grid-column:auto!important}.game-grid{grid-template-columns:1fr!important}.achievement-grid{grid-template-columns:1fr!important}.avatar-option-grid{grid-template-columns:repeat(2,1fr)!important}.game-tile{min-height:230px!important}.traveller{width:52px!important;height:72px!important}.place{font-size:9px!important;padding:6px!important}.route-buttons{grid-template-columns:1fr!important}
}
.game-tile i::before{content:none!important}
.stage-feedback.good{background:#e8f6ea!important;border:1px solid #b9dabe!important;color:#176b39!important}.stage-feedback.bad{background:#fff1e6!important;border:1px solid #efd0ad!important;color:#91501e!important}.stage-feedback strong{font-size:1.06em}


/* V5.24 polish */
.bottom-nav{height:auto!important;min-height:82px!important;padding:10px max(14px,calc((100vw - 1100px)/2)) 12px!important;background:rgba(250,248,242,.98)!important;border-top:1px solid #d8e2de!important;box-shadow:0 -10px 24px rgba(13,39,58,.08)!important;backdrop-filter:blur(10px)!important;gap:10px!important;transform:translateX(-50%)!important}
.bottom-nav button{min-width:0!important;flex:1 1 0!important;background:transparent!important;border-radius:18px!important;padding:8px 6px 10px!important;gap:6px!important;color:#173d56!important;position:relative!important}
.bottom-nav .nav-ico{width:44px!important;height:44px!important;border-radius:14px!important;padding:7px!important;background:#eef3f4!important;border:1px solid #d6e4e7!important;color:#1e5673!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important}
.bottom-nav .nav-ico svg{stroke-width:2.15!important}
.bottom-nav button small{font-size:14px!important;font-weight:900!important;color:inherit!important;line-height:1.1!important}
.bottom-nav button.active-nav{background:linear-gradient(180deg,#0f4864,#0a3853)!important;color:#fff!important;box-shadow:0 12px 24px rgba(9,45,66,.18)!important}
.bottom-nav button.active-nav .nav-ico{background:#f9eed2!important;border-color:#efd8a1!important;color:#0f4965!important;transform:none!important}
.bottom-nav button.active-nav::after{display:none!important}
.bottom-nav button:hover{transform:translateY(-1px)}
.bottom-nav button:hover .nav-ico{background:#e7eff2!important}

.word-bank{gap:10px!important;margin-bottom:18px!important}.word-chip{padding:9px 14px!important;font-size:14px!important}
.dialogue-row{grid-template-columns:84px 1fr!important;font-size:16px!important;line-height:1.65!important}.blank-select{font-size:15px!important;padding:7px 10px!important;border-radius:10px!important}
.feedback{font-size:15px!important;line-height:1.45!important}

.sentence-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.sentence-tools button{border:1px solid #c7d7ce;background:#fff;border-radius:14px;padding:12px 14px;font-weight:900;color:#20485b;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 10px rgba(11,46,39,.06)}.sentence-tools #nextLearnWord{background:linear-gradient(180deg,#127247,#0c5d39);color:#fff;border-color:#0f6a41}.recording-area{margin-top:10px!important;min-height:56px!important;border-radius:14px!important;background:#f4f7f4!important;padding:10px 12px!important;color:#426057!important;font-size:14px!important;max-height:none!important}.recording-area audio{max-width:100%;height:34px!important}.recording-result strong{display:block;margin-bottom:6px;color:#173d56}

.game-tile{min-height:260px!important;padding:18px!important}.game-tile b{font-size:18px!important}.game-tile small{font-size:15px!important;line-height:1.35!important}.game-tile i{font-size:16px!important;padding:9px 14px!important;border-radius:999px!important}
.game-icon{width:56px!important;height:56px!important}.game-icon svg{width:28px!important;height:28px!important}.game-thumb{height:118px!important}

.achievement-grid{gap:18px!important}.achievement{border-radius:24px!important;overflow:hidden!important;box-shadow:0 10px 26px rgba(21,55,47,.08)!important;border:1px solid #dde7e2!important;background:white!important}.achievement-art{height:180px!important;position:relative!important}.achievement-art::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,43,61,.08),rgba(7,43,61,.22))}.achievement-copy{padding:16px 18px 18px!important}.achievement h3{font-size:26px!important}.achievement p{font-size:15px!important;line-height:1.45!important}.achievement-state{font-size:11px!important;letter-spacing:.13em!important}

.avatar-option-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}.avatar-option span{font-size:14px!important;padding:10px 0!important}.explorer-portrait-wrap{height:360px!important}

.route-trace-base{stroke:rgba(239,181,47,.16)!important;stroke-width:2.2!important;stroke-dasharray:none!important}.route-trace-progress{stroke:#efb52f!important;stroke-width:2.9!important;filter:drop-shadow(0 2px 3px rgba(91,63,3,.28))!important}
.traveller{z-index:6!important;width:60px!important;height:92px!important;margin:0!important;color:transparent!important;transform:translate(-50%,-92%)!important;transition:left .75s cubic-bezier(.2,.8,.25,1),top .75s cubic-bezier(.2,.8,.25,1)!important;filter:none!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.traveller img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;display:block!important;filter:drop-shadow(0 8px 10px rgba(0,0,0,.18))}.traveller.moving img{animation:travellerWalk .28s ease-in-out 0s 5 alternate}@keyframes travellerWalk{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-4px) rotate(2deg)}}
.route-feedback{font-size:15px!important;line-height:1.45!important}.route-feedback strong{display:block;margin-bottom:4px}.route-step{font-size:32px!important}

.reward-card{max-width:820px!important;gap:10px!important;padding-top:26px!important}.reward-actions-top{margin:6px auto 10px!important;justify-content:center!important;position:sticky!important;top:12px!important;z-index:3!important}.reward-actions-top .adventure-primary{min-width:260px!important}.reward-summary{max-width:680px!important;margin:0 auto!important}

.stage-feedback.good{background:#e8f7ea!important;border:1px solid #b5debf!important;color:#18653a!important}.stage-feedback.bad{background:#fff0e6!important;border:1px solid #e5b08c!important;color:#935120!important}.stage-feedback span{font-weight:900;color:#8b6b1e}.stage-feedback strong{font-size:1.06em}
.blank-feedback.success strong,.blank-feedback.retry strong{display:block;margin-bottom:2px}

.category-question{font-size:58px!important;line-height:1!important;margin-bottom:26px!important}.category-buttons{gap:12px!important}.category-choice{min-height:54px!important;font-size:18px!important;padding:12px 16px!important;border-radius:16px!important}

.builder-answer{min-height:86px!important;font-size:18px!important;padding:12px 14px!important}.builder-placeholder{font-size:22px!important}.builder-bank{gap:10px!important}.builder-token,.builder-chosen,.stage-token{font-size:18px!important;padding:12px 16px!important;border-radius:14px!important}.builder-actions button{font-size:16px!important;padding:11px 16px!important}.builder-feedback{font-size:16px!important;min-height:44px!important}

.translation-stage h3,.translation-prompt{font-size:clamp(40px,4vw,54px)!important;line-height:1.1!important}.translation-grid{gap:12px!important}.translation-choice{font-size:18px!important;min-height:54px!important;border-radius:16px!important}.translation-choice b{font-size:18px!important}

@media(max-width:1120px){.bottom-nav{gap:8px!important}.bottom-nav .nav-ico{width:40px!important;height:40px!important}.bottom-nav button small{font-size:13px!important}.avatar-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:720px){.bottom-nav{overflow-x:auto!important;justify-content:flex-start!important;padding:8px 8px 10px!important}.bottom-nav button{flex:0 0 104px!important}.sentence-tools{grid-template-columns:1fr}.route-step{font-size:26px!important}.dialogue-row{grid-template-columns:1fr!important}}

/* =========================================================
   V5.24 — consolidated polish pass
   ========================================================= */

/* Bottom navigation: lighter, premium, larger and easier to read */
.bottom-nav{
  height:auto!important;
  min-height:82px!important;
  padding:9px max(14px,calc((100vw - 1120px)/2)) 11px!important;
  background:rgba(250,249,245,.98)!important;
  border-top:1px solid #dbe3df!important;
  box-shadow:0 -10px 26px rgba(18,52,66,.08)!important;
  gap:10px!important;
}
.bottom-nav button{
  min-width:0!important;
  flex:1 1 0!important;
  color:#173f58!important;
  background:transparent!important;
  border-radius:18px!important;
  padding:7px 7px 9px!important;
  gap:5px!important;
  transition:transform .18s ease,background .18s ease,color .18s ease!important;
}
.bottom-nav .nav-ico{
  width:42px!important;
  height:42px!important;
  padding:8px!important;
  border-radius:14px!important;
  background:#eef3f2!important;
  color:#1d6072!important;
  border:1px solid #d4e1de!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.bottom-nav .nav-ico svg{stroke-width:2.35!important}
.bottom-nav button small{
  font-size:14px!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:.005em!important;
  color:inherit!important;
}
.bottom-nav button.active-nav{
  color:#fff!important;
  background:linear-gradient(180deg,#144d66,#0b3d57)!important;
  box-shadow:0 9px 20px rgba(11,57,81,.17)!important;
}
.bottom-nav button.active-nav .nav-ico{
  color:#0d4d61!important;
  background:#f8edcf!important;
  border-color:#e7d29c!important;
  transform:none!important;
}
.bottom-nav button.active-nav::after{display:none!important}
@media (hover:hover) and (pointer:fine){.bottom-nav button:hover{transform:translateY(-2px)!important;background:#edf3f1!important}.bottom-nav button.active-nav:hover{background:linear-gradient(180deg,#144d66,#0b3d57)!important}}

/* Vocabulary: model sentence is no longer an automatic next action */
.sentence-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:7px}
.sentence-tools button{
  min-height:38px;border:1px solid #c9d9cf;background:#fff;color:#214e5c;border-radius:12px;
  font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px
}
.sentence-tools #nextLearnWord{background:linear-gradient(180deg,#279846,#1f7f3b);color:#fff;border-color:#217f3b}
.recording-area{margin-top:7px!important;min-height:42px!important;padding:7px 10px!important;border-radius:11px!important;background:#f2f6f3!important;color:#3d6253!important}
.recording-result{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px}.recording-result strong{font-size:11px}.recording-result audio{width:100%;height:30px}

/* Explorer gallery: all eight visible on desktop */
.avatar-option-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.avatar-option{padding:6px!important}.avatar-option img{aspect-ratio:4/5!important;object-fit:contain!important}.avatar-option span{font-size:11px!important;margin-top:5px!important;padding:5px 8px!important}
.explorer-portrait-wrap{height:335px!important}

/* Stage feedback: shorter and more game-like */
.stage-feedback{min-height:58px!important;padding:12px 14px!important;border-radius:14px!important;font-size:15px!important;line-height:1.3!important}
.stage-feedback.good{background:#e8f7ea!important;border:1px solid #b5debf!important;color:#176438!important}
.stage-feedback.bad{background:#fff1e7!important;border:1px solid #e4b28d!important;color:#8c4f24!important}
.stage-feedback strong{display:inline-block;margin-right:4px;font-size:17px}.stage-feedback span{font-weight:950;color:#8b6a1f}

/* Reward screen: continue control is visible before the vocabulary cards */
.reward-card{max-width:820px!important;padding:22px 24px 24px!important}
.reward-actions-top{display:flex!important;justify-content:center!important;gap:10px!important;margin:8px 0 12px!important}
.reward-actions-top .adventure-primary{min-width:260px!important;font-size:15px!important;padding:13px 18px!important}
.reward-actions-top .adventure-secondary{font-size:14px!important;padding:12px 16px!important}
.reward-summary{font-size:16px!important}.reward-stars{margin:5px 0!important}.reward-words{margin-top:8px!important}

/* Activity feedback */
.blank-feedback{font-size:15px!important;line-height:1.3!important;min-height:54px!important}.blank-feedback strong{font-size:17px!important}.blank-feedback span{font-weight:950;color:#aa7a00}

/* Category Challenge, Sentence Builder and Spanish → English: make the task readable */
.category-game-word,.translation-spanish{font-size:clamp(40px,5vw,64px)!important}
.category-game-choice,.translation-choice{
  min-height:58px!important;padding:14px 14px!important;font-size:clamp(18px,2vw,23px)!important;border-radius:16px!important
}
.category-game-choices{gap:11px!important}.translation-choices{gap:12px!important;width:min(860px,100%)!important}
.builder-answer{min-height:70px!important;padding:12px!important;border-radius:17px!important}.builder-placeholder{font-size:20px!important}
.builder-bank{gap:11px!important}.builder-token,.builder-chosen{padding:12px 16px!important;font-size:clamp(18px,2vw,23px)!important;border-radius:13px!important}
.builder-controls button,#undoBuilder,#resetBuilder{font-size:15px!important;min-height:42px!important;padding:9px 15px!important}

/* Follow the Route: continuous trail, clean cut-out traveller and walking motion */
.route-trace-base{stroke:rgba(239,181,47,.10)!important;stroke-width:2!important;stroke-dasharray:none!important}
.route-trace-progress{stroke:#efb52f!important;stroke-width:2.9!important;stroke-dasharray:none!important;stroke-linecap:round!important;stroke-linejoin:round!important;transition:.65s ease!important}
.traveller{
  width:62px!important;height:92px!important;background:transparent!important;border:0!important;box-shadow:none!important;
  overflow:visible!important;transform:translate(-50%,-91%)!important;transition:left .72s cubic-bezier(.22,.8,.24,1),top .72s cubic-bezier(.22,.8,.24,1)!important
}
.traveller img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;filter:drop-shadow(0 7px 9px rgba(0,0,0,.18))!important}
.traveller.moving img{animation:travellerWalk .24s ease-in-out 0s 6 alternate!important}
@keyframes travellerWalk{from{transform:translateY(0) rotate(-1.8deg)}to{transform:translateY(-5px) rotate(1.8deg)}}
.route-step{font-size:32px!important}.route-feedback{font-size:15px!important}.route-feedback strong{font-size:17px!important;display:block;margin-bottom:3px}

/* Keep readable sizes even on short laptop screens */
@media(max-height:650px){
 .category-game-word,.translation-spanish{font-size:38px!important}
 .category-game-choice,.translation-choice{font-size:18px!important;padding:10px 12px!important;min-height:48px!important}
 .builder-placeholder{font-size:18px!important}.builder-token,.builder-chosen{font-size:18px!important;padding:9px 12px!important}
 .builder-answer{min-height:58px!important}.sentence-tools button{min-height:34px;font-size:11px}
 .reward-card{padding-top:16px!important}.reward-badge-wrap{width:105px!important;height:118px!important}.reward-card h2{font-size:30px!important}.reward-word img{height:64px!important}
}
@media(max-width:1120px){
 .bottom-nav button small{font-size:13px!important}.bottom-nav .nav-ico{width:39px!important;height:39px!important}
 .avatar-option-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:780px){
 .bottom-nav{overflow-x:auto!important;justify-content:flex-start!important;padding:7px 7px 9px!important}.bottom-nav button{flex:0 0 108px!important}.bottom-nav button small{font-size:12px!important}
 .avatar-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sentence-tools{grid-template-columns:1fr}.route-step{font-size:26px!important}
 .category-game-choice,.translation-choice{font-size:17px!important}.builder-token,.builder-chosen{font-size:17px!important}
}
:root{--bottom:84px!important}
.bottom-nav button:nth-child(1) .nav-ico{background:#edf6f2!important;color:#176d59!important;border-color:#cfe5dc!important}
.bottom-nav button:nth-child(2) .nav-ico{background:#eef3fa!important;color:#2f6591!important;border-color:#d3dfef!important}
.bottom-nav button:nth-child(3) .nav-ico{background:#f4eef9!important;color:#7953a4!important;border-color:#e1d5ee!important}
.bottom-nav button:nth-child(4) .nav-ico{background:#fff2de!important;color:#a26021!important;border-color:#efdbba!important}
.bottom-nav button:nth-child(5) .nav-ico{background:#eef5f8!important;color:#376b7f!important;border-color:#d4e5eb!important}
.bottom-nav button:nth-child(6) .nav-ico{background:#fff5d9!important;color:#9a7118!important;border-color:#efdfa9!important}
.bottom-nav button.active-nav .nav-ico{background:#fff4d7!important;color:#0f4e63!important;border-color:#ecd08a!important}
#builderUndo,#builderReset{font-size:15px!important;min-height:42px!important;padding:9px 15px!important}


/* V5.24 text-size follow-up */
.category-game-word{font-size:clamp(44px,5.4vw,66px)!important;line-height:1.04!important;margin-bottom:8px!important}
.category-game-choices{gap:12px!important}
.category-game-choice{min-height:56px!important;font-size:18px!important;padding:12px 14px!important;border-radius:16px!important}
.category-game-panel{grid-template-rows:minmax(130px,42%) auto auto minmax(44px,auto) auto!important;gap:12px!important}
.translation-spanish{font-size:clamp(44px,5.2vw,60px)!important;line-height:1.08!important;margin:6px auto 10px!important}
.translation-choices{gap:12px!important;width:min(860px,100%)!important}
.translation-choice{font-size:19px!important;min-height:58px!important;padding:12px 16px!important;border-radius:16px!important}
.translation-panel{grid-template-rows:minmax(130px,42%) auto auto minmax(44px,auto) auto!important;gap:12px!important}
.builder-panel{grid-template-rows:minmax(100px,31%) auto 1fr minmax(42px,auto) auto!important;gap:12px!important}
.builder-answer{min-height:88px!important;padding:12px 14px!important}
.builder-placeholder{font-size:22px!important}
.builder-bank{gap:10px!important}
.builder-token,.builder-chosen{font-size:18px!important;padding:12px 16px!important;border-radius:14px!important}
.game-button-row button{font-size:16px!important;padding:11px 16px!important;border-radius:14px!important}
#builderFeedback,#translationFeedback,#categoryGameFeedback{font-size:16px!important;min-height:42px!important}
@media(max-width:780px){.category-game-word,.translation-spanish{font-size:clamp(34px,8vw,46px)!important}.category-game-choice,.translation-choice,.builder-token,.builder-chosen{font-size:16px!important}}
@media(max-height:650px){.category-game-word,.translation-spanish{font-size:clamp(34px,4.8vw,44px)!important}.category-game-choice,.translation-choice{font-size:15px!important;padding:10px 12px!important}.builder-token,.builder-chosen{font-size:15px!important;padding:10px 12px!important}.builder-answer{min-height:72px!important}}

/* =========================================================
   V5.25 — custom navigation, hidden route answer, large quiz
   ========================================================= */

/* Aysén navigation family: no pastel icon boxes, no template look */
.bottom-nav{
  min-height:78px!important;
  height:auto!important;
  padding:8px max(14px,calc((100vw - 1080px)/2)) 10px!important;
  gap:6px!important;
  background:rgba(252,251,247,.985)!important;
  border-top:1px solid #dbe4df!important;
  box-shadow:0 -8px 22px rgba(15,50,65,.07)!important;
}
.bottom-nav button{
  min-width:0!important;
  flex:1 1 0!important;
  padding:6px 8px 7px!important;
  gap:3px!important;
  color:#173f58!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
}
.bottom-nav .nav-ico,
.bottom-nav button:nth-child(1) .nav-ico,
.bottom-nav button:nth-child(2) .nav-ico,
.bottom-nav button:nth-child(3) .nav-ico,
.bottom-nav button:nth-child(4) .nav-ico,
.bottom-nav button:nth-child(5) .nav-ico,
.bottom-nav button:nth-child(6) .nav-ico{
  width:39px!important;
  height:39px!important;
  padding:2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#315f6d!important;
  box-shadow:none!important;
}
.bottom-nav .nav-ico svg{
  width:100%!important;
  height:100%!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.75!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.bottom-nav button small{
  font-size:15px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.005em!important;
  color:inherit!important;
}
.bottom-nav button.active-nav{
  color:#0c5360!important;
  background:transparent!important;
  box-shadow:none!important;
}
.bottom-nav button.active-nav .nav-ico{
  background:transparent!important;
  color:#bb8120!important;
  border:0!important;
  transform:translateY(-1px)!important;
}
.bottom-nav button.active-nav::after{
  content:''!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  bottom:1px!important;
  width:34px!important;
  height:3px!important;
  transform:translateX(-50%)!important;
  border-radius:99px!important;
  background:#bb8120!important;
}
@media (hover:hover) and (pointer:fine){
 .bottom-nav button:hover{transform:translateY(-1px)!important;background:#f2f5f1!important}
 .bottom-nav button.active-nav:hover{background:#f7f3e9!important}
}

/* Sound control for natural-voice celebrations */
.sound-toggle{
  width:38px;height:38px;border-radius:50%;border:1px solid #d7e2dc;background:#fff;color:#1c6371;
  display:grid;place-items:center;padding:8px;box-shadow:0 4px 10px rgba(15,55,67,.07)
}
.sound-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sound-toggle.muted{color:#8b7a6c;background:#f2eee7}

/* Follow the Route: never reveal the answer path before the learner earns it */
.route-trace-base{display:none!important}
.route-trace-progress{stroke:#efb52f!important;stroke-width:2.8!important;stroke-dasharray:none!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* Mini Quiz: make the task the visual focus instead of a tiny block in white space */
#quiz .game-panel.quiz-panel{
  padding:12px 26px 15px!important;
  align-items:center!important;
  justify-content:center!important;
}
#quiz .quiz-panel>div{width:min(100%,860px)!important}
#quizPlay{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:0!important;
}
#quizPlay .quiz-progress{height:9px!important;flex:0 0 9px!important;margin-bottom:2px!important}
#quizPlay .quiz-type{font-size:15px!important;line-height:1.2!important;margin:0!important;font-weight:850!important}
#quizPlay .quiz-image{
  width:min(460px,56vw)!important;
  height:155px!important;
  flex:0 0 155px!important;
  margin:1px auto!important;
  border-radius:16px!important;
  object-fit:cover!important;
}
#quizPlay .quiz-question{
  font-size:clamp(34px,4vw,44px)!important;
  line-height:1.08!important;
  margin:4px auto 2px!important;
  max-width:850px!important;
}
#quizPlay .quiz-choices{gap:10px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#quizPlay .quiz-choice{
  min-height:52px!important;
  padding:12px 16px!important;
  font-size:18px!important;
  line-height:1.15!important;
  border-radius:14px!important;
}
#quizPlay .compact-feedback{min-height:32px!important;height:auto!important;padding:5px!important;font-size:15px!important}
#quizPlay .centre-action{margin:2px auto 0!important;padding:10px 20px!important;font-size:15px!important;border-radius:12px!important}
#quiz .toolbar-title strong{font-size:32px!important}
#quiz .toolbar-score{min-width:82px!important;height:40px!important;font-size:15px!important}

@media(max-height:650px){
  #quiz .game-panel.quiz-panel{padding:7px 18px 9px!important}
  #quizPlay{gap:5px!important}
  #quizPlay .quiz-progress{height:7px!important;flex-basis:7px!important}
  #quizPlay .quiz-type{font-size:13px!important}
  #quizPlay .quiz-image{width:min(390px,50vw)!important;height:118px!important;flex-basis:118px!important}
  #quizPlay .quiz-question{font-size:31px!important;line-height:1.05!important;margin:2px auto!important}
  #quizPlay .quiz-choices{gap:7px!important}
  #quizPlay .quiz-choice{min-height:44px!important;padding:8px 12px!important;font-size:16px!important}
  #quizPlay .compact-feedback{min-height:25px!important;font-size:13px!important;padding:2px!important}
  #quizPlay .centre-action{padding:7px 16px!important;font-size:13px!important}
  #quiz .toolbar-title strong{font-size:27px!important}
}

@media(max-width:780px){
  .bottom-nav{overflow-x:auto!important;justify-content:flex-start!important;padding:7px 5px 9px!important}
  .bottom-nav button{flex:0 0 102px!important}
  .bottom-nav .nav-ico{width:35px!important;height:35px!important}
  .bottom-nav button small{font-size:12px!important}
  #quizPlay .quiz-image{width:min(430px,80vw)!important}
  #quizPlay .quiz-question{font-size:clamp(29px,7vw,38px)!important}
  #quizPlay .quiz-choice{font-size:16px!important}
}

/* =========================================================
   V5.26 — adventure mastery flow + bespoke Aysén nav icons
   ========================================================= */
.bottom-nav{
  min-height:82px!important;
  padding:9px max(12px,calc((100vw - 1120px)/2)) 10px!important;
  gap:4px!important;
  background:rgba(252,251,247,.985)!important;
  border-top:1px solid #d7e1dd!important;
  box-shadow:0 -7px 20px rgba(11,46,61,.075)!important;
}
.bottom-nav button{
  position:relative!important;
  min-width:0!important;
  flex:1 1 0!important;
  padding:5px 5px 8px!important;
  gap:2px!important;
  border-radius:13px!important;
  background:transparent!important;
  color:#153f55!important;
  box-shadow:none!important;
}
.bottom-nav .nav-ico,
.bottom-nav button:nth-child(n) .nav-ico{
  width:50px!important;
  height:50px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#154c5d!important;
  box-shadow:none!important;
}
.bottom-nav .nav-ico svg{width:100%!important;height:100%!important;overflow:visible!important}
.bottom-nav .nav-main-fill{fill:#154c5d!important;stroke:none!important}
.bottom-nav .nav-main-stroke{fill:none!important;stroke:#154c5d!important;stroke-width:3.6!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.bottom-nav .nav-main-stroke.wide{stroke-width:4.4!important}
.bottom-nav .nav-gold{fill:#c68b25!important;stroke:none!important}
.bottom-nav .nav-gold-stroke{fill:none!important;stroke:#c68b25!important;stroke-width:3.6!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.bottom-nav .nav-cut{fill:none!important;stroke:#fbfaf5!important;stroke-width:3!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.bottom-nav .nav-cut-fill{fill:#fbfaf5!important;stroke:none!important}
.bottom-nav button small{font-size:15px!important;font-weight:900!important;line-height:1!important;letter-spacing:.005em!important;color:#173e55!important}
.bottom-nav button.active-nav{background:#f4efe2!important;color:#0d5360!important;box-shadow:inset 0 0 0 1px #e5d4ab!important}
.bottom-nav button.active-nav .nav-ico{transform:translateY(-2px) scale(1.06)!important}
.bottom-nav button.active-nav .nav-main-fill{fill:#0b5b62!important}
.bottom-nav button.active-nav .nav-main-stroke{stroke:#0b5b62!important}
.bottom-nav button.active-nav .nav-gold{fill:#d39a28!important}
.bottom-nav button.active-nav .nav-gold-stroke{stroke:#d39a28!important}
.bottom-nav button.active-nav::after{content:''!important;display:block!important;position:absolute!important;left:50%!important;bottom:2px!important;width:42px!important;height:4px!important;transform:translateX(-50%)!important;border-radius:99px!important;background:#c68b25!important}
@media (hover:hover) and (pointer:fine){.bottom-nav button:hover{background:#f4f6f0!important;transform:translateY(-1px)!important}.bottom-nav button.active-nav:hover{background:#f4efe2!important}}

/* Adventure checkpoints are mastery sequences: no hidden/manual next button. */
#adventureStage .stage-next{display:none!important}
.stage-feedback.checkpoint-retry{background:#fff0e8!important;border:1px solid #e7a778!important;border-radius:15px!important;padding:13px 15px!important;color:#8d431d!important}
.stage-feedback.good{background:#eaf7ec!important;border:1px solid #b8ddc1!important;border-radius:15px!important;padding:13px 15px!important;color:#17643a!important}
.stage-feedback strong{font-size:17px!important}.stage-feedback span{font-weight:900!important;color:#8b6b1e!important}

/* Keep challenge text large and readable on ordinary notebook screens. */
.category-game-word{font-size:clamp(48px,5.8vw,72px)!important}
.category-game-choice{font-size:20px!important;min-height:62px!important}
.translation-spanish{font-size:clamp(48px,5.6vw,68px)!important}
.translation-choice{font-size:21px!important;min-height:62px!important}
.builder-placeholder{font-size:22px!important}.builder-token,.builder-chosen{font-size:20px!important;padding:13px 17px!important}

@media(max-width:780px){
 .bottom-nav{overflow-x:auto!important;justify-content:flex-start!important;padding:7px 5px 9px!important}
 .bottom-nav button{flex:0 0 108px!important}
 .bottom-nav .nav-ico{width:42px!important;height:42px!important}
 .bottom-nav button small{font-size:12px!important}
 .category-game-choice,.translation-choice,.builder-token,.builder-chosen{font-size:17px!important}
}
@media(max-height:650px){
 .bottom-nav{min-height:70px!important;padding-top:5px!important;padding-bottom:6px!important}
 .bottom-nav .nav-ico{width:38px!important;height:38px!important}
 .bottom-nav button small{font-size:12px!important}
 .category-game-word,.translation-spanish{font-size:40px!important}
 .category-game-choice,.translation-choice{font-size:17px!important;min-height:50px!important}
 .builder-token,.builder-chosen{font-size:17px!important;padding:10px 13px!important}
}

/* =========================================================
   V5.28 — direct explorer launch flow
   ========================================================= */

/* Never crop the educational clue imagery. The source assets have now been
   cleaned, so contain keeps every animal, vehicle and landscape fully visible. */
.learn-image-wrap img,
.mature-card-photo img,
.game-thumb img,
.image-match-btn img,
.round-game-image,
.picture-choice img,
.blank-image,
#quizPlay .quiz-image,
.category-game-image,
.translation-image,
.builder-image,
.stage-image-panel img,
.reward-word img,
.backpack-word img{
  object-fit:contain!important;
  object-position:center center!important;
  background:#f4f1e8!important;
}
.mature-card-photo,.game-thumb{background:#f4f1e8!important}
.learn-image-wrap{background:#f4f1e8!important}

/* Explorer map marker: the character itself, never a pasted rectangular card. */
.map-avatar{
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  width:66px!important;
  height:98px!important;
}
.map-avatar.horse{width:96px!important;height:118px!important}
.map-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  background:transparent!important;
  filter:drop-shadow(0 8px 10px rgba(0,0,0,.26))!important;
}

/* Explorer selection is the actual gateway into the game. */
#saveExplorerBtn{font-size:16px!important;min-height:50px!important}

/* Final Summit must visibly feel harder than an ordinary checkpoint. */
#adventureStage .listen-clue-image{
  filter:saturate(.78) brightness(.78)!important;
  border:2px solid rgba(233,205,138,.7)!important;
}
#adventureStage .listen-clue-image + .stage-listen{
  transform:scale(1.07);
  background:linear-gradient(180deg,#c28a28,#966316)!important;
  border-color:#efd89c!important;
  box-shadow:0 8px 20px rgba(90,55,9,.28)!important;
}
.stage-feedback.checkpoint-retry{font-size:16px!important;font-weight:800!important}

/* Reward content stays intact and readable. */
.reward-word img,.backpack-word img{padding:4px!important}

@media(max-width:780px){
 .map-avatar{width:58px!important;height:86px!important}
 .map-avatar.horse{width:82px!important;height:104px!important}
}

/* V5.29 — reliable microphone recording + playback */
.recording-area .recording-result{display:grid!important;grid-template-columns:minmax(110px,auto) minmax(180px,1fr) auto!important;align-items:center!important;gap:10px!important}
.recording-area .recording-result strong{font-size:12px!important;color:#173d56!important}
.recording-area .recording-result audio{width:100%!important;min-width:0!important;height:34px!important}
.record-again{border:1px solid #c6d8cf;background:white;color:#20485b;border-radius:10px;min-height:34px;padding:5px 10px;font-size:11px;font-weight:900;white-space:nowrap}
.recording-live{display:grid;gap:3px}.recording-live strong{color:#a73535;font-size:13px}.recording-live span{font-weight:800;color:#173d56}.recording-live small,.mic-help small{display:block;margin-top:3px;color:#60756c}.mic-help{display:grid;gap:2px}.mic-help strong{color:#173d56}
@media(max-width:700px){.recording-area .recording-result{grid-template-columns:1fr!important}.record-again{width:100%}}

/* Audio status + safer recording state */
.audio-status{font-size:10px;font-weight:800;line-height:1.2;color:#416052;background:#f2f7f2;border:1px solid #d8e5da;border-radius:8px;padding:5px 8px;min-height:23px}
.audio-status.playing{color:#1f6e3d;background:#edf8ef;border-color:#cde4d1}
.audio-status.ready{color:#536b5c;background:#f7faf7}
.audio-status.warning{color:#7a5a18;background:#fff8e6;border-color:#ead7a4}
.audio-status.error{color:#9a4338;background:#fff0ed;border-color:#e7c5be}
.audio-panel button:disabled{cursor:default;opacity:.58}
#modelAudioPlayer,#dialogueAudioPlayer{display:none}

/* Dialogue listening controls */
.dialogue-audio-controls{margin-top:18px;padding:16px 18px;border:1px solid #cfe2d5;border-radius:18px;background:#f4faf6;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dialogue-audio-controls[hidden]{display:none!important}
.dialogue-audio-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.dialogue-audio-copy strong{color:#17462e;font-size:1rem}
.dialogue-audio-copy span{color:#5c6f66;font-size:.9rem}
.dialogue-audio-buttons{display:flex;gap:10px;flex-wrap:wrap}
.dialogue-row{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.dialogue-row.dialogue-speaking{background:#fff7d9;border-radius:12px;box-shadow:inset 4px 0 0 #d69d16;padding-top:7px;padding-bottom:7px}
@media (max-width:640px){.dialogue-audio-controls{align-items:stretch}.dialogue-audio-buttons{width:100%}.dialogue-audio-buttons button{flex:1 1 180px}}

/* =========================================================
   V5.36 — final QA fixes
   ========================================================= */

/* Activities are interactive controls, not selectable document text. This prevents
   accidental blue/grey browser text highlighting while learners tap or drag. */
body.immersive .screen,
body.immersive .game-panel,
body.immersive .blank-sentence,
body.immersive .stage-question-panel,
body.immersive .route-step,
body.immersive .builder-panel,
body.immersive .translation-panel,
body.immersive .category-game-panel{
  -webkit-user-select:none!important;
  user-select:none!important;
}
body.immersive input,
body.immersive textarea,
body.immersive select,
body.immersive [contenteditable="true"]{
  -webkit-user-select:text!important;
  user-select:text!important;
}

/* Adventure badge artwork is now normalised to a padded square. Never crop the
   medallion number, shield edge or name plate at any viewport size. */
.adventure-badge-grid{align-items:stretch!important}
.adv-badge{
  overflow:visible!important;
  min-height:330px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
.adv-badge img{
  width:min(100%,220px)!important;
  height:220px!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  overflow:visible!important;
  background:transparent!important;
  padding:0!important;
  margin:0 auto 5px!important;
}
.reward-badge-wrap{
  width:210px!important;
  height:210px!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
}
.reward-badge-wrap img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  overflow:visible!important;
  background:transparent!important;
  padding:0!important;
}

/* A long Summit model sentence must never push its controls below the visible
   app area. The stage itself becomes locally scrollable while the bottom nav stays put. */
#adventureStage.active{
  height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  padding-top:10px!important;
  padding-bottom:26px!important;
  scrollbar-gutter:stable;
}
#adventureStage .stage-shell{overflow:visible!important;margin-bottom:12px!important}
#adventureStage .stage-content{min-height:430px!important}
#adventureStage .stage-question-panel{justify-content:center!important;min-height:0!important;padding-bottom:26px!important}
#adventureStage .stage-builder-actions{position:sticky;bottom:0;z-index:3;background:linear-gradient(180deg,rgba(239,227,205,0),#efe3cd 26%);padding-top:18px;padding-bottom:4px;margin-top:6px!important}
#adventureStage .stage-feedback{flex:0 0 auto!important}

/* Keep the current map transition visually clear before every next checkpoint,
   including the final Cerro Castillo Summit. */
#mapCurrentBtn{min-height:48px!important;font-size:14px!important}

@media(max-width:780px){
  .adv-badge{min-height:265px!important}
  .adv-badge img{width:min(100%,175px)!important;height:175px!important}
  .reward-badge-wrap{width:170px!important;height:170px!important}
  #adventureStage .stage-content{min-height:0!important}
  #adventureStage .stage-question-panel{padding-bottom:34px!important}
}
@media(max-height:690px) and (min-width:781px){
  #adventureStage .stage-head{height:62px!important}
  #adventureStage .stage-content{grid-template-columns:minmax(250px,36%) 1fr!important;min-height:390px!important}
  #adventureStage .stage-image-panel{padding:12px!important}
  #adventureStage .stage-image-panel img{max-height:315px!important}
  #adventureStage .stage-question-panel{padding:16px 22px 24px!important;justify-content:flex-start!important}
  #adventureStage .stage-question-panel h3{font-size:clamp(25px,2.6vw,34px)!important;margin-bottom:12px!important}
  #adventureStage .stage-built{min-height:54px!important}
  #adventureStage .stage-token{font-size:16px!important;padding:9px 12px!important}
  #adventureStage .stage-builder-actions{padding-top:12px!important}
}


/* V5.36 — badge earned ceremony: reveal the new badge large, then visually
   store it in the selected Explorer. Replayed stages skip the full ceremony. */
.reward-card{min-height:520px}
.reward-stash{
  position:absolute;top:24px;right:24px;z-index:4;
  display:flex;align-items:center;gap:8px;min-width:142px;
  padding:7px 10px 7px 7px;border-radius:999px;
  background:rgba(255,255,255,.88);border:1px solid #d7c9aa;
  box-shadow:0 8px 22px rgba(33,61,53,.12);text-align:left;
}
.reward-stash[hidden]{display:none!important}
.reward-stash img{width:48px;height:48px;object-fit:contain;border-radius:50%;background:#f5ead3;padding:2px}
.reward-stash b{display:block;color:#143d4f;font-size:12px;line-height:1.1}
.reward-stash small{display:block;color:#5c7869;font-size:10px;margin-top:2px;white-space:nowrap}
.reward-badge-wrap{transition:width .68s cubic-bezier(.2,.8,.2,1),height .68s cubic-bezier(.2,.8,.2,1),transform .68s cubic-bezier(.2,.8,.2,1),opacity .45s ease!important}
.reward-badge-wrap.badge-earned-intro{
  width:300px!important;height:300px!important;transform:scale(1);opacity:1;
  animation:badgeEarnedPop .82s cubic-bezier(.18,.9,.28,1.15) both;
}
.reward-badge-wrap.badge-earned-stored{width:118px!important;height:118px!important;opacity:.9;transform:scale(.98)}
.reward-badge-ghost{object-fit:contain!important;border-radius:16px!important;will-change:transform,opacity;transform-origin:center center}
.reward-stash.badge-stash-pulse{animation:badgeStashPulse .62s ease-out}
@keyframes badgeEarnedPop{
  0%{transform:scale(.48) rotate(-5deg);opacity:0}
  58%{transform:scale(1.08) rotate(1.5deg);opacity:1}
  78%{transform:scale(.97) rotate(0)}
  100%{transform:scale(1);opacity:1}
}
@keyframes badgeStashPulse{0%{transform:scale(1)}45%{transform:scale(1.08)}100%{transform:scale(1)}}
@media(max-width:700px){
  .reward-stash{position:relative;top:auto;right:auto;width:max-content;margin:0 auto 8px}
  .reward-badge-wrap.badge-earned-intro{width:240px!important;height:240px!important}
  .reward-badge-wrap.badge-earned-stored{width:105px!important;height:105px!important}
  .reward-card{min-height:0}
}
@media(prefers-reduced-motion:reduce){
  .reward-badge-wrap,.reward-stash{animation:none!important;transition:none!important}
}

/* =========================================================
   V5.37 — finite activity rounds + clearer success feedback
   ========================================================= */
.success-feedback,
.retry-feedback,
.round-complete-feedback{
  min-height:58px!important;
  height:auto!important;
  padding:9px 14px!important;
  border-radius:14px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
  text-align:center;
  line-height:1.15!important;
}
.success-feedback{
  background:#e9f7eb!important;
  border:1px solid #b4ddbd!important;
  color:#17653a!important;
  animation:feedbackPop .34s ease-out;
}
.success-feedback .feedback-main{
  display:block;
  width:100%;
  font-family:Georgia,serif;
  font-size:clamp(25px,3.4vw,36px)!important;
  line-height:1!important;
  font-weight:900!important;
  color:#17653a!important;
}
.success-feedback .feedback-praise{
  display:inline-block;
  font-size:clamp(16px,2vw,20px)!important;
  font-weight:950!important;
  color:#a06d08!important;
}
.feedback-detail{
  display:inline-block;
  font-size:13px!important;
  font-weight:800!important;
  color:inherit;
}
.retry-feedback{
  background:#fff2e8!important;
  border:1px solid #e8b28a!important;
  color:#8d4d22!important;
}
.feedback-retry-main{font-size:17px!important;font-weight:950!important}
.round-complete-feedback{
  background:linear-gradient(135deg,#eef8ef,#fff8e7)!important;
  border:1px solid #bfd9c4!important;
  color:#173f33!important;
  padding:12px 15px!important;
}
.round-complete-title{
  display:block;
  width:100%;
  font-family:Georgia,serif;
  font-size:clamp(23px,3vw,32px)!important;
  font-weight:900!important;
  color:#17653a!important;
}
.round-complete-score{font-size:16px!important;font-weight:950!important;color:#7d5d18!important}
.feedback-back{
  border:1px solid #c8d8ce;
  background:white;
  color:#315746;
  border-radius:10px;
  padding:8px 11px;
  font-size:12px;
  font-weight:900;
}
@keyframes feedbackPop{0%{transform:scale(.94);opacity:.45}70%{transform:scale(1.025)}100%{transform:scale(1);opacity:1}}

/* Listen & Choose: no visual clue before the learner answers. */
.listen-panel{
  grid-template-rows:auto 8px minmax(120px,1fr) auto auto auto!important;
  overflow-y:auto!important;
}
.listen-word-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
  width:min(100%,650px);
  margin:auto;
  align-self:center;
}
.listen-word-choice{
  min-height:66px;
  border:2px solid #cbdad1;
  border-radius:15px;
  background:#fff;
  color:var(--navy);
  font-size:clamp(16px,2.3vw,22px);
  font-weight:950;
  padding:12px 14px;
  transition:.18s transform,.18s background,.18s border-color;
}
.listen-word-choice:hover{transform:translateY(-1px);background:#f4f8f4}
.listen-word-choice.correct{background:#e5f5e8;border-color:#4c9e61;color:#17653a}
.listen-word-choice.wrong{background:#fff0ed;border-color:#cc6a5b;color:#913c31}
.listen-reveal{
  width:min(250px,60vw);
  margin:0 auto;
  display:grid;
  grid-template-columns:82px 1fr;
  align-items:center;
  gap:10px;
  background:#f7faf7;
  border:1px solid #d8e4da;
  border-radius:14px;
  padding:7px;
  opacity:0;
  transform:translateY(5px) scale(.97);
  transition:.25s ease;
}
.listen-reveal[hidden]{display:none!important}
.listen-reveal.revealed{opacity:1;transform:none}
.listen-reveal img{width:82px;height:62px;object-fit:contain;background:white;border-radius:10px;display:block}
.listen-reveal span{font-size:12px;font-weight:900;color:#64786d;text-align:left}

/* Larger feedback must not be clipped by the compact game layouts. */
.unscramble-panel{
  grid-template-rows:minmax(90px,31%) auto auto auto auto auto!important;
  overflow-y:auto!important;
}
.blank-panel{
  grid-template-rows:minmax(90px,31%) auto auto auto auto!important;
  overflow-y:auto!important;
}
.category-game-panel,.translation-panel{
  grid-template-rows:minmax(105px,34%) auto auto minmax(58px,auto) auto!important;
  overflow-y:auto!important;
}
.builder-panel{
  grid-template-rows:minmax(90px,26%) auto minmax(110px,1fr) minmax(58px,auto) auto!important;
  overflow-y:auto!important;
}
#quizPlay .compact-feedback{
  min-height:68px!important;
  height:auto!important;
  padding:8px 12px!important;
  font-size:15px!important;
}
#quizPlay .success-feedback .feedback-main{font-size:clamp(28px,4vw,40px)!important}
#quizPlay .success-feedback .feedback-praise{font-size:clamp(17px,2.2vw,22px)!important}

@media(max-height:700px){
 .success-feedback,.retry-feedback,.round-complete-feedback{min-height:50px!important;padding:6px 10px!important}
 .success-feedback .feedback-main{font-size:24px!important}
 .success-feedback .feedback-praise{font-size:16px!important}
 .listen-word-choice{min-height:52px;padding:8px 10px;font-size:16px}
 .listen-reveal{grid-template-columns:62px 1fr;width:min(210px,55vw)}
 .listen-reveal img{width:62px;height:46px}
}
/* V5.37 listening challenges reveal the vocabulary image only after answering. */
#stageImage.answer-reveal{animation:answerImageReveal .42s ease-out}
@keyframes answerImageReveal{0%{opacity:.2;transform:scale(.94)}100%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#stageImage.answer-reveal{animation:none}}


/* =========================================================
   V5.38 — final listening + compact-height corrections
   ========================================================= */

/* Draw a Line: keep all four picture/word rows above the fixed navigation,
   even on 600 px-high notebook displays. Intrinsic image height must not
   force the CSS grid taller than its available game panel. */
.line-panel{grid-template-rows:minmax(0,1fr) 44px!important;min-height:0!important}
.line-stage,.match-col{min-height:0!important}
.match-col{grid-template-rows:repeat(4,minmax(0,1fr))!important}
.image-match-btn,.word-match-btn{min-height:0!important;height:100%!important}
.image-match-btn{position:relative!important}
.image-match-btn img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
@media(max-height:680px){
  .line-panel{grid-template-rows:minmax(0,1fr) 38px!important;padding:10px 14px!important;gap:5px!important}
  .line-stage{padding-top:3px!important;padding-bottom:3px!important}
  .match-col{gap:6px!important}
  .line-actions{min-height:34px!important}
}

/* Listen & Choose: the answer image is a meaningful confirmation, not a tiny
   thumbnail. It remains hidden until after the learner has answered. */
.listen-reveal{
  width:min(430px,82vw)!important;
  grid-template-columns:minmax(150px,190px) 1fr!important;
  gap:14px!important;
  padding:10px!important;
  border-radius:18px!important;
}
.listen-reveal img{
  width:100%!important;
  height:128px!important;
  object-fit:contain!important;
  border-radius:14px!important;
}
.listen-reveal span{font-size:14px!important}
@media(max-height:700px){
  .listen-reveal{width:min(390px,78vw)!important;grid-template-columns:150px 1fr!important;padding:8px!important}
  .listen-reveal img{width:150px!important;height:100px!important}
}
@media(max-width:520px){
  .listen-reveal{grid-template-columns:1fr!important;width:min(330px,88vw)!important;text-align:center!important}
  .listen-reveal img{width:100%!important;height:132px!important}
  .listen-reveal span{text-align:center!important}
}

/* Summit listening: there is deliberately NO picture before the answer.
   The left panel becomes an audio-only prompt. The vocabulary picture appears
   only after a correct response and is then large enough to be useful. */
#adventureStage .stage-image-panel.listening-only{
  min-height:300px!important;
  background:radial-gradient(circle at 50% 42%,#f9f4e8 0 22%,#dce9e1 65%)!important;
}
#adventureStage .stage-image-panel.listening-only::before{
  content:'LISTEN';
  display:grid;place-items:center;
  width:150px;height:150px;border-radius:50%;
  background:#fffaf0;border:2px solid #d7c18d;
  color:#124c59;font-weight:950;letter-spacing:.12em;font-size:18px;
  box-shadow:0 12px 28px rgba(16,65,67,.12);
}
#adventureStage .stage-image-panel.listening-only::after{
  content:'🔊';position:absolute;left:50%;top:50%;transform:translate(-50%,-66%);
  font-size:52px;pointer-events:none;
}
#adventureStage .stage-image-panel.listening-only #stageListenBtn{
  left:50%!important;bottom:42px!important;transform:translateX(-50%)!important;
  min-width:160px!important;text-align:center!important;
}
#adventureStage .stage-image-panel.answer-shown #stageImage{
  width:min(100%,520px)!important;
  height:min(43vh,360px)!important;
  max-height:360px!important;
  object-fit:contain!important;
  background:white!important;
}
#adventureStage #stageImage[hidden]{display:none!important}
@media(max-height:690px) and (min-width:781px){
  #adventureStage .stage-image-panel.listening-only{min-height:260px!important}
  #adventureStage .stage-image-panel.answer-shown #stageImage{height:min(42vh,300px)!important;max-height:300px!important}
}
/* V5.38 visual tidy-up for the audio-only Summit prompt. */
#adventureStage .stage-image-panel.listening-only::before{
  content:'🔊'!important;
  font-size:52px!important;
  letter-spacing:0!important;
  padding-bottom:30px!important;
}
#adventureStage .stage-image-panel.listening-only::after{
  content:'LISTEN'!important;
  top:50%!important;
  transform:translate(-50%,22px)!important;
  font-size:16px!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  color:#124c59!important;
}
@media(max-height:700px){
  .listen-reveal{width:min(450px,82vw)!important;grid-template-columns:190px 1fr!important}
  .listen-reveal img{width:190px!important;height:118px!important}
}

/* V5.39 — Achievements card layout fix.
   The large 180px artwork must occupy the first grid row so it never overlaps
   LOCKED / IN PROGRESS, the title, description or progress bar. */
.achievement{
  grid-template-rows:180px minmax(145px,auto)!important;
  min-height:340px!important;
}
.achievement-art{
  height:180px!important;
  min-height:180px!important;
}
.achievement-copy{
  position:relative!important;
  z-index:2!important;
  background:#fff!important;
  min-height:145px!important;
  overflow:visible!important;
}
