:root {
  --ink: #24202b;
  --muted: #6f6977;
  --paper: #fffdf8;
  --canvas: #f7f3ea;
  --line: #ded8ce;
  --violet: #6d52c8;
  --violet-dark: #4c3992;
  --violet-soft: #eee9ff;
  --coral: #f47f6b;
  --coral-soft: #fff0ec;
  --mint: #54af8a;
  --mint-soft: #e9f7f0;
  --blue: #659fc3;
  --blue-soft: #eaf5fb;
  --yellow: #f1c75b;
  --yellow-soft: #fff8df;
  --header-pink: #ffb7d4;
  --header-peach: #ffc29f;
  --header-yellow: #ffe28a;
  --header-mint: #abe8bd;
  --header-blue: #a8dcff;
  --header-purple: #c9b8ff;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow: 0 18px 55px rgba(46, 39, 65, 0.1);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 10% 20%, #fffaf0 0, transparent 35%), var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 4px solid rgba(109, 82, 200, .25); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--ink); color: white; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header { height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 0 clamp(1.25rem, 4vw, 4.5rem); border-bottom: 1px solid rgba(79,65,121,.2); background: linear-gradient(108deg, var(--header-pink) 0%, var(--header-peach) 18%, var(--header-yellow) 36%, var(--header-mint) 54%, var(--header-blue) 72%, var(--header-purple) 88%, #efb7ed 100%); box-shadow: 0 8px 28px rgba(89,68,132,.16); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.identity { justify-self: start; display: flex; align-items: center; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 0; }
.identity-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px 14px 14px 4px; background: var(--violet); color: white; transform: rotate(-3deg); }
.identity-mark svg { width: 24px; height: 24px; }
.identity-copy { display: block; }
.identity-logo-crop { display: block; width: 170px; margin-left: -16px; }
.identity-logo-crop img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, #000 0, #000 94%, transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 94%, transparent 100%); }
.public-header .identity-logo-crop { width: 200px; transform: translateY(-3px); }
.public-header .identity small { margin-top: -.6rem; }
.identity small {
  display: block;
  color: rgba(255, 255, 255, .96);
  font-size: .72rem;
  margin-top: .1rem;
  text-shadow: 0 1px 3px rgba(52, 39, 68, .58);
}
nav { display: flex; gap: .35rem; background: #eeebe4; padding: .35rem; border-radius: 18px; }
.nav-button { display: flex; align-items: center; gap: .45rem; min-height: 44px; border: 0; border-radius: 14px; padding: .5rem .9rem; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; white-space: nowrap; }
.nav-button.active { background: var(--paper); color: var(--violet-dark); box-shadow: 0 3px 12px rgba(36, 32, 43, .08); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .65rem; }
.public-header { grid-template-columns: 1fr auto; }
.public-login { min-width: 92px; color: var(--violet-dark); }
.language-menu { position: relative; }
.language-menu > summary { list-style: none; }
.language-menu > summary::-webkit-details-marker { display: none; }
.language-toggle { display: grid; place-items: center; width: 46px; height: 42px; border: 1px solid rgba(110,55,111,.22); background: rgba(255,255,255,.82); padding: 0; border-radius: 13px; cursor: pointer; backdrop-filter: blur(8px); }
.language-toggle:hover, .language-toggle:focus-visible { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); outline: none; }
.language-flag { font-size: 1.45rem; line-height: 1; }
.language-popover { position: absolute; z-index: 40; top: calc(100% + .55rem); right: 0; display: grid; grid-template-columns: repeat(5, 44px); gap: .3rem; width: max-content; padding: .45rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.language-choice { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.language-choice:hover, .language-choice:focus-visible { background: var(--violet-soft); border-color: var(--violet); outline: none; }
.language-choice.selected { background: var(--ink); border-color: var(--ink); }
.account-button { max-width: 210px; min-height: 42px; padding: .55rem .8rem; overflow: hidden; border: 1px solid rgba(110,55,111,.22); border-radius: 13px; background: rgba(255,255,255,.82); color: #51465c; font-size: .75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; backdrop-filter: blur(8px); }

.auth-shell { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(280px, .9fr) minmax(390px, 520px); align-items: center; gap: clamp(2rem, 7vw, 7rem); max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem); }
.auth-back { display: block; margin: 0 0 1.25rem; padding: 0; border: 0; background: transparent; color: var(--violet-dark); font-weight: 700; cursor: pointer; }
.auth-intro h1 { max-width: 700px; margin: 1rem 0; font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.045em; }
.auth-intro > p { max-width: 620px; color: var(--muted); font-size: 1.2rem; line-height: 1.6; }
.game-free-badge { width:max-content; max-width:100%; display:grid; gap:.15rem; margin:0 0 1.2rem; padding:.8rem 1rem; border:2px solid #80cfa0; border-radius:16px; color:#1e6840; background:linear-gradient(135deg,#eafff1,#f8fff1); box-shadow:0 10px 24px rgba(36,117,73,.12); }
.game-free-badge strong { font-family:Fredoka,sans-serif; font-size:1.15rem; line-height:1; text-transform:uppercase; letter-spacing:.02em; }
.game-free-badge span { font-size:.76rem; font-weight:800; }
.auth-card { padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.auth-card h2 { margin: .55rem 0; font-size: 2rem; }
.auth-description { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.45; }
.auth-loading { grid-column: 1 / -1; max-width: 540px; justify-self: center; text-align: center; }
.auth-loading .identity-mark { margin: 0 auto 1rem; }
.auth-toolbar { display: flex; justify-content: space-between; gap: .8rem; align-items: center; margin-bottom: 1.7rem; }
.auth-login-label { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .85rem; border-radius: 11px; background: var(--violet-soft); color: var(--violet-dark); font-size: .8rem; font-weight: 700; }
.auth-form { display: grid; gap: .9rem; }
.auth-form label { font-size: .8rem; }
.auth-form input, .auth-form select { margin-top: .3rem; }
.auth-submit { width: 100%; margin-top: .35rem; }
.auth-switch { width: 100%; margin-top: 1rem; border: 0; background: transparent; color: var(--violet-dark); font-size: .82rem; font-weight: 700; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.google-button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; font-weight: 700; }
.google-button > span { font-family: Arial, sans-serif; color: #4285f4; font-size: 1.15rem; }
.google-button:disabled { opacity: .62; cursor: not-allowed; }
.google-signin { display: grid; min-height: 44px; place-items: center; }
.google-setup { display: block; margin-top: .45rem; color: var(--muted); font-size: .7rem; line-height: 1.35; text-align: center; }
.demo-hint { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.4; }
.form-error { margin-bottom: 1rem; padding: .75rem .85rem; border-radius: 11px; background: var(--coral-soft); color: #963f34; font-size: .84rem; }

.staff-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.staff-intro > div { max-width: 850px; }
.role-badge { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .7rem .9rem; border-radius: 99px; background: var(--violet-soft); color: var(--violet-dark); font-size: .78rem; font-weight: 700; }
.staff-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.staff-metric { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); box-shadow: 0 10px 30px rgba(46,39,65,.06); }
.staff-metric span, .staff-metric small, .staff-metric strong { display: block; }
.staff-metric span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.staff-metric strong { margin: .35rem 0; font-family: Fredoka, sans-serif; font-size: 2.8rem; color: var(--violet-dark); }
.staff-metric small { color: var(--muted); }
.staff-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem; align-items: start; }
.dashboard-list, .staff-list { display: grid; gap: .65rem; margin-top: 1.4rem; }
.dashboard-list article, .staff-list article { display: flex; align-items: center; gap: .75rem; padding: .85rem; border-radius: var(--radius-sm); background: #f6f3ed; }
.dashboard-list article > div, .staff-list article > div { flex: 1; min-width: 0; }
.dashboard-list strong, .dashboard-list small, .staff-list strong, .staff-list small { display: block; }
.dashboard-list small, .staff-list small { margin-top: .18rem; overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; }
.empty-state { display: grid; justify-items: center; gap: .45rem; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }
.empty-state svg { width: 34px; height: 34px; color: var(--violet); }
.staff-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--blue-soft); color: #32779f; font-family: Fredoka, sans-serif; }
.role-chip { padding: .35rem .5rem; border-radius: 99px; background: var(--mint-soft); color: #277858; font-size: .68rem; font-weight: 700; text-transform: capitalize; }
.role-chip.admin { background: var(--violet-soft); color: var(--violet-dark); }
.invite-staff { margin-top: 1rem; border-top: 1px solid var(--line); }
.invite-staff summary { padding: 1rem 0 0; color: var(--violet-dark); font-weight: 700; cursor: pointer; }
.compact-form { margin-top: 1rem; }
.compact-form > small { color: var(--muted); line-height: 1.4; }

.analytics-shell { margin-bottom: 1.25rem; padding: clamp(1.2rem, 3vw, 2rem); background: linear-gradient(145deg, #fffdf8 58%, #f1edff); }
.analytics-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.analytics-heading h2 { margin: .35rem 0 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.analytics-heading p { max-width: 650px; margin: .6rem 0 0; color: var(--muted); line-height: 1.45; }
.analytics-range { display: flex; flex: 0 0 auto; gap: .25rem; padding: .3rem; border-radius: 15px; background: #e9e5de; }
.analytics-range button { min-height: 42px; padding: .55rem .8rem; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.analytics-range button.active { background: var(--paper); color: var(--violet-dark); box-shadow: 0 3px 12px rgba(36,32,43,.09); }
.analytics-live-row { display: flex; align-items: center; gap: .7rem; margin: 1.35rem 0 1rem; }
.analytics-live { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .65rem; border-radius: 999px; background: var(--mint-soft); color: #276f53; font-size: .74rem; font-weight: 800; }
.analytics-live.google { background: var(--blue-soft); color: #2d688a; }
.analytics-live.muted { background: #eeeae3; color: var(--muted); }
.analytics-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(84,175,138,.16); }
.refresh-analytics { margin-left: auto; border: 0; background: transparent; color: var(--violet-dark); font-size: .75rem; font-weight: 800; cursor: pointer; }
.analytics-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.analytics-kpis article { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); }
.analytics-kpis span,.analytics-kpis strong,.analytics-kpis small { display: block; }
.analytics-kpis span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.analytics-kpis strong { margin: .45rem 0 .25rem; color: var(--ink); font-family: Fredoka,sans-serif; font-size: clamp(1.65rem,3vw,2.5rem); overflow-wrap: anywhere; }
.analytics-kpis small { color: var(--muted); font-size: .7rem; }
.analytics-chart { height: 150px; display: flex; align-items: flex-end; gap: clamp(3px, .65vw, 9px); margin-top: 1rem; padding: 1rem 1rem .35rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); overflow: hidden; }
.analytics-bar { height: 100%; min-width: 3px; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: .35rem; }
.analytics-bar i { width: 100%; max-width: 28px; height: var(--bar); min-height: 5px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg,var(--violet),#9f8de3); }
.analytics-bar small { min-height: 13px; color: var(--muted); font-size: .58rem; white-space: nowrap; }
.analytics-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin-top: .8rem; }
.analytics-detail { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); }
.analytics-detail .panel-title { align-items: center; }
.analytics-detail h3 { margin: .12rem 0 0; font-family: Fredoka,sans-serif; font-size: 1.2rem; }
.analytics-list { display: grid; gap: .45rem; margin-top: .8rem; }
.analytics-list > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; border-radius: 10px; background: #f6f3ed; font-size: .75rem; }
.analytics-list code { overflow: hidden; color: var(--ink); font-family: inherit; text-overflow: ellipsis; white-space: nowrap; }
.analytics-empty { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

@media (max-width: 980px) {
  .analytics-heading { align-items: flex-start; flex-direction: column; }
  .analytics-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .analytics-detail-grid { grid-template-columns: 1fr 1fr; }
  .analytics-detail:last-child { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .analytics-range { width: 100%; overflow-x: auto; }
  .analytics-range button { flex: 1; white-space: nowrap; }
  .analytics-live-row { align-items: flex-start; flex-wrap: wrap; }
  .refresh-analytics { margin-left: 0; }
  .analytics-kpis,.analytics-detail-grid { grid-template-columns: 1fr; }
  .analytics-detail:last-child { grid-column: auto; }
  .analytics-chart { height: 125px; padding-inline: .55rem; }
  .analytics-bar small { display: none; }
}

.page-shell { max-width: 1380px; margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem) 5rem; }
.hero-copy { max-width: 780px; margin: 0 auto 2.5rem; text-align: center; }
.public-landing { width: 100%; max-width: none; padding: 0; position: relative; isolation: isolate; overflow-x: clip; }
.landing-sticky-backdrop { position: sticky; z-index: 0; top: 0; width: 100%; height: 100svh; margin-bottom: -100svh; overflow: hidden; background: linear-gradient(135deg, rgba(244,238,255,.14), rgba(234,246,255,.16)), url("/src/assets/homepage-2026-11-29/background-desktop-2400.webp") center / cover no-repeat; pointer-events: none; }
@media (max-width: 600px) {
  .landing-sticky-backdrop {
    background-image: linear-gradient(135deg, rgba(244,238,255,.14), rgba(234,246,255,.16)), url("/src/assets/homepage-2026-11-29/background-mobile-1077.webp");
    background-size: 100% 100%, cover;
    background-position: center, center top;
    background-repeat: no-repeat, no-repeat;
  }
}
.landing-scroll-content { position: relative; z-index: 1; width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; }
.landing-hero-stage { position: relative; min-height: max(420px, calc(100svh - 11.25rem)); display: grid; place-items: center; margin: 0 auto; }
.landing-hero-copy { width: min(980px, calc(100% - 2rem)); margin: 0; padding: clamp(2rem, 5vw, 4rem) 0; text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 0 28px rgba(255,255,255,.95); }
.landing-hero-copy h1 { color: #302a36; font-family: Fredoka, "Atkinson Hyperlegible", sans-serif; font-size: clamp(3.4rem, 7vw, 7rem); font-weight: 600; -webkit-text-stroke: 3px white; paint-order: stroke fill; text-shadow: 0 0 9px rgba(255,255,255,1), 0 0 22px rgba(255,255,255,.9), 0 5px 0 rgba(48,42,54,.58), 0 11px 18px rgba(36,32,43,.3); }
.hero-logo-crop { width: min(100%, 980px); margin: 0 auto; }
.hero-logo-crop img { display: block; width: 100%; height: auto; }
.hero-copy .landing-hero-tagline { position: absolute; left: 50%; bottom: clamp(.75rem, 2vh, 1.5rem); width: min(760px, calc(100% - 2rem)); margin: 0; transform: translateX(-50%); color: #fff; font-family: Fredoka, "Atkinson Hyperlegible", sans-serif; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-align: center; text-wrap: balance; text-shadow: 0 2px 8px rgba(30,24,42,.9), 0 0 2px rgba(30,24,42,.95); }
.homepage-game { position: relative; z-index: 2; width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: clamp(1.4rem,4vw,3.4rem); align-items: center; margin: 2rem auto; padding: clamp(1rem,2vw,1.35rem); border: 1px solid rgba(255,255,255,.78); border-radius: var(--radius-lg); background: linear-gradient(145deg,rgba(255,253,248,.97),rgba(242,235,255,.97)); box-shadow: 0 24px 64px rgba(45,31,75,.2); scroll-margin-top: 100px; }
.homepage-game-art { position: relative; display: block; min-width: 0; overflow: hidden; border-radius: calc(var(--radius-lg) - 10px); color: white; background: #7a58b5; box-shadow: 0 16px 38px rgba(44,27,76,.2); text-decoration: none; }
.homepage-game-art img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s ease; }
.homepage-game-art:hover img,.homepage-game-art:focus-visible img { transform: scale(1.025); }
.homepage-game-art:focus-visible { outline: 5px solid rgba(111,68,205,.42); outline-offset: 4px; }
.homepage-game-copy { padding: clamp(.5rem,2vw,1.5rem) clamp(.25rem,1.5vw,1rem); }
.homepage-game-copy h2 { margin: .6rem 0 .85rem; font-size: clamp(2.4rem,4.7vw,4.3rem); letter-spacing: -.04em; }
.homepage-game-copy>p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.58; }
.homepage-game-features { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1.25rem 0 1.4rem; list-style: none; }
.homepage-game-features li { display: inline-flex; align-items: center; gap: .38rem; padding: .55rem .72rem; border: 1px solid #ded3f7; border-radius: 999px; background: white; color: var(--violet-dark); font-size: .83rem; font-weight: 800; }
.homepage-game-features span { font-size: 1.1rem; }
.homepage-game-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; align-items: stretch; }
.homepage-game-cta { width: 100%; min-width: 0; justify-content: center; gap: clamp(.35rem,1.25vw,.65rem); padding-inline: clamp(.5rem,1.6vw,1rem); box-shadow: 0 8px 18px rgba(83,52,166,.22); font-size: clamp(.72rem,1.55vw,1rem); text-decoration: none; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.homepage-game-cta:hover,.homepage-game-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 0 0 4px rgba(255,255,255,.88), 0 0 28px rgba(126,87,235,.58), 0 14px 28px rgba(83,52,166,.3); }
.homepage-game-cta svg { width: 22px; height: 22px; }
.homepage-game-download { border: 2px solid var(--violet); color: var(--violet-dark); background: #fff; }
.homepage-game-download > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--violet); font-weight: 900; }
.games-hub { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 2rem auto; padding: clamp(1.4rem,4vw,3rem); overflow: hidden; border: 1px solid rgba(255,255,255,.76); border-radius: var(--radius-lg); background: linear-gradient(145deg,rgba(255,252,240,.97),rgba(245,237,255,.97) 52%,rgba(232,249,255,.97)); box-shadow: 0 24px 64px rgba(45,31,75,.18); scroll-margin-top: 100px; }
.games-hub::before { content: ""; position: absolute; width: 230px; height: 230px; right: -92px; top: -104px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.88) 0 10deg,rgba(255,209,92,.42) 10deg 20deg); opacity: .68; }
.games-hub-heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.games-hub-heading h2 { margin: .18rem 0 .35rem; font-size: clamp(2.35rem,5vw,4.5rem); line-height: .96; letter-spacing: -.04em; }
.games-hub-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.games-hub-heading-die { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 72px; height: 72px; border: 4px solid #fff; border-radius: 24px; background: linear-gradient(145deg,#f469a4,#7d5bc9); box-shadow: 0 10px 24px rgba(79,48,129,.22); font-size: 2rem; transform: rotate(5deg); }
.games-carousel { --games-carousel-gap: clamp(.75rem,1.7vw,1.15rem); position: relative; padding: 0 3.4rem; }
.games-hub .games-carousel-track { position: relative; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - (2 * var(--games-carousel-gap))) / 3); gap: var(--games-carousel-gap); overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.games-hub .games-carousel-track::-webkit-scrollbar { display: none; }
.games-hub .games-carousel-track .games-hub-card { scroll-snap-align: start; }
.games-carousel-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(102,74,157,.22); border-radius: 50%; color: var(--violet-dark); background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(55,38,84,.18); font: 900 2rem/1 system-ui,sans-serif; cursor: pointer; transform: translateY(-50%); transition: transform .18s ease,box-shadow .18s ease,background .18s ease; }
.games-carousel-arrow:hover,.games-carousel-arrow:focus-visible { background: #fff; box-shadow: 0 14px 30px rgba(55,38,84,.25); transform: translateY(-50%) scale(1.06); }
.games-carousel-prev { left: .25rem; }
.games-carousel-next { right: .25rem; }
.games-show-all { display: block; margin: 1.15rem auto 0; padding: .25rem .4rem; border: 0; color: var(--violet-dark); background: transparent; font: 850 .92rem/1.3 "Atkinson Hyperlegible",sans-serif; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.games-show-all:hover,.games-show-all:focus-visible { color: var(--violet); }
.games-carousel.is-expanded { padding: 0; }
.games-carousel.is-expanded .games-carousel-track { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; }
.games-carousel.is-expanded .games-carousel-arrow { display: none; }
.games-hub-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(102,74,157,.15); border-radius: 26px; color: var(--ink); background: rgba(255,255,255,.94); box-shadow: 0 13px 30px rgba(55,38,84,.11); text-decoration: none; transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.games-hub-card:hover,.games-hub-card:focus-visible { transform: translateY(-5px); border-color: rgba(111,68,205,.45); box-shadow: 0 20px 42px rgba(55,38,84,.2); }
.games-hub-card:focus-visible { outline: 4px solid rgba(111,68,205,.28); outline-offset: 3px; }
.games-hub-art { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: #e9e0f7; }
.games-hub-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.games-hub-card:hover .games-hub-art img,.games-hub-card:focus-visible .games-hub-art img { transform: scale(1.045); }
.games-hub-playroom .games-hub-art img,.games-hub-backyard .games-hub-art img { object-position: center; }
.games-hub-dance .games-hub-art img { object-position: center; }
.games-hub-halloween .games-hub-art img { object-position: center 35%; }
.games-hub-board-art { isolation: isolate; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; justify-items: center; padding: 16%; background: radial-gradient(circle at 16% 18%,rgba(255,255,255,.9) 0 6%,transparent 7%),linear-gradient(145deg,#8de5de,#9dcff5 42%,#d4b6f4 74%,#ffd885); }
.games-hub-board-art::before { content: ""; position: absolute; z-index: -1; inset: 16% 10%; border: 16px dotted rgba(255,255,255,.88); border-radius: 46% 54% 42% 58%; transform: rotate(-8deg); }
.games-hub-board-art .board-path { position: absolute; z-index: -2; width: 76%; height: 56%; border: 22px solid rgba(255,224,132,.92); border-radius: 50%; transform: rotate(-11deg); box-shadow: 0 5px 0 rgba(95,61,130,.14); }
.games-hub-board-art b { display: grid; place-items: center; width: clamp(42px,4.2vw,58px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 8px 14px rgba(63,42,86,.17); font-size: clamp(1.3rem,2.1vw,2rem); font-style: normal; transform: rotate(-8deg); }
.games-hub-board-art b:nth-of-type(2) { transform: translateY(28%) rotate(7deg); }
.games-hub-board-art b:nth-of-type(3) { transform: rotate(-5deg); }
.games-hub-card-copy { flex: 1; display: flex; flex-direction: column; padding: 1rem 1rem 1.05rem; }
.games-hub-card-copy>strong { font-family: Fredoka,"Atkinson Hyperlegible",sans-serif; font-size: clamp(1.25rem,2vw,1.55rem); line-height: 1.05; }
.games-hub-card-copy>small { flex: 1; display: block; margin-top: .55rem; color: var(--muted); font-size: .82rem; line-height: 1.46; }
.games-hub-play { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; color: var(--violet-dark); font-size: .82rem; font-weight: 850; }
.games-hub-play svg { width: 21px; height: 21px; padding: 3px; border-radius: 50%; stroke: currentColor; background: #eee7ff; }
.child-led-story { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 1180px; margin: 0 auto clamp(2.5rem, 6vw, 5rem); padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.child-led-copy h2 { margin: .7rem 0 1rem; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.035em; }
.child-led-copy p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.16rem); line-height: 1.65; }
.child-book-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.child-book-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f3efe8; box-shadow: 0 12px 28px rgba(46,39,65,.08); }
.child-book-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
.child-book-card figcaption { display: flex; align-items: center; gap: .65rem; min-height: 64px; padding: .8rem 1rem; color: var(--ink); font-size: .82rem; font-weight: 700; }
.landing-footer { max-width: 1120px; margin: clamp(2rem, 5vw, 4rem) auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(36,32,43,.96); color: white; box-shadow: 0 18px 45px rgba(36,32,43,.2); backdrop-filter: blur(12px); }
.landing-footer-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; }
.landing-footer-bar strong { flex: 0 0 auto; white-space: nowrap; font-family: Fredoka, sans-serif; font-size: 1rem; }
.footer-links { display: flex; gap: .45rem; }
.footer-links button { min-height: 40px; display: inline-flex; align-items: center; padding: .5rem .75rem; border: 2px solid white; border-radius: 10px; background: #fffdf8; color: #352568; font-weight: 800; cursor: pointer; }
.footer-links button:hover, .footer-links button:focus-visible { background: #eee9ff; color: #291c55; border-color: #d6ccfb; outline: 3px solid rgba(255,255,255,.5); outline-offset: 2px; }
.social-links { display: flex; align-items: center; gap: .45rem; background: transparent; padding: 0; border-radius: 0; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(76,57,146,.22); border-radius: 13px; background: rgba(255,255,255,.86); color: var(--violet-dark); text-decoration: none; transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease; }
.social-link svg { width: 21px; height: 21px; }
.social-link:hover { transform: translateY(-2px); background: white; box-shadow: 0 7px 18px rgba(55,39,91,.16); }
.social-link:focus-visible { outline: 3px solid rgba(109,82,200,.3); outline-offset: 2px; }
.social-icon-dot { fill: currentColor; stroke: none; }
.landing-footer .social-link { width: 38px; height: 38px; border-color: rgba(255,255,255,.32); border-radius: 11px; background: rgba(255,255,255,.1); color: white; }
.landing-footer .social-link:hover { background: rgba(255,255,255,.2); }
.mobile-social-links { margin-right: auto; }
.sample-badge, .eyebrow { display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--violet-dark); }
.sample-badge { background: var(--violet-soft); padding: .55rem .8rem; border-radius: 99px; }
h1, h2 { font-family: Fredoka, "Atkinson Hyperlegible", sans-serif; margin: 0; line-height: 1.07; }
.hero-copy h1, .section-intro h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.035em; margin: 1rem 0; text-wrap: balance; }
.hero-copy p, .section-intro > p { margin: 0 auto; max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; }
.learning-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.learning-layout.single-lesson { grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin: 0 auto; }
.lesson-rail, .lesson-stage, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lesson-rail { padding: 1.25rem; position: sticky; top: 104px; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tiny-chip, .status-chip { font-size: .7rem; font-weight: 700; padding: .35rem .55rem; background: #f1eee8; color: var(--muted); border-radius: 99px; }
.lesson-stack { display: grid; gap: .65rem; }
.lesson-tile { width: 100%; display: grid; grid-template-columns: 38px 1fr 32px; align-items: center; gap: .7rem; text-align: left; border: 1px solid transparent; border-radius: var(--radius-sm); padding: .8rem; background: #f6f3ed; cursor: pointer; }
.lesson-tile.current { background: var(--violet-soft); border-color: #d6ccfb; }
.lesson-tile.locked { opacity: .62; cursor: not-allowed; }
.lesson-number { font-family: Fredoka, sans-serif; font-size: 1.1rem; color: var(--violet-dark); }
.lesson-copy strong, .lesson-copy small { display: block; }
.lesson-copy small { color: var(--muted); font-size: .76rem; line-height: 1.25; margin-top: .25rem; }
.lesson-state { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--violet-dark); }
.grownup-note, .role-boundary { display: flex; gap: .7rem; margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--yellow-soft); color: #665423; }
.grownup-note > span, .role-boundary > svg { flex: 0 0 auto; }
.grownup-note p, .role-boundary p { margin: 0; font-size: .8rem; line-height: 1.45; }
.lesson-stage { padding: clamp(1rem, 2.5vw, 1.6rem); overflow: hidden; }
.lesson-meta { display: flex; justify-content: space-between; padding: 0 .25rem 1rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.video-placeholder { min-height: clamp(240px, 35vw, 470px); border-radius: var(--radius-md); overflow: hidden; position: relative; background: linear-gradient(180deg, #d9e9f4 0%, #f4e9c4 73%); isolation: isolate; }
.video-stamp { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%, -50%); min-width: 230px; text-align: center; padding: 1.5rem; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; backdrop-filter: blur(10px); }
.video-stamp span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto .75rem; background: var(--coral); color: white; border-radius: 17px 17px 17px 5px; }
.video-stamp strong, .video-stamp small { display: block; }
.video-stamp strong { letter-spacing: .08em; font-size: .78rem; }
.video-stamp small { color: var(--muted); margin-top: .35rem; }
.hill { position: absolute; z-index: 2; width: 80%; height: 55%; border-radius: 50% 50% 0 0; bottom: -30%; transform: rotate(-3deg); }
.hill-back { background: #9fc698; left: -20%; }
.hill-front { background: #719d73; right: -20%; bottom: -35%; }
.sky-shape { position: absolute; width: 150px; height: 45px; background: rgba(255,255,255,.55); border-radius: 99px; }
.sky-shape:before, .sky-shape:after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.sky-shape:before { width: 55px; height: 55px; left: 25px; bottom: 0; }.sky-shape:after { width: 75px; height: 75px; right: 18px; bottom: 0; }
.shape-one { left: 8%; top: 17%; }.shape-two { right: 7%; top: 12%; transform: scale(.7); }
.caption-card { position: relative; z-index: 5; width: calc(100% - clamp(1rem, 4vw, 4rem)); min-height: 148px; margin: -2.2rem auto 0; padding: 1.55rem clamp(1rem, 4vw, 2.5rem); display: grid; place-items: center; text-align: center; background: var(--ink); color: white; border-radius: var(--radius-md); box-shadow: 0 15px 40px rgba(20,17,25,.2); }
.caption-label { position: absolute; top: .8rem; left: 1rem; text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; color: #bab4c3; }
.caption-card p { margin: 1rem 0 0; font-family: Fredoka, sans-serif; font-size: clamp(1.5rem, 3.3vw, 2.75rem); line-height: 1.18; text-wrap: balance; }
.player-controls { display: flex; align-items: center; gap: 1rem; padding: 1.4rem .5rem .5rem; }
.round-control { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--violet); color: white; cursor: pointer; }
.round-control svg { width: 25px; height: 25px; }
.timeline-wrap { flex: 1; }.timeline { width: 100%; appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--violet) var(--progress), #ded9e3 var(--progress)); }
.timeline::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border: 4px solid white; border-radius: 50%; background: var(--violet); box-shadow: 0 2px 7px #888; }
.time-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin-top: .35rem; }
.text-control { border: 0; background: transparent; color: var(--violet-dark); font-weight: 700; cursor: pointer; }
.finish-button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: var(--radius-sm); background: var(--mint-soft); color: #267659; font-weight: 700; cursor: pointer; }

.dialog-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(28,24,35,.58); backdrop-filter: blur(5px); }
.talk-card { width: min(560px, 100%); padding: clamp(1.5rem, 5vw, 3rem); text-align: center; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 25px 80px rgba(20,15,30,.35); }
.talk-illustration { position: relative; width: 110px; height: 90px; display: grid; place-items: center; margin: -1rem auto 1rem; }
.talk-illustration > span { position: relative; z-index: 2; width: 72px; height: 72px; display: grid; place-items: center; background: var(--coral); color: white; border-radius: 50% 50% 45% 55%; font-family: Fredoka; font-size: 2.6rem; transform: rotate(-5deg); }
.talk-illustration i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }.talk-illustration i:nth-of-type(1){left:5px;top:20px}.talk-illustration i:nth-of-type(2){right:4px;top:5px}.talk-illustration i:nth-of-type(3){right:12px;bottom:4px}
.talk-card h2 { font-size: clamp(2rem, 5vw, 3rem); margin: .7rem 0; }.talk-card > p { font-size: 1.25rem; color: var(--muted); line-height: 1.5; }.talk-actions { display: flex; gap: .7rem; margin-top: 1.5rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 14px; padding: .75rem 1.1rem; font-weight: 700; cursor: pointer; }.button.primary { border: 1px solid var(--violet); background: var(--violet); color: white; }.button.secondary { border: 1px solid var(--line); background: white; }.talk-actions .button { flex: 1; }

.section-intro { max-width: 850px; margin-bottom: 2.5rem; }.section-intro h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }.section-intro > p { margin-left: 0; }
.parent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }.panel { padding: clamp(1.25rem, 3vw, 2rem); }.panel-title { display: flex; align-items: center; gap: .85rem; }.panel-title > div { flex: 1; }.panel-title h2 { margin-top: .25rem; font-size: 1.55rem; }.panel-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; }.panel-icon.coral{background:var(--coral-soft);color:#bd5948}.panel-icon.mint{background:var(--mint-soft);color:#277858}.panel-icon.blue{background:var(--blue-soft);color:#32779f}.panel-icon.yellow{background:var(--yellow-soft);color:#8b6b16}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }label { display: block; font-weight: 700; font-size: .88rem; }input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; background: #fcfaf6; margin-top: .4rem; color: var(--ink); }.privacy-line { display: flex; gap: .6rem; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }.privacy-line svg { flex: 0 0 auto; color: var(--mint); }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.5rem 0; }.metric { padding: 1rem; background: #f6f3ed; border-radius: var(--radius-sm); }.metric strong, .metric span { display: block; }.metric strong { font-family: Fredoka; font-size: 2.3rem; color: var(--violet-dark); }.metric span { color: var(--muted); font-size: .8rem; }.week-dots { display: flex; justify-content: space-between; gap: .35rem; }.week-dots span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f1eee8; color: var(--muted); font-size: .7rem; font-weight: 700; }.week-dots .filled { background: var(--mint); color: white; }
.privacy-panel > p { color: var(--muted); line-height: 1.5; }.check-list { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }.check-list li { display: flex; gap: .6rem; align-items: center; }.check-list svg { color: var(--mint); }
.route-list { display: grid; gap: .7rem; margin-top: 1.5rem; }.route-list > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .8rem; background: #f6f3ed; border-radius: var(--radius-sm); }.route-list strong,.route-list small{display:block}.route-list small{color:var(--muted);margin-top:.15rem}.flag-placeholder{display:grid;place-items:center;width:42px;height:32px;border:1px solid var(--line);border-radius:8px;background:white;font-size:.68rem;font-weight:700}.route-state{font-size:.68rem;font-weight:700;background:#e6e1eb;padding:.35rem .5rem;border-radius:99px}.route-state.blocked{background:var(--coral-soft);color:#a34538}
.provisional-note { margin: 1.15rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.checkout-button { width: 100%; margin-top: 1rem; justify-content: center; }
.checkout-disclaimer,.checkout-message { display:block; margin-top:.75rem; color:var(--muted); line-height:1.5; }
.checkout-message { padding:.8rem 1rem; border-radius:14px; background:var(--mint-soft); color:#245c4c; font-weight:700; }
.checkout-message.error { background:#ffe8e3; color:#8a2e21; }
.course-access-chip { display:inline-flex; align-items:center; gap:.55rem; margin-top:1rem; padding:.75rem 1rem; border-radius:999px; background:var(--mint-soft); color:#245c4c; font-weight:800; }
.course-access-chip svg { width:1.2rem; height:1.2rem; }

.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.3rem; align-items: start; }.draft-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }.draft-heading h2 { margin-top: .25rem; }.draft-status { background: var(--yellow-soft); color: #725713; }.studio-step { display: grid; grid-template-columns: 36px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }.step-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--violet-soft); color: var(--violet-dark); font-family: Fredoka; }.upload-box { width: 100%; min-height: 92px; display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .4rem; border: 1.5px dashed #bdb5c8; border-radius: var(--radius-sm); background: #fbf9f4; color: var(--muted); cursor: pointer; }.upload-box.compact { min-height: 70px; }.upload-box > svg { width: 28px; height: 28px; color: var(--violet); }.upload-box span, .upload-box strong, .upload-box small { display: block; }.upload-box strong { color: var(--ink); }.upload-box small { font-weight: 400; margin-top: .2rem; }.upload-box.selected-upload { border-style: solid; border-color: var(--mint); background: var(--mint-soft); }.field-help { display: block; color: var(--muted); margin-top: .4rem; }.local-note { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .82rem; }.form-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; }.workflow-panel { position: sticky; top: 104px; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #ece7df; }.workflow-panel ol { list-style: none; padding: 0; margin: 1rem 0; }.workflow-panel li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: .7rem; min-height: 78px; }.workflow-panel li:not(:last-child):after { content:""; position:absolute; left:18px; top:38px; bottom:4px; border-left:2px dashed #c6bfcf; }.workflow-panel li > span { width: 36px; height: 36px; display: grid; place-items:center; border-radius:50%; background:white; font-family:Fredoka; color:var(--muted); }.workflow-panel li.active > span { background:var(--violet);color:white; }.workflow-panel li strong,.workflow-panel li small{display:block}.workflow-panel li small{color:var(--muted);margin-top:.25rem;line-height:1.3}.role-boundary{background:var(--paper);color:var(--muted)}.role-boundary strong{color:var(--ink)}
.upload-box.drag-active { border-style: solid; border-color: var(--violet); background: var(--violet-soft); transform: translateY(-2px); }
.import-status { display: block; margin-top: .55rem; color: var(--muted); }
.import-status.error { color: #a34538; }
.toast { position: fixed; z-index: 100; bottom: 1.5rem; left: 50%; transform: translateX(-50%); padding: .9rem 1.1rem; border-radius: 14px; background: var(--ink); color: white; box-shadow: var(--shadow); text-align: center; }

.header-books-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem; border: 1px solid rgba(62,47,72,.22); border-radius: 15px; background: rgba(255,255,255,.76); color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; }
.header-books-link.game-nav-link { border-color: #7b51db; background: linear-gradient(135deg,#7047ce,#e84f91); color: #fff; box-shadow: 0 5px 14px rgba(89,50,159,.24); }
.header-books-link.game-nav-link:hover,.header-books-link.game-nav-link:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(89,50,159,.32); }
.header-books-link.active { border-color: var(--violet); background: var(--violet); color: #fff; }
.public-mobile-actions { display: none; }
.public-mobile-menu { display: none; }
.mobile-menu-toggle { list-style: none; }
.mobile-menu-toggle::-webkit-details-marker { display: none; }
.mobile-menu-icon { width: 48px; height: 46px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(62,47,72,.22); border-radius: 15px; background: rgba(255,255,255,.84); cursor: pointer; box-shadow: 0 5px 18px rgba(59,44,77,.1); }
.mobile-menu-icon i { width: 23px; height: 3px; display: block; border-radius: 99px; background: var(--violet-dark); transition: transform .2s ease, opacity .2s ease; }
.public-mobile-menu[open] .mobile-menu-icon i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.public-mobile-menu[open] .mobile-menu-icon i:nth-child(2) { opacity: 0; }
.public-mobile-menu[open] .mobile-menu-icon i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu-panel { position: absolute; z-index: 50; top: calc(100% + .65rem); right: 0; width: min(310px,calc(100vw - 2rem)); display: grid; gap: .6rem; padding: .8rem; border: 1px solid rgba(79,65,121,.18); border-radius: 20px; background: rgba(255,253,248,.98); box-shadow: 0 22px 54px rgba(46,39,65,.22); backdrop-filter: blur(18px); }
.mobile-menu-panel>.header-books-link { width: 100%; justify-content: flex-start; padding-inline: 1rem; }
.mobile-menu-tools { display: flex; align-items: center; gap: .6rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.mobile-menu-tools .public-login { flex: 1; max-width: none; }
.books-teaser { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 2rem auto; padding: clamp(1.4rem, 4vw, 3.2rem); border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-lg); background: rgba(255,250,246,.93); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.print-preorder { position: relative; z-index: 2; width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.85fr); gap: clamp(1.5rem,4vw,3rem); align-items: center; margin: 2rem auto; padding: clamp(1.5rem,4vw,3rem); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(255,250,246,.97),rgba(255,235,242,.96) 52%,rgba(231,248,244,.96)); box-shadow: var(--shadow); }
.print-preorder-copy h2 { margin: .55rem 0 .7rem; font-size: clamp(2.25rem,4.8vw,4rem); letter-spacing: -.035em; }
.print-preorder-copy p { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.print-waitlist-form { padding: clamp(1.1rem,2.5vw,1.6rem); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 14px 34px rgba(51,39,67,.08); }
.print-waitlist-form>label { font-family: Fredoka,sans-serif; font-size: 1rem; }
.waitlist-fields { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; align-items: end; }
.waitlist-fields input { min-height: 52px; margin-top: .45rem; }
.waitlist-fields .button { min-height: 52px; white-space: nowrap; }
.print-waitlist-form>small { display: block; margin-top: .65rem; color: var(--muted); line-height: 1.4; }
.waitlist-honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.waitlist-error { margin: .7rem 0 0; color: #8a2e21; font-weight: 700; }
.waitlist-success { min-height: 150px; display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid #a9d8c7; border-radius: 24px; background: rgba(230,248,241,.94); color: #245c4c; }
.waitlist-success>svg { flex: 0 0 auto; width: 42px; height: 42px; padding: .55rem; border-radius: 50%; background: var(--mint); color: #fff; }
.waitlist-success strong,.waitlist-success span { display: block; }
.waitlist-success strong { font-family: Fredoka,sans-serif; font-size: 1.45rem; }
.waitlist-success span { margin-top: .3rem; line-height: 1.45; }

/* Okay Kids safeAI */
.learn-ai-page { min-height: 100vh; overflow-x: clip; background: linear-gradient(180deg,#fff9f4 0,#f8f3ff 48%,#edf9f4 100%); }
.learn-ai-hero { position: relative; min-height: min(820px,calc(100svh - 84px)); display: grid; align-items: center; isolation: isolate; overflow: hidden; background: #33274e; }
.learn-ai-hero-image { position: absolute; z-index: -2; inset: 0; background: url("/src/assets/okay-kids-classroom-background-hands-fixed-v2.png") 64% center / cover no-repeat; transform: scale(1.01); }
.learn-ai-hero::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(37,27,54,.9) 0%,rgba(47,34,67,.78) 31%,rgba(47,34,67,.2) 66%,rgba(47,34,67,.04) 100%),linear-gradient(0deg,rgba(28,22,39,.3),transparent 50%); }
.learn-ai-hero-copy { width: min(720px,52vw); margin-left: max(5vw,calc((100vw - 1380px)/2)); padding: clamp(4rem,9vw,8rem) 2rem; color:#fff; text-shadow:0 2px 14px rgba(25,18,37,.32); }
.learn-ai-kicker { display:inline-flex; padding:.58rem .86rem; border:1px solid rgba(255,255,255,.38); border-radius:999px; background:rgba(255,255,255,.16); font-size:.78rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; backdrop-filter:blur(10px); }
.learn-ai-hero h1 { margin:.8rem 0 .65rem; font-family:Fredoka,sans-serif; font-size:clamp(4rem,8vw,8.8rem); font-weight:650; letter-spacing:-.065em; line-height:.77; }
.learn-ai-hero h1 span { display:block; margin:0 0 .35em .12em; color:#ffe884; font-size:.37em; letter-spacing:.01em; line-height:1; text-transform:none; }
.learn-ai-hero-copy>p { max-width:580px; margin:1.6rem 0 1.8rem; font-size:clamp(1.2rem,2vw,1.55rem); font-weight:700; line-height:1.42; text-wrap:balance; }
.learn-ai-hero-cta { background:linear-gradient(135deg,#ffe172,#ffac72); color:#3d2c37; box-shadow:0 14px 32px rgba(26,18,38,.28); }
.learn-ai-book-stamp { position:absolute; right:clamp(1rem,4vw,4rem); bottom:clamp(1rem,4vw,3rem); width:clamp(145px,15vw,210px); aspect-ratio:1; display:grid; place-content:center; gap:.1rem; border:3px solid rgba(255,255,255,.88); border-radius:50%; background:rgba(109,82,200,.9); color:#fff; text-align:center; box-shadow:0 16px 36px rgba(40,29,58,.26); transform:rotate(7deg); backdrop-filter:blur(8px); }
.learn-ai-book-stamp::before { content:""; position:absolute; inset:7px; border:1px dashed rgba(255,255,255,.68); border-radius:50%; }
.learn-ai-book-stamp strong,.learn-ai-book-stamp span,.learn-ai-book-stamp i { position:relative; display:block; }
.learn-ai-book-stamp strong { font-family:Fredoka,sans-serif; font-size:clamp(1.25rem,2vw,1.8rem); line-height:.9; text-transform:uppercase; }
.learn-ai-book-stamp span { font-size:.75rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.learn-ai-book-stamp i { color:#ffe36f; font-size:1.25rem; font-style:normal; }
.learn-ai-content { width:min(1240px,calc(100% - 2rem)); margin:0 auto; padding:clamp(3rem,7vw,6rem) 0 4rem; }
.learn-ai-intro { max-width:950px; margin:0 auto clamp(3.5rem,7vw,6rem); text-align:center; }
.learn-ai-intro h2,.learn-ai-section-heading h2,.learn-ai-book-copy h2,.learn-ai-notify h2 { margin:.55rem 0 .9rem; font-family:Fredoka,sans-serif; font-size:clamp(2.45rem,5vw,4.8rem); letter-spacing:-.045em; line-height:1.02; text-wrap:balance; }
.learn-ai-intro p { max-width:820px; margin:0 auto; color:var(--muted); font-size:clamp(1.05rem,1.8vw,1.25rem); line-height:1.7; }
.learn-ai-lessons { margin-bottom:clamp(3.5rem,7vw,6rem); }
.learn-ai-section-heading { max-width:780px; margin-bottom:1.6rem; }
.learn-ai-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.learn-ai-card-grid article { position:relative; min-height:320px; padding:clamp(1.4rem,3vw,2.2rem); overflow:hidden; border:1px solid rgba(75,57,121,.13); border-radius:32px; background:#fffdf9; box-shadow:0 16px 42px rgba(57,43,77,.08); }
.learn-ai-card-grid article:nth-child(2) { background:linear-gradient(145deg,#edf7ff,#f8f5ff); }
.learn-ai-card-grid article:nth-child(3) { background:linear-gradient(145deg,#fff4f6,#fffaf0); }
.learn-ai-card-grid article>span { display:grid; place-items:center; width:76px; height:76px; margin-bottom:2rem; border-radius:24px; background:var(--yellow-soft); font-size:2.2rem; transform:rotate(-3deg); }
.learn-ai-card-grid article:nth-child(2)>span { background:var(--blue-soft); transform:rotate(3deg); }
.learn-ai-card-grid article:nth-child(3)>span { background:var(--coral-soft); }
.learn-ai-card-grid small { position:absolute; top:1.6rem; right:1.7rem; color:rgba(76,57,146,.25); font-family:Fredoka,sans-serif; font-size:2rem; font-weight:700; }
.learn-ai-card-grid h3 { margin:0 0 .6rem; font-family:Fredoka,sans-serif; font-size:clamp(1.55rem,2.5vw,2.2rem); line-height:1.05; }
.learn-ai-card-grid p { margin:0; color:var(--muted); line-height:1.65; }
.learn-ai-book-preview { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr); gap:clamp(2rem,6vw,6rem); align-items:center; margin-bottom:clamp(3.5rem,7vw,6rem); padding:clamp(1.4rem,4vw,3.5rem); border-radius:42px; background:linear-gradient(135deg,#4e3d91,#725bd1 52%,#8a70df); color:#fff; box-shadow:0 28px 70px rgba(58,42,114,.24); }
.learn-ai-book-visual { display:grid; place-items:center; min-height:480px; padding:2rem; border-radius:30px; background:radial-gradient(circle at 22% 22%,rgba(255,235,132,.42),transparent 28%),radial-gradient(circle at 78% 76%,rgba(121,220,196,.32),transparent 34%),rgba(255,255,255,.1); }
.learn-ai-book-cover { position:relative; width:min(310px,85%); aspect-ratio:.78; display:flex; flex-direction:column; justify-content:center; align-items:center; border:10px solid #fffaf0; border-radius:5px 22px 22px 5px; background:linear-gradient(160deg,#fff1a8,#ffb8ce 48%,#b9a5ff); color:#392b55; text-align:center; box-shadow:-13px 15px 0 #e1d6bf,0 28px 50px rgba(29,21,52,.3); transform:rotate(-5deg); }
.learn-ai-book-cover::before { content:""; position:absolute; top:0; bottom:0; left:18px; border-left:2px solid rgba(77,59,118,.18); }
.learn-ai-book-cover span { font-family:Fredoka,sans-serif; font-size:1.4rem; }
.learn-ai-book-cover strong { margin:.55rem 0; font-family:Fredoka,sans-serif; font-size:clamp(3.8rem,7vw,6rem); letter-spacing:-.06em; line-height:.72; }
.learn-ai-book-cover small { font-weight:850; letter-spacing:.04em; text-transform:uppercase; }
.learn-ai-book-cover i { position:absolute; top:1rem; right:1rem; color:#fff; font-size:2rem; font-style:normal; }
.learn-ai-book-copy h2 { color:#fff; }
.learn-ai-book-copy>p { max-width:650px; color:rgba(255,255,255,.84); font-size:1.08rem; line-height:1.65; }
.learn-ai-book-copy ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:1.4rem 0; padding:0; list-style:none; }
.learn-ai-book-copy li { padding:.75rem .85rem; border:1px solid rgba(255,255,255,.2); border-radius:14px; background:rgba(255,255,255,.1); font-weight:800; }
.learn-ai-book-copy li::before { content:"✓"; margin-right:.5rem; color:#ffe571; }
.learn-ai-working-note { padding:1rem 1.1rem; border-left:4px solid #ffe571; background:rgba(34,25,68,.22); border-radius:4px 16px 16px 4px; }
.learn-ai-notify { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:clamp(1.5rem,5vw,4rem); align-items:center; margin-bottom:2rem; padding:clamp(1.5rem,4vw,3.5rem); border:1px solid rgba(79,65,121,.13); border-radius:36px; background:linear-gradient(135deg,#fffaf0,#fff0f5 54%,#eefaf5); box-shadow:var(--shadow); scroll-margin-top:110px; }
.learn-ai-notify h2 { font-size:clamp(2.3rem,4vw,3.7rem); }
.learn-ai-notify>div>p { max-width:550px; margin:0; color:var(--muted); font-size:1.08rem; line-height:1.6; }
.learn-ai-waitlist-form { background:rgba(255,255,255,.94); }
.learn-ai-waitlist-form .waitlist-fields { grid-template-columns:1fr; }
.learn-ai-waitlist-form .button { width:100%; justify-content:center; }
.learn-ai-success { min-height:180px; }
.lesson-coming-soon { position: relative; z-index: 2; width: 100%; max-width: 1180px; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 1rem; margin: 2rem auto; padding: clamp(1.5rem,4vw,3rem); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); background: rgba(255,250,246,.94); box-shadow: var(--shadow); text-align: center; }.lesson-coming-soon-heading { display: flex; align-items: center; justify-content: center; gap: 1rem; }.lesson-coming-soon-heading span { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--coral); color: #fff; }.lesson-coming-soon svg { width: 28px; height: 28px; }.lesson-coming-soon h2 { margin: 0; font-size: clamp(1.8rem,4vw,3.3rem); }.lesson-coming-soon p { margin: 0; color: var(--muted); font-family: Fredoka,"Atkinson Hyperlegible",sans-serif; font-size: clamp(1.4rem,3vw,2rem); font-weight: 600; }
.books-card-heading { display: flex; align-items: center; gap: .9rem; }.books-card-icon { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; background: var(--violet); color: #fff; }.books-card-icon svg { width: 34px; height: 34px; }
.books-teaser-copy { max-width: 900px; }.books-teaser-copy h2,.books-intro h1 { margin: .12rem 0 .25rem; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.02; }.books-teaser-copy p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.35; }
.price-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 1.6rem 0; }
.price-card { min-width: 0; display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; }.price-card.featured { background: var(--violet-soft); border-color: #c7b7ff; }.price-card.blocked { background: #f5f1ed; opacity: .86; }.price-card>span { color: var(--violet-dark); font-weight: 800; }.price-card>strong { margin-top: .5rem; font-family: Fredoka,sans-serif; font-size: clamp(1.65rem,3vw,2.35rem); }.price-card>small { color: var(--muted); }.price-card>.button { margin-top: 1rem; width: 100%; }
.simplified-pricing { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
.simplified-pricing.one-time-only { grid-template-columns: minmax(0,1fr); }
.library-monthly-choice { justify-content: center; }.library-monthly-choice>strong { font-size: clamp(1.45rem,2.4vw,2rem); }.library-monthly-choice>.button { max-width: 340px; }
.currency-picker-card { position: relative; width: min(680px,100%); padding: clamp(1.4rem,4vw,2.5rem); border: 1px solid rgba(255,255,255,.75); border-radius: 30px; background: var(--paper); box-shadow: 0 25px 80px rgba(20,15,30,.35); }.currency-picker-card h2 { margin: .3rem 2.5rem .55rem 0; font-size: clamp(2rem,5vw,3.1rem); }.currency-picker-card>p { margin: 0; color: var(--muted); line-height: 1.5; }.currency-picker-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--violet-dark); font-size: 1.75rem; cursor: pointer; }.currency-picker-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin-top: 1.4rem; }.currency-option { min-width: 0; display: grid; gap: .35rem; padding: 1.15rem; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); cursor: pointer; }.currency-option:hover:not(:disabled),.currency-option:focus-visible:not(:disabled) { border-color: var(--violet); background: var(--violet-soft); }.currency-option:disabled { opacity: .55; cursor: not-allowed; }.currency-option span { color: var(--violet-dark); font-weight: 800; }.currency-option strong { font-family: Fredoka,sans-serif; font-size: clamp(1.5rem,3vw,2rem); }.currency-option small { color: var(--muted); }
.book-slot-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 1.4rem 0; }.book-slot { min-height: 150px; display: grid; place-items: center; align-content: center; gap: .45rem; border: 2px dashed #c7b8d4; border-radius: 22px; color: var(--violet-dark); background: linear-gradient(145deg,#fff2f7,#ece8ff); }.book-slot svg { width: 2rem; height: 2rem; }.book-slot strong { font-family: Fredoka,sans-serif; font-size: 1.25rem; }
.book-cover-card { min-height: 0; aspect-ratio: 1971 / 2000; overflow: hidden; border: 0; background: #f5edf7; box-shadow: 0 10px 24px rgba(61,42,77,.14); }.book-cover-button { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: pointer; }.book-cover-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease, filter .22s ease; }.book-cover-button:hover img,.book-cover-button:focus-visible img { transform: scale(1.025); filter: saturate(1.06) brightness(1.02); }.book-cover-button:focus-visible { outline: 5px solid rgba(109,82,200,.7); outline-offset: -5px; }
.public-books-page { max-width: 1460px; padding-top: clamp(1rem,1.8vw,1.5rem); padding-bottom: 4rem; }
.public-library-hero { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(1.2rem,4vw,3.5rem); align-items: stretch; margin-bottom: clamp(1.25rem,2.5vw,2rem); }
.public-library-copy { display: grid; align-content: center; min-height: 0; padding: clamp(1.5rem,3vw,3rem); border: 1px solid rgba(255,255,255,.72); border-radius: 36px; background: linear-gradient(135deg,rgba(255,209,224,.96),rgba(255,233,163,.94) 52%,rgba(190,239,226,.96)); box-shadow: var(--shadow); }
.public-library-copy h1 { max-width: 780px; margin: .35rem 0 1rem; font-size: clamp(2rem,4.3vw,4.2rem); line-height: .98; letter-spacing: -.04em; }
.public-library-copy p { max-width: 700px; margin: 0; color: #5d5668; font-size: clamp(1rem,1.7vw,1.25rem); line-height: 1.55; }
.public-library-plan { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.7rem,4vw,3rem); overflow: hidden; border-radius: 36px; background: linear-gradient(150deg,#49349e,#7454d5 58%,#8f6dea); color: #fff; box-shadow: 0 24px 58px rgba(72,49,143,.28); }
.public-library-plan::after { content:""; position:absolute; width:210px; height:210px; right:-75px; top:-85px; border-radius:50%; background:rgba(255,255,255,.1); }
.public-library-plan .eyebrow { color: rgba(255,255,255,.76); }
.library-plan-badge { align-self: flex-start; margin-bottom: 1.2rem; padding: .48rem .75rem; border-radius: 999px; background: #ffe797; color: #493810; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.library-plan-price { display: flex; align-items: baseline; gap: .55rem; margin: .35rem 0 .7rem; }
.library-plan-price strong { font-family: Fredoka,sans-serif; font-size: clamp(3rem,5vw,4.7rem); line-height: 1; }
.library-plan-price span { color: rgba(255,255,255,.76); font-weight: 700; }
.public-library-plan>p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.5; }
.public-library-plan ul { display: grid; gap: .65rem; margin: 1.25rem 0 1.4rem; padding: 0; list-style: none; }
.public-library-plan li { display: flex; align-items: center; gap: .6rem; font-weight: 750; }
.public-library-plan li svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
.public-library-plan .button { width: 100%; background: #fff; color: var(--violet-dark); }
.public-library-plan>small { margin-top: .75rem; color: rgba(255,255,255,.7); line-height: 1.4; text-align: center; }
.public-library-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(1rem,2.2vw,2rem); }
.public-library-book { min-width: 0; }
.public-library-cover { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 28px; background: #f5edf7; box-shadow: 0 18px 40px rgba(61,42,77,.17); cursor: pointer; aspect-ratio: 1971 / 2000; }
.public-library-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease, filter .24s ease; }
.public-library-cover:hover img,.public-library-cover:focus-visible img { transform: scale(1.025); filter: saturate(1.06) brightness(1.02); }
.public-library-cover:focus-visible { outline: 5px solid rgba(109,82,200,.72); outline-offset: 4px; }
.public-library-book h2 { margin: .85rem .35rem 0; font-size: clamp(1.05rem,1.55vw,1.4rem); line-height: 1.2; }
.book-product-page { min-height: calc(100vh - 84px); max-width: 1180px; }.book-product-back { margin: 0 0 1.1rem; padding: .65rem .85rem; border: 0; border-radius: 12px; background: rgba(255,255,255,.78); color: var(--violet-dark); font-weight: 800; cursor: pointer; }.book-product-card { display: grid; grid-template-columns: minmax(260px,440px) minmax(0,1fr); gap: clamp(1.5rem,5vw,4.5rem); align-items: center; padding: clamp(1.1rem,3vw,2.4rem); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); background: linear-gradient(140deg,rgba(255,253,248,.98),rgba(244,236,255,.96)); box-shadow: var(--shadow); }.book-product-cover { position: relative; overflow: hidden; border-radius: 24px; box-shadow: 0 20px 48px rgba(49,35,64,.2); }.book-product-cover img { display: block; width: 100%; height: auto; }.book-product-copy h1 { margin: .25rem 0 .75rem; font-size: clamp(2.5rem,5vw,4.6rem); line-height: 1.02; }.book-product-description { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }.book-product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .7rem; margin: 1.4rem 0; padding: 1rem 1.1rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); }.book-product-price span { width: 100%; color: var(--violet-dark); font-weight: 800; }.book-product-price strong { font-family: Fredoka,sans-serif; font-size: 2.2rem; }.book-product-price small { color: var(--muted); }.book-product-reader-note { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: 1rem; border-radius: 18px; background: var(--mint-soft); color: #245c4c; }.book-product-reader-note>svg { flex: 0 0 auto; width: 1.8rem; height: 1.8rem; }.book-product-reader-note p,.book-product-reader-note strong,.book-product-reader-note span { display: block; margin: 0; }.book-product-reader-note span { margin-top: .2rem; line-height: 1.4; }.book-product-cta { width: 100%; }.book-product-status { display: block; margin-top: .75rem; color: var(--muted); line-height: 1.4; }
.book-coming-soon-panel { display: grid; gap: .3rem; margin: 1.4rem 0; padding: 1.05rem 1.15rem; border: 1px solid #dfc55f; border-radius: 18px; background: linear-gradient(135deg,#fff4b9,#ffe797); color: #493810; }.book-coming-soon-panel strong { font-family: Fredoka,sans-serif; font-size: 1.55rem; }.book-coming-soon-panel span { line-height: 1.45; }.book-product-coming-soon .book-product-cta:disabled { background: #756f7d; border-color: #756f7d; cursor: default; opacity: .78; }
.book-product-actions { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: .7rem; }
.book-product-actions .button { min-height: 52px; justify-content: center; text-align: center; }
.book-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 1.4rem 0; }
.book-facts>div { display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid rgba(79,65,121,.14); border-radius: 18px; background: rgba(255,253,248,.96); }
.book-facts small { color: var(--muted); font-weight: 750; }
.book-facts strong { color: var(--violet-dark); font-size: 1rem; line-height: 1.35; }
.book-learning,.book-credits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.4rem 0; }
.book-learning>div,.book-credits>article { padding: clamp(1.4rem,3vw,2.2rem); border: 1px solid rgba(79,65,121,.14); border-radius: 26px; background: rgba(255,253,248,.96); }
.book-learning h2,.book-credits h2,.book-section-heading h2,.book-access-note h2,.book-feedback h2 { margin: .45rem 0 .8rem; font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1.08; }
.book-learning ul { display: grid; gap: .65rem; margin: .7rem 0 0; padding-left: 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.book-tag-list { display: flex!important; flex-wrap: wrap; gap: .55rem!important; padding: 0!important; list-style: none; }
.book-tag-list li { padding: .55rem .75rem; border-radius: 999px; background: var(--pink-soft); color: var(--violet-dark); font-weight: 800; }
.book-sample,.related-books { margin: 1.4rem 0; padding: clamp(1.4rem,3vw,2.2rem); border: 1px solid rgba(79,65,121,.14); border-radius: 28px; background: rgba(255,253,248,.96); }
.book-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.2rem; }
.book-section-heading p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.55; }
.book-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.book-preview-grid a { overflow: hidden; border-radius: 20px; background: #f3eff8; box-shadow: 0 14px 30px rgba(50,39,75,.14); }
.book-preview-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .2s ease; }
.book-preview-grid a:hover img { transform: scale(1.025); }
.book-credits { grid-template-columns: repeat(3,minmax(0,1fr)); }
.book-credits p,.book-access-note p,.book-feedback p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.book-access-note,.book-feedback { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(1rem,4vw,3rem); align-items: center; margin: 1.4rem 0; padding: clamp(1.4rem,3vw,2.2rem); border-radius: 28px; }
.book-coming-soon-detail { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(1rem,4vw,3rem); align-items: center; margin: 1.4rem 0; padding: clamp(1.4rem,3vw,2.2rem); border: 1px solid rgba(222,184,50,.3); border-radius: 28px; background: linear-gradient(135deg,#fff9dc,#fff1b0); }.book-coming-soon-detail h2 { margin: .45rem 0 0; font-size: clamp(1.55rem,3vw,2.25rem); line-height: 1.08; }.book-coming-soon-detail p { margin: 0; color: #665b31; font-size: 1rem; line-height: 1.65; }
.book-access-note { border: 1px solid rgba(38,111,89,.18); background: var(--mint-soft); }
.book-access-note a { color: #245c4c; font-weight: 850; }
.book-feedback { border: 1px solid rgba(109,82,200,.18); background: linear-gradient(135deg,rgba(241,235,255,.96),rgba(238,247,255,.96)); }
.book-feedback .button { justify-self: end; }
.related-book-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.related-book-card a { display: grid; grid-template-columns: 82px 1fr; gap: .85rem; align-items: center; min-height: 104px; padding: .7rem; border: 1px solid rgba(79,65,121,.12); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; }
.related-book-card img { width: 82px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.related-book-card strong { line-height: 1.3; }
.books-teaser-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; }.books-teaser-action div { display: grid; gap: .3rem; }.books-teaser-action small,.pricing-note { color: var(--muted); line-height: 1.5; }.pricing-note { margin: .8rem 0 0; font-size: .8rem; }
.books-page { max-width: 1240px; }.library-pricing { margin-bottom: 1.3rem; }.library-shelf { display: grid; gap: 1rem; }.library-book { display: grid; grid-template-columns: 118px 1fr auto; align-items: center; gap: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 28px rgba(40,30,50,.07); }.book-cover { min-height: 146px; display: grid; place-items: center; align-content: center; gap: .45rem; border-radius: 18px; background: linear-gradient(150deg,#e7dcff,#ffcbdc 60%,#fff1af); color: var(--violet-dark); }.book-cover svg { width: 2rem; height: 2rem; }.book-cover small,.book-cover b { font-size: .7rem; }.book-cover.library-cover-art { min-height: 0; aspect-ratio: 1971 / 2000; overflow: hidden; background: #f5edf7; box-shadow: 0 8px 20px rgba(61,42,77,.14); }.library-cover-art img { display: block; width: 100%; height: 100%; object-fit: cover; }.library-book-copy h2 { margin: 0 0 .35rem; }.library-book-copy p { margin: 0 0 .45rem; color: var(--muted); }.library-book-copy small { color: var(--muted); }.empty-library { padding: 1.2rem; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }.empty-library>strong,.empty-library>small { display: block; margin-top: .45rem; }.empty-library>small { color: var(--muted); }
.ebook-reader { margin-top: 1.5rem; padding: clamp(.75rem,2vw,1.25rem); border-radius: 26px; background: #211e28; color: #fff; box-shadow: 0 24px 70px rgba(25,19,31,.3); scroll-margin-top: 100px; }.ebook-reader:fullscreen { overflow: auto; border-radius: 0; padding: clamp(.75rem,2vw,1.5rem); }.reader-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .5rem 1rem; }.reader-toolbar h2 { margin: .2rem 0; }.reader-toolbar small,.ebook-reader>p { color: #ded7e6; }.reader-toolbar-actions { display: flex; align-items: center; gap: .65rem; }.reader-icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-size: 1.45rem; cursor: pointer; }.reader-icon-button:hover,.reader-icon-button:focus-visible { background: rgba(255,255,255,.2); }.reader-stage { min-height: min(72vh,760px); display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 8%,#4b4553,#17151b 72%); touch-action: pan-y; }.reader-spread { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; padding: clamp(.45rem,1.5vw,1.1rem); }.reader-spread::after { content:""; position:absolute; top:3%; bottom:3%; left:50%; width:1px; background:rgba(0,0,0,.28); box-shadow:0 0 18px rgba(0,0,0,.7); pointer-events:none; }.reader-page { min-width:0; margin:0; overflow:hidden; border-radius:3px; background:#fff; box-shadow:0 12px 34px rgba(0,0,0,.34); }.reader-page canvas { display:block; max-width:100%; height:auto; background:#fff; }.reader-message { display:flex; align-items:center; gap:.85rem; padding:2rem; color:#f7f4fa; font-weight:700; }.reader-message.error { color:#ffd4d0; }.reader-spinner { width:24px; height:24px; border:3px solid rgba(255,255,255,.22); border-top-color:#fff; border-radius:50%; animation:reader-spin .8s linear infinite; }.reader-controls { display:grid; grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) minmax(120px,1fr); align-items:center; gap:1rem; padding:1rem .35rem .25rem; }.reader-turn { min-height:48px; display:flex; align-items:center; justify-content:center; gap:.45rem; border:1px solid rgba(255,255,255,.2); border-radius:15px; background:rgba(255,255,255,.1); color:#fff; font-weight:800; cursor:pointer; }.reader-turn:disabled { opacity:.38; cursor:not-allowed; }.reader-position { display:grid; gap:.55rem; text-align:center; font-size:.86rem; }.reader-progress { height:5px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.16); }.reader-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ffb7cc,#ffe28f,#9ee3d9); }.ebook-reader>p { display:flex; gap:.5rem; align-items:center; margin:.85rem .35rem .1rem; font-size:.8rem; }.ebook-reader>p svg { flex:0 0 auto; width:1.1rem; }.ebook-reader:fullscreen .reader-stage { min-height:calc(100vh - 190px); } @keyframes reader-spin { to { transform:rotate(360deg); } }
.book-admin-panel { margin-top: 1.3rem; }.book-admin-panel .panel-title p { margin: .35rem 0 0; color: var(--muted); }.book-admin-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(360px,1.2fr); gap: 1.3rem; margin-top: 1.4rem; }.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-content: start; }.book-description-field,.book-file-field,.rights-confirm,.book-form>.button { grid-column: 1/-1; }.rights-confirm { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .65rem; line-height: 1.45; }.rights-confirm input { width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; }.book-admin-list { display: grid; gap: .65rem; }.book-admin-list>article { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: 18px; }.book-admin-list strong,.book-admin-list small { display: block; }.book-admin-list small { margin-top: .2rem; color: var(--muted); }.book-cover.mini { min-height: 76px; border-radius: 13px; }.book-cover.mini svg { width: 1.4rem; height: 1.4rem; }.empty-book-admin { opacity: .7; }

.policy-page { max-width: 1040px; padding-bottom: 5rem; }
.policy-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .85rem; font-weight: 800; }
.policy-document { display: grid; gap: 1rem; }
.policy-hero, .policy-section, .policy-divider { border: 1px solid rgba(79,65,121,.16); background: rgba(255,253,248,.95); box-shadow: 0 12px 36px rgba(50,39,75,.09); }
.policy-hero { padding: clamp(2rem,6vw,4.8rem); border-radius: 34px; background: linear-gradient(135deg, rgba(255,206,220,.9), rgba(255,231,168,.92) 46%, rgba(194,235,228,.92)); }
.policy-hero h1 { margin: .45rem 0 1rem; font-size: clamp(3rem,7vw,5.8rem); line-height: .95; letter-spacing: -.045em; }
.policy-hero p { max-width: 760px; margin: 0 0 1.4rem; color: var(--ink); font-size: clamp(1.05rem,2vw,1.28rem); line-height: 1.6; }
.policy-hero small { color: var(--muted); font-weight: 700; }
.policy-section { padding: clamp(1.5rem,4vw,2.6rem); border-radius: 24px; }
.policy-section h2, .policy-divider h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem,3vw,2.15rem); letter-spacing: -.025em; }
.policy-section p, .policy-section li, .policy-divider p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.policy-section p { margin: .65rem 0 0; }.policy-section ul{display:grid;gap:.7rem;margin:.8rem 0 0;padding-left:1.35rem}.policy-section strong{color:var(--ink)}
.policy-callout { border-color: rgba(109,82,200,.24); background: linear-gradient(135deg, rgba(241,235,255,.96), rgba(238,247,255,.96)); }
.policy-divider { margin-top: 1.5rem; padding: clamp(2rem,5vw,3.5rem); border-radius: 28px; background: var(--violet-dark); color: white; }
.policy-divider .eyebrow, .policy-divider p { color: rgba(255,255,255,.8); }.policy-divider h2{color:white;font-size:clamp(2.4rem,5vw,4.2rem)}
.policy-resources { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.policy-resources a, .policy-resources button { border: 1px solid rgba(109,82,200,.24); border-radius: 999px; background: var(--paper); color: var(--violet-dark); padding: .65rem .9rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.policy-page .landing-footer { margin-top: 2rem; }
.partners-page { max-width: 1320px; padding-bottom: 4rem; }
.partners-card { display: grid; grid-template-columns: minmax(280px,.82fr) minmax(420px,1.18fr); gap: clamp(1.5rem,4vw,4rem); overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 36px; background: linear-gradient(135deg,rgba(255,207,222,.97),rgba(255,232,167,.95) 45%,rgba(191,237,227,.97)); box-shadow: var(--shadow); }
.partners-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,5vw,4.5rem); }
.partners-icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 1.4rem; border-radius: 24px; background: var(--violet); color: #fff; box-shadow: 0 14px 30px rgba(76,53,155,.24); }
.partners-icon svg { width: 36px; height: 36px; }
.partners-intro h1 { margin: .45rem 0 1.1rem; font-size: clamp(3rem,6vw,5.8rem); line-height: .94; letter-spacing: -.045em; }
.partners-intro>p { max-width: 620px; margin: 0; color: #514b59; font-size: 1.08rem; line-height: 1.65; }
.partners-email { display: grid; gap: .25rem; margin-top: 2rem; }
.partners-email small { color: #5d5668; font-weight: 750; }
.partners-email a { width: fit-content; color: var(--violet-dark); font-weight: 850; overflow-wrap: anywhere; text-underline-offset: 4px; }
.partners-form { display: grid; align-content: center; gap: 1rem; margin: clamp(1rem,2.5vw,2rem); padding: clamp(1.4rem,4vw,2.8rem); border: 1px solid rgba(79,65,121,.14); border-radius: 28px; background: rgba(255,253,248,.96); box-shadow: 0 18px 44px rgba(58,43,78,.12); }
.partners-form-heading h2 { margin: .2rem 0 0; font-size: clamp(2rem,3.5vw,3rem); line-height: 1; }
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.partners-form label { color: var(--ink); font-size: .9rem; font-weight: 800; }
.partners-form label small { color: var(--muted); font-size: .78rem; font-weight: 650; }
.partners-form input,.partners-form textarea { min-height: 48px; margin-top: .4rem; border: 1px solid rgba(79,65,121,.22); background: #fff; }
.partners-form textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.partners-message { display: block; }
.partners-submit { width: 100%; justify-content: center; }
.partners-note { color: var(--muted); line-height: 1.45; text-align: center; }

.static-public-header { grid-template-columns: 1fr auto auto; }
.static-public-header .identity { text-decoration: none; }
.static-public-header nav { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.static-public-content { min-height: calc(100vh - 92px); }
.static-home { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: clamp(1.5rem,5vw,5rem); align-items: center; }
.static-home h1 { max-width: 850px; margin: .55rem 0 1rem; font-size: clamp(3rem,7vw,6.4rem); line-height: .92; letter-spacing: -.05em; }
.static-home p { max-width: 720px; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.static-home ul { display: grid; gap: .75rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.static-home li a { display: block; padding: 1rem 1.15rem; border: 1px solid rgba(79,65,121,.14); border-radius: 18px; background: rgba(255,253,248,.92); color: var(--violet-dark); font-weight: 850; text-decoration: none; }
.public-library-book p { margin: .55rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.resources-page { max-width: 1240px; padding-bottom: 5rem; }
.resources-hero { margin-bottom: 2rem; padding: clamp(2rem,6vw,5rem); border: 1px solid rgba(79,65,121,.14); border-radius: 36px; background: linear-gradient(135deg,rgba(255,207,222,.96),rgba(255,232,167,.94) 48%,rgba(191,237,227,.96)); box-shadow: var(--shadow); }
.resources-hero h1 { max-width: 900px; margin: .5rem 0 1rem; font-size: clamp(3rem,6.5vw,6rem); line-height: .94; letter-spacing: -.045em; }
.resources-hero p { max-width: 760px; margin: 0; color: #514b59; font-size: 1.1rem; line-height: 1.65; }
.resources-hero p + p { margin-top: 1.2rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.resource-card { display: flex; min-height: 280px; flex-direction: column; padding: clamp(1.5rem,3vw,2.4rem); border: 1px solid rgba(79,65,121,.14); border-radius: 28px; background: rgba(255,253,248,.96); box-shadow: 0 14px 36px rgba(50,39,75,.08); }
.resource-card h2 { margin: .65rem 0 .8rem; font-size: clamp(1.6rem,3vw,2.25rem); line-height: 1.05; }
.resource-card h2 a { color: var(--ink); text-decoration: none; }
.resource-card p { margin: 0 0 1.4rem; color: var(--muted); line-height: 1.65; }
.resource-link { width: fit-content; margin-top: auto; color: var(--violet-dark); font-weight: 850; text-underline-offset: 4px; }
.article-page { max-width: 1050px; padding-bottom: 5rem; }
.article-page>article { padding: clamp(1.5rem,5vw,4.5rem); border: 1px solid rgba(79,65,121,.14); border-radius: 36px; background: rgba(255,253,248,.97); box-shadow: var(--shadow); }
.article-header { margin: 1.5rem 0 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(79,65,121,.14); }
.article-header h1 { max-width: 900px; margin: .6rem 0 1rem; font-size: clamp(2.8rem,6vw,5.5rem); line-height: .96; letter-spacing: -.045em; }
.article-header p,.article-intro { color: #514b59; font-size: clamp(1.08rem,2vw,1.3rem); line-height: 1.65; }
.article-header small { color: var(--muted); font-weight: 750; }
.article-intro { margin: 0 0 2.5rem; font-weight: 700; }
.article-page article>section { max-width: 780px; margin: 2rem 0; }
.article-page article>section h2 { margin: 0 0 .7rem; font-size: clamp(1.6rem,3vw,2.2rem); }
.article-page article>section p { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.article-book { display: grid; grid-template-columns: minmax(130px,220px) 1fr; gap: clamp(1.25rem,4vw,3rem); align-items: center; margin-top: 3rem; padding: clamp(1.25rem,3vw,2rem); border-radius: 28px; background: linear-gradient(135deg,rgba(241,235,255,.95),rgba(238,247,255,.95)); }
.article-book img { width: 100%; border-radius: 18px; box-shadow: 0 16px 30px rgba(50,39,75,.18); }
.article-book h2 { margin: .45rem 0 .7rem; font-size: clamp(1.7rem,3vw,2.5rem); }
.article-book p { color: var(--muted); line-height: 1.6; }

.free-resources-teaser { position: relative; z-index: 2; margin: clamp(1rem,3vw,2rem) auto; width: min(1180px,calc(100% - 2rem)); padding: clamp(1.4rem,4vw,2.5rem); border-radius: 32px; background: rgba(255,250,241,.96); box-shadow: 0 22px 55px rgba(50,39,75,.14); }
.free-resources-heading { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 1.4rem; }
.free-resources-heading h2 { margin: .35rem 0 .6rem; max-width: 720px; font-size: clamp(1.8rem,3.6vw,3rem); }
.free-resources-heading p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.lead-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.15rem; }
.lead-resource-card { display: flex; flex-direction: column; min-height: 280px; overflow: hidden; border: 1px solid rgba(109,82,200,.15); border-radius: 24px; background: linear-gradient(150deg,#fff,#f5f0ff); box-shadow: 0 12px 30px rgba(50,39,75,.08); }
.lead-resource-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eee8f7; }
.lead-resource-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .25s ease; }
.lead-resource-image:hover img,.lead-resource-image:focus-visible img { transform: scale(1.035); }
.lead-resource-copy { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.lead-resource-card h2 { margin: .55rem 0 .75rem; font-size: 1.35rem; line-height: 1.2; }
.lead-resource-card h2 a { color: var(--ink); text-decoration: none; }
.lead-resource-card p { color: var(--muted); line-height: 1.6; }
.lead-resource-card small { margin-top: auto; padding-top: 1rem; color: var(--muted); font-weight: 700; }
.lead-resource-card .resource-link { margin-top: .8rem; }
.adult-privacy-note { padding: .9rem 1rem; border-radius: 16px; background: #eaf8f4; color: #355b54; line-height: 1.5; }
.free-resources-teaser>.adult-privacy-note { margin: 1.2rem 0 0; }
.free-resources-page .resources-hero { margin-bottom: 1.5rem; }
.resource-detail-page { max-width: 1120px; }
.resource-detail-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: clamp(1.5rem,5vw,4rem); padding: clamp(1.5rem,4vw,3.5rem); border-radius: 32px; background: linear-gradient(145deg,#fffaf1,#f3eeff); box-shadow: 0 20px 55px rgba(50,39,75,.12); }
.resource-detail-copy h1 { margin: .55rem 0 1rem; font-size: clamp(2.4rem,5vw,4.6rem); line-height: .98; }
.resource-detail-copy p,.resource-detail-copy li { color: var(--muted); line-height: 1.7; }
.resource-signup-form { display: flex; flex-direction: column; gap: 1rem; align-self: start; padding: 1.5rem; border-radius: 24px; background: white; box-shadow: 0 15px 35px rgba(50,39,75,.12); }
.resource-signup-form h2 { margin: -.4rem 0 .2rem; font-size: 2rem; }
.resource-signup-form>label:not(.consent-check):not(.waitlist-honeypot) { display: grid; gap: .45rem; font-weight: 800; }
.resource-signup-form input[type="email"] { width: 100%; padding: .85rem 1rem; border: 1px solid #cfc3e1; border-radius: 14px; font: inherit; }
.consent-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; color: var(--muted); line-height: 1.5; font-size: .92rem; }
.consent-check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--violet); }
.resource-signup-form>small { color: var(--muted); line-height: 1.45; }
.resource-download-success { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: 24px; background: white; box-shadow: 0 15px 35px rgba(50,39,75,.12); }
.resource-download-success>span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eaf8f4; color: #277565; }
.resource-download-success h2 { margin: 0 0 .45rem; }
.resource-download-success p { color: var(--muted); }
.resource-nav-menu { position: relative; }
.resource-nav-menu>summary { list-style: none; cursor: pointer; }
.resource-nav-menu>summary::-webkit-details-marker { display: none; }
.resource-nav-menu>summary::after { content: "▾"; margin-left: .35rem; font-size: .72em; transition: transform .18s ease; }
.resource-nav-menu[open]>summary::after { display: inline-block; transform: rotate(180deg); }
.resource-nav-menu.active>summary { background: var(--violet); color: white; }
.resource-nav-panel { position: absolute; z-index: 30; top: calc(100% + .55rem); left: 50%; display: grid; width: min(360px,calc(100vw - 2rem)); padding: .65rem; border: 1px solid rgba(109,82,200,.16); border-radius: 20px; background: white; box-shadow: 0 20px 45px rgba(50,39,75,.2); transform: translateX(-50%); }
.resource-nav-panel a { padding: .72rem .85rem; border-radius: 12px; color: var(--ink); font-size: .86rem; font-weight: 750; line-height: 1.25; text-decoration: none; }
.resource-nav-panel a:hover,.resource-nav-panel a:focus-visible { background: #f2edff; color: var(--violet); }
.resource-nav-panel .resource-nav-all { margin-bottom: .25rem; background: #eaf8f4; color: #286c5f; }
.game-nav-panel { width: min(230px,calc(100vw - 2rem)); gap: .25rem; }
.game-nav-panel a { font-size: .92rem; font-weight: 850; }
.game-nav-panel .resource-nav-all { background: #eaf8f4; color: #286c5f; }
.games-hub-page { max-width: 1320px; padding-bottom: 4rem; }
.games-hub-hero { margin-bottom: 1.5rem; padding: clamp(2rem,6vw,4.5rem); border: 1px solid rgba(79,65,121,.14); border-radius: 36px; background: linear-gradient(135deg,#ffd9e6,#ffe8a7 47%,#bfeee4); box-shadow: var(--shadow); }
.games-hub-hero h1 { max-width: 850px; margin: .55rem 0 1rem; font-size: clamp(2.35rem,4.2vw,4rem); line-height: 1; letter-spacing: -.04em; }
.games-hub-hero p { max-width: 720px; margin: 0; color: #514b59; font-size: 1.1rem; line-height: 1.65; }
.games-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.games-hub-card { display: grid; grid-template-columns: minmax(180px,.9fr) minmax(0,1.1fr); min-height: 290px; overflow: hidden; border: 1px solid rgba(79,65,121,.14); border-radius: 30px; background: rgba(255,253,248,.97); box-shadow: 0 16px 38px rgba(50,39,75,.1); }
.games-hub-image { min-height: 100%; overflow: hidden; background: #eee8f7; }
.games-hub-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.games-hub-image:hover img,.games-hub-image:focus-visible img { transform: scale(1.035); }
.games-hub-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.3rem,3vw,2rem); }
.games-hub-copy h2 { margin: .1rem 0 .75rem; font-size: clamp(1.7rem,3vw,2.35rem); line-height: 1.05; }
.games-hub-copy h2 a { color: var(--ink); text-decoration: none; }
.games-hub-copy p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.6; }
.games-hub-copy .button { margin-top: auto; }
.games-hub .games-hub-card { min-height: 0; }
.colour-nav-menu .resource-nav-all { background: #fff0d8; color: #8a4b12; }
.more-free-nav-panel { width: min(390px,calc(100vw - 2rem)); gap: .45rem; }
.resource-nav-group { border: 1px solid rgba(109,82,200,.14); border-radius: 14px; background: #fffdf9; }
.resource-nav-group>summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: .72rem .85rem; list-style: none; color: var(--ink); font-size: .92rem; font-weight: 850; cursor: pointer; }
.resource-nav-group>summary::-webkit-details-marker { display: none; }
.resource-nav-group>summary::after { content: "+"; color: var(--violet); font-size: 1.2rem; line-height: 1; }
.resource-nav-group[open]>summary::after { content: "−"; }
.resource-nav-group.active>summary { color: var(--violet); }
.resource-nav-group-links { display: grid; max-height: min(48vh,420px); padding: 0 .45rem .45rem; overflow-y: auto; }
.resource-nav-section-link { min-height: 46px; display: flex; align-items: center; padding: .72rem .85rem; border-radius: 14px; background: #f2edff; color: var(--ink); font-size: .92rem !important; font-weight: 850 !important; }
.resource-nav-section-link.active { background: var(--violet); color: white; }
.colouring-library-page,.colouring-detail-page { padding-bottom: 5rem; }
.colouring-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.colouring-card { overflow: hidden; border: 1px solid rgba(109,82,200,.16); border-radius: 26px; background: #fff; box-shadow: 0 16px 38px rgba(50,39,75,.1); }
.colouring-card-image { display: block; aspect-ratio: 1/1; overflow: hidden; background: #fffaf1; }
.colouring-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.colouring-card-image:hover img,.colouring-card-image:focus-visible img { transform: scale(1.025); }
.colouring-card>div { display: flex; min-height: 245px; flex-direction: column; padding: 1.35rem; }
.colouring-card h2 { margin: .55rem 0 .7rem; font-size: 1.45rem; line-height: 1.15; }
.colouring-card h2 a { color: var(--ink); text-decoration: none; }
.colouring-card p { margin: 0 0 1rem; color: var(--muted); line-height: 1.55; }
.colouring-card small { margin-top: auto; color: var(--muted); font-weight: 700; }
.colouring-card .resource-link { margin-top: .8rem; }
.colouring-card-grid.compact .colouring-card>div { min-height: 230px; }
.colouring-teaser { background: linear-gradient(145deg,rgba(238,247,255,.97),rgba(255,247,224,.97)); }
.colouring-detail-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.75fr); gap: clamp(1.5rem,5vw,4rem); align-items: center; padding: clamp(1.5rem,4vw,3.5rem); border-radius: 34px; background: linear-gradient(145deg,#fff6df,#f1ebff); box-shadow: 0 20px 55px rgba(50,39,75,.12); }
.colouring-detail-hero h1 { margin: .55rem 0 1rem; font-size: clamp(2.6rem,5vw,4.8rem); line-height: .96; }
.colouring-detail-hero p { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.colouring-detail-hero>img { width: 100%; border-radius: 24px; background: white; box-shadow: 0 18px 38px rgba(50,39,75,.14); }
.colouring-detail-hero>div>small { display: block; margin-top: 1rem; color: var(--muted); line-height: 1.5; }
.colouring-download-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.colouring-preview-section { margin-top: 3rem; }
.colouring-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.colouring-preview-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(109,82,200,.15); border-radius: 24px; background: white; box-shadow: 0 12px 30px rgba(50,39,75,.08); }
.colouring-preview-grid img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.colouring-preview-grid figcaption { padding: 1rem 1.2rem; color: var(--ink); font-weight: 850; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: auto; padding: .75rem 1rem; }.site-header nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: center; }.header-actions{grid-column:2;grid-row:1}.identity{grid-column:1;grid-row:1}.nav-button{flex:1;justify-content:center}.learning-layout,.studio-layout,.staff-layout{grid-template-columns:1fr}.lesson-rail,.workflow-panel{position:static}.lesson-stack{grid-template-columns:repeat(3,1fr)}.lesson-tile{grid-template-columns:auto 1fr}.lesson-state{display:none}.lesson-copy small{display:none}.parent-grid{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr;max-width:680px}.auth-intro h1{font-size:3.5rem}.staff-intro{align-items:flex-start}.staff-metrics{grid-template-columns:repeat(3,1fr)}.child-led-story{grid-template-columns:1fr}.child-led-copy{max-width:680px}.price-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.book-admin-grid{grid-template-columns:1fr}.library-book{grid-template-columns:96px 1fr}.library-book>.button{grid-column:2}.book-product-card{grid-template-columns:minmax(210px,320px) minmax(0,1fr);gap:1.5rem}
  .public-desktop-nav .social-links { width: auto; }
  .static-public-header .header-social-links { grid-column: 2; grid-row: 1; width: auto; }
  .book-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-credits { grid-template-columns: 1fr; }
  .related-book-grid { grid-template-columns: 1fr; }
  .homepage-game { grid-template-columns: 1fr; }
  .homepage-game-copy { padding: .5rem 1rem 1.25rem; }
  .games-hub .games-carousel-track { grid-template-columns: none; grid-auto-columns: calc((100% - var(--games-carousel-gap)) / 2); }
  .games-carousel.is-expanded .games-carousel-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .game-auth-shell .auth-intro { text-align:center; }
  .game-auth-shell .auth-back { text-align:left; }
  .game-free-badge { margin-inline:auto; }
  .game-auth-shell .auth-intro h1 { font-size:clamp(2.45rem,13vw,3.5rem); }
  .game-auth-shell .auth-intro>p { font-size:1rem; line-height:1.5; }
}
@media (max-width: 640px) {
  .public-header { grid-template-columns: 1fr auto; padding: .65rem 1rem; }
  .public-header .identity-logo-crop { width: 150px; }
  .public-header .identity small { display: block; font-size: .68rem; }
  .public-desktop-nav { display: none; }
  .public-mobile-actions { position: relative; display: flex; align-items: center; gap: .55rem; justify-self: end; }
  .public-mobile-actions>.language-menu .language-popover { right: 0; left: auto; grid-template-columns: repeat(5,40px); }
  .public-mobile-actions>.language-menu .language-choice { width: 40px; height: 40px; }
  .public-mobile-menu { position: relative; display: block; }
  .public-mobile-menu .resource-nav-menu>summary { display: flex; justify-content: space-between; width: 100%; }
  .public-mobile-menu .resource-nav-panel { position: static; width: 100%; margin: .25rem 0 .5rem; box-shadow: none; transform: none; }
  .public-mobile-menu .game-nav-menu { width: 100%; }
  .public-mobile-menu .game-nav-panel { background: #fff8fc; }
  .public-mobile-menu .more-free-nav-menu { width: 100%; }
  .public-mobile-menu .more-free-nav-panel { max-height: min(62vh,520px); overflow-y: auto; }
  .public-mobile-menu .resource-nav-group-links { max-height: none; }
}
@media (max-width: 600px) {
  .landing-hero-stage{min-height:max(360px,calc(100svh - 8.5rem))}
  .page-shell.public-landing{padding-top:0}
  .identity small { display:none }.identity-logo-crop{width:116px}.site-header nav{overflow-x:auto;justify-content:flex-start}.nav-button{font-size:.78rem;padding:.45rem .65rem}.nav-button svg{display:none}.account-button{max-width:94px;font-size:.7rem}.header-actions{gap:.35rem}.header-books-link{padding:.6rem;font-size:.75rem}.page-shell{padding-top:2rem}.hero-copy{text-align:left}.hero-copy h1{font-size:2.5rem}.landing-hero-tagline{text-align:center}.lesson-coming-soon-heading{align-items:flex-start}.lesson-coming-soon-heading span{width:52px;height:52px;border-radius:16px}.lesson-rail{padding:.8rem;border-radius:22px}.lesson-stack{gap:.4rem}.lesson-tile{grid-template-columns:1fr;padding:.7rem}.lesson-number{font-size:.75rem}.lesson-copy strong{font-size:.83rem}.video-placeholder{min-height:260px}.video-stamp{min-width:200px;padding:1.1rem}.caption-card{width:calc(100% - 1rem);min-height:135px}.caption-card p{font-size:1.55rem}.player-controls{gap:.5rem}.text-control{font-size:.75rem}.round-control{width:46px;height:46px}.talk-actions,.form-actions{flex-direction:column}.field-grid,.metric-row{grid-template-columns:1fr}.panel-title{align-items:flex-start;flex-wrap:wrap}.panel-title>.status-chip{display:none}.route-list>div{grid-template-columns:auto 1fr}.route-state{grid-column:2}.section-intro h1{font-size:2.6rem}.studio-step{grid-template-columns:30px 1fr;gap:.65rem}.auth-shell{padding-top:2rem;gap:2rem}.auth-intro h1{font-size:2.7rem}.auth-intro>p{font-size:1rem}.auth-toolbar{align-items:flex-start}.staff-intro{display:grid}.staff-metrics{grid-template-columns:1fr}.staff-metric{display:grid;grid-template-columns:1fr auto}.staff-metric strong{grid-row:1 / 3;grid-column:2}.staff-metric small{grid-column:1}.child-led-story{padding:1.2rem}.child-book-videos{grid-template-columns:1fr}.child-book-card video{aspect-ratio:4 / 5}.landing-footer-bar{align-items:flex-start;flex-direction:column}.footer-links{width:100%}.footer-links button{flex:1;justify-content:center}.price-cards{grid-template-columns:1fr}.book-slot-row{grid-template-columns:repeat(2,minmax(0,1fr))}.books-card-heading{align-items:flex-start}.books-card-icon{width:58px;height:58px;border-radius:18px}.books-teaser-action,.reader-toolbar{align-items:stretch;flex-direction:column}.library-book{grid-template-columns:72px 1fr}.book-cover{min-height:106px}.library-book>.button{grid-column:1/-1}.book-form{grid-template-columns:1fr}.book-form>*{grid-column:1/-1}.book-admin-list>article{grid-template-columns:56px 1fr}.book-admin-list>article>.button,.book-admin-list>article>.status-chip{grid-column:2}.reader-stage{min-height:60vh}.reader-spread{padding:.45rem}.reader-spread::after{display:none}.reader-controls{grid-template-columns:auto 1fr auto;gap:.55rem}.reader-turn span{display:none}.reader-toolbar-actions{width:100%;justify-content:space-between}.book-product-card{grid-template-columns:1fr}.book-product-cover{max-width:340px;margin:0 auto}.book-product-copy h1{font-size:2.7rem}
}
@media (max-width: 900px) {
  .learn-ai-hero { min-height:760px; align-items:end; }
  .learn-ai-hero-image { background-position:62% center; }
  .learn-ai-hero::after { background:linear-gradient(0deg,rgba(39,28,57,.94) 0%,rgba(39,28,57,.7) 42%,rgba(39,28,57,.05) 78%); }
  .learn-ai-hero-copy { width:100%; margin:0; padding:20rem 2rem 3rem; }
  .learn-ai-hero h1 { font-size:clamp(4.2rem,14vw,7rem); }
  .learn-ai-book-preview,.learn-ai-notify { grid-template-columns:1fr; }
  .learn-ai-book-visual { min-height:420px; }
  .learn-ai-card-grid { grid-template-columns:1fr; }
  .learn-ai-card-grid article { min-height:0; }
  .print-preorder { grid-template-columns: 1fr; }
  .public-library-hero { grid-template-columns: 1fr; }
  .partners-card { grid-template-columns: 1fr; }
  .partners-intro { padding-bottom: 0; }
  .public-library-copy { min-height: 0; }
  .public-library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .static-home { grid-template-columns: 1fr; }
  .lead-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .colouring-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-detail-card { grid-template-columns: 1fr; }
  .colouring-detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .learn-ai-hero { min-height:690px; }
  .learn-ai-hero-image { background-position:58% 25%; background-size:auto 66%; background-repeat:no-repeat; background-color:#3a2d51; }
  .learn-ai-hero::after { background:linear-gradient(0deg,rgba(43,31,61,.98) 0%,rgba(43,31,61,.88) 47%,rgba(43,31,61,.08) 77%); }
  .learn-ai-hero-copy { padding:18rem 1.25rem 2.25rem; }
  .learn-ai-hero h1 { font-size:clamp(4rem,22vw,6rem); }
  .learn-ai-hero-copy>p { margin:1.1rem 0 1.4rem; font-size:1.05rem; }
  .learn-ai-book-stamp { top:1rem; right:1rem; bottom:auto; width:132px; }
  .learn-ai-content { width:min(100% - 1.25rem,1240px); padding-top:3rem; }
  .learn-ai-intro { text-align:left; }
  .learn-ai-intro h2,.learn-ai-section-heading h2,.learn-ai-book-copy h2,.learn-ai-notify h2 { font-size:2.45rem; }
  .learn-ai-card-grid article { padding:1.3rem; border-radius:24px; }
  .learn-ai-card-grid article>span { margin-bottom:1.4rem; }
  .learn-ai-book-preview { padding:1rem; border-radius:28px; }
  .learn-ai-book-visual { min-height:390px; padding:1rem; border-radius:22px; }
  .learn-ai-book-copy { padding:.4rem .4rem 1rem; }
  .learn-ai-book-copy ul { grid-template-columns:1fr; }
  .learn-ai-notify { padding:1.25rem; border-radius:26px; }
  .print-preorder { padding: 1.25rem; border-radius: 26px; }
  .waitlist-fields { grid-template-columns: 1fr; }
  .waitlist-fields .button { width: 100%; }
  .public-books-page { padding-inline: 1rem; }
  .public-library-copy,.public-library-plan { border-radius: 26px; }
  .partners-page { padding-inline: 1rem; }
  .partners-card { border-radius: 26px; }
  .partners-intro { padding: 1.5rem 1.5rem .5rem; }
  .partners-intro h1 { font-size: 2.65rem; }
  .partners-form { margin: .75rem; padding: 1.25rem; border-radius: 22px; }
  .partners-grid { grid-template-columns: 1fr; }
  .public-library-copy { min-height: 0; padding: 1.5rem; }
  .public-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
  .public-library-cover { border-radius: 20px; }
  .public-library-book h2 { margin-top: .65rem; font-size: 1rem; }
  .simplified-pricing,.currency-picker-options { grid-template-columns: 1fr; }
  .book-product-actions,.book-learning,.book-access-note,.book-feedback,.book-coming-soon-detail { grid-template-columns: 1fr; }
  .book-product-actions .button { width: 100%; }
  .book-facts { grid-template-columns: 1fr 1fr; }
  .book-section-heading { align-items: flex-start; flex-direction: column; }
  .book-preview-grid { grid-template-columns: 1fr; }
  .book-feedback .button { width: 100%; justify-self: stretch; justify-content: center; }
  .resources-page,.article-page { padding-inline: 1rem; }
  .resources-hero,.article-page>article { padding: 1.5rem; border-radius: 26px; }
  .resources-hero h1,.article-header h1 { font-size: 2.65rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; border-radius: 22px; }
  .article-book { grid-template-columns: 100px 1fr; }
  .static-public-header nav { display: none; }
  .static-public-header .header-social-links { display: flex; grid-column: 2; grid-row: 1; width: auto; overflow: visible; }
  .free-resources-heading { align-items: flex-start; flex-direction: column; }
  .lead-resource-grid { grid-template-columns: 1fr; }
  .lead-resource-card { min-height: 0; }
  .resource-detail-page { padding-inline: 1rem; }
  .resource-detail-card { padding: 1.25rem; border-radius: 26px; }
  .colouring-card-grid,.colouring-preview-grid { grid-template-columns: 1fr; }
  .colouring-detail-page,.colouring-library-page { padding-inline: 1rem; }
  .colouring-detail-hero { padding: 1.25rem; border-radius: 26px; }
  .colouring-detail-hero h1 { font-size: 2.7rem; }
  .colouring-download-actions .button { width: 100%; justify-content: center; }
  .homepage-game { padding: .75rem; border-radius: 26px; }
  .homepage-game-art { border-radius: 20px; }
  .homepage-game-copy { padding: .65rem .5rem 1rem; }
  .homepage-game-copy h2 { font-size: 2.65rem; }
  .homepage-game-actions,.homepage-game-cta { width: 100%; }
  .games-hub { padding: 1.25rem; border-radius: 26px; }
  .games-hub-heading { align-items: flex-start; }
  .games-hub-heading-die { width: 56px; height: 56px; border-radius: 18px; font-size: 1.55rem; }
  .games-carousel { padding: 0 2.75rem; }
  .games-hub .games-carousel-track { grid-template-columns: none; grid-auto-columns: 100%; }
  .games-carousel.is-expanded { padding: 0; }
  .games-carousel.is-expanded .games-carousel-track { grid-template-columns: 1fr; }
  .games-hub-card { border-radius: 22px; }
  .games-hub-art { aspect-ratio: 4/3; }
  .games-hub-card-copy { padding: 1rem .9rem; }
  .games-hub-board-art b { width: 38px; border-width: 3px; border-radius: 13px; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .games-hub .games-carousel-track { scroll-behavior: auto; }
}
.brainleaps-page { min-height:100vh; overflow:hidden; background:linear-gradient(180deg,#eefbff 0,#fffdf8 34%,#f7f3ea 100%); }
.brainleaps-hero { position:relative; min-height:360px; display:grid; grid-template-columns:minmax(0,1.32fr) minmax(240px,.68fr); align-items:center; gap:clamp(1.25rem,4vw,3.5rem); padding:clamp(2rem,4vw,3.5rem) max(clamp(1rem,6vw,6rem),calc((100vw - 1320px)/2)); isolation:isolate; }
.brainleaps-hero::before,.brainleaps-hero::after { content:""; position:absolute; z-index:-1; border-radius:50%; filter:blur(2px); }
.brainleaps-hero::before { width:420px; height:420px; top:-160px; left:-100px; background:rgba(255,205,104,.42); }
.brainleaps-hero::after { width:520px; height:520px; right:-190px; bottom:-210px; background:rgba(158,222,255,.52); }
.brainleaps-hero-copy { max-width:760px; }
.brainleaps-kicker { display:inline-flex; padding:.6rem .9rem; border:1px solid rgba(76,57,146,.14); border-radius:999px; color:var(--violet-dark); background:rgba(255,255,255,.8); font-size:.78rem; font-weight:900; letter-spacing:.11em; text-transform:uppercase; box-shadow:0 8px 22px rgba(64,50,92,.08); }
.brainleaps-hero h1 { max-width:760px; margin:.75rem 0 .8rem; font-size:clamp(2.4rem,4.5vw,4.7rem); line-height:.96; letter-spacing:-.05em; text-wrap:balance; }
.brainleaps-hero-copy>p { max-width:680px; margin:0; color:#575063; font-size:clamp(.98rem,1.45vw,1.15rem); line-height:1.48; }
.brainleaps-hero-art { position:relative; width:min(100%,285px); aspect-ratio:1; display:grid; place-items:center; justify-self:center; border:1px solid rgba(255,255,255,.9); border-radius:46% 54% 57% 43% / 52% 42% 58% 48%; background:radial-gradient(circle at 35% 25%,#fff 0 8%,transparent 9%),linear-gradient(145deg,#ffd978,#ff9fb9 45%,#a893ed 100%); box-shadow:0 24px 54px rgba(81,57,121,.22),inset 0 0 0 10px rgba(255,255,255,.32); transform:rotate(3deg); }
.brainleaps-hero-art>span { font-size:clamp(6rem,9vw,8.5rem); filter:drop-shadow(0 14px 16px rgba(77,50,112,.2)); transform:rotate(-3deg); }
.brainleaps-hero-art i { position:absolute; top:14%; right:13%; color:white; font-size:3rem; font-style:normal; }
.brainleaps-hero-art b,.brainleaps-hero-art em,.brainleaps-hero-art strong { position:absolute; padding:.5rem .7rem; border:3px solid white; border-radius:14px; color:#49377f; background:#fffdf8; box-shadow:0 9px 20px rgba(55,39,91,.14); font:800 .88rem Fredoka,sans-serif; }
.brainleaps-hero-art b { left:-2%; top:30%; transform:rotate(-8deg) scale(1.75); }.brainleaps-hero-art em { right:-1%; top:55%; transform:rotate(7deg) scale(1.75); }.brainleaps-hero-art strong { left:17%; bottom:4%; transform:rotate(-4deg) scale(1.75); }
.brainleaps-content { width:min(calc(100% - 2rem),1440px); margin:0 auto; padding:1.25rem 0 5rem; }
.brainleaps-principle { display:grid; grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr); gap:clamp(1.5rem,4vw,4rem); align-items:center; margin:0 0 clamp(3rem,7vw,6rem); padding:clamp(1.5rem,4vw,3rem); border:1px solid #dfd2fa; border-radius:32px; background:linear-gradient(135deg,#fff,#f3eeff); box-shadow:0 18px 50px rgba(66,48,105,.1); }
.brainleaps-principle h2,.brainleaps-section-heading h2 { margin:.45rem 0 0; font-size:clamp(2.35rem,4.5vw,4.4rem); letter-spacing:-.04em; }
.brainleaps-principle p,.brainleaps-section-heading p { margin:0; color:var(--muted); font-size:1.08rem; line-height:1.68; }
.brainleaps-how,.brainleaps-leaps,.brainleaps-integration { margin:0 0 clamp(4rem,8vw,7rem); scroll-margin-top:110px; }
.brainleaps-section-heading { max-width:850px; margin-bottom:2rem; }.brainleaps-section-heading p { margin-top:.85rem; }
.brainleaps-flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items:stretch; gap:.65rem; }
.brainleaps-flow>i { align-self:center; color:#9a87d2; font:900 1.5rem Fredoka,sans-serif; }
.brainleaps-flow-step { min-width:0; padding:1.15rem; border:1px solid #ddd5e8; border-radius:22px; background:#fff; box-shadow:0 12px 28px rgba(55,39,91,.08); }
.brainleaps-flow-step>span { width:36px; height:36px; display:grid; place-items:center; margin-bottom:.8rem; border-radius:12px; color:white; background:var(--violet); font:800 1rem Fredoka,sans-serif; }
.brainleaps-flow-step strong,.brainleaps-flow-step small { display:block; }.brainleaps-flow-step strong { font:800 1.18rem Fredoka,sans-serif; }.brainleaps-flow-step small { margin-top:.45rem; color:var(--muted); font-size:.8rem; line-height:1.45; }
.brainleaps-table-wrap { overflow:auto; border:1px solid #dcd3e8; border-radius:28px; background:#fff; box-shadow:0 22px 55px rgba(55,39,91,.1); }
.brainleaps-table { width:100%; border-collapse:separate; border-spacing:0; font-size:.94rem; }
.brainleaps-table th,.brainleaps-table td { padding:1.2rem 1.25rem; text-align:left; vertical-align:top; border-bottom:1px solid #e8e1ed; line-height:1.55; }
.brainleaps-table thead th { position:sticky; top:0; z-index:1; color:#fff; background:#49377f; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.brainleaps-table thead th:first-child { min-width:205px; border-radius:26px 0 0 0; }.brainleaps-table thead th:nth-child(2) { min-width:340px; }.brainleaps-table thead th:last-child { min-width:380px; border-radius:0 26px 0 0; }
.brainleaps-table tbody tr:nth-child(even) { background:#fbf9ff; }.brainleaps-table tbody tr:last-child>* { border-bottom:0; }
.brainleaps-table tbody th>span,.brainleaps-table tbody th>strong,.brainleaps-table tbody th>small,.brainleaps-table td>small { display:block; }
.brainleaps-table tbody th>span { color:var(--violet); font-size:.7rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }.brainleaps-table tbody th>strong { margin:.12rem 0 .25rem; font:800 1.12rem Fredoka,sans-serif; }.brainleaps-table tbody th>small,.brainleaps-table td>small { color:var(--muted); }
.brainleaps-table td>strong { font-weight:900; }.brainleaps-table td>small { margin-top:.65rem; padding:.55rem .65rem; border-radius:10px; color:#2f725a; background:#eaf7f1; font-size:.78rem; font-weight:800; }
.brainleaps-integration-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.brainleaps-integration-grid a { min-height:235px; display:flex; flex-direction:column; padding:1.35rem; border:1px solid #ddd5e8; border-radius:24px; color:var(--ink); background:#fff; box-shadow:0 12px 30px rgba(55,39,91,.08); text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.brainleaps-integration-grid a:hover,.brainleaps-integration-grid a:focus-visible { transform:translateY(-5px); box-shadow:0 20px 38px rgba(55,39,91,.16); }.brainleaps-integration-grid span { font-size:2.3rem; }.brainleaps-integration-grid strong { margin-top:auto; font:800 1.35rem Fredoka,sans-serif; }.brainleaps-integration-grid small { margin-top:.5rem; color:var(--muted); line-height:1.5; }
.brainleaps-game-note { display:grid; grid-template-columns:auto 1fr; gap:1.2rem; align-items:start; margin-top:1rem; padding:1.4rem; border-radius:24px; color:#fff; background:linear-gradient(135deg,#4c3992,#6f55c4); }.brainleaps-game-note>span { padding:.45rem .65rem; border-radius:999px; color:#45327f; background:#ffe28a; font-size:.72rem; font-weight:900; text-transform:uppercase; }.brainleaps-game-note h3 { margin:0 0 .35rem; font:800 1.45rem Fredoka,sans-serif; }.brainleaps-game-note p { margin:0; color:rgba(255,255,255,.84); line-height:1.55; }
.brainleaps-safety { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr); gap:2rem; margin-bottom:4rem; padding:clamp(1.5rem,4vw,3rem); border:1px solid #efd7a0; border-radius:30px; background:#fff8df; }.brainleaps-safety h2 { margin:.45rem 0 .7rem; font-size:clamp(2rem,3.5vw,3.3rem); }.brainleaps-safety p { margin:0; color:#625b50; line-height:1.65; }.brainleaps-safety aside { display:grid; gap:.5rem; align-content:start; padding:1rem; border-radius:18px; background:rgba(255,255,255,.72); }.brainleaps-safety aside>strong { margin-bottom:.35rem; font-family:Fredoka,sans-serif; }.brainleaps-safety aside a { color:var(--violet-dark); font-size:.85rem; font-weight:800; line-height:1.4; }
.homepage-brainleaps { position:relative; z-index:2; width:100%; max-width:1180px; display:grid; grid-template-columns:minmax(250px,.68fr) minmax(0,1.32fr); gap:clamp(1.5rem,4vw,3.5rem); align-items:center; margin:2rem auto; padding:clamp(1.4rem,4vw,3rem); border:1px solid rgba(255,255,255,.8); border-radius:var(--radius-lg); background:linear-gradient(135deg,rgba(238,251,255,.98),rgba(255,244,207,.98) 52%,rgba(246,236,255,.98)); box-shadow:0 24px 64px rgba(45,31,75,.18); }
.homepage-brainleaps h2 { margin:.45rem 0 .8rem; font-size:clamp(2.7rem,5vw,4.8rem); letter-spacing:-.045em; }.homepage-brainleaps p { max-width:680px; margin:0 0 1.3rem; color:var(--muted); font-size:1.08rem; line-height:1.58; }
.homepage-brainleaps-art { position:relative; width:min(100%,300px); aspect-ratio:1; display:grid; place-items:center; justify-self:center; border-radius:42% 58% 48% 52%; background:linear-gradient(145deg,#ffd56a,#ffa8c4 48%,#a991ee); box-shadow:0 20px 42px rgba(69,45,106,.18),inset 0 0 0 10px rgba(255,255,255,.35); transform:rotate(-4deg); }.homepage-brainleaps-art>span { font-size:7rem; filter:drop-shadow(0 10px 12px rgba(61,40,91,.18)); }.homepage-brainleaps-art i { position:absolute; top:12%; right:14%; color:white; font-size:2.2rem; font-style:normal; }.homepage-brainleaps-art b { position:absolute; right:-7px; bottom:12%; display:grid; place-items:center; width:64px; height:64px; border:4px solid white; border-radius:20px; color:white; background:#5a43a0; font:900 1.5rem Fredoka,sans-serif; transform:rotate(10deg); }
.brainleaps-age-hub { margin:0 0 clamp(4rem,8vw,7rem); scroll-margin-top:110px; }
.brainleaps-age-hub .brainleaps-section-heading { max-width:none; display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:1.5rem; align-items:end; margin-bottom:1rem; }
.brainleaps-age-hub .brainleaps-section-heading .eyebrow { grid-column:1/-1; }.brainleaps-age-hub .brainleaps-section-heading h2 { font-size:clamp(1.85rem,3vw,3rem); }.brainleaps-age-hub .brainleaps-section-heading p { max-width:680px; justify-self:end; font-size:.96rem; line-height:1.5; }
.brainleaps-age-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.7rem; }
.brainleaps-age-grid a { min-height:168px; display:flex; flex-direction:column; padding:1rem; border:1px solid #ddd5e8; border-radius:20px; color:var(--ink); background:linear-gradient(145deg,#fff,#fbf8ff); box-shadow:0 10px 26px rgba(55,39,91,.08); text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.brainleaps-age-grid a:hover,.brainleaps-age-grid a:focus-visible { transform:translateY(-4px); box-shadow:0 18px 36px rgba(55,39,91,.15); }.brainleaps-age-grid a>span { font-size:1.9rem; }.brainleaps-age-grid a>small { margin-top:auto; color:var(--violet); font-size:.62rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }.brainleaps-age-grid a>strong { margin-top:.2rem; font:800 1.3rem Fredoka,sans-serif; }.brainleaps-age-grid a>p { margin:.3rem 0 .55rem; color:var(--muted); font-size:.78rem; line-height:1.35; }.brainleaps-age-grid a>b { color:var(--violet-dark); font-size:.72rem; }
.brainleaps-age-hero { position:relative; min-height:470px; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr); align-items:center; gap:3rem; padding:clamp(3rem,7vw,6rem) max(clamp(1rem,6vw,6rem),calc((100vw - 1240px)/2)); overflow:hidden; background:linear-gradient(135deg,#fff8d9,#f4efff 52%,#e8faff); }.brainleaps-age-hero::after { content:""; position:absolute; right:-120px; bottom:-210px; width:480px; height:480px; border-radius:50%; background:rgba(156,220,255,.35); }.brainleaps-age-hero>div:first-child { position:relative; z-index:1; }.brainleaps-age-hero h1 { max-width:850px; margin:1rem 0; font-size:clamp(3.2rem,6vw,6.3rem); line-height:.96; letter-spacing:-.05em; }.brainleaps-age-hero p { max-width:760px; margin:0; color:var(--muted); font-size:clamp(1.05rem,2vw,1.3rem); line-height:1.6; }.brainleaps-back { display:block; width:max-content; margin-bottom:1.4rem; color:var(--violet-dark); font-size:.88rem; font-weight:900; }
.brainleaps-age-mark { position:relative; z-index:1; width:min(100%,300px); aspect-ratio:1; display:grid; place-items:center; justify-self:center; border:1px solid rgba(255,255,255,.8); border-radius:44% 56% 51% 49%; background:linear-gradient(145deg,#ffd66d,#ffaac8 47%,#9d8ce9); box-shadow:0 28px 65px rgba(67,45,104,.2),inset 0 0 0 12px rgba(255,255,255,.28); transform:rotate(3deg); }.brainleaps-age-mark>span { font-size:7rem; }.brainleaps-age-mark>strong { position:absolute; bottom:8%; padding:.55rem .8rem; border:3px solid white; border-radius:14px; color:var(--violet-dark); background:#fff; font:800 1rem Fredoka,sans-serif; transform:rotate(-5deg); }
.brainleaps-focus { display:flex; align-items:center; gap:1.25rem; margin:0 0 4rem; padding:1.2rem 1.4rem; border:1px solid #ddd5e8; border-radius:22px; background:#fff; box-shadow:0 12px 30px rgba(55,39,91,.07); }.brainleaps-focus>div { display:flex; flex-wrap:wrap; gap:.55rem; }.brainleaps-focus strong { padding:.55rem .75rem; border-radius:999px; color:#3f3174; background:#eee9ff; font-size:.82rem; }
.brainleaps-age-leaps { margin-bottom:5rem; }
.brainleaps-quick { margin-bottom:5rem; }.brainleaps-quick .brainleaps-section-heading { margin:0 auto 2rem; text-align:center; }.brainleaps-quick-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.8rem; }.brainleaps-quick-card { min-height:245px; padding:1.2rem; border:1px solid #ddd5e8; border-radius:22px; background:linear-gradient(155deg,#fff 15%,#f7f3ff); box-shadow:0 10px 25px rgba(55,39,91,.07); }.brainleaps-quick-card:nth-child(2n) { background:linear-gradient(155deg,#fff 15%,#eefbf6); }.brainleaps-quick-card>span { color:var(--violet); font-size:.66rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }.brainleaps-quick-card h3 { margin:.75rem 0 .55rem; font:800 1.35rem/1.05 Fredoka,sans-serif; }.brainleaps-quick-card p { margin:0; color:var(--muted); font-size:.9rem; line-height:1.55; }
.brainleaps-qa { margin-bottom:5rem; }.brainleaps-qa-list { display:grid; gap:.75rem; }.brainleaps-qa-item { border:1px solid #ded6e8; border-radius:20px; background:#fff; box-shadow:0 8px 22px rgba(55,39,91,.06); overflow:hidden; }.brainleaps-qa-item summary { display:grid; grid-template-columns:44px minmax(0,1fr) 34px; align-items:center; gap:.8rem; min-height:78px; padding:1rem 1.15rem; cursor:pointer; list-style:none; }.brainleaps-qa-item summary::-webkit-details-marker { display:none; }.brainleaps-qa-item summary>span { display:grid; place-items:center; width:40px; height:40px; border-radius:13px; color:#fff; background:var(--violet); font:800 .82rem Fredoka,sans-serif; }.brainleaps-qa-item summary>strong { font:800 clamp(1rem,2vw,1.22rem) Fredoka,sans-serif; line-height:1.25; }.brainleaps-qa-item summary>i { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; color:var(--violet-dark); background:#eee9ff; font-style:normal; font-weight:900; transition:transform .2s ease; }.brainleaps-qa-item[open] summary>i { transform:rotate(45deg); }.brainleaps-qa-answer { padding:0 1.15rem 1.15rem 4.85rem; }.brainleaps-qa-answer>p { margin:0 0 .8rem; color:var(--muted); font-size:1rem; line-height:1.65; }.brainleaps-qa-answer aside { padding:1rem 1.1rem; border-left:5px solid var(--mint); border-radius:0 16px 16px 0; background:var(--mint-soft); }.brainleaps-qa-answer aside>span,.brainleaps-qa-answer aside>strong { display:block; }.brainleaps-qa-answer aside>span { margin-bottom:.3rem; color:#2f725a; font-size:.68rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }.brainleaps-qa-answer aside>strong { color:#205f48; line-height:1.5; }
.brainleaps-range-nav { display:flex; justify-content:space-between; gap:1rem; margin:0 0 3rem; padding:0; background:transparent; }.brainleaps-range-nav a { display:inline-flex; min-height:48px; align-items:center; padding:.7rem 1rem; border:1px solid #d7cdec; border-radius:14px; color:var(--violet-dark); background:#fff; font-weight:900; text-decoration:none; box-shadow:0 7px 18px rgba(55,39,91,.07); }

@media (max-width:1100px) { .brainleaps-age-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.brainleaps-age-grid a { min-height:160px; }.brainleaps-quick-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:980px) { .brainleaps-hero { min-height:330px; grid-template-columns:1fr minmax(220px,.55fr); }.brainleaps-flow { grid-template-columns:1fr 1fr; }.brainleaps-flow>i { display:none; }.brainleaps-integration-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:700px) { .brainleaps-hero,.brainleaps-age-hero { min-height:0; grid-template-columns:1fr; padding-top:2rem; text-align:center; }.brainleaps-hero-copy,.brainleaps-age-hero>div:first-child { display:flex; flex-direction:column; align-items:center; }.brainleaps-hero h1 { font-size:clamp(2.5rem,12vw,4rem); }.brainleaps-age-hero h1 { font-size:clamp(3rem,14vw,4.8rem); }.brainleaps-hero-art { width:min(55vw,230px); }.brainleaps-age-mark { width:min(70vw,280px); }.brainleaps-content { width:min(calc(100% - 1rem),1240px); }.brainleaps-safety,.homepage-brainleaps { grid-template-columns:1fr; }.brainleaps-age-hub .brainleaps-section-heading { display:block; text-align:center; }.brainleaps-age-hub .brainleaps-section-heading p { margin-top:.55rem; }.brainleaps-flow,.brainleaps-integration-grid,.brainleaps-age-grid,.brainleaps-quick-grid { grid-template-columns:1fr; }.brainleaps-quick-card { min-height:0; }.brainleaps-integration-grid a { min-height:180px; }.brainleaps-age-grid a { min-height:145px; text-align:left; }.brainleaps-game-note { grid-template-columns:1fr; }.brainleaps-table th,.brainleaps-table td { padding:1rem; }.homepage-brainleaps { padding:1.35rem; }.homepage-brainleaps-art { width:min(70vw,260px); }.brainleaps-safety { padding:1.25rem; }.brainleaps-focus { align-items:flex-start; flex-direction:column; }.brainleaps-qa-item summary { grid-template-columns:38px minmax(0,1fr) 30px; padding:.9rem; }.brainleaps-qa-item summary>span { width:36px; height:36px; }.brainleaps-qa-answer { padding:0 .9rem .9rem; }.brainleaps-range-nav { align-items:stretch; flex-direction:column; }.brainleaps-range-nav>div:last-child { align-self:flex-end; } }

@media (prefers-reduced-motion: reduce) { *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}.landing-sticky-video{display:none} }

.analytics-consent {
  position: fixed;
  z-index: 120;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 58rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  color: #172033;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(23, 32, 51, 0.2);
}

.analytics-consent strong { font-family: "Fredoka", sans-serif; font-size: 1rem; }
.analytics-consent p { margin: 0.3rem 0 0; font-size: 0.9rem; line-height: 1.45; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 0.55rem; }
.analytics-consent-actions button { min-height: 2.75rem; padding: 0.6rem 0.9rem; border: 1px solid rgba(23, 32, 51, 0.2); border-radius: 0.75rem; background: #fff; color: #172033; font: inherit; font-weight: 700; cursor: pointer; }
.analytics-consent-actions button.primary { border-color: #6c4cff; background: #6c4cff; color: #fff; }

@media (max-width: 640px) {
  .analytics-consent { align-items: stretch; flex-direction: column; }
  .analytics-consent-actions { justify-content: stretch; }
  .analytics-consent-actions button { flex: 1; }
}

.about-page { min-height:100vh; overflow:hidden; background:linear-gradient(180deg,#fbf7ef 0,#fff 48%,#f6f1ff 100%); }
.about-hero { width:min(calc(100% - 2rem),1120px); display:grid; grid-template-columns:minmax(260px,.68fr) minmax(0,1.32fr); align-items:center; gap:clamp(2rem,6vw,5rem); margin:0 auto; padding:clamp(3rem,7vw,7rem) 0 clamp(4rem,8vw,7rem); }
.about-hero-copy h1 { max-width:760px; margin:.75rem 0 1.2rem; font-size:clamp(3.2rem,7vw,6.8rem); line-height:.94; letter-spacing:-.055em; }
.about-hero-copy p { max-width:680px; margin:0; color:var(--muted); font-size:clamp(1.1rem,2vw,1.35rem); line-height:1.68; }
.about-family-photo { position:relative; width:min(100%,420px); justify-self:start; margin:0; transform:rotate(-1.25deg); }
.about-family-photo img { width:100%; height:auto; aspect-ratio:4/5; display:block; border:10px solid #fff; border-radius:32px; object-fit:cover; filter:grayscale(1) contrast(1.04); box-shadow:0 30px 70px rgba(51,40,66,.22); }
.about-family-photo figcaption { position:absolute; right:1.5rem; bottom:-1.1rem; padding:.75rem 1rem; border-radius:12px; color:#342951; background:#ffe597; font-size:.8rem; font-weight:900; box-shadow:0 10px 24px rgba(51,40,66,.16); transform:rotate(-4deg); }
.about-story { width:min(calc(100% - 2rem),1120px); display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(2rem,7vw,6rem); margin:0 auto clamp(5rem,10vw,9rem); padding:clamp(2rem,5vw,4.5rem); border:1px solid #e5daca; border-radius:36px; background:rgba(255,255,255,.84); box-shadow:0 20px 55px rgba(66,48,84,.09); }
.about-story h2 { margin:.6rem 0 0; font-size:clamp(2.2rem,4vw,4rem); line-height:1; letter-spacing:-.04em; }.about-story-copy p { margin:0 0 1.25rem; color:var(--muted); font-size:1.08rem; line-height:1.75; }.about-story-copy p:last-child { margin-bottom:0; }
.about-journey { width:min(calc(100% - 2rem),1240px); margin:0 auto clamp(5rem,10vw,9rem); }.about-section-heading { max-width:760px; margin-bottom:2rem; }.about-section-heading h2 { margin:.5rem 0 0; font-size:clamp(2.5rem,5vw,4.8rem); line-height:1; letter-spacing:-.045em; }
.about-journey-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }.about-journey-grid article { min-height:260px; display:flex; flex-direction:column; padding:1.4rem; border:1px solid #e1d8eb; border-radius:26px; background:#fff; box-shadow:0 13px 32px rgba(56,40,78,.08); }.about-journey-grid article:nth-child(2n) { background:#fff9e9; }.about-journey-grid article>span { width:max-content; padding:.45rem .65rem; border-radius:999px; color:#fff; background:var(--violet); font-size:.72rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }.about-journey-grid h3 { margin:auto 0 .6rem; font:800 1.5rem/1.05 Fredoka,sans-serif; }.about-journey-grid p { margin:0; color:var(--muted); line-height:1.55; }
.about-closing { width:min(calc(100% - 2rem),1000px); margin:0 auto; padding:clamp(2rem,6vw,5rem); border-radius:40px; color:#fff; text-align:center; background:linear-gradient(135deg,#3f326f,#6e54bc 55%,#3f7890); box-shadow:0 28px 70px rgba(54,39,91,.2); }.about-closing .eyebrow { color:#ffe597; }.about-closing h2 { margin:.6rem 0 1rem; font-size:clamp(2.6rem,5vw,5rem); line-height:.98; }.about-closing p { max-width:720px; margin:0 auto 1.5rem; color:rgba(255,255,255,.84); font-size:1.1rem; line-height:1.65; }.about-closing .button { background:#fff; color:#3f326f; }
.about-page>.landing-footer { margin-bottom:2rem; }.footer-links { flex-wrap:wrap; justify-content:flex-end; }
@media (max-width:900px) { .about-story { grid-template-columns:1fr; }.about-journey-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .about-hero { grid-template-columns:1fr; }.about-family-photo { width:min(66vw,360px); justify-self:center; transform:none; } }
@media (max-width:620px) { .about-hero { padding-top:2.5rem; }.about-hero-copy h1 { font-size:clamp(3rem,15vw,4.6rem); }.about-family-photo img { border-width:7px; border-radius:24px; }.about-story { padding:1.5rem; border-radius:26px; }.about-journey-grid { grid-template-columns:1fr; }.about-journey-grid article { min-height:210px; }.about-closing { border-radius:28px; }.footer-links { justify-content:stretch; }.footer-links button { min-width:calc(50% - .3rem); } }

/* Full-background automated game showcase */
.homepage-game-slider { position:relative; z-index:2; width:100%; max-width:1180px; min-height:clamp(500px,58vw,650px); margin:2rem auto; overflow:hidden; border:1px solid rgba(255,255,255,.82); border-radius:var(--radius-lg); background:#30234b; box-shadow:0 24px 64px rgba(45,31,75,.24); isolation:isolate; }
.homepage-game-slides,.homepage-game-slide { position:absolute; inset:0; }
.homepage-game-slide { opacity:0; visibility:hidden; transition:opacity .8s ease,visibility .8s ease; }
.homepage-game-slide.is-active { opacity:1; visibility:visible; }
.homepage-game-slide-image { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; transform:scale(1.01); transition:transform 6s ease; }
.homepage-game-slide.is-active .homepage-game-slide-image { transform:scale(1.055); }
.homepage-game-slide-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(25,16,43,.84) 0%,rgba(25,16,43,.64) 38%,rgba(25,16,43,.16) 69%,rgba(25,16,43,.05) 100%),linear-gradient(0deg,rgba(25,16,43,.55),transparent 48%); }
.homepage-game-slide-copy { position:absolute; z-index:2; left:clamp(3.75rem,7vw,6rem); bottom:clamp(4.6rem,8vw,6.5rem); width:min(650px,62%); color:#fff; text-shadow:0 3px 18px rgba(20,12,35,.72); }
.homepage-game-slide-copy h2 { max-width:720px; margin:0 0 .75rem; color:#fff; font-size:clamp(3rem,6vw,5.6rem); line-height:.94; letter-spacing:-.045em; }
.homepage-game-slide-copy p { max-width:590px; margin:0 0 1.35rem; color:#fff; font-size:clamp(1.05rem,1.7vw,1.35rem); font-weight:700; line-height:1.45; }
.homepage-game-slide-cta { display:inline-flex; width:auto; min-width:164px; justify-content:center; gap:.55rem; padding:.9rem 1.35rem; color:#fff; background:linear-gradient(135deg,#7654dc,#9a43cf); box-shadow:0 12px 28px rgba(40,19,85,.35); text-decoration:none; }
.homepage-game-slide-cta:hover,.homepage-game-slide-cta:focus-visible { transform:translateY(-2px); filter:brightness(1.1); box-shadow:0 0 0 4px rgba(255,255,255,.9),0 16px 34px rgba(40,19,85,.4); }
.homepage-game-slide-cta svg { width:22px; height:22px; }
.homepage-game-slider-arrow { position:absolute; z-index:5; top:50%; display:grid; place-items:center; width:48px; height:48px; padding:0 0 4px; border:1px solid rgba(255,255,255,.58); border-radius:50%; color:#4f329d; background:rgba(255,255,255,.93); box-shadow:0 10px 25px rgba(22,11,44,.25); font:900 2rem/1 system-ui,sans-serif; cursor:pointer; transform:translateY(-50%); transition:transform .18s ease,background .18s ease; }
.homepage-game-slider-arrow:hover,.homepage-game-slider-arrow:focus-visible { background:#fff; transform:translateY(-50%) scale(1.07); }
.homepage-game-slider-prev { left:1.1rem; }
.homepage-game-slider-next { right:1.1rem; }
.homepage-game-slider-controls { position:absolute; z-index:5; right:clamp(1.2rem,3vw,2.2rem); bottom:1.3rem; display:flex; align-items:center; gap:.85rem; }
.homepage-game-slider-dots { display:flex; align-items:center; gap:.52rem; }
.homepage-game-slider-dot { width:11px; height:11px; padding:0; border:2px solid #fff; border-radius:50%; background:rgba(255,255,255,.3); box-shadow:0 2px 8px rgba(20,10,40,.32); cursor:pointer; transition:width .18s ease,background .18s ease; }
.homepage-game-slider-dot.is-active { width:29px; border-radius:999px; background:#fff; }
.homepage-game-slider-pause { padding:.45rem .7rem; border:1px solid rgba(255,255,255,.55); border-radius:999px; color:#fff; background:rgba(30,18,51,.58); font:inherit; font-size:.72rem; font-weight:800; cursor:pointer; backdrop-filter:blur(7px); }

@media (min-width:721px) {
  .homepage-game-slider { margin-top:clamp(5rem,8vw,7rem); }
}

@media (max-width:720px) {
  .homepage-game-slider { min-height:540px; margin:1.25rem auto; border-radius:26px; }
  .homepage-game-slide-shade { background:linear-gradient(0deg,rgba(25,16,43,.9) 0%,rgba(25,16,43,.68) 46%,rgba(25,16,43,.04) 82%); }
  .homepage-game-slide-copy { left:1.35rem; right:1.35rem; bottom:5rem; width:auto; }
  .homepage-game-slide-copy h2 { margin-bottom:.55rem; font-size:clamp(2.55rem,12vw,3.8rem); }
  .homepage-game-slide-copy p { max-width:95%; margin-bottom:1rem; font-size:1rem; }
  .homepage-game-slide-cta { min-width:150px; padding:.78rem 1.1rem; }
  .homepage-game-slider-arrow { top:36%; width:42px; height:42px; }
  .homepage-game-slider-prev { left:.65rem; }
  .homepage-game-slider-next { right:.65rem; }
  .homepage-game-slider-controls { right:1rem; bottom:1rem; }
  .homepage-game-slider-pause { font-size:.66rem; }
}

@media (prefers-reduced-motion:reduce) {
  .homepage-game-slide,.homepage-game-slide-image { transition:none; }
}

/* Teaching packs and responsive homepage book carousel. */
.books-teaser { padding-block:clamp(1rem,2vw,1.75rem); }
.book-carousel-desktop { width:min(100%,960px); margin-inline:auto; overflow:hidden; }
.book-carousel-track { display:flex; gap:.8rem; padding-block:.8rem; transition:transform .85s cubic-bezier(.22,.78,.28,1); will-change:transform; }
.book-carousel-track.is-resetting { transition:none; }
.book-carousel-item { flex:0 0 calc((100% - 2.4rem)/4); }
.book-carousel-desktop .book-cover-card img,.book-carousel-desktop .book-cover-button:hover img,.book-carousel-desktop .book-cover-button:focus-visible img { transform:none; filter:none; transition:none; }
.books-teaser-footer { display: flex; justify-content: center; margin-top: 1.25rem; }
.lesson-teaching-packs p { max-width: 850px; font-size: clamp(1.05rem,2vw,1.35rem); line-height: 1.5; }
.lesson-teaching-packs .button { margin-top: .25rem; }

@media (max-width:600px) {
  .books-teaser .book-carousel-mobile { width:min(100%,360px); grid-template-columns:minmax(0,1fr); margin:1.4rem auto; }
  .books-teaser .book-cover-card img { transition:transform .22s ease,filter .22s ease,opacity 1.5s ease-in-out; }
  .books-teaser .book-cover-card.is-changing img { opacity:0; transform:scale(.985); }
}
@media (prefers-reduced-motion:reduce) {
  .book-carousel-track { transition:none; }
  .books-teaser .book-cover-card img { transition:none; }
}
.teaching-page { display: grid; gap: 1.5rem; }
.teaching-hero,.teaching-program,.teaching-prep,.teaching-resource-links,.teaching-safety-note { border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius-lg); background: rgba(255,250,246,.95); box-shadow: var(--shadow); }
.teaching-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: clamp(1.5rem,4vw,3rem); padding: clamp(1.5rem,4vw,3rem); background: linear-gradient(135deg,rgba(255,242,246,.97),rgba(235,247,255,.96)); }
.teaching-hero-copy { align-self: center; }
.teaching-hero h1 { max-width: 820px; margin: .35rem 0 1rem; font-size: clamp(2.8rem,6vw,5.4rem); line-height: .95; }
.teaching-hero-copy>p { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem,1.8vw,1.35rem); line-height: 1.55; }
.teaching-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 .8rem; }
.teaching-hero-copy>small { color: var(--muted); }
.teaching-pack-card { align-self: stretch; display: grid; align-content: center; gap: .8rem; padding: 1.5rem; border: 2px solid rgba(109,82,200,.18); border-radius: 28px; background: linear-gradient(145deg,#fff,#f0eaff); }
.teaching-pack-card>span { width: max-content; padding: .4rem .7rem; border-radius: 999px; color: #fff; background: var(--coral); font-weight: 800; }
.teaching-pack-mark { width: 110px; height: 110px; display: grid; place-items: center; padding: .8rem; border-radius: 50%; color: var(--violet-dark); background: linear-gradient(145deg,#ffd5c4,#f4ceff); text-align: center; font-family: Fredoka,sans-serif; font-weight: 700; line-height: 1; }
.teaching-pack-card h2 { margin: 0; font-size: clamp(1.65rem,3vw,2.35rem); }
.teaching-pack-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.teaching-pack-card>a { width: max-content; color: var(--violet-dark); font-weight: 800; }
.teaching-intro-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.teaching-intro-grid article { padding: 1.4rem; border-radius: 26px; background: rgba(255,250,246,.94); box-shadow: var(--shadow); }
.teaching-intro-grid article>span { font-size: 2rem; }
.teaching-intro-grid h2 { margin: .55rem 0 .35rem; }
.teaching-intro-grid p { margin: 0; color: var(--muted); line-height: 1.5; }
.teaching-program,.teaching-prep,.teaching-resource-links { padding: clamp(1.4rem,4vw,2.5rem); }
.teaching-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); gap: 1.5rem; align-items: end; }
.teaching-section-heading h2,.teaching-prep h2 { margin: .35rem 0 0; font-size: clamp(2rem,4vw,3.4rem); }
.teaching-section-heading>p { margin: 0; color: var(--muted); line-height: 1.55; }
.teaching-schedule { display: grid; gap: .75rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.teaching-schedule-item { display: grid; grid-template-columns: 155px 1fr; overflow: hidden; border: 1px solid rgba(61,42,77,.12); border-radius: 20px; background: #fff; }
.teaching-time { display: grid; align-content: center; gap: .25rem; padding: 1rem; background: #f4efff; }
.teaching-time strong { font-size: 1.05rem; }
.teaching-time span,.teaching-start { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.teaching-activity { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; }
.teaching-activity h3 { margin: .15rem 0 .2rem; }
.teaching-activity p { margin: 0; color: var(--muted); line-height: 1.45; }
.teaching-activity>a { flex: 0 0 auto; color: var(--violet-dark); font-weight: 800; }
.teaching-prep { display: grid; grid-template-columns: minmax(260px,.6fr) 1fr; gap: 2rem; }
.teaching-prep ol { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; counter-reset: teaching-step; }
.teaching-prep li { counter-increment: teaching-step; display: grid; grid-template-columns: 38px 1fr; gap: .2rem .75rem; padding: .8rem; border-radius: 18px; background: #f7f2ff; }
.teaching-prep li::before { content: counter(teaching-step); grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--violet); font-weight: 800; }
.teaching-prep li span { color: var(--muted); }
.teaching-resource-links>div:last-child { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin-top: 1.4rem; }
.teaching-resource-links>div:last-child a { display: grid; gap: .3rem; padding: 1.1rem; border-radius: 20px; color: var(--ink); background: #f5efff; text-decoration: none; }
.teaching-resource-links>div:last-child span { color: var(--muted); line-height: 1.4; }
.teaching-safety-note { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.25rem 1.5rem; }
.teaching-safety-note strong { color: var(--violet-dark); }
.teaching-safety-note p { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .teaching-hero,.teaching-section-heading,.teaching-prep { grid-template-columns: 1fr; }
  .teaching-intro-grid { grid-template-columns: 1fr; }
  .teaching-schedule-item { grid-template-columns: 1fr; }
  .teaching-activity { align-items: flex-start; flex-direction: column; }
  .teaching-resource-links>div:last-child { grid-template-columns: 1fr 1fr; }
  .teaching-safety-note { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion:reduce) {
  .book-cover-card img { transition: none; }
}
