/* ═══════════════════════════════════════════════════════════════
   Sunny – neon, kid-friendly, full-height theme (fills the window; never requests device full screen)
   Palette: deep night background + glowing cyan / pink / lime / yellow.
   All glow colours are CSS variables – tweak the theme here.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg0: #0b0726;
  --bg1: #170b4a;
  --ink: #f6f3ff;
  --ink-soft: #bcb4ea;
  --ink-dim: #7d74b3;
  --cyan: #22e4ff;
  --pink: #ff3fd2;
  --lime: #9dff3a;
  --yellow: #ffe23f;
  --orange: #ff8a3d;
  --purple: #9b5cff;
  --red: #ff4d6d;
  --ok: var(--lime);      /* aliases used by app.js status dots */
  --warn: var(--yellow);
  --err: var(--red);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 26px;
  --glow-cyan: 0 0 8px rgba(34, 228, 255, .8), 0 0 24px rgba(34, 228, 255, .45);
  --glow-pink: 0 0 8px rgba(255, 63, 210, .85), 0 0 26px rgba(255, 63, 210, .45);
  --glow-lime: 0 0 8px rgba(157, 255, 58, .85), 0 0 24px rgba(157, 255, 58, .4);
  --glow-yellow: 0 0 8px rgba(255, 226, 63, .85), 0 0 24px rgba(255, 226, 63, .4);
  --mic-level: 0;
  /* Fredoka: rounded, friendly Google Font (variable weight 300–700), self-hosted via /vendor/fredoka */
  font-family: "Fredoka Variable", "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* the hidden attribute must win over component display rules */
html, body { height: 100%; margin: 0; }
body { background: var(--bg0); overflow: hidden; min-height: 100dvh; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
b { color: var(--yellow); }

/* ───────── Animated background ───────── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(1200px 800px at 15% 10%, #2a1170 0%, transparent 60%),
              radial-gradient(1000px 700px at 90% 90%, #0d3d6e 0%, transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg0) 70%); }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .38; animation: drift 22s ease-in-out infinite alternate; }
.b1 { background: var(--pink); left: -14vmax; top: -16vmax; }
.b2 { background: var(--cyan); right: -16vmax; bottom: -18vmax; animation-duration: 26s; }
.b3 { background: var(--purple); left: 40%; top: 45%; width: 30vmax; height: 30vmax; opacity: .25; animation-duration: 30s; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
.stars { position: absolute; inset: -50%; opacity: .7; animation: twinkle 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 30% 70%, #fff, transparent),
    radial-gradient(2px 2px at 55% 35%, #fff, transparent), radial-gradient(1.5px 1.5px at 75% 15%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 45% 85%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 50%, #fff, transparent), radial-gradient(2px 2px at 65% 90%, #fff, transparent);
  background-size: 420px 420px; }
.stars.s2 { background-size: 300px 300px; opacity: .45; animation-delay: -2.5s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .8; } }

/* ───────── Screens ───────── */
.screen { display: none; position: relative; z-index: 1; height: 100dvh; }
.screen.is-active { display: grid; }

/* Glass panel */
.panel { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1.5px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }

/* ───────── Landing ───────── */
#landing { grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.25fr); gap: 28px; padding: 28px 36px; align-items: stretch; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.mascot-ring { width: clamp(150px, 24vh, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(34,228,255,.18), transparent 70%); animation: float 4s ease-in-out infinite; }
.mascot-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 4px;
  background: conic-gradient(var(--cyan), var(--pink), var(--yellow), var(--lime), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite; filter: drop-shadow(0 0 10px rgba(255,63,210,.7)); }
.landing-face { width: 78%; height: 84%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.02; margin: 18px 0 10px; letter-spacing: -0.02em; font-weight: 700; }
.neon-word { color: #fff; text-shadow: var(--glow-cyan); }
.brand { color: var(--pink); text-shadow: var(--glow-pink); }
.lead { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.25rem); margin: 0 0 18px; max-width: 30ch; }
.hero-badges { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; justify-content: center; }
.hero-badges li { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; }
.hero-badges li:nth-child(1) .icon { color: var(--lime); }
.hero-badges li:nth-child(2) .icon { color: var(--yellow); }
.hero-badges li:nth-child(3) .icon { color: var(--pink); }
.bridge-status { font-size: .85rem; color: var(--ink-dim); margin: 0; }
.bridge-status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 8px currentColor; }

.landing-panel { padding: 22px 26px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; align-self: center; max-height: 100%; }
.step-title { font-size: 1.2rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; font-weight: 700; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem;
  background: var(--cyan); color: var(--bg0); box-shadow: var(--glow-cyan); }
.step-num.s2 { background: var(--pink); box-shadow: var(--glow-pink); }

.age-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
.age-btn { aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--line); background: var(--glass); font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700;
  transition: transform .12s ease, border-color .15s, box-shadow .15s, background .15s; }
.age-btn:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.age-btn[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--bg0); box-shadow: var(--glow-yellow); transform: translateY(-3px) scale(1.06); }
.age-hint { min-height: 1.4em; color: var(--lime); text-shadow: 0 0 10px rgba(157,255,58,.5); margin: 10px 0 8px; font-weight: 600; }

/* ───────── 30-day plan ───────── */
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-head .step-title { margin-bottom: 8px; }
.plan-count { font-weight: 700; color: var(--lime); text-shadow: 0 0 10px rgba(157,255,58,.5); }
.bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; }
.bar.small { height: 9px; margin: 12px 0 4px; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: var(--glow-lime); transition: width .6s ease; }
.plan-weeks { display: grid; gap: 7px; }
.week-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; }
.week-label { font-size: .78rem; font-weight: 600; color: var(--ink-dim); line-height: 1.15; text-transform: uppercase; letter-spacing: .05em; }
.week-label b { display: block; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.day-tiles { display: flex; flex-wrap: wrap; gap: 7px; }
.day-tile { width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--line); background: var(--glass); font-weight: 700; font-size: 1.05rem;
  position: relative; transition: transform .12s, border-color .15s, box-shadow .15s; }
.day-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.day-tile.review { border-style: dashed; }
.day-tile.done { background: rgba(157,255,58,.16); border-color: var(--lime); color: var(--lime); box-shadow: 0 0 12px rgba(157,255,58,.35); }
.day-tile.done::after, .day-tile:disabled::after { content: ""; position: absolute; right: -6px; top: -8px; width: 16px; height: 16px;
  background: var(--yellow); -webkit-mask: url(/icons/star.svg) center / contain no-repeat; mask: url(/icons/star.svg) center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(255,226,63,.9)); }
.day-tile:disabled::after { width: 12px; height: 12px; right: -4px; top: -5px; background: var(--ink-soft); filter: none;
  -webkit-mask-image: url(/icons/lock.svg); mask-image: url(/icons/lock.svg); }
.day-tile.current { border-color: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
.day-tile[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
.day-tile:disabled { opacity: .3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255,63,210,.18), var(--glow-pink); } }

.start-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 16px; }
.day-detail { padding: 14px 16px; border-radius: 18px; background: rgba(0,0,0,.22); border: 1.5px solid var(--line); }
.day-detail h3 { margin: 2px 0 2px; font-size: 1.3rem; }
.day-kicker { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 10px rgba(34,228,255,.5); }
.day-goal { margin: 0 0 10px; color: var(--ink-soft); }
.start-col { text-align: center; }
.mic-note { color: var(--ink-soft); font-size: .82rem; margin: 10px 0 0; max-width: 22ch; }

.start-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700;
  padding: 18px 32px; border: 0; border-radius: 999px; color: var(--bg0);
  /* gradient repeats seamlessly (ends on the colour it starts with) so the shimmer has no seam */
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink), var(--orange), var(--yellow)); background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(255,138,61,.7), 0 0 44px rgba(255,63,210,.45); animation: shimmer 3s linear infinite;
  transition: transform .15s, filter .15s, opacity .15s; }
.start-btn .icon { width: 26px; height: 26px; }
.start-btn.small .icon { width: 20px; height: 20px; }
.start-btn:not(:disabled):hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.1); }
.start-btn:disabled { opacity: .35; animation: none; box-shadow: none; }
.start-btn.small { font-size: 1.05rem; padding: 11px 22px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; transition: all .3s; }
.chip.used { background: var(--lime); border-color: var(--lime); color: var(--bg0); box-shadow: var(--glow-lime); }
.chip.pop { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.3) rotate(-3deg); } }

.reset-row { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.trash-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: rgba(255,77,109,.08); border: 1.5px solid rgba(255,77,109,.45); color: #ff9db0; transition: all .2s; }
.trash-btn .icon { width: 18px; height: 18px; }
.trash-btn:hover { background: rgba(255,77,109,.18); border-color: var(--red); color: #fff; box-shadow: 0 0 14px rgba(255,77,109,.55); }
.reset-confirm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; width: 100%;
  padding: 12px 14px; border-radius: 18px; background: rgba(255,77,109,.1); border: 2px solid rgba(255,77,109,.55); animation: repeat-in .35s ease; }
.reset-confirm.final { background: rgba(255,77,109,.18); border-color: var(--red); box-shadow: 0 0 22px rgba(255,77,109,.45); }
.reset-confirm p { margin: 0; flex: 1; min-width: 200px; font-weight: 600; }
.reset-confirm b { color: #fff; }
.reset-icon { width: 26px; height: 26px; color: var(--red); filter: drop-shadow(0 0 6px rgba(255,77,109,.8)); }
.danger-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; box-shadow: 0 0 14px rgba(255,77,109,.6); transition: opacity .2s; }
.danger-btn:disabled { opacity: .4; box-shadow: none; }
.ghost-btn { background: var(--glass); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.ghost-btn:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.ghost-btn.small { padding: 6px 12px; }

.notice { margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(34,228,255,.12); border: 1.5px solid rgba(34,228,255,.5); font-weight: 700; }
.notice-error { background: rgba(255,77,109,.14); border-color: var(--red); }
.notice-warn { background: rgba(255,226,63,.12); border-color: var(--yellow); }

/* ───────── Stage ───────── */
#stage { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; padding: 16px 20px 18px; }
.stage-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.stage-header { display: flex; align-items: center; gap: 12px; }
.level-chip { margin-left: auto; font-weight: 600; color: var(--ink-soft); }
.phase-pill { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.12); border: 1.5px solid var(--line); transition: all .25s; }
.phase-pill[data-phase="listening"] { background: var(--lime); border-color: var(--lime); color: var(--bg0); box-shadow: var(--glow-lime); }
.phase-pill[data-phase="thinking"]  { background: var(--cyan); border-color: var(--cyan); color: var(--bg0); box-shadow: var(--glow-cyan); }
.phase-pill[data-phase="speaking"]  { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
.phase-pill[data-phase="done"]      { background: var(--yellow); border-color: var(--yellow); color: var(--bg0); box-shadow: var(--glow-yellow); }

.avatar-wrap { position: relative; flex: 1; min-height: 240px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 80% at 50% 40%, #3b2a8c 0%, #1d1356 55%, #0f0a33 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px rgba(34,228,255,.55), 0 0 30px rgba(34,228,255,.35), 0 0 60px rgba(255,63,210,.25), inset 0 0 80px rgba(0,0,0,.45);
  transition: box-shadow .3s; }
#stage[data-phase="speaking"] .avatar-wrap { box-shadow: 0 0 0 2px rgba(255,63,210,.8), 0 0 34px rgba(255,63,210,.5), 0 0 70px rgba(255,63,210,.25), inset 0 0 80px rgba(0,0,0,.45); }
#stage[data-phase="listening"] .avatar-wrap { box-shadow: 0 0 0 2px rgba(157,255,58,.8), 0 0 34px rgba(157,255,58,.45), 0 0 70px rgba(34,228,255,.25), inset 0 0 80px rgba(0,0,0,.45); }
.avatar3d { position: absolute; inset: 0; }
.avatar3d canvas { display: block; width: 100% !important; height: 100% !important; }
.face { position: absolute; inset: 6% 25%; }
.avatar-loading { position: absolute; inset: auto 0 20px 0; text-align: center; font-weight: 700; color: var(--cyan); text-shadow: var(--glow-cyan); }
.mic-halo { position: absolute; left: 50%; top: 48%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(calc(0.85 + var(--mic-level) * 0.35));
  background: radial-gradient(circle, rgba(157,255,58,.35), rgba(157,255,58,0) 65%);
  opacity: 0; transition: opacity .25s, transform .08s linear; pointer-events: none; }
#stage[data-phase="listening"] .mic-halo { opacity: 1; }

.captions { border-radius: var(--radius); padding: 18px 24px 14px; text-align: center;
  background: rgba(8, 5, 30, .62); border: 1.5px solid var(--line); backdrop-filter: blur(10px); }
/* ── Karaoke captions: one visible line; words fill as they are sung ──
   .track holds every word (wrapping); .ai-caption is exactly one line tall and app.js slides the track up
   line by line. Each .w is text-clipped with two layers: the FILL (sized 0→100% over --dur) and the dim BASE.
   Per-lesson look: .captions[data-style="neon|rainbow|bubble|bounce|zoom|wave"]. */
.captions { --fill: var(--yellow); --fill-img: linear-gradient(var(--fill), var(--fill)); --base: rgba(255,255,255,.3); --glow: rgba(255,226,63,.85); }
.ai-caption { --lh: 1.7em; margin: 0; height: var(--lh); overflow: hidden; font-size: clamp(1.45rem, 3vw, 2.4rem); font-weight: 700; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%); }
.ai-caption .track { line-height: var(--lh); transition: transform .5s cubic-bezier(.2, .85, .25, 1.15); }
.ai-caption .track.line-in { animation: line-in .45s ease-out; }
@keyframes line-in { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }
.ai-caption .w { display: inline-block; position: relative; isolation: isolate; padding: 0 .05em;
  color: transparent; background-image: var(--fill-img), linear-gradient(var(--base), var(--base));
  background-repeat: no-repeat; background-size: 0% 100%, 100% 100%;
  -webkit-background-clip: text; background-clip: text; transform-origin: 50% 80%; }
.ai-caption .w.current { animation: wipe var(--dur, 300ms) linear forwards; filter: drop-shadow(0 0 10px var(--glow)); }
.ai-caption .w.spoken { background-size: 100% 100%, 100% 100%; }
@keyframes wipe { to { background-size: 100% 100%, 100% 100%; } }

/* neon: classic yellow karaoke wipe with a glow */
.captions[data-style="neon"] { --fill: var(--yellow); --glow: rgba(255,226,63,.9); }

/* rainbow: rainbow fill, the sung word hops */
.captions[data-style="rainbow"] { --fill-img: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow), var(--lime)); --glow: rgba(255,63,210,.8); }
.captions[data-style="rainbow"] .w.current { animation: wipe var(--dur, 300ms) linear forwards, hop .42s cubic-bezier(.3,1.6,.5,1); }

/* bubble: a pink pill grows behind the sung word, text turns white */
.captions[data-style="bubble"] { --fill: #fff; --glow: rgba(255,63,210,.0); }
/* plain text colour here (no text-clip): a clipped background would be painted under the pill */
.captions[data-style="bubble"] .w { background: none; color: var(--base); transition: color .2s; }
.captions[data-style="bubble"] .w.current, .captions[data-style="bubble"] .w.spoken { color: #fff; animation: none; filter: none; }
.captions[data-style="bubble"] .w::before { content: ""; position: absolute; inset: .14em -.12em; z-index: -1; border-radius: .6em;
  background: var(--pink); box-shadow: var(--glow-pink); transform: scaleX(0); transform-origin: left; opacity: 0; }
.captions[data-style="bubble"] .w.current::before { opacity: 1; animation: bubble-grow var(--dur, 300ms) ease-out forwards; }
.captions[data-style="bubble"] .w.spoken::before { opacity: 0; transition: opacity .3s; transform: scaleX(1); }
@keyframes bubble-grow { to { transform: scaleX(1); } }

/* bounce: cyan fill, each word bounces when sung */
.captions[data-style="bounce"] { --fill: var(--cyan); --glow: rgba(34,228,255,.9); }
.captions[data-style="bounce"] .w.current { animation: wipe var(--dur, 300ms) linear forwards, bounce .5s cubic-bezier(.28,1.8,.5,1); }

/* zoom: pink fill, the sung word grows big */
.captions[data-style="zoom"] { --fill: var(--pink); --glow: rgba(255,63,210,.95); }
.captions[data-style="zoom"] .w { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.captions[data-style="zoom"] .w.current { transform: scale(1.22); }

/* wave: lime fill, sung words keep gently waving */
.captions[data-style="wave"] { --fill: var(--lime); --glow: rgba(157,255,58,.9); }
.captions[data-style="wave"] .w.current { animation: wipe var(--dur, 300ms) linear forwards, hop .4s ease-out; }
.captions[data-style="wave"] .w.spoken { animation: wave 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * -110ms); }

@keyframes hop { 40% { transform: translateY(-.22em) rotate(-3deg); } }
@keyframes bounce { 30% { transform: translateY(-.3em) scale(1.12, .92); } 60% { transform: translateY(0) scale(.95, 1.06); } }
@keyframes wave { 50% { transform: translateY(-.1em); } }

.ai-caption.thinking .thinking-text { color: var(--cyan); text-shadow: 0 0 12px rgba(34,228,255,.55); }
.ai-caption.thinking .thinking-text::after { content: ""; display: inline-block; width: 1.6em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* The child's words: one line, newest words win (app.js trims the start of long text) */
.child-caption { margin: 8px 0 0; font-size: 1.1rem; color: var(--ink-soft); min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.child-caption .label { font-weight: 700; color: var(--lime); text-shadow: 0 0 10px rgba(157,255,58,.5); margin-right: 6px; }
.child-caption.interim { font-style: italic; opacity: .8; }

/* Lesson panel */
.lesson-panel { padding: 20px 20px 22px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; min-height: 0; }
.lesson-panel h2 { margin: 4px 0 4px; font-size: 1.55rem; font-weight: 700; }
.panel-h { margin: 18px 0 10px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.panel-h .title { display: inline-flex; align-items: center; gap: 8px; }
.panel-h .title .icon { width: 20px; height: 20px; color: var(--yellow); filter: drop-shadow(0 0 5px rgba(255,226,63,.7)); }
.panel-h .title .i-chat { color: var(--pink); filter: drop-shadow(0 0 5px rgba(255,63,210,.7)); }
.panel-h .count { display: inline-flex; align-items: center; gap: 4px; }
.panel-h .count .icon { width: 18px; height: 18px; }
.panel-h .count { color: var(--lime); text-shadow: 0 0 10px rgba(157,255,58,.6); }
.patterns { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.patterns li { background: rgba(255,63,210,.1); border: 1.5px solid rgba(255,63,210,.45); padding: 10px 12px; border-radius: 14px; font-weight: 600; }
.lesson-done { margin: 12px 0 4px; text-align: center; padding: 14px; border-radius: 18px;
  background: rgba(157,255,58,.12); border: 2px solid var(--lime); box-shadow: var(--glow-lime); animation: pop .6s ease; }
.done-title { margin: 0 0 10px; font-weight: 700; font-size: 1.3rem; color: var(--lime); text-shadow: var(--glow-lime); display: flex; align-items: center; justify-content: center; gap: 8px; }
.done-title .icon { width: 26px; height: 26px; color: var(--yellow); filter: drop-shadow(0 0 6px rgba(255,226,63,.9)); }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 2px; animation: fall linear forwards; box-shadow: 0 0 8px currentColor; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* ───────── SVG icons (public/icons/*.svg, documented in docs/ICONS.md) ─────────
   Masked with currentColor, so an icon takes the text colour (and neon glows) of wherever it sits.
   Usage: <span class="icon i-star"></span>. To add one: drop name.svg in public/icons, add .i-name below. */
.icon { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background-color: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.i-mic { --src: url(/icons/mic.svg); }
.i-star { --src: url(/icons/star.svg); }
.i-trophy { --src: url(/icons/trophy.svg); }
.i-chat { --src: url(/icons/chat.svg); }
.i-check { --src: url(/icons/check.svg); }
.i-arrow-left { --src: url(/icons/arrow-left.svg); }
.i-arrow-right { --src: url(/icons/arrow-right.svg); }
.i-repeat { --src: url(/icons/repeat.svg); }
.i-lock { --src: url(/icons/lock.svg); }
.i-sparkle { --src: url(/icons/sparkle.svg); }
.i-bulb { --src: url(/icons/bulb.svg); }
.i-trash { --src: url(/icons/trash.svg); }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; }
.day-kicker .icon { width: 1.1em; height: 1.1em; color: var(--lime); }

/* ───────── "Your turn! Say it" – repeat-after-correction card ───────── */
.repeat-card { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255,226,63,.16), rgba(255,138,61,.12)); border: 2px solid var(--yellow);
  box-shadow: var(--glow-yellow); animation: repeat-in .5s cubic-bezier(.3,1.5,.5,1); }
.repeat-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--yellow); color: var(--bg0); box-shadow: var(--glow-yellow); }
.repeat-badge .icon { width: 28px; height: 28px; }
.repeat-card:not(.success) .repeat-badge .icon { animation: spin 2.4s linear infinite; }
.repeat-body { flex: 1; min-width: 0; }
.repeat-label { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.repeat-text { margin: 2px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repeat-tries { display: flex; gap: 6px; }
.repeat-tries i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.18); border: 1.5px solid var(--yellow); }
.repeat-tries i.used { background: var(--orange); box-shadow: 0 0 8px rgba(255,138,61,.8); }
.repeat-card.retry { animation: shake .45s ease; }
.repeat-card.success { background: rgba(157,255,58,.16); border-color: var(--lime); box-shadow: var(--glow-lime); }
.repeat-card.success .repeat-badge { background: var(--lime); box-shadow: var(--glow-lime); }
.repeat-card.success .repeat-label { color: var(--lime); }
@keyframes repeat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* "Say:" variant – what Sunny asked the child to say (no check, cyan instead of the correction's yellow) */
.repeat-card.say { background: linear-gradient(100deg, rgba(34,228,255,.16), rgba(155,92,255,.14)); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.repeat-card.say .repeat-badge { background: var(--cyan); box-shadow: var(--glow-cyan); }
.repeat-card.say .repeat-badge .icon { animation: none; }
.repeat-card.say .repeat-label { color: var(--cyan); }
#stage[data-phase="listening"] .repeat-card.say .repeat-badge { animation: pulse-cyan 1.4s ease-in-out infinite; }
@keyframes pulse-cyan { 50% { box-shadow: 0 0 0 7px rgba(34,228,255,.2), var(--glow-cyan); } }

/* "Try again" button inside a mic warning */
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 18px;
  font-weight: 700; background: var(--lime); color: var(--bg0); box-shadow: var(--glow-lime); }

/* ───────── Day finished: big "go to next day" card over the avatar ───────── */
.finish-card { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 45%, rgba(23,11,74,.72), rgba(11,7,38,.9));
  backdrop-filter: blur(3px); animation: finish-in .6s cubic-bezier(.3,1.4,.5,1); }
.finish-badge { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--bg0);
  background: var(--yellow); box-shadow: var(--glow-yellow), 0 0 60px rgba(255,226,63,.5); animation: float 3s ease-in-out infinite; }
.finish-badge .icon { width: 54px; height: 54px; }
.finish-title { margin: 6px 0 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: #fff; text-shadow: var(--glow-pink); }
.finish-sub { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink-soft); }
.finish-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.finish-actions .icon { width: 1.1em; height: 1.1em; }
.finish-actions .ghost-btn .icon { color: var(--yellow); }
@keyframes finish-in { from { opacity: 0; transform: scale(.92); } }

/* ───────── Rich lesson panel (curriculum v2) ───────── */
.week-label i { display: block; font-style: normal; text-transform: none; letter-spacing: 0; font-size: .74rem; color: var(--cyan); margin-top: 2px; }
.day-challenge { margin: 10px 0 0; font-size: .92rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.day-challenge .icon { color: var(--pink); margin-top: 2px; }
.challenges { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.challenges li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 14px; font-size: .92rem;
  background: rgba(255,255,255,.05); border: 1.5px solid var(--line); }
.challenges li .icon { width: 20px; height: 20px; color: var(--pink); margin-top: 1px; }
.challenges li b { color: #fff; margin-right: 4px; }
.challenges li.running { border-color: var(--pink); box-shadow: var(--glow-pink); }
.challenges li.done { border-color: rgba(157,255,58,.6); }
.challenges li.done .icon { color: var(--lime); }
.grammar { margin-top: 4px; padding: 2px 12px 10px; border-radius: 16px; background: rgba(34,228,255,.08); border: 1.5px solid rgba(34,228,255,.4); }
.grammar p { margin: 0 0 6px; color: var(--ink-soft); font-size: .95rem; }
.grammar .panel-h .icon { color: var(--cyan) !important; filter: drop-shadow(0 0 5px rgba(34,228,255,.7)) !important; }
.examples, .convo { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: .92rem; display: grid; gap: 4px; }
.phrase p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--yellow); text-shadow: 0 0 10px rgba(255,226,63,.45); }
.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.more[open] summary { color: #fff; margin-bottom: 8px; }

/* Question / role-play progress chip */
.challenge-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600;
  background: rgba(255,63,210,.14); border: 1.5px solid var(--pink); box-shadow: 0 0 14px rgba(255,63,210,.35); }
.challenge-chip .icon { color: var(--pink); }
.challenge-chip b { color: #fff; }

/* Timed talk HUD (over the avatar) */
.talk-hud { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(640px, 92%); z-index: 4;
  padding: 16px 22px; border-radius: 22px; text-align: center; background: rgba(11,7,38,.82); backdrop-filter: blur(8px);
  border: 2px solid var(--pink); box-shadow: var(--glow-pink); animation: repeat-in .4s ease; }
.talk-label { margin: 0; display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.talk-prompt { margin: 4px 0 6px; font-size: 1.05rem; font-weight: 600; }
.talk-clock { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; color: #fff; text-shadow: var(--glow-pink); }
.talk-of { font-size: .45em; color: var(--ink-soft); margin-left: 6px; text-shadow: none; }
.talk-bar-wrap { margin: 10px 0 8px; }
.talk-hud.reached { border-color: var(--lime); box-shadow: var(--glow-lime); }
.talk-hud.reached .talk-clock { text-shadow: var(--glow-lime); }
.talk-live { margin: 0; min-height: 1.3em; color: var(--ink-soft); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-pill[data-phase="challenge"] { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: var(--glow-pink); }
#stage[data-phase="challenge"] .mic-halo { opacity: 1; }
#stage[data-phase="challenge"] .avatar-wrap { box-shadow: 0 0 0 2px rgba(157,255,58,.8), 0 0 34px rgba(157,255,58,.45), inset 0 0 80px rgba(0,0,0,.45); }

/* ───────── First-run setup screen ───────── */
#setup { place-items: center; padding: 24px; overflow-y: auto; }
.setup-card { width: min(980px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 24px 30px; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.setup-head h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.setup-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.setup-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-dim); font-weight: 600; font-size: .9rem; }
.setup-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: .8rem; }
.setup-steps li.active { color: #fff; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.setup-steps li.active span { background: var(--cyan); color: var(--bg0); }
.setup-steps li.done { color: var(--lime); border-color: rgba(157,255,58,.5); }
.setup-steps li.done span { background: var(--lime); color: var(--bg0); }
.setup-sim { margin: 0 0 12px; padding: 8px 14px; border-radius: 12px; background: rgba(255,226,63,.12); border: 1.5px dashed var(--yellow); color: var(--yellow); font-weight: 600; font-size: .9rem; }
.setup-checking { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; color: var(--cyan); padding: 30px 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(34,228,255,.25); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec { padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1.5px solid var(--line); animation: repeat-in .4s ease both; }
.spec span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.spec b { display: block; margin-top: 4px; font-weight: 600; color: #fff; }
.setup-verdict { margin-top: 14px; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: rgba(157,255,58,.08); border: 2px solid rgba(157,255,58,.5); }
.setup-verdict p { margin: 0; font-weight: 600; }
.verdict-badge { flex: none; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: var(--bg0); background: var(--lime); box-shadow: var(--glow-lime); }
.verdict-badge[data-level="mid"] { background: var(--cyan); box-shadow: var(--glow-cyan); }
.verdict-badge[data-level="low"] { background: var(--yellow); box-shadow: var(--glow-yellow); }
.setup-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; }

.brain-options { display: grid; gap: 12px; }
.brain-card { display: flex; gap: 14px; padding: 16px 18px; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,.04); border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s; }
.brain-card:hover { border-color: rgba(34,228,255,.6); }
.brain-card.selected { border-color: var(--pink); box-shadow: var(--glow-pink); background: rgba(255,63,210,.06); }
.brain-card > input { margin-top: 6px; accent-color: var(--pink); width: 18px; height: 18px; flex: none; }
.brain-body { flex: 1; min-width: 0; }
.brain-body h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.15rem; }
.brain-body h3 .icon { color: var(--cyan); }
.brain-body > p { margin: 0 0 10px; color: var(--ink-soft); font-size: .95rem; }
.tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--ink-soft); }
.tag-free { background: rgba(157,255,58,.18); color: var(--lime); }
.model-list, .harness-list { display: grid; gap: 6px; }
.model-row, .harness-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1.5px solid transparent; cursor: pointer; }
.harness-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.model-row input, .harness-row input { accent-color: var(--lime); }
.model-row.rec { border-color: rgba(157,255,58,.55); }
.model-row.dim, .harness-row.dim { opacity: .5; cursor: not-allowed; }
.m-name { font-weight: 700; }
.m-name small { display: block; font-weight: 500; color: var(--ink-dim); font-size: .82rem; }
.m-meta { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.m-meta b { color: var(--lime); }
.fit { font-style: normal; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fit-rec { background: var(--lime); color: var(--bg0); box-shadow: var(--glow-lime); }
.fit-fits { background: rgba(34,228,255,.18); color: var(--cyan); }
.fit-slow { background: rgba(255,226,63,.16); color: var(--yellow); }
.fit-too-big { background: rgba(255,77,109,.16); color: #ff9db0; }
.api-fields { display: grid; gap: 8px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.preset { border: 1.5px solid var(--line); background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .85rem; }
.preset:hover { border-color: var(--cyan); }
.field { display: grid; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.field input { padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(8,5,30,.6); color: var(--ink); font: inherit; font-weight: 500; }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.note { margin: 4px 0 0; font-size: .82rem; color: var(--ink-dim); display: flex; gap: 6px; align-items: flex-start; }
.note .icon { color: var(--yellow); margin-top: 2px; }
.ready-box { padding: 18px 20px; border-radius: 20px; background: rgba(0,0,0,.22); border: 1.5px solid var(--line); }
.ready-kicker { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.ready-box h3 { margin: 4px 0; font-size: 1.4rem; }
.ready-box > p { margin: 0; color: var(--ink-soft); }
.download-box { margin-top: 14px; }
.download-box p { margin: 6px 0 0; font-weight: 600; color: var(--ink-soft); }
.test-box { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(34,228,255,.08); border: 1.5px solid rgba(34,228,255,.4); }
.test-box p { margin: 0; font-weight: 600; }
.test-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--cyan); color: var(--bg0); }
.test-box.ok { background: rgba(157,255,58,.1); border-color: var(--lime); }
.test-box.ok .test-badge { background: var(--lime); }
.test-box.fail { background: rgba(255,77,109,.1); border-color: var(--red); }
.test-box.fail .test-badge { background: var(--red); color: #fff; }
#change-brain { margin-top: 6px; font-size: .82rem; }
@media (max-width: 760px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .model-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .model-row .m-meta { grid-column: 2 / -1; white-space: normal; }
}

/* Signed-in account (server mode) */
.account { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--glass); border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.account img { width: 28px; height: 28px; border-radius: 50%; }

/* ───────── 2D face animation hooks (classes set by face.js) ───────── */
.sunny-svg { width: 100%; height: 100%; overflow: visible; }
.sunny-svg .head-group { transform-origin: 200px 380px; transition: transform .5s cubic-bezier(.3,.7,.4,1); animation: breathe 4.5s ease-in-out infinite; }
.sunny-svg .eye { transform-box: fill-box; transform-origin: center; transition: transform .07s ease-in; }
.sunny-svg.blink .eye { transform: scaleY(0.08); }
.sunny-svg .iris { transition: transform .35s ease; }
.sunny-svg .brow { transition: transform .3s ease; }
.sunny-svg[data-state="listening"] .head-group { transform: rotate(-3deg); }
.sunny-svg[data-state="listening"] .brow { transform: translateY(-5px); }
.sunny-svg[data-state="thinking"] .head-group { transform: rotate(2deg); }
.sunny-svg[data-state="thinking"] .brow-l { transform: translateY(-7px); }
@keyframes breathe { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .age-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .start-row { grid-template-columns: 1fr; }
  .mic-note { max-width: none; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .screen { height: auto; min-height: 100dvh; }
  #landing { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .hero { padding-top: 40px; }
  .landing-panel { max-height: none; }
  #stage { grid-template-columns: 1fr; padding: 12px; }
  .avatar-wrap { min-height: 42vh; }
  .lesson-panel { margin-top: 0; }
  .week-row { grid-template-columns: 1fr; }
}
@media (max-height: 760px) and (min-width: 901px) {
  h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
  .mascot-ring { width: clamp(130px, 22vh, 190px); }
  .day-tile { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
  .plan-weeks { gap: 5px; }
  .start-btn { padding: 15px 26px; font-size: 1.2rem; }
  .captions { min-height: 96px; padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .stars, .mascot-ring, .mascot-ring::before, .start-btn, .day-tile.current, .sunny-svg .head-group,
  .repeat-card, .repeat-badge, .repeat-badge .icon, .ai-caption .w, .ai-caption .track, .finish-card, .finish-badge, .talk-hud, .chip.pop, .spinner, .spec { animation: none !important; }
}

/* ?preview=1 banner – all days open, nothing saved */
.preview-banner { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--bg0); background: var(--yellow); box-shadow: var(--glow-yellow); pointer-events: none; }
