/* One viewport = one stage. No document scrolling or fixed floating dock. */
html,body{height:100%;width:100%;overflow:hidden;overscroll-behavior:none}body{min-height:0}#app{height:100dvh;width:100%;max-width:1000px;padding:max(12px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(17px,env(safe-area-inset-bottom));display:grid;grid-template-rows:44px minmax(0,1fr) 75px;gap:10px;overflow:hidden}.game-active #app,#app:has(.results){grid-template-rows:44px minmax(0,1fr)}header{height:auto;min-height:0}.wordmark{font-size:15px;letter-spacing:3px}.wordmark small{margin-top:5px;font-size:7px}.guest{display:none}body:after{inset:5px}.game-nav{position:relative;inset:auto;transform:none;margin:0 auto;width:100%;height:75px;max-width:560px;padding:7px 5px 8px;align-self:end}.game-nav button{min-height:0;height:56px;gap:6px}.game-nav .nav-token{width:38px;height:32px}.game-nav svg{width:21px;height:21px}.game-nav .nav-label{font-size:9px}.game-nav button.active:after{bottom:-5px}
.stage-home{min-height:0;display:flex;flex-direction:column;justify-content:center;gap:10px;max-width:480px;width:100%;margin:0 auto;padding:0}.hero{margin:0;padding:0}.hero .eyebrow,.hero .sub,.card-head,.side,.mini-label,.availability,.home-modes .sub{display:none}.hero h1.stage-logo{font-size:clamp(42px,7dvh,70px);letter-spacing:-2px;margin:0 0 8px}.home-grid{display:block;width:100%;margin:0}.stage-card{display:flex;flex-direction:column;padding:0;gap:10px}.wheel{height:clamp(70px,13dvh,125px);margin:0}.wheel-icon{font-size:24px;margin:0}.wheel-title{font-size:21px;min-height:26px}.topic-select{margin:0;padding:8px;font-size:12px;height:34px}.round-selector{margin:0;min-width:0;width:100%;padding:10px 12px;font-size:15px}.home-modes{margin:0}.mode-options{gap:8px;margin:0}.mode-options .segments{gap:6px}.segments button,.secondary{padding:10px 12px;min-height:38px}.start{margin:4px 0 7px;padding:12px 16px;min-height:52px;font-size:21px}.primary span{width:27px;height:27px;font-size:21px}.resume-card{margin:0;padding:7px 10px}.resume-card strong,.resume-card p{display:none}.resume-card .secondary{padding:8px 10px}.resume-card .text-button{padding:8px;font-size:11px}
.game{margin:0 auto;width:100%;max-width:620px;min-height:0;display:flex;flex-direction:column;gap:10px;padding:0 0 4px}.game-top{margin:0;min-height:26px}.game-top .tag{display:none}.question-count{margin-left:auto}.question-count b{font-size:23px}.time-wrap{margin:0}.time-label{margin-bottom:6px;font-size:10px}.time-label>span:first-child{visibility:hidden}.opponent{margin:0;padding:6px 9px;min-height:42px}.opponent .avatar{width:28px;height:28px}.opponent>span:last-child{display:none}.question-panel{min-height:0;flex:1;justify-content:center;padding:2px 0}.question-panel h1{font-size:clamp(20px,3.2dvh,28px);line-height:1.25;margin:7px 0 0;letter-spacing:-.4px}.question-panel .eyebrow{font-size:8px;letter-spacing:1px}.answers{display:grid;grid-template-rows:repeat(4,minmax(48px,1fr));gap:10px;margin:0;flex:0 0 auto}.answer{min-height:48px;height:clamp(48px,7.5dvh,70px);padding:8px 12px;font-size:16px;line-height:1.2}.answer .letter{font-size:20px;width:22px}.game-foot{margin:5px 0 0;min-height:40px;flex-shrink:0}.joker{height:40px;width:75px}.feedback{font-size:11px;max-width:75%;line-height:1.3}.dots{display:none}
.page{margin:0 auto;padding:12px 14px;width:100%;max-width:650px;min-height:0;background:#080e08bf}.page>.eyebrow{display:none}.page h1{font-size:27px;margin:4px 0 15px}.page h2{font-size:20px}.page .sub{font-size:13px;line-height:1.5}.page .note{font-size:12px;line-height:1.5;padding:10px 0}.page .stage-card{gap:10px}.page .stage-card .wheel-icon{display:none}.page .avatar{width:32px;height:32px}.page .stats-grid{gap:7px}.page .stat{padding:16px 6px}.page .stat b{font-size:24px}
.settings-page{padding:4px 5px;display:flex;flex-direction:column;gap:10px}.settings-page h1{font-size:25px;margin:0}.settings-tabs{display:flex;gap:8px}.settings-tabs button{flex:1}.settings-tabs .selected{border-color:var(--blue);color:var(--blue)}.settings-pane[hidden]{display:none!important}.settings-pane{display:flex;flex-direction:column;gap:6px}.settings-page .row{padding:9px 0;gap:8px;font-size:12px;flex-wrap:wrap}.settings-page .row small,.settings-page .sub,.settings-page .note{display:none}.settings-page .row>div:first-child{min-width:110px}.settings-page .segments{gap:5px}.settings-page .segments button{font-size:11px;padding:8px 10px;min-height:35px}.settings-page .mode-options{margin-top:8px}.settings-hint{font-size:10px;color:var(--muted);margin:0;line-height:1.4}.results{margin:0 auto;padding:0 8px;width:100%;max-width:600px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:0}.results>.eyebrow:first-child,.results>.sub{display:none}.trophy{font-size:40px;margin:0}.results h1{font-size:clamp(24px,4dvh,36px);margin:0}.big-score{font-size:clamp(42px,8dvh,64px);margin:0;line-height:1}.results .eyebrow{font-size:9px;letter-spacing:2px}.result-stats{gap:24px;margin:8px 0}.result-stats b{font-size:20px}.result-stats small{font-size:8px;max-width:100px;line-height:1.4}.duel-result{padding:8px 16px;width:100%}.duel-result h2{font-size:18px;margin:0}.duel-result p{margin:5px 0;font-size:13px}.results .primary{padding:12px;min-height:44px;font-size:15px;margin:6px 0}.actions{margin:0;gap:8px}.actions .secondary{font-size:11px}.results .text-button{padding:6px 0;font-size:12px}.review-pager{display:flex;gap:10px}.review-pager button{width:50%}.review-heading,.review-status{font-size:11px!important}dialog{max-height:calc(100dvh - 34px);padding:20px;overflow:hidden}dialog h2{font-size:20px;line-height:1.3}dialog p{font-size:12px;line-height:1.4}dialog a{color:var(--blue);font-size:12px}
@media(max-height:680px){#app{grid-template-rows:34px minmax(0,1fr) 64px;gap:7px;padding-top:12px;padding-bottom:15px}.game-active #app,#app:has(.results){grid-template-rows:34px minmax(0,1fr)}.game-nav{height:64px;padding:4px}.game-nav button{height:50px;gap:4px}.hero h1.stage-logo{font-size:40px;margin:0}.stage-home{gap:7px}.stage-card{gap:7px}.wheel{height:70px}.wheel-icon{display:none}.round-selector{padding:8px}.mode-options{gap:6px}.segments button,.secondary{padding:8px;min-height:34px}.start{min-height:45px;padding:10px}.game{gap:6px}.game-top{min-height:22px}.opponent{min-height:35px;padding:4px 8px}.opponent .avatar{width:24px;height:24px}.answer{height:48px;min-height:48px;font-size:15px}.answers{gap:8px}.question-panel h1{font-size:20px}.question-panel .eyebrow{font-size:7px}.time-track{height:6px}.game-foot{margin-top:3px;min-height:34px}.joker{height:34px}.settings-page{gap:6px}.settings-page h1{font-size:22px}.settings-page .row{padding:5px 0;gap:5px}.settings-page .segments button{padding:7px;min-height:32px}.settings-pane{gap:2px}.settings-hint{display:none}.trophy{font-size:28px}.results{gap:7px}.results h1{font-size:25px}.results .big-score{font-size:44px}.result-stats{margin:5px 0}.page h1{font-size:24px;margin-bottom:10px}.page p{margin:8px 0}.page .brief{margin-top:10px!important}.page .stat{padding:12px 5px}}
/* Round number shares the header; reserve the center for long questions. */
.game .game-top{position:absolute;top:max(22px,calc(env(safe-area-inset-top) + 10px));left:50%;transform:translateX(-50%);min-height:0;pointer-events:none}.game .question-count b{font-size:20px}.game .question-count{font-size:10px}.game .question-panel{overflow-wrap:anywhere}
.clean-start{gap:clamp(30px,8dvh,70px)}.clean-start .hero h1.stage-logo{font-size:clamp(42px,9dvh,85px);margin:0}.clean-start .stage-card{gap:20px}.settings-page .topic-row{display:grid;grid-template-columns:1fr;gap:5px}.settings-page .topic-row .topic-select{width:100%;height:36px;margin:0;padding:6px 8px;border:1px solid #75826d;background:#171e14;color:var(--text)}
.local-categories{display:grid;gap:6px}.local-categories .category-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;width:100%}.local-categories .category-modes button{font-size:10px;padding:7px 3px}.local-categories .category-grid{max-height:170px;overflow-y:auto;padding-right:3px}.local-categories .category-grid button{font-size:11px;min-height:37px;padding:5px}.category-feedback{margin:0;font-size:10px;color:var(--muted)}
.review-dialog{width:min(660px,calc(100% - 20px));height:min(820px,calc(100dvh - 22px));max-height:none;padding:0;overflow:hidden;background:#060906;color:#fff;border:1px solid #baff28}.review-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border-bottom:1px solid #617445;background:#0c1209}.review-head h2{margin:2px 0}.review-head small{color:#baff28}.review-close{width:42px;height:42px;border:1px solid #87967b;border-radius:50%;background:#151c12;color:#fff;font-size:27px}.review-list{height:calc(100% - 76px);overflow-y:auto;overscroll-behavior:contain;padding:10px;scrollbar-gutter:stable}.review-item{border:1px solid #526143;border-radius:10px;background:#0b1009;margin-bottom:8px}.review-item summary{list-style:none;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px;cursor:pointer}.review-item summary::-webkit-details-marker{display:none}.review-number{color:#aab3a5;font-size:11px}.review-question{font-size:13px;line-height:1.35}.review-item summary strong{font-size:11px;white-space:nowrap}.review-item.is-correct summary strong{color:#77f1a8}.review-item.is-wrong summary strong{color:#ff9696}.review-detail{padding:0 12px 13px 50px;border-top:1px solid #394333}.review-detail p{display:grid;gap:4px}.review-detail p span,.review-sources>span{color:#aab3a5;font-size:10px;text-transform:uppercase;letter-spacing:1px}.review-sources{display:grid;gap:7px}.review-sources a{display:block;padding:9px;border:1px solid #637650;border-radius:7px;color:#dfff9b;overflow-wrap:anywhere}.share-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;text-align:center;background:#070a06;color:#fff}.share-dialog img{display:block;width:min(100%,300px);margin:10px auto;border:1px solid #56624f}.share-dialog a,.share-dialog button{display:block;width:100%;margin:8px 0;text-decoration:none}.share-download{color:#111}.share-target{color:#fff}
