/* =========================================================
   Brand tokens
   Lagoon #3FB4C6  Meadow #7ACB8A  Sunbeam #FFC24B
   Blossom #FF8FA3  Lilac #A99AF0  Ink #26305E  Cloud #F4FAFF
   ========================================================= */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --ink: #26305E;
  --ink-2: #56608F;
  --lagoon: #3FB4C6;
  --lagoon-deep: #16808F;
  --meadow: #7ACB8A;
  --sun: #FFC24B;
  --blossom: #FF8FA3;
  --lilac: #A99AF0;
  --land: #F4FAFF;
  --paper: #FFFFFF;
  --line: rgba(38, 48, 94, .12);
  --glass: rgba(255, 255, 255, .78);
  --sky1: #A9E1F4;
  --sky2: #E6F7EF;
  --hill1: color-mix(in srgb, var(--tint, #7ACB8A) 32%, #CBEBD5);
  --hill2: color-mix(in srgb, var(--tint, #7ACB8A) 55%, #A5DDB2);
  --hill3: color-mix(in srgb, var(--tint, #7ACB8A) 40%, #8FD0A0);
  --trunk: #9A6B4A;
  --crown: color-mix(in srgb, var(--tint, #7ACB8A) 30%, #5DB673);
  --shadow: 0 1px 2px rgba(38, 48, 94, .06), 0 10px 28px -12px rgba(38, 48, 94, .28);
  --font-d: "Grandstander", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-b: "Lexend", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --r-lg: 28px;
  --r-md: 20px;
  --top-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF1FF; --ink-2: #B6BEE6; --land: #1A2052; --paper: #242B66; --line: rgba(255, 255, 255, .14);
    --glass: rgba(26, 32, 82, .8); --sky1: #0E1338; --sky2: #2C3574;
    --hill1: color-mix(in srgb, var(--tint, #7ACB8A) 18%, #2E3A7A); --hill2: color-mix(in srgb, var(--tint, #7ACB8A) 22%, #25336B);
    --hill3: color-mix(in srgb, var(--tint, #7ACB8A) 18%, #1E2A5E); --crown: #2F5C63; --trunk: #4D3A55; --lagoon-deep: #7FD6E3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 12px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--sky2); color: var(--ink); font-family: var(--font-b); font-size: 1.02rem; line-height: 1.55; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
main { display: block; outline: none; position: relative; z-index: 1; }

/* ---------- the world behind everything ---------- */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; pointer-events: none; }
.world .sky1 { stop-color: var(--sky1); } .world .sky2 { stop-color: var(--sky2); }
.w-hill1 { fill: var(--hill1); transition: fill .8s; } .w-hill2 { fill: var(--hill2); transition: fill .8s; } .w-hill3 { fill: var(--hill3); transition: fill .8s; }
.w-trees .trunk { fill: var(--trunk); } .w-trees .crown { fill: var(--crown); transition: fill .8s; }
.w-path { stroke: rgba(255, 255, 255, .55); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 2 26; }
.w-cloud { animation: drift linear infinite; opacity: .9; }
@keyframes drift { from { transform: translateX(-300px); } to { transform: translateX(1900px); } }
.w-night { opacity: 0; transition: opacity .6s; } .w-night circle { animation: twinkle 3s ease-in-out infinite alternate; }
.w-night .moon-cut { fill: var(--sky1); animation: none; }
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .w-night { opacity: 1; } :root:not([data-theme="light"]) .w-day, :root:not([data-theme="light"]) .w-clouds { opacity: .12; } }

/* ---------- top bar ---------- */
.topbar { position: fixed; left: 0; right: 0; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; padding: 4px 16px 4px 6px; box-shadow: var(--shadow); min-height: 48px; }
.brand span { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.search { position: relative; flex: 1; min-width: 0; max-width: 520px; margin-left: auto; display: flex; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: var(--shadow); min-height: 48px; }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 0 8px 0 20px; outline: none; }
.search input::placeholder { color: var(--ink-2); }
.search:focus-within { box-shadow: var(--shadow), 0 0 0 3px var(--lagoon); }
.search button { border: 0; background: var(--lagoon); color: #fff; width: 40px; height: 40px; margin: 4px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.topnav { display: flex; gap: 8px; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 600; }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--land); }
.count { background: var(--blossom); color: #3A1020; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: 1px 8px; }

/* suggestions dropdown */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--paper); border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 8px; z-index: 30; max-height: min(70vh, 520px); overflow: auto; text-align: left; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.suggest a[aria-selected="true"], .suggest a:hover { background: color-mix(in srgb, var(--lagoon) 14%, transparent); }
.suggest .s-ico { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-family: var(--emoji); font-size: 22px; background: color-mix(in srgb, var(--c, var(--lagoon)) 30%, var(--paper)); }
.suggest .s-ico.round { border-radius: 50%; }
.suggest b { display: block; font-weight: 600; line-height: 1.25; }
.suggest small { color: var(--ink-2); font-size: .82rem; line-height: 1.3; display: block; }
.suggest .s-head { font-size: .8rem; font-weight: 600; color: var(--ink-2); padding: 6px 10px 2px; }
.suggest .s-all { justify-content: center; font-weight: 600; color: var(--lagoon-deep); }
.suggest .s-none { padding: 14px; color: var(--ink-2); }

/* ---------- stages (content that sits in the world) ---------- */
.stage { position: relative; padding: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 36px) max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left)); max-width: 1240px; margin: 0 auto; }
.stage-cat { padding-bottom: clamp(48px, 16vh, 150px); }
.page-title { font-size: clamp(2.2rem, 6vw, 3.8rem); text-shadow: 0 2px 0 rgba(255, 255, 255, .35); }
.page-lead { font-size: 1.15rem; color: var(--ink-2); margin: 10px 0 0; max-width: 46ch; }

.hero { display: flex; align-items: center; gap: clamp(16px, 4vw, 48px); padding-top: clamp(8px, 4vh, 48px); }
.hero-pip { flex: none; animation: hover 4.5s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(38, 48, 94, .18)); }
@keyframes hover { 50% { transform: translateY(-10px) rotate(-2deg); } }
.hero-talk { flex: 1; max-width: 660px; }
.hero-talk h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: .98; letter-spacing: -.02em; }
.hero-talk > p { font-size: 1.2rem; margin: 12px 0 20px; color: var(--ink-2); }
.bigsearch { position: relative; display: flex; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow); padding: 6px; max-width: 620px; margin-top: 18px; }
.hero-talk .bigsearch { margin-top: 0; }
.bigsearch:focus-within { box-shadow: var(--shadow), 0 0 0 4px var(--lagoon); }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.15rem; color: var(--ink); padding: 0 12px 0 20px; outline: none; min-height: 52px; }
.bigsearch button { border: 0; background: var(--sun); color: #3A2A00; font: inherit; font-weight: 600; font-size: 1.05rem; padding: 0 26px; border-radius: 999px; cursor: pointer; }
.try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.try span { color: var(--ink-2); font-weight: 500; }
.try a { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }

/* portals: one circle per subject world */
.portals { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 34px); margin-top: clamp(28px, 7vh, 72px); }
.portal { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); width: 128px; text-align: center; animation: rise .7s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.8); } }
.portal-ring { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, var(--c), color-mix(in srgb, var(--c) 45%, #fff), var(--c)); padding: 7px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); }
.portal-ring span { width: 100%; height: 100%; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-family: var(--emoji); font-size: 46px; }
.portal:hover .portal-ring, .portal:focus-visible .portal-ring { transform: translateY(-6px) rotate(-6deg); }
.portal b { font-family: var(--font-d); font-size: 1.12rem; line-height: 1.1; margin-top: 10px; }
.portal small { color: var(--ink-2); font-size: .85rem; }
.portal:focus-visible { outline: none; }
.portal:focus-visible .portal-ring { box-shadow: 0 0 0 4px var(--ink); }

/* ---------- land: the content surface with a hill-shaped top edge ---------- */
.land { position: relative; background: var(--land); padding: 34px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); margin-top: 40px; }
.land::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 48px; background: var(--land); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C150 6 300 0 450 14S750 44 900 30 1100 4 1200 16V48Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V30C150 6 300 0 450 14S750 44 900 30 1100 4 1200 16V48Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.land > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.land-title { font-size: 1.6rem; margin: 6px auto 16px; }
.land-title small { font-family: var(--font-b); font-size: 1rem; color: var(--ink-2); font-weight: 500; margin-left: 6px; }
.foot { position: relative; z-index: 1; background: var(--land); border-top: 1px solid var(--line); padding: 28px 20px calc(env(safe-area-inset-bottom, 0px) + 28px); }
.foot-in { max-width: 1200px; margin: 0 auto; display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.foot-brand b { font-family: var(--font-d); font-size: 1.2rem; }
.foot-brand span { color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--ink); font-weight: 500; }
.foot-note { margin: 0; color: var(--ink-2); font-size: .9rem; }

/* ---------- rails & cards ---------- */
.rail { margin-bottom: 34px; }
.rail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); display: flex; align-items: center; gap: 10px; }
.rail-icon { font-family: var(--emoji); font-weight: 400; font-size: .95em; }
.see-all { font-weight: 600; margin-left: 6px; white-space: nowrap; }
.rail-nav { margin-left: auto; display: flex; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav.none { visibility: hidden; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 270px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; padding: 6px 4px 18px; margin: 0 -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }

.card { position: relative; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:focus-visible { outline-offset: -4px; border-radius: var(--r-md); }
.card-art { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 50%, #fff), var(--c)); display: grid; place-items: center; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-emoji { font-family: var(--emoji); font-size: 64px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15)); }
.card-art.has-img .card-emoji { position: absolute; left: 10px; bottom: 10px; font-size: 22px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); filter: none; box-shadow: var(--shadow); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.18rem; line-height: 1.15; }
.card-sum { color: var(--ink-2); font-size: .92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.card-meta span { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, var(--paper)); color: var(--ink); }
.card-fav, .gh-actions [data-fav] { cursor: pointer; }
.card-fav { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: #C4405C; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.card-fav[aria-pressed="true"], [data-fav][aria-pressed="true"] { color: #E0355B; }
.card-fav[aria-pressed="true"] { background: #FFE3EA; }

/* ---------- buttons, chips, filters ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn-play { background: var(--sun); color: #3A2A00; box-shadow: 0 6px 0 #E3A322, var(--shadow); font-size: 1.12rem; padding: 0 28px; min-height: 56px; }
.btn-play:active { box-shadow: 0 2px 0 #E3A322; transform: translateY(4px); }
.btn-soft { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.chip.on { background: var(--ink); color: var(--land); box-shadow: none; }
.sort { display: flex; gap: 4px; margin-left: auto; background: var(--paper); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 2px var(--line); }
.sort a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.sort a.on { background: color-mix(in srgb, var(--lagoon) 20%, var(--paper)); color: var(--ink); }
.more { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; color: var(--ink-2); }

/* ---------- explore ---------- */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; margin-top: 26px; }
.world-card { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; }
.world-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.world-emoji { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-family: var(--emoji); font-size: 30px; background: color-mix(in srgb, var(--c) 35%, var(--paper)); box-shadow: inset 0 0 0 4px var(--c); flex: none; }
.world-head b { display: block; font-family: var(--font-d); font-size: 1.3rem; line-height: 1.1; }
.world-head small { color: var(--ink-2); }
.subjects { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subjects a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }

/* ---------- category ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; font-size: .9rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink); text-decoration: none; font-weight: 500; background: var(--glass); padding: 3px 10px; border-radius: 999px; }
.crumbs [aria-current] { color: var(--ink-2); padding: 3px 4px; }
.cat-hero { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.cat-badge { flex: none; width: clamp(96px, 16vw, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--emoji); font-size: clamp(48px, 8vw, 76px); background: var(--paper); box-shadow: 0 0 0 10px var(--c), var(--shadow); }
.cat-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.cat-hero p { font-size: 1.1rem; max-width: 54ch; margin: 10px 0 0; }
.subject-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.subject-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; font-weight: 500; box-shadow: var(--shadow); }
.subject-chips a.on { background: var(--ink); color: var(--land); }
.subject-chips.big a { background: var(--paper); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c, var(--lagoon)) 60%, transparent); min-height: 52px; font-size: 1.05rem; }

/* ---------- game page ---------- */
.game-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.gh-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 45%, #fff), var(--c)); box-shadow: var(--shadow); color: #fff; text-decoration: none; }
.gh-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gh-emoji { font-family: var(--emoji); font-size: clamp(80px, 12vw, 130px); }
.gh-art.has-img .gh-emoji { display: none; }
.gh-play { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: var(--sun); color: #3A2A00; display: grid; place-items: center; box-shadow: 0 8px 0 #E3A322, 0 18px 30px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.2, .9, .3, 1.4); }
.gh-play svg { margin-left: 6px; }
.gh-art:hover .gh-play { transform: scale(1.08); }
.gh-info h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.gh-info .lead { font-size: 1.18rem; margin: 12px 0 0; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li, .facts a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; }
.facts li:has(a) { padding: 0; background: none; backdrop-filter: none; }
.facts span { font-family: var(--emoji); }
.gh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-bottom: 40px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.55rem; margin: 30px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; }
.learn { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.learn li { position: relative; padding: 12px 16px 12px 50px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
.learn li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--meadow); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.faqs { display: grid; gap: 10px; }
.faqs details { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); padding: 4px 18px; }
.faqs summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faqs summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lagoon-deep); }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { margin: 0 0 14px; }
.side-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px; }
.side-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.side-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.side-card dt { color: var(--ink-2); font-size: .92rem; }
.side-card dd { margin: 0; font-weight: 500; font-size: .95rem; }
.also { margin: 16px 0 0; font-size: .95rem; }

/* ---------- misc pages ---------- */
.about-strip { background: var(--paper); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow); max-width: 820px; margin-top: 10px; }
.about-strip h2 { font-size: 1.5rem; margin-bottom: 6px; }
.about-strip p { margin: 0; color: var(--ink-2); }
.page-body { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); max-width: 820px; }
.page-body h2 { margin-top: 26px; font-size: 1.45rem; }
.empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 8px; }
.empty h2 { font-size: 1.6rem; }
.empty p { margin: 0; color: var(--ink-2); }
.empty.small h2 { font-size: 1.3rem; }
.lost { text-align: center; display: grid; justify-items: center; gap: 10px; }
.lost .page-lead { margin: 0 auto; }
.tabs { display: inline-flex; gap: 6px; margin-top: 22px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 5px; border-radius: 999px; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); box-shadow: var(--shadow); }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .topbar { gap: 8px; }
  .brand span { font-size: 1.15rem; }
  .topnav { display: none; }
  .search { max-width: none; }
  .search input { padding-left: 14px; font-size: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); z-index: 20; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 6px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 18px; color: var(--ink); text-decoration: none; font-size: .74rem; font-weight: 600; }
  .tabbar a span { font-family: var(--emoji); font-size: 1.35rem; line-height: 1.2; }
  .tabbar a[aria-current="page"] { background: color-mix(in srgb, var(--lagoon) 22%, transparent); }
  .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
  .hero { flex-direction: column; text-align: center; gap: 8px; }
  .hero-pip svg { width: 140px; height: 140px; }
  .hero-talk .bigsearch { margin-inline: auto; }
  .try { justify-content: center; }
  .bigsearch input { font-size: 16px; }
  .bigsearch button { padding: 0 18px; }
  .portals { gap: 16px 4px; }
  .portal { width: calc(33.33% - 4px); }
  .portal-ring { width: 88px; height: 88px; }
  .portal-ring span { font-size: 38px; }
  .portal b { font-size: 1rem; }
  .rail-nav { display: none; }
  .game-hero, .game-body { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .sort { margin-left: 0; }
  .cat-hero { flex-direction: column; align-items: flex-start; }
  .filters { gap: 10px; }
}
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- player overlay ---------- */
.player { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #10163D; color: #EEF1FF; }
.player.opening { animation: open .38s cubic-bezier(.2, .8, .2, 1) both; }
.player.closing { animation: open .25s ease-in reverse both; }
@keyframes open { from { opacity: 0; transform: scale(.94) translateY(24px); border-radius: 30px; } }
.pl-bar { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 6px) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); background: #151C4B; flex: none; }
.pl-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; }
.pl-title b { font-family: var(--font-d); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-icon { font-family: var(--emoji); font-size: 1.3rem; }
.pl-tools { display: flex; gap: 6px; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pl-btn:hover { background: rgba(255, 255, 255, .18); }
.pl-close span { font-size: 1.5rem; line-height: 1; margin-top: -2px; }
.pl-fav { font-size: 1.25rem; padding: 0 12px; }
.pl-fav[aria-pressed="true"] { color: #FF8FA3; }
.pl-stage { position: relative; flex: 1; min-height: 0; }
.pl-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #10163D; }
.pl-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; font-weight: 600; transition: opacity .3s; }
.pl-loading .hogi { animation: hover 1.4s ease-in-out infinite; }
.pl-loading.done { opacity: 0; pointer-events: none; }
body.playing { overflow: hidden; }
@media (max-width: 520px) { .pl-about { display: none; } .pl-title b { font-size: 1rem; } }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); transform: translateX(-50%); background: var(--ink); color: var(--land); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 60; box-shadow: var(--shadow); animation: toast 2.4s ease both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* page swaps */
main.leaving { opacity: .35; transition: opacity .15s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }


/* ---------- accounts ---------- */
.login-btn { background: var(--ink) !important; color: var(--land) !important; }
.me-btn .me-e { font-family: var(--emoji); font-size: 1.3rem; }
.form-stage { display: grid; place-items: center; padding-bottom: 80px; }
.form-card { width: min(100%, 480px); background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); text-align: center; }
.form-card h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-top: 6px; }
.form-card .page-lead { margin: 8px auto 0; font-size: 1.02rem; }
.stack { display: grid; gap: 14px; text-align: left; margin-top: 18px; }
.stack label, .player-row label { display: grid; gap: 6px; font-weight: 600; }
.stack small { color: var(--ink-2); font-weight: 400; font-size: .85rem; }
.stack input:not([type=checkbox]):not([type=radio]), .player-row input:not([type=radio]) { font: inherit; font-size: 16px; color: var(--ink); background: var(--land); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stack input:focus, .player-row input:focus { outline: none; border-color: var(--lagoon); }
.stack .check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--lagoon-deep); flex: none; margin-top: 1px; }
.stack .btn-play { width: 100%; margin-top: 4px; }
.form-err, .form-ok { border-radius: 14px; padding: 10px 14px; margin: 14px 0 0; font-weight: 500; text-align: left; }
.form-err { background: #FFE6EB; color: #8A1F33; } .form-ok { background: #E1F5E7; color: #1F5E31; }
.form-alt { margin: 18px 0 0; font-size: .95rem; }
.form-note { margin: 10px 0 0; font-size: .85rem; color: var(--ink-2); }
.avatars { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.avatars legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.avatars label { position: relative; display: block; cursor: pointer; }
.avatars input { position: absolute; opacity: 0; inset: 0; }
.avatars span[aria-hidden] { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-family: var(--emoji); font-size: 1.6rem; background: var(--land); border: 3px solid transparent; transition: transform .15s; }
.avatars input:checked + span { border-color: var(--lagoon); background: color-mix(in srgb, var(--lagoon) 18%, var(--paper)); transform: scale(1.08); }
.avatars input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-wide { display: grid; gap: 18px; max-width: 720px; }
.panel-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.panel-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.panel-card h3 { font-size: 1.15rem; }
.player-row { border-bottom: 1px solid var(--line); padding: 8px 0; }
.player-row summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 6px 0; font-size: 1.1rem; }
.player-row summary .av { font-family: var(--emoji); font-size: 1.8rem; }
.player-row summary .edit { margin-left: auto; font-size: .9rem; color: var(--lagoon-deep); font-weight: 600; }
.player-row details[open] { display: grid; gap: 12px; padding-bottom: 10px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { color: #B42845; }
.add-player { border-top: 0; margin-top: 18px; }
.danger-zone { margin-top: 14px; } .danger-zone summary { cursor: pointer; color: #B42845; font-weight: 600; }

.join-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 22px; margin-top: 22px; max-width: 760px; }
.join-card > span { font-family: var(--emoji); font-size: 2rem; }
.join-card p { flex: 1 1 260px; margin: 0; }
.me-head { display: flex; align-items: center; gap: 18px; }
.me-av { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-family: var(--emoji); font-size: 54px; box-shadow: 0 0 0 8px var(--lagoon), var(--shadow); flex: none; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.who > span { font-weight: 600; margin-right: 4px; }
.who button { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-weight: 600; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--glass); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.who button span { font-family: var(--emoji); font-size: 1.3rem; }
.who button.on { background: var(--ink); color: var(--land); }
.me-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.me-stats li { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 18px; padding: 10px 16px; font-weight: 500; }
.me-stats b { font-family: var(--font-d); font-size: 1.5rem; margin-right: 4px; }
.prog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-bottom: 34px; }
.prog { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 10px; align-content: start; border-top: 6px solid var(--c); }
.prog header { display: flex; gap: 12px; align-items: center; }
.prog-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-family: var(--emoji); font-size: 26px; background: color-mix(in srgb, var(--c) 25%, var(--paper)); flex: none; }
.prog-t { flex: 1; min-width: 0; }
.prog-t h3 { font-size: 1.15rem; } .prog-t h3 a { color: var(--ink); text-decoration: none; }
.prog-t small { color: var(--ink-2); }
.state { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.s-completed { background: #DDF4E3; color: #1F5E31; } .s-in_progress { background: #FFF1CC; color: #6B4B00; } .s-started { background: #E4EEFB; color: #274B84; }
.bar { height: 12px; border-radius: 999px; background: var(--land); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--meadow), var(--lagoon)); border-radius: inherit; }
.bar-l { margin: -4px 0 0; font-size: .88rem; color: var(--ink-2); }
.parts summary { cursor: pointer; font-weight: 600; color: var(--lagoon-deep); }
.parts ol, .mine-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.parts li, .mine-list li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.parts em, .mine-list em { margin-left: auto; font-style: normal; color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C5D0DC; flex: none; }
.p-started .dot { border-color: #7EA6E0; } .p-in_progress .dot { border-color: var(--sun); background: conic-gradient(var(--sun) 50%, transparent 0); }
.p-completed .dot { border-color: var(--meadow); background: var(--meadow); }
.prog-go { justify-self: start; min-height: 42px; }
.acct-link { margin-bottom: 30px; } .tabs.light { display: flex; width: max-content; max-width: 100%; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 18px; }
.card-prog { position: absolute; right: 10px; bottom: 10px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #FFF1CC; color: #6B4B00; box-shadow: var(--shadow); }
.card-prog[data-state="completed"] { background: #DDF4E3; color: #1F5E31; } .card-prog[data-state="started"] { background: #E4EEFB; color: #274B84; }
.chapters { padding-left: 1.4em; display: grid; gap: 4px; } .chapters .is-quiz { font-weight: 600; }
.side { display: grid; gap: 16px; align-content: start; }
.side-card.mine h2 span { font-family: var(--emoji); }
.save-nudge p { margin: 0; }
@media (max-width: 760px) { .avatars { grid-template-columns: repeat(6, 1fr); gap: 4px; } .avatars span[aria-hidden] { font-size: 1.35rem; } .me-av { width: 72px; height: 72px; font-size: 40px; } }

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

.preview-bar { position: relative; z-index: 30; background: #26305E; color: #fff; text-align: center; padding: 10px 16px; font-weight: 500; }
.preview-bar a { color: #FFC24B; margin-left: 8px; font-weight: 700; }
body:not(.theme-sticker) .preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }

/* ---------- skills report (parents) ---------- */
.crumbs-mini { margin: 0 0 6px; font-weight: 600; }
.skills-report .who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skills-report .who a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--glass, #fff); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.skills-report .who a.on { background: var(--ink); color: #fff; }
.skill-totals { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skill-totals li { background: var(--paper, #fff); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); font-weight: 600; }
.skill-totals b { display: block; font-family: var(--font-d); font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.skill-totals .t-secure b { color: #1F7A3E; } .skill-totals .t-practising b { color: #0E6F7C; } .skill-totals .t-needs b { color: #B4541F; }
.skill-group { border-top: 6px solid var(--c); }
.skill-group h2 .e { font-family: var(--emoji); }
.sk-h { font-size: 1rem; margin: 18px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.sk-h.sk-needs { color: #B4541F; }
.sk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sk-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .03); }
.sk-list b { font-weight: 600; }
.sk-list small { display: block; margin-top: 3px; }
.sk-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 1px; }
.sk-secure .sk-dot { background: #1F7A3E; color: #fff; }
.sk-practising .sk-dot { background: #CDEEF2; border: 2px solid #0E6F7C; }
.sk-needs .sk-dot { background: #FFE3CC; border: 2px solid #B4541F; }
.sk-needs small:not(.muted) { color: #8A3E14; font-weight: 600; }
.empty-skills { text-align: center; }
.sk-how summary { cursor: pointer; font-weight: 600; }
.skills-cta .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .skill-totals { gap: 8px; } .skill-totals li { padding: 12px 10px; font-size: .82rem; line-height: 1.25; } .skill-totals b { font-size: 1.6rem; } }

/* ---------- school year + My games header buttons ---------- */
.year-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #E8F5F6; color: #0E5C67; font-size: .82rem; font-weight: 700; vertical-align: middle; }
.year-tag.muted { background: rgba(0, 0, 0, .05); color: var(--ink-2); font-weight: 600; }
.year-line { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.me-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.me-actions .btn { min-height: 44px; }
.player-row summary .year-tag { margin-left: 4px; }

/* ---------- dropdowns in forms (school year) ---------- */
.stack select, .player-row select {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 100%; max-width: 100%; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--ink); line-height: 25px;
  background-color: var(--land); border: 2px solid var(--line); border-radius: 14px; padding: 12px 44px 12px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2323314F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
}
.stack select:focus, .player-row select:focus { outline: none; border-color: var(--lagoon); }
.stack select:focus-visible, .player-row select:focus-visible { box-shadow: 0 0 0 3px rgba(63, 180, 198, .35); }
.stack select::-ms-expand, .player-row select::-ms-expand { display: none; }
.player-row small { color: var(--ink-2); font-weight: 400; font-size: .85rem; }
.player-row label { margin-top: 10px; }

/* ---------- Hogi: blink, and wave in the home hero ---------- */
.hogi { overflow: visible; }
.hogi .hogi-eyes { transform-box: fill-box; transform-origin: center; animation: hogi-blink 5.5s infinite; }
@keyframes hogi-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.12); } }
.hero-pip .hogi-arm, .hogi-wave-always .hogi-arm { transform-box: fill-box; transform-origin: 30% 95%; animation: hogi-wave 4s ease-in-out infinite; }
@keyframes hogi-wave { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-16deg); } 70% { transform: rotate(10deg); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(6deg); } }
.empty .hogi, .auth-hero .hogi { filter: drop-shadow(0 10px 12px rgba(38, 48, 94, .12)); }
@media (prefers-reduced-motion: reduce) { .hogi .hogi-eyes, .hogi .hogi-arm { animation: none; } }

/* ---------- Flip, the companion beside every game ---------- */
.flipc { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-family: 'Baloo 2', var(--font-d, inherit), system-ui, sans-serif; --face: 84px; --pop: 176px; --big: 300px; }
.flipc[hidden] { display: none; }
.flipc.is-tablet { --face: 76px; --pop: 160px; --big: 280px; }
.flipc.is-phone { --face: 56px; --pop: 124px; --big: 210px; }
.flipc.is-landscape { --face: 52px; --pop: 112px; --big: 180px; }
.flipc-dock { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: flex-end; gap: 8px; }
.flipc.is-phone .flipc-dock { right: 8px; bottom: 8px; }
.flipc-face { pointer-events: auto; position: relative; width: var(--face); height: var(--face); padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 50% 42%, #fff 0 58%, #DDEBFF 59%); box-shadow: 0 4px 12px rgba(43, 35, 64, .22), inset 0 0 0 3px #fff; display: grid; place-items: center; transition: transform .25s, opacity .25s; }
.flipc-face svg { width: 92%; height: 92%; }
.flipc-face:focus-visible { outline: 3px solid #3C8CE8; outline-offset: 3px; }
.flipc.is-hidden .flipc-face { transform: scale(.55) translate(32%, 32%); opacity: .7; }
.flipc.is-hidden .flipc-bubble, .flipc.is-hidden .flipc-pop { display: none; }
.flipc-bubble { order: -1; max-width: 240px; margin-bottom: calc(var(--face) * .55); padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #fff; color: #2B2340;
  font-weight: 700; font-size: 15px; line-height: 1.3; box-shadow: 0 6px 16px rgba(43, 35, 64, .18); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .2s, transform .2s; }
.flipc-bubble.is-shown { opacity: 1; transform: none; }
.flipc.is-phone .flipc-bubble { max-width: 170px; font-size: 13px; padding: 7px 10px; }
.flipc-pop { position: absolute; right: 0; bottom: 0; width: var(--pop); height: calc(var(--pop) * 1.03); display: none; }
.flipc-pop svg { width: 100%; height: 100%; overflow: visible; }
.flipc.is-popping .flipc-face { opacity: 0; transform: scale(.6); }
.flipc.is-popping .flipc-pop { display: block; }
.flipc.is-popping .flipc-bubble { margin-bottom: calc(var(--pop) * .82); }
.flipc-big { position: absolute; inset: 0; display: none; place-items: center; background: rgba(43, 35, 64, .22); }
.flipc.is-big .flipc-big { display: grid; }
.flipc.is-big .flipc-face { visibility: hidden; }
.flipc-who { position: relative; width: var(--big); height: calc(var(--big) * 1.03); }
.flipc-who svg { width: 100%; height: 100%; overflow: visible; }
.flipc-label { position: absolute; left: -40%; right: -40%; bottom: -14%; z-index: 2; text-align: center; color: #fff; font-weight: 800; font-size: 26px; text-shadow: 0 3px 0 #2B2340, 0 0 12px rgba(43, 35, 64, .5); }
.flipc.is-phone .flipc-label { font-size: 20px; }
.flipc-conf { position: absolute; inset: 0; overflow: hidden; }
.flipc-conf i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fa-fall 1.9s ease-in forwards; }
@keyframes fa-fall { to { transform: translateY(var(--fall, 700px)) rotate(var(--spin, 540deg)); opacity: .9; } }
.flipc-prop { position: absolute; z-index: 5; width: 34px; height: 34px; pointer-events: none; }
.flipc-prop svg { width: 100%; height: 100%; }
.flipc-burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.flipc-burst i { position: absolute; font-style: normal; font-weight: 800; font-size: 18px; animation: fa-spray .9s ease-out forwards; }
@keyframes fa-spray { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1); opacity: 0; } }
.fa-popin { animation: fa-popin .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fa-popin { from { transform: translateY(30%) scale(.5); opacity: 0; } }
.fa-bounce { animation: fa-bounce .7s ease; }
@keyframes fa-bounce { 30% { transform: translateY(-14%); } 55% { transform: none; } 75% { transform: translateY(-5%); } }
.fa-wobble { animation: fa-wobble .8s ease; transform-origin: 50% 90%; }
@keyframes fa-wobble { 20% { transform: rotate(-7deg); } 45% { transform: rotate(5deg); } 70% { transform: rotate(-3deg); } }
.fa-shrug { animation: fa-shrug .9s ease; }
@keyframes fa-shrug { 25% { transform: translateY(-6%) scaleX(1.04); } 50% { transform: none; } 75% { transform: translateY(-3%); } }
.fa-blast { animation: fa-blast .8s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes fa-blast { 0% { transform: scale(.7); } 50% { transform: scale(1.12); } }
.fa-whoa { animation: fa-whoa .6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes fa-whoa { 0% { transform: scale(.85); } 50% { transform: scale(1.15) rotate(-3deg); } }
.fa-giggle { animation: fa-giggle .7s ease 2; }
@keyframes fa-giggle { 25% { transform: rotate(6deg) translateY(-3%); } 75% { transform: rotate(-6deg) translateY(-3%); } }
.fa-hint { animation: fa-hint .7s ease; }
@keyframes fa-hint { 40% { transform: translateY(-5%) rotate(-3deg); } }
.fa-backflip { animation: fa-backflip 1.1s cubic-bezier(.4, 0, .3, 1); transform-origin: 50% 55%; }
@keyframes fa-backflip { 35% { transform: translateY(-28%) rotate(-180deg); } 70% { transform: translateY(-6%) rotate(-360deg); } 85% { transform: rotate(-360deg) scale(1.05, .95); } 100% { transform: rotate(-360deg); } }
.fa-fly { animation: fa-fly 2.2s cubic-bezier(.5, 0, .4, 1); }
@keyframes fa-fly { 0% { transform: translateX(-120%) translateY(10%) rotate(-8deg); } 40% { transform: translateX(-20%) translateY(-6%) rotate(-4deg); } 65% { transform: translateX(10%); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .flipc *, .flipc *::before, .flipc *::after { animation: none !important; transition: none !important; } }
.pl-loading .mascot { animation: hover 1.4s ease-in-out infinite; }

/* ---------- Showcase home page ---------- */
.sc-in { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); box-sizing: border-box; }
.sc-hero { position: relative; padding: 104px 0 0; background: linear-gradient(180deg, #CFEFFF 0%, #E9F7FF 70%, var(--land) 100%); }
.sc-hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: center; padding-bottom: 26px; }
.sc-copy h1 { margin: 0 0 12px; font-family: var(--font-d); font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; color: var(--ink); max-width: 15ch; }
.sc-sub { margin: 0 0 20px; font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.sc-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sc-cta { font-size: 1.05rem; padding-left: 26px; padding-right: 26px; }
.sc-try { font-weight: 700; color: var(--ink); }
.sc-hero-price { margin: 10px 0 18px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.sc-years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-years > span { width: 100%; font-weight: 700; font-size: .92rem; }
.sc-years a { display: flex; flex-direction: column; line-height: 1.15; padding: 8px 14px; border-radius: 14px; background: var(--paper); text-decoration: none; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.sc-years a b { font-size: .95rem; white-space: nowrap; } .sc-years a small { font-size: .74rem; color: var(--ink-2); }
.sc-years a:hover { box-shadow: 0 0 0 2px var(--lagoon); }
.sc-visual { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 290px; }
.sc-lesson { width: min(100%, 360px); background: var(--paper); border-radius: 24px; padding: 18px 18px 14px; box-shadow: 0 14px 30px rgba(38, 48, 94, .14); margin-right: 70px; }
.sc-lesson-q { margin: 0 0 4px; font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; }
.sc-lesson-cap { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.sc-ml { width: 100%; height: auto; display: block; }
.sc-flip { position: absolute; right: -6px; bottom: -6px; }
.sc-flip .mascot { width: 170px; height: 170px; }
/* the mini-lesson loop (7 s) */
.ml-dot { fill: #78B9FF; transform-box: fill-box; transform-origin: center; animation: ml-dot 7s infinite; animation-delay: calc(var(--d) * 40ms); }
@keyframes ml-dot { 0% { opacity: 0; transform: scale(.4); } 8%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ml-div { stroke: #26305E; stroke-width: 3; stroke-dasharray: 6 6; stroke-linecap: round; animation: ml-div 7s infinite; }
@keyframes ml-div { 0%, 18% { opacity: 0; } 24%, 90% { opacity: .55; } 100% { opacity: 0; } }
.ml-hl { fill: #FFD84D; opacity: 0; }
.ml-hl0 { animation: ml-hl0 7s infinite; } .ml-hl1 { animation: ml-hl1 7s infinite; } .ml-hl2 { animation: ml-hl2 7s infinite; }
@keyframes ml-hl0 { 0%, 32% { opacity: 0; } 35%, 90% { opacity: .75; } 100% { opacity: 0; } }
@keyframes ml-hl1 { 0%, 42% { opacity: 0; } 45%, 90% { opacity: .75; } 100% { opacity: 0; } }
@keyframes ml-hl2 { 0%, 52% { opacity: 0; } 55%, 90% { opacity: .75; } 100% { opacity: 0; } }
.ml-tap { fill: rgba(38, 48, 94, .18); stroke: #26305E; stroke-width: 3; opacity: 0; animation: ml-tap 7s infinite; }
@keyframes ml-tap { 0%, 26% { opacity: 0; transform: translate(45px, 90px); } 30% { opacity: 1; transform: translate(45px, 45px); } 34% { transform: translate(45px, 45px) scale(.8); } 40% { transform: translate(117px, 45px); } 44% { transform: translate(117px, 45px) scale(.8); } 50% { transform: translate(189px, 45px); } 54% { opacity: 1; transform: translate(189px, 45px) scale(.8); } 60%, 100% { opacity: 0; transform: translate(189px, 95px); } }
.ml-ans { font-family: var(--font-d); font-weight: 800; font-size: 22px; fill: #1F7A3E; opacity: 0; animation: ml-ans 7s infinite; }
@keyframes ml-ans { 0%, 60% { opacity: 0; } 64%, 90% { opacity: 1; } 100% { opacity: 0; } }
.sc-proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 auto; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.sc-proof b { color: var(--ink); }
.sc-proof li { display: flex; align-items: center; gap: 8px; }
.sc-proof li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lagoon); }

.sc-body { display: flex; flex-direction: column; gap: 64px; padding: 54px 0 70px; background: var(--land); }
.sc-body h2 { margin: 0 0 8px; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; color: var(--ink); }
.sc-lead { margin: 0 0 22px; color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.sc-how ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.sc-how li { background: var(--paper); border-radius: 24px; padding: 18px 20px 20px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-how li .mascot { display: block; margin: 0 0 6px; }
.sc-how li b { display: block; font-family: var(--font-d); font-size: 1.22rem; margin-bottom: 4px; counter-increment: step; }
.sc-how li b::before { content: counter(step) ". "; color: var(--lagoon-deep); }
.sc-how li p { margin: 0; color: var(--ink-2); }
.sc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sc-cols h3 { margin: 0 0 10px; font-family: var(--font-d); font-size: 1.25rem; }
.sc-problems figure { margin: 0 0 12px; background: var(--paper); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-problems blockquote { margin: 0 0 8px; font-family: var(--font-d); font-weight: 600; font-size: 1.08rem; line-height: 1.35; color: var(--ink); }
.sc-problems figcaption { color: var(--ink-2); padding-left: 14px; border-left: 4px solid var(--meadow); }
.sc-life ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sc-life a { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 18px; border-radius: 20px; background: var(--paper); text-decoration: none; color: var(--ink); box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-life a:hover { box-shadow: 0 0 0 2px var(--lagoon); }
.sc-life .e { font-size: 1.8rem; font-family: var(--emoji, inherit); }
.sc-life b { font-family: var(--font-d); font-size: 1.12rem; }
.sc-life small { color: var(--ink-2); font-size: .92rem; }
.sc-research { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
.sc-research p { margin: 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.sc-research ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-research li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 16px; background: var(--paper); border-left: 6px solid var(--sun); }
.sc-research li span { color: var(--ink-2); font-size: .94rem; }
.sc-browse .portals { margin-top: 8px; }
.sc-rails { padding-top: 0 !important; padding-bottom: 0 !important; margin: -30px 0 -20px; min-height: 0; }
.sc-pricing { display: flex; flex-direction: column; align-items: center; }
.sc-price-card { width: min(100%, 520px); background: var(--paper); border-radius: 28px; padding: 30px 30px 24px; text-align: center; box-shadow: 0 16px 40px rgba(38, 48, 94, .14); border: 3px solid var(--sun); }
.sc-trial { margin: 6px 0 0; font-weight: 700; color: var(--ink-2); }
.sc-price { margin: 4px 0 2px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.sc-price b { font-family: var(--font-d); font-size: 3.2rem; line-height: 1; color: var(--ink); }
.sc-price > span:last-child { font-weight: 700; color: var(--ink-2); }
.sc-was { color: var(--ink-2); font-size: 1.3rem; font-weight: 700; }
.sc-was sup { font-size: .8rem; margin-left: 1px; }
.sc-intro-tag { display: inline-block; margin: 6px 0 14px; padding: 3px 12px; border-radius: 999px; background: #E1F4E6; color: #1F5E31; font-size: .86rem; font-weight: 700; }
.sc-price-card ul { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: grid; gap: 8px; }
.sc-price-card li { position: relative; padding-left: 28px; }
.sc-price-card li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--meadow); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.sc-fine { margin: 10px 0 0; font-size: .84rem; color: var(--ink-2); }
.sc-footnote { margin: 14px 0 0; max-width: 62ch; text-align: center; font-size: .82rem; color: var(--ink-2); }
.sc-faq details { background: var(--paper); border-radius: 16px; padding: 0 18px; margin-bottom: 8px; box-shadow: 0 2px 0 var(--line); }
.sc-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: outside; }
.sc-faq details p { margin: 0 0 14px; color: var(--ink-2); }
.sc-final { display: flex; align-items: center; gap: 20px; background: var(--paper); border-radius: 28px; padding: 26px 30px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-final p { margin: 0 0 14px; color: var(--ink-2); }
@media (max-width: 900px) {
  .sc-hero-in { grid-template-columns: 1fr; gap: 18px; }
  .sc-visual { min-height: 0; }
  .sc-lesson { margin-right: 96px; }
  .sc-flip .mascot { width: 130px; height: 130px; }
  .sc-how ol, .sc-cols, .sc-research { grid-template-columns: 1fr; }
  .sc-life ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sc-hero { padding-top: 84px; }
  .sc-sub { font-size: 1rem; }
  .sc-years a b { font-size: .88rem; }
  .sc-years > span { width: 100%; }
  .sc-years a { flex: 1 1 calc(50% - 8px); }
  .sc-lesson { margin-right: 74px; padding: 14px; }
  .sc-flip .mascot { width: 108px; height: 108px; }
  .sc-life ul { grid-template-columns: 1fr; }
  .sc-final { flex-direction: column; text-align: center; }
  .sc-final .sc-ctas { justify-content: center; }
  .sc-proof { justify-content: flex-start; gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-dot, .ml-div, .ml-hl, .ml-ans { animation: none !important; opacity: 1; }
  .ml-hl3 { opacity: 0 !important; } .ml-hl0, .ml-hl1, .ml-hl2 { opacity: .75; } .ml-tap { display: none; }
}

/* showcase hero picture: two scenes (mini lesson, games deck) */
.sc-visual { flex-direction: column; align-items: center; justify-content: center; }
.sc-stage { position: relative; width: min(100%, 380px); height: 300px; margin-right: 80px; }
.sc-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s, transform .45s, visibility 0s .45s; }
.sc-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s, visibility 0s; }
.sc-scene .sc-lesson { margin-right: 0; width: 100%; }
.sc-subject { position: absolute; inset: 0; visibility: hidden; transition: visibility 0s .5s; }
.sc-subject.is-on { visibility: visible; transition: visibility 0s; }
.sc-chip { position: absolute; left: 6px; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(38, 48, 94, .14), inset 0 0 0 3px var(--c); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }
.sc-chip span { font-family: var(--emoji, inherit); }
.sc-subject.is-on .sc-chip { opacity: 1; transform: none; transition-delay: .1s; }
.sc-cards { position: absolute; inset: 44px 0 0 0; }
.sc-card { position: absolute; width: 62%; padding: 7px 7px 9px; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 12px 26px rgba(38, 48, 94, .18); opacity: 0; transition: opacity .45s, transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.sc-card0 { left: 0; top: 6px; transform: translateX(60px) rotate(12deg); }
.sc-card1 { right: 0; top: 46px; transform: translateX(80px) rotate(18deg); }
.sc-subject.is-on .sc-card0 { opacity: 1; transform: rotate(-6deg); transition-delay: .05s; }
.sc-subject.is-on .sc-card1 { opacity: 1; transform: rotate(5deg); transition-delay: .18s; }
.sc-subject.is-out .sc-card0 { opacity: 0; transform: translateX(-70px) rotate(-16deg); transition-delay: 0s; }
.sc-subject.is-out .sc-card1 { opacity: 0; transform: translateX(-60px) rotate(-10deg); transition-delay: .05s; }
.sc-subject.is-out .sc-chip { opacity: 0; transition-delay: 0s; }
.sc-card:hover, .sc-card:focus-visible { z-index: 2; }
.sc-subject.is-on .sc-card:hover { transform: rotate(0) scale(1.04); }
.sc-cover { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #E9F2FF; }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cover-fb { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.6rem; font-family: var(--emoji, inherit); background: radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%), color-mix(in srgb, var(--c) 35%, #fff); }
.sc-card b { display: block; margin-top: 6px; padding: 0 4px; font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-flip { right: -6px; bottom: 36px; }
.sc-flip [data-look] { display: none; }
.sc-flip [data-look].is-on { display: block; animation: fa-popin .5s cubic-bezier(.3, 1.6, .5, 1); }
.sc-switch { display: flex; align-items: center; gap: 6px; margin-top: 10px; margin-right: 80px; }
.sc-switch button { border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, .7); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.sc-switch button[aria-pressed="true"]:not(.sc-pause) { background: var(--ink); color: #fff; }
.sc-switch .sc-pause { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; font-size: .72rem; }
.sc-switch button:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
/* reduced motion: "Our games" is a still grid of one cover per subject */
.sc-scene-games.is-static { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: center; }
.sc-scene-games.is-static .sc-subject { position: relative; inset: auto; visibility: inherit; }
.sc-scene-games.is-static .sc-chip { position: static; opacity: 1; transform: none; font-size: .72rem; padding: 3px 8px; margin-bottom: 4px; }
.sc-scene-games.is-static .sc-cards { position: static; }
.sc-scene-games.is-static .sc-card { position: static; width: 100%; opacity: 1; transform: none; padding: 4px; }
.sc-scene-games.is-static .sc-card1, .sc-scene-games.is-static .sc-card b { display: none; }
@media (max-width: 900px) {
  .sc-stage { margin-right: 96px; height: 270px; }
  .sc-switch { margin-right: 96px; }
}
@media (max-width: 560px) {
  .sc-stage { margin-right: 70px; height: 236px; }
  .sc-switch { margin-right: 70px; }
  .sc-card b { font-size: .76rem; }
  .sc-flip { bottom: 40px; }
}
/* hero picture sizing: Flip beside the deck, not over it */
.sc-stage, .sc-switch { margin-right: 124px; }
.sc-flip { z-index: 4; right: -4px; }
.sc-flip .mascot { width: 140px; height: 140px; }
.sc-cards { inset: 44px 6px 0 6px; }
.sc-scene-games.is-static .sc-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; box-sizing: border-box; font-size: .68rem; }
@media (max-width: 900px) { .sc-stage, .sc-switch { margin-right: 112px; } .sc-flip .mascot { width: 120px; height: 120px; } }
@media (max-width: 560px) { .sc-stage, .sc-switch { margin-right: 84px; } .sc-flip .mascot { width: 92px; height: 92px; } .sc-flip { bottom: 44px; } .sc-chip { font-size: .85rem; padding: 5px 11px; } }
.sc-stage { width: min(380px, calc(100% - 124px)); }
@media (max-width: 900px) { .sc-stage { width: min(380px, calc(100% - 112px)); } }
@media (max-width: 560px) { .sc-stage { width: calc(100% - 84px); } .sc-card { width: 66%; } }
@media (max-width: 560px) { .sc-switch { margin-right: 0; align-self: stretch; justify-content: flex-start; } .sc-switch button { font-size: .8rem; padding: 6px 10px; white-space: nowrap; } }

/* members-only panel in the game player */
.pl-locked { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; background: linear-gradient(#E9F4FF, #FFF7E8); color: var(--ink); }
.pl-locked[hidden] { display: none; }
.pl-locked h2 { margin: 6px 0 0; font-family: var(--font-d); font-size: clamp(1.3rem, 3vw, 1.9rem); max-width: 26ch; }
.pl-locked p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.pl-locked-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin-top: 12px; }
.pl-locked-alt { font-weight: 700; color: var(--ink); }
.card-members { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #2B2340; color: #FFD84D; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }

/* membership page */
.mem .panel-card { margin-bottom: 18px; }
.mem-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.mem-plan { border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mem-plan:first-child { border-color: var(--sun); }
.mem-plan h3 { margin: 0; font-family: var(--font-d); }
.mem-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.mem-price b { font-family: var(--font-d); font-size: 2rem; }
.mem-price s { color: var(--ink-2); font-weight: 700; }
.mem-tag { margin: 0 0 6px; color: #1F5E31; font-weight: 700; }
.mem-gets { margin: 0 0 12px; padding-left: 20px; }
/* showcase pricing: free plan and member */
.sc-pricing h2 { text-align: center; margin-bottom: 18px; }
.sc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(100%, 860px); align-items: stretch; }
.sc-plans .sc-price-card { width: auto; display: flex; flex-direction: column; text-align: left; position: relative; }
.sc-plans .sc-price-card h3 { margin: 0; font-family: var(--font-d); font-size: 1.4rem; }
.sc-plans .sc-price { justify-content: flex-start; }
.sc-plans .sc-price-card ul { flex: 1; }
.sc-plans .sc-cta { align-self: stretch; text-align: center; }
.sc-free { border-color: var(--line); box-shadow: 0 8px 22px rgba(38, 48, 94, .08); }
.sc-badge { position: absolute; top: -13px; right: 18px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--ink); color: #FFD84D; font-size: .78rem; font-weight: 800; }
@media (max-width: 760px) { .sc-plans { grid-template-columns: 1fr; } }
.sc-plans .sc-price-card ul { align-content: start; }
.sc-free .sc-cta { display: block; text-align: center; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); font-weight: 800; text-decoration: none; }
.sc-free .sc-cta:hover { background: #F3F7FF; }

.pl-locked-back { display: none; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.pl-locked.is-preview .pl-locked-back { display: inline; }
.pl-locked.is-preview .pl-locked-free { display: none; }

/* Skills report: free-plan summary */
.sk-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.sk-plan p { margin: 0; max-width: 60ch; }
.sk-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: .95rem; color: var(--ink-2); }
.sk-locked { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; }
.sk-blur { filter: blur(5px); opacity: .55; padding: 6px 4px; user-select: none; pointer-events: none; }
.sk-blur p { margin: 4px 0; letter-spacing: .5px; color: var(--ink); }
.sk-blur .sk-mix { color: #B4532A; }
.sk-locked-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; background: rgba(255, 255, 255, .55); }
.sk-locked-note p { margin: 0; max-width: 40ch; }
.sk-locked-note p { background: var(--paper); padding: 8px 14px; border-radius: 14px; box-shadow: 0 4px 14px rgba(38, 48, 94, .12); }

/* Branding in the player: site name beside the Back button, and a slim strip in full screen (Settings › Branding) */
.pl-brand { display: inline-flex; align-items: center; gap: 7px; padding-right: 10px; margin-right: 2px; border-right: 1px solid rgba(255, 255, 255, .22); flex: none; }
.pl-brand img { width: 30px; height: 30px; border-radius: 9px; display: block; }
.pl-brand b { font-family: var(--font-d); font-size: 1.05rem; white-space: nowrap; }
.theme-sticker .pl-brand, .theme-studio .pl-brand { border-right-color: rgba(0, 0, 0, .15); }
@media (max-width: 640px) { .pl-brand b { display: none; } .pl-brand { padding-right: 6px; } }
.pl-strip { display: none; }
.pl-stage:fullscreen .pl-strip, .pl-stage:-webkit-full-screen .pl-strip { display: flex; position: absolute; left: 0; right: 0; top: 0; height: 32px; z-index: 3; align-items: center; gap: 12px; padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); background: #161B47; color: #fff; font-size: .85rem; }
.pl-stage:fullscreen iframe, .pl-stage:-webkit-full-screen iframe { top: 32px; height: calc(100% - 32px); }
.pl-strip-brand { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pl-strip-brand img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.pl-strip-brand b { font-family: var(--font-d); font-size: .95rem; }
.pl-strip-title { flex: 1; min-width: 0; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-strip-exit { flex: none; border: 0; border-radius: 999px; padding: 4px 12px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pl-strip-exit:hover { background: rgba(255, 255, 255, .24); }

/* School-year picks: "Which year are you in?" chips, the year filter, coverage on the skills report */
.year-ask { background: var(--paper); border-radius: var(--r-lg, 22px); box-shadow: var(--shadow); padding: 18px 22px; margin: 0 0 28px; }
.year-ask h2 { margin: 0 0 4px; font-size: 1.25rem; }
.year-ask p { margin: 0 0 12px; color: var(--ink-2); }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.year-chips .chip { font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border: 0; }
.year-chips .chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.year-chips .chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.year-change { margin: -14px 0 28px; }
.year-change summary { cursor: pointer; color: var(--ink-2); font-size: .92rem; font-weight: 600; display: inline-block; padding: 6px 0; }
.year-change[open] summary { margin-bottom: 10px; }
.year-pick { display: flex; align-items: center; gap: 8px; margin: 0; }
.year-pick label { font-weight: 600; font-size: .95rem; }
.year-pick select { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 500; }
.year-note { flex-basis: 100%; margin: -4px 0 0; font-size: .92rem; color: var(--ink-2); }
.land > .year-pick { margin-bottom: 18px; }
.year-cover { margin-bottom: 18px; }
.year-cover h2 { margin: 0 0 4px; font-size: 1.15rem; }
.year-cover ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.year-cover li { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 12px; }
.year-cover li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cov-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cov-bar i { display: block; height: 100%; background: #2BA36B; border-radius: inherit; min-width: 4px; }
.year-cover b { font-size: .9rem; white-space: nowrap; }
@media (max-width: 560px) {
  .year-cover li { grid-template-columns: 1fr auto; }
  .year-cover .cov-bar { grid-column: 1 / -1; grid-row: 2; }
  .year-ask { padding: 16px; }
  .year-chips .chip { min-height: 38px; padding: 0 13px; }
}
.year-cover p { margin: 0; color: var(--ink-2); }

/* "How it works" lesson cards set the hero picture's height; the games deck plays in the same box */
.sc-stage.has-lessons { height: auto; min-height: 280px; }
.sc-stage.has-lessons > .sc-scene-lesson { position: relative; inset: auto; }
.sc-scene-lesson .lz { margin: 0; }
@media (max-width: 560px) { .sc-stage.has-lessons { min-height: 0; } }
/* showcase hero in dark mode (its sky was always light) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sc-hero { background: linear-gradient(180deg, var(--sky1, #0E1338) 0%, var(--sky2, #2C3574) 70%, var(--land) 100%); } }
:root[data-theme="dark"] .sc-hero { background: linear-gradient(180deg, #0E1338 0%, #2C3574 70%, #1A2052 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sc-switch button { background: rgba(255, 255, 255, .12); } :root:not([data-theme="light"]) .sc-switch button[aria-pressed="true"]:not(.sc-pause) { background: var(--ink); color: #1A2052; } }
:root[data-theme="dark"] .sc-switch button { background: rgba(255, 255, 255, .12); } :root[data-theme="dark"] .sc-switch button[aria-pressed="true"]:not(.sc-pause) { background: #EEF1FF; color: #1A2052; }
.sc-life .sc-life-soon { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 18px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }

/* chapter by chapter on a game's page */
.chapters-rich { gap: 14px; padding-left: 1.6em; }
.chapters-rich li::marker { font-family: var(--font-d); font-weight: 800; color: var(--lagoon-deep); }
.chapters-rich b { font-family: var(--font-d); font-size: 1.05rem; }
.chapters-rich p { margin: 3px 0 0; color: var(--ink-2); line-height: 1.45; }
.chapters-rich .ch-cur { font-size: .86rem; margin-top: 5px; }
.chapters-rich .ch-cur span { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c, #3FB4C6) 16%, transparent); color: var(--ink); font-weight: 700; font-size: .78rem; }
.ch-free { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #E3F6E8; color: #1F5E31; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.ch-stmts { margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--c, #3FB4C6) 8%, transparent); font-size: .9rem; color: var(--ink-2); }
.ch-stmts p { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.ch-stmts ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.ch-stmts b { color: var(--ink); }

/* ---------- Showcase: honest pricing, mission, report, promises (v41) ---------- */
.sc-quick { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset, 0 3px 0 var(--line); }
.sc-quick:hover { background: #FFF7D6; }
.sc-quick-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--meadow, #3DBE6B); color: #fff; font-size: .7rem; padding-left: 2px; box-sizing: border-box; }
.sc-years .is-soon { display: flex; flex-direction: column; line-height: 1.15; padding: 8px 14px; border-radius: 14px; border: 2px dashed var(--line); color: var(--ink-2); }
.sc-years .is-soon b { font-size: .95rem; white-space: nowrap; } .sc-years .is-soon small { font-size: .74rem; }
@media (max-width: 560px) {
  .sc-years a, .sc-years .is-soon { flex: 1 1 calc(33.333% - 8px); padding: 7px 10px; }
  .sc-years .is-soon b { font-size: .88rem; }
  .sc-ctas .sc-cta, .sc-ctas .sc-quick { flex: 1 1 100%; justify-content: center; text-align: center; }
}

.sc-mission { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sc-body .sc-kicker { margin: 0 0 10px; font-family: inherit; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lagoon-deep, #0E6F7C); }
.sc-mission-line { margin: 0 0 28px; max-width: 30ch; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.sc-promises { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.sc-promise { background: var(--paper); border-radius: 24px; padding: 22px 22px 20px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-promise b { display: block; font-family: var(--font-d); font-size: 1.22rem; margin: 12px 0 6px; color: var(--ink); }
.sc-promise p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.sc-promise-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.sc-promise-i svg { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.sc-promise-i svg path[fill="none"] { fill: none; stroke-width: 3; }
.sc-promise-0 .sc-promise-i { background: #DFF3FF; color: #1F6FB2; }
.sc-promise-1 .sc-promise-i { background: #E1F4E6; color: #1F7A3E; }
.sc-promise-2 .sc-promise-i { background: #FFEBD9; color: #B4541F; }

.sc-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc-quotes figure { margin: 0; display: flex; flex-direction: column; }

.sc-report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.sc-report-copy p { margin: 0 0 14px; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; }
.sc-ticks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.sc-ticks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.sc-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--meadow, #3DBE6B); color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; }
.sc-body .sc-report-note { font-size: .9rem; margin: 0; }
.sc-report-card { position: relative; margin: 0; background: var(--paper); border-radius: 26px; padding: 22px 22px 18px; box-shadow: 0 18px 44px rgba(38, 48, 94, .16); border-top: 8px solid #3FB4C6; transform: rotate(.6deg); }
.sc-report-tag { position: absolute; top: 14px; right: 16px; padding: 3px 10px; border-radius: 999px; background: #FFF1B8; color: #6B4E00; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sc-report-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sc-report-head b { display: block; font-family: var(--font-d); font-size: 1.3rem; }
.sc-report-head small { color: var(--ink-2); font-weight: 600; }
.sc-report-av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #FFEBD9; font-size: 1.5rem; font-family: var(--emoji, inherit); }
.sc-report-totals { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-report-totals li { border-radius: 14px; padding: 8px 10px; background: rgba(0, 0, 0, .035); font-size: .82rem; font-weight: 600; line-height: 1.2; }
.sc-report-totals b { display: block; font-family: var(--font-d); font-size: 1.5rem; line-height: 1; }
.sc-report-totals .t-secure b { color: #1F7A3E; } .sc-report-totals .t-practising b { color: #0E6F7C; } .sc-report-totals .t-needs b { color: #B4541F; }
.sc-report-group h3 { margin: 4px 0 0; font-family: var(--font-d); font-size: 1.1rem; }
.sc-report-group .sk-h { font-size: .74rem; margin: 12px 0 6px; }
.sc-report-group .sk-list { gap: 6px; }
.sc-report-group .sk-list li { padding: 9px 12px; font-size: .93rem; }
.sc-report-group .sk-dot { width: 20px; height: 20px; }

.sc-more { margin: 14px 0 0 !important; font-weight: 700; }
.sc-more a { color: var(--lagoon-deep, #0E6F7C); }
.sc-safe { text-align: left; }
.sc-safe ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sc-safe li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; padding: 16px 18px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-safe .e { grid-row: span 2; font-size: 1.6rem; line-height: 1; font-family: var(--emoji, inherit); }
.sc-safe b { font-family: var(--font-d); font-size: 1.08rem; color: var(--ink); }
.sc-safe small { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }

.sc-plan-what { margin: 0 0 18px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.sc-pricing .sc-lead { text-align: center; margin-bottom: 18px; }
.sc-compare-wrap { width: min(100%, 860px); margin-top: 22px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); overflow: hidden; }
.sc-compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
.sc-compare caption { padding: 18px 20px 6px; text-align: left; font-family: var(--font-d); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.sc-compare th, .sc-compare td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.sc-compare thead th { border-top: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.sc-compare tbody th { font-weight: 600; color: var(--ink); }
.sc-compare td { color: var(--ink-2); width: 30%; }
.sc-compare td:last-child { background: rgba(255, 206, 84, .12); color: var(--ink); font-weight: 600; }
.sc-compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--meadow, #3DBE6B); color: #fff; font-size: .8rem; font-weight: 800; }
.sc-compare .no { color: var(--ink-2); font-weight: 800; }
.sc-guarantees { list-style: none; margin: 18px 0 0; padding: 0; width: min(100%, 860px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-guarantees li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; background: #E1F4E6; color: #1F4D2C; }
.sc-guarantees .e { font-size: 1.4rem; font-family: var(--emoji, inherit); }
.sc-guarantees b { font-family: var(--font-d); font-size: 1.06rem; color: #173F23; }
.sc-guarantees small { font-size: .9rem; line-height: 1.45; }
@media (max-width: 900px) {
  .sc-promises, .sc-quotes, .sc-safe ul, .sc-guarantees { grid-template-columns: 1fr; }
  .sc-report { grid-template-columns: 1fr; gap: 22px; }
  .sc-report-card { transform: none; }
  .sc-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-safe ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sc-quotes, .sc-safe ul { grid-template-columns: 1fr; }
  .sc-compare { font-size: .86rem; }
  .sc-compare th, .sc-compare td { padding: 9px 10px; }
  .sc-compare caption { padding: 14px 12px 4px; }
  .sc-report-card { padding: 18px 14px 14px; }
}
.page-mission { font-family: var(--font-d); font-size: 1.3rem; line-height: 1.4; color: var(--ink); padding: 14px 18px; border-radius: 16px; background: #FFF7D6; border-left: 6px solid var(--sun, #FFCE54); }
.page-lead-p { font-size: 1.12rem; color: var(--ink); }
/* members panel: children see "ask a grown-up"; prices only after the grown-up check */
.pl-locked .pl-kid, .pl-locked .pl-gate, .pl-locked .pl-grown { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 520px; overflow-y: auto; max-height: 100%; }
.pl-locked .pl-kid[hidden], .pl-locked .pl-gate[hidden], .pl-locked .pl-grown[hidden] { display: none; }
.pl-gate, .pl-grown { background: var(--paper, #fff); border-radius: 22px; padding: 22px 24px; box-shadow: 0 12px 30px rgba(38, 48, 94, .14); box-sizing: border-box; }
.pl-gate-q { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.pl-gate-q input { width: 9ch; text-align: center; font: inherit; font-size: 1.4rem; padding: 8px 10px; border-radius: 12px; border: 2px solid var(--line); }
.pl-gate-q input:focus { outline: none; border-color: var(--lagoon, #3FB4C6); box-shadow: 0 0 0 3px rgba(63, 180, 198, .25); }
.pl-locked .pl-gate-err { color: #A23B12; font-weight: 600; }
.pl-gate .pl-locked-alt { display: inline; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; }
.pl-grown p b { color: var(--ink); }
.pl-grown-promises { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.pl-grown-promises li { position: relative; padding-left: 26px; font-size: .94rem; font-weight: 600; color: var(--ink); }
.pl-grown-promises li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--meadow, #3DBE6B); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.mem-guarantees { width: 100%; margin: 6px 0 14px; }
.mem-guarantees li { padding: 12px 14px; }
.mem-refund { margin-top: 10px; }
.sc-price > span:last-child { white-space: nowrap; }
.sk-offer { margin-bottom: 18px; border-left: 6px solid var(--sun, #FFCE54); }
.sk-offer h2 { margin-top: 0; }
.sk-offer ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.sk-offer p { margin: 0 0 14px; color: var(--ink-2); }

/* ---------- Pricing (shared by the home page and /pricing) ---------- */
.pricing-in { width: 100%; display: flex; flex-direction: column; align-items: center; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 2px var(--line) inset; }
.bill-toggle button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.bill-toggle button small { font-weight: 800; font-size: .74rem; color: #1F7A3E; background: #E1F4E6; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bill-toggle button[aria-pressed="true"] small { background: #FFCE54; color: var(--ink); }
.pricing-in[data-bill-show="month"] .bill-year, .pricing-in[data-bill-show="year"] .bill-month { display: none; }
.pricing-page { display: flex; flex-direction: column; gap: 44px; }
.pricing-page .sc-pricing { padding-top: 6px; }
.pricing-why h2, .pricing-faq h2 { font-family: var(--font-d); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
.pricing-why .sc-promise b { margin-top: 0; }
.pricing-note { margin: 16px 0 0; color: var(--ink-2); }
.pricing-faq { max-width: 820px; }
.pricing-page > * { width: 100%; box-sizing: border-box; }
.pricing-page > .pricing-faq { max-width: 820px; }
.pricing-page > .pricing-why { max-width: 1120px; }
.pricing-in, .sc-compare-wrap, .sc-plans, .sc-guarantees { min-width: 0; max-width: 100%; }
.sc-compare { table-layout: fixed; }
.sc-compare thead th:first-child { width: 40%; }
.sc-compare th, .sc-compare td { overflow-wrap: anywhere; }
@media (max-width: 560px) { .sc-compare thead th:first-child { width: 38%; } }
.sc-plans .sc-price-card { box-sizing: border-box; min-width: 0; } @media (max-width: 560px) { .sc-plans .sc-price-card { padding: 24px 20px 20px; } }
@media (max-width: 560px) { .sc-price { flex-wrap: wrap; gap: 4px 8px; } .sc-price b { font-size: 2.5rem; } .sc-was { font-size: 1.1rem; } }

/* ---------- Simple screens for young children (html.simple) ---------- */
.simple .topbar .search, .simple .st-search, .simple .tabbar [data-nav="search"], .simple .filters, .simple .year-change { display: none !important; }
.kid-hub { padding-bottom: 10px; }
.kid-hi { display: flex; align-items: center; gap: 14px; }
.kid-hi .me-av { font-size: 3rem; line-height: 1; font-family: var(--emoji, inherit); }
.kid-hi h1 { margin: 0; line-height: 1.05; }
.kid-hi h1 small { display: block; font-size: .5em; margin-top: 6px; color: var(--ink-2); }
.say-btn { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper, #fff); box-shadow: 0 3px 0 rgba(0, 0, 0, .12); font-size: 1.4rem; cursor: pointer; font-family: var(--emoji, inherit); }
.say-btn:active, .say-btn.is-saying { transform: scale(.94); background: #FFF1B8; }
.kid-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.kid-tile { position: relative; }
.kid-tile > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 230px; height: 100%; box-sizing: border-box; padding: 20px 16px 22px; border-radius: 30px; text-align: center;
  background: var(--paper, #fff); color: var(--ink); text-decoration: none; border: 5px solid var(--c); box-shadow: 0 8px 0 var(--c), 0 14px 26px rgba(38, 48, 94, .14); }
.kt-txt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kid-tile > a:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--c); }
.kid-tile b { font-family: var(--font-d); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.05; }
.kid-tile small { font-size: 1rem; font-weight: 600; color: var(--ink-2); max-width: 22ch; }
.kt-art { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 26px; overflow: hidden; background: #F4F6FB; }
.kt-art img { width: 100%; height: 100%; object-fit: cover; }
.kt-emoji { font-size: 4rem; line-height: 1; font-family: var(--emoji, inherit); }
.kid-tile .say-btn { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; font-size: 1.2rem; }
.kid-who { margin-top: 22px; }
.kid-grown { margin: 18px 0 0; font-size: .9rem; color: var(--ink-2); }
.kid-grown a { color: var(--ink-2); }
@media (max-width: 720px) {
  .kid-tiles { grid-template-columns: 1fr; gap: 14px; }
  .kid-tile > a { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 14px 64px 14px 14px; gap: 14px; }
  .kid-tile > a b, .kid-tile > a small { display: block; }
  .kid-tile > a .kt-txt { align-items: flex-start; }
  .kt-art { width: 84px; height: 84px; flex: none; border-radius: 20px; } .kt-emoji { font-size: 3rem; }
  .kid-tile .say-btn { top: 50%; transform: translateY(-50%); }
}
.simple .card-title { font-size: 1.12rem; }
.simple .prog-go { font-size: 1.1rem; padding: 12px 24px; }

/* grown-up check (dialog) and the "save your progress" card */
.gate-dlg { border: 0; border-radius: 24px; padding: 24px; width: min(92vw, 420px); box-shadow: 0 24px 60px rgba(20, 24, 60, .35); text-align: center; color: var(--ink); }
.gate-dlg::backdrop { background: rgba(20, 24, 60, .45); }
.gate-dlg h2 { margin: 0 0 6px; font-family: var(--font-d); }
.gate-dlg p { margin: 0 0 8px; color: var(--ink-2); }
.save-card { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 4; width: min(92%, 520px); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-radius: 20px;
  background: var(--paper, #fff); color: var(--ink); box-shadow: 0 14px 36px rgba(20, 24, 60, .28); animation: save-in .35s ease-out; }
.save-card p { margin: 0; flex: 1 1 220px; font-size: .95rem; }
.save-card p b { display: block; font-family: var(--font-d); font-size: 1.1rem; }
.save-card .btn { padding: 9px 18px; }
.save-card button.save-later { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; text-decoration: underline; }
@keyframes save-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (prefers-reduced-motion: reduce) { .save-card { animation: none; } }
.join-years { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.join-years legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.join-years small { color: var(--ink-2); }
.yr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yr-chip { position: relative; cursor: pointer; }
.yr-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yr-chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--paper, #fff); box-shadow: 0 0 0 2px var(--line) inset; font-weight: 700; font-size: .92rem; color: var(--ink); }
.yr-chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.yr-chip input:focus-visible + span { outline: 3px solid var(--lagoon, #3FB4C6); outline-offset: 2px; }
.join-carry { margin: 10px auto 0; max-width: 46ch; padding: 10px 14px; border-radius: 14px; background: #E1F4E6; color: #1F4D2C; font-weight: 600; font-size: .95rem; }
.gate-dlg .pl-gate { box-shadow: none; padding: 0; background: none; max-width: none; }

/* ---------- Accessibility settings (html.a11y-*) ---------- */
html.a11y-large { font-size: 118%; }
html.a11y-contrast { --ink-2: var(--ink); --line: #4A5378; }
html.a11y-contrast a { text-decoration-thickness: 2px; }
html.a11y-contrast .btn, html.a11y-contrast .chip, html.a11y-contrast .card, html.a11y-contrast .panel-card { outline: 2px solid var(--ink); outline-offset: -2px; }
html.a11y-contrast .muted, html.a11y-contrast small { color: var(--ink) !important; }
html.a11y-calm *, html.a11y-calm *::before, html.a11y-calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.a11y-calm .lz { animation-duration: var(--lzT) !important; }
html.a11y-font body, html.a11y-font input, html.a11y-font button, html.a11y-font select, html.a11y-font textarea { font-family: "Atkinson Hyperlegible", var(--font-b), sans-serif !important; }
.a11y-set { margin-bottom: 22px; max-width: 820px; background: var(--paper); border-radius: var(--r-lg, 24px); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.a11y-set h2 { margin: 0 0 14px; font-size: 1.35rem; }
.a11y-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.a11y-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .03); cursor: pointer; }
.a11y-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-sw { flex: none; width: 46px; height: 26px; border-radius: 999px; background: #C9CFE0; position: relative; transition: background .2s; margin-top: 2px; }
.a11y-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.a11y-opt input:checked + .a11y-sw { background: #1F7A3E; }
.a11y-opt input:checked + .a11y-sw::after { transform: translateX(20px); }
.a11y-opt input:focus-visible + .a11y-sw { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.a11y-opt b { display: block; }
.a11y-opt small { display: block; color: var(--ink-2); line-height: 1.4; }
.a11y-note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 640px) { .a11y-opts { grid-template-columns: 1fr; } }
/* screen time: Flip's tired */
.pl-tired { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; background: linear-gradient(#2B2F66, #4B3F82); color: #fff; }
.pl-tired[hidden] { display: none; }
.pl-tired h2 { margin: 6px 0 0; font-family: var(--font-d); font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; }
.pl-tired p { margin: 0; max-width: 42ch; color: #E4E3FF; font-size: 1.08rem; }
.pl-tired .pl-locked-alt { color: #fff; background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tired-flip { position: relative; }
.tired-flip .mascot { transform: rotate(-8deg); filter: saturate(.85); }
.zzz { position: absolute; top: 4px; right: -22px; font-family: var(--font-d); font-weight: 800; color: #FFE08A; }
.zzz i { display: inline-block; font-style: normal; font-size: 1.2rem; animation: zzz 2.4s ease-in-out infinite; opacity: 0; }
.zzz i:nth-child(2) { font-size: 1.6rem; animation-delay: .5s; } .zzz i:nth-child(3) { font-size: 2rem; animation-delay: 1s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 8px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -22px); } }
@media (prefers-reduced-motion: reduce) { .zzz i { animation: none; opacity: 1; } }
.time-left { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--paper, #fff); font-weight: 700; font-size: .92rem; color: var(--ink); box-shadow: 0 2px 0 var(--line); }
.eh-card h2 { margin-top: 0; }
.eh-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border-radius: 14px; background: rgba(0, 0, 0, .035); color: var(--ink); text-decoration: none; }
.eh-link:hover { box-shadow: 0 0 0 2px var(--lagoon) inset; }
.eh-link small { display: block; color: var(--ink-2); font-weight: 600; font-size: .82rem; }
.eh-link b { display: block; line-height: 1.25; }
.eh-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper, #fff); font-size: 1.3rem; font-family: var(--emoji, inherit); }
.theme-sticker .eh-card { border: var(--bw) solid var(--ink); box-shadow: var(--sh); border-radius: 20px; padding: 16px; background: var(--paper); margin-bottom: 16px; }
.sc-years a.sc-coming { display: inline; flex: 1 1 100%; width: 100%; padding: 2px 0 0; background: none; box-shadow: none; font-weight: 700; font-size: .9rem; color: var(--lagoon-deep, #0E6F7C); text-decoration: underline; }
.sc-years a.is-soon { box-shadow: none; background: transparent; color: var(--ink-2); }
.cn-years { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cn-years .chip { text-decoration: none; }
.coming-page > section { max-width: 920px; margin: 0 auto 30px; }
.coming-page h2 { font-size: 1.45rem; margin: 0 0 12px; }
.cn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cn-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--paper, #fff); box-shadow: var(--shadow); }
.cn-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #F1F4FA; font-size: 1.4rem; font-family: var(--emoji, inherit); }
.cn-txt { flex: 1; min-width: 0; }
.cn-txt b { display: block; line-height: 1.3; }
.cn-txt small { display: block; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.cn-vote { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--paper, #fff); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.cn-vote:hover { border-color: var(--lagoon); }
.cn-vote.is-on { background: #E1F4E6; border-color: #1F7A3E; color: #1F4D2C; }
.cn-vote .cn-n:empty { display: none; }
.cn-vote .cn-n { background: rgba(0, 0, 0, .07); padding: 1px 8px; border-radius: 999px; }
.cn-count { flex: none; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.cn-subject { margin: 0 0 10px; border-radius: 18px; background: rgba(255, 255, 255, .6); padding: 0 12px; }
.cn-subject summary { cursor: pointer; padding: 14px 4px; font-weight: 700; font-size: 1.08rem; }
.cn-subject summary small { color: var(--ink-2); font-weight: 600; margin-left: 6px; }
.cn-subject .cn-list { padding-bottom: 14px; }
.cn-note { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 560px) { .cn-item { flex-wrap: wrap; } .cn-vote { margin-left: 58px; } }
.sc-reviews figcaption b { color: var(--ink); }
.sc-pilot-card { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border-radius: 28px; background: linear-gradient(120deg, #FFF7D6, #E1F4E6); box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); }
.sc-pilot-card p { margin: 0 0 14px; color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.sc-pilot-card .mascot { flex: none; }
@media (max-width: 640px) { .sc-pilot-card { flex-direction: column; text-align: center; padding: 22px 18px; } }
.ff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; max-width: 1060px; align-items: start; }
.ff-what h2 { font-size: 1.3rem; margin: 0 0 6px; }
.ff-what p, .ff-what ul { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; }
.ff-left { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #FFF1B8; color: #6B4E00; }
.ff-form h2 { margin-top: 0; }
@media (max-width: 820px) { .ff-grid { grid-template-columns: 1fr; } }
.theme-sticker .sc-pilot-card, .theme-sticker .cn-item, .theme-sticker .a11y-set { border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.tired-flip { margin-bottom: 26px; } .tired-flip .mascot { display: block; }
.sc-reviews figure { margin: 0; background: var(--paper); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow, 0 6px 18px rgba(38, 48, 94, .08)); display: flex; flex-direction: column; gap: 10px; }
.sc-reviews blockquote { margin: 0; font-family: var(--font-d); font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--ink); }
.sc-reviews figcaption { color: var(--ink-2); margin-top: auto; }
.theme-sticker .sc-reviews figure { border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.yf-title { margin-top: 26px; }
.yf-none { margin: 18px 0 4px; padding: 14px 16px; border-radius: 16px; background: #FFF7D6; }
.yf-none p { margin: 0; }
.yf-more { margin-top: 22px; }

.simple .grid .card-sum, .simple .grid .card-meta, .simple .card-fav { display: none; }
.simple .grid .card-title, .grid-kid .card-title { font-size: 1.2rem; }
.grid-kid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 560px) { .grid-kid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid-kid .card-title { font-size: 1rem; } }
.kid-h { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.kid-h .say-btn { width: 40px; height: 40px; font-size: 1.1rem; }
@media (min-width: 1101px) { .kid-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) and (min-width: 721px) { .kid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kid-tile > a { min-height: 190px; } }
.grownup-bar { background: #FFF1B8; color: #4A3A00; }
.empty > .mascot { margin-bottom: 4px; }
.grownup-bar a { color: #26305E; }
.sc-rails-top { margin: -20px 0 0 !important; }
.player-row summary .pl-sum { color: var(--ink-2); font-weight: 500; margin-left: 6px; font-size: .85rem; }
.add-player-wrap { margin-top: 14px; }
.add-player-wrap > summary { display: inline-flex; list-style: none; cursor: pointer; }
.add-player-wrap > summary::-webkit-details-marker { display: none; }
.add-player-wrap[open] > summary { margin-bottom: 10px; }
.pl-gate-q [data-gate-q] { font-family: var(--font-d); font-size: 1.35rem; line-height: 1.3; }

/* ---------- "Our library" strip under the showcase hero ---------- */
/* "Find a game" (showcase home page): search, subject and year chips, one row of games */
.sc-finder { display: flex; flex-direction: column; }
.fd-head h2 { margin-bottom: 4px; }
.fd-head .sc-lead { margin-bottom: 14px; }
.fd-head .sc-lead b { color: var(--lagoon-deep, #0E6F7C); }
.fd-search { position: relative; width: 100%; max-width: 560px; margin: 0; }
.fd-search input { width: 100%; box-sizing: border-box; height: 50px; padding: 0 56px 0 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.fd-search input:focus { outline: none; border-color: var(--lagoon, #3FB4C6); box-shadow: 0 0 0 3px rgba(63, 180, 198, .25); }
.fd-go { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--lagoon-deep, #0E6F7C); display: grid; place-items: center; cursor: pointer; }
.fd-go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.fd-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fd-filters { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.fd-chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px 3px 5px; margin: 0 -3px; }
.fd-chips::-webkit-scrollbar { display: none; }
.fd-lbl { flex: none; width: 64px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.fd-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; box-sizing: border-box; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--line); }
.fd-chip span { font-family: var(--emoji, inherit); }
.fd-chip:hover { box-shadow: inset 0 0 0 2px var(--lagoon, #3FB4C6); }
.fd-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper, #fff); box-shadow: none; }
.fd-chip:focus-visible { outline: 3px solid var(--lagoon, #3FB4C6); outline-offset: 2px; }
.fd-yr { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.12; padding: 4px 14px; border-radius: 14px; }
.fd-yr b { font-size: .9rem; } .fd-yr small { font-size: .72rem; font-weight: 600; opacity: .78; }
.fd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 6px; }
.fd-status { margin: 0; font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.fd-nav { display: flex; gap: 6px; flex: none; }
.fd-nav button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); }
.fd-nav button:hover { box-shadow: inset 0 0 0 2px var(--lagoon, #3FB4C6); }
.fd-nav button:focus-visible { outline: 3px solid var(--lagoon, #3FB4C6); outline-offset: 2px; }
@media (hover: none) { .fd-nav { display: none; } }
.fd-view { margin: 0 -20px; min-width: 0; }
.fd-row { list-style: none; margin: 0; padding: 4px 20px 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 20px; scrollbar-width: thin; }
.fd-row li { flex: none; width: 184px; scroll-snap-align: start; }
.fd-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.fd-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #E3EEF7; box-shadow: 0 4px 12px rgba(38, 48, 94, .12); }
.fd-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.fd-card:hover .fd-img img { transform: scale(1.05); }
.fd-card:focus-visible { outline: none; } .fd-card:focus-visible .fd-img { outline: 3px solid var(--lagoon, #3FB4C6); outline-offset: 2px; }
.fd-fb { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; font-family: var(--emoji, inherit); background: radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%), color-mix(in srgb, var(--c) 35%, #fff); }
.fd-tag { position: absolute; right: 7px; top: 7px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.fd-tag.is-free { background: #E3F6E8; color: #1F5E31; } .fd-tag.is-mem { background: #2B2340; color: #FFD84D; }
.fd-card b { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-card small { font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.fd-none { margin: 4px 20px 0; padding: 18px; border-radius: 16px; background: var(--paper); color: var(--ink-2); }
.fd-row[hidden] { display: none; }
.fd-all { margin: 12px 0 0; }
@media (max-width: 560px) { .fd-row li { width: 148px; } .fd-lbl { width: auto; } .fd-search input { height: 46px; } .fd-go { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .fd-img img { transition: none; } }
.theme-sticker .fd-img, .theme-sticker .fd-search input { border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.theme-sticker .fd-chip { box-shadow: inset 0 0 0 2px var(--ink); }
.theme-studio .fd-img { box-shadow: none; border: 1px solid var(--line); }
.join-step { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lagoon-deep, #0E6F7C); }
.plan-card-wrap { width: min(100%, 760px); }
.plan-pick { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; text-align: left; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; border-radius: 22px; border: 2px solid var(--line); background: var(--paper); }
.plan-member { border: 3px solid var(--sun, #FFC24B); }
.plan-opt h2 { margin: 0; font-size: 1.4rem; }
.plan-what { margin: 0; color: var(--ink-2); }
.plan-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.plan-btns .btn { flex: 1 1 140px; }
.plan-free .btn { margin-top: auto; }
.plan-promises { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.plan-promises li { position: relative; padding-left: 26px; font-size: .92rem; font-weight: 600; }
.plan-promises li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--meadow, #3DBE6B); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 640px) { .plan-pick { grid-template-columns: 1fr; } }
.setup-more, .setup-email { text-align: left; }
.setup-more summary, .setup-email summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.setup-more[open] summary { margin-bottom: 10px; }
.setup-email { margin-top: 18px; font-size: .92rem; }
.setup-email summary b { color: var(--ink); }
.form-card .form-ok { margin: 0 0 12px; }
.sc-join-form { display: flex; } .sc-join-form .btn { flex: 1; }

/* Home page order (v45): our mission with the worries parents have, compact pricing straight after, and on phones
   the hero's lesson picture above the buttons and card sections as rows you swipe sideways. */
.sc-mission .sc-mission-line { margin-bottom: 10px; font-size: clamp(1.35rem, 2.6vw, 1.95rem); max-width: 34ch; }
.sc-mission > .sc-lead { text-align: center; margin: 0 auto 20px; }
.sc-mission .sc-quotes { width: 100%; text-align: left; }
.sc-mission .sc-quotes figure { margin: 0; }
.sc-how .sc-lead { margin-bottom: 0; }
.sc-how ol { margin-top: 16px; }
.sc-compare-more { width: min(100%, 860px); margin-top: 14px; }
.sc-compare-more > summary { cursor: pointer; list-style: none; width: max-content; max-width: 100%; margin: 0 auto; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--lagoon-deep, #0E6F7C); }
.sc-compare-more > summary::-webkit-details-marker { display: none; }
.sc-compare-more > summary::after { content: " ▾"; } .sc-compare-more[open] > summary::after { content: " ▴"; }
.sc-compare-more > summary:hover { background: rgba(63, 180, 198, .12); }
.sc-compare-more > summary:focus-visible { outline: 3px solid var(--lagoon, #3FB4C6); }
.sc-compare-more .sc-compare-wrap { margin-top: 8px; width: 100%; }
.sc-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.sc-safe .sc-lead { max-width: 76ch; }
.sc-recent { margin: 0 !important; }
.sc-recent:not(:has(.rail:not([hidden]))) { display: none; }
@media (max-width: 900px) {
  .sc-hero-in { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .sc-copy { display: contents; }
  .sc-copy h1 { order: 1; } .sc-sub { order: 2; margin-bottom: 14px; } .sc-visual { order: 3; margin-bottom: 18px; }
  .sc-ctas { order: 4; } .sc-hero-price { order: 5; } .sc-years { order: 6; }
}
@media (max-width: 700px) {
  .sc-swipe { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: min(82%, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -20px !important; margin-right: -20px !important; padding: 4px 20px 14px !important; scroll-padding: 0 20px; scrollbar-width: none; width: auto !important; }
  .sc-swipe::-webkit-scrollbar { display: none; }
  .sc-swipe > * { scroll-snap-align: start; min-width: 0; }
  .sc-swipe:focus-visible { outline: 3px solid var(--lagoon, #3FB4C6); outline-offset: -3px; }
  .sc-how li .mascot { width: 72px; height: 72px; }
  .sc-life .sc-swipe > li > * { height: 100%; }
  .sc-guarantees.sc-swipe { grid-auto-columns: min(78%, 300px); }
  .sc-safe .sc-swipe > li { align-content: start; }
}
@media (max-width: 560px) {
  .sc-body { gap: 46px; padding-top: 38px; }
  .sc-mission .sc-mission-line { font-size: 1.3rem; }
  .sc-hero-price { margin-bottom: 14px; }
}
/* phones: the hero picture's scene buttons make way (the two scenes still take turns); the pause button sits under Flip */
@media (max-width: 560px) {
  .sc-switch { position: absolute; right: 26px; bottom: 4px; margin: 0; align-self: auto; }
  .sc-switch [data-scene] { display: none; }
  .sc-visual { margin-bottom: 16px; }
}
/* tablets: the three steps and the money promises sit side by side */
@media (min-width: 701px) and (max-width: 900px) {
  .sc-how ol, .sc-guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-how li .mascot { width: 72px; height: 72px; }
}
/* the cookie notice for visit analytics: small, at the bottom, above the phone tab bar and below the game player */
.an-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 30; width: min(720px, calc(100% - 24px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-radius: 20px; background: var(--paper, #fff); color: var(--ink); box-shadow: 0 12px 34px rgba(38, 48, 94, .22), 0 0 0 1px var(--line); font-size: .92rem; line-height: 1.45; }
.an-bar[hidden] { display: none; }
.an-bar p { margin: 0; flex: 1 1 340px; }
.an-bar a { color: var(--lagoon-deep, #0E6F7C); font-weight: 700; }
.an-bar .an-state { flex-basis: 100%; font-weight: 700; color: var(--ink-2); }
.an-btns { display: flex; gap: 8px; flex: none; }
.an-btns .btn { padding: 9px 16px; font-size: .9rem; min-height: 0; }
@media (max-width: 760px) { .an-bar { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); } .an-btns { flex: 1 1 100%; } .an-btns .btn { flex: 1; } }
.theme-sticker .an-bar { border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.pl-stage:fullscreen, .pl-stage:-webkit-full-screen { background: #10163D; }
.preview-note { background: #FFF3D1; border-radius: 14px; padding: 12px 16px; }

/* members panel: how far the child got and what comes next */
.pl-locked .pl-locked-prog, .pl-locked .pl-grown-prog { font-weight: 800; color: var(--ink); }
.pl-locked-next { background: var(--paper, #fff); border-radius: 18px; padding: 12px 18px 12px 16px; box-shadow: 0 6px 18px rgba(38, 48, 94, .1); margin-top: 6px; text-align: left; max-width: 420px; width: 100%; box-sizing: border-box; }
.pl-locked-next[hidden] { display: none; }
.pl-locked .pl-locked-next-h { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 4px; }
.pl-locked-next ol { margin: 0; padding-left: 1.6em; display: grid; gap: 4px; }
.pl-locked-next li { font-weight: 700; color: var(--ink); }
.pl-locked-next li::marker { color: var(--ink-2); }
.pl-trial-form { display: contents; }
/* membership page: the free trial comes first */
.mem-trial { position: relative; border: 3px solid var(--sun, #FFCE54); }
.mem-trial.is-wanted { box-shadow: 0 0 0 6px rgba(255, 206, 84, .35); }
.mem-trial .sc-badge { right: 22px; }
