:root {
  --ink: #f7f7ff;
  --muted: #b8b6ce;
  --space: #100b2b;
  --space-deep: #08051b;
  --panel: rgba(34, 27, 76, .84);
  --panel-solid: #211a4b;
  --line: rgba(255, 255, 255, .12);
  --purple: #7c5cff;
  --purple-light: #a792ff;
  --cyan: #32d6e8;
  --yellow: #ffd166;
  --pink: #ff6fae;
  --green: #55e6a5;
  --danger: #ff6b6b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 0, 18, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--space-deep);
  font-family: Inter, ui-rounded, "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; background: white; color: black; padding: .8rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.space-bg { position: fixed; inset: 0; pointer-events: none; z-index: -2; background: radial-gradient(circle at 15% 10%, rgba(92, 67, 180, .3), transparent 32%), radial-gradient(circle at 85% 70%, rgba(25, 104, 150, .2), transparent 36%), linear-gradient(160deg, #120c33 0%, #09061f 70%); }
.space-bg::before, .space-bg::after { content: ""; position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(circle, white 1px, transparent 1.5px); background-size: 74px 74px; }
.space-bg::after { opacity: .28; background-size: 113px 113px; background-position: 30px 17px; }
.star { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 12px white; animation: twinkle 2.8s ease-in-out infinite; }
.star-a { left: 13%; top: 26%; }.star-b { left: 74%; top: 18%; animation-delay: 1s; }.star-c { left: 88%; top: 73%; animation-delay: 1.8s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7); } }
.site-header { width: min(1180px, calc(100% - 36px)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; }
.brand strong { color: var(--cyan); }
.brand-orbit { display: grid; place-items: center; width: 34px; height: 34px; color: var(--yellow); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; box-shadow: inset 0 0 14px rgba(124,92,255,.6); }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; font-size: .94rem; }
.site-header nav form { margin: 0; }
.site-header nav a:not(.button), .nav-button { color: var(--muted); transition: color .2s; }
.site-header nav a:hover, .nav-button:hover { color: white; }
.nav-button { border: 0; background: none; cursor: pointer; padding: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 46px; padding: .72rem 1.25rem; border: 1px solid transparent; border-radius: 13px; color: white; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #896dff, #6344ed); box-shadow: 0 10px 28px rgba(100, 67, 235, .32), inset 0 1px rgba(255,255,255,.25); }
.button-primary:hover { box-shadow: 0 14px 36px rgba(100, 67, 235, .46); }
.button-small { min-height: 38px; padding: .45rem .9rem; font-size: .88rem; }
.button-large { min-height: 55px; padding: .95rem 1.55rem; }
.button-wide { width: 100%; }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.05); }
.text-link { color: var(--cyan); font-weight: 750; }
.messages { width: min(1100px, calc(100% - 36px)); margin: 1rem auto; position: relative; z-index: 30; }
.message { padding: .9rem 1rem; border: 1px solid rgba(85,230,165,.35); background: rgba(85,230,165,.12); border-radius: 12px; }
.message.error { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.12); }
.site-footer { width: min(1180px, calc(100% - 36px)); margin: 5rem auto 0; padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #817e9e; font-size: .85rem; }
.eyebrow { display: inline-flex; color: var(--cyan); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }

/* Landing */
.hero { width: min(1180px, calc(100% - 36px)); min-height: 660px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 3rem; padding: 3rem 0 5rem; }
.hero h1 { margin: .9rem 0 1.15rem; max-width: 700px; font-size: clamp(3rem, 5.2vw, 5.4rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { display: block; background: linear-gradient(90deg, var(--cyan), #b5a4ff, var(--pink)); -webkit-background-clip: text; color: transparent; }
.hero-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem; color: #9d9ab8; font-size: .84rem; margin-top: 2rem; }
.hero-visual { position: relative; min-height: 510px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; top: 0; left: 5%; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.22), transparent 65%); filter: blur(10px); }
.planet-big { position: absolute; width: 260px; height: 260px; left: 50%; top: 47%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #bfb3ff 0, #7b5bea 28%, #4630a2 68%, #20115f 100%); box-shadow: inset -25px -20px 50px rgba(0,0,0,.3), 0 0 70px rgba(124,92,255,.45); }
.planet-big::after { content: ""; position: absolute; width: 360px; height: 75px; border: 18px solid rgba(71,213,230,.65); border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(-13deg); z-index: -1; box-shadow: 0 0 25px rgba(50,214,232,.28); }
.planet-face { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); font-size: 2rem; color: #251353; }
.orbit { position: absolute; left: 50%; top: 47%; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit span { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #292258; border: 1px solid rgba(255,255,255,.16); font-weight: 850; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.orbit-one { width: 430px; height: 430px; }.orbit-one span { right: 8%; top: 8%; color: var(--yellow); }
.orbit-two { width: 530px; height: 530px; transform: translate(-50%,-50%) rotate(25deg); }.orbit-two span { left: 7%; bottom: 18%; color: var(--cyan); transform: rotate(-25deg); }
.rocket { position: absolute; left: 13%; top: 17%; font-size: 4rem; transform: rotate(38deg); filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); animation: hoverRocket 3s ease-in-out infinite; }
.rocket-trail { position: absolute; width: 85px; height: 22px; right: 80%; top: 50%; background: linear-gradient(90deg, transparent, var(--pink), var(--yellow)); border-radius: 50%; filter: blur(7px); z-index: -1; }
@keyframes hoverRocket { 50% { transform: rotate(38deg) translateY(-12px); } }
.floating-card { position: absolute; display: flex; flex-direction: column; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(28,21,65,.78); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.floating-card small { color: var(--muted); font-size: .68rem; }.floating-card strong { font-size: 1.25rem; color: var(--yellow); }
.card-score { right: 2%; top: 20%; transform: rotate(4deg); }.card-xp { right: 7%; bottom: 12%; transform: rotate(-4deg); }.card-xp strong { color: var(--green); }
.section { width: min(1100px, calc(100% - 36px)); margin: 3rem auto 8rem; }
.section-heading { text-align: center; max-width: 670px; margin: 0 auto 3rem; }
.section-heading h2, .parent-promise h2 { margin: .6rem 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p, .parent-promise p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.feature-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(43,34,93,.82), rgba(19,15,49,.8)); box-shadow: 0 15px 45px rgba(0,0,0,.18); }
.feature-icon { font-size: 2rem; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.05); }
.feature-card h3 { margin: 1.2rem 0 .45rem; font-size: 1.2rem; }.feature-card p { margin: 0; color: var(--muted); }
.parent-promise { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 4rem; border-radius: 32px; background: radial-gradient(circle at 90% 0, rgba(50,214,232,.13), transparent 40%), rgba(32,25,73,.75); border: 1px solid var(--line); }
.mini-report { padding: 1.5rem; border-radius: 20px; background: rgba(10,7,31,.65); border: 1px solid var(--line); }
.report-top, .report-row { display: flex; align-items: center; gap: .8rem; }.report-top { justify-content: space-between; margin-bottom: 1.2rem; }.report-top strong { color: var(--cyan); }
.report-row { margin: 1rem 0; font-size: .85rem; }.report-row > span { width: 105px; }.report-row > div { flex: 1; height: 8px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }.report-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--purple),var(--cyan)); }.report-row b { width: 36px; }

/* Forms */
.auth-shell { width: min(1080px, calc(100% - 36px)); margin: 3rem auto 6rem; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: rgba(25,19,60,.8); box-shadow: var(--shadow); }
.auth-art { padding: 4rem; min-height: 620px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 40% 30%, rgba(50,214,232,.2), transparent 35%), linear-gradient(150deg,#23165f,#161039); }
.auth-art > span { font-size: 5rem; filter: drop-shadow(0 12px 22px rgba(0,0,0,.3)); }.auth-art h1 { font-size: clamp(2.3rem,4vw,4rem); line-height: 1; letter-spacing: -.05em; margin: 1.5rem 0 .8rem; }.auth-art p { color: var(--muted); }
.privacy-note { margin-top: 1.5rem; padding: 1rem; border-radius: 14px; background: rgba(85,230,165,.1); color: #b8f5d8; font-size: .88rem; }
.auth-card { background: rgba(14,10,39,.72); padding: clamp(2rem,5vw,4.5rem); }
.auth-card h2, .auth-card h1 { margin: .4rem 0 1.6rem; font-size: 2rem; }
.form-stack { display: grid; gap: 1rem; }
.form-stack label, .form-stack p { display: flex; flex-direction: column; gap: .35rem; margin: 0; color: #e6e4f1; font-size: .88rem; font-weight: 750; }
.form-stack input:not([type=checkbox]), .form-stack select { width: 100%; min-height: 48px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.06); color: white; padding: .7rem .85rem; }
.form-stack select option { color: #17122e; }
.form-stack small, .helptext { color: #918eaa; font-size: .72rem; font-weight: 500; }
.form-stack ul { margin: .25rem 0; padding-left: 1.1rem; color: #a4a1b9; font-size: .73rem; font-weight: 500; }
.check-label { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; }
.check-label input { grid-column: 1; grid-row: 1; width: 18px; height: 18px; }.check-label small, .check-label .field-error { grid-column: 2; }
.field-error, .errorlist, .form-error { color: #ffaaa9 !important; font-size: .78rem; }
.form-error { padding: .8rem; border-radius: 10px; background: rgba(255,107,107,.1); }
.auth-switch { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.5rem; }.auth-switch a { color: var(--cyan); font-weight: 800; }
.narrow-page { width: min(640px, calc(100% - 36px)); margin: 4rem auto; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }

/* Dashboard */
.dashboard-hero { width: min(1100px, calc(100% - 36px)); margin: 3rem auto; display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.dashboard-hero h1 { font-size: clamp(2rem,4vw,3.6rem); line-height: 1.06; letter-spacing: -.05em; margin: .4rem 0; }.dashboard-hero h1 span { color: var(--cyan); }.dashboard-hero p { color: var(--muted); }
.pilot-card { min-width: 330px; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; background: rgba(36,28,78,.82); border: 1px solid var(--line); border-radius: 18px; }
.avatar { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.8rem; border-radius: 16px; background: rgba(124,92,255,.22); }.pilot-card small { color: var(--cyan); font-size: .65rem; }.pilot-card strong { display: block; }.pilot-card span { color: #8885a2; font-size: .67rem; }
.xp-track { height: 5px; margin-top: .3rem; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }.xp-track i { display: block; height: 100%; background: var(--cyan); }.streak { color: var(--yellow); font-weight: 900; }
.mission-map { position: relative; width: min(920px, calc(100% - 36px)); margin: 5rem auto; display: grid; gap: 4rem; }
.map-line { position: absolute; left: 50%; top: 50px; bottom: 50px; border-left: 2px dashed rgba(255,255,255,.12); }
.planet-stop { position: relative; display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; min-height: 170px; }
.planet-stop:nth-child(even) .planet-label { grid-column: 1; grid-row: 1; text-align: right; align-items: flex-end; padding-right: 2rem; }.planet-stop:nth-child(even) .planet-button { grid-column: 2; }.planet-stop:nth-child(even) .planet-number { grid-column: 3; text-align: left; padding-left: 2rem; }
.planet-number { color: rgba(255,255,255,.08); font-size: 4.5rem; font-weight: 950; text-align: right; padding-right: 2rem; }
.planet-button { grid-column: 2; grid-row: 1; justify-self: center; position: relative; width: 125px; height: 125px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 32% 28%, white -20%, var(--planet-color) 32%, color-mix(in srgb, var(--planet-color), #110a3b 55%) 85%); box-shadow: inset -12px -14px 25px rgba(0,0,0,.25), 0 0 45px color-mix(in srgb,var(--planet-color),transparent 60%); transition: transform .25s; }
a.planet-button:hover { transform: scale(1.08) rotate(3deg); }.planet-ring { position: absolute; width: 155px; height: 44px; border: 7px solid color-mix(in srgb,var(--planet-color),white 20%); border-radius: 50%; transform: rotate(-12deg); z-index: -1; opacity: .55; }.planet-emoji { font-size: 2.6rem; }
.planet-label { grid-column: 3; display: flex; flex-direction: column; padding-left: 2rem; }.planet-label small { color: var(--cyan); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }.planet-label strong { font-size: 1.45rem; }.planet-label span { color: var(--muted); font-size: .8rem; }
.planet-stop.locked { filter: saturate(.2); opacity: .62; }
.dashboard-tip { width: min(900px, calc(100% - 36px)); margin: 3rem auto 6rem; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; border: 1px solid rgba(50,214,232,.22); border-radius: 16px; background: rgba(50,214,232,.07); }.dashboard-tip > span { font-size: 1.8rem; }.dashboard-tip p { margin: 0; color: var(--muted); font-size: .85rem; }.dashboard-tip a { margin-left: auto; color: var(--cyan); font-weight: 800; font-size: .85rem; white-space: nowrap; }

/* Game */
.game-page .site-header, .game-page .site-footer { display: none; }
.game-shell { min-height: 100vh; padding: 1.2rem 2rem 2rem; position: relative; overflow: hidden; }
.game-topbar { width: min(1050px,100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; position: relative; z-index: 5; }
.game-exit { justify-self: start; color: var(--muted); font-weight: 750; }.mission-name { display: flex; align-items: center; gap: .6rem; }.mission-name > span { font-size: 1.8rem; }.mission-name small { display: block; color: var(--cyan); font-size: .6rem; font-weight: 900; letter-spacing: .15em; }.mission-name strong { font-size: .9rem; }
.sound-toggle { justify-self: end; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: white; cursor: pointer; }
.launch-screen, .summary-screen { min-height: calc(100vh - 90px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 2; }
.launch-screen h1, .summary-screen h1 { margin: .5rem 0; font-size: clamp(3rem,7vw,5.5rem); line-height: 1; letter-spacing: -.06em; }.launch-screen p, .summary-screen > p { color: var(--muted); max-width: 550px; margin: .5rem 0 1.8rem; }
.launch-planet { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-bottom: 2rem; border-radius: 50%; background: radial-gradient(circle at 30% 25%, white -18%, var(--planet-color) 30%, #211257 86%); box-shadow: inset -20px -20px 38px rgba(0,0,0,.3),0 0 80px color-mix(in srgb,var(--planet-color),transparent 60%); }.launch-planet span { font-size: 4rem; }.launch-planet i { position: absolute; width: 260px; height: 55px; border: 10px solid var(--planet-color); border-radius: 50%; transform: rotate(-10deg); opacity: .55; z-index: -1; }
.mission-screen { width: min(1050px,100%); margin: 0 auto; }
.hud { display: grid; grid-template-columns: 1fr 110px 110px; gap: 1rem; align-items: end; margin: 2.5rem 0 1rem; }.fuel-label { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 800; color: var(--muted); }.fuel-track { height: 13px; position: relative; margin-top: .55rem; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); border-radius: 20px; }.fuel-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--pink),var(--yellow),var(--green)); transition: width .5s ease; }.mini-rocket { position: absolute; left: 0; top: 50%; transform: translate(-40%,-52%) rotate(45deg); transition: left .5s ease; }
.hud-stat { text-align: center; padding: .6rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); }.hud-stat small { display: block; color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }.hud-stat strong { font-size: 1.25rem; }.combo-box strong { color: var(--yellow); }.combo-box.active { animation: comboPulse .35s; border-color: rgba(255,209,102,.5); }
@keyframes comboPulse { 50% { transform: scale(1.12); } }
.question-zone { min-height: 590px; position: relative; display: grid; place-items: center; }
.orbit-bot { position: absolute; left: 2%; top: 23%; font-size: 4rem; animation: botFloat 3s ease-in-out infinite; }.orbit-bot span { display: block; padding: .2rem .5rem; border-radius: 8px; text-align: center; font-size: .65rem; background: rgba(255,255,255,.08); color: var(--cyan); }
@keyframes botFloat { 50% { transform: translateY(-12px) rotate(3deg); } }
.question-card { width: min(680px,100%); min-height: 440px; padding: clamp(2rem,5vw,4rem); display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 30px; background: radial-gradient(circle at 50% 0,rgba(124,92,255,.17),transparent 45%),rgba(26,20,62,.88); box-shadow: var(--shadow); }
.question-kicker { color: var(--muted); font-weight: 800; }.equation { display: flex; align-items: center; gap: clamp(.6rem,3vw,1.4rem); margin: 1rem 0 2rem; font-size: clamp(3.3rem,10vw,6.5rem); line-height: 1; font-weight: 950; letter-spacing: -.05em; }.equation i { font-style: normal; color: #74708d; font-weight: 500; }.equation .mystery { display: grid; place-items: center; width: 1em; height: 1em; border-radius: 18px; color: var(--yellow); background: rgba(255,209,102,.1); border: 2px dashed rgba(255,209,102,.35); }
.answer-form { width: min(430px,100%); text-align: center; }.answer-form > label { display: block; color: var(--muted); font-size: .75rem; margin-bottom: .5rem; }.answer-form > div { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }.answer-form input { min-width: 0; height: 54px; text-align: center; border: 2px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(5,3,19,.5); color: white; font-size: 1.5rem; font-weight: 900; }.answer-form small { display: block; color: #76728e; margin-top: .45rem; }
.feedback { width: 100%; text-align: center; }.feedback > span { display: block; font-size: 4.5rem; }.feedback strong { display: block; font-size: 1.8rem; }.feedback p { color: var(--muted); }.feedback.correct strong { color: var(--green); }.feedback.wrong strong { color: #ffaaa9; }
.question-card.show-feedback .equation, .question-card.show-feedback .answer-form, .question-card.show-feedback .question-kicker { display: none; }
.mission-complete-icon { position: relative; font-size: 6rem; filter: drop-shadow(0 16px 25px rgba(0,0,0,.35)); }.mission-complete-icon span { position: absolute; font-size: 2rem; right: -1rem; top: 0; }
.summary-stats { width: min(720px,100%); display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; margin: 1rem 0 1.5rem; }.summary-stats div { padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.05); }.summary-stats small { display: block; color: var(--muted); font-size: .58rem; font-weight: 900; }.summary-stats strong { font-size: 1.2rem; color: var(--yellow); }.summary-actions { display: flex; gap: .8rem; }
.badge-area { margin: .5rem 0 1.5rem; }.badge-area > span { color: var(--cyan); font-size: .65rem; font-weight: 900; letter-spacing: .15em; }.badge-area div { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .5rem; }.badge-area div span { padding: .5rem .8rem; border-radius: 12px; background: rgba(255,209,102,.12); border: 1px solid rgba(255,209,102,.25); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 20; }.confetti i { position: absolute; top: -20px; width: 10px; height: 18px; animation: fall 2.3s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
.shake { animation: shake .34s; } @keyframes shake { 25%{transform:translateX(-7px)}50%{transform:translateX(7px)}75%{transform:translateX(-4px)} }

/* Arcade mission */
.launch-fighter { position: relative; width: 150px; height: 210px; margin-bottom: 1.2rem; filter: drop-shadow(0 22px 32px rgba(0,0,0,.5)); animation: fighterHover 2.8s ease-in-out infinite; }
.launch-fighter svg { position: relative; z-index: 2; width: 100%; height: 100%; }
.fighter-wing { fill: #5140b6; stroke: #968bff; stroke-width: 2; }
.fighter-body { fill: url(#none); fill: #e9ecff; stroke: white; stroke-width: 2; }
.fighter-glass { fill: #32d6e8; filter: drop-shadow(0 0 8px rgba(50,214,232,.7)); }
.fighter-detail { fill: #ff6fae; }
.launch-thruster { position: absolute; z-index: 1; left: 50%; bottom: -52px; width: 34px; height: 92px; border-radius: 50%; transform: translateX(-50%); background: linear-gradient(to bottom,#fff 0,#32d6e8 16%,#7c5cff 48%,transparent 90%); filter: blur(5px); animation: launchFlame .18s alternate infinite; }
@keyframes fighterHover { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes launchFlame { to { height: 108px; width: 26px; opacity: .75; } }

.battlefield { position: relative; min-height: 650px; margin-top: 1rem; overflow: hidden; border: 1px solid rgba(117,104,255,.35); border-radius: 28px; background: radial-gradient(circle at 72% 18%,rgba(124,92,255,.3),transparent 27%), radial-gradient(circle at 20% 65%,rgba(50,214,232,.11),transparent 35%), linear-gradient(180deg,#08051f 0%,#100a34 65%,#08051f 100%); box-shadow: inset 0 0 80px rgba(0,0,0,.55),0 24px 60px rgba(0,0,0,.3); isolation: isolate; }
.battlefield::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.2; background-image: linear-gradient(rgba(124,92,255,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(124,92,255,.16) 1px,transparent 1px); background-size:70px 70px; transform:perspective(350px) rotateX(60deg) scale(1.3) translateY(32%); transform-origin:bottom; mask-image:linear-gradient(to top,black,transparent 65%); }
.battle-stars { position:absolute; inset:0; z-index:-1; }
.battle-stars i { position:absolute; width:3px; height:3px; border-radius:50%; background:white; box-shadow:0 0 7px white; animation:starBlink 1.8s ease-in-out infinite; }
.battle-stars i:nth-child(1){left:8%;top:15%}.battle-stars i:nth-child(2){left:22%;top:38%;animation-delay:.4s}.battle-stars i:nth-child(3){left:39%;top:11%;animation-delay:.8s}.battle-stars i:nth-child(4){left:61%;top:35%;animation-delay:1.2s}.battle-stars i:nth-child(5){left:82%;top:12%;animation-delay:.2s}.battle-stars i:nth-child(6){left:92%;top:53%;animation-delay:.9s}.battle-stars i:nth-child(7){left:47%;top:58%;animation-delay:.6s}.battle-stars i:nth-child(8){left:13%;top:70%;animation-delay:1.4s}
@keyframes starBlink { 50% { opacity:.25; transform:scale(.55); } }
.battle-nebula { position:absolute; z-index:-1; width:380px; height:190px; right:-80px; top:170px; border-radius:50%; background:rgba(255,111,174,.1); filter:blur(48px); transform:rotate(-18deg); }

.equation-panel { position:absolute; z-index:8; top:18px; left:50%; display:flex; align-items:center; gap:1rem; padding:.65rem .85rem .65rem 1rem; border:1px solid rgba(50,214,232,.3); border-radius:14px; transform:translateX(-50%); background:rgba(7,4,28,.82); box-shadow:0 9px 25px rgba(0,0,0,.35); backdrop-filter:blur(10px); white-space:nowrap; }
.equation-panel > span { color:var(--cyan); font-size:.55rem; font-weight:900; letter-spacing:.14em; }
.battle-equation { display:flex; align-items:center; gap:.4rem; font-size:1.75rem; font-weight:950; }
.battle-equation i { color:#77718f; font-style:normal; font-weight:500; }.battle-equation em { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgba(255,209,102,.5); border-radius:9px; color:var(--yellow); font-style:normal; }

.target-field { position:absolute; z-index:4; top:116px; left:3%; right:3%; display:grid; grid-template-columns:repeat(3,1fr); align-items:start; }
.answer-target { position:relative; justify-self:center; width:clamp(105px,14vw,145px); aspect-ratio:1; border:0; border-radius:46% 54% 58% 42% / 43% 43% 57% 57%; color:white; cursor:pointer; background:radial-gradient(circle at 30% 25%,#807899 0 7%,#443c63 8% 22%,#282241 55%,#17132d 100%); box-shadow:inset -16px -13px 22px rgba(0,0,0,.44),inset 11px 8px 16px rgba(255,255,255,.09),0 17px 30px rgba(0,0,0,.4); animation:asteroidDrift 3.2s ease-in-out infinite; transition:filter .2s,transform .2s,opacity .3s; }
.answer-target:nth-child(2){animation-delay:-1.3s;transform:translateY(25px)}.answer-target:nth-child(3){animation-delay:-2.2s}
.answer-target > i,.answer-target::after { content:""; position:absolute; border-radius:50%; background:rgba(8,5,28,.36); box-shadow:inset 3px 3px 5px rgba(0,0,0,.25); }
.answer-target > i { width:22%; height:18%; left:18%; top:19%; }.answer-target::after { width:15%; height:13%; right:17%; bottom:21%; }
.answer-target b { position:relative; z-index:3; display:block; font-size:clamp(2rem,5vw,3.2rem); line-height:1; text-shadow:0 4px 10px rgba(0,0,0,.5); }
.answer-target small { position:absolute; z-index:3; left:50%; bottom:21%; transform:translateX(-50%); color:#aaa4c2; font-size:.47rem; font-weight:900; letter-spacing:.16em; }
.target-lock { position:absolute; z-index:2; inset:-12px; border:2px solid transparent; border-radius:50%; transition:border-color .2s,transform .2s; }
.target-lock::before,.target-lock::after { content:""; position:absolute; inset:16%; border-top:2px solid transparent; border-bottom:2px solid transparent; }
.answer-target.target-locked .target-lock { border-color:var(--cyan); box-shadow:0 0 19px rgba(50,214,232,.32),inset 0 0 19px rgba(50,214,232,.12); animation:targetLock 4s linear infinite; }
.answer-target.target-locked { filter:brightness(1.18); }
.answer-target:focus-visible { outline:3px solid var(--yellow); outline-offset:13px; }
.answer-target.target-fired { filter:brightness(1.6); }
.answer-target.target-destroyed { animation:targetExplode .55s ease-out forwards; background:radial-gradient(circle,#fff 0 5%,var(--yellow) 12%,var(--pink) 35%,transparent 72%); box-shadow:0 0 80px var(--pink); }
.answer-target.target-missed { filter:saturate(.25); }
.answer-target.target-correct:not(.target-destroyed) { box-shadow:0 0 0 4px var(--green),0 0 42px rgba(85,230,165,.7); }
@keyframes asteroidDrift { 50% { translate:0 -11px; rotate:4deg; } }
@keyframes targetLock { to { transform:rotate(360deg); } }
@keyframes targetExplode { 55% { transform:scale(1.35); opacity:1 } to { transform:scale(.1); opacity:0 } }

.player-ship { position:absolute; z-index:6; bottom:82px; left:50%; width:88px; height:120px; transform:translateX(-50%); filter:drop-shadow(0 12px 13px rgba(0,0,0,.5)); transition:left .28s cubic-bezier(.22,.8,.3,1),transform .2s; }
.player-ship[data-lane="0"]{left:17.5%}.player-ship[data-lane="1"]{left:50%}.player-ship[data-lane="2"]{left:82.5%}
.player-ship svg { position:relative; z-index:3; width:100%; height:100%; }
.ship-wing { fill:#4a3ea4; stroke:#8b7ffc; stroke-width:2; }.ship-body { fill:#e6eaff; stroke:white; stroke-width:2; }.ship-glass { fill:var(--cyan); filter:drop-shadow(0 0 6px var(--cyan)); }.ship-detail { fill:var(--pink); }
.ship-flame { position:absolute; z-index:1; left:50%; bottom:-28px; width:23px; height:58px; border-radius:50%; transform:translateX(-50%); background:linear-gradient(to bottom,#fff 0,var(--cyan) 15%,var(--purple) 53%,transparent 92%); filter:blur(3px); animation:shipFlame .15s alternate infinite; }
.ship-shield { position:absolute; z-index:2; inset:4px -13px -3px; border:1px solid rgba(50,214,232,.25); border-radius:50%; box-shadow:inset 0 0 18px rgba(50,214,232,.1),0 0 14px rgba(50,214,232,.08); }
.ship-recoil { transform:translateX(-50%) translateY(9px); }
@keyframes shipFlame { to { height:68px; width:17px; opacity:.75 } }

.laser-beam { position:absolute; z-index:5; left:50%; bottom:190px; width:5px; height:295px; transform:translateX(-50%) scaleY(0); transform-origin:bottom; opacity:0; transition:left .28s cubic-bezier(.22,.8,.3,1); pointer-events:none; }
.laser-beam[data-lane="0"]{left:17.5%}.laser-beam[data-lane="1"]{left:50%}.laser-beam[data-lane="2"]{left:82.5%}
.laser-beam i { display:block; width:100%; height:100%; border-radius:8px; background:#fff; box-shadow:0 0 5px white,0 0 12px var(--cyan),0 0 25px var(--cyan); }
.laser-beam.firing { animation:laserShot .32s ease-out; }
@keyframes laserShot { 0%{transform:translateX(-50%) scaleY(0);opacity:1} 45%{transform:translateX(-50%) scaleY(1);opacity:1} 100%{transform:translateX(-50%) translateY(-80px) scaleY(.35);opacity:0} }

.battle-feedback { position:absolute; z-index:12; left:50%; bottom:42%; display:flex; align-items:center; gap:.8rem; min-width:280px; padding:.8rem 1.1rem; border:1px solid rgba(255,255,255,.16); border-radius:16px; transform:translateX(-50%); background:rgba(7,4,28,.9); box-shadow:0 13px 40px rgba(0,0,0,.5); backdrop-filter:blur(12px); animation:feedbackIn .3s ease-out; }
.battle-feedback > span { font-size:2rem; }.battle-feedback strong { display:block; }.battle-feedback p { margin:.15rem 0 0; color:var(--muted); font-size:.7rem; }.battle-feedback.correct strong{color:var(--green)}.battle-feedback.wrong strong{color:#ffaaa9}
@keyframes feedbackIn { from { opacity:0; transform:translate(-50%,12px) scale(.9) } }
.battlefield.battle-correct { box-shadow:inset 0 0 90px rgba(85,230,165,.16),0 24px 60px rgba(0,0,0,.3); }.battlefield.battle-wrong { box-shadow:inset 0 0 90px rgba(255,107,107,.14),0 24px 60px rgba(0,0,0,.3); }

.touch-controls { position:absolute; z-index:10; left:50%; bottom:13px; display:flex; align-items:center; gap:1.2rem; transform:translateX(-50%); }
.touch-controls button { display:grid; place-items:center; width:52px; height:45px; border:1px solid rgba(255,255,255,.18); border-radius:13px; color:white; background:rgba(255,255,255,.07); font-size:1.25rem; cursor:pointer; box-shadow:0 7px 15px rgba(0,0,0,.18); }
.touch-controls button:active { transform:translateY(2px); background:rgba(255,255,255,.14); }
.touch-controls .fire-control { width:82px; height:52px; display:flex; flex-direction:column; gap:2px; color:#160b31; background:linear-gradient(180deg,var(--yellow),#ff9e42); border-color:#fff0b5; box-shadow:0 0 20px rgba(255,209,102,.2); }
.fire-control span { font-size:.9rem; line-height:1 }.fire-control small { font-size:.48rem; font-weight:950; letter-spacing:.1em; }
.game-instruction { position:absolute; z-index:8; left:18px; bottom:18px; margin:0; color:#6f6a89; font-size:.57rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.game-instruction span{color:var(--cyan);margin:0 .35rem}.csrf-token{display:none}

/* Parent */
.parent-page { width: min(1100px,calc(100% - 36px)); margin: 3rem auto 6rem; }.parent-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }.parent-header h1 { font-size: clamp(2rem,4vw,3.4rem); letter-spacing: -.05em; margin: .3rem 0; }.parent-header p { color: var(--muted); }
.profile-tabs { display: flex; align-items: center; gap: .4rem; padding: .5rem; margin: 2rem 0; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }.profile-tabs a { padding: .55rem .9rem; border-radius: 9px; color: var(--muted); }.profile-tabs a.active { background: var(--purple); color: white; font-weight: 800; }.profile-tabs form { margin: 0 .7rem 0 0; }.profile-tabs button { border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: .75rem; }
.parent-overview { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin: 1.5rem 0; }.parent-overview div { padding: 1.1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.04); }.parent-overview small { display: block; color: var(--muted); font-size: .65rem; }.parent-overview strong { font-size: 1.3rem; }
.parent-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }.report-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(27,21,65,.75); }.card-heading h2 { margin: 0; }.card-heading p { margin: .2rem 0 1.5rem; color: var(--muted); font-size: .82rem; }
.mastery-row { display: grid; grid-template-columns: 36px 1fr 42px 60px; gap: .7rem; align-items: center; margin: .8rem 0; }.mastery-track { height: 9px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }.mastery-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--purple),var(--cyan)); }.mastery-row span { text-align: right; font-size: .8rem; }.mastery-row small { color: var(--muted); font-size: .67rem; }
.session-list > div { display: grid; grid-template-columns: 1fr auto; padding: .8rem 0; border-bottom: 1px solid var(--line); }.session-list small { grid-column: 1/-1; color: var(--muted); }.empty-state { color: var(--muted); }.badge-title { margin-top: 1.5rem; }.earned-badges { display: flex; flex-wrap: wrap; gap: .4rem; }.earned-badges span { padding: .4rem .6rem; border-radius: 8px; background: rgba(255,255,255,.05); font-size: .75rem; }
.responsible-tip { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding: 1rem; border-radius: 14px; background: rgba(50,214,232,.08); border: 1px solid rgba(50,214,232,.18); }.responsible-tip span { font-size: 1.5rem; }.responsible-tip p { margin: 0; color: var(--muted); font-size: .85rem; }.responsible-tip strong { color: white; }
.privacy-page { width: min(760px,calc(100% - 36px)); margin: 5rem auto 7rem; }.privacy-page h1 { margin: .5rem 0 1rem; font-size: clamp(2.7rem,6vw,4.7rem); line-height: 1; letter-spacing: -.06em; }.privacy-lead { color: var(--muted); font-size: 1.1rem; }.privacy-page section { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }.privacy-page section h2 { margin: 0 0 .25rem; font-size: 1.15rem; }.privacy-page section p { margin: 0; color: var(--muted); }.privacy-date { margin-top: 2rem; color: #7e7b97; font-size: .8rem; }
.error-page { min-height: 65vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.error-page > span { font-size: 5rem; }.error-page h1 { font-size: 3rem; margin: 1rem 0 0; }.error-page p { color: var(--muted); }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 5rem; }.hero-copy > p { margin-inline: auto; }.hero-actions,.trust-row { justify-content: center; }.hero-visual { min-height: 480px; }
  .feature-grid, .parent-promise, .auth-shell, .parent-grid { grid-template-columns: 1fr; }.parent-promise { gap: 2rem; padding: 2rem; }.auth-art { min-height: 340px; padding: 2.5rem; }.register-shell .auth-art { min-height: 400px; }
  .dashboard-hero { align-items: stretch; flex-direction: column; }.pilot-card { min-width: 0; }
  .parent-overview { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
  .site-header { min-height: 66px; }.site-header nav a:not(.button) { display: none; }.site-header nav { gap: .6rem; }.brand { font-size: 1rem; }
  .hero { min-height: auto; padding-top: 4rem; }.hero h1 { font-size: 3rem; }.hero-actions { flex-direction: column; }.hero-visual { transform: scale(.74); margin: -60px -80px; }.feature-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: .5rem; }.parent-promise { margin-bottom: 4rem; }
  .planet-stop,.planet-stop:nth-child(even) { grid-template-columns: 90px 1fr; }.map-line { left: 62px; }.planet-button,.planet-stop:nth-child(even) .planet-button { grid-column: 1; width: 92px; height: 92px; }.planet-ring { width: 112px; }.planet-number,.planet-stop:nth-child(even) .planet-number { display: none; }.planet-label,.planet-stop:nth-child(even) .planet-label { grid-column: 2; grid-row: 1; text-align: left; align-items: flex-start; padding: 0 0 0 1.5rem; }.mission-map { gap: 2rem; }.dashboard-tip { align-items: flex-start; }.dashboard-tip a { display: none; }
  .game-shell { padding: .8rem; }.game-topbar { grid-template-columns: auto 1fr auto; }.mission-name strong { font-size: .72rem; }.mission-name small { display: none; }.hud { grid-template-columns: 1fr 75px 75px; gap: .4rem; }.hud-stat { padding: .45rem .2rem; }.question-zone { min-height: 520px; }.orbit-bot { display: none; }.question-card { min-height: 400px; border-radius: 22px; padding: 1.5rem; }.equation { font-size: 3.6rem; }.answer-form > div { grid-template-columns: 1fr; }.summary-stats { grid-template-columns: repeat(2,1fr); }.summary-actions { flex-direction: column; width: 100%; }
  .mission-screen { width:100%; }.battlefield { min-height:570px; border-radius:20px; }.equation-panel { top:12px; gap:.55rem; padding:.5rem .65rem; }.equation-panel > span { display:none; }.battle-equation { font-size:1.45rem; }.target-field { top:100px; left:0; right:0; }.answer-target { width:88px; }.answer-target:nth-child(2){transform:translateY(18px)}.answer-target b{font-size:2rem}.answer-target small{font-size:.4rem}.target-lock{inset:-8px}.player-ship{width:68px;height:96px;bottom:75px}.laser-beam{bottom:163px;height:260px}.touch-controls{bottom:11px;gap:.75rem}.touch-controls button{width:46px;height:42px}.touch-controls .fire-control{width:72px;height:46px}.game-instruction{display:none}.battle-feedback{bottom:38%;min-width:min(285px,88%);padding:.65rem .8rem}.battle-feedback>span{font-size:1.6rem}.battle-feedback p{font-size:.65rem}
  .parent-header { align-items: flex-start; flex-direction: column; }.profile-tabs { overflow-x: auto; }.parent-overview { gap: .5rem; }.mastery-row { grid-template-columns: 30px 1fr 40px; }.mastery-row small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .answer-target:nth-child(2) { transform:translateY(18px); }
}
