: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-browser-notice { display: grid; gap: .35rem; width: 100%; padding: .85rem 1rem; border: 1px solid #d7c8f5; border-radius: 12px; background: #f7f2ff; color: #443366; text-align: left; }
.google-browser-notice strong { color: var(--violet-dark); font-size: .9rem; }
.google-browser-notice span { font-size: .78rem; line-height: 1.45; }
.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; }
.order-history-panel { grid-column: 1 / -1; }
.account-tabs { display: flex; gap: .55rem; margin: 0 0 1.25rem; padding: .45rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 10px 28px rgba(46,39,65,.06); }
.account-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .7rem 1rem; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: 700 .85rem Fredoka, sans-serif; white-space: nowrap; cursor: pointer; }
.account-tabs button:hover,.account-tabs button:focus-visible { background: var(--violet-soft); color: var(--violet-dark); }
.account-tabs button.active { background: var(--violet); color: #fff; box-shadow: 0 8px 18px rgba(106,73,200,.2); }
.account-tabs button span { min-width: 1.55rem; padding: .16rem .42rem; border-radius: 99px; background: rgba(255,255,255,.22); font-size: .68rem; }
.account-tab-panel { min-height: 300px; }
.account-tab-panel .panel-title { margin-bottom: 1.25rem; }
.account-tab-panel .panel-title p { margin-top: .35rem; color: var(--muted); font-size: .88rem; }
.purchased-ebook-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.purchased-ebook-grid article { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.purchased-ebook-grid img,.purchased-ebook-placeholder { width: 92px; aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.purchased-ebook-placeholder { display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.purchased-ebook-placeholder svg { width: 34px; }
.purchased-ebook-grid strong,.purchased-ebook-grid small { display: block; }
.purchased-ebook-grid small { margin: .3rem 0 .8rem; color: var(--muted); }
.order-history-list { display: grid; gap: .7rem; }
.order-history-list article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-history-list strong,.order-history-list small { display: block; }
.order-history-list small,.empty-order-history { margin-top: .25rem; color: var(--muted); }
.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: #f7dfe8; pointer-events: none; }
.landing-sticky-picture { position: absolute; inset: 0; display: block; }
.landing-sticky-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.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; }
.landing-hero-jump-links { position: absolute; left: 50%; top: 67%; display: flex; align-items: center; justify-content: center; gap: clamp(.6rem, 1.5vw, 1rem); width: max-content; max-width: calc(100% - 1rem); margin: 0; padding: 0; border-radius: 0; background: transparent; transform: translate(-50%, -50%); }
.landing-hero-jump { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-width: clamp(116px, 14vw, 165px); min-height: 54px; padding: .7rem 1.35rem; border: 3px solid rgba(255,255,255,.96); border-radius: 999px; color: #fff; font-family: Fredoka, "Atkinson Hyperlegible", sans-serif; font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 700; line-height: 1; text-decoration: none; text-shadow: 0 2px 5px rgba(42,25,76,.45); box-shadow: 0 10px 26px rgba(50,35,84,.28); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.landing-hero-jump svg { width: 21px; height: 21px; }
.landing-hero-jump-play { background: linear-gradient(135deg, var(--violet), #df4fa4); }
.landing-hero-jump-learn { color: var(--violet-dark); background: rgba(255,255,255,.94); text-shadow: none; }
.landing-hero-jump:hover,.landing-hero-jump:focus-visible { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(255,255,255,.46), 0 14px 32px rgba(50,35,84,.36); }
.landing-hero-jump:focus-visible { outline: 4px solid rgba(80,47,157,.55); outline-offset: 4px; }
.hero-copy .landing-hero-tagline { position: absolute; left: 50%; top: calc(67% + 3.5rem); bottom: auto; 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(3,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-board-game-cta { border: 2px solid #de4e96; color: #70245c; background: linear-gradient(145deg,#fff8c9,#ffe3f1); }
.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; }
.homepage-halloween { position:relative; z-index:2; width:100%; max-width:1180px; display:grid; grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr); gap:clamp(1.2rem,4vw,3.4rem); align-items:center; margin:2rem auto; padding:clamp(1rem,2vw,1.35rem); overflow:hidden; border:1px solid rgba(255,221,145,.72); border-radius:var(--radius-lg); color:#fff; background:radial-gradient(circle at 9% 12%,rgba(255,183,58,.2),transparent 31%),linear-gradient(140deg,#25113d 0%,#421652 54%,#711f4f 100%); box-shadow:0 24px 64px rgba(39,16,59,.32); }
.homepage-halloween::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.42; background:radial-gradient(circle at 12% 78%,#ffd76b 0 2px,transparent 3px),radial-gradient(circle at 46% 14%,#fff2b0 0 2px,transparent 3px),radial-gradient(circle at 82% 82%,#ffbd45 0 2px,transparent 3px); background-size:86px 86px,118px 118px,104px 104px; }
.homepage-halloween-copy { position:relative; z-index:1; padding:clamp(.75rem,2.5vw,2rem); }
.homepage-halloween-badge { display:inline-flex; align-items:center; gap:.45rem; padding:.5rem .78rem; border:1px solid rgba(255,235,171,.5); border-radius:999px; color:#2d163c; background:#ffd96e; box-shadow:0 8px 20px rgba(20,5,32,.28); font-size:.78rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
.homepage-halloween-copy h2 { margin:.72rem 0 .8rem; color:#fff4c7; font-size:clamp(2.7rem,5vw,4.8rem); line-height:.96; letter-spacing:-.04em; text-shadow:0 4px 18px rgba(0,0,0,.3); }
.homepage-halloween-copy p { margin:0 0 1.4rem; color:#f7eefa; font-size:1.08rem; line-height:1.6; }
.homepage-halloween-cta { width:max-content; gap:.55rem; border:2px solid #fff3c0; color:#31143f; background:linear-gradient(135deg,#ffd75d,#ff9f3f); text-decoration:none; box-shadow:0 12px 28px rgba(19,4,29,.32); }
.homepage-halloween-cta:hover,.homepage-halloween-cta:focus-visible { color:#2a1238; background:linear-gradient(135deg,#ffe58d,#ffb65f); transform:translateY(-2px); }
.homepage-halloween-cta svg { width:22px; height:22px; }
.homepage-halloween-art { position:relative; z-index:1; display:block; min-width:0; overflow:hidden; border:3px solid rgba(255,235,174,.86); border-radius:calc(var(--radius-lg) - 10px); color:#fff; background:#241139; box-shadow:0 18px 42px rgba(14,3,24,.42); text-decoration:none; }
.homepage-halloween-art img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .35s ease,filter .35s ease; }
.homepage-halloween-art span { position:absolute; right:1rem; bottom:1rem; padding:.58rem .85rem; border:1px solid rgba(255,255,255,.6); border-radius:999px; background:rgba(39,14,55,.88); font-size:.8rem; font-weight:900; box-shadow:0 8px 18px rgba(0,0,0,.28); }
.homepage-halloween-art:hover img,.homepage-halloween-art:focus-visible img { transform:scale(1.025); filter:saturate(1.08) brightness(1.04); }
.homepage-halloween-art:focus-visible { outline:5px solid rgba(255,211,93,.62); outline-offset:4px; }
.winter-holiday-pack { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 2rem auto; padding: clamp(1.35rem,3.8vw,3rem); overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: var(--radius-lg); background: radial-gradient(circle at 7% 12%,rgba(255,255,255,.86) 0 3px,transparent 4px),radial-gradient(circle at 80% 24%,rgba(255,255,255,.7) 0 4px,transparent 5px),linear-gradient(135deg,#dff3ff 0%,#f8fbff 38%,#efe7ff 70%,#ffe8ee 100%); background-size: 68px 68px,96px 96px,auto; box-shadow: 0 24px 64px rgba(34,66,118,.22); }
.winter-holiday-pack::after { content:""; position:absolute; inset:auto -8% -120px 35%; height:220px; border-radius:50%; background:rgba(255,255,255,.46); filter:blur(4px); pointer-events:none; }
.winter-holiday-heading { position:relative; z-index:1; display:flex; align-items:end; justify-content:space-between; gap:1.2rem; margin-bottom:clamp(1.2rem,3vw,2rem); }
.winter-holiday-heading>div { max-width:760px; }
.winter-holiday-badge { display:inline-flex; align-items:center; gap:.45rem; padding:.52rem .78rem; border-radius:999px; background:#204f91; color:#fff; font-size:.8rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase; box-shadow:0 7px 16px rgba(32,79,145,.24); }
.winter-holiday-badge span { font-size:1.05rem; }
.winter-holiday-heading h2 { margin:.72rem 0 .45rem; color:#24365c; font-size:clamp(2.45rem,5vw,4.6rem); line-height:.98; letter-spacing:-.04em; }
.winter-holiday-heading p { margin:0; color:#4f5f78; font-size:1.08rem; line-height:1.55; }
.winter-holiday-action { flex:0 0 auto; border:2px solid #204f91; background:#fff; color:#204f91; text-decoration:none; }
.winter-holiday-action:hover,.winter-holiday-action:focus-visible { color:#fff; background:#204f91; }
.winter-holiday-grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(.8rem,2vw,1.25rem); }
.winter-holiday-book { min-width:0; overflow:hidden; border:1px solid rgba(65,87,130,.16); border-radius:24px; background:rgba(255,255,255,.9); box-shadow:0 14px 30px rgba(43,62,103,.16); }
.winter-holiday-book>a { display:grid; height:100%; color:#24365c; text-decoration:none; }
.winter-holiday-cover { display:block; overflow:hidden; aspect-ratio:1/1; background:#dceeff; }
.winter-holiday-cover img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease,filter .25s ease; }
.winter-holiday-book-copy { display:grid; gap:.28rem; padding:.85rem .9rem 1rem; }
.winter-holiday-book-copy strong { font-family:Fredoka,"Atkinson Hyperlegible",sans-serif; font-size:1.05rem; line-height:1.2; }
.winter-holiday-book-copy small { color:#5d6f8b; font-size:.8rem; font-weight:800; }
.winter-holiday-book>a:hover img,.winter-holiday-book>a:focus-visible img { transform:scale(1.035); filter:saturate(1.08) brightness(1.02); }
.winter-holiday-book>a:focus-visible { outline:5px solid rgba(32,79,145,.58); outline-offset:-5px; }
.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: 1180px; margin: clamp(2.5rem, 7vw, 6rem) auto 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-md); background: rgba(36,32,43,.96); color: white; box-shadow: 0 22px 60px rgba(36,32,43,.22); backdrop-filter: blur(12px); }
.landing-footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 3vw, 2rem); }
.landing-footer-bar strong { font-family: Fredoka, sans-serif; font-size: 1.1rem; }
.footer-links { display: flex; gap: .6rem; }
.footer-links button { min-height: 44px; display: inline-flex; align-items: center; padding: .65rem 1rem; border: 2px solid white; border-radius: 12px; 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 { border-color: rgba(255,255,255,.32); 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; }
.game-nav-control { position: relative; display: inline-flex; align-items: stretch; }
.game-nav-control>.game-nav-link { border-radius: 15px 0 0 15px; }
.game-nav-control>.game-nav-menu>.game-nav-toggle { width: 38px; padding-inline: .55rem; border-left: 1px solid rgba(255,255,255,.38); border-radius: 0 15px 15px 0; }
.game-nav-control>.game-nav-menu>.game-nav-toggle::after { margin-left: 0; }
.game-nav-control .game-nav-panel { right: 0; left: auto; transform: none; }
.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; }
.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(3rem,6vw,5.7rem); line-height: .94; letter-spacing: -.045em; }
.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; }
.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; }
  .homepage-halloween { grid-template-columns:1fr; }
  .homepage-halloween-art { grid-row:1; }
  .winter-holiday-heading { align-items:flex-start; flex-direction:column; }
  .winter-holiday-grid { 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: 900px) {
  .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-control { width: 100%; }
  .public-mobile-menu .game-nav-control>.game-nav-link { flex: 1; justify-content: flex-start; }
  .public-mobile-menu .game-nav-control>.game-nav-menu { width: 48px; }
  .public-mobile-menu .game-nav-control>.game-nav-menu>.game-nav-toggle { width: 48px; }
  .public-mobile-menu .game-nav-control .game-nav-panel { position: absolute; right: 0; left: auto; width: min(280px,calc(100vw - 3.6rem)); margin: .25rem 0 .5rem; transform: none; }
  .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-sticky-image{height:auto;object-fit:contain;object-position:center top}
  .games-hub-grid { grid-template-columns: 1fr; }
  .games-hub-card { grid-template-columns: 1fr; }
  .games-hub-image { min-height: 220px; aspect-ratio: 16/10; }
  .order-history-list article { align-items: stretch; flex-direction: column; }
  .order-history-list .button { width: 100%; justify-content: center; }
  .landing-hero-stage{min-height:max(360px,calc(100svh - 8.5rem))}
  .landing-hero-copy{width:min(100%,calc(100% - .5rem));padding:1.5rem 0 4.5rem}
  .landing-hero-jump-links{top:59%;gap:.55rem}
  .hero-copy .landing-hero-tagline{top:calc(59% + 3.2rem);bottom:auto}
  .landing-hero-jump{min-width:104px;min-height:46px;padding:.55rem 1rem;border-width:2px;font-size:1rem}
  .landing-hero-jump svg{width:18px;height:18px}
  .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) {
  .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) {
  .print-preorder { padding: 1.25rem; border-radius: 26px; }
  .winter-holiday-pack { padding:1rem; border-radius:26px; }
  .winter-holiday-heading h2 { font-size:2.65rem; }
  .winter-holiday-heading p { font-size:1rem; }
  .winter-holiday-action { width:100%; justify-content:center; }
  .winter-holiday-grid { gap:.65rem; }
  .winter-holiday-book { border-radius:18px; }
  .winter-holiday-book-copy { padding:.7rem; }
  .winter-holiday-book-copy strong { font-size:.9rem; }
  .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 { grid-template-columns: 1fr; }
  .homepage-game-actions,.homepage-game-cta { width: 100%; }
  .homepage-halloween { padding:.75rem; border-radius:26px; }
  .homepage-halloween-art { border-radius:20px; }
  .homepage-halloween-copy { padding:.75rem .6rem 1rem; }
  .homepage-halloween-copy h2 { font-size:2.75rem; }
  .homepage-halloween-cta { width:100%; justify-content:center; }
  .homepage-halloween-art span { right:.7rem; bottom:.7rem; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important} }

.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; }
}
