@font-face{font-family:Rubik;src:url('/assets/rubik-400.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Rubik;src:url('/assets/rubik-500.woff2') format('woff2');font-weight:500;font-display:swap}@font-face{font-family:Rubik;src:url('/assets/rubik-600.woff2') format('woff2');font-weight:600;font-display:swap}@font-face{font-family:Rubik;src:url('/assets/rubik-700.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--purple:#5f2ea8;--deep:#392064;--cream:#f4eee4;--yellow:#ede60f;--muted:#635970;--line:#d8cfdf;font-family:Rubik,Arial,sans-serif;color:var(--cream);background:var(--deep);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}p,h1,h2,h3,figure{margin:0}h1,h2,h3{font-weight:600;letter-spacing:-.035em;line-height:1.12;text-wrap:balance}p{line-height:1.6}img{max-width:100%;display:block}button{touch-action:manipulation}[hidden]{display:none!important}.skip-link{position:absolute;left:24px;top:-100px;z-index:9;padding:12px;background:var(--cream);color:var(--deep)}.skip-link:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.quest-header{max-width:1480px;margin:auto;display:flex;align-items:center;gap:22px;padding:25px 48px;border-bottom:1px solid #68458c}.brand{background:var(--cream);padding:8px 15px;border-radius:8px;flex-shrink:0}.brand img{width:144px;height:auto}.quest-name{font-weight:500;font-size:17px}.quest-name>span{display:block;font-size:12px;font-weight:400;color:#d9c9ec;margin-top:3px}.home-link{margin-left:auto;font-size:14px;text-decoration:none;display:flex;align-items:center;gap:16px;min-height:44px}.home-link span{font-size:22px}
.quest-shell{max-width:1480px;margin:0 auto;padding:44px 48px 38px;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(410px,.9fr);gap:48px;align-items:start}.journey{position:sticky;top:24px;min-width:0}.journey-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.overline,.panel-eyebrow{font-size:12px;letter-spacing:.08em;font-weight:500}.overline{color:#e1d2f0;margin-bottom:15px}h1{font-size:clamp(2.4rem,4.2vw,4.25rem);font-weight:600}h1>span{color:var(--yellow)}.draft-tag{font-size:12px;border:1px solid #9672bd;padding:6px 10px;border-radius:30px;color:#e5d7f3;margin-top:4px}.game-hud{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0 12px;margin-top:24px;border-top:1px solid #785494}.hud-label{display:block;font-size:12px;color:#d8c6eb;margin-bottom:7px}.lives #hearts{color:var(--yellow);font-size:25px;line-height:1;letter-spacing:1px;white-space:nowrap}.heart-spent{color:#89729e}.hud-stage strong,.hud-streak strong{font-size:17px;font-weight:500}.hud-streak strong span{font-size:12px;font-weight:400;color:#d8c6eb}.world-wrap{position:relative;height:390px;margin:0 -36px}.world-wrap #world{position:absolute;inset:0;cursor:grab;touch-action:pan-y}.world-wrap canvas{display:block;width:100%;height:100%}.world-fallback{position:absolute;inset:30px 0 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;font-size:14px;pointer-events:none}.world-fallback img{background:var(--cream);padding:18px;border-radius:50%;width:175px;height:auto}.world-wrap.has-world .world-fallback{display:none}.world-wrap:has(#world[data-failed=true]) .world-fallback{display:flex}.world-wrap:has(#world[data-failed=true]) canvas{display:none}.node-inspect{position:absolute;bottom:5px;left:15px;right:15px;font-size:12px;color:#e2d3f0;text-align:center;pointer-events:none}.journey-nodes{list-style:none;display:flex;justify-content:space-between;padding:18px 0 0;margin:0;gap:5px;border-top:1px solid #785494}.journey-nodes li{flex:1;min-width:0;text-align:center}.journey-nodes button{color:#dacbe9;background:none;border:0;padding:5px 1px;width:100%;min-height:52px;font-size:12px}.journey-nodes button:before{content:attr(data-marker);display:grid;place-items:center;width:25px;height:25px;margin:0 auto 9px;border:1px solid #9777b7;border-radius:50%;font-size:12px}.journey-nodes [aria-current=step]{color:var(--yellow);font-weight:500}.journey-nodes [aria-current=step]:before,.journey-nodes .cleared:before{background:var(--yellow);border-color:var(--yellow);color:var(--deep)}.journey-nodes .locked{color:#c7b1dd}.journey-tools{margin-top:22px}.journey-tools>p{font-size:13px;color:#e0d0ef}.journey-tools>div{display:flex;gap:25px;margin-top:8px}.journey-tools button{padding:6px 0;min-height:36px;border:0;background:none;color:#e0d0ef;text-decoration:underline;text-underline-offset:4px;font-size:12px}
.challenge-panel{background:var(--cream);border-radius:16px;padding:36px;color:var(--deep);min-width:0;box-shadow:0 18px 40px #1a092838}.panel-eyebrow{color:var(--purple);margin-bottom:13px}.challenge-panel h2{font-size:clamp(1.9rem,2.8vw,2.55rem)}.panel-intro{color:var(--muted);font-size:15px;margin-top:17px;max-width:38ch}form{margin-top:25px}.field{margin-bottom:17px}.field label,.subject-field legend{display:block;font-weight:500;font-size:14px;margin-bottom:9px}.field input,.field select{width:100%;min-height:48px;border:1px solid #b3a4be;background:#fffdf9;border-radius:8px;padding:11px 13px;color:var(--deep);font-size:16px}.field input::placeholder{color:#756a7c;opacity:1}.field input:focus-visible,.field select:focus-visible{outline-color:var(--purple);outline-offset:2px}.form-row{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.field-error{font-size:12px;line-height:1.5;color:#a02447;margin-top:4px;min-height:0}.field-error:empty{display:none}.field [aria-invalid=true]{border-color:#a02447}.subject-field{padding:0;border:0;margin:0 0 22px;min-width:0}.subject-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.subject-options label{position:relative;cursor:pointer}.subject-options input{position:absolute;opacity:0;width:1px;height:1px}.subject-options label>span{display:flex;gap:10px;align-items:center;padding:13px 12px;min-height:54px;border:1px solid #b3a4be;border-radius:8px;font-size:14px;background:#fffdf9}.subject-options b{font-size:17px;font-weight:500;width:30px;white-space:nowrap}.subject-options input:checked+span{background:var(--purple);color:#fff;border-color:var(--purple)}.subject-options input:focus-visible+span{outline:3px solid var(--purple);outline-offset:3px}.primary-action{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--yellow);color:var(--deep);border:0;border-bottom:3px solid #c1bc08;border-radius:8px;padding:15px 18px;min-height:54px;font-size:16px;font-weight:500;transition:transform .18s,background .18s}.primary-action:hover:not(:disabled){background:#f7f26a;transform:translateY(-1px)}.primary-action:disabled{background:#ddd5e5;color:#61546f;border-bottom-color:#c8bed3}.challenge-panel button:focus-visible,.challenge-panel a:focus-visible{outline-color:var(--purple)}.privacy-note,.draft-note{font-size:12px;line-height:1.6;color:var(--muted)}.privacy-note{margin-top:12px}.draft-note{margin-top:21px;padding-top:17px;border-top:1px solid #d7cbdc}.load-status{font-size:13px;color:#a02447;margin-top:10px}.load-status:empty{display:none}.text-button{color:var(--purple);border:0;background:transparent;min-height:40px;padding:6px 0;text-decoration:underline;text-underline-offset:4px;font-size:14px}
.question-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:500;font-size:14px}.level-progress{margin:22px 0 29px}.level-progress>div{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px;font-size:13px}.level-progress strong{font-weight:500}.level-progress span{color:var(--muted)}progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:#ded4e4}progress::-webkit-progress-bar{background:#ded4e4}progress::-webkit-progress-value{background:var(--purple);border-radius:8px;transition:width .25s}progress::-moz-progress-bar{background:var(--purple)}.question-topic{font-size:12px;color:var(--purple);margin-bottom:12px}#question-title{font-size:clamp(1.5rem,2.15vw,2rem);line-height:1.3;letter-spacing:-.025em;outline:none;min-height:2.6em}#answers{border:0;padding:0;margin:26px 0 23px;min-width:0}#answer-options{display:grid;gap:12px}.answer-choice{display:block;position:relative;cursor:pointer}.answer-choice input{position:absolute;opacity:0;width:1px;height:1px}.answer-choice>span{display:flex;align-items:center;gap:15px;border:1px solid #b8a9c3;border-radius:8px;padding:14px;min-height:60px;background:#fffdf9;line-height:1.4;font-size:16px}.answer-choice b{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;background:#eee5f3;border-radius:5px;font-size:12px;font-weight:500;color:var(--deep)}.answer-choice input:checked+span{border-color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple);background:#eee5f6}.answer-choice input:focus-visible+span{outline:3px solid var(--purple);outline-offset:3px}.answer-choice.correct>span{border-color:#387452;background:#e5efdf}.answer-choice.incorrect>span{border-color:#aa4260;background:#f6e4e7}.answer-choice small{margin-left:auto;font-size:12px;font-weight:500}.answer-feedback{padding:17px 0 20px}.answer-feedback strong{font-size:18px;display:block;margin-bottom:7px}.answer-feedback p{font-size:14px;color:var(--muted)}.answer-feedback[data-correct=false] strong{color:#9f2d4b}.assessed-level{padding:22px 0;margin:20px 0;border-block:1px solid #cfc1da}.assessed-level span{display:block;font-size:13px;color:var(--muted);margin-bottom:10px}.assessed-level strong{font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.2;font-weight:600;display:block;color:var(--purple);letter-spacing:-.025em}#result-description{font-size:15px;color:var(--muted)}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:25px 0}.result-stats dt{font-size:12px;color:var(--muted);line-height:1.5}.result-stats dd{margin:7px 0 0;font-size:24px;font-weight:500}.practice-summary{margin:28px 0}.practice-summary h3{font-size:17px;letter-spacing:-.01em}.practice-summary ul{padding-left:19px;font-size:14px;color:var(--muted);line-height:1.8}.result-contact{display:block;text-align:center;padding:18px 0 0;font-size:14px}.restart-confirm{border-top:1px solid #cfc1da;padding-top:20px;margin-top:25px}.restart-confirm h3{font-size:20px}.restart-confirm p{font-size:14px;color:var(--muted);margin:10px 0 16px}.restart-confirm>div{display:flex;gap:15px}.restart-confirm .primary-action{width:auto;font-size:14px;padding:12px;min-height:44px}.no-script{background:var(--yellow);padding:20px;color:var(--deep);margin-top:20px}.quest-footer{max-width:1480px;margin:auto;padding:23px 48px 30px;display:flex;gap:25px;font-size:12px;color:#d6c4e7;align-items:center}.quest-footer>span:first-child{margin-right:auto}
@media(min-width:1550px){.world-wrap{height:430px}}
@media(max-width:1100px){.quest-header{padding-inline:28px}.quest-shell{padding:32px 28px;gap:28px;grid-template-columns:minmax(0,1fr) minmax(370px,1fr)}.challenge-panel{padding:28px}.journey-heading h1{font-size:2.65rem}.game-hud{gap:8px}.hud-streak{display:none}.world-wrap{margin-inline:-24px;height:340px}.journey-nodes button{font-size:11px}.quest-footer{padding-inline:28px}}
@media(max-width:800px){.quest-header{padding:18px 20px;gap:14px}.brand{padding:7px 10px}.brand img{width:118px}.quest-name{font-size:15px}.quest-name>span{font-size:11px}.home-link{font-size:12px;gap:5px}.quest-shell{grid-template-columns:1fr;padding:28px 20px;gap:28px;max-width:650px}.journey{position:relative;top:auto}.journey-heading h1{font-size:2.5rem}.overline{font-size:11px;margin-bottom:10px}.world-wrap{height:280px;margin:-15px -20px 0}.game-hud{margin-top:20px;padding-top:17px}.hud-streak{display:block}.journey-nodes{padding-top:10px}.journey-tools{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.journey-tools>p{font-size:12px;max-width:24ch}.journey-tools>div{gap:12px;margin:0}.journey-tools button{font-size:11px}.challenge-panel{padding:28px}.challenge-panel h2{font-size:2rem}.quest-footer{padding:0 20px 25px;flex-wrap:wrap;gap:12px 22px}.quest-footer>span:first-child{width:100%}body[data-state=playing] .journey-heading,body[data-state=result] .journey-heading{display:none}body[data-state=playing] .world-wrap,body[data-state=result] .world-wrap{height:205px}body[data-state=playing] .quest-shell,body[data-state=result] .quest-shell{padding-top:0}body[data-state=playing] .journey-tools>p,body[data-state=result] .journey-tools>p{max-width:none}#question-title{font-size:1.55rem;min-height:0}}
@media(max-width:380px){.quest-header{gap:10px}.quest-name>span{display:none}.home-link{font-size:0;min-width:24px}.home-link span{font-size:24px}.quest-name{font-size:13px}.quest-shell{padding-inline:16px}.challenge-panel{padding:22px}.form-row{grid-template-columns:1fr}.subject-options label>span{padding:12px 9px;font-size:12px;gap:5px}.subject-options b{font-size:15px;width:24px}.game-hud .hud-streak{display:none}.journey-nodes button{font-size:10px}.journey-tools>p{font-size:11px}.journey-tools>div{gap:9px}.journey-heading h1{font-size:2.2rem}.answer-choice>span{padding:12px;font-size:15px}.result-stats{gap:10px}.result-stats dt{font-size:11px}.result-stats dd{font-size:21px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#action-error{padding:13px;background:#f6e4e7;border-radius:8px;margin-bottom:20px;color:#9f2d4b;font-size:14px}.saved-note{font-size:13px;margin-top:20px;color:var(--purple)}

/* Essential feedback stays beside the answers when the mobile scene scrolls away. */
.question-hud{display:flex;justify-content:space-between;gap:12px;padding-bottom:18px;margin-bottom:14px;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;color:var(--purple)}.panel-intro,.answer-feedback p,#result-description,.restart-confirm p,.practice-summary ul{font-size:16px}.privacy-note,.draft-note{font-size:14px}.question-hud span:last-child{color:var(--muted);font-weight:400}

@media(max-width:800px){.quest-header{gap:12px}.quest-name{white-space:nowrap}.home-link{font-size:0;min-width:44px;justify-content:center}.home-link span{font-size:23px}.question-hud{position:sticky;top:0;z-index:2;background:var(--cream);padding-top:14px;margin-top:-14px}.journey-tools button{min-height:44px}.challenge-panel{scroll-margin-top:16px}}

.view-map{display:none}.question-hud #question-streak{color:var(--muted);font-weight:400}@media(max-width:800px){.view-map{display:inline-flex;align-items:center;min-height:32px;color:var(--purple);font-size:13px}.question-hud{align-items:center;gap:8px}#world{scroll-margin-top:20px}}
@media(max-width:800px){.journey-nodes li:first-child{flex:1.6}}
@media(max-width:380px){.subject-options label>span{font-size:14px}.subject-options b{display:none}}
@media(max-width:380px){.world-wrap{margin-inline:-16px}}
