:root { color-scheme: dark; font-family: "Segoe UI", system-ui, sans-serif; color: #eaf0ff; background: #080f21; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 75% 5%, #182947 0, transparent 48%); }
[hidden] { display: none !important; }
.site-header { max-width: 1240px; margin: auto; padding: 26px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #253149; }
a { color: inherit; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: 2px; min-width: 0; overflow-wrap: anywhere; }
.brand-mark { flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 39px; background: #9af4c4; color: #0c3025; border-radius: 10px 10px 18px 18px; }
.brand-tag, .class-label { font-size: 11px; letter-spacing: 1.5px; color: #b1bed5; }
.brand-tag { border-left: 1px solid #465574; padding-left: 12px; }
main { max-width: 1180px; margin: auto; padding: 44px 24px 20px; }
.intro { margin-bottom: 32px; display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.intro-crew { grid-column: 1; grid-row: 1; }
.intro-copy { grid-column: 2; grid-row: 1; }
.intro-copy { max-width: 670px; min-width: 0; }
.intro-crew { display: block; width: auto; height: auto; max-width: 100%; max-height: 340px; justify-self: center; filter: drop-shadow(0 12px 20px #0005); }
.eyebrow { color: #92edbd; font-size: 11px; font-weight: 800; letter-spacing: 2px; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.13; letter-spacing: -1.5px; margin: 0 0 16px; }
h1 span { color: #a4b9e8; }
p { color: #b5c3db; line-height: 1.65; font-size: 14px; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 22px; margin: 0 0 12px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.card { background: #111d33; border: 1px solid #2b3c58; border-radius: 20px; padding: 24px; }
.mission { overflow: hidden; padding: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mission > .section-heading { padding: 24px; }
.heading-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sfx-toggle { min-height: 34px; border: 1px solid #3c5974; border-radius: 20px; background: transparent; color: #b8d7f0; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 6px 12px; cursor: pointer; }
.sfx-toggle:hover { background: #20324e; }
.sfx-toggle[aria-pressed="true"] { border-color: #9af4c4; color: #9af4c4; }
.badge { border: 1px solid #3c5974; border-radius: 20px; color: #b8d7f0; font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 8px 10px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin: 0 24px 16px; }
.stat-label { display: block; font-size: 9px; letter-spacing: 1px; color: #a8b8d2; margin-bottom: 5px; }
.stats strong { font-size: 23px; }
progress { display: block; width: calc(100% - 48px); height: 6px; margin: 0 24px 24px; accent-color: #9af4c4; border: 0; border-radius: 8px; overflow: hidden; background: #253953; }
progress::-webkit-progress-bar { background: #253953; }
progress::-webkit-progress-value { background: #9af4c4; }
.space-scene { position: relative; height: 255px; overflow: hidden; background-color: #0a132a; background-image: radial-gradient(1px 1px at 10% 25%, #c0dcff 99%, transparent), radial-gradient(2px 2px at 30% 65%, #a9c5e1 99%, transparent), radial-gradient(1px 1px at 70% 20%, #a5cafb 99%, transparent), radial-gradient(1px 1px at 90% 60%, #c0dcff 99%, transparent); background-size: 155px 120px, 200px 180px, 240px 160px, 190px 170px; }
.planet { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(140deg, #3e4e89, #15203c 70%); right: -25px; top: -50px; box-shadow: -10px 10px 60px #35468144; }
.orbit { position: absolute; border: 1px solid #5b86b720; width: 520px; height: 240px; border-radius: 50%; transform: rotate(-25deg); left: -40px; top: 20px; }
.orbit-two { width: 680px; height: 340px; top: -30px; }
.space-scene { --advance: 0; --shot: 0; --travel: calc(79% - 275px); --nose: 140px; --beam-y: 108px; --rock-x: calc(17% + 42px); --rock-y: 114px; }
.craft { position: absolute; top: 50px; left: calc(4% + var(--advance) * var(--travel)); width: 170px; height: 130px; transition: left 1.1s cubic-bezier(.45, 0, .2, 1) .45s; }
.ship { position: absolute; left: 30px; top: 35px; width: 110px; height: 55px; border-radius: 40% 70% 70% 40%; background: linear-gradient(#eef7ff, #92b0d1); transform: rotate(-10deg); box-shadow: 0 10px 30px #0005; }
.ship::before, .ship::after { content: ""; position: absolute; left: 12px; width: 40px; height: 25px; background: #75e9be; }
.ship::before { top: -19px; border-radius: 10px 35px 0 0; }
.ship::after { bottom: -19px; border-radius: 0 0 35px 10px; }
.ship-window { position: absolute; width: 30px; height: 30px; border: 4px solid #466982; border-radius: 50%; background: #6de6f3; right: 20px; top: 12px; }
.flame { position: absolute; width: 46px; height: 24px; background: linear-gradient(90deg, transparent, #ffca7b); left: -39px; top: 16px; border-radius: 50%; transform-origin: right center; animation: idle-flame .35s ease-in-out infinite alternate; }
.power-line { position: absolute; left: 4px; top: 25px; width: 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffca7b, #9af4c4); box-shadow: 0 0 10px #9af4c4; opacity: 0; }
.shield { position: absolute; inset: 0; border: 2px solid #7af7d24d; border-radius: 50%; box-shadow: 0 0 30px #5bf7c31a; }
.pulse { position: absolute; left: 75px; top: 55px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #9af4c4; opacity: 0; pointer-events: none; }
.trail { position: absolute; right: 100%; top: 58px; width: 0; height: 14px; margin-right: -20px; border-radius: 10px; background: linear-gradient(90deg, transparent, #ffca7b99, #fff2d2); opacity: 0; }
.boost .flame { animation: boost-flame .12s ease-in-out 10 alternate; }
.boost .power-line { animation: power-flow .45s ease-out 3; }
.boost .pulse { animation: shield-pulse .9s ease-out 1; }
.boost .pulse-two { animation-delay: .3s; }
.boost .shield { animation: shield-flash .3s ease-in-out 4; }
.boost .trail { animation: engine-trail 1.2s ease-out 1; }
@keyframes idle-flame { from { transform: scaleX(.85); opacity: .8; } to { transform: scaleX(1.05); opacity: 1; } }
@keyframes boost-flame { from { transform: scale(1.6, 1.1); filter: brightness(1.2); } to { transform: scale(2.6, 1.4); filter: brightness(1.8); } }
@keyframes power-flow { 0% { width: 0; opacity: 1; } 80% { width: 70px; opacity: 1; } 100% { width: 70px; opacity: 0; } }
@keyframes shield-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(8, 6); opacity: 0; } }
@keyframes shield-flash { 0%, 100% { border-color: #7af7d24d; box-shadow: 0 0 30px #5bf7c31a; background: transparent; } 50% { border-color: #c9fff0; box-shadow: 0 0 45px #5bf7c3cc, inset 0 0 40px #5bf7c366; background: #5bf7c314; } }
@keyframes engine-trail { 0% { width: 0; opacity: 0; } 25% { width: 140px; opacity: 1; } 100% { width: 60px; opacity: 0; } }
.asteroid { position: absolute; top: 72px; right: 17%; width: 85px; height: 85px; display: grid; place-items: center; border-radius: 40% 55% 40% 48%; background: radial-gradient(circle at 30% 25%, #aa8e7c, #5c5159 75%); transform: rotate(15deg); box-shadow: inset -8px -8px 0 #0002; transition: transform .5s, opacity .5s; }
.asteroid span { font-size: 32px; color: #fff3e5; transform: rotate(-15deg); }
.cleared .asteroid:not(.asteroid-queued) { transform: scale(.4) rotate(60deg); opacity: 0; animation: asteroid-hit .7s ease-in 1; }
.asteroid-queued { width: 48px; height: 48px; right: 4%; background: radial-gradient(circle at 30% 25%, #c3a58b, #75616c 75%); }
.asteroid-queued span { font-size: 19px; }
.asteroid-next { top: 24px; transform: rotate(-18deg); }
.asteroid-later { top: 143px; transform: rotate(28deg); }
.complete .asteroid { visibility: hidden; }
.laser { position: absolute; top: var(--beam-y); left: calc(4% + var(--shot) * var(--travel) + var(--nose)); right: var(--rock-x); height: 7px; margin-top: -3px; border-radius: 6px; background: linear-gradient(#ff5d73, #fff 45%, #fff 55%, #ff5d73); box-shadow: 0 0 10px #ff5d73, 0 0 24px #ff5d73; transform-origin: left center; transform: scaleX(0); opacity: 0; pointer-events: none; }
.boom { position: absolute; top: var(--rock-y); right: var(--rock-x); width: 0; height: 0; pointer-events: none; }
.flash { position: absolute; left: -55px; top: -55px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffe08a 28%, #ff8a3d 52%, transparent 70%); opacity: 0; }
.debris { position: absolute; left: -7px; top: -6px; width: 14px; height: 12px; border-radius: 40% 60% 50% 45%; background: #9a7f6d; box-shadow: inset -3px -3px 0 #0003; opacity: 0; }
.debris:nth-child(2) { --dx: -70px; --dy: -55px; }
.debris:nth-child(3) { --dx: 65px; --dy: -70px; width: 10px; height: 9px; }
.debris:nth-child(4) { --dx: 85px; --dy: 20px; }
.debris:nth-child(5) { --dx: 30px; --dy: 75px; width: 18px; height: 15px; }
.debris:nth-child(6) { --dx: -55px; --dy: 65px; width: 9px; height: 8px; }
.debris:nth-child(7) { --dx: -90px; --dy: 5px; }
.boost .laser { animation: laser-fire .5s ease-out 1; }
.boost .flash { animation: boom-flash .75s ease-out .3s 1 both; }
.boost .debris { animation: debris-fly .9s ease-out .32s 1 both; }
@keyframes laser-fire { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes asteroid-hit { 0%, 42% { transform: rotate(15deg); opacity: 1; filter: none; } 52% { transform: rotate(15deg) translateX(5px) scale(1.12); opacity: 1; filter: brightness(2.2); } 100% { transform: scale(.4) rotate(60deg); opacity: 0; filter: brightness(3); } }
@keyframes boom-flash { 0% { transform: scale(.2); opacity: 0; } 10% { opacity: 1; } 60% { transform: scale(1.4); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes debris-fly { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
.cleared .shield { border-color: #9af4c4; box-shadow: 0 0 40px #5bf7c355; }
.mission-banner { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden; background: radial-gradient(ellipse at center, #080f21cc 0, #080f2166 55%, transparent 80%); z-index: 2; }
.complete .mission-banner { opacity: 1; visibility: visible; animation: banner-fade .5s ease-out 1; }
.complete .scene-caption { z-index: 3; }
.banner-card { text-align: center; padding: 14px 28px; border: 2px solid #9af4c4; border-radius: 18px; background: #0d1a33ee; box-shadow: 0 0 40px #5bf7c366, inset 0 0 24px #5bf7c322; }
.complete .banner-card { animation: banner-pop .7s cubic-bezier(.2, 1.6, .4, 1) 1; }
.banner-card p { margin: 0; }
.banner-stars { color: #ffd76a; font-size: 30px; letter-spacing: 6px; line-height: 1.1; text-shadow: 0 0 14px #ffb84d; }
.banner-title { color: #fff; font-size: clamp(24px, 5vw, 38px); font-weight: 900; letter-spacing: 3px; line-height: 1.15; text-shadow: 0 0 18px #9af4c4, 0 3px 0 #1e6a52; }
.banner-detail { color: #b8f5d8; font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-top: 4px !important; }
.firework { position: absolute; width: 120px; height: 120px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, transparent 30%, var(--fw) 32%, transparent 36%), conic-gradient(from 0deg, var(--fw) 0 4deg, transparent 4deg 30deg, var(--fw) 30deg 34deg, transparent 34deg 60deg, var(--fw) 60deg 64deg, transparent 64deg 90deg, var(--fw) 90deg 94deg, transparent 94deg 120deg, var(--fw) 120deg 124deg, transparent 124deg 150deg, var(--fw) 150deg 154deg, transparent 154deg 180deg, var(--fw) 180deg 184deg, transparent 184deg 210deg, var(--fw) 210deg 214deg, transparent 214deg 240deg, var(--fw) 240deg 244deg, transparent 244deg 270deg, var(--fw) 270deg 274deg, transparent 274deg 300deg, var(--fw) 300deg 304deg, transparent 304deg 330deg, var(--fw) 330deg 334deg, transparent 334deg); -webkit-mask: radial-gradient(circle, #000 0 60%, transparent 70%); mask: radial-gradient(circle, #000 0 60%, transparent 70%); }
.fw-one { --fw: #ffd76a; left: 8%; top: 12px; }
.fw-two { --fw: #9af4c4; right: 8%; top: 24px; }
.fw-three { --fw: #ff7aa2; left: 42%; bottom: 8px; width: 90px; height: 90px; }
.complete .firework { animation: firework-burst 1.3s ease-out 3; }
.complete .fw-two { animation-delay: .35s; }
.complete .fw-three { animation-delay: .7s; }
@keyframes banner-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes banner-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes firework-burst { 0% { transform: scale(.1) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1.3) rotate(25deg); opacity: 0; } }
.scene-caption { position: absolute; bottom: 20px; width: 100%; text-align: center; color: #bbcfed; font-size: 12px; padding: 0 16px; }
.mission-body { padding: 24px; }
button, input, textarea, select { font: inherit; }
button, .secondary, .primary { min-height: 46px; }
button { cursor: pointer; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; padding: 12px 18px; font-size: 14px; font-weight: 750; text-decoration: none; border: 1px solid transparent; }
.primary { background: #9af4c4; color: #102b25; }
.primary:hover { background: #bcffdc; }
.secondary { background: #20324e; border-color: #405675; color: #eaf0ff; }
.secondary:hover { background: #304568; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid #ffd58a; outline-offset: 4px; }
label { display: block; margin: 12px 0 8px; font-size: 14px; font-weight: 600; }
input[type=text], textarea, select { width: 100%; background: #0b1528; border: 1px solid #4d6588; border-radius: 10px; padding: 12px; color: #f0f5ff; }
input[type=text] { font-size: 22px; min-width: 0; }
textarea { resize: vertical; }
.prompt-row, .answer-row, .help-row, .button-row { display: flex; align-items: center; gap: 12px; }
.prompt-row { justify-content: space-between; }
.prompt-row h3 { margin: 0; }
.answer-row .primary { flex-shrink: 0; }
.text-button { border: 0; background: transparent; padding: 8px 0; color: #b6d7ff; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.help-row { gap: 24px; }
.hint { color: #ffda9d; margin: 0; }
#feedback { min-height: 24px; color: #a7f2ce; margin: 8px 0; }
#stop { display: block; margin-top: 12px; }
.notice { margin: 0 24px 20px; color: #ffda9d; }
.notice:empty { display: none; }
.sidebar { display: grid; gap: 20px; }
.steps { padding-left: 23px; margin: 20px 0; }
.steps li { padding: 0 0 18px 8px; color: #95edc2; }
.steps strong, .steps span { display: block; }
.steps strong { color: #ebf2ff; font-size: 14px; margin-bottom: 5px; }
.steps span, .scoring, .small { color: #b5c3db; font-size: 12px; line-height: 1.6; }
.scoring { padding-top: 15px; border-top: 1px solid #2b3c58; }
summary { cursor: pointer; color: #b8d9ff; padding: 12px 0; font-size: 14px; }
.file-label { margin-top: 18px; }
input[type=file] { max-width: 100%; font-size: 12px; }
.button-row { flex-wrap: wrap; }
.practice { margin-top: 24px; }
.practice-words { display: flex; flex-wrap: wrap; gap: 10px; }
#practice-status, #list-status { color: #ffda9d; font-size: 13px; }
.review-word { display: inline-block; padding: 6px 12px; border: 1px solid #465b7b; border-radius: 20px; margin: 0 6px 12px 0; color: #eaf0ff; }
footer { text-align: center; color: #9aacc8; font-size: 12px; padding: 26px 0 10px; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .site-header { padding: 18px; } .class-label, .brand-tag { display: none; } main { padding: 28px 14px; } .sidebar { grid-template-columns: minmax(0, 1fr); } .card, .mission-body, .mission > .section-heading { padding: 18px; } .mission { padding: 0; } .section-heading { align-items: flex-start; flex-wrap: wrap; } .answer-row { flex-wrap: wrap; } .answer-row .primary { width: 100%; } .stats { margin-left: 18px; margin-right: 18px; } .stat-label { font-size: 8px; } .space-scene { height: 230px; --travel: calc(90% - 240px); --nose: 112px; --beam-y: 100px; --rock-x: calc(10% + 34px); --rock-y: 106px; } .craft { transform: scale(.8); transform-origin: left top; } .asteroid { right: 10%; width: 68px; height: 68px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Reduced motion: still show the shot and the blast as steady frames, without movement, flicker, or flying debris. */
@media (prefers-reduced-motion: reduce) {
  .laser { left: calc(4% + var(--advance) * var(--travel) + var(--nose)); }
  .boost .laser { transform: scaleX(1); opacity: 1; }
  .boost .flash { transform: scale(1); opacity: .9; }
  .boost .shield { border-color: #c9fff0; box-shadow: 0 0 45px #5bf7c3cc; }
}
@media (max-width: 580px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .intro-copy { grid-column: 1; grid-row: 2; }
  .intro-crew { max-height: 250px; }
  .brand { font-size: 11px; letter-spacing: 1px; }
  .asteroid.asteroid-queued { right: 3%; width: 34px; height: 34px; }
  .asteroid-queued span { font-size: 15px; }
  .asteroid-next { top: 24px; }
  .asteroid-later { top: 155px; }
}
@media (min-width: 901px) and (max-height: 900px) {
  .site-header { padding: 10px 24px; }
  .brand { font-size: 13px; letter-spacing: 1px; }
  main { padding-top: 12px; }
  .intro { margin-bottom: 16px; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .intro-crew { max-height: 145px; }
  .intro h1 { font-size: 32px; margin-bottom: 8px; }
  .intro p { margin-top: 6px; margin-bottom: 6px; }
  .intro .eyebrow { margin-top: 0; }
  main:has(#answer-form:not([hidden])) .intro { display: none; }
  .layout { gap: 18px; }
  .card { padding: 18px; }
  .mission { padding: 0; }
  .mission > .section-heading, .mission-body { padding: 14px 18px; }
  .mission > .section-heading .eyebrow { margin: 0 0 4px; }
  .stats { margin: 0 18px 10px; }
  .stats strong { font-size: 20px; }
  progress { margin: 0 18px 12px; width: calc(100% - 36px); }
  .space-scene { height: 190px; }
  .scene-caption { bottom: 8px; }
  .asteroid-later { top: 125px; width: 38px; height: 38px; }
  .mission-body h3 { font-size: 20px; }
  .mission-body p { margin-top: 6px; margin-bottom: 6px; }
  .help-row { gap: 20px; }
  #feedback { margin: 4px 0; }
  #feedback:empty, .hint:empty { display: none; }
  #stop { display: inline-flex; margin-top: 0; }
  #next { margin-right: 16px; }
  #answer-form label { margin-top: 6px; }
  #answer-form:has(#next:not([hidden])) .help-row { display: none; }
  .notice { margin: 0 18px 10px; }
  .steps { margin: 12px 0; }
  .steps li { padding-bottom: 10px; }
  .scoring { padding-top: 10px; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .intro { margin-bottom: 12px; }
  .intro h1 { font-size: 26px; line-height: 1.05; margin-bottom: 4px; }
  .intro p { font-size: 13px; line-height: 1.4; margin: 4px 0; }
  .intro .eyebrow { font-size: 10px; }
  .intro-crew { max-height: 110px; }
  .space-scene { height: 145px; --beam-y: 76px; --rock-y: 82px; }
  .craft { top: 18px; }
  .asteroid:not(.asteroid-queued) { top: 40px; }
  .asteroid-next { top: 8px; }
  .asteroid-later { top: 93px; }
  .scene-caption { bottom: 3px; font-size: 11px; }
}
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .badge { display: none; }
  .brand { font-size: 12px; }
  .class-label { display: none; }
}
@media (min-width: 901px) and (max-height: 650px) {
  .intro-crew { max-height: 90px; }
  .intro h1 br { display: none; }
  .intro h1 span::before { content: " "; }
  .mission > .section-heading { padding-top: 10px; padding-bottom: 10px; }
  #briefing p { font-size: 13px; line-height: 1.45; }
}
@media (max-width: 900px) {
  html.mission-active, .mission-active body { overflow: hidden; }
  .mission-active .site-header, .mission-active .intro,
  .mission-active .sidebar, .mission-active .practice, .mission-active footer { display: none; }
  .mission-active .mission {
    position: fixed; top: var(--mission-top, 0px); left: 0; right: 0;
    height: var(--mission-height, 100dvh); z-index: 10;
    display: flex; flex-direction: column; border-radius: 0;
    padding: 0; overflow: hidden;
  }
  .mission-active .mission > .section-heading { padding: 8px 12px; flex-wrap: nowrap; flex-shrink: 0; }
  .mission-active .mission > .section-heading .eyebrow,
  .mission-active .badge { display: none; }
  .mission-active .mission h2 { font-size: 17px; }
  .mission-active .heading-tools { flex-shrink: 0; }
  .mission-active .stats { margin: 0 12px 6px; flex-shrink: 0; }
  .mission-active .stats strong { font-size: 18px; }
  .mission-active progress { width: calc(100% - 24px); margin: 0 12px 6px; flex-shrink: 0; }
  .mission-active .space-scene { height: 160px; flex-shrink: 0; --beam-y: 76px; --rock-y: 82px; }
  .mission-active .craft { top: 26px; }
  .mission-active .asteroid:not(.asteroid-queued) { top: 48px; }
  .mission-active .asteroid-next { top: 8px; }
  .mission-active .asteroid-later { top: 112px; }
  .mission-active .scene-caption { bottom: 4px; font-size: 11px; }
  .mission-active #answer-form { padding: 8px 12px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
  .mission-active .prompt-row h3 { font-size: 17px; }
  .mission-active .answer-row { flex-wrap: nowrap; gap: 8px; }
  .mission-active .answer-row .primary { width: auto; padding: 8px 12px; }
  .mission-active #answer { font-size: 18px; padding: 8px; min-height: 46px; }
  .mission-active #answer-form label { margin: 4px 0; }
  .mission-active #feedback, .mission-active .hint { margin: 4px 0; font-size: 13px; line-height: 1.4; }
  .mission-active #feedback:empty, .mission-active .hint:empty { display: none; }
  .mission-active #stop { display: inline-flex; margin: 0 0 0 12px; }
  .mission-active #next { margin-top: 4px; }
  .mission-active #answer-form:has(#next:not([hidden])) .help-row { display: none; }
  .mission-active .notice { margin: 0 12px; max-height: 40px; overflow-y: auto; flex-shrink: 0; font-size: 12px; }
  .mission-active.compact-viewport .stats, .mission-active.compact-viewport progress { display: none; }
  .mission-active.compact-viewport .space-scene { height: 92px; --beam-y: 45px; --rock-y: 47px; --rock-x: calc(14% + 26px); --nose: 84px; --travel: 0px; }
  .mission-active.compact-viewport .craft { top: 4px; transform: scale(.6); }
  .mission-active.compact-viewport .asteroid:not(.asteroid-queued) { top: 21px; right: 14%; width: 52px; height: 52px; }
  .mission-active.compact-viewport .asteroid span { font-size: 22px; }
  .mission-active.compact-viewport .asteroid.asteroid-queued { width: 24px; height: 24px; right: 2%; }
  .mission-active.compact-viewport .asteroid-queued span { font-size: 12px; }
  .mission-active.compact-viewport .asteroid-next { top: 4px; }
  .mission-active.compact-viewport .asteroid-later { top: 54px; }
  .mission-active.compact-viewport .scene-caption { display: none; }
  .mission-active.compact-viewport #answer-form label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
