/* ═══════════════════════════════════════════════
   LUXURY ALPHABET — KIDS FRIENDLY REDESIGN
   ═══════════════════════════════════════════════ */

:root {
  --bg:      #fdf6ec;
  --surface: #fffefb;
  --text:    #141414;
  --muted:   rgba(20, 20, 20, 0.60);
  --gold:    #d4a030;
  --line:    rgba(20, 20, 20, 0.09);
  --radius:  26px;
  --shadow:  0 20px 56px rgba(96, 69, 28, 0.10);
  --pink:    #ffc9d6;
  --blue:    #dbeeff;
  --mint:    #def7ea;
  --peach:   #ffd8b8;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(circle at 8% 6%,  rgba(255, 201, 214, 0.38), transparent 22%),
    radial-gradient(circle at 92% 8%,  rgba(219, 238, 255, 0.44), transparent 22%),
    radial-gradient(circle at 50% 95%, rgba(222, 247, 234, 0.50), transparent 26%),
    linear-gradient(180deg, #fffaf3 0%, #fdf3e8 100%);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; background: transparent; }

/* ── App shell ─────────────────────────────────── */
.app-shell { min-height: 100vh; padding: 8px; }

/* ── Topbar ────────────────────────────────────── */
.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(96, 69, 28, 0.08);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 10px;
  max-width: 1840px;
  padding: 14px clamp(16px, 3vw, 36px);
}

.brand {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(180deg, #fff8e0 0%, #ffeeb0 100%);
  border: 1.5px solid rgba(212, 160, 48, 0.40);
  border-radius: 50%;
  color: var(--gold);
  display: grid;
  font-family: Georgia, serif;
  font-size: 22px;
  height: 50px;
  place-items: center;
  position: relative;
  width: 50px;
}

.brand-mark::before {
  content: "♛";
  font-size: 13px;
  left: 14px;
  position: absolute;
  top: -12px;
}

.brand strong, .brand small { display: block; }

.brand strong {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  margin-top: 2px;
}

.top-actions, .toolbar-cluster {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-link, .text-button {
  background: transparent;
  border-radius: 10px;
  color: var(--muted);
  padding: 8px 12px;
}

.nav-link:hover, .text-button:hover { color: var(--text); }

.gold-pill, .primary-button {
  background: linear-gradient(180deg, #232323 0%, #111 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.14);
  color: #fffef9;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 24px;
  transition: opacity 0.15s, transform 0.15s;
}

.gold-pill:hover, .primary-button:hover { opacity: 0.88; transform: translateY(-1px); }

.icon-button, .page-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  display: grid;
  font-size: 15px;
  height: 42px;
  place-items: center;
  transition: background 0.15s;
  width: 42px;
}

.icon-button:hover { background: var(--bg); }

/* ── Screens ───────────────────────────────────── */
.screen {
  display: none;
  margin: 0 auto;
  max-width: 1840px;
}

.screen.is-active {
  animation: fadeUp 280ms ease both;
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading overlay ───────────────────────────── */
.loading-screen {
  align-items: center;
  background: rgba(242, 242, 240, 0.88);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.loading-screen.is-active { display: flex; }

.loading-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 380px;
  padding: 32px;
  text-align: center;
  width: min(100%, 380px);
}

.loading-orbit {
  height: 78px;
  margin: 0 auto 18px;
  position: relative;
  width: 78px;
}

.loading-ring, .loading-core { border-radius: 50%; position: absolute; }
.loading-ring { inset: 0; }
.ring-a { border: 1px solid rgba(184, 146, 42, 0.55); animation: spin 3s linear infinite; }
.ring-b { border: 1px dashed rgba(184, 146, 42, 0.32); inset: 10px; animation: spinR 4.2s linear infinite; }
.loading-core {
  align-items: center;
  background: var(--gold);
  color: #fff;
  display: grid;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  inset: 22px;
  place-items: center;
}

@keyframes spin  { to { transform: rotate(360deg);  } }
@keyframes spinR { to { transform: rotate(-360deg); } }

.loading-card strong {
  color: var(--text);
  display: block;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.loading-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 18px;
}

.loading-bar {
  background: rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.loading-bar span {
  background: var(--gold);
  display: block;
  height: 100%;
  transition: width 200ms ease;
  width: 8%;
}

/* ═══════════════════════════════════════════════
   SPLASH SCREEN  (initial page-load preloader)
   ═══════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   FAIRY TALE SPLASH SCREEN
   ════════════════════════════════════════════════ */

/* ── Keyframes ───────────────────────────────── */
@keyframes splashLetterRise {
  0%   { transform: translateY(0);      opacity: 0;    }
  8%   { opacity: 0.9; }
  88%  { opacity: 0.9; }
  100% { transform: translateY(-115vh); opacity: 0;    }
}
@keyframes splashCatBounce {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.35); }
}
@keyframes splashExit {
  to { opacity: 0; transform: scale(1.06); filter: blur(12px); }
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes wandRock {
  0%, 100% { transform: rotate(-18deg) scale(1);    filter: drop-shadow(0 0 22px rgba(200,120,255,0.75)) drop-shadow(0 0 8px rgba(255,160,230,0.5)); }
  50%       { transform: rotate(16deg)  scale(1.12); filter: drop-shadow(0 0 36px rgba(220,100,255,0.90)) drop-shadow(0 0 16px rgba(255,200,240,0.6)); }
}
@keyframes orbSpin {
  from { transform: rotate(0deg)   translateX(58px) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(58px) rotate(-360deg); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.20; transform: scale(0.80) rotate(0deg);   }
  30%       { opacity: 0.90; transform: scale(1.22) rotate(12deg);  }
  60%       { opacity: 0.50; transform: scale(0.95) rotate(-8deg);  }
}
@keyframes starDrift {
  0%         { transform: translate(0, 0)     rotate(0deg);   opacity: 0.5; }
  33%        { transform: translate(8px, -12px) rotate(20deg);  opacity: 0.9; }
  66%        { transform: translate(-6px, -6px) rotate(-10deg); opacity: 0.7; }
  100%       { transform: translate(0, 0)     rotate(0deg);   opacity: 0.5; }
}
@keyframes splashProgShimmer {
  0%   { background-position: 0% 50%;   }
  100% { background-position: 200% 50%; }
}
@keyframes auroraShift {
  0%, 100% { opacity: 0.55; transform: scale(1)    rotate(0deg);   }
  50%       { opacity: 0.80; transform: scale(1.12) rotate(8deg);   }
}

/* ── Outer shell ─────────────────────────────── */
.splash-screen {
  align-items: center;
  /* deep midnight sky */
  background: linear-gradient(160deg, #08022a 0%, #1c0852 38%, #0b1a52 72%, #06082a 100%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  padding: 28px 20px;
  position: fixed;
  z-index: 9999;
}

/* Aurora glow blobs */
.splash-screen::before,
.splash-screen::after {
  animation: auroraShift 5s ease-in-out infinite;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  position: absolute;
}
.splash-screen::before {
  background: radial-gradient(circle, rgba(180,80,255,0.22) 0%, rgba(100,40,200,0.10) 50%, transparent 70%);
  height: 700px; left: -220px; top: -200px; width: 700px;
  animation-delay: 0s;
}
.splash-screen::after {
  background: radial-gradient(circle, rgba(255,80,190,0.18) 0%, rgba(180,60,200,0.08) 50%, transparent 70%);
  bottom: -200px; height: 600px; right: -200px; width: 600px;
  animation-delay: -2.5s;
}

/* Exit */
.splash-screen.is-exit {
  animation: splashExit 640ms cubic-bezier(0.4, 0, 1, 1) both;
  pointer-events: none;
}
.splash-screen.is-gone { display: none; }

/* ── Twinkling star field ─────────────────────── */
.splash-starfield {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.splash-starfield span {
  animation: starTwinkle 3s ease-in-out infinite, starDrift 7s ease-in-out infinite;
  font-size: 18px;
  position: absolute;
}
/* scatter 18 stars across the sky */
.splash-starfield span:nth-child(1)  { top:  6%; left:  5%;  font-size: 20px; animation-delay: -0.3s, -1s;  }
.splash-starfield span:nth-child(2)  { top:  9%; left: 20%;  font-size: 14px; animation-delay: -1.1s, -3s;  }
.splash-starfield span:nth-child(3)  { top:  4%; left: 40%;  font-size: 22px; animation-delay: -2.2s, -5s;  }
.splash-starfield span:nth-child(4)  { top:  7%; left: 62%;  font-size: 16px; animation-delay: -0.7s, -2s;  }
.splash-starfield span:nth-child(5)  { top:  5%; left: 80%;  font-size: 24px; animation-delay: -1.8s, -6s;  }
.splash-starfield span:nth-child(6)  { top: 13%; left: 88%;  font-size: 14px; animation-delay: -0.4s, -4s;  }
.splash-starfield span:nth-child(7)  { top: 18%; left:  2%;  font-size: 18px; animation-delay: -2.6s, -1.5s;}
.splash-starfield span:nth-child(8)  { top: 22%; left: 50%;  font-size: 12px; animation-delay: -1.4s, -7s;  }
.splash-starfield span:nth-child(9)  { top: 28%; left: 73%;  font-size: 20px; animation-delay: -0.9s, -3.5s;}
.splash-starfield span:nth-child(10) { top: 72%; left:  8%;  font-size: 16px; animation-delay: -2.0s, -2s;  }
.splash-starfield span:nth-child(11) { top: 78%; left: 32%;  font-size: 22px; animation-delay: -0.5s, -5.5s;}
.splash-starfield span:nth-child(12) { top: 82%; left: 55%;  font-size: 14px; animation-delay: -1.7s, -4s;  }
.splash-starfield span:nth-child(13) { top: 75%; left: 78%;  font-size: 20px; animation-delay: -2.4s, -1s;  }
.splash-starfield span:nth-child(14) { top: 88%; left: 15%;  font-size: 16px; animation-delay: -0.6s, -6.5s;}
.splash-starfield span:nth-child(15) { top: 91%; left: 42%;  font-size: 24px; animation-delay: -1.3s, -3s;  }
.splash-starfield span:nth-child(16) { top: 86%; left: 68%;  font-size: 14px; animation-delay: -2.8s, -7.5s;}
.splash-starfield span:nth-child(17) { top: 93%; left: 88%;  font-size: 18px; animation-delay: -0.2s, -4.5s;}
.splash-starfield span:nth-child(18) { top: 50%; left: 96%;  font-size: 12px; animation-delay: -1.9s, -2.5s;}

/* ── Floating A–Z in fairy rainbow colours ─────── */
.splash-abc {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.splash-abc span {
  animation: splashLetterRise linear infinite;
  bottom: -10%;
  font-family: Georgia, serif;
  font-weight: 700;
  position: absolute;
}
/* 4-colour palette cycling: pink / lavender / sky / gold */
.splash-abc span:nth-child(4n+1) { color: rgba(255, 160, 220, 0.20); }
.splash-abc span:nth-child(4n+2) { color: rgba(190, 140, 255, 0.18); }
.splash-abc span:nth-child(4n+3) { color: rgba(100, 200, 255, 0.16); }
.splash-abc span:nth-child(4n+0) { color: rgba(255, 215, 100, 0.18); }

.splash-abc span:nth-child(1)  { left: 3%;  font-size: 88px;  animation-duration: 16s; animation-delay: -1s;  }
.splash-abc span:nth-child(2)  { left: 11%; font-size: 118px; animation-duration: 21s; animation-delay: -9s;  }
.splash-abc span:nth-child(3)  { left: 19%; font-size: 64px;  animation-duration: 13s; animation-delay: -5s;  }
.splash-abc span:nth-child(4)  { left: 26%; font-size: 104px; animation-duration: 22s; animation-delay: -14s; }
.splash-abc span:nth-child(5)  { left: 34%; font-size: 78px;  animation-duration: 17s; animation-delay: -3s;  }
.splash-abc span:nth-child(6)  { left: 41%; font-size: 96px;  animation-duration: 25s; animation-delay: -11s; }
.splash-abc span:nth-child(7)  { left: 49%; font-size: 72px;  animation-duration: 14s; animation-delay: -7s;  }
.splash-abc span:nth-child(8)  { left: 57%; font-size: 112px; animation-duration: 19s; animation-delay: -2s;  }
.splash-abc span:nth-child(9)  { left: 64%; font-size: 68px;  animation-duration: 15s; animation-delay: -13s; }
.splash-abc span:nth-child(10) { left: 72%; font-size: 100px; animation-duration: 23s; animation-delay: -6s;  }
.splash-abc span:nth-child(11) { left: 80%; font-size: 80px;  animation-duration: 18s; animation-delay: -10s; }
.splash-abc span:nth-child(12) { left: 88%; font-size: 90px;  animation-duration: 20s; animation-delay: -4s;  }
.splash-abc span:nth-child(13) { left: 94%; font-size: 76px;  animation-duration: 12s; animation-delay: -8s;  }
.splash-abc span:nth-child(14) { left: 6%;  font-size: 60px;  animation-duration: 24s; animation-delay: -16s; }
.splash-abc span:nth-child(15) { left: 15%; font-size: 108px; animation-duration: 16s; animation-delay: -12s; }
.splash-abc span:nth-child(16) { left: 23%; font-size: 84px;  animation-duration: 20s; animation-delay: 0s;   }
.splash-abc span:nth-child(17) { left: 31%; font-size: 66px;  animation-duration: 14s; animation-delay: -18s; }
.splash-abc span:nth-child(18) { left: 38%; font-size: 120px; animation-duration: 26s; animation-delay: -8s;  }
.splash-abc span:nth-child(19) { left: 46%; font-size: 74px;  animation-duration: 17s; animation-delay: -15s; }
.splash-abc span:nth-child(20) { left: 53%; font-size: 98px;  animation-duration: 22s; animation-delay: -5s;  }
.splash-abc span:nth-child(21) { left: 61%; font-size: 86px;  animation-duration: 15s; animation-delay: -11s; }
.splash-abc span:nth-child(22) { left: 69%; font-size: 76px;  animation-duration: 19s; animation-delay: -3s;  }
.splash-abc span:nth-child(23) { left: 76%; font-size: 94px;  animation-duration: 13s; animation-delay: -17s; }
.splash-abc span:nth-child(24) { left: 84%; font-size: 66px;  animation-duration: 21s; animation-delay: -9s;  }
.splash-abc span:nth-child(25) { left: 91%; font-size: 82px;  animation-duration: 16s; animation-delay: -6s;  }
.splash-abc span:nth-child(26) { left: 97%; font-size: 110px; animation-duration: 24s; animation-delay: -13s; }

/* ── Fairy tale central logo ─────────────────── */
.splash-logo {
  animation: splashFadeUp 900ms 100ms ease both;
  position: relative;
  text-align: center;
  z-index: 2;
}

/* Magic wand + orbiting sparkles */
.splash-magic-ring {
  height: 130px;
  margin: 0 auto 18px;
  position: relative;
  width: 130px;
}
.splash-wand {
  animation: wandRock 2.8s ease-in-out infinite;
  display: block;
  font-size: 68px;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
/* 4 sparkle orbs that rotate around the wand */
.splash-orb {
  font-size: 18px;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform-origin: 0 0;
}
.splash-orb-1 { animation: orbSpin 3.0s linear infinite; animation-delay: 0s;    }
.splash-orb-2 { animation: orbSpin 3.0s linear infinite; animation-delay: -0.75s; }
.splash-orb-3 { animation: orbSpin 3.0s linear infinite; animation-delay: -1.50s; }
.splash-orb-4 { animation: orbSpin 3.0s linear infinite; animation-delay: -2.25s; }

/* Title — rainbow gradient text */
.splash-elite-name {
  background: linear-gradient(90deg, #ff9de2, #c9a0ff, #7ed6ff, #b4f7be, #ffd76e, #ff9de2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: splashProgShimmer 3s linear infinite;
  font-family: Georgia, serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.splash-elite-name em { font-style: normal; }

.splash-tag {
  color: rgba(220, 200, 255, 0.70);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ── Category pips ───────────────────────────── */
.splash-cat-row {
  align-items: center;
  animation: splashFadeUp 900ms 220ms ease both;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.splash-cat-pip {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  filter: grayscale(1) opacity(0.28);
  font-size: 22px;
  height: 52px;
  justify-content: center;
  transition: filter 380ms ease, border-color 380ms ease, background 380ms ease, box-shadow 380ms ease;
  width: 52px;
}
.splash-cat-pip.is-loading {
  border-color: rgba(200, 140, 255, 0.50);
  filter: grayscale(0) opacity(0.70);
  box-shadow: 0 0 12px rgba(180, 100, 255, 0.35);
}
.splash-cat-pip.is-done {
  animation: splashCatBounce 380ms ease both;
  background: rgba(180, 100, 255, 0.18);
  border-color: rgba(220, 160, 255, 0.80);
  box-shadow: 0 0 16px rgba(180, 100, 255, 0.45);
  filter: none;
}

/* ── Progress foot ───────────────────────────── */
.splash-foot {
  animation: splashFadeUp 900ms 360ms ease both;
  position: relative;
  text-align: center;
  width: min(88vw, 360px);
  z-index: 2;
}
.splash-prog-track {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  height: 5px;
  margin-bottom: 12px;
  overflow: hidden;
}
.splash-prog-fill {
  background: linear-gradient(90deg, #ff9de2, #c9a0ff, #7ed6ff, #b4f7be, #ffd76e, #ff9de2);
  background-size: 200% 100%;
  animation: splashProgShimmer 2s linear infinite;
  border-radius: 999px;
  height: 100%;
  transition: width 380ms ease;
  width: 0%;
}
.splash-prog-label {
  color: rgba(210, 190, 255, 0.55);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ── Keyframe animations ──────────────────────── */
@keyframes twinkleFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1);    opacity: 0.9; }
  40%       { transform: translateY(-10px) rotate(4deg) scale(1.1); opacity: 1;   }
  70%       { transform: translateY(-5px) rotate(-2deg) scale(1.05); }
}
@keyframes driftCloud {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}
@keyframes popDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.35); opacity: 1; }
}
@keyframes tileBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── Setup / Home screen ───────────────────────── */
h1, h2, p { margin-top: 0; }

.home-stage { padding: 6px; }

.hero-panel {
  background:
    radial-gradient(circle at 7% 9%,  rgba(255, 201, 214, 0.22), transparent 14%),
    radial-gradient(circle at 93% 12%, rgba(219, 238, 255, 0.28), transparent 14%),
    radial-gradient(circle at 88% 88%, rgba(222, 247, 234, 0.34), transparent 18%),
    linear-gradient(180deg, #fffefa 0%, #fff4e9 100%);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
  padding: 36px 36px 0;
  position: relative;
  overflow: hidden;
}

/* ── Decorative elements ──────────────────────── */
.cover-star, .cover-cloud, .cover-dot { position: absolute; }

.cover-star {
  background: linear-gradient(180deg, #ffe99e 0%, #ffc857 100%);
  clip-path: polygon(50% 0%, 63% 35%, 100% 35%, 70% 57%, 82% 95%, 50% 72%, 18% 95%, 30% 57%, 0% 35%, 37% 35%);
  filter: drop-shadow(0 8px 14px rgba(255, 200, 87, 0.30));
  height: 44px;
  width: 44px;
  animation: twinkleFloat 4.2s ease-in-out infinite;
}
.star-left  { left: 42px; top: 38px; }
.star-right { right: 58px; top: 72px; animation-delay: -2.4s; }

.cover-cloud {
  background: linear-gradient(180deg, #eef7ff 0%, #daeefe 100%);
  border-radius: 999px;
  height: 30px;
  width: 68px;
  animation: driftCloud 9s ease-in-out infinite;
}
.cover-cloud::before, .cover-cloud::after {
  background: inherit; border-radius: 50%; content: ""; position: absolute;
}
.cover-cloud::before { height: 36px; left: 10px; top: -14px; width: 36px; }
.cover-cloud::after  { height: 28px; right: 10px; top: -8px;  width: 28px; }
.cloud-left  { bottom: 110px; left: 60px; }
.cloud-right { right: 96px; top: 192px; animation-delay: -5s; }

.cover-dot { border-radius: 50%; height: 14px; width: 14px; animation: popDot 3.2s ease-in-out infinite; }
.dot-a { background: var(--pink); left: 28%; top: 86px; }
.dot-b { background: var(--blue); right: 30%; top: 116px; animation-delay: -1.4s; }
.dot-c { background: var(--mint); bottom: 130px; right: 27%; animation-delay: -2.7s; }

/* ── Hero copy ────────────────────────────────── */
.hero-copy {
  margin: 0 auto;
  max-width: 820px;
  padding-top: 8px;
  text-align: center;
}

.eyebrow {
  color: #8c6a22;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.20em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.cover-title { margin: 0 0 16px; }
.cover-title-row { display: block; }

.cover-title-top {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.cover-title-bottom {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-shadow: 0 8px 18px rgba(212, 160, 48, 0.18);
}

.cover-ribbon {
  background: linear-gradient(180deg, #eaf4ff 0%, #dcebff 100%);
  border: 1px solid rgba(113, 163, 223, 0.28);
  border-radius: 999px;
  color: #365b83;
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 auto 16px;
  padding: 10px 22px;
}

.intro-copy {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
}
.intro-copy em   { color: var(--text); font-style: normal; }
.intro-copy strong { color: var(--gold); font-weight: 700; }

/* ── Language selector — hidden (English only) ── */
.language-corner { display: none !important; }

/* ── Category section ─────────────────────────── */
.selector-layout { display: block; }

.selector-section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}

.selector-section:first-child,
.selector-section:last-child { position: static; margin: 0; width: auto; max-width: none; }

.section-heading { margin-bottom: 18px; }
.section-heading span { display: none; }
.section-heading h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.chip-grid { display: none; }

/* Category cards — full-width 3-col grid, bobbing */
.category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
  animation: tileBob 4.8s ease-in-out infinite;
}

.category-card:nth-child(2n) { animation-delay: -1.6s; }
.category-card:nth-child(3n) { animation-delay: -3.2s; }

.category-card:hover {
  animation: none;
  border-color: rgba(212, 160, 48, 0.55);
  box-shadow: 0 14px 32px rgba(20, 20, 20, 0.10);
  transform: translateY(-5px);
}

.category-card:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.10);
}

.category-card.is-selected {
  animation: none;
  background: linear-gradient(180deg, #fffefc 0%, #fff7e6 100%);
  border-color: rgba(212, 160, 48, 0.58);
  box-shadow: 0 12px 28px rgba(212, 160, 48, 0.15);
}

.category-card img {
  background:
    radial-gradient(circle at top right,   rgba(219, 238, 255, 0.58), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 216, 184, 0.46), transparent 22%),
    #fff9f1;
  display: block;
  height: 200px;
  object-fit: contain;
  padding: 22px;
  width: 100%;
}

/* Jets card — trimmed images now fill the frame naturally */
[data-category-cover="jets"] {
  filter: brightness(1.22) contrast(1.06) saturate(1.15) drop-shadow(0 12px 32px rgba(0,0,0,0.18));
  height: 200px;
  image-rendering: auto;
  object-fit: contain;
  padding: 22px 28px;
  transition: filter 300ms ease;
}

.category-card div { padding: 16px 18px 20px; }

.category-card strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 600;
}

.category-card small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 6px;
}


/* ── Feature strip ────────────────────────────── */
.feature-strip {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 0;
}

.feature-strip article {
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 20px;
  padding: 18px 14px;
  text-align: center;
}

.feature-strip strong {
  color: var(--text);
  display: block;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 600;
}

.feature-strip span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════
   FULLSCREEN LEARNING MODE
   ═══════════════════════════════════════════════ */

/* Override: book screen covers the whole viewport */
.book-screen.is-active {
  animation: none;
  background: var(--bg);
  display: block;
  inset: 0;
  max-width: none;
  overflow: hidden;          /* no internal scroll → browser chrome stays hidden */
  position: fixed;
  touch-action: pan-x;       /* only horizontal swipes; vertical can't trigger browser UI */
  z-index: 500;
}

/* Two-column layout wrapper */
.fs-wrap {
  display: flex;
  height: 100%;   /* fills fixed parent exactly — no viewport-unit shifts */
  width: 100%;
}

/* Page-turn on the wrap */
@keyframes pageFwd {
  from { opacity: 0.5; transform: translateX(10px) scale(0.998); }
  to   { opacity: 1;   transform: translateX(0) scale(1); }
}
@keyframes pageBack {
  from { opacity: 0.5; transform: translateX(-10px) scale(0.998); }
  to   { opacity: 1;   transform: translateX(0) scale(1); }
}
.fs-wrap.is-turning,
.fs-wrap.is-turning-forward { animation: pageFwd 360ms cubic-bezier(.2, .8, .2, 1) both; }
.fs-wrap.is-turning-back    { animation: pageBack 360ms cubic-bezier(.2, .8, .2, 1) both; }

/* ── Image side (left) ──────────────────────────── */
.fs-image-side {
  flex: 1;
  min-width: 0;
  position: relative;
}

.fs-image-side .real-photo-frame {
  background: var(--bg);
  height: 100%;
  overflow: hidden;
  padding: 28px 28px 72px;
  position: relative;
}

/* Jets slides — plane was too big after transparent trim, pull it back in */
#learningCard[data-category="jets"] .real-photo-frame {
  padding: 64px 72px 100px;
}

@keyframes imgFloat {
  0%, 100% { transform: translateY(-12px) scale(1); }
  50%       { transform: translateY(-32px) scale(1.016); }
}
@keyframes imgEnterRight {
  from { opacity: 0; transform: perspective(1000px) translateX(80px) rotateY(-18deg) scale(0.92); }
  to   { opacity: 1; transform: perspective(1000px) translateX(0) rotateY(0deg) scale(1); }
}
@keyframes imgEnterLeft {
  from { opacity: 0; transform: perspective(1000px) translateX(-80px) rotateY(18deg) scale(0.92); }
  to   { opacity: 1; transform: perspective(1000px) translateX(0) rotateY(0deg) scale(1); }
}

.fs-image-side .real-photo-frame img {
  animation: imgFloat 3.8s ease-in-out infinite;
  backface-visibility: hidden;
  display: block;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,0.22)) contrast(1.06) saturate(1.12);
  height: 100%;
  image-rendering: high-quality;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center 10%;
  position: relative;
  transform: translateZ(0);
  transform-origin: center 45%;
  width: 100%;
  will-change: transform;
  z-index: 5;
}

.fs-image-side .real-photo-frame img.enter-fwd {
  animation: imgEnterRight 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fs-image-side .real-photo-frame img.enter-back {
  animation: imgEnterLeft 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fs-image-side .real-photo-frame img.is-tilting {
  animation: none;
  transition: transform 60ms linear, filter 60ms linear;
}

.fs-image-side .img-glare {
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255,255,255,0.32) 0%,
    rgba(255,255,255,0.08) 38%,
    rgba(255,255,255,0) 65%
  );
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 300ms ease;
  z-index: 9;
}
.fs-image-side .real-photo-frame:hover .img-glare { opacity: 1; }

.fs-image-side .showcase-stage {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.fs-image-side .watermark-letter {
  color: rgba(184,146,42,0.09);
  font-family: Georgia, serif;
  font-size: clamp(200px, 26vw, 460px);
  font-weight: 700;
  left: 2%;
  line-height: 1;
  position: absolute;
  top: 3%;
  z-index: 1;
}

.fs-image-side .pedestal {
  background: radial-gradient(ellipse at 38% 28%, #fff, #e6e6e2);
  border-radius: 50%;
  bottom: 9%;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  height: 60px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: min(42%, 360px);
}

/* ── Detail side (right) ─────────────────────────── */
.fs-detail-side {
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -4px 0 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 22px 20px;
  position: relative;
  width: clamp(280px, 28vw, 360px);
}

.fs-exit-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: background 0.15s, border-color 0.15s;
  width: 36px;
}
.fs-exit-btn:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.22); }

.fs-breadcrumb {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  padding-right: 46px;
  text-transform: uppercase;
}
.fs-dot { color: var(--gold); margin: 0 5px; }

.fs-body { flex: 1; min-height: 0; }

.fs-kicker {
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.fs-letter {
  color: var(--gold);
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(110px, 14vw, 200px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.85;
  margin: 0 0 8px;
  text-shadow: 5px 5px 0 rgba(184,146,42,0.14);
}

.fs-word {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(20px, 1.8vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 6px;
}

.fs-cat-label {
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.fs-explanation {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.65;
  margin: 0 0 8px;
}

.fs-origin-note {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
  padding: 7px 0;
  text-transform: uppercase;
}

.fs-brand-meta { display: none; }

/* ── Footer ──────────────────────────────────────── */
.fs-footer {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
}

.fs-progress-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  margin-bottom: 12px;
}

.fs-prog-bar {
  background: rgba(0,0,0,0.07);
  border-radius: 99px;
  flex: 1;
  height: 4px;
  overflow: hidden;
  position: relative;
}
.fs-prog-bar span {
  background: var(--gold);
  border-radius: 99px;
  display: block;
  height: 100%;
  transition: width 0.4s ease;
}

.fs-nav-row {
  display: flex;
  gap: 8px;
}

.fs-nav-btn {
  align-items: center;
  background: var(--gold);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 1;
  font-size: 22px;
  height: 50px;
  justify-content: center;
  transition: opacity 0.15s, transform 0.12s;
}
.fs-nav-btn:hover { opacity: 0.86; }
.fs-nav-btn:active { transform: scale(0.95); }

.fs-voice-btn {
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  flex: 2;
  font-size: 14px;
  font-weight: 600;
  gap: 5px;
  height: 50px;
  justify-content: center;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.fs-voice-btn:hover { background: rgba(184,146,42,0.08); }

.fs-auto-btn {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  height: 50px;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 0 12px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fs-auto-btn:hover { background: rgba(0,0,0,0.04); }
.fs-auto-btn.is-selected { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── Admin panel (above fullscreen) ─────────────── */
.admin-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  bottom: 0;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 250ms ease;
  width: min(92vw, 400px);
  z-index: 600;
}

.admin-panel.is-open { transform: translateX(0); }

.admin-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-header h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.eyebrow { margin-bottom: 4px; }

.admin-form { display: grid; gap: 11px; }

.admin-form label {
  color: var(--muted);
  display: grid;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 9px 11px;
}

.admin-form textarea { min-height: 88px; resize: vertical; }

/* ── Paywall overlay ────────────────────────────── */
.paywall-overlay {
  align-items: center;
  background: rgba(12, 8, 3, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 280ms ease;
  z-index: 700;
}

.paywall-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.paywall-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(96, 69, 28, 0.22);
  max-height: 92vh;
  max-width: 460px;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
  text-align: center;
  width: calc(100% - 32px);
}

/* ── Paywall tabs ──────────────────────────────── */
.paywall-tabs {
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
}

.paywall-tab {
  border-radius: 9px;
  color: var(--muted);
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  transition: background 200ms, color 200ms;
}
.paywall-tab.is-active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  color: var(--text);
}

/* ── Paywall email input ────────────────────────── */
.paywall-email-input {
  background: rgba(0,0,0,0.04);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  display: block;
  font-size: 15px;
  margin: 0 0 14px;
  padding: 14px 18px;
  transition: border-color 200ms;
  width: 100%;
}
.paywall-email-input:focus {
  border-color: var(--gold);
  outline: none;
}

.paywall-email-btn { width: 100%; }

.paywall-close {
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  color: var(--muted);
  height: 34px;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: background 200ms;
  width: 34px;
}
.paywall-close:hover { background: rgba(0,0,0,0.12); }

.paywall-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.paywall-title {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  margin: 0 0 6px;
}

.paywall-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.paywall-price-box {
  align-items: baseline;
  display: inline-flex;
  gap: 4px;
  margin: 0 0 24px;
}

.paywall-amount {
  color: var(--gold);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.paywall-period {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.paywall-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}

.paywall-features li {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  padding: 10px 4px;
}
.paywall-features li:last-child { border-bottom: none; }

.paywall-btn {
  background: linear-gradient(135deg, #d4a030 0%, #f5c84a 100%);
  border-radius: 52px;
  box-shadow: 0 8px 28px rgba(212, 160, 48, 0.38);
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  text-decoration: none;
  transition: box-shadow 200ms, transform 180ms;
}
.paywall-btn:hover {
  box-shadow: 0 12px 36px rgba(212, 160, 48, 0.52);
  transform: translateY(-2px);
}

.paywall-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}

/* ── Plan picker (paywall) ──────────────────────── */
.plan-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 18px;
}

.plan-card {
  background: rgba(0,0,0,0.03);
  border: 2px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: border-color 220ms, box-shadow 220ms, transform 180ms;
}
.plan-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(212,160,48,0.18);
  transform: translateY(-2px);
}

.plan-card--featured {
  background: linear-gradient(135deg, #fffbf0 0%, #fff5d6 100%);
  border-color: var(--gold);
  box-shadow: 0 6px 22px rgba(212,160,48,0.18);
}

.plan-badge {
  background: var(--gold);
  border-radius: 20px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  left: 50%;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  position: absolute;
  text-transform: uppercase;
  top: -12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 8px 0 0;
  text-transform: uppercase;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin: 4px 0 0;
}
.plan-price span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.plan-desc {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 10px;
}

.plan-cta {
  background: linear-gradient(135deg, #d4a030 0%, #f5c84a 100%);
  border-radius: 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-top: auto;
  padding: 9px 14px;
}

/* ── Hero emotional line ────────────────────────── */
.intro-emo {
  background: linear-gradient(135deg, rgba(212,160,48,0.07) 0%, rgba(212,160,48,0.03) 100%);
  border: 1px solid rgba(212, 160, 48, 0.20);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-style: italic;
  line-height: 1.65;
  margin: 12px auto 0;
  max-width: 520px;
  padding: 12px 18px;
}
.intro-emo em { color: var(--gold); font-style: normal; font-weight: 600; }

/* ── Paywall founders bar ───────────────────────── */
.paywall-founder-bar {
  align-items: center;
  background: linear-gradient(135deg, rgba(212,160,48,0.10) 0%, rgba(255,200,60,0.07) 100%);
  border: 1px solid rgba(212, 160, 48, 0.28);
  border-radius: 10px;
  display: flex;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding: 8px 14px;
}
.paywall-fire { font-size: 14px; }
.paywall-seats-left {
  background: var(--gold);
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
  padding: 2px 9px;
}

/* ── Paywall was/now price ──────────────────────── */
.paywall-was-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 4px;
}
.paywall-was-price {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  text-decoration: line-through;
}
.paywall-was-label {
  color: var(--muted);
  font-size: 12px;
}
.paywall-off-pill {
  background: #e53935;
  border-radius: 99px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
}
.paywall-now-row {
  align-items: baseline;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 0;
}

/* ── Paywall emotional quote ────────────────────── */
.paywall-emo {
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.70;
  margin: 0 0 20px;
  padding: 12px 16px;
  text-align: left;
}

/* ── Paywall star feature ───────────────────────── */
.paywall-feature-star {
  background: linear-gradient(135deg, rgba(212,160,48,0.08), transparent);
  border-bottom: 1px solid var(--line);
  color: #8c6a22 !important;
  font-weight: 700 !important;
  padding: 10px 4px !important;
}

/* ── Pricing strip ──────────────────────────────── */
.pricing-strip {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,248,232,0.95) 100%);
  border: 1px solid rgba(212, 160, 48, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 32px;
  margin: 32px auto 0;
  max-width: 680px;
  padding: clamp(20px, 3vw, 36px);
}

.pricing-card {
  flex: 0 0 auto;
  text-align: left;
  width: 200px;
}

.pricing-badge-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.pricing-founder-badge {
  background: linear-gradient(135deg, #d4a030, #f5c84a);
  border-radius: 99px;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
}
.pricing-seats {
  background: rgba(229, 57, 53, 0.10);
  border: 1px solid rgba(229, 57, 53, 0.28);
  border-radius: 99px;
  color: #c62828;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
}
.pricing-was {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  margin: 0 0 4px;
}
.pricing-was s { color: var(--muted); }
.pricing-off-tag {
  background: #e53935;
  border-radius: 99px;
  color: #fff;
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  margin-left: 6px;
  padding: 2px 10px;
  vertical-align: middle;
}
.perk-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212,160,48,0.08), rgba(212,160,48,0.03));
  border-color: rgba(212, 160, 48, 0.20);
}
.perk-wide strong { color: var(--gold); }

.pricing-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.pricing-big {
  color: var(--text);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 8px;
}
.pricing-big span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
}

.pricing-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}

.pricing-btn {
  background: linear-gradient(135deg, #d4a030 0%, #f5c84a 100%);
  border-radius: 40px;
  box-shadow: 0 6px 20px rgba(212, 160, 48, 0.32);
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  text-decoration: none;
  transition: box-shadow 200ms, transform 180ms;
}
.pricing-btn:hover {
  box-shadow: 0 10px 28px rgba(212, 160, 48, 0.48);
  transform: translateY(-1px);
}

.pricing-perks {
  display: grid;
  flex: 1;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.perk {
  align-items: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  padding: 12px 14px;
}

.perk-icon { font-size: 20px; flex-shrink: 0; }

@media (max-width: 620px) {
  .pricing-strip { flex-direction: column; gap: 20px; }
  .pricing-card { width: auto; }
  .pricing-perks { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  margin: 0 auto;
  max-width: 1840px;
  padding: 24px clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms;
}
.site-footer a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Cookie consent banner ──────────────────────── */
.cookie-banner {
  align-items: center;
  background: rgba(20, 12, 3, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 160, 48, 0.30);
  bottom: 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
  color: rgba(255,252,240,0.88);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(16px, 3vw, 36px);
  position: fixed;
  right: 0;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 800;
  flex-wrap: wrap;
}

.cookie-banner.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner p {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: none;
}
.cookie-banner a:hover { text-decoration: underline; }

.cookie-btn {
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  transition: opacity 150ms;
  white-space: nowrap;
}
.cookie-btn:hover { opacity: 0.88; }

/* ── Scrim ─────────────────────────────────────── */
.scrim {
  background: rgba(0, 0, 0, 0.18);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 250ms ease;
  z-index: 599;
}

.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES (privacy.html, terms.html)
   ═══════════════════════════════════════════════ */
.legal-page {
  padding: 0 8px 80px;
}

.legal-wrap {
  margin: 0 auto;
  max-width: 760px;
  padding: 36px 0 0;
}

.legal-eyebrow {
  color: var(--gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.legal-title {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.legal-meta {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  margin: 0 0 32px;
}

.legal-intro {
  background: rgba(212, 160, 48, 0.06);
  border: 1px solid rgba(212, 160, 48, 0.18);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 32px;
  padding: 18px 22px;
}

.legal-wrap h2 {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin: 36px 0 10px;
}

.legal-wrap p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.80;
  margin: 0 0 14px;
}

.legal-wrap ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-wrap li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-wrap a {
  color: var(--gold);
  text-decoration: none;
}
.legal-wrap a:hover { text-decoration: underline; }

.legal-wrap code {
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 6px;
}

.legal-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0 32px;
}

/* Important notice box (e.g. No Refunds) */
.legal-notice {
  background: rgba(212, 160, 48, 0.09);
  border: 1.5px solid rgba(212, 160, 48, 0.38);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.70;
  margin: 0 0 18px;
  padding: 16px 20px;
}

.legal-footer {
  color: var(--muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.9;
}
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   ROADMAP PAGE (roadmap.html)
   ═══════════════════════════════════════════════ */
.roadmap-section {
  margin-bottom: 52px;
}

.roadmap-badge {
  border-radius: 999px;
  display: inline-flex;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
  padding: 5px 14px;
  text-transform: uppercase;
}

.roadmap-badge--live   { background: rgba(34, 197, 94, 0.12); color: #16a34a; border: 1px solid rgba(34,197,94,0.28); }
.roadmap-badge--soon   { background: rgba(212, 160, 48, 0.10); color: #b07c10; border: 1px solid rgba(212,160,48,0.30); }
.roadmap-badge--future { background: rgba(99, 102, 241, 0.10); color: #4f46e5; border: 1px solid rgba(99,102,241,0.25); }

.roadmap-heading {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}

.roadmap-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  transition: box-shadow 200ms;
}
.roadmap-item:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.07); }

.roadmap-item--done   { border-left: 3px solid #22c55e; }
.roadmap-item--soon   { border-left: 3px solid var(--gold); }
.roadmap-item--future { border-left: 3px solid #818cf8; }

.roadmap-icon {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
  width: 20px;
}
.roadmap-item--done   .roadmap-icon { color: #22c55e; }
.roadmap-item--soon   .roadmap-icon { color: var(--gold); }
.roadmap-item--future .roadmap-icon { color: #818cf8; }

.roadmap-item strong {
  color: var(--text);
  display: block;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.roadmap-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.roadmap-tag {
  background: rgba(212, 160, 48, 0.10);
  border: 1px solid rgba(212, 160, 48, 0.22);
  border-radius: 999px;
  color: var(--gold);
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 8px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.roadmap-feedback {
  background: linear-gradient(135deg, rgba(212,160,48,0.06) 0%, rgba(212,160,48,0.03) 100%);
  border: 1px solid rgba(212, 160, 48, 0.22);
  border-radius: 18px;
  margin-bottom: 40px;
  padding: 24px 26px;
}

.roadmap-feedback-title {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.roadmap-feedback p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.roadmap-feedback a { color: var(--gold); text-decoration: none; }
.roadmap-feedback a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1220px) {
  .hero-copy { padding-right: 0; }
  .selector-section:first-child { max-width: none; position: static; right: auto; top: auto; width: auto; }
  .selector-section:last-child { margin-top: 0; }
}

/* ════════════════════════════════════════════════
   TEACHING CHARACTER — fairy or monster, random per session
   ════════════════════════════════════════════════ */

/* ── Shared keyframes ───────────────────────────── */
@keyframes charSlide {
  0%   { transform: translateX(-52px) translateY(28px) scale(0.55); opacity: 0; }
  48%  { transform: translateX(10px)  translateY(-4px) scale(1.14);  opacity: 1; }
  72%  { transform: translateX(-4px)  translateY(2px)  scale(0.96);             }
  100% { transform: translateX(0px)   translateY(0px)  scale(1);     opacity: 1; }
}

/* ── Fairy keyframes ────────────────────────────── */
@keyframes fairyBob {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-13px); }
}
@keyframes fairyLean {
  0%   { transform: rotate(0deg);   }
  30%  { transform: rotate(-14deg); }
  65%  { transform: rotate(-9deg);  }
  100% { transform: rotate(0deg);   }
}
@keyframes wingFlapUL { from { transform: rotate(-6deg);  } to { transform: rotate(-50deg); } }
@keyframes wingFlapUR { from { transform: rotate(6deg);   } to { transform: rotate(50deg);  } }
@keyframes wingFlapLL { from { transform: rotate(-4deg);  } to { transform: rotate(-34deg); } }
@keyframes wingFlapLR { from { transform: rotate(4deg);   } to { transform: rotate(34deg);  } }
@keyframes wandTipPulse {
  0%, 100% { opacity: 0.80; transform: scale(1);   }
  50%       { opacity: 1.00; transform: scale(1.5); }
}

/* ── Monster keyframes ──────────────────────────── */
/* Squash-and-stretch bob — very Pixar */
@keyframes monsterBob {
  0%    { transform: translateY(0px)    scaleY(1.00) scaleX(1.00); }
  25%   { transform: translateY(-4px)   scaleY(1.03) scaleX(0.98); }
  50%   { transform: translateY(-11px)  scaleY(1.06) scaleX(0.95); }
  75%   { transform: translateY(-4px)   scaleY(1.03) scaleX(0.98); }
  100%  { transform: translateY(0px)    scaleY(1.00) scaleX(1.00); }
}
/* Swoop in from bottom-left on each new card */
@keyframes monsterSlide {
  0%   { transform: translateX(-52px) translateY(28px) scale(0.55); opacity: 0; }
  48%  { transform: translateX(10px)  translateY(-4px) scale(1.14);  opacity: 1; }
  72%  { transform: translateX(-4px)  translateY(2px)  scale(0.96);             }
  100% { transform: translateX(0px)   translateY(0px)  scale(1);     opacity: 1; }
}
/* Excited lean toward product on arrival (one-shot) */
@keyframes monsterLean {
  0%   { transform: rotate(0deg)   scale(1.00); }
  30%  { transform: rotate(-13deg) scale(1.06); }
  65%  { transform: rotate(-8deg)  scale(1.02); }
  100% { transform: rotate(0deg)   scale(1.00); }
}
/* Fingertip star pulse */
@keyframes tipGlow {
  0%, 100% { opacity: 0.80; transform: scale(1);    }
  50%       { opacity: 1.00; transform: scale(1.60); }
}
/* Eyebrow curious wiggle */
@keyframes browWiggle {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-3px); }
}
/* Eye blink — scaleY(0)=open, scaleY(1)=closed */
@keyframes eyeBlink {
  0%, 87%, 100% { transform: scaleY(0); }
  92%            { transform: scaleY(1); }
}
/* Sparkles from fingertip toward product */
@keyframes sparkFly1 {
  0%   { opacity: 0; transform: translate(0,0)        scale(0.5); }
  16%  { opacity: 1; transform: translate(0,0)        scale(1.3); }
  100% { opacity: 0; transform: translate(52px,-46px) scale(0.2); }
}
@keyframes sparkFly2 {
  0%   { opacity: 0; transform: translate(0,0)        scale(0.5); }
  16%  { opacity: 1; transform: translate(0,0)        scale(1.3); }
  100% { opacity: 0; transform: translate(74px,-10px) scale(0.2); }
}
@keyframes sparkFly3 {
  0%   { opacity: 0; transform: translate(0,0)        scale(0.5); }
  16%  { opacity: 1; transform: translate(0,0)        scale(1.3); }
  100% { opacity: 0; transform: translate(46px,24px)  scale(0.2); }
}

/* ── Structure ─────────────────────────────────── */
/* ── Structure (shared) ─────────────────────────── */
.fs-image-side { overflow: visible; }

.fairy-scene {
  bottom: 12%;
  left: 6px;
  pointer-events: none;
  position: absolute;
  z-index: 10;
}
.fairy-scene.is-arriving .fairy-move {
  animation: charSlide 0.90s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.fairy-bob { position: relative; }

/* SVG base (shared) */
.fairy-svg {
  display: block;
  width: 145px;
  height: auto;
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ── FAIRY ──────────────────────────────────────── */
.char-fairy .fairy-bob { animation: fairyBob 2.8s ease-in-out infinite; }
.char-fairy .fairy-svg {
  filter: drop-shadow(0 4px 14px rgba(180,80,255,0.38));
  transform-origin: 56px 62px;
}
.char-fairy.is-arriving .fairy-svg {
  animation: fairyLean 1.1s ease both;
  transform-origin: 56px 62px;
}
.char-fairy.is-pointing .fairy-svg  { transform: rotate(-16deg) translateX(5px); }
/* Wings */
.fw { transform-box: fill-box; }
.fw-ul { transform-origin: 100% 100%; animation: wingFlapUL 0.28s ease-in-out infinite alternate; }
.fw-ur { transform-origin: 0%   100%; animation: wingFlapUR 0.28s ease-in-out infinite alternate; }
.fw-ll { transform-origin: 100% 0%;   animation: wingFlapLL 0.28s ease-in-out infinite alternate; animation-delay: 0.07s; }
.fw-lr { transform-origin: 0%   0%;   animation: wingFlapLR 0.28s ease-in-out infinite alternate; animation-delay: 0.07s; }
/* Wand tip */
.fairy-wand-tip { animation: wandTipPulse 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
/* Fairy sparkle origin — wand tip */
.char-fairy .fairy-sp { left: 128px; top: 16px; }

/* ── MONSTER ────────────────────────────────────── */
.char-monster .fairy-bob { animation: monsterBob 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.char-monster .fairy-svg {
  filter: drop-shadow(0 6px 22px rgba(109,40,217,0.48));
  transform-origin: 55px 78px;
}
.char-monster.is-arriving .fairy-svg {
  animation: monsterLean 1.1s ease both;
  transform-origin: 55px 78px;
}
.char-monster.is-pointing .fairy-svg { transform: rotate(-12deg) translateX(6px) scale(1.05); }
/* Monster parts */
.m-brow { transform-box: fill-box; transform-origin: 50% 100%; animation: browWiggle 2.4s ease-in-out infinite; }
.m-tip  { animation: tipGlow 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.m-lid  { transform-box: fill-box; transform-origin: 50% 0%; animation: eyeBlink 4.0s ease-in-out infinite; }
/* Monster sparkle origin — fingertip */
.char-monster .fairy-sp { left: 116px; top: 18px; }

/* ── Sparkles (shared) ──────────────────────────── */
.fairy-sp { font-size: 20px; opacity: 0; position: absolute; }
.fairy-scene.is-pointing .sp1 { animation: sparkFly1 1.20s 0.00s ease-in-out infinite; }
.fairy-scene.is-pointing .sp2 { animation: sparkFly2 1.20s 0.40s ease-in-out infinite; }
.fairy-scene.is-pointing .sp3 { animation: sparkFly3 1.20s 0.80s ease-in-out infinite; }

/* ── Responsive tweaks ─────────────────────────── */
@media (max-width: 820px) {
  .fairy-scene { bottom: 10%; left: 4px; }
  .fairy-svg   { width: 115px; }
  .char-fairy   .fairy-sp { font-size: 16px; left: 102px; top: 13px; }
  .char-monster .fairy-sp { font-size: 16px; left: 92px;  top: 14px; }
}
@media (max-width: 540px) {
  .fairy-scene { bottom: 6%; left: 2px; }
  .fairy-svg   { width: 95px; }
  .char-fairy   .fairy-sp { font-size: 13px; left: 85px; top: 11px; }
  .char-monster .fairy-sp { font-size: 13px; left: 76px; top: 12px; }
}

@media (max-width: 1100px) {
  .fs-detail-side { width: clamp(260px, 30vw, 320px); }
}

/* ─── Kids panel animations ──────────────────────── */
@keyframes kidsBarShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes starBob {
  0%, 100% { transform: translateY(0)   rotate(-6deg)  scale(1);    opacity: 0.75; }
  50%       { transform: translateY(-9px) rotate(8deg)  scale(1.18); opacity: 1;    }
}
@keyframes starPop {
  0%, 100% { transform: scale(1)    rotate(0deg);   opacity: 0.6; }
  40%       { transform: scale(1.3)  rotate(18deg);  opacity: 1;   }
  70%       { transform: scale(0.9)  rotate(-10deg); opacity: 0.8; }
}
@keyframes panelGlow {
  0%, 100% { box-shadow: 0 -8px 28px rgba(220,120,190,0.14); }
  50%       { box-shadow: 0 -8px 36px rgba(220,120,190,0.22); }
}

/* Stars decoration bar — hidden on desktop */
.kids-stars-deco { display: none; }

/* Tablet — stack image above, detail below */
@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .top-actions { flex-wrap: wrap; }
  .selector-layout, .feature-strip { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }

  .fs-wrap { flex-direction: column; }
  .fs-image-side { flex: 0 0 52svh; min-height: 0; } /* svh = smallest viewport, fits even with browser chrome visible */
  .fs-image-side .real-photo-frame { padding: 16px 16px 56px; }

  /* ── Floating stars bar ── */
  .kids-stars-deco {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 8px;
    pointer-events: none;
    width: 100%;
  }
  .kids-stars-deco span {
    animation: starBob 2.8s ease-in-out infinite;
    display: inline-block;
    font-size: 20px;
    line-height: 1;
  }
  /* stagger each star so they don't all bob together */
  .kids-stars-deco span:nth-child(1) { animation: starBob  2.6s ease-in-out 0.00s infinite; }
  .kids-stars-deco span:nth-child(2) { animation: starPop  3.1s ease-in-out 0.25s infinite; }
  .kids-stars-deco span:nth-child(3) { animation: starBob  2.9s ease-in-out 0.50s infinite; }
  .kids-stars-deco span:nth-child(4) { animation: starPop  2.4s ease-in-out 0.10s infinite; }
  .kids-stars-deco span:nth-child(5) { animation: starBob  3.3s ease-in-out 0.70s infinite; }
  .kids-stars-deco span:nth-child(6) { animation: starPop  2.7s ease-in-out 0.35s infinite; }
  .kids-stars-deco span:nth-child(7) { animation: starBob  3.0s ease-in-out 0.60s infinite; }

  /* ── Kids-friendly detail panel ── */
  .fs-detail-side {
    align-items: center;
    /* soft blush → pale lavender → very light sky — clean and gentle */
    background: linear-gradient(160deg, #fff5fb 0%, #fdf0ff 42%, #f4efff 72%, #eef5ff 100%);
    border-left: none;
    border-radius: 32px 32px 0 0;
    border-top: 3px solid rgba(210,130,200,0.55);
    animation: panelGlow 3.6s ease-in-out infinite;
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 18px;
    position: relative;
    text-align: center;
    width: 100%;
  }

  /* Subtle star-dot pattern in background */
  .fs-detail-side::after {
    content: "";
    background-image:
      radial-gradient(circle, rgba(210,130,200,0.10) 1.5px, transparent 1.5px),
      radial-gradient(circle, rgba(150,110,240,0.07) 1px,   transparent 1px);
    background-size: 28px 28px, 18px 18px;
    background-position: 0 0, 9px 9px;
    border-radius: 32px 32px 0 0;
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
  }
  /* push real content above the pattern — exclude exit btn so it stays absolute */
  .fs-detail-side > *:not(.fs-exit-btn) { position: relative; z-index: 1; }

  /* Exit button — firmly top-right, never flows with centered content */
  .fs-exit-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 10;
    border-color: rgba(200,100,180,0.30);
    color: #b060a0;
  }
  .fs-exit-btn:hover { background: rgba(255,94,200,0.10); }

  /* Center the breadcrumb */
  .fs-breadcrumb { margin-bottom: 4px; text-align: center; padding-right: 40px; color: #b06cb0; }
  .fs-dot { color: #d060a8; }

  /* Bigger bouncy letter — soft rose glow */
  .fs-letter {
    color: #c4448e;
    font-size: clamp(78px, 16vw, 140px);
    margin: 0 0 4px;
    text-shadow:
      3px 3px 0 rgba(200,100,180,0.18),
      0 0 22px rgba(200,100,180,0.18);
  }

  /* Kicker — muted rose */
  .fs-kicker { color: #b8509a; letter-spacing: 0.28em; }

  /* Word — deep readable plum */
  .fs-word {
    color: #3a1a52;
    font-size: clamp(22px, 5vw, 32px);
    letter-spacing: 0.01em;
  }

  /* Category tag — soft purple */
  .fs-cat-label { color: #7a3aaa; letter-spacing: 0.22em; margin-bottom: 8px; }

  /* Explanation copy — dark readable */
  .fs-explanation {
    color: #3a2050;
    font-size: clamp(13px, 3.2vw, 15px);
    line-height: 1.6;
    max-width: 480px;
  }

  /* Footer separator line — faint */
  .fs-footer { border-top-color: rgba(200,130,190,0.20); }

  /* Progress label text */
  .fs-progress-row { color: #9a62a0; }

  /* Navigation buttons — big round candy */
  .fs-nav-row { gap: 10px; justify-content: center; margin-top: 4px; }

  /* ← prev — soft rose */
  #prevBtn {
    background: linear-gradient(135deg, #f09cc8 0%, #c4448e 100%);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(196,68,142,0.28);
    flex: 0 0 60px;
    font-size: 26px;
    height: 60px;
    width: 60px;
  }
  #prevBtn:hover { opacity: 0.88; }
  #prevBtn:active { transform: scale(0.92); }

  /* → next — sky blue / purple */
  #nextBtn {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(124,58,237,0.32);
    flex: 0 0 60px;
    font-size: 26px;
    height: 60px;
    width: 60px;
  }
  #nextBtn:hover { opacity: 0.88; }
  #nextBtn:active { transform: scale(0.92); }

  /* 🔊 Speak — warm rose-purple pill */
  .fs-voice-btn {
    background: linear-gradient(135deg, #e088c4 0%, #9b36b8 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(155,54,184,0.26);
    color: #fff;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    height: 56px;
    letter-spacing: 0.05em;
    padding: 0 22px;
  }
  .fs-voice-btn:hover { background: linear-gradient(135deg, #eda0d4 0%, #af4acf 100%); }

  /* Auto — mint/teal outline */
  .fs-auto-btn {
    background: rgba(255,255,255,0.55);
    border: 2px solid #a78bfa;
    border-radius: 30px;
    color: #7c3aed;
    font-size: 11px;
    height: 56px;
    padding: 0 14px;
  }
  .fs-auto-btn.is-on {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border-color: transparent;
    color: #fff;
  }

  /* Rainbow shimmer progress bar */
  .fs-prog-bar {
    background: rgba(255,100,200,0.12);
  }
  .fs-prog-bar span {
    background: linear-gradient(90deg, #ff6ec7, #c026d3, #7c3aed, #38bdf8, #34d399, #fbbf24, #ff6ec7);
    background-size: 200% 100%;
    animation: kidsBarShimmer 2s linear infinite;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .app-shell { padding: 6px; }
  .nav-link { display: none; }
  .category-grid { grid-template-columns: 1fr; }

  .fs-image-side { flex: 0 0 44vh; }
  .fs-image-side .real-photo-frame { padding: 10px 10px 46px; }
  .fs-letter { font-size: clamp(64px, 18vw, 104px); }
  .fs-word { font-size: clamp(20px, 5.5vw, 28px); }
  .fs-explanation { font-size: 13px; }
  .fs-detail-side { padding: 12px 14px 14px; }
  .kids-stars-deco span { font-size: 17px; }
  #prevBtn, #nextBtn { flex: 0 0 56px; height: 56px; width: 56px; font-size: 24px; }
  .fs-voice-btn, .fs-auto-btn { height: 50px; }
}

/* Small mobile */
@media (max-width: 380px) {
  .fs-image-side { flex: 0 0 38vh; }
  .fs-detail-side { padding: 10px 12px 12px; }
  .fs-letter { font-size: clamp(56px, 20vw, 90px); }
  .kids-stars-deco span { font-size: 15px; }
  #prevBtn, #nextBtn { flex: 0 0 50px; height: 50px; width: 50px; font-size: 21px; }
}

/* ── Mobile landscape — prevent squash/overlap on rotation ──────────────
   When a phone is rotated the viewport flips to ~375–430px tall.
   The max-width portrait rules still fire, stacking layout in a tiny box.
   This query reverts to the side-by-side layout whenever height < 500px.
   ─────────────────────────────────────────────────────────────────────── */
@media (orientation: landscape) and (max-height: 500px) {

  /* ── Revert to horizontal layout ── */
  .fs-wrap { flex-direction: row !important; }
  .fs-image-side {
    flex: 1 !important;
    min-height: 0 !important;
  }
  .fs-image-side .real-photo-frame { padding: 6px 8px 36px !important; }

  /* ── Detail panel becomes a right column ── */
  .fs-detail-side {
    align-items: flex-start !important;
    animation: none !important;
    border-left: 2px solid rgba(210,130,200,0.48) !important;
    border-radius: 0 !important;
    border-top: none !important;
    flex: none !important;
    overflow-y: auto;
    padding: 8px 10px 8px !important;
    text-align: left !important;
    width: clamp(170px, 34vw, 245px) !important;
  }
  .fs-detail-side::after { border-radius: 0 !important; }

  /* ── No room for the star bar ── */
  .kids-stars-deco { display: none !important; }

  /* ── Compact text ── */
  .fs-breadcrumb  { margin-bottom: 2px !important; padding-right: 30px !important; }
  .fs-letter      { font-size: clamp(38px, 8vw, 64px) !important; margin: 0 0 2px !important; }
  .fs-word        { font-size: clamp(13px, 3vw, 17px) !important; }
  .fs-kicker      { font-size: 9px !important; letter-spacing: 0.16em !important; }
  .fs-cat-label   { font-size: 9px !important; margin-bottom: 3px !important; }
  .fs-explanation { font-size: 10px !important; line-height: 1.4 !important; max-height: 2.8em !important; overflow: hidden !important; }

  /* ── Compact controls ── */
  .fs-nav-row  { gap: 6px !important; margin-top: 2px !important; }
  #prevBtn, #nextBtn {
    flex: 0 0 42px !important;
    font-size: 18px !important;
    height: 42px !important;
    width: 42px !important;
  }
  .fs-voice-btn  { font-size: 12px !important; height: 42px !important; padding: 0 14px !important; }
  .fs-auto-btn   { font-size: 10px !important; height: 42px !important; padding: 0 10px !important; }
  .fs-exit-btn   { right: 8px !important; top: 8px !important; }

  /* ── Smaller character ── */
  .fairy-scene { bottom: 4% !important; left: 2px !important; }
  .fairy-svg   { width: 78px !important; }
  .char-fairy   .fairy-sp { font-size: 11px !important; left: 64px !important; top: 8px !important; }
  .char-monster .fairy-sp { font-size: 11px !important; left: 58px !important; top: 10px !important; }
}
