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

:root {
  font-family: 'Nunito', 'Trebuchet MS', sans-serif;
  color: #28334a;
  background: #fff9ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #28334a;
  --muted: #758096;
  --paper: #fffdf8;
  --cream: #fff9ef;
  --purple: #6055dc;
  --purple-dark: #5045c9;
  --orange: #ff9b61;
  --mint: #b7e7d5;
  --yellow: #ffdf80;
  --line: #ede7dc;
  --green: #3f9a76;
  --red: #c8695e;
  --shadow: 0 22px 60px rgba(70, 62, 99, .09);
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 4% 20%, rgba(255, 221, 142, .23), transparent 27rem),
    radial-gradient(ellipse at 96% 55%, rgba(177, 228, 208, .22), transparent 29rem),
    var(--cream);
}
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #ff9b61; outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .8rem 1rem; border-radius: 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-shell { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(40, 51, 74, .08); }
.brand { display: inline-flex; gap: 11px; align-items: center; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; position: relative; border-radius: 14px 14px 14px 5px; color: white; background: var(--purple); transform: rotate(-5deg); box-shadow: 0 5px 0 #463cba; }
.brand-mark span { font-size: 24px; line-height: 1; }
.brand-mark i { position: absolute; right: 5px; top: 5px; font-size: 7px; color: var(--yellow); }
.brand-name { font-size: 14px; line-height: 1.02; letter-spacing: -.03em; color: #758096; font-weight: 700; }
.brand-name b { display: block; margin-top: 2px; color: var(--ink); font-size: 18px; font-weight: 900; letter-spacing: -.04em; }
.top-note { display: flex; align-items: center; gap: 9px; color: #6d778a; font-size: 13px; font-weight: 800; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #75c6a3; box-shadow: 0 0 0 4px rgba(117, 198, 163, .18); }
.main-content { min-height: calc(100vh - 154px); padding: 34px 0 50px; }
.page-footer { display: flex; justify-content: space-between; align-items: center; min-height: 66px; color: #9299a6; border-top: 1px solid rgba(40, 51, 74, .08); font-size: 12px; font-weight: 700; }
.footer-stars { color: #e8bd56; letter-spacing: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero { position: relative; min-height: 430px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 32px; padding: 56px 74px; overflow: hidden; border: 1px solid #f1e8d9; border-radius: 34px; background: rgba(255,253,248,.92); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; width: 300px; height: 300px; top: -190px; left: 52%; border: 1px solid rgba(96,85,220,.08); border-radius: 50%; box-shadow: 0 0 0 28px rgba(96,85,220,.025), 0 0 0 56px rgba(96,85,220,.02); }
.hero-copy { position: relative; z-index: 1; max-width: 490px; }
.hero h1 { max-width: 500px; margin: 17px 0 14px; font-size: clamp(38px, 5.3vw, 62px); font-weight: 900; line-height: 1.02; letter-spacing: -.055em; }
.hero h1 .highlight { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .highlight::after { content: ''; position: absolute; left: -3px; right: -3px; bottom: 3px; z-index: -1; height: 15px; border-radius: 20px; background: var(--yellow); transform: rotate(-1.7deg); }
.hero-description { max-width: 390px; margin: 0; color: #727d91; font-size: 16px; line-height: 1.7; font-weight: 600; }
.primary-button, .secondary-button { min-height: 54px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; margin-top: 27px; padding: 0 24px; border: 0; border-radius: 17px; cursor: pointer; font-size: 15px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button { color: white; background: var(--purple); box-shadow: 0 5px 0 #473db7, 0 10px 20px rgba(96,85,220,.18); }
.primary-button:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 7px 0 #473db7, 0 13px 22px rgba(96,85,220,.22); }
.primary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #473db7; }
.primary-button .arrow { font-size: 19px; }
.secondary-button { color: var(--ink); background: #f4f1eb; box-shadow: 0 4px 0 #e8e3d9; }
.secondary-button:hover { background: #ebe6dd; transform: translateY(-1px); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 290px; }
.sun-disc { position: absolute; width: 265px; height: 265px; border-radius: 50%; background: #ffe69d; }
.paper-sun { position: relative; width: 188px; height: 188px; display: grid; place-items: center; border: 9px solid var(--paper); border-radius: 48% 52% 50% 50%; background: var(--orange); box-shadow: 0 12px 0 rgba(224,130,79,.25), 0 21px 40px rgba(96,85,220,.12); transform: rotate(-6deg); animation: bob 4s ease-in-out infinite; }
.paper-sun::before, .paper-sun::after { content: ''; position: absolute; top: 81px; width: 11px; height: 17px; border-radius: 50%; background: var(--ink); }
.paper-sun::before { left: 54px; }
.paper-sun::after { right: 54px; }
.sun-smile { position: absolute; top: 103px; width: 34px; height: 17px; border-bottom: 4px solid var(--ink); border-radius: 0 0 30px 30px; }
.sun-cheek { position: absolute; top: 106px; width: 19px; height: 10px; border-radius: 50%; background: rgba(255,245,218,.62); }
.sun-cheek.left { left: 31px; }.sun-cheek.right { right: 31px; }
.sun-ray { position: absolute; font-size: 33px; color: var(--purple); font-weight: 900; }
.sun-ray.one { top: 5px; left: 28px; transform: rotate(-15deg); }.sun-ray.two { top: 38px; right: 4px; color: #fb8b54; }.sun-ray.three { bottom: 22px; left: 3px; color: #61ad90; font-size: 23px; }
.float-tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid rgba(40,51,74,.05); border-radius: 15px; background: white; box-shadow: 0 9px 24px rgba(54,48,87,.1); font-size: 12px; font-weight: 900; }
.float-tag.one { top: 30px; right: -5px; transform: rotate(5deg); }.float-tag.two { bottom: 34px; left: 0; transform: rotate(-6deg); }.tag-icon { font-size: 19px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 19px; }
.feature-chip { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 18px; border: 1px solid #efe9df; border-radius: 20px; background: rgba(255,253,248,.75); }
.feature-chip .chip-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 21px; }
.feature-chip:nth-child(1) .chip-icon { background: #eeeaff; }.feature-chip:nth-child(2) .chip-icon { background: #fff0df; }.feature-chip:nth-child(3) .chip-icon { background: #e4f4ec; }
.feature-chip strong { display: block; font-size: 13px; font-weight: 900; }.feature-chip small { display: block; margin-top: 2px; color: #9299a6; font-size: 11px; font-weight: 700; }
.section-heading { max-width: 630px; margin: 8px auto 26px; text-align: center; }
.section-heading h1 { margin: 10px 0 7px; font-size: clamp(30px, 4vw, 43px); font-weight: 900; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; color: #7d8798; background: transparent; cursor: pointer; font-size: 13px; font-weight: 800; }
.back-link:hover { color: var(--purple); }
.category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.category-card { min-height: 238px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid transparent; border-radius: 25px; color: var(--ink); cursor: pointer; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 15px 32px rgba(52,48,76,.11); }
.category-card.math { background: #efedff; border-color: #e6e2ff; }.category-card.words { background: #fff0e3; border-color: #fce8d6; }.category-card.shapes { background: #e8f5ee; border-color: #dcefe4; }
.category-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 21px; background: rgba(255,255,255,.8); font-size: 32px; box-shadow: 0 4px 0 rgba(40,51,74,.06); }
.category-card h2 { margin: 20px 0 5px; font-size: 22px; font-weight: 900; letter-spacing: -.035em; }
.category-card p { max-width: 220px; margin: 0; color: #758096; font-size: 13px; font-weight: 700; line-height: 1.5; }
.card-arrow { position: absolute; right: 20px; bottom: 18px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--purple); font-size: 18px; }
.category-card.words .card-arrow { background: var(--orange); }.category-card.shapes .card-arrow { background: #63ad8e; }
.menu-footer { margin-top: 23px; color: #9a9eaa; text-align: center; font-size: 12px; font-weight: 700; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.quiz-label { display: inline-flex; align-items: center; gap: 9px; color: #6c768a; font-size: 13px; font-weight: 900; }
.quiz-label .category-icon-small { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; background: white; box-shadow: 0 3px 0 #eee8de; font-size: 20px; }
.score-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid #f0e8d8; border-radius: 15px; color: #78633d; background: #fff5d9; font-size: 13px; font-weight: 900; }
.progress-wrap { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.progress-track { height: 10px; flex: 1; overflow: hidden; border-radius: 10px; background: #ede9e2; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7368e8, #a19af2); transition: width .45s ease; }
.progress-text { min-width: 74px; color: #8991a0; font-size: 12px; font-weight: 900; text-align: right; }
.question-card { position: relative; max-width: 810px; min-height: 425px; margin: 0 auto; padding: 36px 54px 34px; border: 1px solid #f0e9de; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.question-kicker { color: #a3a7b1; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.question-visual { height: 94px; display: grid; place-items: center; margin: 6px auto 2px; }
.question-visual .emoji-visual { font-size: 70px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(42,42,62,.06)); }
.question-visual .shape-visual { display: block; width: 72px; height: 72px; filter: drop-shadow(0 6px 0 rgba(42,42,62,.12)); }
.question-visual .shape-visual.circle { border-radius: 50%; background: #f59a56; }
.question-visual .shape-visual.square { border-radius: 13px; background: #7169df; }
.question-visual .shape-visual.triangle { background: #70b899; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.question-visual .shape-visual.rectangle { width: 92px; height: 58px; border-radius: 10px; background: #f0bc4e; }
.question-card h1 { max-width: 650px; margin: 12px auto 24px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.2; letter-spacing: -.04em; }
.answer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.answer-button { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border: 2px solid #efede9; border-radius: 17px; color: var(--ink); background: white; cursor: pointer; font-size: 16px; font-weight: 900; transition: border .15s ease, background .15s ease, transform .15s ease; }
.answer-button:not(:disabled):hover { border-color: #b8b1f1; background: #f8f7ff; transform: translateY(-2px); }
.answer-button:disabled { cursor: default; }
.answer-button.is-correct { border-color: #8cceb0; color: #347d5e; background: #eff9f3; }
.answer-button.is-wrong { border-color: #e8a096; color: #a75149; background: #fff3f0; }
.answer-letter { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #8983cc; background: #f0effb; font-size: 11px; font-weight: 900; }
.answer-button.is-correct .answer-letter { color: #fff; background: #5bab84; }.answer-button.is-wrong .answer-letter { color: #fff; background: #d27a6e; }
.feedback { min-height: 56px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 13px; color: #61756b; font-size: 13px; font-weight: 800; }
.feedback.is-wrong { color: #8e6b61; }
.feedback-icon { font-size: 20px; }
.next-row { display: flex; justify-content: flex-end; }
.next-row .primary-button { min-height: 47px; margin-top: 0; padding: 0 19px; font-size: 13px; border-radius: 14px; }
.result-card { max-width: 750px; margin: 24px auto; padding: 43px 54px; border: 1px solid #f0e9de; border-radius: 32px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.result-confetti { font-size: 37px; letter-spacing: 20px; }
.result-medal { width: 106px; height: 106px; display: grid; place-items: center; margin: 13px auto; border: 8px solid white; border-radius: 50%; background: #ffdf80; box-shadow: 0 0 0 1px #f3e6c3, 0 7px 0 #efd174; font-size: 51px; }
.result-card h1 { margin: 12px 0 7px; font-size: clamp(32px, 4.5vw, 45px); line-height: 1.05; letter-spacing: -.05em; font-weight: 900; }
.result-card p { max-width: 450px; margin: 0 auto; color: #7f899b; font-size: 15px; font-weight: 700; line-height: 1.6; }
.result-score { display: flex; justify-content: center; align-items: baseline; gap: 7px; margin: 19px 0 0; color: var(--purple); font-size: 44px; font-weight: 900; letter-spacing: -.05em; }
.result-score small { color: #a0a5af; font-size: 17px; letter-spacing: 0; }
.best-score { margin-top: 4px; color: #949aa7; font-size: 12px; font-weight: 800; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.result-actions .primary-button, .result-actions .secondary-button { margin-top: 17px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 36px, 610px); }
  .topbar { height: 75px; }
  .main-content { min-height: calc(100vh - 137px); padding: 22px 0 35px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 38px 30px 22px; border-radius: 28px; }
  .hero-copy { max-width: 550px; }
  .hero h1 { max-width: 420px; font-size: clamp(39px, 10vw, 56px); }
  .hero-description { font-size: 15px; }
  .hero-art { min-height: 250px; }
  .sun-disc { width: 210px; height: 210px; }
  .paper-sun { width: 158px; height: 158px; }
  .paper-sun::before, .paper-sun::after { top: 64px; height: 15px; }.paper-sun::before { left: 43px; }.paper-sun::after { right: 43px; }
  .sun-smile { top: 83px; }.sun-cheek { top: 87px; }.sun-cheek.left { left: 24px; }.sun-cheek.right { right: 24px; }
  .float-tag.one { top: 18px; right: 6%; }.float-tag.two { bottom: 18px; left: 6%; }
  .feature-row { gap: 8px; }.feature-chip { min-height: 62px; padding: 9px 10px; gap: 8px; border-radius: 16px; }.feature-chip .chip-icon { width: 32px; height: 32px; font-size: 17px; }.feature-chip strong { font-size: 11px; }.feature-chip small { font-size: 9px; }
  .category-list { grid-template-columns: 1fr; gap: 11px; }.category-card { min-height: 141px; padding: 17px 18px 16px 91px; justify-content: center; border-radius: 21px; }.category-icon { position: absolute; left: 17px; top: 50%; width: 58px; height: 58px; transform: translateY(-50%); }.category-card h2 { margin: 0 32px 4px 0; font-size: 20px; }.category-card p { max-width: 340px; font-size: 12px; }.card-arrow { right: 16px; bottom: 14px; width: 27px; height: 27px; }
  .question-card { min-height: 0; padding: 26px 24px 24px; border-radius: 25px; }.question-visual { height: 80px; }.question-visual .emoji-visual { font-size: 59px; }.question-card h1 { margin: 10px auto 19px; }.answer-list { grid-template-columns: 1fr; gap: 9px; }.answer-button { min-height: 55px; justify-content: flex-start; padding: 10px 14px; font-size: 15px; border-radius: 15px; }.answer-letter { width: 27px; height: 27px; }.feedback { min-height: 49px; }
  .result-card { padding: 34px 24px; border-radius: 27px; }.result-confetti { font-size: 27px; letter-spacing: 13px; }
}
@media (max-width: 420px) {
  .site-shell { width: calc(100% - 28px); }
  .top-note { font-size: 11px; }
  .hero { padding: 31px 22px 18px; }.hero h1 { font-size: 40px; }.hero-art { min-height: 224px; }
  .feature-chip { flex-direction: column; align-items: flex-start; }.feature-chip .chip-icon { width: 29px; height: 29px; }.feature-chip strong { font-size: 10px; }.feature-chip small { display: none; }
  .quiz-top { align-items: flex-start; }.quiz-label { max-width: 150px; font-size: 11px; }
  .question-card { padding: 24px 17px 19px; }.progress-wrap { gap: 8px; }
  .page-footer { gap: 10px; font-size: 10px; }.footer-stars { letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
