:root {
  color-scheme: light;
  --ink: #2e2851;
  --muted: #706b86;
  --paper: #fffdf7;
  --cream: #fff8e8;
  --purple: #6c4df6;
  --purple-dark: #5136c9;
  --coral: #ff826e;
  --blue: #5c8ff4;
  --green: #45bd8b;
  --yellow: #f4bb3f;
  --line: #e9e2d5;
  --control-line: #91889f;
  --shadow: 0 14px 0 rgba(53, 43, 105, .1), 0 22px 40px rgba(61, 46, 113, .12);
  --focus: #1677d2;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; min-height: 100dvh; color: var(--ink); background: var(--cream); font-family: var(--font-body); font-weight: 700; }
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); line-height: .98; }
.asset-icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; overflow: visible; vertical-align: -.14em; }
.button-icon { width: 24px; height: 24px; vertical-align: middle; }
.inline-icon { width: 18px; height: 18px; vertical-align: -.25em; }
.aside-icon { width: 38px; height: 38px; }

.app-shell { min-height: 100dvh; padding-bottom: 92px; overflow: hidden; position: relative; }
.app-shell::before, .setup-screen::before { content: ""; position: fixed; width: 460px; height: 460px; border-radius: 50%; background: #ece5ff; filter: blur(1px); right: -200px; top: -240px; z-index: 0; }
.topbar { height: 86px; max-width: 1240px; margin: auto; padding: max(16px, env(safe-area-inset-top)) 28px 12px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 4; }
.brand { min-height: 44px; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.7px; }
.brand > span:last-child > span { color: var(--purple); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--purple); color: #fff; box-shadow: 0 5px 0 var(--purple-dark); transform: rotate(-4deg); }
.brand-mark .asset-icon { width: 30px; height: 30px; }
.top-actions, .quick-settings { display: flex; align-items: center; gap: 10px; }
.star-pill { min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border: 2px solid #f0deaa; border-radius: 18px; background: #fff8d8; }
.star-pill .star-icon { width: 23px; height: 23px; color: #f2ad28; filter: drop-shadow(0 2px 0 #d68713); }
.star-pill strong { font-size: 18px; }
.star-label { color: var(--muted); font-size: 13px; }
.icon-button { border: 2px solid var(--line); width: 48px; height: 48px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #ddd4c5; font-size: 19px; font-weight: 900; }
.language-button { font-size: 14px; }

.world-main { width: min(1120px, calc(100% - 48px)); margin: 28px auto 42px; position: relative; z-index: 2; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.eyebrow { margin-bottom: 8px; color: var(--purple); letter-spacing: 1.7px; font-size: 12px; font-weight: 900; }
.welcome-row h1 { margin-bottom: 7px; font-size: clamp(35px, 5vw, 56px); letter-spacing: -1.3px; }
.welcome-row p:last-child { margin: 0; color: var(--muted); font-size: 18px; }
.ari-bubble { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 8px; background: white; border: 2px solid var(--line); border-radius: 24px 24px 24px 5px; transform: rotate(2deg); }
.ari-mini { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50% 50% 46% 46%; background: #ffd77c; }
.ari-mini .asset-icon { width: 42px; height: 42px; }
.hello-icon { width: .9em; height: .9em; }
.ari-bubble > span:last-child { font-family: var(--font-display); font-size: 17px; }

.world-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.world-card { --accent: var(--coral); min-height: 248px; position: relative; display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 20px; overflow: hidden; border: 3px solid color-mix(in srgb, var(--accent), white 34%); border-radius: 34px; padding: 26px; background: color-mix(in srgb, var(--accent), white 84%); box-shadow: 0 9px 0 color-mix(in srgb, var(--accent), #654a68 24%), 0 15px 28px color-mix(in srgb, var(--accent), transparent 80%); text-align: left; animation: card-in .5s cubic-bezier(.2,.85,.2,1.2) both; transition: transform .2s ease, box-shadow .2s ease; }
.world-card:nth-child(2) { animation-delay: 70ms; }
.world-card:nth-child(3) { animation-delay: 140ms; }
.world-card:nth-child(4) { animation-delay: 210ms; }
.world-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 13px 0 color-mix(in srgb, var(--accent), #654a68 24%), 0 23px 36px color-mix(in srgb, var(--accent), transparent 78%); }
.world-card:active { transform: translateY(5px); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent), #654a68 24%); }
.coral { --accent: var(--coral); }
.blue { --accent: var(--blue); }
.green { --accent: var(--green); }
.yellow { --accent: var(--yellow); }
.world-art { width: 135px; height: 135px; display: grid; place-items: center; position: relative; border-radius: 45% 55% 50% 42%; background: color-mix(in srgb, var(--accent), white 48%); font-size: 73px; transform: rotate(-4deg); }
.world-asset { width: 92px; height: 92px; position: relative; z-index: 1; }
.world-orbit { position: absolute; inset: -9px; border: 3px dashed color-mix(in srgb, var(--accent), white 15%); border-radius: 50%; animation: slow-spin 18s linear infinite; }
.world-copy { display: flex; flex-direction: column; align-self: center; }
.world-skill { width: fit-content; margin-bottom: 7px; padding: 4px 9px; border-radius: 8px; background: rgba(255,255,255,.72); color: color-mix(in srgb, var(--accent), #392d54 45%); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.world-copy strong { font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 33px); line-height: 1; }
.world-description { margin-top: 5px; color: color-mix(in srgb, var(--accent), #443b5c 56%); font-size: 14px; }
.world-replay { width: fit-content; margin-top: 8px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.76); color: color-mix(in srgb, var(--accent), #302549 48%); font-size: 11px; font-weight: 900; }
.world-card.completed { border-color: color-mix(in srgb, var(--accent), #277956 32%); }
.world-card.completed .world-orbit { border-style: solid; }
.world-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; }
.world-progress progress { flex: 1; height: 10px; }
.world-progress b { min-width: 86px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 12px; white-space: nowrap; }
.world-progress b.complete { color: #287856; }
.tiny-icon { width: 12px; height: 12px; color: #f2ad28; }
.play-arrow { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; right: 20px; top: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; box-shadow: 0 4px 0 color-mix(in srgb, var(--accent), black 21%); }
.play-arrow .asset-icon { width: 22px; height: 22px; }
.replay-arrow { font-family: var(--font-display); font-size: 30px; line-height: 1; }

.together-card, .evidence-note { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 20px; border: 2px dashed #d6cbef; border-radius: 20px; background: #f4efff; color: #5d5371; }
.together-card p, .evidence-note p { margin: 0; font-size: 14px; }
.together-card strong, .evidence-note strong { display: block; margin-bottom: 2px; color: var(--ink); }
.bottom-nav { position: fixed; z-index: 10; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; padding: 6px; border: 2px solid #e4dccf; border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(50,37,91,.18); backdrop-filter: blur(12px); }
.bottom-nav button { min-width: 145px; min-height: 57px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 17px; background: transparent; color: var(--muted); }
.bottom-nav button.active { background: #eee9ff; color: var(--purple); }
.bottom-nav .nav-icon { width: 22px; height: 22px; }
.parent-hold::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--purple); transform: scaleX(0); transform-origin: left; }
.parent-hold.holding::after { animation: hold-progress 3s linear forwards; }

/* Onboarding */
.setup-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; position: relative; overflow-x: hidden; overflow-y: auto; padding: 72px 18px 40px; background: linear-gradient(180deg, #f0ecff 0 43%, #fff8e8 43%); }
.setup-screen::after { content: ""; position: absolute; bottom: -100px; left: -40px; width: 340px; height: 250px; border-radius: 50%; background: #dff6d7; transform: rotate(12deg); }
.setup-card { width: min(530px, 100%); position: relative; z-index: 2; flex: 0 0 auto; margin-block: auto; padding: 38px 46px 30px; border: 3px solid #e1d5c6; border-radius: 38px; background: rgba(255,253,247,.97); box-shadow: var(--shadow); text-align: center; }
.setup-mascot { width: 96px; height: 96px; position: relative; display: grid; place-items: center; margin: -92px auto 18px; filter: drop-shadow(0 7px 0 #dc9b31); }
.setup-mascot .mascot-asset { width: 96px; height: 96px; max-width: 100%; max-height: 100%; }
.setup-card h1 { margin-bottom: 12px; font-size: clamp(31px, 7vw, 44px); }
.setup-copy { margin: 0 auto 25px; max-width: 390px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.field-label, .age-field legend { display: block; margin-bottom: 8px; color: #514b68; text-align: left; font-size: 13px; font-weight: 900; }
.setup-card input[type="text"], .setup-card input:not([type]) { width: 100%; height: 60px; border: 3px solid #ddd5c8; border-radius: 17px; padding: 0 17px; background: #fff; color: var(--ink); font-size: 18px; }
.age-field { border: 0; padding: 0; margin: 20px 0 25px; }
.age-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.age-options input { position: absolute; opacity: 0; }
.age-options span { height: 58px; display: grid; place-items: center; border: 3px solid #ded6ca; border-radius: 17px; background: white; font-family: var(--font-display); font-size: 24px; box-shadow: 0 4px 0 #d9d0c4; }
.age-options input:checked + span { border-color: var(--purple); background: #eee9ff; color: var(--purple); box-shadow: 0 4px 0 #b9a8ee; transform: translateY(-1px); }
.age-options input:focus-visible + span { outline: 4px solid #2e8cff; outline-offset: 3px; }
.avatar-field { min-width: 0; margin: 0 0 24px; border: 0; padding: 0; text-align: left; }
.avatar-field legend { margin-bottom: 2px; padding: 0; color: #4e4765; font-size: 12px; font-weight: 900; }
.avatar-field > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.avatar-options { width: min(100%, 700px); display: grid; grid-template-columns: repeat(6, minmax(58px, 1fr)); gap: 9px; margin-top: 10px; }
.avatar-options label { min-width: 0; position: relative; }
.avatar-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.avatar-options label > span { min-height: 86px; display: grid; place-items: center; gap: 3px; border: 2px solid var(--control-line); border-radius: 16px; padding: 7px 2px 5px; background: white; box-shadow: 0 3px 0 #d8d0c4; color: var(--muted); cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.avatar-options label > span:hover { border-color: #8871e5; transform: translateY(-2px); }
.avatar-options input:checked + span { border-color: var(--purple); background: #f0ecff; color: var(--purple); box-shadow: 0 3px 0 #b9a8ee; }
.avatar-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.avatar-art { width: 50px; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 15px; background: #f5f1ff; }
.avatar-art .asset-icon { width: 48px; height: 48px; }
.avatar-options small { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; color: inherit; font-size: 8px; font-weight: 900; line-height: 1.05; text-align: center; white-space: normal; }
.avatar-options small span:last-child { font-size: 9px; }
.avatar-options small span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.primary-button, .secondary-button { min-height: 50px; border-radius: 15px; padding: 0 22px; font-weight: 900; }
.primary-button { border: 2px solid var(--purple-dark); background: var(--purple); color: #fff; box-shadow: 0 5px 0 var(--purple-dark); }
.primary-button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--purple-dark); }
.primary-button:disabled, .secondary-button:disabled { opacity: .48; cursor: not-allowed; filter: grayscale(.35); box-shadow: none; }
.secondary-button { border: 2px solid #d9d0c4; background: white; box-shadow: 0 4px 0 #d9d0c4; }
.big-button { min-height: 60px; font-size: 16px; }
.setup-card .big-button { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--purple); font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.setup-language { margin-top: 20px; }
.setup-language .inline-icon { margin-right: 4px; }
.setup-returning { margin-top: 22px; border-top: 1px solid #e5ddd1; padding-top: 16px; text-align: left; }
.setup-returning summary { min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--purple); font-size: 14px; font-weight: 900; text-align: center; }
.setup-returning > p { margin: 0 auto 13px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.setup-auth-form { padding: 17px; }
.setup-auth-form .form-field { text-align: left; }
.setup-auth-form .field-control { min-height: 54px; }
.setup-account-status { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 13px; border-radius: 14px; background: #eef8f2; color: #2e634b; font-size: 12px; line-height: 1.45; text-align: left; overflow-wrap: anywhere; }
.trust-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 18px 0 0; color: #8a8499; font-size: 11px; line-height: 1.6; }
.trust-note .inline-icon { width: 22px; height: 22px; }
.trust-note a, .account-intro a { color: var(--purple-dark); }
.primary-button .inline-icon, .secondary-button .inline-icon { margin-left: 4px; }
.cloud { position: absolute; width: 120px; height: 44px; border-radius: 99px; background: rgba(255,255,255,.62); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 55px; height: 55px; left: 20px; top: -23px; }.cloud::after { width: 42px; height: 42px; right: 20px; top: -15px; }
.cloud-one { top: 14%; left: 7%; }.cloud-two { top: 23%; right: 7%; transform: scale(.7); }

/* Games */
.game-shell { --game-color: var(--accent); min-height: 100dvh; overflow: hidden; position: relative; background: color-mix(in srgb, var(--game-color), #fff 91%); }
.game-shell::before, .game-shell::after { content: ""; position: fixed; z-index: 0; border-radius: 50%; background: color-mix(in srgb, var(--game-color), white 70%); }
.game-shell::before { width: 420px; height: 420px; top: -265px; left: -130px; }.game-shell::after { width: 280px; height: 280px; bottom: -190px; right: -70px; }
.game-header { width: min(920px, calc(100% - 40px)); height: 82px; margin: auto; display: grid; grid-template-columns: 52px 1fr auto 52px; align-items: center; gap: 15px; position: relative; z-index: 2; }
.round-back, .sound-round { width: 48px; height: 48px; border: 2px solid color-mix(in srgb, var(--game-color), #777 40%); border-radius: 16px; background: rgba(255,255,255,.75); box-shadow: 0 3px 0 color-mix(in srgb, var(--game-color), #777 55%); font-size: 23px; }
.round-progress { height: 14px; overflow: hidden; border: 3px solid white; border-radius: 99px; background: color-mix(in srgb, var(--game-color), white 68%); box-shadow: 0 2px 0 color-mix(in srgb, var(--game-color), #777 48%); }
.round-progress progress { width: 100%; height: 100%; display: block; }
.round-count { color: color-mix(in srgb, var(--game-color), #322a4d 50%); white-space: nowrap; }
.round-count strong { color: var(--ink); font-size: 21px; }
.game-main { width: min(860px, calc(100% - 36px)); min-height: calc(100dvh - 100px); position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin: auto; padding: 12px 0 35px; text-align: center; }
.world-tag { width: fit-content; margin-bottom: 9px; padding: 6px 12px; border-radius: 99px; background: white; color: color-mix(in srgb, var(--game-color), #322a4d 50%); font-size: 12px; }
.world-tag { display: inline-flex; align-items: center; gap: 6px; }
.tag-icon { width: 22px; height: 22px; }
.game-main h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(30px, 5vw, 48px); }
.target-shape { height: 150px; display: grid; place-items: center; margin-bottom: 16px; filter: drop-shadow(0 7px 0 rgba(54,45,79,.12)); font-size: 128px; line-height: 1; animation: floaty 2.6s ease-in-out infinite; }
.target-emoji { height: 150px; display: grid; place-items: center; margin-bottom: 16px; font-size: 105px; filter: drop-shadow(0 8px 0 rgba(54,45,79,.11)); animation: floaty 2.6s ease-in-out infinite; }
.target-asset { width: 132px; height: 132px; }
.scene-mascot { opacity: .82; }
.colour-sample .target-asset { width: 112px; height: 112px; }
.counting-mat { min-height: 145px; width: min(600px, 100%); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 5px 12px; margin-bottom: 20px; padding: 15px 28px; border: 3px dashed color-mix(in srgb, var(--game-color), white 20%); border-radius: 32px; background: rgba(255,255,255,.63); }
.counting-mat span { display: inline-block; font-size: clamp(42px, 7vw, 63px); animation: pop-in .35s backwards; }
.counting-item-0 { transform: rotate(-6.4deg); animation-delay: 0ms !important; }
.counting-item-1 { transform: rotate(-4.8deg); animation-delay: 55ms !important; }
.counting-item-2 { transform: rotate(-3.2deg); animation-delay: 110ms !important; }
.counting-item-3 { transform: rotate(-1.6deg); animation-delay: 165ms !important; }
.counting-item-4 { transform: rotate(0deg); animation-delay: 220ms !important; }
.counting-item-5 { transform: rotate(1.6deg); animation-delay: 275ms !important; }
.counting-item-6 { transform: rotate(3.2deg); animation-delay: 330ms !important; }
.counting-item-7 { transform: rotate(4.8deg); animation-delay: 385ms !important; }
.counting-item-8 { transform: rotate(6.4deg); animation-delay: 440ms !important; }
.counting-item-9 { transform: rotate(8deg); animation-delay: 495ms !important; }
.counting-mat.five-frame { width: min(420px, 100%); display: grid; grid-template-columns: repeat(5, 58px); grid-auto-rows: 58px; align-content: center; justify-content: center; gap: 7px; padding: 16px; border-style: solid; }
.counting-mat.five-frame span { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--game-color), white 45%); border-radius: 14px; transform: none; }
.counting-asset { width: 58px; height: 58px; }
.number-stage, .word-stage, .sequence-stage, .equation-stage { min-height: 145px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-family: var(--font-display); }
.number-stage, .word-stage { min-width: 150px; padding: 10px 25px; border: 3px solid color-mix(in srgb, var(--game-color), white 25%); border-radius: 30px; background: white; box-shadow: 0 6px 0 color-mix(in srgb, var(--game-color), white 40%); font-size: clamp(64px, 10vw, 98px); }
.word-stage { max-width: 560px; font-size: clamp(38px, 7vw, 68px); }
.sequence-stage { gap: 12px; }
.sequence-stage span { width: 78px; height: 78px; display: grid; place-items: center; border: 3px solid color-mix(in srgb, var(--game-color), white 25%); border-radius: 22px; background: white; box-shadow: 0 5px 0 color-mix(in srgb, var(--game-color), white 40%); font-size: 44px; }
.sequence-stage .blank { border-style: dashed; color: var(--game-color); }
.equation-stage { gap: 16px; }
.equation-stage > span { max-width: 250px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.equation-stage b { font-size: 50px; color: var(--game-color); }
.equation-asset { width: 43px; height: 43px; }
.story-card { width: min(590px, 100%); min-height: 130px; display: flex; align-items: center; gap: 22px; margin: 3px 0 24px; padding: 20px 28px; border: 3px solid color-mix(in srgb, var(--game-color), white 25%); border-radius: 29px; background: white; box-shadow: 0 6px 0 color-mix(in srgb, var(--game-color), white 40%); text-align: left; }
.quote-card p { font-style: italic; }
.ari-story { width: 76px; height: 76px; display: grid; place-items: center; flex: 0 0 auto; }.ari-story .asset-icon { width: 76px; height: 76px; }.story-card p { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 3vw, 25px); line-height: 1.2; }
.choice-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: auto; }
.choice-grid.count-2 { grid-template-columns: repeat(2, minmax(150px, 260px)); justify-content: center; }
.choice-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.answer-card { min-height: 116px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 3px solid color-mix(in srgb, var(--game-color), #777 36%); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 7px 0 color-mix(in srgb, var(--game-color), #777 52%); font-size: 16px; transition: transform .13s, box-shadow .13s; }
.answer-card:hover:not(:disabled) { transform: translateY(-4px); box-shadow: 0 11px 0 color-mix(in srgb, var(--game-color), #777 52%); }
.answer-card:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 2px 0 color-mix(in srgb, var(--game-color), #777 52%); }
.answer-card.wrong { border-color: #ee775f; animation: gentle-shake .3s ease; }
.answer-card.correct { border-color: #37b781; background: #eafff5; box-shadow: 0 7px 0 #249b6a; }
.choice-visual { width: 54px; height: 54px; display: grid; place-items: center; line-height: 1; }.choice-visual .asset-icon { width: 54px; height: 54px; }.shape-choice { width: 60px; height: 60px; }.shape-choice .asset-icon { width: 60px; height: 60px; }.number-choice { font-family: var(--font-display); font-size: 55px; line-height: 1; }.word-choice { font-family: var(--font-display); font-size: clamp(20px, 3vw, 29px); }
.quiz-colour-red { color: #e84c4c; }
.quiz-colour-blue { color: #557ee8; }
.quiz-colour-yellow { color: #f2b705; }
.quiz-colour-purple { color: #8f67db; }
.quiz-colour-pink { color: #ed6f9a; }
.quiz-colour-green { color: #39a98f; }
.quiz-colour-default { color: var(--ink); }
.picture-choice, .picture-choice .asset-icon { width: 68px; height: 68px; }
.mini-counting { max-width: 150px; display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; }
.mini-counting-asset { width: 29px; height: 29px; }
.answer-mark { position: absolute; top: -10px; right: -9px; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: #39bd82; color: white; }
.answer-mark .asset-icon { width: 19px; height: 19px; }
.feedback-slot { width: 100%; min-height: 82px; margin-top: 15px; }
.feedback { min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 10px 13px 10px 18px; border-radius: 22px; text-align: left; }
.feedback-icon { width: 38px; height: 38px; }.feedback p { margin: 0; }.feedback p strong { display: block; font-family: var(--font-display); font-size: 21px; }
.feedback.retry { background: #fff3e4; color: #8f582e; }.feedback.success { background: #ddfaed; color: #287856; }
.feedback.success .primary-button { margin-left: auto; }

/* Completed-world replay */
.replay-screen { min-height: 100dvh; display: grid; place-items: center; overflow-x: hidden; padding: 32px 18px; background: color-mix(in srgb, var(--accent), white 88%); }
.replay-card { width: min(680px, 100%); position: relative; padding: 38px; border: 4px solid white; border-radius: 38px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); text-align: center; }
.replay-world-icon { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 34px; background: color-mix(in srgb, var(--accent), white 58%); }
.replay-world-icon .world-asset { width: 76px; height: 76px; }
.replay-card h1 { margin-bottom: 12px; font-size: clamp(35px, 6vw, 49px); }
.replay-intro { max-width: 530px; margin: 0 auto 25px; color: var(--muted); line-height: 1.5; }
.practice-options { display: grid; gap: 12px; text-align: left; }
.practice-options > button { min-height: 78px; display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 13px; border: 2px solid #ded7ca; border-radius: 20px; padding: 12px 17px; background: white; box-shadow: 0 4px 0 #ded7ca; }
.practice-options > button:hover { border-color: var(--accent); transform: translateY(-2px); }
.practice-options > button > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent), white 76%); color: color-mix(in srgb, var(--accent), #31264d 42%); }
.practice-options > button > span .asset-icon { width: 31px; height: 31px; }
.practice-options > button div { display: flex; flex-direction: column; }
.practice-options strong { font-size: 16px; }
.practice-options small { margin-top: 2px; color: var(--muted); line-height: 1.35; }
.replay-progress { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.replay-progress progress { height: 9px; flex: 1; }
.replay-progress b { font-size: 12px; white-space: nowrap; }
.replay-legacy { margin-top: 22px; text-align: left; }

/* Reward */
.reward-screen { min-height: 100dvh; position: relative; display: grid; place-items: center; overflow: hidden; padding: 24px; background: color-mix(in srgb, var(--accent), white 83%); }
.reward-rays { position: absolute; width: 850px; height: 850px; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 12deg, transparent 12deg 27deg); animation: slow-spin 40s linear infinite; }
.reward-card { width: min(590px, 100%); position: relative; z-index: 1; padding: 42px; border: 4px solid white; border-radius: 40px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); text-align: center; }
.reward-mascot { width: 108px; height: 108px; position: relative; display: grid; place-items: center; margin: -93px auto 19px; filter: drop-shadow(0 7px 0 #d99d31); }
.reward-mascot .mascot-asset { width: 108px; height: 108px; max-width: 100%; max-height: 100%; }
.reward-card h1 { margin-bottom: 10px; font-size: clamp(40px, 7vw, 62px); }.reward-card > p:not(.eyebrow) { margin-bottom: 4px; color: var(--muted); }
.reward-skill-summary { color: #287856 !important; font-weight: 900; }
.earned-stars { display: flex; justify-content: center; gap: 8px; margin: 12px 0 29px; }
.earned-stars span { color: #ded9cf; font-size: clamp(58px, 12vw, 86px); line-height: 1; filter: drop-shadow(0 6px 0 #c5bba7); }
.earned-stars .asset-icon { width: 1em; height: 1em; }
.earned-stars span.earned { color: #ffc83e; filter: drop-shadow(0 6px 0 #d9901f); animation: star-pop .55s cubic-bezier(.2,.9,.2,1.4) both; }
.earned-stars span:nth-child(2) { animation-delay: 140ms; }
.earned-stars span:nth-child(3) { animation-delay: 280ms; }
.reward-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.reward-save-prompt { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; margin-top: 18px; padding: 13px; border: 2px solid #d8ccef; border-radius: 18px; background: #f7f3ff; color: var(--ink); text-align: left; }
.reward-save-prompt > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: white; color: var(--purple); }
.reward-save-prompt > span .asset-icon { width: 28px; height: 28px; }
.reward-save-prompt strong { display: block; font-size: 13px; }
.reward-save-prompt p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.reward-save-prompt .secondary-button { min-height: 44px; padding-inline: 13px; font-size: 11px; }
.movement-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(39,33,70,.67); backdrop-filter: blur(7px); }
.movement-card { width: min(500px, 100%); padding: 35px; border: 4px solid white; border-radius: 36px; background: #efffe8; box-shadow: var(--shadow); text-align: center; }
.tree-dance { width: 100px; height: 100px; margin: auto; transform-origin: bottom; animation: tree-sway 1.4s ease-in-out infinite alternate; }.tree-dance .asset-icon { width: 100px; height: 100px; }.movement-card h2 { margin: 8px 0 10px; font-size: 38px; }.movement-card p { color: #53694e; line-height: 1.55; }

/* Parent */
.parent-shell { min-height: 100dvh; background: radial-gradient(circle at 8% 10%, #eee9ff 0 170px, transparent 171px), radial-gradient(circle at 94% 34%, #e9f7f1 0 210px, transparent 211px), #f8f6f1; }
.parent-shell .secondary-button { border-color: var(--control-line); }
.parent-header { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 10px max(24px, calc((100% - 1080px) / 2)); border-bottom: 1px solid #e3ddd3; background: white; }
.parent-main { width: min(1080px, calc(100% - 40px)); margin: auto; padding: 48px 0 80px; }
.parent-title { margin-bottom: 0; }.parent-title h1 { margin-bottom: 5px; font-size: clamp(38px, 5vw, 52px); }.parent-title p:last-child { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; }.stat-grid article { min-height: 120px; display: flex; align-items: center; gap: 16px; padding: 22px; border: 2px solid #e3ddd3; border-radius: 23px; background: white; box-shadow: 0 4px 0 #e2dcd2; }.stat-grid article > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 16px; background: #f3efff; }.stat-grid article > span .asset-icon { width: 45px; height: 45px; }.stat-grid .stat-star { width: 34px; height: 34px; color: #f4bb3f; }.stat-grid strong { font-family: var(--font-display); font-size: 35px; line-height: .9; }.stat-grid p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.parent-panel { margin-top: 24px; padding: 28px; border: 2px solid #e3ddd3; border-radius: 26px; background: rgba(255,255,255,.94); box-shadow: 0 5px 0 rgba(65,52,105,.06), 0 18px 45px rgba(65,52,105,.045); }.parent-panel h2 { margin-bottom: 22px; font-size: 25px; }
.domain-list { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; }
.domain-evidence { overflow: hidden; border: 2px solid #e3ddd3; border-radius: 18px; background: #fff; }
.domain-evidence summary { list-style: none; cursor: pointer; }.domain-evidence summary::-webkit-details-marker { display: none; }
.domain-row { display: grid; grid-template-columns: 48px 1fr auto 20px; align-items: center; gap: 10px; padding: 13px; }
.domain-row::after { content: "+"; grid-column: 4; grid-row: 1; justify-self: end; color: var(--purple); font-size: 18px; }
.domain-evidence[open] .domain-row::after { content: "−"; }
.domain-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent), white 77%); }.domain-icon .asset-icon { width: 37px; height: 37px; }
.domain-row > div { min-width: 0; }.domain-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.domain-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }.domain-row > b { max-width: 95px; font-size: 12px; text-align: right; }
.parent-progress { height: 8px; display: block; margin-top: 6px; }.parent-progress progress { width: 100%; height: 8px; display: block; }
.domain-evidence-body { border-top: 1px solid #ebe5dc; padding: 14px; background: #fbfaf7; }
.legacy-note { margin: 0 0 12px; padding: 9px 11px; border-radius: 10px; background: #fff4dc; color: #76592a; font-size: 11px; line-height: 1.4; }
.evidence-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.evidence-metrics > span { min-height: 59px; display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border-radius: 11px; background: white; }.evidence-metrics b { font-size: 15px; }.evidence-metrics small { color: var(--muted); font-size: 9px; }
.skill-evidence-list { display: grid; gap: 6px; }
.skill-evidence-row { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; border-radius: 10px; background: white; }.skill-evidence-row > span:first-child { min-width: 0; display: flex; flex-direction: column; }.skill-evidence-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.skill-evidence-row small { color: var(--muted); font-size: 9px; }
.evidence-dots { display: flex; gap: 4px; }.evidence-dots i { width: 12px; height: 12px; border: 2px solid #cfc7ba; border-radius: 50%; background: white; }.evidence-dots i.filled { border-color: #37a879; background: #45bd8b; }
.settings-panel > button { width: 100%; min-height: 67px; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 11px; border: 0; border-top: 1px solid #ebe5dc; padding: 8px 0; background: white; text-align: left; }.settings-panel > button:first-of-type { border-top: 0; }.settings-panel > button > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--purple); }.settings-panel > button > span .asset-icon { width: 28px; height: 28px; }.settings-panel > button div { display: flex; flex-direction: column; }.settings-panel small { color: var(--muted); }.settings-panel em { padding: 5px 10px; border-radius: 9px; background: #eee9ff; color: var(--purple); font-style: normal; font-size: 12px; }
.danger-text { min-height: 44px; margin-top: 24px; border: 0; background: transparent; color: #c34646; font-size: 13px; text-decoration: underline; }.evidence-note { margin-top: 24px; background: #eef8ff; border-color: #bdd8e9; }
.danger-text.compact { min-height: 36px; margin: 0; }
.danger-button { min-height: 44px; border: 0; border-radius: 12px; padding: 0 16px; background: #b53d3d; color: white; font-weight: 900; }
.child-switcher { display: flex; flex-wrap: wrap; gap: 9px; margin: -8px 0 18px; }.child-switcher button { min-height: 44px; display: flex; align-items: center; gap: 7px; border: 2px solid #ddd5c8; border-radius: 14px; padding: 8px 14px; background: white; color: var(--ink); font-weight: 900; }.child-switcher button[aria-pressed="true"] { border-color: var(--purple); background: #eee9ff; color: var(--purple); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }.panel-heading h2 { margin: 0; }.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 20px; }
.profile-summary-card { min-width: 0; min-height: 82px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid #e3ddd3; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 rgba(65,52,105,.07); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.profile-summary-card.active { border-color: #8e78f5; background: #fdfcff; box-shadow: 0 0 0 3px rgba(108,77,246,.09), 0 4px 0 #cbbff3; }
.profile-select { min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 11px; border: 0; padding: 0; background: transparent; text-align: left; }
.profile-select > span:first-child { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: #f0eaff; }
.profile-select > span:first-child .asset-icon { width: 47px; height: 47px; }
.profile-identity { min-width: 0; display: flex; flex-direction: column; }
.profile-identity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.profile-identity small { color: var(--muted); font-size: 12px; }
.profile-select em { padding: 5px 9px; border-radius: 99px; background: #eee9ff; color: var(--purple); font-style: normal; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.edit-profile-button { min-width: 64px; min-height: 42px; border: 2px solid #ded6ca; border-radius: 13px; padding: 0 14px; background: #fff; color: var(--purple); box-shadow: 0 3px 0 #d8d0c4; font-weight: 900; }
.edit-profile-button:hover, .edit-profile-button[aria-expanded="true"] { border-color: #9c89ec; background: #eee9ff; box-shadow: 0 3px 0 #c6b9f2; }
.profile-card { overflow: hidden; border: 2px solid #d9d0ee; border-radius: 22px; background: #fbfaf7; }
.profile-editor { margin-top: 16px; animation: card-in .22s ease both; }
.profile-editor-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #e9e2f5; background: #f5f1ff; }
.profile-editor-header h3 { margin: 0; font-family: var(--font-display); font-size: 21px; }
.profile-editor-header p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.profile-edit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); align-items: start; gap: 20px 18px; padding: 22px; }
.profile-edit-grid .avatar-field { grid-column: 1 / -1; margin-bottom: 0; }
.form-field { min-width: 0; display: grid; gap: 7px; }
.form-field > label, .profile-age-field legend { color: #4e4765; font-size: 12px; font-weight: 900; letter-spacing: .01em; }
.field-control { min-height: 56px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 2px solid var(--control-line); border-radius: 16px; background: white; box-shadow: 0 3px 0 #d8d0c4; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.field-control:hover { border-color: #bcb0df; }
.field-control:focus-within { border-color: var(--purple); background: #fdfcff; box-shadow: 0 0 0 4px rgba(108,77,246,.14), 0 3px 0 #c6b9f2; }
.field-control:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.field-control input { width: 100%; min-width: 0; height: 52px; border: 0; outline: 0; padding: 0 12px 0 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 800; }
.field-control input::placeholder { color: #938da1; font-weight: 700; opacity: 1; }
.field-control input:focus-visible { outline: 0; }
.field-icon { width: 44px; display: grid; place-items: center; color: var(--purple); }
.field-icon .asset-icon { width: 23px; height: 23px; }
.field-action { width: 44px; height: 44px; display: grid; place-items: center; margin-right: 4px; border: 0; border-radius: 13px; background: transparent; color: var(--purple); }
.field-action:hover, .field-action[aria-pressed="true"] { background: #eee9ff; }
.field-action .asset-icon { width: 22px; height: 22px; }
.field-hint, .profile-age-field > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-age-field > p { margin-top: 7px; }
.form-field:has(input:user-invalid) .field-control { border-color: #c95a5a; box-shadow: 0 0 0 3px rgba(201,90,90,.1); }
.profile-age-field { min-width: 0; margin: 0; border: 0; padding: 0; }
.profile-age-field legend { margin-bottom: 2px; padding: 0; }
.profile-age-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 5px; }
.profile-age-options label { position: relative; }
.profile-age-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-age-options span { min-height: 56px; display: grid; place-items: center; border: 2px solid var(--control-line); border-radius: 14px; background: white; color: #514b68; box-shadow: 0 3px 0 #d8d0c4; font-family: var(--font-display); font-size: 20px; font-weight: 800; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.profile-age-options span:hover { border-color: #ad9ee6; transform: translateY(-1px); }
.profile-age-options input:checked + span { border-color: var(--purple); background: #eee9ff; color: var(--purple); box-shadow: 0 3px 0 #b9a8ee; }
.profile-age-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.profile-editor-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 2px; }
.profile-save { flex: 1; width: 100%; min-height: 52px; }
.profile-editor-actions .danger-text { flex: 0 0 auto; margin: 0; padding-inline: 10px; }
.profile-save.saved { border-color: #45a77b; background: #ecf9f2; color: #237352; box-shadow: 0 4px 0 #b9dfcc; }
.account-intro { max-width: 690px; margin-bottom: 20px; color: var(--muted); line-height: 1.6; }
.privacy-consent { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: #fffdf8; color: var(--muted); font-size: 13px; line-height: 1.45; }
.privacy-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--purple); }
.privacy-consent a { color: var(--purple-dark); }
.static-page-body { min-height: 100dvh; overflow-x: hidden; background: linear-gradient(145deg, #fff8e8, #f4efff 58%, #eaf8ee); }
.static-page-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 38px; }
.static-brand { width: fit-content; flex: 0 0 auto; color: var(--ink); text-decoration: none; }
.static-brand:focus-visible, .static-language-switch a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.static-language-switch { display: flex; flex: 0 0 auto; gap: 4px; border: 2px solid #e0d9ce; border-radius: 15px; padding: 4px; background: #f3f0eb; }
.static-language-switch a { min-width: 43px; min-height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 900; text-decoration: none; }
.static-language-switch a[aria-current="page"] { background: white; color: var(--purple); box-shadow: 0 3px 7px rgba(56,43,98,.13); }
.static-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); text-align: center; text-decoration: none; }
.privacy-page { min-height: 100dvh; padding: 40px 20px; }
.privacy-card { width: min(820px, 100%); margin: auto; padding: clamp(24px, 5vw, 52px); border: 2px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.privacy-card h1 { font-size: clamp(32px, 6vw, 48px); }
.privacy-card h2 { margin-top: 30px; font-size: 23px; line-height: 1.2; }
.privacy-card p { line-height: 1.65; }
.privacy-card .privacy-back { display: flex; justify-content: flex-end; margin-bottom: 0; }
.privacy-card a:not(.secondary-button):not(.static-brand) { color: var(--purple-dark); }
.not-found-page { min-height: 100dvh; position: relative; display: grid; place-items: center; overflow: hidden; padding: 34px 20px; }
.not-found-orb { position: absolute; border-radius: 50%; opacity: .82; }
.orb-one { width: 380px; height: 380px; top: -180px; right: -100px; background: #ded5ff; }
.orb-two { width: 290px; height: 290px; bottom: -140px; left: -75px; background: #ccefd9; }
.not-found-card { width: min(700px, 100%); position: relative; z-index: 1; overflow: hidden; border: 3px solid #e1d8cc; border-radius: 38px; padding: clamp(26px, 5vw, 52px); background: rgba(255,253,247,.97); box-shadow: var(--shadow); text-align: center; }
.not-found-card::before { content: ""; width: 130px; height: 130px; position: absolute; top: -68px; left: -54px; border-radius: 42% 58% 51% 49%; background: #ffe0d9; transform: rotate(18deg); }
.not-found-card .static-page-header { position: relative; z-index: 1; }
.not-found-status { width: fit-content; margin: 0 auto 14px; border-radius: 99px; padding: 7px 12px; background: #eee9ff; color: var(--purple-dark); font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }
.not-found-code { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 2vw, 13px); color: var(--purple); font-family: var(--font-display); font-size: clamp(82px, 18vw, 132px); font-weight: 900; line-height: .75; letter-spacing: -7px; }
.not-found-mascot { width: clamp(78px, 16vw, 112px); height: clamp(78px, 16vw, 112px); display: grid; place-items: center; border: 5px solid #ffc75c; border-radius: 50% 50% 46% 46%; background: #ffd97f; box-shadow: 0 7px 0 #d99a31; transform: rotate(5deg); }
.not-found-mascot .asset-icon { width: 92%; height: 92%; }
.not-found-card h1 { margin: 28px 0 7px; font-size: clamp(33px, 6vw, 50px); letter-spacing: -1.1px; }
.not-found-copy { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.not-found-path { max-width: 100%; display: inline-block; overflow: hidden; margin-bottom: 25px; border: 1px solid #dfd7cb; border-radius: 9px; padding: 7px 10px; background: #f5f1eb; color: #665f77; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.not-found-actions .primary-button { color: white; }
.auth-mode { width: min(100%, 520px); display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 auto 14px; padding: 5px; border: 2px solid #e0d9ce; border-radius: 18px; background: #f3f0eb; }
.auth-mode button { min-height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 900; }
.auth-mode button[aria-pressed="true"] { background: white; color: var(--purple); box-shadow: 0 3px 8px rgba(56,43,98,.11); }
.auth-form { display: grid; gap: 17px; padding: 22px; border: 2px solid #e3ddd3; border-radius: 21px; background: #fbfaf8; }
.featured-auth-form { width: min(100%, 680px); margin-inline: auto; }
.auth-form-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 2px; }
.auth-form-heading > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: #eee9ff; }
.auth-form-heading .asset-icon { width: 31px; height: 31px; }
.auth-form-heading h3 { margin: 0; font-family: var(--font-display); font-size: 22px; }
.auth-form-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.auth-submit { width: 100%; min-height: 54px; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #b53d3d; font-size: 13px; }
.sync-badge { padding: 6px 10px; border-radius: 99px; background: #def6e8; color: #25704b; font-size: 10px; font-weight: 900; letter-spacing: .08em; }.sync-badge.error { background: #ffe5e5; color: #a43a3a; }.sync-status { padding: 13px; border-radius: 12px; background: #f5f1ff; color: #55447e; }.account-actions { display: flex; flex-wrap: wrap; gap: 9px; }.account-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.remove-device-data { margin-top: 14px; text-align: left; }
.delete-account { margin-top: 22px; border-top: 1px solid #ebe5dc; padding-top: 17px; color: #a43a3a; }.delete-account summary { min-height: 36px; cursor: pointer; font-size: 12px; }.delete-account form { max-width: 680px; display: grid; gap: 13px; margin-top: 12px; }.delete-account .danger-button { min-height: 50px; }
.recovery-code { display: grid; gap: 9px; margin: 14px 0; padding: 16px; border: 2px solid #e0b84c; border-radius: 15px; background: #fff8dc; }.recovery-code p { margin: 0; color: #6d5928; font-size: 12px; }.recovery-code code { overflow-wrap: anywhere; padding: 10px; border-radius: 9px; background: white; user-select: all; }.recovery-code button { justify-self: start; }
.recover-account { width: min(100%, 680px); margin: 18px auto 0; }.recover-account summary { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; cursor: pointer; color: var(--purple); font-size: 13px; font-weight: 900; text-align: right; }.recover-account .auth-form { margin-top: 10px; }.recover-form { background: white; }
.recovery-manager { margin-top: 16px; }.recovery-manager summary { min-height: 38px; cursor: pointer; color: var(--purple); font-size: 12px; font-weight: 900; }.recovery-manager form { max-width: 680px; display: grid; gap: 13px; margin-top: 10px; }

.confirm-dialog { width: min(430px, calc(100% - 28px)); max-width: none; border: 0; padding: 0; border-radius: 26px; background: transparent; color: var(--ink); }
.confirm-dialog::backdrop { background: rgba(35, 29, 59, .58); backdrop-filter: blur(3px); }
.confirm-dialog-card { padding: 30px; border: 3px solid #ded5ca; border-radius: 26px; background: white; box-shadow: 0 18px 55px rgba(35, 29, 59, .24); text-align: center; }
.confirm-dialog-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; background: #ffe9e7; color: #b53d3d; }
.confirm-dialog-icon .asset-icon { width: 35px; height: 35px; }
.confirm-dialog h2 { margin-bottom: 10px; font-size: 27px; }
.confirm-dialog p { margin-bottom: 23px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.confirm-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-dialog-actions button { min-height: 50px; }

/* Adult gate */
.gate-screen { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: #eee9ff; }.gate-card { width: min(440px, 100%); position: relative; padding: 37px; border: 3px solid #ddd3c5; border-radius: 30px; background: white; box-shadow: var(--shadow); text-align: center; }.gate-icon { display: block; width: 58px; height: 58px; margin: 0 auto 11px; }.gate-icon .asset-icon { width: 58px; height: 58px; }.gate-card h1 { margin-bottom: 13px; font-size: 36px; }.gate-card > p { color: var(--muted); }.gate-card form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 22px; text-align: left; }.gate-form-field { gap: 6px; }.gate-card .field-control input { height: 52px; padding-right: 10px; font-size: 22px; text-align: center; }.gate-card form > .primary-button { min-height: 56px; }.modal-close { position: absolute; top: 13px; right: 13px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 13px; background: #f2eee8; }.gate-error { min-height: 22px; margin: 15px 0 0; color: #c34646 !important; font-size: 13px; }

.confetti-layer { position: fixed; z-index: 100; inset: 0; overflow: hidden; pointer-events: none; }.confetti-layer i { --rotation: 15deg; position: absolute; top: -20px; width: 13px; height: 18px; border-radius: 4px; background: #ff826e; transform: rotate(var(--rotation)); animation: confetti-fall 1.6s cubic-bezier(.2,.75,.45,1) forwards; }
.confetti-layer i:nth-child(10n + 1) { left: 5%; }.confetti-layer i:nth-child(10n + 2) { left: 15%; }.confetti-layer i:nth-child(10n + 3) { left: 25%; }.confetti-layer i:nth-child(10n + 4) { left: 35%; }.confetti-layer i:nth-child(10n + 5) { left: 45%; }.confetti-layer i:nth-child(10n + 6) { left: 55%; }.confetti-layer i:nth-child(10n + 7) { left: 65%; }.confetti-layer i:nth-child(10n + 8) { left: 75%; }.confetti-layer i:nth-child(10n + 9) { left: 85%; }.confetti-layer i:nth-child(10n) { left: 95%; }
.confetti-layer i:nth-child(7n + 1) { --rotation: 28deg; animation-delay: 40ms; }.confetti-layer i:nth-child(7n + 2) { --rotation: 94deg; animation-delay: 170ms; }.confetti-layer i:nth-child(7n + 3) { --rotation: 151deg; animation-delay: 290ms; }.confetti-layer i:nth-child(7n + 4) { --rotation: 207deg; animation-delay: 90ms; }.confetti-layer i:nth-child(7n + 5) { --rotation: 266deg; animation-delay: 390ms; }.confetti-layer i:nth-child(7n + 6) { --rotation: 319deg; animation-delay: 230ms; }.confetti-layer i:nth-child(7n) { --rotation: 347deg; animation-delay: 330ms; }
.confetti-layer i:nth-child(5n + 1) { background: #ff826e; }.confetti-layer i:nth-child(5n + 2) { background: #5c8ff4; }.confetti-layer i:nth-child(5n + 3) { background: #45bd8b; }.confetti-layer i:nth-child(5n + 4) { background: #f4bb3f; }.confetti-layer i:nth-child(5n) { background: #8f67db; }

progress { appearance: none; -webkit-appearance: none; overflow: hidden; border: 0; border-radius: 99px; background: rgba(255,255,255,.78); }
progress::-webkit-progress-bar { border-radius: inherit; background: rgba(255,255,255,.78); }
progress::-webkit-progress-value { border-radius: inherit; background: var(--accent, var(--purple)); transition: width .35s ease; }
progress::-moz-progress-bar { border-radius: inherit; background: var(--accent, var(--purple)); transition: width .35s ease; }
.round-progress progress { --accent: var(--game-color); background: transparent; }
.round-progress progress::-webkit-progress-bar { background: transparent; }

@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.3); } }
@keyframes gentle-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes star-pop { from { opacity: 0; transform: scale(.2) rotate(-30deg); } }
@keyframes tree-sway { to { transform: rotate(8deg); } }
@keyframes hold-progress { to { transform: scaleX(1); } }
@keyframes confetti-fall { to { top: 105vh; transform: rotate(calc(var(--rotation) + 520deg)); } }

@media (min-width: 761px) and (max-width: 900px) {
  .world-card { grid-template-columns: 105px 1fr; gap: 14px; padding: 20px; }
  .world-art { width: 100px; height: 100px; font-size: 56px; }
  .world-asset { width: 70px; height: 70px; }
  .world-copy strong { padding-right: 30px; font-size: 27px; }
  .world-skill { max-width: calc(100% - 25px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .play-arrow { width: 38px; height: 38px; right: 15px; top: 15px; }
}

@media (max-width: 760px) {
  .static-page-header { margin-bottom: 30px; }.static-page-header .brand { font-size: 21px; }.static-page-header .brand-mark { width: 37px; height: 37px; border-radius: 12px; }.static-language-switch a { min-width: 39px; min-height: 36px; }
  .privacy-page { padding: 18px 12px; }.privacy-card { padding: 26px 20px; border-radius: 24px; }.privacy-card h2 { font-size: 21px; }.privacy-card p { font-size: 14px; }
  .not-found-page { padding: 18px 12px; }.not-found-card { border-radius: 29px; padding: 28px 18px; }.not-found-card h1 { margin-top: 24px; }.not-found-actions { align-items: stretch; flex-direction: column; }.not-found-actions .static-link-button { width: 100%; }
  .topbar { height: 75px; padding-inline: 16px; }.brand { font-size: 21px; }.brand-mark { width: 37px; height: 37px; border-radius: 12px; }.star-label { display: none; }.star-pill { min-height: 44px; padding: 0 11px; }.icon-button { width: 44px; height: 44px; }
  .world-main { width: min(100% - 28px, 550px); margin-top: 15px; }.welcome-row { align-items: center; margin-bottom: 20px; }.welcome-row h1 { font-size: 35px; }.welcome-row p:last-child { font-size: 15px; }.ari-bubble { display: none; }
  .world-grid { grid-template-columns: 1fr; gap: 17px; }.world-card { min-height: 162px; grid-template-columns: 93px 1fr; gap: 15px; padding: 19px; border-radius: 27px; box-shadow: 0 7px 0 color-mix(in srgb, var(--accent), #654a68 24%), 0 12px 22px color-mix(in srgb, var(--accent), transparent 81%); }.world-art { width: 86px; height: 86px; font-size: 46px; }.world-orbit { inset: -6px; border-width: 2px; }.world-copy strong { padding-right: 32px; font-size: 26px; }.world-description { font-size: 13px; }.world-replay { font-size: 10px; }.world-progress { margin-top: -4px; }.play-arrow { width: 38px; height: 38px; right: 14px; top: 14px; }.together-card { margin-top: 21px; }
  .world-asset { width: 62px; height: 62px; }
  .bottom-nav { width: calc(100% - 24px); max-width: 390px; }.bottom-nav button { flex: 1; min-width: 0; font-size: 12px; }
  .setup-screen { padding-top: 70px; }.setup-card { padding: 34px 22px 25px; border-radius: 30px; }.age-options { gap: 5px; }.age-options span { height: 54px; border-radius: 14px; }.avatar-options { grid-template-columns: repeat(3, 1fr); }.setup-auth-form { padding: 15px; }.cloud { display: none; }
  .game-header { width: calc(100% - 24px); grid-template-columns: 45px 1fr auto 45px; gap: 8px; }.round-back, .sound-round { width: 43px; height: 43px; border-radius: 14px; }.game-main { width: calc(100% - 24px); padding-top: 2px; }.game-main h1 { margin-bottom: 13px; font-size: 31px; }.target-shape, .target-emoji { height: 112px; margin-bottom: 10px; font-size: 92px; }.target-emoji { font-size: 83px; }.counting-mat, .number-stage, .word-stage, .sequence-stage, .equation-stage { min-height: 112px; margin-bottom: 14px; }.counting-mat { padding: 10px 15px; border-radius: 25px; }.counting-mat span { font-size: 43px; }.counting-mat.five-frame { grid-template-columns: repeat(5, 43px); grid-auto-rows: 43px; }.counting-mat.five-frame span { width: 43px; height: 43px; }.number-stage { font-size: 67px; }.word-stage { font-size: 38px; }.sequence-stage { gap: 7px; }.sequence-stage span { width: 58px; height: 58px; font-size: 34px; }.equation-stage { gap: 8px; }.equation-asset { width: 34px; height: 34px; }.story-card { min-height: 110px; gap: 12px; margin-bottom: 18px; padding: 14px 17px; }.ari-story { font-size: 54px; }.story-card p { font-size: 19px; }
  .target-asset { width: 98px; height: 98px; }.counting-asset { width: 43px; height: 43px; }.ari-story, .ari-story .asset-icon { width: 57px; height: 57px; }
  .choice-grid, .choice-grid.count-2, .choice-grid.count-3 { grid-template-columns: repeat(2, 1fr); gap: 11px; }.answer-card { min-height: 95px; border-radius: 20px; box-shadow: 0 6px 0 color-mix(in srgb, var(--game-color), #777 52%); }.choice-visual { font-size: 38px; }.shape-choice { font-size: 49px; }.number-choice { font-size: 48px; }.feedback-slot { min-height: 77px; margin-top: 12px; }.feedback { min-height: 67px; }
  .replay-card { padding: 30px 17px 22px; border-radius: 30px; }.replay-world-icon { width: 86px; height: 86px; }.replay-world-icon .world-asset { width: 62px; height: 62px; }.practice-options > button { min-height: 76px; padding: 10px 12px; }.practice-options > button > span { width: 42px; height: 42px; }.replay-progress { align-items: flex-start; flex-direction: column; }.replay-progress > span { width: 100%; flex: 0 0 9px; }
  .reward-card { padding: 38px 22px 25px; border-radius: 31px; }.reward-actions { grid-template-columns: 1fr; }.reward-save-prompt { grid-template-columns: 42px 1fr; }.reward-save-prompt > span { width: 42px; height: 42px; }.reward-save-prompt .secondary-button { grid-column: 1 / -1; width: 100%; }.earned-stars span { font-size: 65px; }.movement-card { padding: 28px 20px; }
  .parent-header { height: 72px; padding: 10px 16px; }.parent-header .secondary-button { min-height: 45px; padding-inline: 13px; font-size: 12px; }.parent-main { width: calc(100% - 28px); padding: 31px 0 55px; }.stat-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }.stat-grid article { min-height: 92px; padding: 15px 18px; }.domain-list { grid-template-columns: 1fr; }.parent-panel { margin-top: 18px; padding: 20px; }.evidence-note { margin-top: 18px; }.gate-card { padding: 34px 22px; }
  .profile-list { grid-template-columns: 1fr; }.profile-summary-card { min-height: 78px; }.profile-select { flex: 1; }.profile-select em { display: none; }.profile-edit-grid { grid-template-columns: 1fr; padding: 17px; }.field-control { min-height: 58px; }.profile-age-options span { min-height: 48px; }.auth-form { padding: 18px; }.delete-account form, .recovery-manager form { width: 100%; }
}

@media (max-width: 390px) {
  .quick-settings .language-button { display: none; }.welcome-row h1 { font-size: 31px; }.world-card { grid-template-columns: 78px 1fr; }.world-art { width: 72px; height: 72px; font-size: 40px; }.world-asset { width: 52px; height: 52px; }.world-card { padding: 17px 15px; }.world-copy strong { font-size: 23px; }.world-skill { font-size: 9px; }.setup-card h1 { font-size: 30px; }.setup-card { padding-inline: 17px; }.age-options span { height: 50px; font-size: 21px; }
  .game-main h1 { font-size: 28px; }.answer-card { min-height: 90px; }.word-choice { font-size: 19px; }.feedback.success .primary-button { padding-inline: 14px; }
  .parent-main { width: calc(100% - 20px); }.parent-panel { padding: 17px; border-radius: 22px; }.panel-heading { align-items: flex-start; }.panel-heading .primary-button { min-height: 46px; padding-inline: 13px; font-size: 12px; }.profile-summary-card { padding: 11px; }.profile-select > span:first-child { width: 48px; height: 48px; }.profile-select > span:first-child .asset-icon { width: 43px; height: 43px; }.edit-profile-button { min-width: 57px; padding-inline: 10px; }.profile-edit-grid { padding: 15px; }.profile-age-options { gap: 5px; }.profile-age-options span { min-height: 46px; border-radius: 12px; font-size: 18px; }.profile-editor-actions { align-items: stretch; flex-direction: column; }.profile-editor-actions .danger-text { align-self: center; }.auth-mode { width: 100%; }.auth-mode button { font-size: 12px; }.auth-form-heading h3 { font-size: 20px; }
  .confirm-dialog-card { padding: 25px 18px 20px; }.confirm-dialog-actions { grid-template-columns: 1fr; }.confirm-dialog-actions [data-confirm="cancel"] { order: 2; }
}

@media (max-height: 700px) and (orientation: landscape) {
  .game-header { height: 64px; }.game-main { width: min(920px, calc(100% - 30px)); min-height: calc(100dvh - 70px); display: grid; grid-template-columns: .8fr 1.25fr; grid-template-rows: auto auto 1fr; column-gap: 24px; align-items: center; }.world-tag { grid-column: 1 / -1; justify-self: center; margin: 0; }.game-main h1 { grid-column: 1 / -1; margin: 0 0 4px; font-size: 26px; }.target-shape, .target-emoji, .counting-mat, .story-card, .number-stage, .word-stage, .sequence-stage, .equation-stage { grid-column: 1; grid-row: 3; margin: 0; }.choice-grid, .choice-grid.count-2, .choice-grid.count-3 { grid-column: 2; grid-row: 3; margin: 0; grid-template-columns: repeat(2, 1fr); }.answer-card { min-height: 76px; }.feedback-slot { position: fixed; z-index: 5; right: 12px; bottom: 10px; width: min(460px, 50vw); min-height: 0; }.feedback { min-height: 62px; }.story-card { min-height: 90px; }.counting-mat, .number-stage, .word-stage, .sequence-stage, .equation-stage { min-height: 105px; }.target-shape, .target-emoji { height: 105px; }
  .setup-screen { padding-block: 64px 20px; }.setup-card { padding-top: 28px; }.setup-copy { margin-bottom: 12px; }.age-field { margin-block: 12px; }.setup-card .big-button { min-height: 50px; }.trust-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
