@font-face{font-family:Nunito;src:url("../assets/Nunito-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Nunito;src:url("../assets/Nunito-ExtraBold.ttf") format("truetype");font-weight:700 900;font-display:swap}
:root{--header-height:78px;--navy:#050a29;--ink:#202746;--muted:#68728c;--white:#fff;--line:#dfe3ee;--violet:#7440f5;--soft:#f1ebff;--hot:linear-gradient(100deg,#ff8712,#ff4a40 50%,#ef4fc1);font-family:Nunito,Arial,sans-serif;color:var(--ink);background:#000011}
*{box-sizing:border-box}html{min-height:100%}body{min-width:280px;min-height:100vh;margin:0;background:radial-gradient(circle at 88% 10%,rgba(122,64,255,.16),transparent 28rem),radial-gradient(circle at 8% 92%,rgba(240,46,148,.1),transparent 25rem),#000011}button,textarea,input{font:inherit}button{-webkit-tap-highlight-color:transparent}
.site-header{position:sticky;top:0;z-index:20;height:var(--header-height);border-bottom:1px solid rgba(255,255,255,.08);background:#050a29}.header-inner{display:flex;width:min(1488px,calc(100vw - 80px));height:100%;align-items:center;margin:0 auto}.site-brand{display:flex;align-items:center}.site-brand img{display:block;width:300px;max-width:75vw;height:auto;max-height:58px}
.app-shell{display:grid;width:min(1120px,calc(100% - 32px));min-height:calc(100vh - var(--header-height));align-items:center;margin:0 auto;padding:24px 0}.panel{overflow:hidden;border:1px solid rgba(255,255,255,.82);border-radius:28px;background:#f7f8fc;box-shadow:0 24px 70px rgba(0,0,0,.42)}
.welcome{display:grid;grid-template-columns:1.04fr .96fr;min-height:620px}.welcome-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(34px,6vw,76px)}.eyebrow,.section-pill{width:fit-content;padding:8px 13px;border:1px solid #ddd0ff;border-radius:999px;background:var(--soft);color:#6030d6;font-size:.78rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.welcome h1{max-width:12ch;margin:18px 0 10px;color:#171d3f;font-size:clamp(2.5rem,5.4vw,4.2rem);font-weight:900;line-height:1.03;letter-spacing:-.035em}.lead{max-width:35rem;margin:0 0 12px;font-size:clamp(1.08rem,2vw,1.35rem);font-weight:800;line-height:1.35}.description{max-width:34rem;margin:0;color:var(--muted);font-size:1.02rem;line-height:1.55}.welcome-art{position:relative;min-height:560px;overflow:hidden;background:#fff}.hero-image{width:100%;height:100%;object-fit:cover}.art-note{position:absolute;right:24px;bottom:24px;left:24px;padding:14px 16px;border:1px solid rgba(255,255,255,.55);border-radius:16px;background:rgba(5,10,41,.72);color:#fff;font-weight:800;line-height:1.3;backdrop-filter:blur(12px)}
.primary,.secondary{display:inline-flex;min-height:52px;align-items:center;justify-content:center;padding:12px 22px;border-radius:16px;font-weight:900;cursor:pointer}.primary{border:0;color:#fff;background:var(--hot);box-shadow:0 6px 18px rgba(255,99,51,.25)}.secondary{border:1px solid var(--line);color:var(--ink);background:#fff}.primary:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.welcome .primary{width:fit-content;margin-top:20px}.quest-link{text-decoration:none}
.quiz-panel{padding:clamp(22px,4vw,44px)}.quiz-top{display:grid;grid-template-columns:1fr auto;gap:14px 22px;align-items:center;margin-bottom:24px}.progress-labels{display:flex;justify-content:space-between;margin-bottom:7px;color:var(--muted);font-size:.82rem;font-weight:800}.progress-track{height:9px;overflow:hidden;border-radius:99px;background:#e6e3ee}.progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7440f5,#3b8cff);transition:width .25s}.question-title{margin:0 0 7px;color:#171d3f;font-size:clamp(1.55rem,3.4vw,2.55rem);font-weight:900;line-height:1.15}.question-help{margin:0 0 20px;color:var(--muted);line-height:1.45}
.answers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.answer-card{display:flex;min-height:70px;align-items:center;gap:12px;padding:14px 16px;border:2px solid var(--line);border-radius:17px;color:var(--ink);background:#fff;text-align:left;font-weight:800;cursor:pointer}.answer-card:hover{border-color:#b9aaff;background:#faf8ff}.answer-card.selected{border-color:#7440f5;background:#f1ebff;box-shadow:inset 0 0 0 1px #7440f5}.answer-card.correct{border-color:#34b77a;background:#eaf9f2}.answer-card.wrong{border-color:#ef6868;background:#fff0f0}.answer-marker{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:11px;color:#6030d6;background:#eeeaff;font-weight:900}.selected .answer-marker{color:#fff;background:#7440f5}.visual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-option{display:block;overflow:hidden;padding:0}.visual-option img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.visual-option span{display:block;padding:13px 14px}.text-answer{width:100%;min-height:125px;padding:16px;border:2px solid var(--line);border-radius:17px;outline:0;resize:vertical}.text-answer:focus{border-color:#7440f5}.feedback{margin-top:16px;padding:14px 17px;border-radius:16px;font-weight:800}.feedback.good{color:#176b48;background:#eaf9f2}.feedback.try{color:#9a4a20;background:#fff2e7}.quiz-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.milestone,.result{padding:clamp(30px,6vw,70px);text-align:center}.celebration{font-size:4.4rem}.milestone h1,.result h1{max-width:850px;margin:15px auto 12px;color:#171d3f;font-size:clamp(2.1rem,5vw,3.7rem);line-height:1.05}.milestone p,.result-intro{max-width:720px;margin:0 auto 24px;color:var(--muted);font-size:1.06rem;line-height:1.55}.score-badge{display:inline-flex;align-items:baseline;gap:7px;margin:12px auto 22px;padding:15px 22px;border-radius:20px;background:#f1ebff;color:#6030d6}.score-badge strong{font-size:2.5rem}.score-badge span{font-weight:900}.milestone-actions,.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:11px}
.result{text-align:left}.result h1{margin-inline:0}.result-intro{margin-inline:0}.prompt-label{display:block;margin:16px 0 8px;font-weight:900}.prompt-box{width:100%;height:310px;padding:18px;border:2px solid #dcd5f1;border-radius:18px;background:#fff;color:#252a47;line-height:1.45;resize:vertical}.result-actions{justify-content:flex-start;margin-top:16px}.save-status{display:flex;align-items:center;color:#666f89;font-weight:800}.toast{position:fixed;bottom:24px;left:50%;z-index:40;padding:13px 18px;border-radius:14px;background:var(--hot);color:#fff;font-weight:900;box-shadow:0 16px 35px rgba(0,0,0,.25);transform:translate(-50%,120px);transition:transform .25s}.toast.show{transform:translate(-50%,0)}
:focus-visible{outline:4px solid rgba(255,204,72,.95);outline-offset:3px}
@media(max-width:900px) and (orientation:portrait){.app-shell{align-items:start}.visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--header-height:70px}.header-inner{width:calc(100vw - 28px)}.site-brand img{width:min(260px,78vw)}.app-shell{width:min(100% - 20px,680px);padding:12px 0}.panel{border-radius:24px}.welcome{grid-template-columns:1fr}.welcome-art{min-height:330px;order:-1}.welcome-copy{padding:30px 23px}.welcome h1{font-size:clamp(2.35rem,12vw,4rem)}.answers-grid,.visual-grid{grid-template-columns:1fr}.quiz-panel{padding:22px 15px}.quiz-top{grid-template-columns:1fr}.quiz-actions{position:sticky;bottom:8px;z-index:5;margin-inline:-5px;padding:10px;border:1px solid rgba(220,220,235,.8);border-radius:18px;background:rgba(255,255,255,.93);backdrop-filter:blur(12px)}.quiz-actions button{flex:1}.milestone,.result{padding:28px 18px}.result-actions{flex-direction:column}.prompt-box{height:44svh;min-height:250px}.save-status{justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
