:root{font-family:Nunito,ui-rounded,system-ui,sans-serif;color:#304338;background:#fff;--green:var(--quiz-accent);--deep:var(--quiz-deep);--line:#e6ebe4;--muted:#748171}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #159cdb;outline-offset:4px}button{touch-action:manipulation}a{color:inherit}button svg{width:23px;height:23px;flex-shrink:0}button{border:0}h1,h2,p{margin:0}h1{font-size:28px;line-height:1.15;letter-spacing:-.7px;font-weight:900}h2{font-size:19px;font-weight:900}.layout{max-width:1400px;margin:auto}.sidebar,.rightbar,.desktop-heading{display:none}.workspace{min-width:0}.topbar{height:70px;border-bottom:2px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:12px;background:white}.mobile-brand{font-size:22px;font-weight:900;letter-spacing:-1px;text-decoration:none}.mobile-brand span,.brand span{color:var(--green)}.stats{display:flex;gap:15px;align-items:center;font-size:16px;font-weight:900;color:#c37312}.stats .xp{color:#458f20}.navigation{position:fixed;bottom:0;left:0;right:0;background:#fff;z-index:5;border-top:2px solid var(--line);padding:9px 16px max(10px,env(safe-area-inset-bottom));display:flex;justify-content:space-around}.navigation button{background:transparent;color:#7f897a;display:flex;align-items:center;flex-direction:column;gap:3px;font-size:12px;font-weight:900;min-width:64px;min-height:48px;border-radius:14px;padding:5px 12px}.navigation button.active{color:var(--deep);background:#f0f9e9}.mobile-nav{display:flex}main{padding:18px 18px 90px;max-width:650px;margin:auto}.feed-tabs{display:flex;gap:28px;justify-content:center;border-bottom:2px solid var(--line)}.feed-tabs button{font-size:18px;font-weight:900;background:transparent;padding:0 4px 13px;position:relative;color:#879080}.feed-tabs button.active{color:#32472c}.feed-tabs button.active:after{content:'';height:4px;background:var(--green);border-radius:5px;position:absolute;bottom:-2px;left:0;right:0}.filters{display:flex;gap:9px;padding:16px 0;flex-wrap:wrap}.chip{display:flex;align-items:center;gap:7px;border:2px solid var(--line);border-bottom-width:3px;border-radius:13px;background:white;padding:7px 13px;font-weight:800;font-size:14px}.chip.active{background:#edf8e6;border-color:#b9e098;color:#427f22}.game-card{border:2px solid var(--line);border-bottom-width:4px;border-radius:23px;overflow:hidden;background:#fff;touch-action:pan-x pan-y}.game-header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px}.game-title{display:flex;align-items:center;gap:10px}.game-icon{border-radius:12px;background:#eef8e7;display:grid;place-items:center;width:42px;height:42px;font-size:23px}.game-title :is(strong,h1){font-size:16px;font-weight:900;display:block}.metadata{font-size:12px;color:var(--muted);display:flex;gap:7px;margin-top:2px}.heart{width:44px;height:44px;border:2px solid var(--line);border-radius:14px;background:#fff;display:grid;place-items:center;color:#909b8a}.heart.saved{color:#ef6487;background:#fff0f4;border-color:#f4c9d6}.heart.saved svg{fill:#ef6487}.visual{position:relative;height:clamp(165px,27dvh,280px);background:#eaf5e3;overflow:hidden;display:flex;align-items:center;justify-content:center}.visual img{width:100%;height:100%;object-fit:cover}.photo-badge{position:absolute;left:14px;top:13px;color:#fff;background:#263e35aa;backdrop-filter:blur(8px);font-size:12px;font-weight:900;border:1px solid #ffffff50;border-radius:8px;padding:6px 10px}.visual.word{background:#f0edff;flex-direction:column;gap:15px}.visual.flag{background:#eaf6ff;flex-direction:column;gap:8px}.flag-symbol{font-size:85px;line-height:1.2}.art-caption{font-size:13px;font-weight:800;color:#6e6791}.letters{display:flex;gap:7px;justify-content:center}.letter{display:grid;place-items:center;width:43px;height:52px;border-radius:11px;background:white;color:#7760bb;border:2px solid #e0d8f8;box-shadow:0 4px #d9d0f0;font-weight:900;font-size:27px;transform:rotate(-4deg)}.letter:nth-child(even){transform:rotate(5deg)}.big-word{font-size:40px;font-weight:900;letter-spacing:3px;color:#7160a6}.question-area{padding:18px}.question-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.eyebrow{font-weight:900;font-size:12px;letter-spacing:1.3px;color:#77846e}.question-count{font-size:12px;color:#84907c;font-weight:800}.question-area :is(h1,h2){font-size:26px}.subtitle{font-size:14px;color:var(--muted);margin-top:5px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.answer{min-height:53px;border:2px solid #e2e7de;border-bottom-width:4px;border-radius:13px;background:white;font-size:16px;font-weight:800;display:flex;align-items:center;text-align:left;gap:9px;padding:10px 12px}.answer .key{font-size:12px;color:#a5aea0;border:1px solid #e3e8df;border-radius:5px;display:none;width:23px;height:23px;place-items:center}@media(hover:hover) and (pointer:fine){.answer:not(:disabled):hover{background:#f6faef;border-color:#bbd8a5}}.answer.correct{background:#eaf8dc;border-color:#8bd458;color:#3b771e}.answer.wrong{background:#fff0f0;border-color:#f19b9b;color:#b44949}.answer:active{transform:translateY(2px)}.feedback{margin-top:15px;min-height:35px;display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}.feedback.success{color:#3e861d}.feedback.error{color:#b44c43}.feedback strong{font-weight:900}.feedback svg{width:24px;flex-shrink:0}.primary{background:var(--green);border-radius:13px;border:0;border-bottom:4px solid var(--deep);color:white;min-height:49px;padding:11px 20px;font-size:14px;font-weight:900;letter-spacing:.7px;text-transform:uppercase;width:100%;margin-top:11px}.primary:hover{background:#64c72a}.primary:active{transform:translateY(2px);border-bottom-width:2px}.credit{font-size:11px;color:#899180;padding:0 18px 13px}.credit a{text-underline-offset:2px}.feed-control{display:flex;align-items:center;justify-content:space-between;padding:13px 1px;gap:8px;color:#8a9383;font-size:12px;font-weight:800}.feed-control button{display:flex;align-items:center;gap:6px;background:#f6f8f3;border:1px solid var(--line);border-radius:11px;padding:8px 12px;min-height:40px}.feed-control svg{width:17px;height:17px}.empty{text-align:center;padding:55px 20px;border:2px dashed var(--line);border-radius:22px}.empty>span{font-size:50px}.empty h1{margin:18px 0 10px}.empty p{color:var(--muted);line-height:1.5}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:5px 0 18px}.page-heading p{color:var(--muted);font-size:15px;margin-top:7px}.unit{background:var(--green);color:#fff;border-radius:18px;padding:20px;border-bottom:5px solid var(--deep);margin-top:6px}.unit .eyebrow{color:#eaffdb}.unit h2{font-size:24px;margin:6px 0}.unit p{font-size:14px;color:#f2ffe8}.path{padding:25px 25px 5px;display:flex;flex-direction:column;gap:28px}.level{display:flex;align-items:center;gap:22px;position:relative}.level:nth-child(2n){margin-left:35px}.level:nth-child(3){margin-left:65px}.node{width:70px;height:66px;flex-shrink:0;border-radius:50%;border:0;border-bottom:6px solid #d4ddcc;background:#eaf0e4;color:#92a186;font-size:25px;display:grid;place-items:center}.node.current,.node.done{background:var(--green);border-color:var(--deep);color:white}.node.current{outline:3px solid #c7eaa9;outline-offset:5px}.level strong{font-size:17px;font-weight:900;display:block}.level small{display:block;color:var(--muted);font-size:13px;margin-top:3px}.level .start{font-size:12px;font-weight:900;color:var(--deep);letter-spacing:1px;margin-bottom:5px}.lesson-note{padding:17px;background:#fff8df;border-radius:15px;color:#8b753b;margin-top:30px;font-size:14px;line-height:1.5}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.text-button{background:transparent;color:var(--deep);font-weight:900;font-size:14px;padding:10px 0}.back{background:transparent;padding:8px 0;margin-bottom:10px;display:flex;gap:8px;align-items:center;color:var(--muted);font-weight:800}.progress{height:14px;background:#edf0e9;border-radius:10px;overflow:hidden}.progress i{height:100%;display:block;background:var(--green);border-radius:10px;transition:width .3s}.lesson-progress{margin-bottom:18px}.complete{text-align:center;padding:35px 20px}.complete>span{font-size:70px}.complete h1{margin:18px 0 10px}.complete p{color:var(--muted);line-height:1.6}.result-stats{display:flex;gap:12px;margin:25px 0}.result-stats div{flex:1;border:2px solid var(--line);border-radius:15px;padding:18px 8px;color:var(--deep)}.result-stats strong{display:block;font-size:28px}.result-stats small{font-size:12px;font-weight:900}.collection{display:grid;gap:12px}.collection-card{border:2px solid var(--line);border-bottom-width:4px;border-radius:17px;padding:17px;display:flex;align-items:center;gap:12px}.collection-card .game-icon{width:52px;height:52px;font-size:28px}.collection-info{flex:1}.collection-info p{color:var(--muted);font-size:13px;margin:3px 0 8px}.collection-card .text-button{padding:0}.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.metric{border:2px solid var(--line);border-bottom-width:4px;border-radius:18px;padding:22px 18px}.metric strong{font-size:32px;display:block;color:var(--deep)}.metric span{font-size:14px;color:var(--muted)}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);border-radius:12px;padding:12px 20px;max-width:90vw;background:#304338;color:white;z-index:10;font-size:14px;font-weight:800;pointer-events:none;opacity:0;transition:opacity .2s}#toast.show{opacity:1}
@media(min-width:760px){.layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;border-right:2px solid var(--line);padding:37px 22px;height:100vh;position:sticky;top:0}.brand{font-size:34px;line-height:.93;letter-spacing:-1.8px;font-weight:900;text-decoration:none;margin:0 10px 42px}.sidebar .navigation{position:static;display:flex;flex-direction:column;border:0;padding:0;gap:12px}.navigation button{flex-direction:row;font-size:15px;gap:14px;padding:15px;border:2px solid transparent;text-transform:uppercase;letter-spacing:.5px}.navigation button.active{border-color:#c5e9ac}.sidebar-note{margin:auto 10px 28px;font-size:20px;line-height:1.3;font-weight:900;color:#b3bbae}.sidebar-note span{display:block;font-size:12px;font-weight:700;margin-top:13px;color:#8b9683}.version{font-size:10px;letter-spacing:1.2px;color:#a4ae9c;margin:0 10px}.mobile-nav,.mobile-brand{display:none}.desktop-heading{display:block;font-size:16px;font-weight:800;color:#819076}.topbar{padding:0 34px;height:87px}main{padding:25px 30px 30px}.answer .key{display:grid}.visual{height:275px}.question-area{padding:23px}.game-header{padding:17px 22px}.credit{padding-left:23px}.game-card{border-radius:24px}.question-area :is(h1,h2){font-size:30px}.filters{padding:20px 0}.feed-tabs button{padding-bottom:17px}.feed-control{padding-top:17px}.path{padding-top:32px;gap:32px}.level{gap:28px}.node{width:78px;height:73px}#toast{bottom:35px}}
@media(min-width:1150px){.layout{grid-template-columns:240px minmax(0,640px) minmax(260px,1fr)}.rightbar{display:block;padding:119px 25px 30px 15px}.daily{border:2px solid var(--line);border-radius:19px;padding:22px}.daily h2{font-size:17px}.daily>.row>span{font-size:27px}.daily p{font-size:14px;color:var(--muted);line-height:1.5;margin-top:10px}.daily .goal{margin:24px 0 11px;font-size:13px}.goal span{color:var(--muted)}.daily .goal-note{font-size:12px;margin-top:13px}.tip{margin-top:25px;padding:25px 22px;border-radius:20px;background:#f5faef;text-align:center}.tip-icon{display:block;font-size:64px;margin:4px 0 20px}.tip h2{font-size:22px;line-height:1.2}.tip p{font-size:14px;color:var(--muted);line-height:1.6;margin:13px 0}.rightbar footer{text-align:center;font-size:10px;letter-spacing:1.5px;font-weight:900;color:#a5af9c;line-height:2;margin-top:29px}.rightbar footer span{font-size:11px;font-weight:600;letter-spacing:0}}
@media(max-width:370px){.mobile-brand{font-size:19px}.stats{font-size:13px;gap:8px}.topbar{padding:0 15px}.chip{padding:7px 10px}.question-area{padding:14px}.question-area :is(h1,h2){font-size:24px}.answer{font-size:14px;padding:10px;gap:3px}.letter{width:36px}.path{padding-left:8px;padding-right:8px}.level:nth-child(3){margin-left:45px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}@media(max-height:750px) and (max-width:759px){.topbar{height:59px}main{padding-top:12px}.visual{height:145px}.game-header{padding:10px 14px}.question-area{padding:13px 15px}.question-area :is(h1,h2){font-size:23px}.answers{margin-top:12px;gap:8px}.answer{min-height:46px}.filters{padding:10px 0}.feedback{margin-top:10px;min-height:26px}.credit{padding-bottom:10px}.feed-control{padding:9px 0}.feed-tabs button{padding-bottom:10px}.primary{min-height:45px;margin-top:8px}}
/* Keep the game controls in thumb reach on phones; the artwork is also the swipe surface. */
.visual{touch-action:none}
@media(max-width:759px){.topbar{height:62px}main{padding-top:12px}.filters{flex-wrap:nowrap;gap:6px;padding:12px 0}.chip{font-size:13px;padding:7px 10px;white-space:nowrap}.visual{height:clamp(130px,21dvh,185px)}.game-header{padding:12px 15px}.question-area{padding:15px}.question-area :is(h1,h2){font-size:25px}.answers{margin-top:13px;gap:9px}.answer{min-height:49px}.feedback{margin-top:11px;min-height:28px}.credit{font-size:10px;padding:0 15px 10px}.question-top .eyebrow{font-size:11px}.feed-control{padding:10px 0}.feed-control button{font-size:12px;padding:8px}.feed-control>span{font-size:11px}}
@media(max-width:370px){.chip{font-size:12px;padding:7px 8px}.filters{gap:4px}.visual{height:105px}.game-header{padding:8px 12px}.question-area{padding:12px}.answer{min-height:44px}.game-title :is(strong,h1){font-size:14px}.question-area :is(h1,h2){font-size:22px}.feedback{font-size:12px}.flag-symbol{font-size:60px}.visual.word{gap:10px}.art-caption{font-size:11px}.letter{height:42px}}
/* V2 centered app: a single viewport, with gestures changing games. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{background:#f8faf6;touch-action:none}.layout{display:block;width:min(100%,520px);height:100dvh;min-height:0;margin:0 auto;background:#fff;border-inline:1px solid var(--line)}.workspace{height:100%;min-height:0;display:flex;flex-direction:column;padding-bottom:76px}.topbar{height:64px;flex:0 0 64px;padding:0 22px}.mobile-brand{display:block;font-size:23px}.mobile-nav{display:flex!important;position:fixed;left:50%;right:auto;transform:translateX(-50%);width:min(100%,520px);height:76px;padding:8px 15px max(8px,env(safe-area-inset-bottom));align-items:center;flex-direction:row}.navigation button{flex-direction:column;justify-content:center;gap:3px;min-height:48px;padding:5px 10px;min-width:66px;font-size:12px;letter-spacing:0;text-transform:none;border:0}.navigation button.active{border:0}.navigation button svg{width:23px;height:23px}.sidebar,.rightbar{display:none!important}main{display:flex;flex-direction:column;width:100%;max-width:none;min-height:0;flex:1;margin:0;padding:13px 18px 0;overflow:hidden}.feed-tabs{flex-shrink:0;gap:30px}.feed-tabs button{padding:0 4px 10px;font-size:17px}.filters{flex:0 0 auto;flex-wrap:nowrap;gap:7px;padding:12px 0}.chip{font-size:13px;padding:7px 11px;white-space:nowrap}.game-card{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:21px;touch-action:none}.game-header{padding:11px 15px;flex-shrink:0}.game-title :is(strong,h1){font-size:16px}.game-icon{width:37px;height:37px;font-size:21px}.heart{width:39px;height:39px;border-radius:12px}.visual{height:auto;min-height:0;flex:1;max-height:none}.visual img{min-height:0}.visual.word{gap:14px}.visual.flag{gap:8px}.question-area{padding:16px;flex-shrink:0}.question-area :is(h1,h2){font-size:26px;line-height:1.13}.question-top{margin-bottom:6px}.question-top .eyebrow{font-size:11px}.subtitle{font-size:14px;margin-top:4px}.answers{margin-top:13px;gap:9px}.answer{min-height:49px;padding:9px 12px;font-size:16px}.answer .key{display:none}.feedback{margin-top:11px;min-height:25px;font-size:13px;line-height:1.3}.primary{min-height:46px;margin-top:10px;padding:10px 17px}.credit{padding:0 16px 9px;font-size:10px;flex-shrink:0}.feed-control{flex:0 0 48px;padding:6px 0;font-size:11px}.feed-control button{min-height:34px;padding:6px 9px;font-size:12px}.feed-control>span{font-size:11px}.empty{margin:auto 0;padding:30px 20px}.page-heading{flex-shrink:0;margin:2px 0 10px}.page-heading h1{font-size:26px}.page-heading p{font-size:14px;line-height:1.3}.unit{flex-shrink:0;padding:15px 18px}.unit h2{font-size:23px}.path{flex:1;min-height:0;justify-content:space-evenly;padding:12px 25px 0;gap:8px}.node{width:64px;height:59px;font-size:23px}.level{gap:22px}.level strong{font-size:16px}.level small{font-size:12px}.level .start{font-size:11px}.lesson-note{flex-shrink:0;margin:16px 0;padding:13px;font-size:13px;line-height:1.4}.lesson-progress{flex:0 0 10px;margin-bottom:12px}.back{flex-shrink:0;margin-bottom:7px;padding:5px 0}.collection{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));flex:1;min-height:0;gap:10px;padding-bottom:14px}.collection-card{position:relative;flex-direction:column;align-items:flex-start;justify-content:center;padding:14px;gap:8px;min-height:0}.collection-card .game-icon{width:40px;height:40px;font-size:25px}.collection-card .heart{position:absolute;right:10px;top:12px;width:32px;height:32px;border-radius:10px}.collection-card .heart svg{width:18px;height:18px}.collection-info{flex:0 0 auto}.collection-info h2{font-size:16px;line-height:1.15}.collection-info p{font-size:11px;margin:5px 0}.collection-info .text-button{font-size:13px}.complete{margin:auto 0;padding:25px 15px}.result-stats{margin:20px 0}.progress-grid{margin-top:10px}.metric{padding:20px 15px}#toast{bottom:90px}.visual .big-word{font-size:36px}
@media(min-width:760px){.layout{box-shadow:0 0 70px #33492206}.game-card{border-radius:23px}.topbar{height:72px;flex-basis:72px}.workspace{padding-bottom:78px}.mobile-nav{height:78px}main{padding:17px 22px 0}.visual{max-height:none}.question-area :is(h1,h2){font-size:28px}}
@media(max-height:740px){.topbar{height:53px;flex-basis:53px}.mobile-brand{font-size:21px}.workspace{padding-bottom:62px}.mobile-nav{height:62px;padding:5px 14px}.navigation button{min-height:44px;font-size:11px}.navigation button svg{width:21px;height:21px}main{padding:8px 14px 0}.feed-tabs button{font-size:16px;padding-bottom:8px}.filters{padding:8px 0}.chip{padding:5px 9px;font-size:12px}.game-header{padding:7px 12px}.game-title :is(strong,h1){font-size:14px}.game-icon{width:31px;height:31px;font-size:19px}.metadata{font-size:11px}.heart{width:34px;height:34px}.question-area{padding:11px 13px}.question-area :is(h1,h2){font-size:23px}.subtitle{font-size:12px}.question-top .eyebrow{font-size:10px}.question-count{font-size:11px}.answers{gap:7px;margin-top:10px}.answer{min-height:43px;font-size:14px;padding:7px 10px}.feedback{font-size:12px;margin-top:8px;min-height:20px}.primary{min-height:41px;padding:8px 14px;margin-top:7px;font-size:13px}.feed-control{flex-basis:39px;padding:3px 0}.feed-control button{min-height:30px;font-size:11px}.credit{font-size:9px;padding-bottom:6px}.flag-symbol{font-size:53px}.art-caption{display:none}.letter{height:39px;width:35px;font-size:23px}.visual .big-word{font-size:29px}.page-heading h1{font-size:23px}.page-heading p{font-size:12px}.unit{padding:10px 14px}.unit h2{font-size:20px;margin:3px 0}.unit p{font-size:12px}.node{width:51px;height:47px;font-size:20px}.path{padding:9px 20px 0;gap:5px}.level strong{font-size:14px}.level small{font-size:11px}.level .start{font-size:10px;margin-bottom:2px}.lesson-note{padding:9px;margin:10px 0;font-size:11px}.collection-card{padding:9px;gap:5px}.collection-card .game-icon{height:31px;width:31px;font-size:22px}.collection-card .heart{top:7px;right:7px}.collection-info h2{font-size:14px}.collection-info p{font-size:10px}.collection-info .text-button{font-size:12px}.collection{gap:7px;padding-bottom:10px}}
@media(max-height:610px){.photo-badge{font-size:9px;top:7px;left:9px;padding:4px 6px}.visual .big-word{font-size:23px!important}.flag-symbol{font-size:34px}.letter{height:29px;width:30px;font-size:19px}.question-area :is(h1,h2){font-size:21px}.feedback:not(.success):not(.error){display:none}.page-heading p{display:none}.page-heading{margin-bottom:5px}.unit p{display:none}.lesson-note{font-size:10px}.collection-info p{display:none}.collection-card{gap:3px}.collection-info h2{font-size:13px}.collection-card .game-icon{width:26px;height:26px;font-size:20px}.collection-card .heart{width:28px;height:28px}.node{width:46px;height:43px}.level small{font-size:10px}.level strong{font-size:13px}.metric{padding:12px}.complete>span{font-size:48px}.complete h1{font-size:24px}.complete p{font-size:14px}}
@media(max-height:480px) and (min-width:600px){.layout{width:min(100%,760px)}.mobile-nav{width:min(100%,760px);height:54px}.workspace{padding-bottom:54px}.topbar{height:45px;flex-basis:45px}.game-card{display:grid;grid-template-columns:40% 60%;grid-template-rows:40px minmax(0,1fr) 15px}.game-header{grid-column:1;grid-row:1}.game-header .game-icon,.game-header .metadata{display:none}.visual{grid-column:1;grid-row:2}.question-area{grid-column:2;grid-row:1/4;padding:8px 12px}.credit{grid-column:1;grid-row:3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px}.question-area :is(h1,h2){font-size:20px}.question-top,.subtitle,.feedback:not(.success):not(.error){display:none}.answer{min-height:35px;padding:5px 8px}.answers{margin-top:8px}.primary{min-height:32px;margin-top:5px;padding:5px}.feedback{font-size:10px!important}.feed-control{flex-basis:31px}.feed-tabs button{padding-bottom:5px}.filters{padding:5px 0}.chip{padding:3px 9px}.page-heading{display:none}.path{flex-direction:row;align-items:center;padding:10px 0}.level{flex-direction:column;gap:7px;text-align:center;margin:0!important}.level .start{display:none}.level small{max-width:110px}.unit{padding:8px 14px}.unit .eyebrow{font-size:10px}.unit h2{font-size:18px}.collection{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,minmax(0,1fr))}.collection-card{flex-direction:row;align-items:center;justify-content:flex-start}.collection-card .heart{position:static;margin-left:auto;flex-shrink:0}.collection-card .game-icon{display:none}.complete{padding:5px}.complete>span{display:none}.complete h1{margin:5px}.result-stats{margin:10px 0}.result-stats div{padding:8px}.progress-grid{grid-template-columns:repeat(4,1fr)}}

/* Focused web player: the game uses the space freed by navigation and filters. */
.workspace{padding-bottom:env(safe-area-inset-bottom,0px)}
main{padding-top:16px}
#toast{bottom:58px}
@media(max-height:740px){main{padding-top:10px}}

/* Smooth vertical feed with a separate TikTok-style arrow rail. */
main{padding-bottom:16px}
.game-stage{display:flex;flex:1;min-height:0;position:relative;overflow:hidden;border-radius:23px;isolation:isolate}
.game-stage>.game-card{width:100%;height:100%;flex:none;will-change:transform}
.game-stage>.departing-card{position:absolute;inset:0;z-index:2;pointer-events:none}
.game-arrows{position:fixed;left:calc(50% + 282px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:16px;z-index:4}
.game-arrows button{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#30332f;color:#fff;padding:14px;transition:background .2s,transform .2s}
.game-arrows button svg{width:27px;height:27px}
.game-arrows button:hover{background:#50564a}
.game-arrows button:active{transform:scale(.94)}
@media(max-width:700px){main{padding-right:66px;padding-left:12px;padding-bottom:12px}.game-arrows{left:auto;right:10px;gap:12px}.game-arrows button{width:44px;height:44px;padding:11px}.game-arrows button svg{width:23px;height:23px}.question-area :is(h1,h2){font-size:23px}.question-top{flex-wrap:wrap}.question-top .eyebrow{font-size:10px;letter-spacing:.8px}.game-title :is(strong,h1){font-size:14px}.game-header{padding:10px}.game-title{gap:6px}.game-icon{width:28px;height:28px;font-size:18px}.answer{font-size:14px;padding:8px}.question-area{padding:12px}.letters{gap:4px}.letter{width:32px;font-size:22px}.big-word{font-size:29px!important}}
@media(max-width:370px){.game-icon{display:none}.game-title :is(strong,h1){font-size:13px}.question-area :is(h1,h2){font-size:21px}.metadata{font-size:10px}.question-area{padding:10px}.subtitle{font-size:11px}.answer{font-size:13px}.letter{width:28px;font-size:20px}}
@media(max-height:480px) and (min-width:701px){.layout{width:calc(100% - 100px);max-width:760px;margin-left:auto;margin-right:auto}.game-arrows{left:auto;right:6px}.game-arrows button{width:40px;height:40px;padding:9px}.game-stage>.game-card{display:grid}main{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.game-stage>.game-card{will-change:auto}}

/* Direct game selection stays to the left of the player. */
.game-directory{position:fixed;top:50%;right:calc(50% + 288px);width:190px;transform:translateY(-50%);z-index:5}
.game-directory summary{display:none;cursor:pointer;font-size:14px;font-weight:900;list-style:none}
.game-directory summary::-webkit-details-marker{display:none}
.game-directory nav{display:flex;flex-direction:column;gap:7px}
.directory-label{font-size:12px;font-weight:900;letter-spacing:1.5px;color:#899480;margin:0 12px 10px}
.game-directory button{min-height:46px;padding:11px 13px;border-radius:13px;text-align:left;background:transparent;font-weight:800;font-size:15px;color:#74816c;border:2px solid transparent}
.game-directory button:hover{background:#eef3e9;color:#415c33}
.game-directory button.selected{color:var(--quiz-deep);background:#edf8e6;border-color:#c5e5ad}
.game-arrows{align-items:center;width:124px;left:calc(50% + 260px)}
.scroll-label{font-size:14px;font-weight:800;line-height:1.4;text-align:center;color:#74816c;max-width:110px;margin-bottom:3px}
@media(max-width:1049px){.game-directory{top:83px;left:max(20px,calc(50% - 237px));right:auto;width:190px;transform:none}.game-directory summary{display:flex;align-items:center;justify-content:space-between;width:91px;padding:7px 12px;border:2px solid #e6ebe4;border-radius:11px;background:#fff;min-height:36px}.game-directory nav{background:#fff;border:2px solid #e6ebe4;box-shadow:0 10px 30px #3043381a;border-radius:16px;padding:9px;margin-top:7px;gap:2px}.directory-label{display:none}.game-directory button{font-size:14px;min-height:42px;padding:9px 11px}main{padding-top:56px}}
@media(max-width:700px){.game-directory{top:75px;left:13px}.game-arrows{left:auto;right:5px;width:54px}.scroll-label{font-size:12px;max-width:54px;line-height:1.35}}
@media(max-height:740px){.game-directory{top:61px}main{padding-top:51px}}
@media(min-width:1050px){.game-directory{top:50%}main{padding-top:16px}}
@media(max-height:480px) and (min-width:701px){.game-directory{top:49px;left:max(60px,calc(50% - 357px))}.game-directory summary{padding:3px 10px;min-height:30px}.game-directory nav{display:grid;grid-template-columns:1fr 1fr;width:330px}.game-directory button{font-size:12px;min-height:35px}.game-arrows{left:auto;right:4px;width:54px}.scroll-label{font-size:11px;max-width:54px}main{padding-top:41px}}
/* Globle: country guesses and a draggable orthographic world map. */
.globle-card{background:#fff}.globle-mode{font-size:10px;letter-spacing:1px;font-weight:900;color:#709455;background:#eff7e8;border-radius:7px;padding:6px 8px}.globle-intro{padding:8px 18px;text-align:center;flex-shrink:0}.globle-intro h1{font-size:27px}.globle-intro p{font-size:14px;color:var(--muted);margin-top:7px}.globe-area{position:relative;flex:1;min-height:60px;display:flex;justify-content:center;align-items:center;overflow:hidden;background:radial-gradient(ellipse,#f5fbfe,#fff 70%);touch-action:none}.world-globe{width:100%;height:100%;max-height:100%;cursor:grab;touch-action:none;user-select:none}.world-globe:active{cursor:grabbing}.globe-tools{position:absolute;right:10px;bottom:8px;display:flex;gap:5px}.globe-tools button{width:30px;height:30px;border-radius:9px;background:#fff;border:1px solid #dbe6d6;font-size:20px;line-height:1;font-weight:700;color:#697f5b}.globe-hint{position:absolute;left:14px;bottom:13px;font-size:11px;color:#84937a}.globle-controls{padding:10px 18px 14px;flex-shrink:0}.heat-key{display:flex;align-items:center;gap:7px;font-size:11px;color:#819075;margin-bottom:13px}.heat-key i{flex:1;height:9px;background:linear-gradient(90deg,#fff1d9,#fbd19b,#f8a45b,#f36c39,#d63532,#9d172c);border-radius:8px}.heat-key b{color:#4c9c26;font-weight:800;margin-left:5px}.country-form{display:flex;gap:8px}.country-form input{width:0;min-width:0;flex:1;border:2px solid #dfe7d9;border-bottom-width:3px;border-radius:12px;min-height:46px;font:700 16px Nunito,system-ui;padding:10px 12px;color:#304338;background:#fff}.country-form input:focus{outline:2px solid #a6d785;outline-offset:1px}.country-form .primary{width:auto;flex-shrink:0;margin:0;font-size:13px;padding:10px 14px}.country-form [disabled]{opacity:.5}.globle-message{font-size:13px;line-height:1.35;color:#657956;min-height:37px;display:flex;align-items:center;padding:8px 0;font-weight:800}.globle-message.solved{color:#438b20}.guess-history{display:flex;flex-direction:column;gap:5px}.guess-row{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:10px;border:1px solid #e6ebdf;font-size:12px;min-height:34px}.guess-row i{width:13px;height:13px;flex-shrink:0;border:1px solid #00000012;border-radius:4px}.guess-row strong{flex:1;font-weight:800}.guess-row>span:last-child{white-space:nowrap;color:#76836c;font-weight:800}.guess-number{font-size:10px;color:#929c88}.history-pager{display:flex;align-items:center;justify-content:space-between;margin-top:5px;font-size:10px;color:#809173}.history-pager button{width:28px;height:25px;background:#f1f6eb;border-radius:8px;font-size:18px}.history-pager button:disabled{opacity:.35}.globle-footnote{font-size:10px;color:#899480;text-align:center;margin-top:9px}.globle-card [hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.globle-intro{padding:5px 10px}.globle-intro h1{font-size:24px}.globle-intro p{font-size:12px}.globle-controls{padding:8px 10px 11px}.country-form{gap:5px}.country-form input{font-size:16px;padding:8px;min-height:42px}.country-form .primary{font-size:11px;padding:8px 10px}.globle-message{font-size:12px}.guess-row{font-size:11px;padding:6px;gap:5px}.globe-hint{font-size:10px;left:9px}.globle-mode{font-size:9px;padding:4px}.globle-footnote{font-size:9px}}
@media(max-height:650px){.globle-intro h1{font-size:21px}.globle-intro p{font-size:11px;margin-top:4px}.globle-controls{padding-top:4px;padding-bottom:7px}.heat-key{margin-bottom:7px;font-size:10px}.globle-message{min-height:29px;font-size:11px;padding:6px 0}.guess-row{min-height:27px;padding:4px 6px;font-size:10px}.globle-footnote{margin-top:5px;font-size:8px}.globe-hint{display:none}.country-form input{min-height:38px}.globe-tools{bottom:3px;right:5px}.globe-tools button{width:25px;height:25px}.globle-card .game-header{padding-top:6px;padding-bottom:6px}.history-pager{margin-top:2px}}
@media(max-height:480px) and (min-width:600px){.game-stage>.globle-card{display:grid;grid-template-columns:43% 57%;grid-template-rows:38px minmax(0,1fr)}.globle-card .game-header{grid-column:1;grid-row:1}.globle-card .globle-intro{display:none}.globe-area{grid-column:1;grid-row:2}.globle-controls{grid-column:2;grid-row:1/3;align-self:center;padding:8px 12px}.globle-card .globe-tools{right:8px}.globle-mode{display:none}}
@media(max-height:520px) and (max-width:599px){.globle-intro{display:none}.globle-footnote{display:none}.globle-card .guess-row{min-height:23px}.globe-area{min-height:35px}}
/* Clear progress, minimal question copy. */
.level-badge{flex-shrink:0;padding:7px 10px;border:2px solid #b9dfa0;border-bottom-width:3px;border-radius:10px;background:#edf8e4;color:#448e20;font-size:13px;letter-spacing:.7px;font-weight:900}
.round-progress{padding:0 16px 14px;flex-shrink:0}.round-progress-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;color:#7c8973;margin:1px 0 8px}.round-progress-label>strong{font-size:21px;color:#3c6c28;font-weight:900}.round-progress-label strong span{color:#8a9b7c;font-size:17px}.round-track{height:14px;background:#edf0e8;border-radius:10px;overflow:hidden}.round-track i{display:block;height:100%;background:var(--quiz-accent);border-radius:10px;box-shadow:inset 0 4px #ffffff29;transition:width .35s}.round-result{flex:1;display:flex;flex-direction:column;justify-content:center;padding:25px;text-align:center}.result-mark{display:grid;place-items:center;border-radius:50%;background:#eaf8dc;color:var(--quiz-accent);width:75px;height:75px;font-size:45px;font-weight:900;margin:0 auto 20px}.round-result h1{font-size:28px}.round-result .text-button{margin-top:13px}.globle-intro h1{font-size:25px}.globle-mode{font-size:13px;letter-spacing:0;padding:7px 10px;color:#478523}.globle-card .game-header{gap:10px}.globle-card .globle-message{min-height:32px}.country-form input::-webkit-search-cancel-button{-webkit-appearance:none}
@media(max-width:700px){.level-badge{padding:6px 7px;font-size:11px}.game-title :is(strong,h1){font-size:14px}.round-progress{padding:0 12px 11px}.round-progress-label{font-size:12px}.round-progress-label>strong{font-size:20px}.round-track{height:12px}.globle-intro h1{font-size:21px}.globle-mode{font-size:12px}}
@media(max-height:650px){.round-progress{padding-bottom:9px}.round-progress-label{margin-bottom:6px;font-size:11px}.round-progress-label>strong{font-size:18px}.round-track{height:10px}.level-badge{padding:4px 7px;font-size:11px}.globle-intro h1{font-size:19px}.round-result{padding:18px}.result-mark{height:52px;width:52px;font-size:30px;margin-bottom:12px}.round-result h1{font-size:24px}}
@media(max-height:480px) and (min-width:600px){.game-stage>.game-card:not(.globle-card){grid-template-rows:38px 42px minmax(0,1fr) 15px}.game-card:not(.globle-card) .game-header{grid-column:1;grid-row:1}.round-progress{grid-column:1;grid-row:2;padding:0 10px 5px}.round-progress-label{margin-bottom:3px}.round-progress-label>strong{font-size:16px}.game-card:not(.globle-card) .visual{grid-row:3}.game-card:not(.globle-card) .credit{grid-row:4}.game-card:not(.globle-card) .question-area{grid-row:1/5}.round-result{grid-column:2;grid-row:1/5;padding:10px}.result-mark{display:none}.level-badge{font-size:9px}.game-header .game-title :is(strong,h1){font-size:12px}}
.city-recall{display:flex;gap:8px;margin-top:15px}.city-recall input{min-width:0;width:0;flex:1;font:700 16px Nunito,system-ui;border:2px solid #dfe7d9;border-bottom-width:3px;border-radius:12px;padding:10px;background:#fff;color:#304338}.city-recall .primary{width:auto;margin:0;flex-shrink:0}.city-recall :disabled{opacity:.6}.round-result .text-button{margin-top:6px}
/* Flagle reveal board and the original US state boundary data. */
.flagle-heading{text-align:center;padding:10px 14px;flex-shrink:0}.flagle-heading h1{font-size:26px}.flagle-art{flex:1;min-height:60px;padding:12px 18px;display:flex;align-items:center;justify-content:center;overflow:hidden}.flag-puzzle{position:relative;aspect-ratio:4/3;width:100%;max-height:100%;border:2px solid #dfe8d7;border-radius:15px;overflow:hidden;background:#fff}.flag-puzzle img{display:block;width:100%;height:100%;object-fit:fill}.flag-tiles{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr);position:absolute;inset:0}.flag-tiles>div{display:grid;place-items:center;background:#edf3e7;border:1px solid #dae5d0;font-size:23px;color:#a5b39a;font-weight:900;transition:opacity .4s}.flag-tiles>div.revealed{opacity:0;pointer-events:none}.flagle-card [hidden]{display:none!important}.flagle-card .guess-row b{font-size:20px;color:#548a36;min-width:20px;text-align:center}.state-visual{background:#f3f8ed;padding:18px}.state-art{width:100%;height:100%;max-height:100%;display:block}.state-visual .state-art{min-height:0}.state-visual path{transition:fill .2s}
@media(max-width:700px){.flagle-heading h1{font-size:22px}.flagle-art{padding:8px 12px}.state-visual{padding:10px}.flagle-heading{padding:6px 10px}.flag-tiles>div{font-size:18px}}
@media(max-height:650px){.flagle-heading h1{font-size:20px}.flagle-heading{padding:4px 10px}.flagle-art{padding:5px 10px}}
@media(max-height:480px) and (min-width:600px){.game-stage>.flagle-card{display:grid;grid-template-columns:43% 57%;grid-template-rows:38px minmax(0,1fr)}.flagle-card .game-header{grid-column:1;grid-row:1}.flagle-heading{display:none}.flagle-art{grid-column:1;grid-row:2}.flagle-card .globle-controls{grid-column:2;grid-row:1/3;align-self:center;padding:8px 12px}}
/* Keep the six-game picker accessible in a short landscape viewport. */
@media(max-height:480px) and (min-width:1050px){.game-directory nav{gap:3px}.game-directory button{min-height:34px;padding:6px 12px}}
.flagle-art{container-type:size}.flag-puzzle{width:min(100%,calc(100cqh * 4 / 3));flex-shrink:0}
.pass-note{margin-top:10px;font-size:14px;line-height:1.4;color:#78856e}

/* Population comparisons share the same lesson frame and feedback. */
.population-visual{background:#f3f8ed;padding:14px;display:flex;align-items:center;justify-content:center}
.population-duel{width:100%;display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}
.population-place{display:flex;flex-direction:column;gap:3px}.population-place>span{font-size:19px;font-weight:900}.population-place>strong{font-size:clamp(26px,5vh,44px);line-height:1.1;color:var(--quiz-deep);font-weight:900}.population-place>small{font-size:12px;color:#65765d}.population-vs{font-size:11px;letter-spacing:2px;font-weight:900;color:#809174}.challenger>strong{color:#304338}
@media(max-height:700px){.population-duel{flex-direction:row;gap:8px;justify-content:center}.population-place{flex:1;min-width:0}.population-place>span{font-size:15px}.population-place>strong{font-size:27px}.population-vs{font-size:10px}}
@media(max-width:1049px){.game-directory nav{max-height:calc(100dvh - 140px);overflow-y:auto;overscroll-behavior:contain}}
/* Keep long desktop game lists compact and independently scrollable. */
@media(min-width:1050px){
 .game-directory{top:24px;bottom:24px;left:auto;right:calc(50% + 288px);transform:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b8c5af transparent;scrollbar-gutter:stable;touch-action:pan-y}
 .game-directory nav{display:flex;width:auto;gap:3px;padding:4px}
 .game-directory button{flex-shrink:0;min-height:38px;padding:8px 10px;font-size:13px;line-height:1.35}
}
/* Two illustrated places, with populations revealed after guessing. */
.population-visual{padding:12px;background:#f7faf4;container-type:size}
.population-duel{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:7px;align-items:center}
.population-place{min-width:0;min-height:0;gap:5px;width:100%}
.population-map{display:block;width:100%;height:clamp(60px,40cqh,175px);border-radius:13px;background:#e6f4fa;margin-bottom:7px;overflow:hidden}
.population-place>span{font-size:clamp(14px,2.2vw,19px);line-height:1.15;min-height:2.3em;display:grid;place-items:center;overflow-wrap:break-word}
.population-place>strong{font-size:clamp(24px,6cqw,38px)}
.population-vs{align-self:center;text-align:center;letter-spacing:0}
@media(max-height:700px){.population-map{height:clamp(42px,32cqh,105px);margin-bottom:2px}.population-place{gap:2px}.population-place>strong{font-size:25px}.population-duel{gap:5px;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}}
@container (max-height:170px){.population-map{height:clamp(25px,30cqh,50px);margin:0}.population-place{gap:2px}.population-place>span{font-size:12px;min-height:0;line-height:1.1}.population-place>strong{font-size:21px}.population-place>small{display:none}}
/* Flag artwork and capital maps use real assets and the population map language. */
.visual.flag{padding:20px}.flag-image{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain!important;border-radius:5px;box-shadow:0 3px 0 #30433812;border:1px solid #dfe5dc}
.capital-visual{background:#f7faf4;padding:14px;display:flex;align-items:center;justify-content:center;container-type:size}
.capital-place{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.capital-place .population-map{flex:1;min-height:0;height:auto;max-height:78%;width:100%;margin:0;border-radius:14px}
.capital-place>span{font-size:17px;font-weight:800;color:#65765d}.capital-place>strong{font-size:22px;font-weight:900;color:var(--quiz-deep)}
@container(max-height:170px){.capital-place{gap:3px}.capital-place>span{font-size:13px}.capital-place>strong{font-size:16px}}
/* The game picker lives in the mobile navigation bar. */
.mobile-scroll-hint{display:none}
@media(max-width:1049px){
 .topbar{position:relative;z-index:10;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;padding-left:12px;padding-right:12px}
 .topbar .game-directory{position:static;transform:none;width:auto;margin:0}
 .topbar .game-directory summary{width:auto;min-width:72px;min-height:44px;padding:7px 9px;gap:8px}
 .topbar .game-directory nav{position:absolute;right:12px;left:auto;top:calc(100% - 3px);width:220px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);grid-template-columns:1fr}
 .scroll-label{display:none}
 main{padding-top:12px}
 .mobile-brand{font-size:19px;white-space:nowrap}
 .stats{gap:7px;font-size:12px;white-space:nowrap}
 .mobile-scroll-hint{display:flex;position:fixed;left:50%;bottom:max(26px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;align-items:center;gap:8px;width:max-content;max-width:calc(100% - 28px);padding:11px 16px;border-radius:22px;background:#304338;color:white;font-size:13px;font-weight:800;box-shadow:0 4px 18px #30433826;pointer-events:none;animation:swipe-hint-life 5s both}
 .mobile-scroll-hint svg{width:19px;height:19px;animation:swipe-hint-arrow 1s ease-in-out 5}
}
@media(max-width:380px){.topbar{gap:5px;padding:0 10px}.mobile-brand{font-size:16px}.stats{font-size:10px;gap:5px}.topbar .game-directory summary{min-width:63px;font-size:12px;padding:6px;gap:5px}}
@keyframes swipe-hint-arrow{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
@keyframes swipe-hint-life{0%{opacity:0}12%,85%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.mobile-scroll-hint,.mobile-scroll-hint svg{animation:none}}
/* Phone player: use the full screen width, with swipe navigation. */
@media(max-width:700px){
 .game-arrows{display:none}
 main{padding-left:10px;padding-right:10px;padding-top:10px;padding-bottom:10px;max-width:100%}
 .game-photo .visual{max-height:45dvh}
 .game-photo .question-area{flex-grow:1;display:flex;flex-direction:column;justify-content:center}
 .answer{min-height:44px}
}
@media(max-width:700px){.game-photo .visual{flex:1 1 45dvh}.game-photo .question-area{flex:1 0 auto}}
/* Optional launch signup: one prompt after five submitted answers. */
.waitlist-dialog{width:min(420px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:0;border:2px solid #e1e9db;border-bottom:5px solid #d3dfca;border-radius:25px;background:#fff;color:#304338;box-shadow:0 20px 60px #20351830;overflow:auto}
.waitlist-dialog::backdrop{background:#20351866}
.waitlist-content{padding:28px 24px 20px;text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.waitlist-symbol{align-self:center;display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#edf8e4;color:var(--quiz-accent);font-size:40px;font-weight:900;margin-bottom:4px}
.waitlist-content h2{font-size:26px;line-height:1.15;font-weight:900;letter-spacing:-.5px}
.waitlist-content p{font-size:17px;color:#748171}
.waitlist-form{display:flex;flex-direction:column;gap:10px;margin-top:5px}
.waitlist-form input{width:100%;font:700 17px Nunito,system-ui;padding:14px;border:2px solid #dfe7d9;border-bottom-width:4px;border-radius:14px;color:#304338;background:#fff}
.waitlist-form .primary{margin:0;min-height:49px;font-weight:900;letter-spacing:.7px}
.waitlist-content small{font-size:12px;color:#65745e}
.waitlist-skip{align-self:center;min-height:44px;padding:9px 20px;margin:0}
.waitlist-error:empty{display:none}.waitlist-error{font-size:14px;color:#b44436}
.waitlist-dialog .primary:disabled{opacity:.65}
@media(max-width:700px){.waitlist-dialog{margin:auto auto max(12px,env(safe-area-inset-bottom));width:calc(100% - 20px)}.waitlist-content{padding:24px 20px 16px}}
@media(max-height:500px){.waitlist-content{padding:16px;gap:7px}.waitlist-symbol{display:none}.waitlist-content h2{font-size:22px}.waitlist-form input{padding:9px}}
/* Two modes share the same fixed-height player. */
.mode-tabs{height:52px;flex:none;display:flex;justify-content:center;gap:32px;border-bottom:2px solid var(--line);background:#fff}
.mode-tabs button{padding:0 4px;border-bottom:3px solid transparent;background:none;color:var(--muted);font-size:16px;font-weight:900}
.mode-tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--deep)}
.workspace{height:100dvh;display:flex;flex-direction:column}.topbar{flex-shrink:0}
.workspace main{height:auto;flex:1;min-height:0;width:100%}
body[data-screen=daily]{height:100dvh;overflow:hidden;overscroll-behavior:none}
body[data-screen=daily] main{display:flex;max-width:650px;padding:16px}
.daily-shell{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}
.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.daily-heading h1{font-size:25px;margin-top:4px}.daily-score{font-size:27px;color:var(--deep)}.daily-score span{font-size:15px;color:var(--muted)}
.daily-track{display:flex;gap:4px;height:7px;flex:none}.daily-track i{flex:1;border-radius:4px;background:#e8eee3}.daily-track .hit{background:var(--green)}.daily-track .miss{background:#ed9a88}
.daily-card{flex:1;min-height:0;display:flex;flex-direction:column;border:2px solid var(--line);border-bottom-width:4px;border-radius:23px;overflow:hidden}
.daily-meta{display:flex;justify-content:space-between;gap:8px;padding:12px 16px;font-size:14px}.daily-meta span{color:var(--muted)}
.daily-art{flex:1;min-height:40px;display:flex;justify-content:center;align-items:center;background:#f0f7ea;overflow:hidden;padding:12px}.daily-art>img{width:100%;height:100%;object-fit:cover}.daily-art>svg{width:100%;height:100%}.daily-art .flag-symbol{font-size:clamp(50px,12vh,110px)}
.daily-question{padding:14px 16px;flex:none}.daily-question h2{font-size:22px;line-height:1.2}.daily-question .answers{margin-top:12px;gap:8px}.daily-feedback{font-size:14px;line-height:1.3;margin-top:10px;color:var(--muted)}
.daily-next{min-height:44px;margin-top:10px}.daily-next[data-daily-skip]{background:#f4f7f0;border-color:#dce5d4;color:var(--muted)}
.daily-input{display:flex;gap:8px;margin-top:12px}.daily-input input{width:0;flex:1;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit;min-height:44px}.daily-input .primary{width:auto;margin:0;min-height:44px}.daily-input button:disabled{opacity:.5}
.daily-complete{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px}.daily-complete .primary{max-width:360px}.daily-trophy{font-size:64px}.daily-complete p{color:var(--muted)}
@media(max-width:700px){body[data-screen=daily] main{padding:10px}.daily-shell{gap:8px}.daily-heading h1{font-size:21px}.daily-question{padding:12px}.daily-question h2{font-size:19px}.daily-meta{padding:9px 12px}.daily-heading .eyebrow{font-size:12px}.mode-tabs{height:48px}.daily-card .credit{font-size:10px;padding:0 12px 6px}}
@media(max-height:650px){.daily-heading h1{font-size:19px}.daily-shell{gap:6px}.daily-meta{padding:7px 12px}.daily-question{padding:8px 12px}.daily-question h2{font-size:18px}.daily-question .answers{margin-top:8px;gap:6px}.daily-question .answer{min-height:40px;padding:6px 10px}.daily-feedback{margin-top:6px;font-size:13px}.daily-next{margin-top:6px;min-height:38px;padding:7px}.daily-art{padding:6px}}
@media(max-height:480px) and (min-width:600px){.daily-card{display:grid;grid-template-columns:40% 60%;grid-template-rows:auto minmax(0,1fr) auto}.daily-meta{grid-column:1/-1}.daily-art{grid-column:1;grid-row:2}.daily-question{grid-column:2;grid-row:2}.daily-card .credit{grid-column:1/-1}.daily-heading{display:none}.daily-question .answer{min-height:34px}.topbar{height:48px}.mode-tabs{height:40px}}

/* Rank These: independently scrollable so ranking gestures never switch games. */
.game-stage>.rank-card{display:flex;flex-direction:column;background:#fffdf8;overflow:hidden}
.rank-body{padding:4px 22px 22px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.rank-category-count{font-size:12px;color:#788374;font-weight:700}.rank-modes{display:flex;gap:7px;margin:6px 0 16px}.rank-modes button{flex:1;border:2px solid #e2e7dc;border-bottom-width:4px;border-radius:12px;background:white;color:#77836d;min-height:43px;font:inherit;font-size:12px;font-weight:800;padding:6px}.rank-modes button.selected{border-color:#83c950;background:#eefadc;color:#447321}.rank-picker{display:block;font-size:10px;font-weight:800;letter-spacing:1px;color:#7b8770}.rank-picker select{display:block;width:100%;border:2px solid #e3e7dc;background:white;border-radius:12px;padding:11px;margin:5px 0 17px;color:#35452b;font:inherit;font-size:14px;letter-spacing:0}.rank-heading h1{font-size:27px;line-height:1.12;margin:7px 0 8px;letter-spacing:-.7px}.rank-heading p{font-size:13px;color:#7a8373;line-height:1.5;margin:0 0 17px}.rank-heading .eyebrow{font-size:10px;color:#6f9e47}.rank-track{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:9px;color:#788374}.rank-track strong{color:#568b32;white-space:nowrap}.rank-track span{text-align:right}.rank-list{padding:0;margin:0;list-style:none;display:grid;gap:7px}.rank-row{display:flex;align-items:center;gap:11px;min-height:53px;padding:6px 9px;background:#fff;border:2px solid #e4e8df;border-bottom-width:4px;border-radius:13px}.rank-row[draggable=true]{cursor:grab}.rank-number{width:26px;height:26px;border-radius:9px;background:#f0f2ea;display:grid;place-items:center;color:#839076;font-size:12px;font-weight:800;flex:none}.rank-name{flex:1;min-width:0;display:grid;gap:3px}.rank-name strong{font-size:14px}.rank-name small{color:#63874c;font-size:11px;font-variant-numeric:tabular-nums}.rank-move{display:flex;gap:3px}.rank-move button{width:32px;height:34px;border:0;border-radius:7px;background:#f2f5ec;color:#728266;font-size:19px}.rank-move button:disabled{opacity:.25}.rank-row.hit{border-color:#b7dc95;background:#f3fbe9}.rank-row.hit .rank-number{background:#d7efbd;color:#508029}.rank-row.miss{border-color:#ecd5b4}.rank-check{color:#69a631;font-weight:900}.rank-list.recall .rank-row:not(.hit){border-style:dashed;background:transparent;color:#abb1a3}.rank-actions>.primary{width:100%;margin-top:15px}.rank-guess{display:flex;gap:8px;margin-top:16px}.rank-guess input{width:0;flex:1;min-height:46px;border:2px solid #dfe5d5;border-radius:12px;padding:9px 12px;font:inherit;font-size:14px;background:white}.rank-guess .primary{margin:0;min-width:77px}.rank-feedback{min-height:20px;font-size:13px;line-height:1.5;color:#568139;margin:10px 0 2px}.rank-actions .text-button{font-size:12px}.rank-source{border-top:1px solid #e5e9df;margin-top:12px;padding-top:12px;font-size:11px;color:#87917e;line-height:1.5}.rank-source summary{cursor:pointer}.rank-source a{color:#5b823f}.rank-card button:focus-visible,.rank-card select:focus-visible,.rank-card input:focus-visible{outline:3px solid #159fd0;outline-offset:2px}
@media(max-width:700px){.rank-body{padding:3px 14px 20px}.rank-heading h1{font-size:24px}.rank-row{min-height:49px}.rank-modes{margin-bottom:10px}.rank-heading p{margin-bottom:10px}.rank-picker select{margin-bottom:12px}.rank-move button{width:36px;height:36px}}
.rank-list.recall{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(5,auto)}.rank-body>.rank-guess{margin:10px 0 14px;position:sticky;top:0;z-index:1;background:#fffdf8;padding:6px 0}.rank-list.recall .rank-row{gap:7px;min-height:54px;padding:6px}.rank-list.recall .rank-name strong{font-size:12px}.rank-list.recall .rank-number{width:22px;height:24px}.rank-list.recall .rank-check{font-size:12px}
.rank-guess .primary{width:auto;flex:0 0 auto}.rank-guess input{min-width:0}

/* Level-based ranking: empty numbered slots, with a separate draggable name bank. */
.rank-card .round-progress{flex:none}.rank-card .rank-body{padding-top:0}.rank-level-picker{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;color:#788374;margin:4px 0 12px}.rank-level-picker select{min-width:0;flex:1;border:2px solid #e3e7dc;background:#fff;border-radius:10px;padding:8px;color:#35452b;font:inherit;font-size:14px}.rank-card .rank-heading h1{font-size:25px;margin:6px 0}.rank-card .rank-heading p{margin-bottom:10px}.rank-card .rank-heading .eyebrow{font-size:12px}.rank-slots .rank-row{min-height:44px;padding:4px 8px;gap:9px}.rank-slots .rank-row:not(.filled){border-style:dashed;background:#f7f9f2}.rank-slot-button{flex:1;text-align:left;border:0;background:transparent;font:inherit;font-weight:700;font-size:14px;color:#a0aa95;min-height:30px;padding:3px;touch-action:none;user-select:none}.filled .rank-slot-button{color:#35452b;cursor:grab}.rank-slot-button.selected{color:#578d28}.rank-bank{margin-top:12px;border:2px solid #e1e8d7;border-radius:13px;background:#f4f7ee;padding:10px}.rank-bank-label{display:block;font-size:12px;font-weight:800;color:#788374;margin-bottom:8px}.rank-bank-names{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.rank-token{padding:9px 13px;min-height:40px;border:2px solid #dce4d2;border-bottom-width:4px;border-radius:11px;background:white;color:#35452b;font:inherit;font-size:14px;font-weight:700;cursor:grab;touch-action:none;user-select:none}.rank-token.selected{border-color:#78b946;background:#eafaD9}.rank-bank-empty{font-size:12px;color:#788374}.rank-slots.ten-slots{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-template-rows:repeat(5,auto)}.rank-slots.ten-slots .rank-row{min-height:53px;gap:5px;padding:4px}.ten-slots .rank-slot-button{font-size:13px}.rank-row.drop-target,.rank-bank.drop-target{border-color:#79b83c;background:#e8f8d7}.rank-drag-ghost{position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-65%);background:#ecfbdc;border:2px solid #78b946;border-radius:11px;padding:10px 16px;box-shadow:0 8px 22px #203d292a;font-weight:800;color:#35452b}.rank-actions .primary:disabled{opacity:.45;cursor:default}.rank-card .rank-actions>.primary{margin-top:10px}.rank-card .rank-feedback:empty{display:none}.rank-card .rank-source{font-size:12px}.rank-card .round-result{min-height:300px}.rank-card .rank-list.recall .rank-name strong{font-size:14px}

/* Search quiz → level check → the existing daily challenge. */
@media(max-width:1049px){body[data-topic=true] .game-arrows{display:none}}
.journey-result{width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:24px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.journey-result>*,.daily-complete>*{flex-shrink:0}
.journey-symbol{font-size:48px;line-height:1.2}.journey-result h1{font-size:32px;line-height:1.12}.journey-result p{font-size:15px;color:var(--muted);line-height:1.5;max-width:380px}
.journey-result .result-stats{margin:4px 0 12px;width:100%;max-width:330px}.journey-result .primary{width:100%;max-width:380px}
.journey-invitation{background:#f3f8ed;border:1px solid #dfebd5;border-radius:18px;padding:20px 16px;width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.journey-invitation h2{font-size:23px;line-height:1.2}.journey-invitation small{font-size:12px;color:var(--muted)}.journey-invitation .primary{margin:2px 0}.journey-invitation .text-button{font-size:13px;padding:6px}
.placement-top{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;gap:8px;padding:0 3px 9px;font-size:14px}.placement-top .text-button{font-size:13px;padding:6px}
.placement-levels{display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:380px;gap:6px;margin:3px 0}.placement-levels span{border:2px solid var(--line);border-radius:12px;padding:9px 4px;font-size:13px;color:var(--muted);font-weight:800}.placement-levels .selected{border-color:#a8d78b;background:#edf8e4;color:var(--deep)}
.journey-result .placement-note{font-size:13px}.placement-card{overflow:hidden}.placement-card .flag-image{object-fit:contain;width:72%;height:80%}
.challenge-signup{margin-top:12px;border-top:2px solid var(--line);padding-top:20px;width:100%;max-width:400px;text-align:left}.challenge-signup h3{font-size:20px;line-height:1.2;margin:8px 0}.challenge-signup p{font-size:13px;margin:0 0 12px;line-height:1.5}.challenge-signup .eyebrow{font-size:10px;letter-spacing:1px}
.challenge-email-row{display:flex;flex-direction:column;gap:8px}.challenge-email-row>input{width:100%;min-width:0;border:2px solid var(--line);border-radius:12px;padding:12px;font:700 15px Nunito,system-ui;color:var(--ink);background:white}.challenge-email-row .primary{margin:0;max-width:none;font-size:14px}
.challenge-consent{display:flex;align-items:flex-start;gap:8px;text-align:left;margin:12px 0 7px;font-size:12px;line-height:1.4;color:var(--muted)}.challenge-consent input{flex-shrink:0;accent-color:var(--green);width:17px;height:17px;margin-top:1px}.challenge-signup small{font-size:11px;color:var(--muted)}.challenge-signup .signup-status{font-size:13px;margin-top:10px;color:var(--deep)}.signup-status:empty{display:none}
.daily-complete{overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;justify-content:flex-start;padding:22px 10px;gap:12px}.daily-complete .daily-trophy{font-size:44px}.daily-complete h2{font-size:25px}
body[data-screen=placement] main{padding-right:18px;padding-left:18px}body[data-screen=placement] .mode-tabs{display:none}
@media(max-height:700px){.journey-result{padding:16px 12px;gap:8px}.journey-symbol{font-size:32px}.journey-result h1{font-size:27px}.journey-invitation{padding:14px 12px;gap:7px}.journey-invitation h2{font-size:21px}.journey-result .result-stats{margin:0 0 5px}.placement-top{padding-bottom:5px}.placement-card .game-header{padding:8px}.placement-card .question-area{padding:10px}.placement-card .question-area :is(h1,h2){font-size:21px}.placement-card .answer{min-height:38px;padding:6px 8px;font-size:13px}.placement-card .feedback{font-size:12px}.placement-card .primary{min-height:38px;padding:7px}.placement-card .round-progress{padding-bottom:8px}}
body[data-screen=placement],body[data-screen=daily],body[data-topic=true]{touch-action:pan-y}
body[data-topic=true] .game-card{touch-action:pan-y}

/* Mobile combines play modes and progress in one row. */
.mode-bar{flex-shrink:0}
body[data-screen=placement] .mode-bar{display:none}
@media(max-width:700px){
 .topbar{display:none}
 .mode-bar{display:flex;align-items:center;gap:12px;min-height:52px;padding:env(safe-area-inset-top,0px) 12px 0;border-bottom:2px solid var(--line);background:#fff}
 .mode-bar .mode-tabs{flex:1;min-width:0;height:50px;justify-content:flex-start;gap:18px;border-bottom:0}
 .mode-bar .mode-tabs button{white-space:nowrap;padding:0;font-size:14px}
 .mode-bar .stats{flex-shrink:0;gap:8px;font-size:12px;white-space:nowrap}
}
@media(max-width:370px){
 .mode-bar{padding-right:8px;padding-left:8px;gap:8px}
 .mode-bar .mode-tabs{gap:12px}
 .mode-bar .mode-tabs button{font-size:12px}
 .mode-bar .stats{gap:5px;font-size:10px}
}

.mobile-games{display:none}
@media(max-width:700px){
 .mode-bar{position:relative;z-index:8;gap:8px}
 .mobile-games{display:block;position:relative;flex-shrink:0}
 .mobile-games summary{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:44px;cursor:pointer;border-radius:8px;color:#304338;touch-action:manipulation}
 .mobile-games summary::-webkit-details-marker{display:none}
 .mobile-games summary svg{width:21px;height:21px}
 .mobile-games summary:focus-visible{outline:3px solid #159cdb;outline-offset:1px}
 .mobile-games[open] summary{background:#edf8e4}
 .mobile-games nav{position:absolute;right:0;top:calc(100% + 5px);width:232px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 24px #30433820}
 .mobile-games button{flex-shrink:0;min-height:42px;background:transparent;text-align:left;border-radius:7px;padding:9px 12px;font-size:14px;font-weight:700}
 .mobile-games button:hover,.mobile-games button[aria-current=page]{background:#edf8e4;color:var(--deep)}
}
@media(max-width:370px){.mode-bar{gap:5px}.mobile-games summary{width:32px}.mode-bar .mode-tabs{gap:10px}}

/* Answer feedback overlays the player; the artwork never shrinks to make room. */
.game-card,.daily-card{position:relative}
.answer-overlay{position:absolute;z-index:5;bottom:0;left:0;right:0;display:flex;flex-direction:column;gap:16px;padding:22px 20px max(20px,env(safe-area-inset-bottom));max-height:70%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;text-align:left;background:#dff4cf;color:#367c16;border-top:1px solid #c8e8b1;box-shadow:0 -4px 18px #30433808;animation:answer-overlay-in .18s ease-out}
.answer-overlay.is-wrong{background:#ffdfdf;color:#d73535;border-color:#ffcaca}
.answer-overlay .feedback,.answer-overlay .daily-feedback{display:block;margin:0;min-height:0;padding:0;background:none;border:0;color:inherit;font-size:15px;line-height:1.4}
.answer-overlay .feedback>svg{display:none}
.answer-overlay .feedback strong,.answer-overlay .daily-feedback strong{display:block;font-size:23px;line-height:1.2;margin-bottom:6px;font-weight:900}
.answer-overlay .feedback br{display:none}
.answer-overlay .primary{flex-shrink:0;margin:0;width:100%;min-height:48px;background:var(--quiz-accent);border-color:#409017;color:white}
.answer-overlay.is-wrong .primary{background:#ff4b4b;border-color:#d93232}
@keyframes answer-overlay-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(max-height:650px){.answer-overlay{padding:16px;gap:12px}.answer-overlay .feedback,.answer-overlay .daily-feedback{font-size:13px}.answer-overlay .feedback strong,.answer-overlay .daily-feedback strong{font-size:21px}.answer-overlay .primary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.answer-overlay{animation:none}}

/* Reusable flat-map viewport, shared by every map question renderer. */
.state-visual:has(>.map-viewport){padding:0;background:var(--quiz-water)}
.map-viewport{position:relative;overflow:hidden;isolation:isolate;touch-action:none}
.map-viewport>.map-canvas{display:block;width:100%;height:100%;max-height:100%;background:var(--quiz-water);touch-action:none;cursor:grab}
.map-viewport>.map-canvas:active{cursor:grabbing}
.map-canvas:focus-visible{outline:3px solid #159cdb;outline-offset:-3px}
.map-controls{position:absolute;right:10px;bottom:10px;z-index:1;display:flex;flex-direction:column;border:1px solid #dce5d6;border-radius:12px;background:#ffffffed;box-shadow:0 2px 8px #30433816;overflow:hidden}
.map-controls button{display:grid;place-items:center;width:42px;height:42px;padding:0;background:transparent;color:#304338;font:700 25px/1 Nunito,system-ui}
.map-controls button+button{border-top:1px solid #e6ebe4}
.map-controls button:hover:not(:disabled){background:#edf8e4;color:var(--quiz-deep)}
.map-controls button:disabled{color:#b6c0b0;cursor:default}
.map-controls button:focus-visible{outline:3px solid #159cdb;outline-offset:-3px}
.map-viewport.population-map{min-height:44px}
.population-map .map-controls{bottom:4px;right:4px;flex-direction:row;border-radius:9px}
.population-map .map-controls button{width:34px;height:34px;font-size:22px}
.population-map .map-controls button+button{border-top:0;border-left:1px solid #e6ebe4}
.capital-place .map-controls{bottom:10px;right:10px;flex-direction:column}
.capital-place .map-controls button{width:42px;height:42px}
.capital-place .map-controls button+button{border-left:0;border-top:1px solid #e6ebe4}
[data-sound-toggle]{border-top:1px solid var(--line)!important;margin-top:6px!important;color:var(--muted)}

.country-level-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px;flex-shrink:0;color:var(--muted);font-size:12px;font-weight:800}
.country-level-row select{max-width:130px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#304338;font:800 12px Nunito,system-ui}
.country-level-result{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.quiz-country-form{margin-top:14px}.country-recall-status{min-height:18px;margin-top:7px;font-size:12px;line-height:1.35;color:var(--muted)}
.find-status{font-size:13px;line-height:1.35;color:var(--muted);margin-top:12px;min-height:36px}
.find-controls .primary{width:100%}.find-controls .primary:disabled{background:#edf1e9;color:#899482;border-color:#dce3d7;cursor:default}
.map-canvas,.map-canvas *{-webkit-tap-highlight-color:transparent}.map-canvas [data-country-pick]{cursor:pointer;outline:none;-webkit-user-select:none;user-select:none}.map-canvas [data-country-pick]:focus-visible{outline:none;stroke:#117dac;stroke-width:2;vector-effect:non-scaling-stroke}
@media(max-width:370px){.country-level-row{padding:0 10px 8px;font-size:11px}.country-level-row select{font-size:11px;padding:4px 6px}}
@media(max-height:480px) and (min-width:600px){.game-map-quiz:has(.country-level-row){display:flex!important}.game-map-quiz:has(.country-level-row) .country-level-row{padding-bottom:4px}.game-map-quiz:has(.country-level-row) .round-progress{padding-bottom:4px}.game-map-quiz:has(.country-level-row) .question-area{padding:8px 12px}.game-map-quiz:has(.country-level-row) .question-area :is(h1,h2){font-size:18px}.game-map-quiz:has(.country-level-row) .answers{margin-top:6px}}

/* Mobile navigation: two thirds for play modes, one third for progress/menu. */
@media(max-width:700px){
 .mode-bar{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,calc(100% / 3 - 32px)) 32px;gap:0;padding-right:4px;padding-left:4px;min-height:48px}
 .mode-bar .mode-tabs{display:flex;width:100%;height:46px;gap:0;justify-content:stretch}
 .mode-bar .mode-tabs button{flex:1;min-width:0;padding:0 4px;font-size:15px;text-align:center}
 .mode-bar .stats{min-width:0;justify-content:center;gap:4px;font-size:12px;letter-spacing:-.2px}
 .mode-bar .mobile-games summary{width:32px;height:44px}
}
@media(max-width:370px){.mode-bar .mode-tabs button{font-size:14px}.mode-bar .stats{font-size:10.5px;gap:2px}}

.level-menu-trigger{border:1px solid var(--line);border-bottom-width:3px;border-radius:10px;background:#fff;color:var(--quiz-deep);padding:7px 10px;font:800 12px Nunito,system-ui;white-space:nowrap;cursor:pointer}
.quiz-level-dialog{width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:20px;background:#fff;color:#304338;box-shadow:0 20px 80px #18362140;overflow:auto}
.quiz-level-dialog::backdrop{background:#172d245c}
.quiz-level-dialog header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px;background:white;border-bottom:1px solid var(--line)}
.quiz-level-dialog h2{margin:0;font-size:23px}.quiz-level-dialog header p{margin:5px 0 0;font-size:12px;color:var(--muted)}
.quiz-level-dialog header button{background:#f1f4ee;border:0;border-radius:50%;width:40px;height:40px;cursor:pointer}
.quiz-level-path{list-style:none;padding:10px 20px 20px;margin:0}.quiz-level-path li{position:relative;display:flex;align-items:center;gap:12px;min-height:94px}.quiz-level-path li:not(:last-child):before{content:'';position:absolute;width:4px;background:#e5ebdf;left:23px;top:64px;bottom:-26px}
.level-node{position:relative;display:grid;place-items:center;width:50px;height:50px;flex-shrink:0;border-radius:50%;background:var(--quiz-accent);color:white;border-bottom:4px solid #3f9215;font-size:23px;font-weight:900}.level-node svg{width:21px;height:21px}
.quiz-level-path li>div{flex:1;min-width:0}.quiz-level-path strong,.quiz-level-path small,.quiz-level-path div>span{display:block}.quiz-level-path strong{font-size:15px}.quiz-level-path small{font-size:11px;margin:3px 0;color:var(--muted)}.quiz-level-path div>span{font-size:10px;font-weight:800;color:var(--quiz-deep);text-transform:uppercase;letter-spacing:.5px}
.quiz-level-path button{padding:9px 10px;min-height:42px;background:#eff8e8;color:var(--quiz-deep);border:1px solid #d0e6bf;border-bottom-width:3px;border-radius:10px;font:800 12px Nunito,system-ui;cursor:pointer}.quiz-level-path .is-locked .level-node{background:#edf0e9;border-color:#dce1d6;color:#9ba694}.quiz-level-path .is-locked button{background:#f6f7f4;color:#9ba694;border-color:#e7ebe1;cursor:default}.quiz-level-path .is-locked div>span{color:#8c9885}.quiz-level-path .is-ready .level-node{outline:3px solid #d9efc9;outline-offset:4px}

.game-title-copy{min-width:0}

.quiz-languages{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding:12px;font-size:12px;font-weight:800}.quiz-languages>span{color:var(--muted);width:100%}.quiz-languages a{display:block;text-decoration:none;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.quiz-languages a[aria-current=page]{background:#edf8e4;color:var(--deep);border-color:#b9df9e}
html[lang=cs] .game-title :is(strong,h1){line-height:1.2}html[lang=cs] .game-header{gap:8px}html[lang=cs] .level-menu-trigger{flex-shrink:0}html[lang=cs] .game-icon{flex-shrink:0}

/* Searchable locale picker: native names remain readable in either direction. */
.quiz-languages{min-width:0;width:100%;box-sizing:border-box}
.quiz-languages input{width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;font:inherit;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink)}
.quiz-language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:240px;overflow:auto;overscroll-behavior:contain;width:100%;padding:2px}
.quiz-language-options a{min-width:0;overflow-wrap:anywhere;text-align:start}
.quiz-language-options a[hidden]{display:none}
.quiz-language-options small{display:block;font-size:10px;font-weight:500;color:var(--muted);margin-top:3px}
.mobile-games .quiz-language-options{grid-template-columns:1fr;max-height:220px}
[dir=rtl] .mobile-games nav{right:auto;left:0}
[dir=rtl] .quiz-level-path{padding-inline:16px}
html:not([lang=en]):not([lang=cs]) body{font-family:Nunito,system-ui,-apple-system,'Arial',sans-serif}
.game-map-quiz .answer,.game-title-copy,.level-menu-trigger{overflow-wrap:anywhere;min-width:0}
html[dir=rtl] .state-visual{direction:ltr}
@media(max-width:1049px){
 html:not([lang=en]):not([lang=cs]) .mode-bar .mode-tabs button{white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-size:12px;padding:3px 4px}
 html:not([lang=en]):not([lang=cs]) .level-menu-trigger{white-space:normal;max-width:44%;line-height:1.3}
}
[dir=rtl] .quiz-level-path li:not(:last-child):before{left:auto;right:23px}
[dir=rtl] .answer,[dir=rtl] .mobile-games button{text-align:start}
.quiz-level-path button{max-width:32%;overflow-wrap:anywhere}

/* One theme for every regional quiz, including SVG geometry. */
:root{--quiz-accent:#58bb21;--quiz-deep:#3c9015;--quiz-land:#dce8d3;--quiz-water:#e6f4fa;--quiz-border:#fff;--quiz-selected:#7dccf3;--quiz-wrong-map:#f18e85;--quiz-correct-surface:#eaf8dc;--quiz-correct-border:#8bd458;--quiz-wrong-surface:#fff0f0;--quiz-wrong-border:#f19b9b;--green:var(--quiz-accent);--deep:var(--quiz-deep)}
.game-map-quiz .answer.correct{background:var(--quiz-correct-surface);border-color:var(--quiz-correct-border)}
.game-map-quiz .answer.wrong{background:var(--quiz-wrong-surface);border-color:var(--quiz-wrong-border)}
.game-map-quiz .answer-overlay.is-correct{background:var(--quiz-correct-surface)}
.game-map-quiz .answer-overlay.is-wrong{background:var(--quiz-wrong-surface)}
.quiz-level-path .level-node{background:var(--quiz-accent);border-color:var(--quiz-deep)}
.quiz-level-path .is-locked .level-node{background:#edf0e9;border-color:#dce1d6}
.quiz-language-options a[aria-current=page]{color:var(--quiz-deep)}

.game-title h1{margin:0;line-height:1.25;letter-spacing:normal}

/* All topic media retain the shared visual area and fixed feedback overlay. */
.state-visual .quiz-flag-image{width:80%;height:76%;object-fit:contain;filter:drop-shadow(0 3px 7px #0002)}
.state-visual .quiz-photo-image{width:100%;height:100%;object-fit:contain;background:var(--quiz-water)}
.quiz-outline-art{padding:12px;background:var(--quiz-water)}

/* WonderBean: the approved purple Magic Bean mark. */
.topbar .mobile-brand{display:flex;align-items:center;gap:6px;line-height:1;min-width:0;color:#29282d;letter-spacing:-.8px}.brand-icon{display:block;width:36px;height:36px;object-fit:contain;flex-shrink:0}
@media(max-width:380px){.topbar .mobile-brand{gap:3px;font-size:15px}.brand-icon{width:28px;height:28px}}

