/* Student game only. Shared admin styles remain in assessment.css. */
html{scroll-behavior:smooth;scroll-padding-top:0}body{background:var(--deep);min-width:280px}.quest-header{max-width:1280px;padding:22px 40px;border-bottom-color:#775898}.quest-main{max-width:1200px;margin:auto;padding:0 40px}.quest-header .brand{border-radius:6px}.quest-header .brand img{width:128px}.quest-header .quest-name{font-size:16px}.quest-footer{max-width:1200px;margin:0 auto;padding:28px 40px;display:flex;gap:24px;align-items:center;justify-content:space-between;border-top:1px solid #775898;color:#dfcdec;font-size:12px}.game-settings{display:flex;gap:20px}.game-settings button,.back-button,.resume-button{background:none;border:0;color:inherit;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:5px;font-size:13px}.quest-main>#action-error{position:sticky;top:125px;z-index:8;margin-top:16px}.welcome-screen{padding:54px 0 32px;display:grid;grid-template-columns:1.15fr 1fr;column-gap:50px;align-items:center}.game-label{display:flex;gap:13px;align-items:center;font-size:13px;font-weight:500;letter-spacing:.08em;margin-bottom:23px;color:#e4d4f0}.game-label>span{font-size:11px;font-weight:400;letter-spacing:0;border:1px solid #a786c8;padding:4px 8px;border-radius:20px}.welcome-copy h1{font-size:clamp(40px,4.7vw,64px);line-height:1.03;letter-spacing:-.035em}.welcome-copy>p:not(.welcome-meta){max-width:35ch;font-size:17px;color:#e3d2ef;margin:22px 0 27px}.welcome-copy>.primary-action{max-width:305px;min-height:58px;font-size:18px}.welcome-copy .welcome-meta{font-size:12px;color:#dcc8ed;margin-top:14px}.resume-button{color:var(--yellow);font-size:15px;margin-top:6px}.welcome-stage{position:relative;height:360px;isolation:isolate;overflow:hidden}.welcome-stage .companion-dock{position:absolute;width:100%;height:320px;inset:0 0 auto;z-index:2}.stage-orbit{position:absolute;border:1px solid #8d65b0;border-radius:50%;left:12%;right:12%;height:75%;top:0;transform:rotate(-20deg)}.orbit-two{left:6%;right:6%;top:25px;transform:rotate(25deg);border-color:#654185}.owl-podium{position:absolute;background:var(--purple);height:65px;left:23%;right:23%;bottom:39px;border-radius:50%;box-shadow:0 17px 0 #26133f,0 22px 0 #5e3c84;border-top:9px solid #9870c4}.stage-step{position:absolute;width:50px;height:29px;border-radius:50%;background:var(--cream);color:var(--deep);font-size:13px;font-weight:600;text-align:center;padding-top:5px;box-shadow:0 9px 0 #8e6cb4;transform:rotate(-10deg);z-index:3}.step-one{bottom:6px;left:2%}.step-two{bottom:49px;left:6%}.step-three{bottom:82px;left:13%}.stage-star{position:absolute;color:var(--yellow);font-size:45px;z-index:3}.star-one{top:65px;right:14%;transform:rotate(15deg)}.star-two{left:17%;top:115px;font-size:24px}.stage-caption{position:absolute;bottom:0;right:0;color:#dbc6ec;font-size:12px;max-width:17ch;text-align:right;line-height:1.5}.quest-rules{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:45px;padding-top:32px;border-top:1px solid #795399}.rule-symbol{display:block;color:var(--yellow);font-size:23px;letter-spacing:2px;line-height:1;min-height:27px;margin-bottom:17px}.rule-dots{font-size:19px;letter-spacing:5px}.rule-route{font-size:19px;font-weight:500}.rule-route i{font-style:normal;color:#b591d1;font-weight:400;padding:0 5px}.quest-rules h2{font-size:19px;letter-spacing:-.02em;margin-bottom:12px;line-height:1.25;text-wrap:initial}.quest-rules p{font-size:14px;color:#e4d5f0;max-width:32ch}.welcome-finish{grid-column:1/-1;font-size:13px;text-align:center;color:#e4d5f0;margin-top:28px}.welcome-screen>.draft-note{grid-column:1/-1;color:#c9b2db;text-align:center;padding:0;border:0;font-size:12px;margin-top:10px}
.companion-dock{position:relative;min-width:0;pointer-events:none}.owl-companion{width:100%;height:100%;position:relative;pointer-events:none}.owl-companion #companion-canvas{position:absolute;inset:0}.owl-companion canvas{width:100%;height:100%;display:block}.owl-fallback{position:absolute;width:65%;height:65%;left:17.5%;top:17.5%;object-fit:contain;background:var(--cream);padding:8%;border-radius:45%;box-shadow:0 12px 0 #211139}.owl-companion.has-companion .owl-fallback{display:none}.owl-companion:has([data-failed=true]) .owl-fallback{display:block}.owl-companion:has([data-failed=true]) canvas{display:none}.owl-companion[data-mood=happy] .owl-fallback,.owl-companion[data-mood=celebrate] .owl-fallback{transform:rotate(-9deg) translateY(-4px)}.owl-companion[data-mood=sad] .owl-fallback{transform:rotate(9deg)}
.setup-screen{display:grid;grid-template-columns:1fr 1fr;gap:95px;padding:38px 0 60px;align-items:start}.setup-intro{padding-top:6px}.back-button{color:#e3d0f1;margin-bottom:17px}.setup-intro h1{font-size:clamp(40px,4.7vw,61px);outline:none}.setup-intro>p:not(.owl-speech){font-size:17px;color:#e0cee9;max-width:31ch;margin-top:20px}.setup-intro .companion-dock{height:235px;max-width:290px;margin:5px auto 0}.owl-speech{font-size:14px;text-align:center;color:#ecdff6}.setup-form-panel{background:var(--cream);color:var(--deep);padding:30px;border-radius:20px}.setup-form-panel form{margin:0}.setup-form-panel .draft-note{margin-top:17px}.setup-form-panel .primary-action:focus-visible{outline-color:var(--purple)}.subject-options label>span{padding:13px 10px}.privacy-note,.draft-note{font-size:13px}
.play-hud{position:sticky;top:0;z-index:10;background:var(--deep);border-bottom:1px solid #8964a9;box-shadow:0 7px 20px #1a092830}.hud-inner{max-width:1020px;margin:auto;padding:15px 40px;display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:32px;align-items:center}.hud-label{font-size:11px;margin-bottom:6px}.hud-stage strong{font-size:19px}.lives #hearts{display:flex;gap:4px;font-size:26px;letter-spacing:0}.heart{display:inline-block;transform-origin:50% 60%;line-height:1}.heart-spent{color:#8c6fa4}.hud-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:10px}.hud-progress #hud-streak{color:#d4bde7;font-size:11px}.hud-progress progress{height:9px;background:#775991}.hud-progress progress::-webkit-progress-bar{background:#775991}.hud-progress progress::-webkit-progress-value{background:var(--yellow);transition:none}.hud-progress progress::-moz-progress-bar{background:var(--yellow)}.heart{position:relative}.heart.just-lost::before,.heart.just-lost::after{content:"♥";position:absolute;inset:0;color:var(--yellow);pointer-events:none}.heart.just-lost::before{clip-path:polygon(0 0,55% 0,43% 44%,57% 65%,47% 100%,0 100%);animation:heart-break-left 950ms ease-out both}.heart.just-lost::after{clip-path:polygon(55% 0,100% 0,100% 100%,47% 100%,57% 65%,43% 44%);animation:heart-break-right 950ms ease-out both}.hud-progress.earned{animation:earned-step .65s ease}.hud-stage.unlocked{animation:unlock-level .9s ease}.play-screen{max-width:900px;margin:auto;padding:28px 0 50px}.trail-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.trail-top h1{font-size:25px;letter-spacing:-.025em}.trail-top p{font-size:12px;color:#d9c6e8;margin-bottom:6px}.trail-top .text-button{color:#ddc8eb}.journey-nodes{border-top:0;margin-top:10px;padding-top:9px;gap:12px}.journey-nodes button{font-size:11px;min-height:58px}.journey-nodes button:before{height:26px;width:26px;margin-bottom:7px}.play-screen>.node-inspect{position:static;margin:8px 0 26px;min-height:20px;font-size:12px}.question-trail{max-width:680px;margin:0 auto;position:relative;overflow-anchor:none}.question-trail:before{content:"";position:absolute;top:0;bottom:45px;left:-31px;border-left:2px dashed #9b7bb6;z-index:0}.question-card,.history-card{position:relative;color:var(--deep);background:var(--cream);border-radius:20px;padding:30px;scroll-margin-top:140px}.question-card:before,.history-card:before{content:"";position:absolute;left:-37px;top:40px;width:12px;height:12px;background:var(--yellow);border:3px solid var(--deep);border-radius:50%}.question-card{box-shadow:0 8px 0 #241039}.question-introduction{position:relative}.question-number{display:block;font-size:12px;font-weight:500;color:#7b5a95;margin-bottom:15px}.question-number:before{content:"QUESTION ";letter-spacing:.07em;font-size:10px}.question-topic{font-size:12px;margin-bottom:10px}.question-card #question-title{font-size:clamp(23px,2.6vw,30px);line-height:1.3;min-height:0;text-wrap:initial}.question-card #answers{margin:24px 0 20px}.question-card #answer-options{gap:11px}.answer-choice>span{min-height:58px;padding:13px 14px;font-size:16px;background:#fffcf7;border-width:1.5px;border-radius:10px;transition:background .2s,border-color .2s,transform .2s}.answer-choice input:checked+span{background:#e7d9f2}.answer-choice small{font-size:11px}.answer-feedback{padding:4px 0 20px}.answer-feedback strong{line-height:1.35;font-size:20px}.answer-feedback p{font-size:15px}.question-card .primary-action:focus-visible{outline-color:var(--purple)}.trail-note{font-size:12px;color:#d8c4e7;text-align:center;margin:23px 0 0}.history-card{margin-bottom:32px;background:#e9dfef;padding:24px 28px;box-shadow:none;overflow-wrap:anywhere}.history-card h2{font-size:18px;line-height:1.4;letter-spacing:-.015em;text-wrap:initial;margin:8px 0 14px}.history-meta{display:flex;justify-content:space-between;gap:18px;align-items:center;font-size:11px;color:#715280}.history-result{font-size:13px;font-weight:500;line-height:1.5}.history-card[data-correct=false] .history-result{color:#982e4e}.history-card details{font-size:13px;margin-top:12px;line-height:1.6}.history-card summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;min-height:32px;padding:5px 0}.history-card details p{padding:6px 0;color:#634672}.level-gate{position:relative;display:flex;gap:18px;align-items:center;color:var(--yellow);margin:35px 0 23px;font-size:17px;font-weight:500}.level-gate:before{content:"✦";font-size:26px;display:block}.level-gate small{display:block;color:#d9c2e8;font-size:12px;font-weight:400;margin-top:7px}.level-gate:first-child{margin-top:0}.result-screen{position:relative;background:var(--cream);color:var(--deep);max-width:690px;margin:55px auto;padding:40px;border-radius:22px}.result-screen #result-dock{height:170px;width:180px;float:right;margin:-30px -10px 0 8px}.result-screen h2{font-size:38px}.result-screen .panel-eyebrow{padding-top:10px}.result-screen .panel-intro{min-height:40px}.result-screen .assessed-level{clear:both}.result-screen .primary-action:focus-visible{outline-color:var(--purple)}.restart-confirm{position:fixed;inset:0;width:min(430px,calc(100vw - 40px));height:max-content;margin:auto;padding:30px;border:0;border-radius:18px;background:var(--cream);color:var(--deep);z-index:30;box-shadow:0 25px 100px #14092580}.restart-confirm:not([open]){display:none}.restart-confirm::backdrop{background:#160b28bd}.restart-confirm h3{font-size:25px}.restart-confirm p{font-size:15px;margin:17px 0}.restart-confirm>div{display:grid;gap:9px}.restart-confirm .primary-action:focus-visible{outline-color:var(--purple)}
@keyframes lose-heart{0%,30%{transform:scale(1.35);color:var(--yellow)}50%{transform:rotate(-18deg) translateY(4px)}75%{transform:rotate(12deg)}100%{transform:none;color:#8c6fa4}}@keyframes earned-step{45%{transform:translateY(-3px);filter:brightness(1.25)}}@keyframes unlock-level{30%{transform:translateY(-5px);color:var(--yellow)}70%{transform:translateY(1px)}}
@media(min-width:1100px){}
@media(max-width:950px){.question-trail{max-width:660px}.setup-screen{gap:40px}.welcome-screen{column-gap:20px}.quest-rules{gap:25px}}
@media(max-width:800px){html{scroll-padding-top:0}.quest-header{padding:16px 20px;gap:12px}.quest-header .brand img{width:104px}.quest-header .brand{padding:6px 10px}.quest-name>span{font-size:10px}.quest-header .quest-name{font-size:14px}.quest-main{padding:0 20px}.quest-footer{padding:23px 20px;flex-wrap:wrap;gap:12px;font-size:11px}.quest-footer>span{flex:1 1 100%}.game-settings{margin-right:auto}.welcome-screen{padding:32px 0 27px;grid-template-columns:1fr;position:relative}.welcome-copy{z-index:2}.game-label{font-size:11px;margin-bottom:17px}.welcome-copy h1{font-size:clamp(33px,7vw,50px);max-width:18ch}.welcome-copy>p:not(.welcome-meta){font-size:15px;max-width:33ch;margin:18px 0 21px}.welcome-copy>.primary-action{max-width:none}.welcome-copy .welcome-meta{text-align:center;font-size:11px;margin-top:12px}.welcome-stage{grid-row:2;height:235px;margin-top:21px}.welcome-stage .companion-dock{height:235px;max-width:360px;margin:auto}.stage-orbit{left:21%;right:21%;height:84%}.orbit-two{left:12%;right:12%;height:70%;top:35px}.owl-podium{left:31%;right:31%;height:43px;bottom:11px;border-top-width:7px;box-shadow:0 10px 0 #26133f,0 14px 0 #5e3c84}.star-one{right:17%;top:42px;font-size:33px}.star-two{left:21%;top:89px;font-size:20px}.stage-step{width:37px;height:22px;padding-top:3px;font-size:11px;box-shadow:0 6px 0 #8e6cb4}.step-one{bottom:4px;left:8%}.step-two{bottom:35px;left:12%}.step-three{bottom:63px;left:18%}.stage-caption{font-size:10px;bottom:2px;max-width:12ch}.quest-rules{grid-template-columns:1fr;gap:24px;padding-top:28px;margin-top:34px}.quest-rules>div{display:grid;grid-template-columns:100px 1fr;column-gap:17px;align-items:center}.rule-symbol{grid-row:1/3;font-size:17px;letter-spacing:0;min-height:0;margin:0;white-space:nowrap}.rule-dots{font-size:12px;letter-spacing:2px}.rule-route{font-size:16px}.quest-rules h2{font-size:16px;margin:0 0 6px;text-wrap:initial}.quest-rules p{font-size:13px;max-width:none;line-height:1.5}.welcome-finish{font-size:12px;margin-top:28px}.welcome-screen>.draft-note{font-size:11px}.setup-screen{display:block;padding:17px 0 30px}.setup-intro{position:relative;padding:0 130px 20px 0;min-height:174px}.back-button{font-size:12px;margin:0 0 6px}.setup-intro h1{font-size:33px;line-height:1.1}.setup-intro>p:not(.owl-speech){display:none}.setup-intro .companion-dock{position:absolute;right:-10px;top:25px;width:145px;height:155px;margin:0}.owl-speech{display:none}.setup-form-panel{padding:24px 22px;border-radius:17px}.hud-inner{grid-template-columns:1fr auto;padding:12px 20px 10px;gap:12px 20px}.hud-stage strong{font-size:17px}.hud-label{font-size:10px;margin-bottom:5px}.lives #hearts{font-size:23px;gap:5px}.hud-progress{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px}.hud-progress>div{margin:0;font-size:11px;white-space:nowrap}.hud-progress #hud-streak{display:inline;font-size:10px}.hud-progress progress{height:7px}.play-screen{padding:22px 0 33px}.trail-top h1{font-size:22px}.trail-top p{font-size:11px}.trail-top .text-button{font-size:12px}.journey-nodes{gap:2px;margin-top:12px}.journey-nodes button{font-size:10px}.journey-nodes button:before{width:25px;height:25px}.play-screen>.node-inspect{font-size:11px;margin-bottom:22px}.question-trail{max-width:none;margin:0;padding-left:15px}.question-trail:before{left:0;bottom:60px}.question-card,.history-card{padding:23px 20px;border-radius:16px;scroll-margin-top:132px}.question-card:before,.history-card:before{left:-21px;top:29px}.question-introduction{min-height:0}.question-number{margin-bottom:12px;font-size:11px}.question-topic{font-size:11px;margin-bottom:10px;line-height:1.35}.question-card #question-title{font-size:22px;line-height:1.3;min-width:0;overflow-wrap:anywhere}.question-card #answers{margin:20px 0}.answer-choice>span{min-height:56px;padding:12px;gap:10px;font-size:16px}.answer-choice b{width:25px;height:25px;font-size:11px}.answer-choice small{font-size:10px;max-width:42px}.answer-feedback strong{font-size:18px}.answer-feedback p{font-size:14px}.question-card .primary-action{font-size:15px}.history-card{padding:20px;margin-bottom:27px}.history-card h2{font-size:17px}.history-result{font-size:12px}.history-meta{font-size:10px;gap:10px}.history-card details{font-size:12px}.trail-note{font-size:10px;line-height:1.5}.level-gate{font-size:16px;gap:12px;margin:28px 0 20px}.level-gate small{font-size:11px}.result-screen{margin:25px 0;padding:25px 22px}.result-screen h2{font-size:30px}.result-screen #result-dock{width:110px;height:130px;margin:-15px -12px 5px 5px}.result-screen .panel-eyebrow{font-size:10px}.result-screen .panel-intro{font-size:14px}.result-screen .assessed-level strong{font-size:26px}.result-screen .result-stats{gap:12px}.result-screen .result-stats dd{font-size:23px}}
@media(max-width:360px){.quest-main{padding:0 14px}.quest-header{padding-inline:14px;gap:8px}.quest-header .brand img{width:88px}.quest-header .quest-name{font-size:12px}.question-trail{padding-left:12px}.question-trail:before{left:0}.question-card:before,.history-card:before{left:-18px}.question-card,.history-card{padding:21px 16px}.question-introduction{min-height:0}.question-card #question-title{font-size:20px}.quest-rules>div{grid-template-columns:82px 1fr;gap:6px 10px}.rule-symbol{font-size:14px}.rule-dots{font-size:11px;letter-spacing:0}.setup-form-panel{padding:22px 18px}.form-row{gap:10px}.subject-options label>span{font-size:12px}.hud-inner{padding-inline:14px}.lives #hearts{gap:2px}.welcome-copy h1{font-size:35px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body[data-motion=paused] *,body[data-motion=paused] *::before,body[data-motion=paused] *::after{animation-play-state:paused!important}body[data-state=playing] .quest-header{display:none}
/* The companion comes down to the feedback, so its reaction stays in view. */
#answer-feedback{display:flow-root;min-height:135px;padding-top:12px}#answer-feedback .companion-dock{position:relative;float:right;inset:auto;width:118px;height:128px;margin:-16px -8px 0 15px}#answer-feedback p{line-height:1.6}#answer-feedback strong{padding-top:2px}
@media(max-width:800px){.question-introduction{padding-right:0;min-height:0}.question-introduction #question-title{font-size:22px}.question-number{padding-top:1px}#answer-feedback .companion-dock{width:98px;height:112px;margin:-8px -10px 0 8px}#answer-feedback{padding-top:6px;min-height:115px}}
@media(max-width:360px){.question-introduction #question-title{font-size:20px}}
.answer-choice.incorrect input:checked+span{border-color:#aa4260;box-shadow:inset 0 0 0 1px #aa4260;background:#f6e4e7}.answer-choice.correct input:checked+span{border-color:#387452;box-shadow:inset 0 0 0 1px #387452;background:#e5efdf}

/* A quiet welcome; the rules belong immediately before the first question. */
.welcome-screen{min-height:min(640px,calc(100svh - 165px));padding-block:54px 28px}
.welcome-copy h1{max-width:16ch}.welcome-stage{margin-block:0}
.welcome-screen>.draft-note{margin-top:30px}
.rules-screen{max-width:680px;margin:auto;padding:50px 0 42px}
.rules-screen h1{font-size:clamp(32px,4vw,46px);outline:none}
.rules-intro{margin-top:18px;color:#e4d5f0;font-size:16px}
.rules-screen .quest-rules{display:grid;grid-template-columns:1fr;gap:28px;margin:32px 0;padding:30px 0;border-block:1px solid #795399}
.rules-screen .quest-rules>div{display:grid;grid-template-columns:112px 1fr;gap:7px 25px;align-items:center}
.rules-screen .rule-symbol{grid-row:1/3;margin:0;min-height:0;font-size:21px;letter-spacing:0;white-space:nowrap}
.rules-screen .rule-dots{font-size:16px;letter-spacing:2px}
.rules-screen .quest-rules h2{font-size:20px;margin:0;text-wrap:initial}
.rules-screen .quest-rules p{font-size:16px;max-width:45ch;line-height:1.5}
.rules-screen>.primary-action{max-width:440px;margin-inline:auto}
.rules-reassurance{margin-top:15px;text-align:center;font-size:14px;color:#dcc8ed}
.subject-options label>span{position:relative;flex-direction:column;justify-content:center;gap:5px;min-height:112px;padding:9px 6px 13px;font-size:15px;font-weight:500;background:#fffdf9}
.subject-options label img{width:64px;height:64px;object-fit:contain;transition:transform 220ms ease}
.subject-options input:checked+span{background:#e9dcf6;color:var(--deep);border-color:var(--purple);box-shadow:inset 0 0 0 1px var(--purple)}
.subject-options input:checked+span:after{content:'✓';position:absolute;right:9px;top:7px;font-size:13px;color:var(--purple)}
.subject-options label:hover img{transform:translateY(-2px)}
.hud-label{font-size:12px}.hud-level-line{display:flex;gap:10px;align-items:center}
#hud-stage-number{font-size:11px;color:#e1cff0;padding:3px 6px;border:1px solid #8864a5;border-radius:5px}
.lives{position:relative}.life-change{position:absolute;right:0;bottom:-26px;white-space:nowrap;background:var(--cream);color:#982e4e;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:500;pointer-events:none;z-index:2}
.life-change-show{animation:life-notice 1600ms ease-out both}
#feedback-life{display:inline-block;margin:0 0 12px;padding:5px 9px;border-radius:6px;background:#f6e4e7;color:#982e4e;font-size:13px;font-weight:500}
.level-transition-card{position:relative;overflow:hidden;background:var(--purple);color:var(--cream);padding:32px;margin:32px 0 0;border-radius:16px;text-align:center}
.level-transition-card h2{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.transition-stars{display:block;font-size:29px;line-height:1;color:var(--yellow);margin-bottom:17px}
.level-crossing{display:flex;align-items:center;justify-content:center;gap:22px;margin:28px 0}
.level-crossing>div{flex:1;max-width:160px;display:flex;flex-direction:column;align-items:center;gap:10px}
.level-crossing strong{font-size:18px}.level-crossing small{font-size:13px;color:#ebdbf7}
.level-medal{display:grid;place-items:center;width:62px;height:62px;border-radius:18px;font-size:28px;font-weight:600;background:var(--cream);color:var(--purple);box-shadow:0 6px 0 #311957}
.level-medal.next{background:var(--yellow);color:var(--deep);animation:arrive-level 700ms cubic-bezier(.22,1,.36,1) both}
.crossing-arrow{font-size:30px;color:var(--yellow);align-self:flex-start;margin-top:14px}
#transition-lives{font-size:15px;margin-bottom:22px;color:#f1e4fa}
.question-trail{padding-bottom:60px}.question-card{isolation:isolate}
@keyframes heart-break-left{0%,18%{transform:translate(0,0) rotate(0);opacity:1}35%{transform:translate(-2px,-4px) rotate(-14deg);opacity:1}100%{transform:translate(-11px,17px) rotate(-34deg);opacity:0}}
@keyframes heart-break-right{0%,18%{transform:translate(0,0) rotate(0);opacity:1}35%{transform:translate(2px,-4px) rotate(14deg);opacity:1}100%{transform:translate(11px,17px) rotate(34deg);opacity:0}}
@keyframes life-notice{0%{opacity:0;transform:translateY(-6px)}15%,70%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(8px)}}
@keyframes arrive-level{from{opacity:.3;transform:translateY(12px) rotate(-7deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@media(max-width:800px){
 .welcome-screen{padding-top:32px;min-height:0}.welcome-stage{height:225px;margin-top:12px}.welcome-copy h1{max-width:none}
 .welcome-screen>.draft-note{margin-top:24px;font-size:12px}.welcome-copy .welcome-meta{font-size:12px}
 .setup-intro{min-height:146px;padding-bottom:20px}.setup-intro .companion-dock{height:132px;top:15px}
 .rules-screen{padding:30px 0}.rules-intro{font-size:14px;margin-top:15px}
 .rules-screen .quest-rules{margin:24px 0;padding:25px 0;gap:26px}
 .rules-screen .quest-rules>div{grid-template-columns:83px 1fr;column-gap:17px}
 .rules-screen .rule-symbol{font-size:17px}.rules-screen .rule-dots{font-size:12px;letter-spacing:1px}
 .rules-screen .quest-rules h2{font-size:17px}.rules-screen .quest-rules p{font-size:14px}
 .subject-options label>span{min-height:104px;font-size:14px}.subject-options label img{width:58px;height:58px}
 .hud-label{font-size:11px}.hud-inner{column-gap:12px}.hud-level-line{gap:8px}.hud-stage strong{font-size:18px}
 #hud-stage-number{font-size:10px}.hud-progress>div{font-size:12px}.hud-progress #hud-streak{font-size:11px}
 .question-introduction{min-height:0!important;padding:0}.question-topic{font-size:12px}
 .question-card #question-title{font-size:22px}.question-card #answers{margin-top:22px}
 .level-transition-card{padding:27px 20px;margin-top:27px}.level-transition-card h2{font-size:25px}
 .level-crossing{gap:16px}.level-crossing strong{font-size:17px}.level-medal{height:55px;width:55px;font-size:25px}
 .question-trail{padding-bottom:42px}.trail-note{font-size:12px}.history-meta{font-size:11px}
}
@media(max-width:360px){
 .setup-intro{padding-right:104px}.setup-intro h1{font-size:30px}.setup-intro .companion-dock{width:115px}
 .rules-screen .quest-rules>div{grid-template-columns:68px 1fr;column-gap:12px}.rules-screen .rule-symbol{font-size:14px}
 .rules-screen .rule-dots{font-size:11px;letter-spacing:0}.hud-label{font-size:10px}.lives #hearts{font-size:21px}
 .hud-level-line{gap:6px}.hud-stage strong{font-size:16px}.hud-progress>div{gap:10px}
 .question-card #question-title{font-size:21px}.level-crossing{gap:10px}
}
@media(prefers-reduced-motion:reduce){.life-change-show{opacity:1}.heart.just-lost::before,.heart.just-lost::after{display:none}}
/* Keep the native class selector readable, including its dropdown arrow. */
.setup-form-panel .form-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:0 14px}.setup-form-panel .form-row>.field{min-width:0}
