:root {
  --ink: #292441;
  --muted: #77728a;
  --purple: #7557dc;
  --purple-dark: #5b3ec1;
  --purple-soft: #eeeaff;
  --coral: #ff7764;
  --coral-soft: #fff0ed;
  --teal: #28aa99;
  --teal-soft: #e6f8f5;
  --yellow: #f7bd45;
  --yellow-soft: #fff5da;
  --line: #eae7f1;
  --paper: #fff;
  --background: #f9f8fc;
  --shadow: 0 20px 55px rgba(52, 42, 93, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 5%, rgba(117,87,220,.08), transparent 25rem), radial-gradient(circle at 90% 35%, rgba(255,119,100,.07), transparent 26rem), var(--background); font-family: "Be Vietnam Pro", system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 11px; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.brand-mark { display: flex; align-items: end; justify-content: center; gap: 2px; width: 48px; height: 48px; padding: 8px 5px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #8d74e8, var(--purple)); box-shadow: 0 9px 22px rgba(117,87,220,.24); }
.brand-mark span { display: grid; place-items: center; width: 11px; border-radius: 4px; background: rgba(255,255,255,.2); font-size: 9px; font-weight: 800; }
.brand-mark span:nth-child(1) { height: 18px; }.brand-mark span:nth-child(2) { height: 25px; }.brand-mark span:nth-child(3) { height: 32px; }
.brand strong, .brand small { display: block; }.brand strong { font-size: 17px; }.brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.header-actions { display: flex; gap: 8px; }
.header-button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; color: var(--muted); background: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; }
.header-button span:first-child { color: var(--yellow); font-size: 17px; }.header-button.sound-on span:first-child { color: var(--teal); }
main { flex: 1; }.view { display: none; animation: rise .35s ease; }.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.kicker { display: inline-block; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.welcome-panel { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 475px; padding: 40px 42px; border: 1px solid rgba(255,255,255,.75); border-radius: 35px; background: linear-gradient(130deg, rgba(255,255,255,.92), rgba(244,240,255,.78)); overflow: hidden; }
.welcome-copy { position: relative; z-index: 2; }.welcome-copy h1 { margin: 14px 0 18px; font-size: clamp(42px, 5.5vw, 66px); line-height: 1.08; letter-spacing: -.055em; }.welcome-copy h1 span { color: var(--purple); }.welcome-copy > p { max-width: 590px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.trust-row { display: flex; gap: 28px; margin-top: 30px; }.trust-row span { color: var(--muted); font-size: 10px; }.trust-row b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 20px; }
.welcome-art { position: relative; align-self: stretch; min-height: 360px; }.welcome-art::before { content: ""; position: absolute; width: 320px; height: 320px; right: 15px; top: 15px; border-radius: 50%; background: #eee9ff; }
.sun { position: absolute; right: 35px; top: 38px; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: var(--yellow); font-size: 23px; box-shadow: 0 0 0 10px rgba(247,189,69,.15); }
.cloud { position: absolute; height: 22px; border-radius: 20px; background: #fff; box-shadow: 17px -9px 0 2px #fff, 34px 0 0 #fff; }.cloud-one { top: 90px; left: 42px; width: 55px; }.cloud-two { right: 50px; top: 152px; width: 40px; transform: scale(.75); }
.number { position: absolute; display: grid; place-items: center; width: 58px; height: 72px; border: 4px solid #fff; border-radius: 19px; color: #fff; font-size: 36px; font-weight: 800; box-shadow: 0 12px 27px rgba(49,41,80,.15); transform: rotate(-8deg); }.number-one { left: 48px; bottom: 55px; background: var(--coral); }.number-two { left: 125px; bottom: 90px; background: var(--teal); transform: rotate(6deg); }.number-three { right: 26px; bottom: 58px; background: var(--yellow); transform: rotate(9deg); }
.hill { position: absolute; left: 15px; right: -30px; bottom: -5px; height: 100px; border-radius: 50% 50% 0 0; background: #dff4e9; }
.mascot, .result-mascot { position: absolute; display: grid; place-items: center; width: 128px; height: 128px; left: 190px; bottom: 32px; border: 6px solid #fff; border-radius: 46% 54% 48% 52%; background: var(--purple); box-shadow: 0 16px 35px rgba(91,62,193,.25); transform: rotate(-3deg); }.eye { position: absolute; top: 46px; width: 10px; height: 14px; border-radius: 50%; background: #fff; }.eye.left { left: 37px; }.eye.right { right: 37px; }.smile { position: absolute; top: 70px; width: 38px; height: 19px; border-bottom: 5px solid #fff; border-radius: 50%; }.cheek { position: absolute; top: 66px; width: 14px; height: 7px; border-radius: 50%; background: rgba(255,170,183,.8); }.cheek.left { left: 20px; }.cheek.right { right: 20px; }

.learner-card { display: flex; align-items: center; gap: 38px; margin: 25px 0 52px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 35px rgba(52,42,93,.06); }
.learner-heading { display: flex; align-items: center; gap: 12px; min-width: 235px; }.avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: var(--purple); background: var(--purple-soft); font-size: 20px; font-weight: 800; }.learner-heading h2 { margin: 0 0 4px; font-size: 15px; }.learner-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.learner-fields { display: grid; grid-template-columns: minmax(200px,.75fr) minmax(430px,1.25fr); flex: 1; gap: 18px; }.field > span, .age-field legend { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }.field input { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--ink); outline: 0; }.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(117,87,220,.11); }
.age-field { min-width: 0; margin: 0; padding: 0; border: 0; }.age-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }.age-options input { position: absolute; opacity: 0; }.age-options label > span { display: block; border: 1px solid var(--line); border-radius: 11px; padding: 8px 9px; color: var(--muted); font-size: 10px; font-weight: 700; text-align: center; }.age-options small { display: block; overflow: hidden; margin-top: 2px; font-size: 7px; font-weight: 500; white-space: nowrap; }.age-options input:checked + span { border-color: var(--purple); color: var(--purple-dark); background: var(--purple-soft); }

.zones-section { margin-bottom: 45px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin: 0 5px 24px; }.section-heading h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.035em; }.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; text-align: right; }
.zone-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.zone-card { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 26px; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }.zone-card::before { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; top: -80px; border-radius: 50%; opacity: .7; }.zone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }.numbers-zone::before { background: var(--purple-soft); }.focus-zone::before { background: var(--coral-soft); }.thinking-zone::before { background: var(--teal-soft); }
.zone-top { position: relative; display: flex; align-items: center; justify-content: space-between; }.zone-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; font-size: 17px; font-weight: 800; }.numbers-zone .zone-icon { color: var(--purple); background: var(--purple-soft); }.focus-zone .zone-icon { color: var(--coral); background: var(--coral-soft); font-size: 28px; }.thinking-zone .zone-icon { color: var(--teal); background: var(--teal-soft); font-size: 26px; }.zone-count { color: var(--muted); font-size: 8px; font-weight: 700; }.zone-card h3 { position: relative; margin: 22px 0 9px; font-size: 21px; }.zone-card > p { min-height: 48px; margin: 0 0 19px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.activity-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }.activity-tags span { padding: 6px 8px; border-radius: 7px; color: var(--muted); background: #f7f6fa; font-size: 8px; font-weight: 600; }.zone-button { width: 100%; margin-top: auto; border: 0; border-radius: 12px; padding: 13px 16px; color: #fff; font-size: 11px; font-weight: 800; text-align: left; }.zone-button span { float: right; font-size: 17px; }.numbers-zone .zone-button { background: linear-gradient(135deg,#846ae4,var(--purple-dark)); }.focus-zone .zone-button { background: linear-gradient(135deg,#ff8d7d,#e85f4d); }.thinking-zone .zone-button { background: linear-gradient(135deg,#42bdae,#168f80); }
.parent-note { display: flex; align-items: center; gap: 15px; max-width: 760px; margin: 0 auto 55px; padding: 18px 23px; border-radius: 18px; color: #8d6a1f; background: var(--yellow-soft); }.parent-note > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 20px; }.parent-note h2 { margin: 0 0 4px; font-size: 12px; }.parent-note p { margin: 0; font-size: 9px; line-height: 1.55; }

#play-view { padding: 28px 0 60px; }.play-header { display: flex; align-items: center; gap: 17px; max-width: 850px; margin: 0 auto 22px; }.round-button { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #fff; font-size: 23px; }.play-progress { flex: 1; }.play-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 9px; }.play-meta strong { color: var(--ink); }.progress-track { height: 9px; border-radius: 20px; background: #e8e5f1; overflow: hidden; }.progress-track span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--purple),#9b85ed); transition: width .35s ease; }.star-pill { display: flex; align-items: center; gap: 6px; min-width: 65px; padding: 10px 13px; border-radius: 13px; color: #ad770d; background: var(--yellow-soft); }.star-pill span { font-size: 18px; }.star-pill strong { font-size: 13px; }
.activity-card { max-width: 780px; min-height: 575px; margin: 0 auto; padding: 28px 38px 35px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }.mascot-line { display: flex; align-items: center; gap: 11px; }.mini-mascot { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 15px; color: #fff; background: var(--purple); font-size: 20px; font-weight: 800; }.speech { position: relative; padding: 9px 15px; border-radius: 12px; background: var(--purple-soft); }.speech::before { content: ""; position: absolute; left: -6px; top: 15px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); }.speech b,.speech span { position: relative; display: block; }.speech b { color: var(--purple-dark); font-size: 10px; }.speech span { margin-top: 2px; color: var(--muted); font-size: 8px; }.skill-badge { margin-left: auto; padding: 7px 10px; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 800; }
.activity-card > h1 { margin: 24px 0 17px; font-size: clamp(22px,4vw,32px); line-height: 1.3; text-align: center; letter-spacing: -.03em; }.activity-art { display: grid; place-items: center; min-height: 235px; border: 1px solid #ece9f4; border-radius: 21px; background: linear-gradient(145deg,#fbfaff,#f5f8ff); overflow: hidden; }.activity-art svg { display: block; width: 100%; height: auto; max-height: 260px; }
.answer-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-top: 19px; }.answer-option { position: relative; min-height: 76px; border: 2px solid var(--line); border-radius: 16px; padding: 10px; color: var(--ink); background: #fff; font-size: 25px; font-weight: 800; transition: transform .18s ease,border-color .18s ease,background .18s ease; }.answer-option:hover { border-color: #b9aaee; background: #faf8ff; transform: translateY(-2px); }.answer-option:disabled { cursor: default; }.answer-option.correct { border-color: var(--teal); color: #148577; background: var(--teal-soft); }.answer-option.wrong { border-color: var(--coral); color: #c64d3d; background: var(--coral-soft); }.answer-option .option-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 600; }.answer-option .option-emoji { display: block; font-size: 23px; line-height: 1.3; letter-spacing: 2px; }.answer-options.two-options { grid-template-columns: repeat(2,1fr); }.answer-options.four-options { grid-template-columns: repeat(4,1fr); }
.feedback-panel { display: none; max-width: 780px; margin: 13px auto 0; padding: 16px 18px; border-radius: 17px; align-items: center; justify-content: space-between; gap: 15px; }.feedback-panel.show { display: flex; }.feedback-panel.correct { color: #167f72; background: var(--teal-soft); }.feedback-panel.wrong { color: #be4d3e; background: var(--coral-soft); }.feedback-copy { display: flex; align-items: center; gap: 12px; }.feedback-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 2px solid currentColor; border-radius: 50%; font-weight: 800; }.feedback-copy h2 { margin: 0 0 3px; font-size: 13px; }.feedback-copy p { margin: 0; font-size: 9px; line-height: 1.5; }.feedback-panel button { border: 0; border-radius: 11px; padding: 11px 16px; color: #fff; background: var(--purple); font-size: 10px; font-weight: 800; }.feedback-panel button span { margin-left: 8px; font-size: 15px; }

#result-view { padding: 45px 0 70px; }.result-card { max-width: 720px; margin: 0 auto; padding: 40px 45px; border: 1px solid var(--line); border-radius: 29px; background: #fff; box-shadow: var(--shadow); text-align: center; }.celebration { display: flex; align-items: center; justify-content: center; gap: 19px; height: 105px; margin-bottom: 18px; color: var(--yellow); }.celebration > span:nth-child(even) { color: var(--coral); }.celebration > span:nth-child(3),.celebration > span:nth-child(5) { color: var(--teal); }.result-mascot { position: relative; inset: auto; width: 90px; height: 90px; border-radius: 32px; color: #fff; font-size: 36px; font-weight: 800; transform: rotate(-4deg); }.result-card h1 { margin: 10px 0 9px; font-size: 32px; }.result-card > p { margin: 0 auto; color: var(--muted); font-size: 11px; }.big-score { margin: 23px 0; }.big-score strong,.big-score span { display: block; }.big-score strong { color: var(--purple); font-size: 53px; letter-spacing: -.06em; }.big-score span { color: #ad770d; font-size: 9px; }.result-stats { display: grid; grid-template-columns: repeat(3,1fr); padding: 17px 0; border: 1px solid var(--line); border-radius: 15px; }.result-stats div { border-right: 1px solid var(--line); }.result-stats div:last-child { border: 0; }.result-stats span,.result-stats strong { display: block; }.result-stats span { margin-bottom: 6px; color: var(--muted); font-size: 8px; }.result-stats strong { font-size: 12px; }.result-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 18px 0; }.result-skills span { padding: 7px 10px; border-radius: 9px; color: var(--purple-dark); background: var(--purple-soft); font-size: 8px; font-weight: 700; }.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.result-actions button { border: 0; border-radius: 12px; padding: 13px; font-size: 10px; font-weight: 800; }.secondary-action { color: var(--ink); background: #f1eff5; }.primary-action { color: #fff; background: var(--purple); }

#progress-view { max-width: 940px; margin: 0 auto; padding: 45px 0 70px; }.progress-page-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; }.progress-page-heading h1 { margin: 7px 0 0; font-size: 31px; }.progress-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 19px; }.progress-cards article { display: flex; align-items: center; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.progress-cards article > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--purple); background: var(--purple-soft); font-weight: 800; }.progress-cards article:nth-child(2) > span { color: var(--teal); background: var(--teal-soft); }.progress-cards article:nth-child(3) > span { color: var(--coral); background: var(--coral-soft); }.progress-cards small,.progress-cards strong { display: block; }.progress-cards small { margin-bottom: 4px; color: var(--muted); font-size: 8px; }.progress-cards strong { font-size: 19px; }.history-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }.history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }.history-heading h2 { margin: 0 0 3px; font-size: 15px; }.history-heading p { margin: 0; color: var(--muted); font-size: 8px; }.history-heading button { border: 0; color: var(--coral); background: transparent; font-size: 8px; font-weight: 700; }.history-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 14px 4px; border-top: 1px solid var(--line); }.history-item h3 { margin: 0 0 3px; font-size: 11px; }.history-item p,.history-item time { margin: 0; color: var(--muted); font-size: 8px; }.history-item strong { color: var(--purple); font-size: 13px; }.empty-state { padding: 42px 15px; color: var(--muted); text-align: center; font-size: 10px; }.empty-state span { display: block; margin-bottom: 7px; color: #c5bfd3; font-size: 28px; }
footer { display: flex; justify-content: space-between; padding: 20px 4px; border-top: 1px solid var(--line); color: #aaa6b7; font-size: 8px; }
.shake { animation: shake .28s ease; }@keyframes shake { 25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)} }

@media (max-width: 900px) {
  .welcome-panel { grid-template-columns: 1fr; text-align: center; }.welcome-copy > p { margin-inline: auto; }.trust-row { justify-content: center; }.welcome-art { display: none; }
  .learner-card { align-items: stretch; flex-direction: column; }.learner-fields { grid-template-columns: 1fr; }.zone-grid { grid-template-columns: 1fr; }.zone-card { min-height: 0; }.zone-card > p { min-height: 0; }.section-heading { align-items: flex-start; flex-direction: column; }.section-heading > p { text-align: left; }.progress-cards { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .app-shell { width: min(100% - 22px,1180px); }.site-header { min-height: 70px; }.brand small,.button-label { display: none; }.header-button { padding: 8px 9px; }.welcome-panel { min-height: 0; padding: 35px 20px; border-radius: 25px; }.welcome-copy h1 { font-size: 39px; }.welcome-copy > p { font-size: 12px; }.trust-row { gap: 12px; }.trust-row span { flex: 1; }.learner-card { margin-bottom: 40px; padding: 21px; }.age-options { grid-template-columns: 1fr; }.age-options label > span { text-align: left; }.zone-card { padding: 22px; }
  #play-view { padding-top: 15px; }.play-header { gap: 9px; }.activity-card { min-height: 0; padding: 21px 15px 27px; }.skill-badge { display: none; }.activity-card > h1 { margin-top: 20px; }.activity-art { min-height: 190px; }.answer-options,.answer-options.four-options { grid-template-columns: repeat(2,1fr); }.answer-option { min-height: 70px; }.feedback-panel { align-items: stretch; flex-direction: column; }.feedback-panel button { width: 100%; }
  .result-card { padding: 32px 18px; }.celebration { gap: 9px; }.result-stats { grid-template-columns: 1fr; gap: 13px; }.result-stats div { padding-bottom: 13px; border-right: 0; border-bottom: 1px solid var(--line); }.result-stats div:last-child { padding: 0; }.result-actions { grid-template-columns: 1fr; }.progress-page-heading h1 { font-size: 24px; }.history-item { grid-template-columns: 1fr auto; }.history-item time { grid-column: 1/-1; }
}
