@layer reset, base, components, pages, polish, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; min-width: 320px; }
  button, a, input, select, textarea { font: inherit; }
  button { color: inherit; }
  img, video, svg { display: block; max-width: 100%; }
}

@layer base {
  :root {
    --ink: #102348;
    --muted-ink: #50617f;
    --paper: #fffaf0;
    --white: #fff;
    --coral: #ff5b50;
    --yellow: #ffd83d;
    --aqua: #55d7d2;
    --blue: #3479f4;
    --purple: #7549ea;
    --pink: #f35294;
    --green: #98d64a;
    --line: rgba(16, 35, 72, .12);
    --soft-shadow: 0 18px 60px rgba(23, 42, 82, .14);
    --deep-shadow: 0 30px 90px rgba(23, 42, 82, .24);
    --spring: cubic-bezier(.2, .85, .25, 1.18);
    --smooth: cubic-bezier(.2, .75, .25, 1);
    font-family: ui-rounded, "Avenir Next Rounded", "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
  }

  body { background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; }
  body.is-play { overflow: hidden; }
  body.is-adult { overflow-x: hidden; }
  a { color: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 4px solid #174ac6; outline-offset: 4px; }
  h1, h2, p { text-wrap: pretty; }
}

@layer components {
  .app-shell { min-height: 100svh; }
  .loading-screen { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(145deg, #69d8d8, #fff0a4); color: var(--ink); }
  .loading-screen img { width: 90px; height: 90px; object-fit: contain; border-radius: 26px; animation: loading-bob 1.5s ease-in-out infinite alternate; }
  .loading-screen p { margin: 4px 0 0; display: flex; align-items: baseline; font-size: 1.8rem; font-weight: 950; letter-spacing: -.08em; }
  .loading-screen p b { color: #1968c5; }
  .loading-screen p strong { margin-left: .16em; color: #ef3f7b; }
  .loading-screen > span { color: var(--muted-ink); font-weight: 750; }
  .brand-lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
  .brand-lockup img { width: 43px; height: 43px; object-fit: contain; border-radius: 12px; }
  .brand-lockup > span { display: flex; align-items: baseline; font-size: 1.25rem; font-weight: 900; letter-spacing: -.07em; line-height: 1; }
  .brand-lockup b { color: #1968c5; }
  .brand-lockup strong { color: #ef3f7b; margin-left: .16em; }

  .play-header {
    position: fixed; z-index: 40; inset: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 42px) auto;
    display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  }
  .play-header > * { pointer-events: auto; }
  .play-header .brand-lockup { padding: 7px 14px 7px 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 12px 38px rgba(16,35,72,.12); backdrop-filter: blur(18px); }
  .play-header__actions { display: flex; gap: 8px; }
  .header-button { min-height: 48px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.68); border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 12px 38px rgba(16,35,72,.12); backdrop-filter: blur(18px); font-size: .92rem; font-weight: 850; cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .header-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .primary-button, .secondary-button, .apple-button, .back-to-play {
    min-height: 52px; padding: 13px 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 850; cursor: pointer;
    transition: transform .24s var(--spring), box-shadow .24s ease, background-color .24s ease, border-color .24s ease;
  }
  .primary-button { border: 2px solid var(--ink); background: var(--ink); color: white; box-shadow: 0 10px 0 rgba(16,35,72,.12); }
  .secondary-button { border: 2px solid var(--line); background: white; }
  .primary-button:hover, .secondary-button:hover, .apple-button:hover { transform: translateY(-2px); }
  .primary-button:active, .secondary-button:active, .apple-button:active { transform: translateY(1px); }
  .apple-button { border: 0; background: var(--ink); color: white; }
  .apple-button svg, .back-to-play svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .eyebrow { margin: 0 0 9px; color: #36547b; font-size: .8rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
  .icon-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.8rem; line-height: 1; cursor: pointer; }
  .chevron { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  dialog { color: var(--ink); }
  dialog::backdrop { background: rgba(6, 17, 42, .5); backdrop-filter: blur(8px); }
  .sheet { width: min(820px, calc(100% - 24px)); max-height: calc(100svh - 24px); margin: auto auto 0; padding: 28px; border: 0; border-radius: 36px 36px 0 0; background: var(--paper); box-shadow: var(--deep-shadow); }
  .sheet[open] { animation: sheet-in .34s cubic-bezier(.2,.8,.2,1); }
  .sheet__handle { width: 56px; height: 5px; margin: -13px auto 23px; border-radius: 999px; background: rgba(16,35,72,.14); }
  .sheet__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
  .sheet__heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.055em; line-height: 1; }
  .sheet-note { margin: 20px 0 0; color: var(--muted-ink); text-align: center; }

  .language-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 25px; }
  .language-choice { min-height: 76px; padding: 10px 14px; border: 2px solid transparent; border-radius: 21px; background: white; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
  .language-choice:hover { border-color: var(--line); transform: translateY(-1px); }
  .language-choice.is-current { border-color: var(--purple); background: #f4efff; }
  .language-choice__code { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: white; display: grid; place-items: center; font-size: .82rem; font-weight: 900; }
  .language-choice__copy { min-width: 0; display: grid; }
  .language-choice__copy b { font-size: .92rem; }
  .language-choice__copy span { color: var(--muted-ink); font-size: 1.03rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .checkmark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; font-weight: 900; }

  .sign-layout { display: grid; grid-template-columns: minmax(280px, 1.25fr) minmax(180px, .75fr); gap: 24px; margin-top: 24px; align-items: center; }
  .sign-video-wrap { min-height: 340px; border-radius: 28px; background: linear-gradient(145deg, #daf9f7, #eef3ff); display: grid; place-items: center; overflow: hidden; }
  .sign-video-wrap video { width: 100%; max-height: 52svh; object-fit: contain; }
  .sign-copy { padding: 10px; }
  .sign-copy p { margin: 12px 0 20px; font-size: 1.15rem; }
  .sign-hand { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: var(--yellow); font-size: 2.4rem; transform: rotate(-5deg); }

  .grown-up-menu { width: min(480px, calc(100% - 24px)); height: calc(100svh - 24px); max-height: none; margin: 12px 12px 12px auto; padding: 0; border: 0; border-radius: 34px; background: var(--paper); box-shadow: var(--deep-shadow); }
  .grown-up-menu[open] { animation: menu-in .32s cubic-bezier(.2,.8,.2,1); }
  .grown-up-menu__panel { min-height: 100%; padding: 28px; display: flex; flex-direction: column; }
  .grown-up-links { display: grid; gap: 10px; margin-top: 30px; }
  .grown-up-links a { min-height: 78px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 21px; background: white; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; text-decoration: none; }
  .grown-up-links a:hover { border-color: rgba(117,73,234,.35); background: #f7f3ff; }
  .grown-up-links b, .grown-up-links small { display: block; }
  .grown-up-links small { margin-top: 2px; color: var(--muted-ink); }
  .grown-up-menu__footer { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted-ink); font-size: .85rem; }

  .toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; box-shadow: var(--deep-shadow); font-weight: 750; transform: translate(-50%, 22px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

  .fatal-state { min-height: 70svh; padding: 80px 24px; display: grid; place-content: center; justify-items: start; }
  .fatal-state h1 { max-width: 780px; margin: 18px 0; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.08em; line-height: .9; }
}

@layer pages {
  .learning-world { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; touch-action: pan-y; background: linear-gradient(145deg, var(--world-bg), color-mix(in srgb, var(--world-bg) 45%, #fff3ac)); }
  .learning-world::before { content: ''; position: absolute; z-index: -3; width: 72vw; height: 72vw; top: -47vw; right: -22vw; border-radius: 50%; background: rgba(255,255,255,.24); }
  .learning-world::after { content: ''; position: absolute; z-index: -3; width: 55vw; height: 30vw; bottom: -22vw; left: -10vw; border: 3px solid rgba(255,255,255,.34); border-radius: 50%; transform: rotate(-14deg); }
  .scribble { position: absolute; z-index: -2; width: 170px; height: 80px; border: 4px solid rgba(255,255,255,.38); border-color: rgba(255,255,255,.38) transparent transparent; border-radius: 50%; pointer-events: none; }
  .scribble--a { top: 16%; left: 4%; transform: rotate(-22deg); }
  .scribble--b { right: 5%; bottom: 24%; transform: rotate(168deg); }
  .floating-word { position: absolute; z-index: -2; font-weight: 950; letter-spacing: -.08em; color: rgba(16,35,72,.11); user-select: none; }
  .floating-word--a { top: 14%; right: 3%; font-size: clamp(3rem, 7vw, 7rem); transform: rotate(7deg); }
  .floating-word--b { left: 2%; bottom: 20%; font-size: clamp(2.4rem, 5vw, 5rem); transform: rotate(-9deg); }

  .world-stage { width: min(1600px, 100%); height: 100svh; margin: 0 auto; padding: clamp(74px, 9vh, 104px) clamp(64px, 6vw, 108px) clamp(106px, 13vh, 132px); display: grid; grid-template-columns: minmax(460px, 1fr) minmax(300px, .42fr); align-items: center; justify-items: center; gap: clamp(34px, 5vw, 90px); position: relative; }
  .scene-wrap { min-width: 0; display: grid; place-items: center; }
  .scene-button { position: relative; width: min(74vh, 780px, 56vw); aspect-ratio: 1; padding: 0; border: 0; border-radius: clamp(26px, 3.2vw, 48px); background: white; box-shadow: var(--deep-shadow); cursor: pointer; transform: rotate(-.8deg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .scene-button::before { content: ''; position: absolute; z-index: -1; inset: -12px; border: 3px solid rgba(255,255,255,.64); border-radius: clamp(30px, 3.6vw, 54px); transform: rotate(2.5deg); }
  .scene-button:hover { transform: rotate(-.8deg) translateY(-5px) scale(1.008); }
  .scene-button:active { transform: rotate(-.8deg) scale(.985); }
  .scene-image { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
  .sound-bloom { position: absolute; right: 4%; top: 5%; width: 60px; height: 60px; border-radius: 21px; background: var(--world-accent); color: white; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 12px 28px color-mix(in srgb, var(--world-accent) 45%, transparent); transform: rotate(4deg); }
  .sound-bloom i { width: 4px; height: 13px; border-radius: 99px; background: currentColor; }
  .sound-bloom i:nth-child(2) { height: 28px; }
  .sound-bloom i:nth-child(3) { height: 19px; }
  .is-playing .sound-bloom i, .play-button.is-playing svg { animation: sound-wave .48s ease-in-out infinite alternate; }
  .is-playing .sound-bloom i:nth-child(2) { animation-delay: -.2s; }
  .is-playing .sound-bloom i:nth-child(3) { animation-delay: -.34s; }

  .word-card { position: relative; width: 100%; padding: clamp(24px, 3vw, 40px); border: 2px solid rgba(255,255,255,.62); border-radius: 38px 38px 38px 14px; background: rgba(255,250,240,.88); box-shadow: var(--soft-shadow); backdrop-filter: blur(18px); }
  .word-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted-ink); font-size: .78rem; font-weight: 800; }
  .concept-label { margin: clamp(18px, 3vh, 30px) 0 4px; color: var(--world-accent); font-size: clamp(.9rem, 1.3vw, 1.1rem); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .word-card h1 { margin: 0; color: var(--ink); font-size: clamp(3.2rem, 5.2vw, 6.7rem); line-height: .87; letter-spacing: -.075em; overflow-wrap: anywhere; }
  .phonetic { min-height: 27px; margin: 14px 0 22px; color: var(--muted-ink); font-size: clamp(1rem, 1.45vw, 1.2rem); font-weight: 650; }
  .phonetic--empty { color: rgba(80,97,127,.7); }
  .word-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .play-button, .sign-button { min-height: 60px; border: 0; border-radius: 20px; cursor: pointer; font-weight: 850; }
  .play-button { padding: 12px 18px; background: var(--world-accent); color: white; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 25px color-mix(in srgb, var(--world-accent) 30%, transparent); }
  .play-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sign-button { min-width: 90px; padding: 9px 14px; background: #f1eaff; color: #5835b7; display: flex; align-items: center; justify-content: center; gap: 7px; }
  .sign-button > span:first-child { font-size: 1.55rem; }
  .play-button:hover, .sign-button:hover { transform: translateY(-2px); }

  .step-button { position: absolute; z-index: 5; top: 50%; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(255,255,255,.84); box-shadow: 0 12px 32px rgba(16,35,72,.14); backdrop-filter: blur(12px); cursor: pointer; display: grid; place-items: center; }
  .step-button svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .step-button--previous { left: 10px; }
  .step-button--next { right: 10px; }
  .step-button:hover { transform: scale(1.07); }

  .language-quickbar { position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); width: min(990px, calc(100% - 28px)); padding: 8px 10px 10px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.72); border-radius: 28px; background: rgba(255,255,255,.82); box-shadow: 0 18px 55px rgba(16,35,72,.18); backdrop-filter: blur(20px); }
  .language-quickbar > p { margin: 0 0 5px; color: var(--muted-ink); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
  .language-quickbar__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
  .quick-language { min-width: 0; min-height: 58px; padding: 5px; border: 2px solid transparent; border-radius: 17px; background: transparent; cursor: pointer; display: grid; place-items: center; gap: 1px; color: var(--muted-ink); font-size: .69rem; font-weight: 850; line-height: 1.05; }
  .quick-language:hover { background: rgba(16,35,72,.06); }
  .quick-language.is-current { border-color: var(--world-accent); background: white; color: var(--ink); box-shadow: 0 6px 18px rgba(16,35,72,.1); }
  .quick-language__flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.58rem; line-height: 1; }

  .shelf-backdrop { position: fixed; z-index: 29; inset: 0; border: 0; background: rgba(6,17,42,.42); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .shelf-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .concept-shelf { position: fixed; z-index: 30; left: 50%; bottom: 0; width: min(1100px, calc(100% - 24px)); padding: 24px 24px max(24px, env(safe-area-inset-bottom)); border-radius: 34px 34px 0 0; background: var(--paper); box-shadow: var(--deep-shadow); transform: translate(-50%, 105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
  .concept-shelf.is-open { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
  .concept-shelf__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .concept-shelf__heading .eyebrow { margin-bottom: 2px; }
  .concept-shelf__heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.055em; }
  .world-switcher { max-width: 590px; margin: -52px auto 16px; padding: 5px; border-radius: 999px; background: #eef0f4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .world-tab { min-height: 50px; padding: 6px 12px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 900; }
  .world-tab.is-current { background: var(--ink); color: white; box-shadow: 0 6px 18px rgba(16,35,72,.18); }
  .world-symbol { width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #e9f9f8; color: var(--ink); font-size: .65rem; font-weight: 950; transform: rotate(-5deg); }
  .world-tab--numbers .world-symbol { background: #dbe8ff; }
  .world-tab--colors .world-symbol { background: conic-gradient(#ff5b50, #ffd83d, #55d7d2, #7549ea, #ff5b50); color: transparent; }
  .concept-ribbon { width: 100%; }
  .concept-ribbon__track { display: flex; gap: 8px; padding: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; border-radius: 24px; background: white; }
  .concept-ribbon__track::-webkit-scrollbar { display: none; }
  .concept-thumb { flex: 0 0 92px; min-height: 82px; padding: 5px; border: 2px solid transparent; border-radius: 18px; background: transparent; cursor: pointer; }
  .concept-thumb img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 12px; }
  .concept-thumb span { display: block; margin-top: 4px; overflow: hidden; color: var(--ink); font-size: .67rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
  .concept-thumb.is-current { border-color: var(--world-accent); background: white; transform: translateY(-2px); }

  .home-hero { min-height: calc(100svh - 76px); padding: clamp(56px, 8vw, 110px) clamp(10px, 4vw, 54px); display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(38px, 7vw, 100px); }
  .home-hero__copy { position: relative; z-index: 2; }
  .home-hero h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 7.5vw, 8.3rem); line-height: .84; letter-spacing: -.09em; }
  .home-hero__copy > p:not(.eyebrow) { max-width: 640px; margin: 28px 0 0; color: var(--muted-ink); font-size: clamp(1.08rem, 1.7vw, 1.4rem); }
  .home-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
  .home-hero__art { position: relative; min-height: min(670px, 72vw); }
  .home-art { position: absolute; width: 58%; aspect-ratio: 1; object-fit: cover; border: 9px solid white; border-radius: 37% 63% 49% 51% / 49% 42% 58% 51%; box-shadow: var(--deep-shadow); }
  .home-art--hello { z-index: 2; width: 62%; top: 4%; left: 2%; transform: rotate(-5deg); }
  .home-art--number { z-index: 1; right: 0; top: 16%; transform: rotate(7deg); }
  .home-art--color { z-index: 3; width: 43%; right: 9%; bottom: 0; transform: rotate(-3deg); }
  .home-art__word { position: absolute; z-index: 4; right: 1%; top: 0; color: var(--coral); font-size: clamp(2.8rem, 6vw, 6.2rem); font-weight: 950; letter-spacing: -.09em; transform: rotate(7deg); }

  .home-intro { margin: 40px 0 110px; padding: clamp(52px, 8vw, 110px); border-radius: 52px; background: var(--ink); color: white; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
  .home-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -34px; color: #83e6e0; }
  .home-intro h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.8rem); line-height: .9; letter-spacing: -.075em; }
  .home-intro > p:last-child { margin: 0; color: #cbd7e9; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }

  .home-worlds { padding: 30px 0 120px; scroll-margin-top: 90px; }
  .section-heading { margin-bottom: 42px; display: grid; grid-template-columns: 1fr minmax(280px, 480px); align-items: end; gap: 40px; }
  .section-heading h2 { margin: 0; font-size: clamp(3rem, 5.8vw, 6rem); line-height: .9; letter-spacing: -.075em; }
  .section-heading > p { margin: 0; color: var(--muted-ink); font-size: 1.15rem; }
  .home-world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 30px); }
  .home-world-card { overflow: hidden; border-radius: 34px; background: var(--card-color); box-shadow: var(--soft-shadow); }
  .home-world-card > img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
  .home-world-card > div { padding: 26px; }
  .home-world-card h3 { margin: 0; font-size: clamp(2.4rem, 3.8vw, 4rem); line-height: .9; letter-spacing: -.07em; }
  .home-world-card p:not(.eyebrow) { min-height: 48px; color: #354d70; }
  .home-world-card__actions { display: grid; gap: 8px; }
  .home-world-card a { min-height: 50px; padding: 11px 17px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 900; }
  .home-world-card__apple { background: var(--ink); color: white; box-shadow: 0 8px 24px rgba(16,35,72,.18); }
  .home-world-card__play { border: 2px solid rgba(16,35,72,.12); background: rgba(255,255,255,.8); color: var(--ink); }
  .home-world-card a svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }

  .home-book-band { margin-bottom: 110px; padding: clamp(42px, 7vw, 90px); border-radius: 48px; background: linear-gradient(135deg, #ffe373, #ffddd1 50%, #c9f1ee); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
  .home-book-stack { position: relative; min-height: 390px; }
  .home-book-stack img { position: absolute; width: min(52%, 270px); aspect-ratio: 1; object-fit: cover; border: 6px solid white; border-radius: 18px; box-shadow: 0 22px 45px rgba(16,35,72,.2); }
  .home-book-stack img:nth-child(1) { left: 0; top: 14%; transform: rotate(-8deg); }
  .home-book-stack img:nth-child(2) { left: 26%; top: 0; z-index: 2; transform: rotate(2deg); }
  .home-book-stack img:nth-child(3) { right: 0; bottom: 0; z-index: 3; transform: rotate(8deg); }
  .home-book-band h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.4rem); line-height: .9; letter-spacing: -.075em; }
  .home-book-band p:not(.eyebrow) { max-width: 660px; color: #354d70; font-size: 1.15rem; }

  .adult-header { position: sticky; z-index: 30; top: 0; min-height: 76px; padding: 12px clamp(18px, 5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid rgba(16,35,72,.07); background: rgba(255,250,240,.86); backdrop-filter: blur(18px); }
  .adult-header nav { display: flex; gap: 6px; }
  .adult-header nav a { padding: 10px 15px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 800; }
  .adult-header nav a:hover, .adult-header nav a.is-current { background: white; box-shadow: 0 6px 20px rgba(16,35,72,.08); }
  .back-to-play { justify-self: end; min-height: 46px; padding: 9px 17px; border: 0; background: var(--coral); color: white; }
  .adult-main { width: min(1320px, calc(100% - 36px)); margin: 0 auto; }
  .adult-hero { min-height: 62svh; padding: clamp(80px, 12vw, 170px) clamp(10px, 6vw, 80px); display: grid; align-content: center; justify-items: start; border-radius: 0 0 56px 56px; }
  .adult-hero h1, .story-lead h1 { max-width: 1060px; margin: 0; font-size: clamp(3.3rem, 8vw, 8.4rem); line-height: .86; letter-spacing: -.085em; }
  .adult-hero > p:last-of-type { max-width: 730px; margin: 28px 0 0; color: var(--muted-ink); font-size: clamp(1.05rem, 2vw, 1.42rem); }
  .adult-hero .primary-button { margin-top: 28px; }
  .adult-hero--books { background: radial-gradient(circle at 85% 10%, #ffd83d 0 8%, transparent 8.2%), linear-gradient(135deg, #fff2d1, #dcf8f5); }
  .adult-hero--request { background: linear-gradient(135deg, #eae3ff, #ffdfe9); }
  .adult-hero--grownups { background: linear-gradient(135deg, #dff8f5, #e6efff); }

  .book-grid { padding: clamp(70px, 9vw, 130px) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
  .book-card { overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: white; box-shadow: var(--soft-shadow); }
  .book-cover { min-height: 320px; padding: 34px; display: grid; place-items: center; background: var(--card-color); }
  .book-cover img { width: min(100%, 290px); aspect-ratio: 1; object-fit: cover; border-radius: 18px; box-shadow: 0 22px 45px rgba(16,35,72,.22); transform: rotate(-2deg); }
  .book-card:nth-child(2) .book-cover img { transform: rotate(1.5deg); }
  .book-card:nth-child(3) .book-cover img { transform: rotate(-.8deg); }
  .book-card__body { padding: 28px; }
  .book-card h2 { margin: 0; font-size: 2.5rem; letter-spacing: -.065em; }
  .book-card__body > p:not(.eyebrow,.isbn) { min-height: 72px; color: var(--muted-ink); }
  .apple-button { width: 100%; }
  .book-card__play { width: 100%; margin-top: 9px; }
  .book-card__play svg, .book-card__offline svg, .request-email button svg, .contact-copy a svg, .contact-form button svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .book-card__request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
  .book-card__request-actions a { padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px; text-align: center; text-decoration: none; font-size: .78rem; font-weight: 800; }
  .isbn { margin: 18px 0 0; color: var(--muted-ink); font-size: .76rem; }
  .isbn button { margin-left: 4px; padding: 5px 8px; border: 0; border-radius: 8px; background: #f2f4f8; color: var(--ink); cursor: pointer; font-weight: 800; }
  .isbn svg { width: 14px; display: inline; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; }
  .book-card__offline { width: 100%; min-height: 44px; margin-top: 12px; padding: 9px 12px; border: 1px dashed rgba(16,35,72,.24); border-radius: 14px; background: #f8f6ef; color: var(--muted-ink); display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: .78rem; font-weight: 850; }
  .book-card__offline.is-downloaded { border-color: rgba(36,127,102,.3); background: #e9f8f1; color: #246f5c; }
  .books-offline { margin: -60px 0 100px; padding: clamp(30px, 5vw, 58px); border-radius: 40px; background: linear-gradient(135deg, #e2f8f5, #edf2ff); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(28px, 6vw, 76px); scroll-margin-top: 100px; }
  .books-offline h2 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.8rem); line-height: .94; letter-spacing: -.065em; }
  .books-offline > div > p:not(.eyebrow), .books-offline__actions > p { color: var(--muted-ink); }
  .books-offline__actions { padding: 24px; border: 1px solid rgba(16,35,72,.1); border-radius: 25px; background: rgba(255,255,255,.7); }
  .books-offline__actions .primary-button { width: 100%; }
  .books-offline__actions > p { margin: 14px 0 0; font-size: .88rem; }
  .request-banner { margin-bottom: 110px; padding: clamp(32px, 5vw, 60px); border-radius: 40px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
  .request-banner h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.065em; line-height: .95; }
  .request-banner p:not(.eyebrow) { max-width: 650px; color: #c8d3e7; }
  .request-banner .eyebrow { color: #9ee9e4; }
  .request-banner .primary-button { flex: 0 0 auto; background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

  .request-builder { padding: 60px 0 120px; }
  .request-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 38px; }
  fieldset { min-width: 0; padding: 0; border: 0; }
  legend { margin-bottom: 10px; font-weight: 850; }
  .segmented { padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #f1f2f5; display: grid; grid-template-columns: repeat(2, 1fr); }
  .segmented--books { grid-template-columns: repeat(3, 1fr); }
  .segmented a { padding: 11px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 800; }
  .segmented a.is-current { background: white; box-shadow: 0 6px 18px rgba(16,35,72,.1); }
  .request-card { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(24px, 5vw, 60px); border: 2px dashed rgba(16,35,72,.25); border-radius: 34px; background: white; display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: center; box-shadow: var(--soft-shadow); }
  .request-card::before { content: ''; position: absolute; width: 34px; height: 34px; top: -18px; left: 9%; border-radius: 50%; background: var(--paper); border-bottom: 2px dashed rgba(16,35,72,.25); }
  .request-card img { width: 100%; border-radius: 17px; box-shadow: 0 18px 36px rgba(16,35,72,.2); transform: rotate(-2deg); }
  .request-card__to { color: var(--purple); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
  .request-card h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.08em; line-height: .9; }
  .request-card__isbn { display: grid; margin: 24px 0; }
  .request-card__isbn span { color: var(--muted-ink); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
  .request-card__isbn strong { font-size: 1.35rem; }
  .request-email { margin: 22px 0 12px; padding: 18px; border-radius: 20px; background: #f2efff; }
  .request-email > label { display: block; margin-bottom: 8px; color: #5237a5; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .request-email > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .request-email input { min-width: 0; padding: 13px 15px; border: 2px solid transparent; border-radius: 999px; background: white; color: var(--ink); }
  .request-email input:focus { border-color: var(--purple); outline: 0; }
  .request-email .primary-button { min-height: 48px; padding-block: 10px; }
  .request-email small { display: block; margin-top: 8px; color: var(--muted-ink); }
  .request-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .request-tip { max-width: 740px; margin: 30px auto 0; color: var(--muted-ink); text-align: center; }

  .story-lead { min-height: calc(100svh - 76px); padding: clamp(64px, 8vw, 120px) clamp(28px, 5vw, 74px); border-radius: 0 0 58px 58px; background: linear-gradient(135deg, #dff8f5 0%, #fff2c4 50%, #ffdce8 100%); display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(42px, 7vw, 100px); align-items: center; }
  .story-lead h1 { max-width: 850px; margin: 0; font-size: clamp(4rem, 7.8vw, 8.4rem); line-height: .84; letter-spacing: -.09em; }
  .story-lead__copy > p:last-child { max-width: 680px; margin: 30px 0 0; color: #3d5374; font-size: clamp(1.08rem, 1.8vw, 1.42rem); }
  .story-lead__art { position: relative; margin: 0; padding: 12px; border-radius: 44px; background: white; box-shadow: var(--deep-shadow); transform: rotate(2.5deg); }
  .story-lead__art::before { content: ''; position: absolute; z-index: -1; inset: -14px; border: 3px solid rgba(255,255,255,.7); border-radius: 51px; transform: rotate(-4deg); }
  .story-lead__art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 34px; }
  .story-lead__art figcaption { padding: 11px 8px 4px; color: var(--muted-ink); font-size: .82rem; font-weight: 800; text-align: center; }

  .story-letter { max-width: 1040px; margin: 0 auto; padding: clamp(100px, 12vw, 170px) 0; }
  .story-letter__opening { margin: 20px 0 62px; font-size: clamp(2.3rem, 4.5vw, 4.8rem); font-weight: 850; line-height: .98; letter-spacing: -.055em; }
  .story-letter__opening em { color: var(--coral); font-style: normal; }
  .story-letter__columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 78px); }
  .story-letter__columns p, .story-letter > p:last-child { margin: 0; color: var(--muted-ink); font-size: clamp(1.05rem, 1.6vw, 1.24rem); line-height: 1.75; }
  .story-letter blockquote { margin: clamp(72px, 10vw, 120px) 0; padding: 0 0 0 clamp(24px, 4vw, 54px); border-left: 10px solid var(--yellow); color: var(--ink); font-size: clamp(2.6rem, 5.8vw, 6rem); font-weight: 950; line-height: .91; letter-spacing: -.075em; }
  .story-letter > p:last-child { max-width: 760px; margin-left: auto; color: var(--ink); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 750; }

  .story-daughter { margin-bottom: clamp(100px, 12vw, 170px); padding: clamp(34px, 6vw, 82px); border-radius: 52px; background: linear-gradient(145deg, #f7c3d8, #ffe6b6); display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(42px, 7vw, 96px); align-items: center; }
  .story-daughter__art { position: relative; }
  .story-daughter__art img { width: 100%; border: 10px solid white; border-radius: 42% 58% 53% 47% / 50% 44% 56% 50%; box-shadow: var(--deep-shadow); transform: rotate(-3deg); }
  .story-daughter__art span { position: absolute; right: -5%; top: -7%; padding: 7px 15px 11px; border-radius: 999px; background: var(--coral); color: white; font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 950; letter-spacing: -.08em; transform: rotate(8deg); }
  .story-daughter h2 { margin: 0; font-size: clamp(3rem, 5.7vw, 6.2rem); line-height: .9; letter-spacing: -.075em; }
  .story-daughter__copy > p:not(.eyebrow) { max-width: 730px; color: #3b4d6c; font-size: clamp(1.02rem, 1.55vw, 1.22rem); line-height: 1.65; }
  .story-daughter blockquote { margin: 30px 0; padding: 24px 28px; border-radius: 28px 28px 28px 8px; background: rgba(255,255,255,.78); color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.35rem); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; box-shadow: 0 14px 40px rgba(16,35,72,.1); }

  .story-values { padding: 0 0 clamp(100px, 12vw, 170px); }
  .story-values__heading { max-width: 1050px; margin-bottom: 62px; }
  .story-values__heading h2 { margin: 0; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .9; letter-spacing: -.075em; }
  .story-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .story-values article { min-height: 320px; padding: clamp(26px, 3vw, 42px); border: 1px solid var(--line); border-radius: 34px; background: white; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(16,35,72,.07); }
  .story-values article:nth-child(1) { border-top: 8px solid var(--coral); }
  .story-values article:nth-child(2) { border-top: 8px solid var(--aqua); }
  .story-values article:nth-child(3) { border-top: 8px solid var(--purple); }
  .story-values article > span { color: var(--muted-ink); font-size: .86rem; font-weight: 950; letter-spacing: .12em; }
  .story-values h3 { margin: auto 0 12px; font-size: clamp(1.9rem, 3vw, 3rem); line-height: .98; letter-spacing: -.055em; }
  .story-values article p { margin: 0; color: var(--muted-ink); }

  .story-close { margin-bottom: 110px; padding: clamp(46px, 7vw, 94px); border-radius: 52px; background: var(--ink); color: white; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 100px); align-items: end; }
  .story-close .eyebrow { color: #83e6e0; }
  .story-close h2 { margin: 0; font-size: clamp(3.1rem, 5.7vw, 6.2rem); line-height: .9; letter-spacing: -.075em; }
  .story-close > div:last-child > p { margin: 0; color: #cbd7e9; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
  .story-close__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
  .story-close .primary-button { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
  .story-close .secondary-button { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: white; }

  .contact-hero { min-height: 58svh; padding: clamp(70px, 11vw, 150px) clamp(20px, 6vw, 80px); border-radius: 0 0 58px 58px; background: linear-gradient(135deg, #ffdfe9, #fff1b8 54%, #d9f6f3); display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: clamp(30px, 7vw, 100px); overflow: hidden; }
  .contact-hero h1 { margin: 0; font-size: clamp(4.5rem, 10vw, 10rem); line-height: .82; letter-spacing: -.095em; }
  .contact-hero > div:first-child > p:last-child { max-width: 680px; color: var(--muted-ink); font-size: clamp(1.08rem, 1.8vw, 1.38rem); }
  .contact-bubble { min-height: 330px; padding: 35px; border: 10px solid white; border-radius: 46% 54% 61% 39% / 42% 43% 57% 58%; background: var(--coral); color: white; box-shadow: var(--deep-shadow); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; transform: rotate(3deg); }
  .contact-bubble span { padding: 7px 15px 10px; border: 2px solid rgba(255,255,255,.45); border-radius: 999px; font-size: clamp(1.2rem, 2.5vw, 2.1rem); font-weight: 900; transform: rotate(-5deg); }
  .contact-bubble span:nth-child(even) { transform: rotate(6deg); }
  .contact-layout { padding: clamp(72px, 10vw, 130px) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
  .contact-copy { position: sticky; top: 120px; }
  .contact-copy h2 { margin: 0; font-size: clamp(3rem, 5.5vw, 5.8rem); line-height: .9; letter-spacing: -.075em; }
  .contact-copy > p:not(.eyebrow) { color: var(--muted-ink); font-size: 1.1rem; }
  .contact-copy > a { margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; color: var(--purple); font-weight: 900; }
  .contact-form { padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: 38px; background: white; box-shadow: var(--soft-shadow); display: grid; }
  .contact-form label { margin: 18px 0 8px; font-size: .86rem; font-weight: 900; }
  .contact-form label:first-child { margin-top: 0; }
  .contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fffcf6; color: var(--ink); }
  .contact-form textarea { min-height: 170px; resize: vertical; }
  .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--purple); outline: 0; box-shadow: 0 0 0 4px rgba(117,73,234,.12); }
  .contact-form .primary-button { justify-self: start; margin-top: 24px; }
  .contact-form .primary-button:disabled { cursor: wait; opacity: .65; }
  .contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .contact-turnstile { min-height: 65px; margin-top: 22px; }
  .form-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 800; }
  .form-status:empty { min-height: 0; margin: 0; }
  .form-status.is-success { color: #146b45; }
  .form-status.is-error { color: #a92b36; }
  .form-status a { color: inherit; }
  .form-note { margin: 14px 0 0; color: var(--muted-ink); font-size: .82rem; }

  .offline-grid { padding: 90px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .offline-card { overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: white; }
  .offline-card > img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
  .offline-card > div { padding: 25px; }
  .offline-card h2 { margin: 0; font-size: 2.2rem; letter-spacing: -.06em; }
  .offline-card p:not(.eyebrow) { min-height: 48px; color: var(--muted-ink); }
  .offline-card button { width: 100%; }
  .install-help, .principle-grid { padding: 80px 0 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .install-help article, .principle-grid article, .privacy-list article { padding: 30px; border: 1px solid var(--line); border-radius: 28px; background: white; }
  .install-help article > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: #e6f7f5; font-size: 1.7rem; }
  .install-help h2, .principle-grid h2 { margin: 22px 0 8px; font-size: 1.6rem; letter-spacing: -.04em; }
  .install-help p, .principle-grid p, .privacy-list p { color: var(--muted-ink); }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-note { margin: -70px 0 120px; padding: 30px; border-radius: 24px; background: #eaf8f6; color: #284d68; }
  .privacy-list { max-width: 900px; margin: -20px auto 120px; display: grid; gap: 16px; }
  .privacy-list h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.045em; }

  .site-footer { width: min(1320px, calc(100% - 36px)); margin: 0 auto 18px; padding: 50px; border-radius: 38px; background: var(--ink); color: white; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .site-footer .brand-lockup { color: white; }
  .site-footer p { margin: 0; color: #c7d4eb; text-align: center; }
  .site-footer nav { display: flex; gap: 16px; }
  .site-footer nav a { color: #dbe5f7; text-decoration: none; font-size: .85rem; }
  .site-footer small { grid-column: 1 / -1; color: #9eb0ce; text-align: center; }
}

@layer polish {
  .brand-lockup img,
  .header-button,
  .icon-button,
  .step-button,
  .quick-language,
  .home-world-card,
  .home-world-card > img,
  .book-card,
  .book-cover img,
  .story-values article,
  .principle-grid article,
  .privacy-list article,
  .contact-bubble span {
    --word-rotate: -5deg;
    transition: transform .35s var(--spring), box-shadow .35s var(--smooth), border-color .25s ease, background-color .25s ease;
  }

  .contact-bubble span:nth-child(even) { --word-rotate: 6deg; }

  .adult-header {
    box-shadow: 0 8px 34px rgba(16, 35, 72, .035);
  }

  .adult-header nav a.is-current {
    color: #5132aa;
    box-shadow: 0 7px 22px rgba(68, 45, 142, .1);
  }

  .back-to-play {
    box-shadow: 0 9px 24px rgba(255, 91, 80, .25);
  }

  .home-hero__copy .eyebrow,
  .section-heading .eyebrow,
  .story-values__heading .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .home-hero__copy .eyebrow::before,
  .section-heading .eyebrow::before,
  .story-values__heading .eyebrow::before {
    content: '';
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border: 3px solid currentColor;
    border-radius: 50%;
    background: var(--yellow);
  }

  .home-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(16, 35, 72, .2);
  }

  .home-intro::before,
  .home-intro::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
  }

  .home-intro::before {
    width: clamp(170px, 24vw, 330px);
    aspect-ratio: 1;
    top: -28%;
    right: 4%;
    background: rgba(85, 215, 210, .16);
  }

  .home-intro::after {
    width: clamp(110px, 17vw, 230px);
    aspect-ratio: 1;
    right: 25%;
    bottom: -42%;
    border: clamp(18px, 3vw, 42px) solid rgba(255, 216, 61, .14);
  }

  .home-intro > * {
    position: relative;
  }

  .home-world-card,
  .book-card,
  .story-values article,
  .principle-grid article,
  .privacy-list article {
    transform: translateZ(0);
  }

  .home-world-card > img {
    transform: scale(1.001);
  }

  .home-world-card__apple svg,
  .home-world-card__play svg,
  .back-to-play svg,
  .apple-button svg {
    transition: transform .3s var(--spring);
  }

  .home-book-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-size: 160% 160%;
    box-shadow: 0 28px 76px rgba(64, 63, 96, .13);
  }

  .home-book-band::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 240px;
    height: 90px;
    right: -55px;
    top: 34px;
    border: 18px solid rgba(255, 255, 255, .35);
    border-color: rgba(255, 255, 255, .35) transparent transparent;
    border-radius: 50%;
    transform: rotate(18deg);
  }

  .story-lead__art,
  .story-daughter__art,
  .contact-bubble,
  .scene-button,
  .word-card {
    will-change: transform;
  }

  .contact-bubble {
    position: relative;
  }

  .contact-bubble::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    right: 9%;
    bottom: -27px;
    border-radius: 8px 8px 34px 8px;
    background: inherit;
    transform: rotate(28deg);
  }

  .quick-language.is-current .quick-language__flag {
    filter: drop-shadow(0 5px 4px rgba(16, 35, 72, .16));
  }

  .reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(.985);
    transition: opacity .62s ease var(--reveal-delay, 0ms), transform .78s var(--smooth) var(--reveal-delay, 0ms);
  }

  .reveal.reveal--from-left {
    transform: translate3d(-28px, 0, 0) rotate(-1deg);
  }

  .reveal.reveal--from-right {
    transform: translate3d(28px, 0, 0) rotate(1deg);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: var(--reveal-rest, translate3d(0, 0, 0) scale(1) rotate(0));
  }

  @media (hover: hover) {
    .brand-lockup:hover img { transform: rotate(-7deg) scale(1.08); }
    .header-button:hover, .icon-button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 16px 36px rgba(16,35,72,.16); }
    .back-to-play:hover { transform: translateY(-2px) rotate(1deg); box-shadow: 0 13px 28px rgba(255, 91, 80, .32); }
    .back-to-play:hover svg, .home-world-card__play:hover svg { transform: translateX(3px) scale(1.08); }
    .home-world-card__apple:hover svg, .apple-button:hover svg { transform: translate(2px, -2px); }
    .home-world-card:hover { transform: translateY(-9px) rotate(-.35deg); box-shadow: 0 28px 75px rgba(23,42,82,.19); }
    .home-world-card:nth-child(2):hover { transform: translateY(-9px) rotate(.35deg); }
    .home-world-card:hover > img { transform: scale(1.04); }
    .book-card:hover { transform: translateY(-8px); box-shadow: 0 28px 78px rgba(23,42,82,.18); }
    .book-card:hover .book-cover img { transform: rotate(-4deg) translateY(-5px) scale(1.025); }
    .book-card:nth-child(2):hover .book-cover img { transform: rotate(3.5deg) translateY(-5px) scale(1.025); }
    .book-card:nth-child(3):hover .book-cover img { transform: rotate(-2deg) translateY(-5px) scale(1.025); }
    .story-values article:hover, .principle-grid article:hover, .privacy-list article:hover { transform: translateY(-6px) rotate(-.25deg); box-shadow: 0 22px 58px rgba(16,35,72,.12); }
    .story-values article:nth-child(2):hover { transform: translateY(-6px) rotate(.25deg); }
    .quick-language:hover .quick-language__flag { transform: translateY(-3px) rotate(-5deg) scale(1.08); }
    .step-button:hover { transform: scale(1.09) rotate(-4deg); box-shadow: 0 17px 38px rgba(16,35,72,.18); }
    .step-button--next:hover { transform: scale(1.09) rotate(4deg); }
    .contact-bubble span:hover { transform: translateY(-4px) rotate(-7deg) scale(1.04); background: rgba(255,255,255,.12); }
    .contact-bubble span:nth-child(even):hover { transform: translateY(-4px) rotate(7deg) scale(1.04); }
  }

  @media (prefers-reduced-motion: no-preference) {
    .home-art--hello { animation: float-hello 7.2s ease-in-out infinite; }
    .home-art--number { animation: float-number 8.4s ease-in-out -2.1s infinite; }
    .home-art--color { animation: float-color 6.8s ease-in-out -3.4s infinite; }
    .home-art__word { animation: word-wave 5.5s ease-in-out -1s infinite; }
    .home-intro::before { animation: soft-orbit 12s ease-in-out infinite alternate; }
    .home-intro::after { animation: soft-orbit 15s ease-in-out -4s infinite alternate-reverse; }
    .home-book-band { animation: color-breathe 13s ease-in-out infinite alternate; }
    .home-book-stack img:nth-child(1) { animation: book-float-left 8s ease-in-out infinite; }
    .home-book-stack img:nth-child(2) { animation: book-float-center 7s ease-in-out -2s infinite; }
    .home-book-stack img:nth-child(3) { animation: book-float-right 8.7s ease-in-out -4s infinite; }
    .story-lead__art img { animation: story-float 9s ease-in-out infinite; }
    .story-daughter__art span { animation: hello-wave 5s ease-in-out infinite; }
    .contact-bubble span { animation: word-float 4.8s ease-in-out infinite; }
    .contact-bubble span:nth-child(2) { animation-delay: -1.2s; }
    .contact-bubble span:nth-child(3) { animation-delay: -2.4s; }
    .contact-bubble span:nth-child(4) { animation-delay: -3.6s; }
    .scribble--a { animation: scribble-drift 9s ease-in-out infinite; }
    .scribble--b { animation: scribble-drift 11s ease-in-out -4s infinite reverse; }
    .floating-word--a { animation: floating-word-a 8s ease-in-out infinite; }
    .floating-word--b { animation: floating-word-b 10s ease-in-out -3s infinite; }
    .scene-button { animation: scene-arrive .52s var(--spring) both; }
    .word-card { animation: card-arrive .58s var(--spring) .08s both; }
  }
}

@layer responsive {
  @media (max-width: 1000px) {
    .world-stage { padding-inline: 54px; grid-template-columns: minmax(320px, 1fr) minmax(280px, .58fr); gap: 34px; }
    .scene-button { width: min(66vh, 54vw); }
    .word-card__topline span:last-child { display: none; }
    .home-hero { grid-template-columns: 1fr 1fr; gap: 28px; }
    .home-world-grid { gap: 14px; }
    .home-world-card > div { padding: 20px; }
    .book-grid, .offline-grid { grid-template-columns: 1fr 1fr; }
    .book-card:last-child, .offline-card:last-child { grid-column: 1 / -1; }
    .story-values__grid { gap: 12px; }
  }

  @media (max-width: 760px) {
    body.is-play { overflow: hidden; }
    .play-header { inset-inline: 10px; }
    .play-header .brand-lockup { padding-right: 9px; }
    .play-header .brand-lockup > span { display: none; }
    .play-header__actions { gap: 5px; }
    .header-button { min-height: 44px; padding: 8px 11px; font-size: .78rem; }
    .learning-world { min-height: 100svh; overflow: hidden; }
    .world-stage { height: 100svh; padding: 68px 12px 136px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
    .scene-wrap { min-height: 0; display: grid; place-items: center; align-self: stretch; }
    .scene-button { width: min(42vh, 90vw); max-height: 42vh; align-self: center; }
    .sound-bloom { width: 46px; height: 46px; border-radius: 15px; }
    .word-card { width: min(100%, 560px); min-height: 108px; justify-self: center; padding: 10px 118px 10px 13px; border-radius: 24px 24px 24px 9px; }
    .word-card__topline { display: none; }
    .concept-label { margin: 0 0 1px; font-size: .66rem; }
    .word-card h1 { font-size: clamp(2.2rem, 10vw, 3.8rem); }
    .phonetic { min-height: 17px; margin: 3px 0 7px; font-size: .78rem; }
    .word-actions { position: absolute; right: 12px; bottom: 12px; display: flex; }
    .play-button, .sign-button { width: 48px; min-width: 48px; min-height: 48px; padding: 0; border-radius: 50%; }
    .play-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .play-button svg { width: 23px; }
    .sign-button { background: #f1eaff; }
    .sign-button span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .sign-button > span:first-child { font-size: 1.25rem; }
    .step-button { top: 40%; width: 43px; height: 43px; }
    .step-button--previous { left: 4px; }
    .step-button--next { right: 4px; }
    .language-quickbar { bottom: max(6px, env(safe-area-inset-bottom)); width: calc(100% - 12px); padding: 5px 6px 7px; border-radius: 20px; }
    .language-quickbar > p { margin-bottom: 3px; font-size: .58rem; }
    .language-quickbar__grid { grid-template-columns: repeat(4, 1fr); gap: 2px; }
    .quick-language { min-height: 46px; padding: 3px; border-radius: 12px; display: flex; justify-content: center; gap: 4px; font-size: .61rem; }
    .quick-language__flag { font-size: 1.25rem; }
    .concept-shelf { width: 100%; max-height: 72svh; padding: 18px 12px max(14px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
    .concept-shelf__heading h2 { font-size: 1.65rem; }
    .world-switcher { margin: 14px 0 10px; }
    .world-tab { min-height: 44px; padding: 5px; gap: 4px; font-size: .76rem; }
    .world-symbol { width: 28px; height: 28px; font-size: .58rem; }
    .concept-ribbon__track { padding: 6px; border-radius: 18px; flex-wrap: wrap; max-height: 40svh; overflow-y: auto; }
    .concept-thumb { flex: 1 0 27%; min-width: 82px; min-height: 72px; padding: 4px; border-radius: 14px; }
    .concept-thumb img { border-radius: 9px; }
    .floating-word--a { top: 14%; }
    .floating-word--b { display: none; }
    .sheet { width: 100%; max-height: calc(100svh - 8px); padding: 22px 16px; border-radius: 28px 28px 0 0; }
    .language-grid { grid-template-columns: 1fr; max-height: 62svh; overflow-y: auto; }
    .sign-layout { grid-template-columns: 1fr; }
    .sign-video-wrap { min-height: 250px; }
    .sign-copy { display: flex; align-items: center; gap: 14px; }
    .sign-copy p { flex: 1; margin: 0; font-size: .9rem; }
    .sign-hand { width: 54px; height: 54px; flex: 0 0 auto; font-size: 1.8rem; }
    .grown-up-menu { width: calc(100% - 12px); height: calc(100svh - 12px); margin: 6px; border-radius: 28px; }

    .adult-header { min-height: 68px; padding: 10px 14px 7px; grid-template-columns: 1fr auto; row-gap: 6px; }
    .adult-header nav { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
    .adult-header nav::-webkit-scrollbar { display: none; }
    .adult-header nav a { padding: 7px 10px; font-size: .78rem; }
    .adult-header .brand-lockup img { width: 38px; height: 38px; }
    .back-to-play { min-height: 44px; padding: 8px 14px; }
    .adult-main { width: min(100% - 24px, 1320px); }
    .home-hero { min-height: auto; padding: 58px 6px 76px; grid-template-columns: 1fr; gap: 30px; }
    .home-hero h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
    .home-hero__art { min-height: min(390px, 92vw); }
    .home-art { border-width: 6px; }
    .home-intro { margin-bottom: 70px; padding: 38px 26px; border-radius: 34px; grid-template-columns: 1fr; gap: 24px; }
    .home-intro .eyebrow { grid-column: auto; margin-bottom: 0; }
    .home-intro h2 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
    .home-worlds { padding-bottom: 74px; }
    .section-heading { grid-template-columns: 1fr; gap: 18px; }
    .home-world-grid { grid-template-columns: 1fr; }
    .home-world-card p:not(.eyebrow) { min-height: 0; }
    .home-book-band { margin-bottom: 70px; padding: 34px 24px; border-radius: 34px; grid-template-columns: 1fr; gap: 24px; }
    .home-book-stack { min-height: 290px; }
    .adult-hero { min-height: 58svh; padding: 72px 18px; border-radius: 0 0 34px 34px; }
    .adult-hero h1, .story-lead h1 { font-size: clamp(3rem, 14vw, 5.5rem); }
    .book-grid, .offline-grid { grid-template-columns: 1fr; padding-block: 52px; }
    .book-card:last-child, .offline-card:last-child { grid-column: auto; }
    .book-cover { min-height: 260px; }
    .books-offline { margin-top: -18px; grid-template-columns: 1fr; }
    .request-banner { margin-bottom: 70px; padding: 30px; border-radius: 30px; display: grid; }
    .request-options { grid-template-columns: 1fr; }
    .request-card { padding: 24px; grid-template-columns: 100px 1fr; gap: 20px; }
    .request-card__actions { grid-column: 1 / -1; }
    .request-email { grid-column: 1 / -1; padding: 14px; }
    .request-email > div { grid-template-columns: 1fr; }
    .contact-hero { min-height: auto; padding: 70px 22px; border-radius: 0 0 34px 34px; grid-template-columns: 1fr; }
    .contact-bubble { width: min(88%, 430px); min-height: 240px; justify-self: center; border-width: 7px; }
    .contact-layout { padding-block: 72px; grid-template-columns: 1fr; }
    .contact-copy { position: static; }
    .contact-form { padding: 24px; border-radius: 28px; }
    .story-lead { grid-template-columns: 1fr; min-height: auto; padding: 62px 22px 72px; border-radius: 0 0 34px 34px; }
    .story-lead__art { width: min(100%, 520px); justify-self: center; padding: 8px; border-radius: 31px; }
    .story-lead__art img { border-radius: 24px; }
    .story-letter { padding-block: 82px; }
    .story-letter__opening { margin-bottom: 42px; }
    .story-letter__columns { grid-template-columns: 1fr; gap: 22px; }
    .story-letter blockquote { margin-block: 62px; border-left-width: 7px; }
    .story-daughter { margin-bottom: 82px; padding: 30px 22px 38px; border-radius: 34px; grid-template-columns: 1fr; gap: 38px; }
    .story-daughter__art { width: min(84%, 430px); justify-self: center; }
    .story-daughter__art img { border-width: 7px; }
    .story-values { padding-bottom: 82px; }
    .story-values__heading { margin-bottom: 38px; }
    .story-values__grid, .install-help, .principle-grid { grid-template-columns: 1fr; }
    .story-values article { min-height: 250px; }
    .story-close { margin-bottom: 70px; padding: 38px 26px; border-radius: 34px; grid-template-columns: 1fr; gap: 30px; }
    .site-footer { width: calc(100% - 18px); padding: 34px 24px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .site-footer nav { flex-wrap: wrap; justify-content: center; }
    .site-footer small { grid-column: auto; }
  }

  @media (max-height: 700px) and (min-width: 761px) {
    .world-stage { padding-top: 70px; padding-bottom: 96px; }
    .scene-button { width: min(68vh, 560px); }
    .word-card { padding: 22px; }
    .concept-label { margin-top: 14px; }
    .phonetic { margin-block: 8px 13px; }
    .language-quickbar { bottom: 7px; }
  }

  @media print {
    .adult-header, .site-footer, .request-options, .request-tip, .adult-hero, .toast, .request-email { display: none !important; }
    body { background: white; }
    .adult-main { width: 100%; }
    .request-builder { padding: 0; }
    .request-card { box-shadow: none; border: 3px dashed #333; break-inside: avoid; }
    .request-card__actions { display: none; }
  }

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

@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes menu-in { from { transform: translateX(100%); } }
@keyframes sound-wave { to { transform: scaleY(1.35); } }
@keyframes loading-bob { to { transform: translateY(-8px) rotate(2deg); } }
@keyframes float-hello {
  0%, 100% { transform: rotate(-5deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-3.7deg) translate3d(0, -10px, 0); }
}
@keyframes float-number {
  0%, 100% { transform: rotate(7deg) translate3d(0, 0, 0); }
  50% { transform: rotate(5.6deg) translate3d(-4px, -12px, 0); }
}
@keyframes float-color {
  0%, 100% { transform: rotate(-3deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-1.4deg) translate3d(3px, -8px, 0); }
}
@keyframes word-wave {
  0%, 100% { transform: rotate(7deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.035); }
}
@keyframes soft-orbit {
  from { transform: translate3d(-10px, -4px, 0) scale(.96); }
  to { transform: translate3d(18px, 12px, 0) scale(1.08); }
}
@keyframes color-breathe {
  from { background-position: 5% 40%; }
  to { background-position: 95% 60%; }
}
@keyframes book-float-left {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6.5deg) translateY(-8px); }
}
@keyframes book-float-center {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(.5deg) translateY(-11px); }
}
@keyframes book-float-right {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(9.5deg) translateY(-7px); }
}
@keyframes story-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.012); }
}
@keyframes hello-wave {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-5px) scale(1.025); }
}
@keyframes word-float {
  0%, 100% { transform: rotate(var(--word-rotate)) translateY(0); }
  50% { transform: rotate(calc(var(--word-rotate) - 2deg)) translateY(-5px); }
}
@keyframes scribble-drift {
  0%, 100% { translate: 0 0; scale: 1; }
  50% { translate: 12px -6px; scale: 1.04; }
}
@keyframes floating-word-a {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}
@keyframes floating-word-b {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(7px); }
}
@keyframes scene-arrive {
  from { opacity: 0; transform: rotate(-2.5deg) translateX(-24px) scale(.96); }
  to { opacity: 1; transform: rotate(-.8deg) translateX(0) scale(1); }
}
@keyframes card-arrive {
  from { opacity: 0; transform: translateX(24px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
