@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --ink: #242044; --muted: #77748f; --purple: #654bd8; --pink: #ed68a5;
  --line: #eae7f6; --paper: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh; font-family: 'Nunito', 'Segoe UI', sans-serif; color: var(--ink);
  background: radial-gradient(circle at 8% 12%, #e8e2ff 0, transparent 27%),
              radial-gradient(circle at 92% 25%, #ffe4ef 0, transparent 25%),
              linear-gradient(135deg, #f7f6ff, #f1faff 55%, #fff6f1);
}
.topbar { height: 76px; padding: 0 max(5%, calc((100% - 1120px)/2)); display:flex; align-items:center; justify-content:space-between; }
.brand { text-decoration:none; color:var(--ink); font-size:21px; font-weight:900; }
.brand-mark { display:inline-grid; place-items:center; width:32px; height:32px; color:white; border-radius:10px; background:linear-gradient(135deg,#7054e6,#ed69a5); margin-right:8px; }
.tagline,.eyebrow { color:#8b83b5; font-size:10px; letter-spacing:2px; font-weight:900; }
.shell { max-width:1120px; width:90%; margin:25px auto 55px; }
.screen { display:none; animation:fade .35s ease; }
.screen.active { display:block; }
@keyframes fade { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.hero { background:rgba(255,255,255,.88); border:1px solid white; border-radius:30px; padding:55px 6%; min-height:390px; display:flex; align-items:center; justify-content:space-between; gap:25px; box-shadow:0 20px 60px #5e50a015; overflow:hidden; }
.hero-copy { max-width:520px; position:relative; z-index:2; }
h1 { font-size:clamp(36px,5vw,58px); line-height:1.08; letter-spacing:-2px; margin:13px 0 16px; }
h1 span { background:linear-gradient(90deg,#674bdd,#ec68a5); color:transparent; background-clip:text; }
.hero-copy p { color:var(--muted); font-size:16px; line-height:1.7; max-width:440px; margin-bottom:24px; }
label { display:block; font-weight:800; font-size:13px; margin-bottom:8px; }
select { width:min(100%,330px); padding:13px 15px; border:1px solid #ddd7f5; border-radius:12px; color:var(--ink); background:#fbfaff; font:700 14px inherit; outline:none; }
button { border:0; cursor:pointer; font:800 15px 'Nunito',sans-serif; transition:transform .18s,filter .18s; }
button:hover { transform:translateY(-2px); filter:brightness(1.04); }
button:focus-visible,select:focus-visible { outline:3px solid #a99af2; outline-offset:3px; }
.primary-btn { display:inline-flex; align-items:center; justify-content:center; gap:20px; color:white; padding:15px 23px; border-radius:13px; background:linear-gradient(100deg,#654bd8,#a35bdc 55%,#ed68a5); box-shadow:0 9px 20px #8c63d733; }
.hero .primary-btn { display:flex; margin-top:17px; width:min(100%,330px); }
.tiny-note { color:#aaa5bd; font-size:11px; margin-top:14px; }
.hero-art { position:relative; width:360px; height:290px; flex:none; display:grid; place-items:center; }
.planet { width:175px; height:175px; border-radius:50%; display:grid; place-items:center; font-size:112px; background:linear-gradient(145deg,#f5e9ff,#d9e7ff); box-shadow:inset -18px -20px 30px #9e8ce533,0 20px 50px #7761d52b; z-index:1; }
.orbit { position:absolute; width:320px; height:130px; border:2px solid #b8a9ef; border-radius:50%; transform:rotate(-25deg); }
.orbit-two { width:330px; height:190px; transform:rotate(35deg); border-color:#f4b2d0; }
.float { position:absolute; z-index:2; font-size:38px; background:white; border-radius:18px; padding:10px; box-shadow:0 8px 24px #40326b1c; }
.float-one { top:18px; left:30px; }.float-two { bottom:20px; right:15px; }.float-three { top:35px; right:28px; }.sparkle { position:absolute; bottom:22px; left:45px; color:#ed9b42; font-size:30px; }
.topic-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:13px; margin-top:20px; }
.topic-card { padding:18px 10px; background:white; border:1px solid #fff; border-radius:17px; text-align:center; box-shadow:0 8px 25px #534b8010; }
.topic-card span { display:block; font-size:27px; margin-bottom:7px; }.topic-card b,.topic-card small { display:block; }.topic-card b { font-size:13px; }.topic-card small { color:#9994ad; font-size:10px; margin-top:3px; }
.violet{background:#f0edff}.blue{background:#e9f6ff}.orange{background:#fff1e4}.pink{background:#fff0f6}.green{background:#e9fff5}.yellow{background:#fff9e3}
#quiz,#result { background:#fff; border-radius:27px; padding:35px; box-shadow:0 20px 60px #5e50a015; }
.quiz-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:25px; }.quiz-heading h2 { font-size:25px; margin-top:5px; }
.score-pill { padding:10px 15px; border-radius:30px; background:#fff5d9; color:#a97816; font-weight:900; white-space:nowrap; }
.progress-meta { display:flex; justify-content:space-between; color:#9b96ad; font-size:10px; font-weight:900; letter-spacing:1px; margin-bottom:8px; }
.progress-track { height:9px; background:#eeeaf8; border-radius:20px; overflow:hidden; margin-bottom:25px; }.progress-track div { height:100%; width:0; background:linear-gradient(90deg,#6550d9,#ed68a5); border-radius:20px; transition:width .3s; }
.question-panel { display:grid; grid-template-columns:.9fr 1.1fr; gap:30px; align-items:center; padding:20px; background:#faf9ff; border:1px solid #efecfa; border-radius:22px; }
.question-visual { position:relative; }.question-visual img { width:100%; height:285px; object-fit:cover; border-radius:17px; background:#e9e5f7; display:block; }
.category-pill { position:absolute; left:12px; top:12px; background:#fff; color:#6c55d0; padding:8px 12px; border-radius:30px; font-size:10px; letter-spacing:1px; font-weight:900; box-shadow:0 4px 15px #00000012; }
.question-content h3 { font-size:23px; line-height:1.35; margin-bottom:20px; }
.options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.option-btn { text-align:left; background:white; color:#45415f; border:1.5px solid #e4e0f2; border-radius:12px; padding:13px; min-height:54px; font-size:13px; }
.option-btn:disabled { cursor:default; transform:none; }.option-btn.correct { background:#e3fff2; border-color:#35bd8c; color:#087e55; }.option-btn.wrong { background:#fff0f1; border-color:#ef8090; color:#b23d50; }
.feedback { min-height:27px; margin:15px 0 7px; font-size:14px; font-weight:900; }.next-btn { width:100%; }.encouragement { text-align:center; color:#a19bb3; font-size:12px; margin-top:18px; }
.result-hero { text-align:center; padding:28px 15px 35px; background:linear-gradient(120deg,#f1edff,#fff0f6); border-radius:22px; }.trophy { font-size:58px; margin-bottom:8px; }.result-hero h1 { font-size:38px; letter-spacing:-1px; margin:10px 0; }.result-hero p { color:var(--muted); }.result-score { margin:20px auto 0; display:flex; align-items:center; justify-content:center; gap:15px; }.result-score strong { font-size:40px; color:#654bd8; }.result-score span { color:#77748f; font-weight:800; }
.section-heading { margin:32px 0 5px; font-size:23px; }.section-heading span { color:#e5a33c; }.section-subtitle { color:var(--muted); font-size:13px; margin-bottom:18px; }
.knowledge-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.knowledge-card { background:#faf9ff; border:1px solid #eeeaf8; border-radius:15px; padding:16px; }.knowledge-card h3 { font-size:12px; color:#8069d7; letter-spacing:.7px; margin-bottom:8px; }.knowledge-card .answer { color:#188c69; font-size:14px; font-weight:900; margin-bottom:6px; }.knowledge-card p { color:#77748f; font-size:12px; line-height:1.6; }
.result-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:25px; }.secondary-btn { padding:15px 23px; border-radius:13px; background:#efedfa; color:#6651c2; }
footer { text-align:center; color:#9b96ad; font-size:12px; padding:0 15px 25px; }footer span { color:#ed9b42; }
@media(max-width:850px){.topic-grid{grid-template-columns:repeat(3,1fr)}.hero-art{width:280px;transform:scale(.85)}.hero{padding:40px 5%}}
@media(max-width:650px){.topbar{height:65px}.tagline{display:none}.shell{width:93%;margin-top:12px}.hero{padding:32px 22px;display:block}.hero-art{height:190px;width:100%;transform:scale(.75);margin:5px auto -10px}.hero-copy{max-width:none}.topic-grid{grid-template-columns:repeat(2,1fr)}#quiz,#result{padding:20px 14px}.quiz-heading h2{font-size:20px}.question-panel{grid-template-columns:1fr;padding:12px;gap:18px}.question-visual img{height:210px}.question-content{padding:0 5px 8px}.question-content h3{font-size:20px}.knowledge-list{grid-template-columns:1fr}.result-score{flex-direction:column;gap:0}.result-hero h1{font-size:30px}}
