:root{
 color-scheme:light;
 --bg:#f4f5fb; --surface:#fff; --soft:#f7f8fc; --text:#222640; --muted:#747b95;
 --accent:#6555dd; --hover:#5545c8; --accent-fill:var(--accent); --accent-fill-hover:var(--hover); --tint:#eeebff; --line:#e7e9f2; --accent-contrast:#fff;
 --success:#12845d; --success-bg:#e7f6ee; --error:#c84960; --error-bg:#fdeef1;
 --gold:#956718; --gold-bg:#fff4d9; --silver:#617086; --silver-bg:#edf1f6; --bronze:#a36a47; --bronze-bg:#fbede2;
 --shadow:0 18px 60px #252b6510; --glow:#bdb5fa; --q-font:28px; --answer-font:18px;
}
html[data-theme="dark"]{ color-scheme:dark; --bg:#131623; --surface:#1e2235; --soft:#262a40; --text:#f0f1fa; --muted:#a5acc6; --accent:#ac9cff; --hover:#c0b4ff; --tint:#34304e; --line:#34394f; --accent-contrast:#171326; --success:#78d9ad; --success-bg:#203d34; --error:#ff99ab; --error-bg:#442c38; --gold:#f5cf79; --gold-bg:#403627; --silver:#bdcadd; --silver-bg:#303849; --bronze:#eab58f; --bronze-bg:#44352e; --shadow:0 18px 60px #0003; --glow:#574991; }
html[data-theme="classic"]{ --bg:lightblue; --surface:#fef9db; --soft:#f5f0d0; --text:#181a77; --muted:#627387; --accent:#347784; --hover:#205e6b; --tint:#e0eef1; --line:#ccdce0; --accent-contrast:#fff; --success:#18804e; --success-bg:#e6f4da; --glow:#8ac8d8; }
html[data-theme="light"][data-palette="ocean"]{ --bg:#f3f7fb; --surface:#fff; --soft:#f5f8fc; --text:#202d3b; --muted:#617285; --accent:#175f9e; --hover:#104b80; --tint:#e8f2fc; --line:#d6e4f2; --glow:#afd3f4; --accent-contrast:#fff; --shadow:0 18px 60px #23446210; }
html[data-theme="light"][data-palette="lime"]{ --bg:#f7faef; --surface:#fffffc; --soft:#f1f6e6; --text:#293526; --muted:#65715d; --accent:#4b6a2f; --hover:#3d5b25; --accent-fill:#bfdc98; --accent-fill-hover:#b1d281; --tint:#edf4df; --line:#e0e9d1; --glow:#e1edc7; --accent-contrast:#273820; --shadow:0 18px 60px #234b3010; }
html[data-theme="light"][data-palette="sunset"]{ --bg:#fff8ef; --surface:#fffefd; --soft:#fff2e2; --text:#3b3027; --muted:#79634f; --accent:#a9551a; --hover:#8e4617; --accent-fill:#ffd09b; --accent-fill-hover:#f5bf83; --tint:#fff0db; --line:#f0dcc2; --glow:#ffe0b6; --accent-contrast:#4b2b13; --shadow:0 18px 60px #59351d12; }
html[data-theme="dark"][data-palette="ocean"]{ --bg:#121a23; --surface:#1c2936; --soft:#263747; --text:#edf4fa; --muted:#a9bac9; --accent:#85c4ff; --hover:#a4d6ff; --tint:#243b56; --line:#354b67; --glow:#3e5d7c; --accent-contrast:#101927; --shadow:0 18px 60px #0005; }
html[data-theme="dark"][data-palette="lime"]{ --bg:#101c15; --surface:#1a2b20; --soft:#24372a; --text:#edf7ef; --muted:#adbeae; --accent:#90dda6; --hover:#aee9bb; --tint:#243e30; --line:#375742; --glow:#366348; --accent-contrast:#102219; --shadow:0 18px 60px #0006; }
html[data-theme="dark"][data-palette="sunset"]{ --bg:#1c1815; --surface:#2c241e; --soft:#3a2e26; --text:#f7ede3; --muted:#c7b3a1; --accent:#ffc27b; --hover:#ffd49c; --tint:#4a3428; --line:#654938; --glow:#765334; --accent-contrast:#27160a; --shadow:0 18px 60px #0006; }
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ width:100%; height:100%; margin:0; overflow:hidden; overscroll-behavior:none; }
body{ font-family:"Segoe UI",system-ui,-apple-system,Arial,sans-serif; background:var(--bg); color:var(--text); user-select:none; -webkit-user-select:none; touch-action:manipulation; }
button{ font:inherit; cursor:pointer; border:1px solid var(--line); background:var(--surface); color:var(--text); padding:12px 18px; border-radius:14px; font-weight:600; transition:background .15s,border-color .15s,transform .15s; }
button:hover{ background:var(--soft); border-color:var(--accent); }
button:active{ transform:translateY(1px); }
button:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
button:disabled{ cursor:default; opacity:.55; }
button:disabled:hover{ border-color:var(--line); }
button svg{ width:22px; height:22px; flex-shrink:0; }
h1,h2,h3,p{ margin:0; }
svg{ display:block; }
[hidden]{ display:none!important; }
.ambient{ position:fixed; inset:0; pointer-events:none; background:radial-gradient(ellipse at 16% 20%,color-mix(in srgb,var(--glow) 18%,transparent),transparent 45%),radial-gradient(ellipse at 90% 85%,color-mix(in srgb,var(--glow) 12%,transparent),transparent 40%); }
.wrapper{ position:relative; width:min(1120px,100%); height:100vh; height:100dvh; margin:auto; padding:clamp(12px,3vw,32px); padding-top:max(12px,env(safe-area-inset-top)); display:flex; flex-direction:column; gap:22px; }





.play-area{ flex:1; min-height:0; display:flex; align-items:center; justify-content:center; }
.screen{ width:100%; max-height:100%; min-height:0; }
.eyebrow{ display:block; color:var(--accent); font-size:11px; font-weight:750; letter-spacing:1.7px; }
#welcome-screen{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,76px); align-items:center; }
.welcome-hero{ min-width:0; }
.hero-art{ position:relative; width:220px; height:180px; margin:0 auto 28px; display:grid; place-items:center; }
.hero-brain{ position:relative; width:120px; height:120px; padding:8px; color:var(--accent); background:var(--tint); border-radius:38px; box-shadow:0 18px 40px color-mix(in srgb,var(--accent) 14%,transparent); transform:rotate(-8deg); }
.orbit{ position:absolute; width:202px; height:140px; border:1px solid color-mix(in srgb,var(--accent) 20%,transparent); border-radius:50%; transform:rotate(-32deg); }
.orbit-two{ transform:rotate(38deg); width:190px; height:156px; }
.art-badge{ position:absolute; display:grid; place-items:center; width:40px; height:40px; background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--line); border-radius:12px; color:var(--accent); }
.art-badge svg{ width:23px; height:23px; }
.badge-spark{ left:0; bottom:32px; transform:rotate(-12deg); } .badge-globe{ right:0; top:15px; transform:rotate(10deg); }
.welcome-txt h1{ font-size:clamp(30px,3.5vw,46px); line-height:1.13; letter-spacing:-1.5px; margin:14px 0 18px; font-weight:800; }
.welcome-txt h1 span{ color:var(--accent); }
.welcome-txt p{ font-size:15px; line-height:1.65; color:var(--muted); }
.hero-facts{ display:flex; gap:26px; margin-top:28px; }
.hero-facts span{ color:var(--muted); font-size:11px; } .hero-facts b{ display:block; color:var(--text); font-size:19px; margin-bottom:3px; }
.welcome-actions{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.start-card{ background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:30px; box-shadow:var(--shadow); }
.card-icon{ display:grid; place-items:center; width:46px; height:46px; border-radius:15px; background:var(--tint); color:var(--accent); margin-bottom:22px; }
.card-icon svg{ width:25px; height:25px; } .start-card h2{ font-size:24px; letter-spacing:-.6px; margin:10px 0; } .start-card p{ font-size:13px; line-height:1.7; color:var(--muted); }
.primary-btn{ background:var(--accent-fill); border-color:var(--accent-fill); color:var(--accent-contrast); box-shadow:0 6px 16px color-mix(in srgb,var(--accent) 20%,transparent); }
.primary-btn:hover{ background:var(--accent-fill-hover); border-color:var(--accent-fill-hover); }
html[data-theme="classic"] .start-btn,html[data-theme="classic"] .answer-btn{ background:#d0dd1a; color:#272000; }
.start-btn{ width:100%; margin-top:24px; min-height:50px; font-size:16px; }
.daily-card{ display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:12px; align-items:center; width:100%; text-align:left; background:var(--surface); border:2px solid var(--accent); border-radius:19px; padding:14px 16px; box-shadow:inset 4px 0 var(--accent),var(--shadow); }
.daily-icon{ color:var(--accent); } .daily-icon svg{ width:25px; height:25px; }
.daily-copy{ display:block; min-width:0; }
.daily-title{ display:block; font-size:13px; font-weight:750; line-height:1.3; }
.daily-description{ display:block; color:var(--muted); font-size:10px; margin-top:4px; line-height:1.35; }
.daily-test-btn{ font-size:12px; padding:12px 14px; white-space:normal; min-height:76px; }
.daily-test-btn:not(:disabled):hover{ background:var(--tint); border-color:var(--hover); }
.daily-test-btn:disabled{ opacity:1; }
.daily-action{ display:flex; align-items:center; justify-content:center; gap:5px; min-height:38px; padding:8px 10px; border-radius:11px; background:var(--accent-fill); color:var(--accent-contrast); font-size:11px; font-weight:750; white-space:nowrap; }
.daily-action svg{ width:16px; height:16px; }
.daily-action-arrow{ opacity:.75; }
.daily-test-btn:disabled .daily-action{ color:var(--muted); background:var(--soft); }
.daily-test-btn:disabled .daily-action-play,.daily-test-btn:disabled .daily-action-arrow{ display:none; }
.home-extras{ display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.home-extra{ display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:7px; align-items:center; min-width:0; min-height:42px; padding:6px 9px; border:1px dashed color-mix(in srgb,var(--accent) 40%,var(--line)); border-radius:14px; background:color-mix(in srgb,var(--tint) 55%,var(--surface)); color:var(--muted); }
.home-extra-icon{ grid-row:1; grid-column:1; color:var(--accent); }
.home-extra-icon svg{ width:17px; height:17px; }
.home-extra-copy{ display:flex; grid-column:2; grid-row:1; flex-direction:column; gap:2px; min-width:0; }
.home-extra-copy strong{ display:block; overflow:hidden; color:var(--text); font-size:10px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.home-extra-copy small{ display:block; overflow:hidden; color:var(--muted); font-size:8px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.home-extra-status{ grid-column:3; grid-row:1; color:var(--accent); font-size:8px; font-weight:750; line-height:1.2; white-space:nowrap; }
.welcome-rating{ color:var(--muted); font-size:12px; text-align:center; line-height:1.6; padding:0 12px; }
.welcome-rating strong,.rating-txt{ color:var(--accent); }
.bottom-nav{ display:flex; width:min(460px,100%); align-self:center; padding:6px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:21px; flex-shrink:0; margin-bottom:env(safe-area-inset-bottom); }
.nav-btn{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:5px; border:0; border-radius:15px; padding:8px 4px; background:transparent; color:var(--muted); font-size:10px; }
.nav-btn svg{ width:22px; height:22px; } .nav-btn.is-active{ color:var(--accent); background:var(--tint); }
#question-screen{ max-width:790px; background:var(--surface); border:1px solid var(--line); padding:clamp(20px,3vw,40px); border-radius:26px; box-shadow:var(--shadow); display:flex; flex-direction:column; }
.question-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; } #questionBar{ color:var(--muted); font-size:12px; white-space:nowrap; }
.question-progress{ height:5px; background:var(--soft); border-radius:6px; margin-top:16px; overflow:hidden; flex-shrink:0; } .question-progress>span{ display:block; height:100%; width:0; background:var(--accent); border-radius:6px; transition:width .25s; }
.question-content{ display:grid; place-items:center; min-height:110px; padding:24px 0; flex:1; min-width:0; }
#question{ font-size:var(--q-font); line-height:1.35; letter-spacing:-.5px; text-align:center; overflow-wrap:anywhere; font-weight:700; }
#answer-set{ display:grid; grid-template-columns:1fr 1fr; gap:12px; flex-shrink:0; counter-reset:answer; }
.answer-btn{ position:relative; min-width:0; min-height:72px; font-size:var(--answer-font); line-height:1.35; text-align:left; font-weight:550; padding:16px 16px 16px 53px; overflow-wrap:anywhere; background:var(--soft); counter-increment:answer; }
.answer-btn:before{ content:counter(answer,upper-latin); position:absolute; left:14px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:26px; height:26px; border:1px solid var(--line); border-radius:8px; color:var(--muted); font-size:12px; font-weight:700; }
.answer-btn:disabled{ opacity:1; }
.answer-btn.highlight,html[data-theme="classic"] .answer-btn.highlight{ background:var(--success-bg); border-color:var(--success); color:var(--success); }
.answer-btn.highlight:before{ content:'✓'; color:var(--success); border-color:var(--success); }
.answer-btn.is-wrong,html[data-theme="classic"] .answer-btn.is-wrong{ background:var(--error-bg); border-color:var(--error); color:var(--error); }
.answer-btn.is-wrong:before{ content:'×'; color:var(--error); border-color:var(--error); }
.answer-btn.crossed-out{ opacity:.35; text-decoration:line-through; }
.question-footer{ display:flex; justify-content:space-between; align-items:center; min-height:49px; margin-top:16px; gap:12px; flex-shrink:0; }
#feedback{ color:var(--muted); font-size:13px; font-weight:600; line-height:1.4; } .state-correct #feedback{ color:var(--success); } .state-incorrect #feedback{ color:var(--error); }
.hint-btn{ display:flex; align-items:center; gap:8px; padding:9px 12px; font-size:12px; background:var(--tint); color:var(--accent); border-color:transparent; white-space:nowrap; } .hint-btn svg{ width:17px; height:17px; } .hint-label{ display:grid; gap:2px; text-align:left; } .hint-caption{ display:flex; align-items:center; gap:4px; color:var(--accent); font-size:10px; } .hint-caption svg{ width:14px; height:14px; }
#thankyou-screen{ position:relative; max-width:620px; text-align:center; background:var(--surface); padding:28px 36px; border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow); }
.result-celebration{ position:relative; display:grid; place-items:center; width:90px; height:90px; margin:0 auto 14px; border-radius:27px; background:var(--gold-bg); color:var(--gold); }
.result-celebration>span svg{ width:46px; height:46px; position:relative; }
.result-rays{ position:absolute; inset:-12px; border:1px dashed color-mix(in srgb,var(--gold) 35%,transparent); border-radius:50%; }
.result-title{ display:block; color:var(--muted); font-size:13px; margin-bottom:8px; } .result-score{ font-size:48px; font-weight:800; letter-spacing:-2px; line-height:1.2; } .result-score small{ font-size:19px; color:var(--muted); font-weight:400; letter-spacing:0; }
.result-earned{ display:block; margin-top:8px; color:var(--accent); font-size:13px; font-weight:600; } .result-feedback{ display:block; font-size:14px; line-height:1.5; margin:12px auto; max-width:420px; }
.daily-bonus-result{ font-size:12px; color:var(--success); display:block; margin-top:6px; }
.result-login-required,.result-rating-progress{ display:block; font-size:11px; color:var(--muted); line-height:1.5; margin-top:8px; }
.login-prompt{ display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; font-size:11px; color:var(--muted); line-height:1.4; margin-top:8px; }
.login-prompt>span{ flex:1; min-width:130px; text-align:left; }
.login-btn{ display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 10px; border-color:var(--accent); color:var(--accent); font-size:11px; white-space:nowrap; }
.login-btn svg{ width:16px; height:16px; }
.rank-summary{ display:block; padding:12px 16px; background:var(--tint); border-radius:14px; margin-top:14px; text-align:left; font-size:11px; line-height:1.5; color:var(--muted); } .rank-summary strong{ color:var(--text); font-size:13px; display:block; margin-bottom:2px; }
.rank-meter{ display:block; height:5px; margin:8px 0; background:color-mix(in srgb,var(--accent) 15%,transparent); border-radius:4px; } .rank-meter i{ display:block; height:100%; background:var(--accent); border-radius:4px; }
#thankyou-screen-buttons{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:20px; } #thankyou-screen-buttons button{ font-size:12px; padding:13px 8px; min-height:42px; } .next-test-btn{ grid-column:1/-1; } .our-games-btn{ background:var(--soft); color:var(--muted); }
.result-animate .result-celebration{ animation:celebrate .65s ease-out both; } .result-animate .result-rays{ animation:rays 1.4s ease-out both; }
.result-animate .result-score{ animation:result-score-pop .68s cubic-bezier(.18,.8,.25,1) both; }
.result-animate .result-earned{ animation:result-enter .56s .1s cubic-bezier(.2,.75,.25,1) both; }
.result-animate .rank-meter i{ transform-origin:left center; animation:rank-fill .85s .12s ease-out both; }
.result-animate .rank-up-banner{ animation:rank-up .62s cubic-bezier(.2,.85,.25,1) both; }
@keyframes celebrate{ 0% { transform:scale(.7) rotate(-12deg); opacity:0; } 65% { transform:scale(1.06) rotate(4deg); } 100% { transform:scale(1); opacity:1; } }
@keyframes rays{ 0% { transform:scale(.7) rotate(0); opacity:0; } 50% { opacity:1; } 100% { transform:scale(1.2) rotate(25deg); opacity:.5; } }
@keyframes result-enter{ 0% { transform:translateY(14px) scale(.93); opacity:0; } 100% { transform:translateY(0) scale(1); opacity:1; } }
@keyframes result-score-pop{ 0% { transform:translateY(7px) scale(.78); opacity:0; } 52% { transform:translateY(-2px) scale(1.06); opacity:1; } 100% { transform:translateY(0) scale(1); opacity:1; } }
@keyframes rank-fill{ from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes rank-up{ 0% { transform:translateY(12px) scale(.92); opacity:0; } 70% { transform:translateY(-2px) scale(1.035); opacity:1; } 100% { transform:translateY(0) scale(1); opacity:1; } }
.modal-layer{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:16px; padding-top:max(16px,env(safe-area-inset-top)); padding-bottom:max(16px,env(safe-area-inset-bottom)); background:#10152c55; backdrop-filter:blur(8px); }
.game-dialog{ display:flex; flex-direction:column; width:min(700px,100%); max-height:100%; border:1px solid var(--line); background:var(--surface); box-shadow:0 25px 100px #10152c30; border-radius:24px; padding:24px; gap:18px; min-height:0; overflow:hidden; }
.dialog-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; } .dialog-header h2{ font-size:21px; letter-spacing:-.5px; } .dialog-header .eyebrow{ font-size:9px; margin-bottom:5px; }
.close-popup{ display:grid; place-items:center; width:36px; height:36px; border-radius:11px; padding:8px; background:var(--soft); flex-shrink:0; } .close-popup svg{ width:18px; height:18px; }
.dialog-body{ min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.dialog-body p{ font-size:13px; line-height:1.6; color:var(--muted); }
.startup-status{ display:flex; align-items:center; justify-content:center; gap:8px; min-height:30px; margin-top:9px; color:var(--muted); font-size:11px; line-height:1.45; text-align:center; overflow-wrap:anywhere; }
.startup-status[aria-hidden="true"]{ visibility:hidden; }
.startup-brain{ width:21px; height:21px; flex:0 0 21px; color:var(--accent); }
html[data-motion="on"] .startup-brain{ animation:startup-breathe 1.9s ease-in-out infinite; }
.startup-status[aria-hidden="true"] .startup-brain{ animation:none; }
.startup-status.is-error{ padding:7px 9px; border:1px solid var(--error); border-radius:10px; background:var(--error-bg); color:var(--error); }
.startup-status.is-error .startup-brain{ color:var(--error); animation:none; }
@keyframes startup-breathe{ 0%,100%{ opacity:.68; transform:scale(.94); } 50%{ opacity:1; transform:scale(1.06); } }
@media(prefers-reduced-motion:reduce){ .startup-brain{ animation:none!important; } }
.optional-panel-loading,.optional-panel-error{ display:grid; place-items:center; gap:10px; min-height:180px; padding:24px; border:1px dashed var(--line); border-radius:18px; background:var(--soft); text-align:center; }
.optional-panel-loading p,.optional-panel-error p{ max-width:470px; font-size:11px!important; overflow-wrap:anywhere; }
.optional-panel-error{ border-color:color-mix(in srgb,var(--error) 38%,var(--line)); background:var(--error-bg); }
.optional-panel-error p{ color:var(--error); }
.optional-panel-error .optional-panel-retry{ border-color:var(--error); color:var(--error); }
.theme-swatch{ display:block; width:26px; height:26px; border-radius:50%; margin:0 auto 7px; border:3px solid #fff; box-shadow:0 0 0 1px #c1c6d5; }
.is-me{ border-color:var(--accent)!important; }
#ui-notice{ position:fixed; bottom:108px; left:50%; transform:translateX(-50%); z-index:200; width:min(420px,calc(100% - 28px)); background:var(--surface); border:1px solid var(--error); border-radius:14px; padding:14px 18px; font-size:12px; line-height:1.5; box-shadow:var(--shadow); }
.rank-up-banner{ display:block; margin-top:12px; padding:10px; border-radius:12px; background:var(--gold-bg); color:var(--gold); font-size:12px; }
html[data-motion="off"] *,html[data-motion="off"] *:before,html[data-motion="off"] *:after{ animation:none!important; transition:none!important; }
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{ animation:none!important; transition:none!important; } 
}
@media(max-width:700px){

 .wrapper{ padding:16px; gap:14px; padding-top:max(14px,env(safe-area-inset-top)); }
 #welcome-screen{ grid-template-columns:1fr; gap:22px; max-width:450px; } .welcome-hero{ text-align:center; } .hero-art{ width:140px; height:100px; margin-bottom:16px; } .hero-brain{ width:77px; height:77px; border-radius:25px; padding:4px; } .orbit{ width:135px; height:84px; } .orbit-two{ width:118px; height:100px; } .art-badge{ width:28px; height:28px; border-radius:9px; } .art-badge svg{ width:17px; height:17px; } .badge-spark{ bottom:5px; } .badge-globe{ top:0; }
 .welcome-txt h1{ font-size:32px; letter-spacing:-1px; margin:10px 0 12px; } .welcome-txt p{ font-size:12px; } .hero-facts{ justify-content:center; margin-top:16px; gap:28px; } .hero-facts b{ font-size:16px; } .hero-facts span{ font-size:10px; }
 .start-card{ padding:20px; border-radius:20px; } .card-icon,.start-card .eyebrow,.start-card p{ display:none; } .start-card h2{ font-size:18px; margin:0 0 14px; text-align:center; } .start-btn{ margin:0; min-height:48px; font-size:15px; } .daily-card{ padding:14px; border-radius:17px; gap:8px; grid-template-columns:27px minmax(0,1fr) auto; } .daily-icon svg{ width:23px; height:23px; } .daily-title{ font-size:11px; } .daily-description{ font-size:10px; } .daily-test-btn{ font-size:11px; padding:8px 10px; } .daily-action{ min-height:34px; padding:7px 8px; font-size:10px; } .welcome-rating{ font-size:10px; padding:0 8px; } .welcome-actions{ gap:12px; }
 .bottom-nav{ width:100%; } #question-screen{ padding:20px; border-radius:21px; } .question-content{ min-height:100px; padding:22px 0; } #answer-set{ grid-template-columns:1fr; gap:9px; } .answer-btn{ min-height:56px; padding:13px 12px 13px 49px; } .question-footer{ margin-top:12px; }  #feedback{ font-size:11px; }
 #thankyou-screen{ padding:24px 20px; border-radius:21px; } .result-celebration{ width:70px; height:70px; border-radius:22px; } .result-celebration>span svg{ width:35px; height:35px; } .result-score{ font-size:40px; } .result-feedback{ font-size:12px; } .rank-summary{ font-size:10px; padding:10px 12px; }
 .game-dialog{ padding:18px; gap:14px; border-radius:21px; } .dialog-header h2{ font-size:19px; }

}
@media(max-height:740px) and (max-width:700px){

 .wrapper{ gap:10px; padding:12px; } #welcome-screen{ gap:16px; } .hero-art{ height:78px; margin-bottom:10px; } .hero-brain{ width:65px; height:65px; } .orbit{ height:65px; width:115px; } .orbit-two{ height:80px; width:105px; } .welcome-txt h1{ font-size:28px; margin:8px 0; } .welcome-txt p{ font-size:11px; } .hero-facts{ margin-top:12px; } .start-card{ padding:16px; } .start-card h2{ margin-bottom:10px; font-size:16px; } .daily-card{ padding:12px; } .welcome-actions{ gap:10px; }  .question-content{ padding:16px 0; min-height:70px; } .answer-btn{ min-height:48px; padding-top:10px; padding-bottom:10px; } .result-celebration{ width:56px; height:56px; margin-bottom:10px; } .result-celebration>span svg{ width:30px; height:30px; } #thankyou-screen{ padding:20px; } .result-feedback{ margin:8px auto; } #thankyou-screen-buttons{ margin-top:14px; }

}
@media(max-height:580px){

 .wrapper{ gap:8px; padding:10px 18px; }     .bottom-nav{ padding:3px; border-radius:16px; } .nav-btn{ padding:5px 4px; gap:2px; font-size:9px; border-radius:12px; } .nav-btn svg{ width:18px; height:18px; }
 #welcome-screen{ grid-template-columns:1fr 1fr; max-width:100%; gap:24px; } .welcome-hero{ text-align:left; } .hero-art{ display:none; } .welcome-txt h1{ font-size:clamp(23px,3.5vw,36px); margin:8px 0 12px; } .welcome-txt p{ font-size:11px; } .hero-facts{ justify-content:flex-start; gap:20px; margin-top:16px; } .hero-facts b{ font-size:16px; } .start-card{ padding:18px; } .start-card h2{ font-size:17px; margin:0 0 12px; } .card-icon,.start-card .eyebrow,.start-card p{ display:none; } .start-btn{ margin:0; min-height:42px; } .daily-card{ padding:12px; grid-template-columns:24px minmax(0,1fr) auto; gap:8px; } .daily-title{ font-size:11px; } .daily-description{ font-size:9px; } .daily-test-btn{ font-size:10px; padding:8px; } .daily-action{ min-height:32px; padding:6px; font-size:9px; } .welcome-rating{ font-size:10px; }
 #question-screen{ padding:16px 24px; border-radius:19px; } #answer-set{ grid-template-columns:1fr 1fr; gap:8px; } .answer-btn{ min-height:47px; padding:9px 12px 9px 47px; } .question-content{ min-height:48px; padding:12px 0; } .question-progress{ margin-top:10px; } .question-footer{ min-height:32px; margin-top:8px; } .hint-btn{ padding:6px 10px; } .question-top .eyebrow{ font-size:9px; }
 #thankyou-screen{ max-width:760px; display:grid; grid-template-columns:1fr 1fr; align-items:center; column-gap:24px; padding:18px 24px; } .result-celebration{ display:none; } #game-results{ grid-column:1; grid-row:1; } #thankyou-screen-buttons{ grid-column:2; grid-row:1; margin:0; } .result-score{ font-size:32px; } .result-title{ font-size:11px; margin-bottom:3px; } .result-feedback{ font-size:11px; margin:6px auto; } .rank-summary{ margin-top:8px; padding:8px 10px; font-size:9px; } .rank-summary strong{ font-size:11px; } .rank-meter{ margin:5px 0; } .result-login-required,.result-rating-progress{ font-size:9px; margin-top:4px; } .login-prompt{ font-size:9px; gap:5px; margin-top:5px; } .login-btn{ font-size:10px; padding:5px 8px; }
 .game-dialog{ gap:10px; padding:16px; } .dialog-header h2{ font-size:17px; } .dialog-header .eyebrow{ display:none; } .close-popup{ width:30px; height:30px; } .theme-swatch{ width:21px; height:21px; margin-bottom:5px; }

}
@media(max-width:420px) and (max-height:580px){

 .wrapper{ padding:8px 10px; } #welcome-screen{ grid-template-columns:1fr; gap:12px; } .welcome-hero{ text-align:center; } .welcome-txt h1{ font-size:24px; margin:6px 0; } .welcome-txt p{ font-size:10px; } .hero-facts{ display:none; } .welcome-txt .eyebrow{ font-size:9px; } .start-card{ padding:12px; } .start-card h2{ font-size:14px; margin-bottom:8px; } .start-btn{ min-height:38px; font-size:13px; } .daily-card{ padding:10px; } .welcome-actions{ gap:8px; } .welcome-rating{ font-size:9px; }
 #question-screen{ padding:14px; } #answer-set{ grid-template-columns:1fr; gap:6px; } .answer-btn{ min-height:39px; padding-top:8px; padding-bottom:8px; }
 #thankyou-screen{ display:block; padding:16px; } #thankyou-screen-buttons{ margin-top:12px; gap:7px; } #thankyou-screen-buttons button{ min-height:34px; padding:9px 5px; font-size:11px; }

}
/* Compact viewport layouts retain all quiz controls without document scrolling. */
.our-games-btn{ grid-column:1/-1; padding:9px!important; min-height:34px!important; }
@media(max-height:800px){

 #thankyou-screen{ padding:20px 28px; }
 .result-celebration{ width:62px; height:62px; margin-bottom:10px; border-radius:20px; }
 .result-celebration>span svg{ width:33px; height:33px; }
 .result-score{ font-size:38px; }
 .result-feedback{ font-size:12px; margin:8px auto; }
 .rank-summary{ margin-top:10px; padding:10px 12px; }
 #thankyou-screen-buttons{ margin-top:14px; gap:8px; }
 #thankyou-screen-buttons button{ padding:10px 8px; min-height:38px; }

}
@media(max-width:700px) and (max-height:670px){

 .hero-art{ display:none; }
 #welcome-screen{ gap:18px; }
 .welcome-txt h1{ font-size:27px; }
 #thankyou-screen{ padding:18px; }
 .result-celebration{ width:48px; height:48px; margin-bottom:8px; border-radius:16px; }
 .result-rays{ inset:-7px; }
 .result-celebration>span svg{ width:27px; height:27px; }
 .result-score{ font-size:32px; }
 .result-feedback{ margin:6px auto; font-size:11px; }
 .result-earned{ font-size:11px; margin-top:5px; }
 .rank-summary{ padding:8px 10px; margin-top:8px; }

}
@media(max-height:580px){

 #thankyou-screen{ padding:16px 20px; }
 .result-celebration{ display:none; }
 #thankyou-screen-buttons{ margin:0; }

}
@media(max-height:360px) and (min-width:421px){

 .wrapper{ padding:8px 14px; }

 #welcome-screen{ gap:18px; }
 .welcome-txt h1{ font-size:24px; margin:6px 0 8px; }
 .welcome-txt p{ font-size:10px; line-height:1.5; }
 .hero-facts{ display:none; }
 .start-card{ padding:12px; }
 .start-card h2{ font-size:14px; line-height:1.3; margin-bottom:9px; }
 .start-btn{ min-height:35px; font-size:12px; padding:8px; }
 .daily-card{ padding:10px; grid-template-columns:24px minmax(0,1fr) auto; gap:7px; }
 .daily-icon svg{ width:19px; height:19px; }
 .daily-title{ font-size:10px; }
 .daily-description{ display:none; }
 .daily-action{ min-height:28px; padding:5px 6px; gap:3px; font-size:9px; }
 .daily-action svg{ width:13px; height:13px; }
 .daily-test-btn{ text-align:left; }
 .welcome-actions{ gap:8px; }
 .welcome-rating{ font-size:9px; padding:0; }
 #question-screen{ padding:10px 16px; }
 .question-content{ padding:8px 0; min-height:30px; }
 .question-top .eyebrow,#questionBar{ font-size:9px; }
 .question-progress{ margin-top:6px; height:3px; }
 #answer-set{ gap:6px; }
 .answer-btn{ min-height:35px; padding:6px 8px 6px 39px; }
 .answer-btn:before{ width:23px; height:23px; left:9px; font-size:10px; }
 .question-footer{ min-height:24px; margin-top:6px; }
 .hint-btn{ padding:4px 8px; font-size:10px; }

 #feedback{ font-size:10px; }
 #thankyou-screen{ padding:12px 16px; column-gap:18px; }
 .result-score{ font-size:28px; }
 .result-earned{ font-size:10px; margin-top:4px; }
 .rank-summary{ font-size:9px; line-height:1.3; padding:6px 8px; }
 .rank-summary strong{ font-size:10px; }
 .rank-meter{ margin:4px 0; height:4px; }
 #thankyou-screen-buttons button{ font-size:10px; min-height:31px; padding:7px 5px; }
 #thankyou-screen-buttons{ gap:6px; }

}

/* Leaderboard: stable avatar/frame and badge slots also serve future earned rewards. */

/* Illustrated championship decoration is determined by podium place, not earned rewards. */

/* The same championship art is shared by all themes; no duplicate theme images. */

/* Login stays optional and fits alongside the game's existing progression goals. */
@media(max-height:580px){

 .hint-caption{ font-size:9px; }

}
@media(max-width:420px) and (max-height:460px){

 #welcome-screen{ gap:8px; }
 .welcome-txt p{ display:none; }
 .welcome-rating .login-prompt{ margin-top:0; font-size:9px; }
 #thankyou-screen{ padding:10px 14px; }
 .result-feedback{ margin:4px auto; font-size:10px; }
 #thankyou-screen-buttons{ margin-top:8px; gap:5px; }
 .rank-summary{ padding:6px 8px; margin-top:6px; }
 #question-screen{ padding:10px 12px; }
 .question-content{ min-height:30px; padding:6px 0; }
 .question-progress{ margin-top:6px; height:3px; }
 .question-top .eyebrow,#questionBar{ font-size:9px; }
 .answer-btn{ min-height:33px; padding:5px 8px 5px 36px; }
 .answer-btn:before{ width:22px; height:22px; left:7px; font-size:10px; }
 .question-footer{ margin-top:6px; }
 .hint-btn{ padding:5px 8px; }
 .result-score{ font-size:26px; }
 .result-earned{ font-size:10px; margin-top:3px; }
 .rank-meter{ margin:4px 0; }
 #thankyou-screen-buttons button{ min-height:29px; padding:6px 5px; font-size:10px; }
 .our-games-btn{ min-height:28px!important; padding:6px!important; }

}
