/* Time pressure and a quieter, more transparent glass surface. */
.main-panel{background:linear-gradient(135deg,#16344a54,#102a3e46);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
:root[data-theme=light] .main-panel{background:linear-gradient(135deg,#ffffff80,#eaf4fc68)}
.icon-button,.install-menu,.profile-button{--control-fill:#15364b55;min-width:40px;min-height:40px;border-color:#ffffff35;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
:root[data-theme=light] .icon-button,:root[data-theme=light] .install-menu{--control-fill:#edf6ff; border-color:#173b5929}
.icon-button svg,.install-menu svg,.avatar svg{display:block;width:20px;height:20px;flex-shrink:0}.top-actions{gap:8px}
.mobile-nav a{min-height:42px;justify-content:center;gap:5px}.mobile-nav [data-icon]{width:23px;height:23px;display:grid;place-items:center}.mobile-nav svg{width:22px;height:22px;stroke-width:1.8}.mobile-nav a.active{font-weight:650}
.timer-strip{margin:15px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#438ccb13}.timer-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.timer-label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.timer-label svg{height:17px;width:17px}.timer-label strong{font-variant-numeric:tabular-nums;font-size:21px;line-height:1;color:var(--ink)}.live-points{font-size:11px;color:var(--muted)}.live-points strong{font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums}.timer-track{height:3px;margin-top:9px;border-radius:3px;background:#ffffff18;overflow:hidden}.timer-track i{height:100%;width:100%;display:block;background:#67baff;border-radius:3px;transition:width .15s linear}.timer-strip.urgent{border-color:#f8966a65;background:#eb713018}.timer-strip.urgent .timer-label strong{color:var(--error)}.timer-strip.urgent .timer-track i{background:#ffa377}.game-panel .clues{margin-top:13px}.game-panel.answered .clues{margin-bottom:12px}.game-panel.answered #next{margin-top:14px}.game-panel.answered .reveal-box{margin-top:4px}.ready-screen{text-align:center;padding:25px 0 22px}.ready-clock{display:grid;place-items:center;margin:0 auto 12px;width:64px;height:64px;border:1px solid var(--line);background:#51a3ee17;border-radius:20px}.ready-clock svg{width:33px;height:33px;color:var(--accent)}.ready-screen h3{font-size:23px;font-family:Manrope,system-ui,sans-serif;margin:14px 0 9px;letter-spacing:-.7px}.ready-screen p{font-size:13px;line-height:1.8;color:var(--muted)}.score-bands{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:23px}.score-bands>span{font-size:9px;color:var(--muted);padding:9px 3px;border:1px solid var(--line);border-radius:9px;background:var(--card)}.score-bands strong{display:block;font-size:12px;color:var(--ink);margin-top:5px;white-space:nowrap}.question-heading h2{margin-top:6px}.question-heading .eyebrow{font-size:9px}
.game-panel .answer-form input{font-size:16px}.page-head h2{overflow-wrap:break-word}
@media(max-width:800px){
 html{height:100%;overflow:hidden;overscroll-behavior:none}body{height:var(--app-height,100dvh);min-height:0;overflow:hidden;display:flex;flex-direction:column;overscroll-behavior:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 .site-milje{height:45px}.site-milje img{min-width:900px}.topbar{width:100%;max-width:none;margin:0;padding:52px 12px 9px;gap:9px;flex:0 0 auto}.brand{font-size:15px;gap:7px;min-width:0;letter-spacing:-.4px;white-space:nowrap}.brand img{width:32px;height:32px;border-radius:9px}.brand-sub{font-size:6px;letter-spacing:1px;margin-top:3px}.top-actions{margin-left:auto;gap:5px}.top-actions .icon-button,.install-menu,.profile-button{width:33px;height:34px;min-width:33px;min-height:34px;border-radius:10px;padding:0}.top-actions svg{width:18px;height:18px}.profile-button{display:flex}.profile-button .avatar{width:26px;height:26px;border:0;background:transparent}.profile-button #account-label{display:none}.install-menu span{display:none}
 .layout{display:flex;align-items:stretch;flex:1 1 auto;min-height:0;max-width:560px;width:100%;padding:0 12px;margin:0 auto}.intro{display:none}.workspace{padding:0;min-height:0;display:flex;flex:1 1 auto;flex-direction:column;width:100%}.main-panel{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:15px 14px 12px;border-radius:20px;overscroll-behavior:contain;scrollbar-width:thin}.game-panel{overflow:hidden;display:flex;flex-direction:column}
 .game-top{margin:0 0 9px;min-height:25px;flex-shrink:0}.game-top .eyebrow{font-size:8px;letter-spacing:1px}.pill{padding:5px 9px;font-size:9px;border-radius:8px}.pill strong{font-size:16px}.progress{gap:6px;margin:0 0 10px;flex-shrink:0}.step{height:25px;font-size:11px;border-radius:8px}.question-heading{flex-shrink:0}.question-heading h2{font-size:25px;margin:4px 0 0;line-height:1.15}.question-heading .eyebrow{font-size:8px;letter-spacing:1px}
 .timer-strip{margin:11px 0 0;padding:8px 10px;border-radius:10px;flex-shrink:0}.timer-label strong{font-size:20px}.timer-track{margin-top:6px}.timer-label svg{width:15px;height:15px}.live-points{font-size:10px}.live-points strong{font-size:16px}
 .game-panel .clues{margin:11px 0;display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:6px;flex:1 1 auto;min-height:0;max-height:285px}.game-panel .clue{min-height:0;margin:0;font-size:12px;padding:7px 9px;gap:8px;line-height:1.3;overflow:hidden;align-items:center;border-radius:9px}.clue .num{min-width:21px;width:21px;height:22px;font-size:10px;border-radius:6px}.clue.locked svg{width:12px;height:12px;margin-right:4px}.game-panel .clue.latest{border-color:#99ceff60;background:#7fc8ff19}
 .answer-form{flex-shrink:0}.answer-row input{padding:10px 12px;min-height:41px;height:41px;font-size:16px;border-radius:10px}.game-panel .primary{min-height:39px;height:39px;padding:8px 12px;font-size:12px;border-radius:10px}.answer-form .primary{margin-top:7px}.game-panel .secondary{min-height:32px;height:32px;padding:6px 10px;font-size:11px;border-radius:9px;flex-shrink:0}.answer-form+.secondary{margin-top:6px}.game-panel .feedback{font-size:9px;line-height:1.4;margin:7px 0 0;min-height:12px;flex-shrink:0}.archive-game-note{margin:4px 0 0;font-size:8px;flex-shrink:0}
 .mobile-nav{flex:0 0 auto;margin-top:7px;padding:5px 6px 6px;border-radius:14px;box-shadow:none}.mobile-nav a{min-height:39px;font-size:9px;gap:3px;padding:1px}.mobile-nav [data-icon]{height:21px;width:21px}.mobile-nav svg{width:20px;height:20px}.mobile-nav a.active:after{bottom:-5px;width:18px}.panel-footer{flex:0 0 auto;padding:7px 4px 4px;font-size:8px;min-height:22px}.panel-footer>span:first-child{font-size:8px}.panel-footer button{font-size:8px}.bottom-caption{display:none}
 .ready-screen{padding:15px 0;display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center}.ready-clock{width:50px;height:50px;border-radius:16px;margin-bottom:3px}.ready-clock svg{height:27px;width:27px}.ready-screen h3{font-size:21px;margin:9px 0 5px}.ready-screen p{font-size:12px;margin:3px 0;line-height:1.7}.score-bands{margin-top:17px;gap:4px}.score-bands>span{font-size:8px;padding:7px 1px}.score-bands strong{font-size:10px}.game-panel.awaiting-start{justify-content:space-between}
 .game-panel.answered .clues{max-height:235px;flex:1}.game-panel.answered .reveal-box{padding:12px 13px;flex-shrink:0}.game-panel.answered .reveal-box h3{font-size:22px;margin:3px 0}.game-panel.answered .reveal-box p{font-size:10px;line-height:1.5;margin:3px 0 0}.game-panel.answered .reveal-box small{font-size:9px}.game-panel.answered #next{margin-top:10px;flex-shrink:0}
 .results-panel .result-score{font-size:49px;margin:13px 0 8px}.results-panel h2{font-size:25px}.results-panel .subtext{font-size:11px;line-height:1.5}.results-panel .section-line{margin:12px 0}.results-panel .result-row{padding:8px 0;font-size:11px}.results-panel .result-meta{font-size:9px}.results-panel .notice{margin-top:10px;padding:10px 12px;font-size:10px;line-height:1.5}.results-panel .result-actions{margin-top:12px;gap:7px}.results-panel .primary,.results-panel .secondary{min-height:38px;padding:8px 12px;font-size:12px}
 .install-banner{bottom:calc(12px + env(safe-area-inset-bottom))}.archive-panel .archive-list{max-height:none;overflow:visible}.archive-panel,.stats-panel,.league-panel{scrollbar-width:thin}dialog{max-height:calc(var(--app-height,100dvh) - 24px)}
}
@media(max-width:800px) and (max-height:710px){.site-milje{height:31px}.topbar{padding-top:37px;padding-bottom:7px}.main-panel{padding:11px 12px 10px}.game-top{margin-bottom:6px;min-height:22px}.progress{margin-bottom:7px}.step{height:23px}.question-heading h2{font-size:22px}.timer-strip{margin-top:8px;padding:6px 9px}.timer-label strong{font-size:18px}.game-panel .clues{gap:4px;margin:8px 0}.game-panel .clue{padding:4px 7px;font-size:11px;line-height:1.25;gap:7px}.clue .num{height:19px;min-width:19px;width:19px}.game-panel .feedback{font-size:8px;margin-top:5px}.archive-game-note{display:none}.panel-footer{padding-top:5px;min-height:18px}.mobile-nav{margin-top:5px}.game-panel .primary{height:35px;min-height:35px}.answer-row input{height:38px;min-height:38px}.game-panel .secondary{height:29px;min-height:29px}.ready-screen h3{font-size:19px}.ready-screen p{font-size:11px}.ready-clock{height:40px;width:40px}.score-bands{margin-top:10px}}
@media(max-width:380px){.brand{font-size:13px;gap:5px}.brand img{height:29px;width:29px}.brand-sub{font-size:5px;letter-spacing:.8px}.topbar{padding-left:10px;padding-right:10px;gap:5px}.top-actions{gap:4px}.top-actions .icon-button,.install-menu,.profile-button{width:30px;min-width:30px;height:32px;min-height:32px}.top-actions svg{width:17px;height:17px}.layout{padding:0 9px}}
@media(max-width:800px){body.keyboard-open .site-milje{height:18px}body.keyboard-open .topbar{padding-top:22px;padding-bottom:5px}body.keyboard-open .mobile-nav,body.keyboard-open .panel-footer,body.keyboard-open .game-panel .question-heading,body.keyboard-open .game-panel .progress,body.keyboard-open .archive-game-note,body.keyboard-open .game-panel .feedback{display:none}body.keyboard-open .game-panel{padding:8px 11px}body.keyboard-open .game-top{margin-bottom:0}body.keyboard-open .timer-strip{margin-top:5px;padding:5px 9px}body.keyboard-open .timer-track{margin-top:4px}body.keyboard-open .game-panel .clues{display:flex;flex-direction:column;overflow:auto;max-height:none;gap:4px;margin:6px 0}body.keyboard-open .clue.locked{display:none}body.keyboard-open .clue{flex:0 0 auto;min-height:29px;font-size:11px;padding:5px 7px}body.keyboard-open .game-panel .secondary{height:27px;min-height:27px}body.keyboard-open .answer-form .primary{height:34px;min-height:34px;margin-top:5px}body.keyboard-open .answer-row input{height:37px;min-height:37px}}

@media(max-width:800px) and (max-height:550px){.awaiting-start .progress,.awaiting-start .question-heading,.awaiting-start .ready-clock{display:none}.awaiting-start .ready-screen{padding:5px 0}.awaiting-start .ready-screen h3{font-size:17px;margin:3px 0}.awaiting-start .score-bands{margin-top:6px}.awaiting-start .score-bands>span{padding:5px 1px}}

.pain-link{display:inline-flex;align-items:center;gap:4px;color:var(--ink);opacity:.95;white-space:nowrap}.pain-link>span{font-size:10px;color:var(--accent)}.pain-link:hover{text-decoration:underline;text-underline-offset:3px}.panel-footer{opacity:1}.install-menu{background:var(--card);color:var(--ink)}
@media(max-width:800px){.panel-footer .pain-link{font-size:9px;min-height:22px}.league-panel .empty-state{padding:16px 5px}.league-panel .empty-state>svg{width:42px;height:42px}.league-panel .page-head{margin-bottom:12px}}
/* A small update notice never reloads or removes a running game. */
.update-banner{position:fixed;z-index:35;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 24px));padding:15px;display:grid;grid-template-columns:1fr auto;gap:9px 12px;background:#102d45f5;color:#f5faff;border:1px solid #8ac9ff66;border-radius:17px;box-shadow:0 12px 50px #0005;backdrop-filter:blur(20px)}.update-banner strong{font-size:13px}.update-banner p{font-size:10px;line-height:1.5;color:#bfd4e6;margin:5px 0 0}.update-banner button{min-height:40px;padding:8px 14px;font-size:12px;border-radius:10px}.update-apply{color:white;background:#087add;border:1px solid #89ccff}.update-banner .update-later{grid-column:1/-1;min-height:25px;padding:2px 8px;background:transparent;border:0;color:#cfe3f3;font-size:10px}:root[data-theme=light] .update-banner{background:#edf7fffa;color:#16394f;border-color:#fff}:root[data-theme=light] .update-banner p,:root[data-theme=light] .update-banner .update-later{color:#44657d}

/* Confident, readable confirmation in both themes. */
.game-panel.correct-answer{border-color:#67e8ad9c;box-shadow:inset 0 0 0 1px #56df9f36,0 14px 50px #03291b45}.game-panel.correct-answer .question-heading h2{color:#83f1b9}.game-panel .success-reveal{background:linear-gradient(120deg,#075638ee,#087148dc);border:1px solid #73efaf;border-radius:15px;color:#f2fff7;box-shadow:0 7px 28px #063f2b66}.game-panel .success-reveal small{display:inline-block;color:#d9ffea;font-weight:800;letter-spacing:.06em}.game-panel .success-reveal h3{color:#fff;font-weight:800;overflow-wrap:anywhere}.game-panel .success-reveal p{color:#dcffed}.game-panel.correct-answer #next{background:linear-gradient(120deg,#19b471,#07834b);color:white;border-color:#8ff6bc}.step.done{background:#168953!important;color:#fff!important;border-color:#79e9ab!important}.result-row.result-correct{background:#12784c26;border-left:3px solid #4adc91;border-radius:8px;padding-left:10px;padding-right:10px}.result-correct .word,.result-correct>strong{color:#87efb9}:root[data-theme=light] .game-panel.correct-answer .question-heading h2{color:#086b3d}:root[data-theme=light] .game-panel .success-reveal{background:linear-gradient(120deg,#d0f7dd,#b6edcc);border-color:#268652;color:#074a2a;box-shadow:0 6px 24px #14603718}:root[data-theme=light] .game-panel .success-reveal small,:root[data-theme=light] .game-panel .success-reveal p{color:#175535}:root[data-theme=light] .game-panel .success-reveal h3{color:#053c21}:root[data-theme=light] .result-correct .word,:root[data-theme=light] .result-correct>strong{color:#08673a}.answer-form .primary{touch-action:manipulation}.answer-row input{scroll-margin-block:10px}
