:root{--navy:#07152f;--panel:#101f42;--cyan:#4de3ff;--yellow:#ffc857;--green:#43e6a0;--red:#ff6685;--purple:#b08cff;--white:#f7fbff;--muted:#a9bfdf}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Nunito,system-ui,sans-serif;color:var(--white);background:#030817}body{min-height:100vh;background:linear-gradient(#03081755,#030817dd),url('assets/space_academy_bg.png') center/cover fixed}.stars{position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(#fff 1px,transparent 1px),radial-gradient(var(--cyan) 1px,transparent 1px);background-size:47px 47px,83px 83px;opacity:.2}.app{position:relative;z-index:1;width:min(1180px,calc(100% - 32px));min-height:100vh;margin:auto;padding:24px 0;display:grid;align-content:center}.brand{position:fixed;z-index:3;top:24px;left:42px;display:grid;gap:2px;letter-spacing:.08em}.brand b{font-size:1.05rem}.brand span{font-size:.68rem;color:var(--cyan);font-weight:800}.desktop-card{width:100%;text-align:center}.home-screen h1,.subject-screen h1,.result-screen h1{font:800 clamp(2.2rem,5vw,3.4rem)/1.05 'Baloo 2';margin:20px 0}.home-kicker{position:fixed;right:42px;top:31px;color:var(--muted);font-size:.75rem;font-weight:800}.home-copy,.screen-copy{color:#d8e8ff;font-size:1.05rem}.name-box{display:block;width:min(440px,100%);margin:42px auto 30px;padding:12px 24px;background:#091832;border:1px solid #36527f;border-radius:18px;text-align:left}.name-box span{display:block;color:var(--muted);font-size:.65rem;font-weight:900;letter-spacing:.12em}.name-box input{width:100%;margin-top:8px;border:0;outline:0;background:transparent;color:white;text-align:center;font:800 1.3rem Nunito}.mission-btn,.back-btn{border-radius:14px;border:1px solid #ffe095;padding:18px 42px;background:var(--yellow);color:#15213d;font:900 .9rem Nunito;cursor:pointer}.back-btn{padding:12px 22px;background:#172a53;color:white;border-color:#36527f}.mission-meta{margin:28px 0;color:var(--muted)}.features{display:flex;justify-content:center;gap:clamp(55px,14vw,210px);margin-top:65px}.features div{display:grid;gap:6px}.features b{font-size:1.15rem;color:var(--yellow)}.features span{font-size:.82rem}.subject-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin:52px 0}.subject-card{min-height:245px;padding:26px 15px;border:2px solid var(--accent);border-radius:22px;background:color-mix(in srgb,var(--accent) 20%,#101f42);display:flex;flex-direction:column;align-items:center}.subject-card i{width:84px;height:84px;border:2px solid var(--accent);border-radius:50%;display:grid;place-items:center;background:#101f42;color:var(--accent);font:900 1.6rem Nunito}.subject-card h3{font:800 1.3rem 'Baloo 2';margin:15px 0 0}.subject-card p{color:#d6e1f1;font-size:.72rem}.subject-card button{margin-top:auto;width:100%;border:0;border-radius:8px;padding:8px;background:var(--accent);color:#10203e;font-weight:900;cursor:pointer}.rules{display:grid;gap:14px}.rules b{color:var(--cyan);font-size:.75rem}.rules span{font-size:.9rem}.subject-screen>.back-btn{position:fixed;left:35px;bottom:25px}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.quiz-stage>h2{margin:0;color:var(--yellow);font-size:1.2rem}.quiz-score{font-size:.75rem;font-weight:900}.lifelines{display:flex;justify-content:center;gap:10px;margin:14px 0}.lifelines button{min-width:120px;padding:9px;border:1px solid var(--purple);border-radius:10px;background:#40266d;color:white;font-weight:900}.lifelines button:disabled{opacity:.35}.lockline{color:var(--yellow);font-size:.72rem;font-weight:900}.timer-wrap{height:7px;max-width:500px;margin:8px auto 14px;background:#ffffff18;border-radius:9px;overflow:hidden}.timer{height:100%;width:100%;background:var(--cyan);transition:width 1s linear}.timer.danger{background:var(--red)}.question-panel{padding:16px;border:2px solid;border-radius:20px;margin:10px 0}.question-panel h3{min-height:28px;font-size:1rem;margin:0 0 12px}.question-panel.english{background:#090b35;border-color:var(--yellow)}.question-panel.hindi{background:#071e31;border-color:var(--cyan)}.question-panel.hindi h3{color:var(--cyan)}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #8266d4;background:#111848;color:white;font:800 .85rem Nunito;text-align:left;cursor:pointer}.hindi .answer{background:#102b40;border-color:#3685a0}.answer:hover:not(:disabled){filter:brightness(1.22)}.answer.correct{background:#124d3d;border-color:var(--green)}.answer em{float:right;color:var(--yellow)}.hidden{visibility:hidden}.quiz-status{min-height:54px;color:var(--muted);font-size:.7rem;padding-top:10px}.quiz-status b{color:var(--green);font-size:.9rem}.quiz-status button{display:block;margin:9px auto 0;padding:9px 28px;border:0;border-radius:9px;background:var(--yellow);font-weight:900}.ladder{padding:20px 12px;border:2px solid var(--purple);border-radius:18px;background:#090b2c}.ladder h3{font-size:.78rem;color:var(--yellow)}.ladder div{display:flex;justify-content:space-between;margin:6px 0;padding:6px 10px;border-radius:8px;color:var(--muted);font-size:.72rem}.ladder .current{background:#7a4c12;color:white;border:1px solid var(--yellow)}.ladder .milestone{color:var(--yellow)}.lost-screen{display:grid;place-items:center;min-height:80vh}.lost-box{width:min(780px,100%);padding:50px;border:2px solid var(--red);border-radius:30px;background:#210b24}.lost-box small{color:var(--yellow);font-size:1.4rem;font-weight:900}.lost-box h1{color:var(--red);font:900 clamp(2.8rem,7vw,4.5rem) 'Baloo 2';margin:15px}.lost-box h2{font-size:2.4rem}.lost-box p{color:var(--cyan)}.result-head{color:var(--cyan);font-weight:900}.stars-earned{color:var(--yellow);font-size:2rem}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);max-width:780px;margin:35px auto;padding:30px;border:1px solid #36527f;border-radius:18px;background:#101f42}.result-stats div{display:grid}.result-stats b{font-size:2rem;color:var(--yellow)}.result-stats span{font-size:.65rem;color:var(--muted)}.badge{color:var(--yellow);font-weight:900}.actions{display:flex;justify-content:center;gap:14px}.sound,.quit{position:fixed;z-index:5;border:1px solid #4de3ff66;background:#091832dd;color:#fff;cursor:pointer}.sound{right:18px;bottom:18px;width:48px;height:48px;border-radius:50%;font-size:1.2rem}.quit{top:16px;right:18px;padding:11px 15px;border-color:#ff668588;border-radius:12px}.confetti{position:fixed;width:8px;height:14px;top:-20px;z-index:9;animation:fall 2.7s linear forwards}@keyframes fall{to{transform:translateY(110vh) rotate(800deg)}}
@media(max-width:900px){body{background-attachment:scroll}.app{align-content:start}.subject-grid{grid-template-columns:repeat(2,1fr)}.quiz-layout{grid-template-columns:1fr}.ladder{display:none}.brand,.home-kicker{position:static;margin-bottom:15px}.home-kicker{display:none}.features{gap:35px}.desktop-card{padding-top:20px}.subject-screen>.back-btn{position:static;margin-top:20px}.answer-grid{grid-template-columns:1fr}.question-panel{padding:12px}.lifelines button{min-width:0}.lost-box{padding:25px}.result-stats{padding:20px}.app{width:calc(100% - 20px);padding-bottom:80px}}
.grade-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;max-width:1050px;margin:42px auto}.grade-card{min-height:112px;padding:18px 16px;border:2px solid var(--cyan);border-radius:18px;background:#142b50;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 10px 24px #02081844}.grade-card.purple{border-color:var(--purple);background:#1c244f}.grade-card>b{font:800 1.22rem 'Baloo 2';color:var(--white);line-height:1.1}.grade-card button{width:100%;min-height:34px;padding:7px;border:0;border-radius:8px;background:var(--yellow);color:#15213d;font:900 .68rem Nunito;letter-spacing:.06em;cursor:pointer;transition:.18s transform,.18s filter}.grade-card.purple button{background:#d5b8ff}.grade-card button:hover{transform:translateY(-2px);filter:brightness(1.12)}.grade-card button:focus-visible{outline:3px solid white;outline-offset:3px}.grade-screen>.back-btn{margin-top:12px}@media(max-width:700px){.grade-grid{grid-template-columns:repeat(2,1fr);gap:12px}.grade-card{min-height:96px;padding:14px 10px;gap:10px}.subject-card{min-height:220px}.subject-grid{margin:30px 0}}
