/* ==========================================================================
   StageQuest UI: house lights down
   One look for the homepage and the app. Warm black like a theatre before the
   show, programme-cream text, brass for anything you can press or should
   notice, and velvet red only for live things (recording, the boss, the logo).
   Headings are Archivo (narrow and heavy, like a show poster), everything else Manrope, and numbers that change are
   JetBrains Mono so they don't jiggle while they count.
   ========================================================================== */
:root {
  --bg: #0c0a08;
  --bg-2: #110e0b;
  --panel: #15110e;
  --panel-2: #1b1612;
  --panel-hover: #211b16;
  --line: rgba(232, 201, 135, .10);
  --line-strong: rgba(232, 201, 135, .19);
  --text: #f3ead9;
  --text-2: #bfb1a0;
  --text-3: #8a7d6e;
  --accent: #d4b06a;
  --accent-hover: #e3c486;
  --accent-press: #b8954f;
  --accent-ink: #17110b;
  --accent-tint: rgba(212, 176, 106, .12);
  --accent-text: #e2c27f;
  --velvet: #b8372f;
  --velvet-hover: #c9443b;
  --velvet-tint: rgba(184, 55, 47, .16);
  --info: #d4b06a;
  --good: #8fbf7a;
  --warn: #d9a54a;
  --bad: #e3735e;
  --gold: #d4b06a;
  --r: 8px;
  --r-lg: 14px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-hand: "Caveat", "Bradley Hand", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 60px;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .22);
  --lift: inset 0 1px 0 rgba(255, 236, 200, .05);
  --brass: linear-gradient(180deg, #e8cb90, #c9a25b);
  /* legacy aliases still referenced by feature styles */
  --surface: var(--panel); --surface-2: var(--panel-2); --surface-solid: var(--panel-2);
  --border: var(--line); --border-strong: var(--line-strong);
  --pink: var(--velvet); --purple: var(--accent); --violet: var(--accent-hover); --cyan: var(--info);
  --grad: var(--accent); --grad-soft: var(--accent-tint); --focus: var(--ring);
  --radius: var(--r-lg); --radius-sm: var(--r); --radius-lg: var(--r-lg);
  --font-head: var(--font-display);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14.5px/1.55 var(--font-body); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* house lights: a warm wash from above the stage, and a little grain so big dark areas don't look flat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(214, 160, 90, .11), transparent 62%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(184, 55, 47, .05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { min-height: 100vh; }
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(212, 176, 106, .4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0 0 .4em; color: var(--text); font-optical-sizing: auto; }
h1 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.012em; }
h3 { font: 600 15px/1.35 var(--font-body); letter-spacing: -.005em; }
h4 { font: 600 13px/1.35 var(--font-body); }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(212, 176, 106, .35); color: #fff8ec; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--ring); border-radius: var(--r); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
#main:focus, #main:focus-visible { box-shadow: none; }
kbd { font: 500 11px var(--font-mono); padding: 1px 6px 2px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--panel-2); color: var(--text-2); }
.ico { display: inline-block; vertical-align: -0.15em; flex: none; width: 1em; height: 1em; }

/* loading curtain */
.curtain { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, #2a1512 0%, #120e0d 70%); }
.curtain.gone { display: none; }
.cur-side { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.35)),
    repeating-linear-gradient(90deg, #5c1410 0, #8e231b 3.5%, #b8372f 6%, #8e231b 8.5%, #5c1410 12%);
  box-shadow: inset 0 -80px 120px rgba(0,0,0,.55); transition: transform 1.7s cubic-bezier(.7,0,.25,1); animation: sway 5s ease-in-out infinite; }
.cur-left { left: 0; transform-origin: top left; border-right: 2px solid #3d0d0a; }
.cur-right { right: 0; transform-origin: top right; border-left: 2px solid #3d0d0a; animation-delay: -2.5s; }
/* tie-backs pull the curtains to the sides while loading, leaving the stage in the middle */
.cur-left { clip-path: polygon(0 0, 30% 0, 24% 100%, 0 100%); }
.cur-right { clip-path: polygon(70% 0, 100% 0, 100% 100%, 76% 100%); }
.cur-valance { position: absolute; top: 0; left: 0; right: 0; height: 64px; z-index: 3;
  background: repeating-radial-gradient(ellipse at 50% 0, #8e231b 0 30px, #5c1410 30px 34px) 0 0 / 120px 64px, #7a1d17;
  border-bottom: 3px solid #d2a24c; box-shadow: 0 6px 18px rgba(0,0,0,.5); transition: transform 1.2s cubic-bezier(.7,0,.25,1); }
.cur-valance::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 6px 0, #d2a24c 0 3px, transparent 3.5px) 0 0 / 12px 10px; }
.cur-spot { position: absolute; top: -10%; left: 50%; width: 70vmin; height: 120vh; z-index: 1; transform-origin: top center; translate: -50% 0;
  background: radial-gradient(ellipse 50% 85% at 50% 0, rgba(242,212,150,.20), rgba(242,212,150,.06) 55%, transparent 75%); animation: spot 4s ease-in-out infinite; pointer-events: none; }
.cur-center { position: relative; z-index: 4; display: grid; justify-items: center; gap: 22px; padding: 0 16px; text-align: center; transition: opacity .4s, transform .6s var(--ease); }
.marquee { position: relative; padding: 18px 30px; border-radius: 10px; background: linear-gradient(#1b1615, #120e0d); border: 2px solid #d2a24c; box-shadow: 0 0 0 6px #120e0d, 0 0 0 8px #8a6a2e, 0 20px 60px rgba(0,0,0,.6), 0 0 50px rgba(210,162,76,.18); }
.bulbs { position: absolute; inset: -14px; border-radius: 16px; pointer-events: none;
  background:
    radial-gradient(circle, #ffe7a8 0 3px, transparent 3.5px) 0 0 / 22px 22px repeat-x,
    radial-gradient(circle, #ffe7a8 0 3px, transparent 3.5px) 0 100% / 22px 22px repeat-x,
    radial-gradient(circle, #ffe7a8 0 3px, transparent 3.5px) 0 0 / 22px 22px repeat-y,
    radial-gradient(circle, #ffe7a8 0 3px, transparent 3.5px) 100% 0 / 22px 22px repeat-y;
  filter: drop-shadow(0 0 4px rgba(255,214,120,.9)); animation: chase .6s steps(2) infinite; }
.marquee-in { display: grid; gap: 4px; }
.marquee-kicker, .marquee-sub { font: 500 11px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: #d8ab55; }
.marquee-name { font: 800 clamp(34px, 8vw, 56px)/1 var(--font-display); color: #f6ecdd; letter-spacing: -.01em; text-shadow: 0 0 18px rgba(255,214,140,.35); }
.cur-tips { position: relative; height: 20px; width: min(320px, 86vw); }
.cur-tips span { position: absolute; inset: 0; font: 500 14px var(--font-body); color: var(--text-2); opacity: 0; animation: tip 8s infinite; }
.cur-tips span:nth-child(2) { animation-delay: 2s; } .cur-tips span:nth-child(3) { animation-delay: 4s; } .cur-tips span:nth-child(4) { animation-delay: 6s; }
.cur-floor { display: flex; gap: 10px; }
.cur-floor i { width: 8px; height: 8px; border-radius: 50%; background: #d2a24c; box-shadow: 0 0 10px rgba(210,162,76,.7); animation: footlight 1.2s ease-in-out infinite; }
.cur-floor i:nth-child(2) { animation-delay: .15s; } .cur-floor i:nth-child(3) { animation-delay: .3s; } .cur-floor i:nth-child(4) { animation-delay: .45s; } .cur-floor i:nth-child(5) { animation-delay: .6s; }
.cur-noscript { color: var(--text); }
/* the show starts: text bows out, curtains fly open, valance lifts */
.curtain.open { background: transparent; pointer-events: none; transition: background .8s .6s; }
.curtain.open .cur-center { opacity: 0; transform: scale(.96) translateY(-8px); }
.curtain.open .cur-spot { opacity: 0; transition: opacity .4s; }
.curtain.open .cur-left { transform: translateX(-105%); animation: none; }
.curtain.open .cur-right { transform: translateX(105%); animation: none; }
.curtain.open .cur-valance { transform: translateY(-110%); transition-delay: .9s; }
@keyframes sway { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(.6deg); } }
@keyframes spot { 0%, 100% { rotate: -9deg; } 50% { rotate: 9deg; } }
@keyframes chase { to { background-position: 11px 0, 11px 100%, 0 11px, 100% 11px; } }
@keyframes tip { 0% { opacity: 0; transform: translateY(6px); } 5%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes footlight { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .cur-side, .cur-spot, .bulbs, .cur-floor i { animation: none; }
  .cur-tips span { animation: none; } .cur-tips span:first-child { opacity: 1; }
  .curtain.open { display: none; }
}

/* ---------- layout ---------- */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); margin-inline: auto; }
.page { padding: 28px 0 88px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.grad-text { color: var(--accent-text); }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .w-full { width: 100%; }

/* small caps label above a heading */
.eyebrow, .label { font: 600 10.5px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #c4a46a; }

/* ---------- cards and panels ---------- */
.card {
  position: relative; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 236, 200, .03), rgba(255, 236, 200, 0) 45%), var(--panel);
  box-shadow: var(--lift), var(--shadow);
}
.card.pad-lg { padding: 24px; }
.card.hero-card { padding: 22px; }
.card.glow { border-color: rgba(212, 176, 106, .3); background: radial-gradient(ellipse 120% 90% at 0% 0%, rgba(212, 176, 106, .12), transparent 60%), var(--panel-2); }
.card h3 { margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: -2px 0 12px; }
.card-head h3 { margin: 0; }
.card.interactive { cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.card.interactive:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card.interactive:active { transform: none; }
.card.locked { opacity: .55; }
/* a panel holds edge-to-edge rows (lists, tables, the unlock path) */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift), var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 236, 200, .025), transparent); }
.panel-head h2, .panel-head h3 { margin: 0; font: 500 18px/1.2 var(--font-display); letter-spacing: -.01em; }
.panel-head a, .panel-head .link { font-size: 12.5px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.panel-head a:hover { color: var(--accent-text); }
.panel-body { padding: 16px 18px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 10px; }
.section-title h2 { margin: 0; font-size: 19px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(255, 236, 200, .035); color: var(--text);
  font: 600 13.5px/1 var(--font-body); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { border-color: rgba(212, 176, 106, .5); background: rgba(212, 176, 106, .08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--text-3); background: transparent; border-color: var(--line); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--brass); border-color: transparent; color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -10px rgba(212, 176, 106, .7); }
.btn-primary:hover { background: linear-gradient(180deg, #f0d6a0, #d4ae68); border-color: transparent; }
.btn-primary:active { background: linear-gradient(180deg, #d4b06a, #b8954f); }
.btn-primary[disabled] { background: #2a231c; color: #6f6252; }
.btn-boss { background: var(--velvet-tint); border-color: rgba(201, 68, 59, .7); color: #ffe2d8; }
.btn-boss:hover { background: rgba(184, 55, 47, .28); border-color: #d6544a; }
.btn-boss:active { background: rgba(184, 55, 47, .36); }
.btn-cyan { background: var(--brass); border-color: transparent; color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 236, 200, .05); color: var(--text); border-color: transparent; }
.btn-ghost:active { background: rgba(255, 236, 200, .08); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-xl { height: 52px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); cursor: pointer; font-size: 12.5px; text-decoration: underline; text-decoration-color: rgba(212, 176, 106, .4); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-strong); background: rgba(255, 236, 200, .03); font: 600 11px/1 var(--font-body); color: var(--text-2); white-space: nowrap; }
.chip.pink { color: #f2a99c; border-color: rgba(201, 68, 59, .5); background: var(--velvet-tint); }
.chip.cyan, .chip.gold { color: var(--accent-text); border-color: rgba(212, 176, 106, .42); background: var(--accent-tint); }
.chip.purple { color: var(--text); }
.chip.good { color: var(--good); border-color: rgba(143, 191, 122, .4); background: rgba(143, 191, 122, .08); }
.chip.sim { color: var(--text-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: transparent; }
.chip .ico { width: 12px; height: 12px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .28); color: var(--text); font-size: 14px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 13px; line-height: 1.5; }
.input:hover { border-color: rgba(212, 176, 106, .35); }
.input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 176, 106, .14); border-radius: 10px; background: rgba(0, 0, 0, .4); }
.input::placeholder { color: var(--text-3); }
.input[disabled] { color: var(--text-3); cursor: not-allowed; }
.form-error { color: #f6b3a6; background: rgba(227, 115, 94, .08); border: 1px solid rgba(227, 115, 94, .32); border-left-width: 3px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.form-ok { color: #bfe2ad; background: rgba(143, 191, 122, .08); border: 1px solid rgba(143, 191, 122, .32); border-left-width: 3px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.check { display: flex; gap: 9px; align-items: center; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.notice { display: flex; gap: 9px; align-items: flex-start; padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(217, 165, 74, .3); border-left-width: 3px; background: rgba(217, 165, 74, .06); font-size: 13.5px; color: #ecdcb6; }
.notice.info { border-color: rgba(212, 176, 106, .28); background: rgba(212, 176, 106, .05); color: #e6d6b4; }

/* selectable tiles (onboarding, topic pickers) with a radio or checkbox drawn on the left */
.options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.option {
  position: relative; display: flex; gap: 12px; align-items: center; text-align: left; min-height: 50px; padding: 11px 14px 11px 42px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--text);
  transition: background .15s, border-color .15s, transform .15s;
}
.option::before { content: ""; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: border-color .15s, background .15s, box-shadow .15s; }
.option[aria-pressed]::before { border-radius: 5px; }
.option:hover { background: var(--panel-hover); border-color: var(--line-strong); }
.option:hover::before { border-color: var(--text-2); }
.option:active { transform: translateY(1px); }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: rgba(212, 176, 106, .55); background: radial-gradient(ellipse 90% 140% at 0% 50%, rgba(212, 176, 106, .13), transparent 70%), var(--panel-2); }
.option[aria-pressed="true"]::before, .option[aria-checked="true"]::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--panel-2); }
.option[disabled] { opacity: .5; cursor: not-allowed; }
.option .opt-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-strong); color: var(--accent-text); }
.option strong { display: block; font-size: 14px; font-weight: 600; }
.option span.small { display: block; color: var(--text-3); font-size: 12.5px; }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { background: rgba(255, 236, 200, .05); color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--panel-hover); color: var(--text); box-shadow: inset 0 0 0 1px rgba(212, 176, 106, .38), 0 2px 8px rgba(0, 0, 0, .35); }
.seg button[disabled] { color: var(--text-3); cursor: not-allowed; }

/* ---------- progress bars ---------- */
.bar { height: 6px; border-radius: 99px; background: rgba(255, 236, 200, .07); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a8864a, #e3c486); box-shadow: 0 0 10px rgba(227, 196, 134, .35); transition: width .6s var(--ease); }
.bar.thin { height: 4px; }
.bar.cyan > span { background: linear-gradient(90deg, #a8864a, #e3c486); }

/* ---------- navigation ---------- */
.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(12, 10, 8, .8); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--line); }
.topnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 176, 106, .38), transparent); pointer-events: none; }
.topnav .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 12.5px var(--font-body); letter-spacing: .17em; text-transform: uppercase; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; }
.navlinks { display: flex; gap: 2px; height: 100%; }
.navlinks a { position: relative; display: flex; align-items: center; padding: 0 11px; color: var(--text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s; }
.navlinks a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); box-shadow: 0 0 12px rgba(212, 176, 106, .8); transform: scaleX(0); transition: transform .25s var(--ease); }
.navlinks a:hover { color: var(--text); }
.navlinks a[aria-current="page"] { color: var(--text); }
.navlinks a[aria-current="page"]::after { transform: none; }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-meta { display: flex; gap: 6px; }
.nav-meta span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 236, 200, .03); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.nav-meta .ico { width: 14px; height: 14px; color: var(--accent-text); }
.nav-meta b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }
.nav-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-2); text-decoration: none; }
.nav-icon:hover, .nav-icon[aria-current="page"] { color: var(--accent-text); background: rgba(255, 236, 200, .05); }
.nav-icon .ico { width: 18px; height: 18px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 11.5px var(--font-body); letter-spacing: .04em; background: radial-gradient(circle at 30% 25%, #3d2c1d, #1b1612); color: var(--accent-text); border: 1px solid rgba(212, 176, 106, .42); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.avatar:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 176, 106, .14); }
.menu { position: absolute; right: 0; top: 44px; min-width: 210px; background: rgba(27, 22, 18, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); z-index: 60; animation: toastIn .15s var(--ease) both; }
.menu a, .menu button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 9px 11px; border-radius: 9px; color: var(--text); font-size: 13.5px; font-weight: 500; border: 0; background: none; cursor: pointer; text-decoration: none; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(212, 176, 106, .08); }
.bottomnav { display: none; }
@media (max-width: 1140px) { .nav-meta { display: none; } }
@media (max-width: 860px) {
  .navlinks { display: none; }
  .hide-mobile { display: none !important; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(12, 10, 8, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottomnav a { position: relative; display: grid; place-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 10px; color: var(--text-3); font-size: 11px; font-weight: 600; text-decoration: none; min-height: 50px; }
  .bottomnav a .ico { width: 21px; height: 21px; }
  .bottomnav a[aria-current="page"] { color: var(--text); }
  .bottomnav a[aria-current="page"] .ico { color: var(--accent-text); filter: drop-shadow(0 0 6px rgba(212, 176, 106, .55)); }
  .bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: -5px; left: 32%; right: 32%; height: 2px; border-radius: 0 0 2px 2px; background: var(--accent); box-shadow: 0 0 10px rgba(212, 176, 106, .8); }
}
@media (min-width: 861px) { .show-mobile { display: none !important; } }

/* ---------- toasts and modal ---------- */
.toasts { position: fixed; top: 70px; right: 16px; z-index: 200; display: grid; gap: 8px; width: min(340px, calc(100% - 32px)); pointer-events: none; }
.toast { position: relative; pointer-events: auto; background: rgba(27, 22, 18, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(212, 176, 106, .3); border-radius: 12px; padding: 11px 14px 11px 18px; box-shadow: var(--shadow); animation: toastIn .25s var(--ease) both; }
.toast::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.toast .t-ico { display: none; }
.toast strong { display: block; font-size: 13.5px; font-weight: 600; }
.toast span { color: var(--text-2); font-size: 12.5px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }
.modal-back { position: fixed; inset: 0; z-index: 300; background: rgba(6, 4, 3, .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, rgba(255, 236, 200, .03), transparent 40%), var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); animation: toastIn .2s var(--ease) both; }

/* ---------- stats ---------- */
.stat { display: grid; gap: 4px; }
.stat .k { font: 600 10.5px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.stat .v { font: 500 28px/1.1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.stat .v small { font: 500 12px var(--font-body); color: var(--text-3); letter-spacing: 0; }
.stat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 236, 200, .03), transparent), var(--panel); box-shadow: var(--lift), var(--shadow); }
.stat-strip > * { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat-strip > *:last-child { border-right: 0; }
@media (max-width: 620px) { .stat-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .stat-strip > * { border-bottom: 1px solid var(--line); } }

.level-ring { position: relative; width: 64px; height: 64px; flex: none; }
.level-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 8px rgba(212, 176, 106, .35)); }
.level-ring .lv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.level-ring .lv b { font: 500 1.9em/1 var(--font-display); }
.level-ring .lv span { font: 700 9px var(--font-body); letter-spacing: .2em; color: var(--text-3); }

/* ---------- lists and tables ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.card > .list li, .card .list li { padding-left: 0; padding-right: 0; }
.list li .grow { flex: 1; min-width: 0; }
.ico-box { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 236, 200, .03); color: var(--accent-text); font: 600 11px var(--font-mono); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 600 10.5px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .18); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(212, 176, 106, .045); }
.table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--text); text-decoration: none; font-weight: 600; }
.table a.row-link:hover { color: var(--accent-text); }
.table-wrap { overflow-x: auto; }

/* achievements */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 16px 18px 18px; }
.badge { display: grid; grid-template-columns: 1fr; gap: 1px 12px; align-items: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 236, 200, .02); }
.badge .b-ico { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(212, 176, 106, .45); background: radial-gradient(circle at 32% 28%, rgba(232, 203, 144, .32), rgba(212, 176, 106, .06) 70%); color: var(--accent-text); }
.badge .b-ico .ico { width: 18px; height: 18px; }
.badge b { font-size: 13px; font-weight: 600; }
.badge span { font-size: 12px; color: var(--text-3); }
.badge.off { opacity: .45; filter: grayscale(1); }

/* ==========================================================================
   Feature styles
   ========================================================================== */

/* page header: a short brass rule under the title, like a programme heading */
.page-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 6px 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 1px; background: var(--accent); }
.page-head .crumb { font-size: 12.5px; font-weight: 600; color: var(--text-3); text-decoration: none; }
.page-head .crumb:hover { color: var(--accent-text); }
.page-head h1 { margin: 10px 0 6px; }
.page-head p { margin: 0; color: var(--text-2); max-width: 640px; font-size: 15px; }

/* Recorder: the record button is the one red thing on the page, like an ON AIR light */
.recorder { display: grid; gap: 16px; }
.rec-row { display: flex; align-items: center; gap: 18px; }
.rec-btn { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 0; cursor: pointer; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #db5a4f, #9c2c25 70%); box-shadow: 0 0 0 6px rgba(184, 55, 47, .13), 0 14px 30px -10px rgba(184, 55, 47, .7), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s; }
.rec-btn:hover { box-shadow: 0 0 0 8px rgba(184, 55, 47, .18), 0 14px 34px -10px rgba(184, 55, 47, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.rec-btn:active { transform: scale(.97); }
.rec-btn:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); border-radius: 50%; }
.rec-btn[disabled] { background: #3a2a24; box-shadow: none; cursor: wait; }
.rec-btn .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff3ea; transition: border-radius .15s, width .15s, height .15s; }
.rec-btn.recording .dot { width: 20px; height: 20px; border-radius: 4px; }
.rec-btn.recording::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(219, 90, 79, .65); animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.22); opacity: 0; } }
.timer-big { font: 500 32px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.meter { display: flex; align-items: flex-end; gap: 2px; height: 40px; flex: 1; min-width: 120px; }
.meter i { display: block; flex: 1; max-width: 5px; border-radius: 2px; background: linear-gradient(180deg, #e3c486, #8a6a35); opacity: .85; min-height: 2px; transition: height .08s linear; }
.transcript { width: 100%; min-height: 52px; max-height: 150px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; text-align: left; }
.prompt-card { width: 100%; padding: 16px 18px; border-radius: 12px; background: radial-gradient(ellipse 100% 120% at 0% 0%, rgba(212, 176, 106, .09), transparent 60%), rgba(0, 0, 0, .2); border: 1px solid var(--line); text-align: left; }
.prompt-card .p-text { font: 500 21px/1.3 var(--font-display); letter-spacing: -.01em; }

/* Feedback */
.score-hero { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.score-dial { width: 96px; height: 96px; position: relative; flex: none; }
.score-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(212, 176, 106, .35)); }
.score-dial .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-dial .val b { font: 500 30px/1 var(--font-display); }
.score-dial .val span { font-size: 9px; letter-spacing: .2em; color: var(--text-3); font-weight: 700; }
.skill-row { display: grid; grid-template-columns: 104px 1fr 36px; align-items: center; gap: 12px; font-size: 13.5px; padding: 5px 0; }
.skill-row .mono { text-align: right; }
.skill-row .na { color: var(--text-3); font-size: 12px; }
.fb-list { list-style: none; padding: 0; margin: 0; }
.fb-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.fb-list li:first-child { border-top: 0; }
.fb-list li .n { font: 600 12px var(--font-mono); color: var(--text-3); padding-top: 2px; }
.fb-good .n { color: var(--good); }
.fb-next .n { color: var(--accent-text); }
.xp-burst { font: 600 15px var(--font-mono); color: var(--accent-text); }
.metric-note { font-size: 12px; color: var(--text-3); }

/* Coach chat */
.coach-bubble { display: flex; gap: 12px; align-items: flex-start; }
.coach-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brass); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(212, 176, 106, .14); }
.coach-avatar::after { content: "Q"; font: 600 15px var(--font-display); color: var(--accent-ink); }
.coach-msg { background: var(--panel-2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 4px 16px 16px 16px; max-width: 640px; font-size: 14px; }
.chat { display: grid; gap: 12px; }
.chat .me { justify-self: end; background: rgba(212, 176, 106, .1); border: 1px solid rgba(212, 176, 106, .28); padding: 10px 14px; border-radius: 16px 4px 16px 16px; max-width: 80%; font-size: 14px; }

/* Charts */
.chart-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; background: rgba(27, 22, 18, .97); border: 1px solid var(--line-strong); padding: 6px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 5; transform: translate(-50%, calc(-100% - 8px)); box-shadow: var(--shadow); }
.chart-tip b { font-family: var(--font-mono); }
.chart svg text { fill: var(--text-3); font-size: 11px; font-family: var(--font-body); }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(214, 160, 90, .12), transparent 70%); }
.auth-card { width: min(400px, 100%); }
.auth-card .card { padding: 26px; border-color: var(--line-strong); }
.oauth-btn { width: 100%; }
.recovery-code { font: 600 18px var(--font-mono); letter-spacing: .08em; padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px dashed var(--warn); color: #f0d79f; user-select: all; }

/* Breathing */
.breath-stage { display: grid; place-items: center; min-height: 340px; position: relative; }
.breath-orb { width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(232, 203, 144, .35), rgba(212, 176, 106, .06) 70%); border: 1.5px solid rgba(212, 176, 106, .7); box-shadow: 0 0 60px rgba(212, 176, 106, .25); transition-property: transform; transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
.breath-label { position: absolute; font: 500 20px var(--font-display); text-align: center; }
.breath-ring { position: absolute; width: 280px; height: 280px; max-width: 80vw; max-height: 80vw; }

/* Camera */
.cam { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cam video, .cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .cam-overlay { position: absolute; inset: 0; pointer-events: none; }
.cam .cam-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 20px; color: var(--text-2); gap: 8px; font-size: 13.5px; }
.gaze-target { position: absolute; left: 50%; top: 8%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--accent); transition: all .5s var(--ease); }
.gaze-target.on { background: rgba(212, 176, 106, .5); box-shadow: 0 0 18px rgba(212, 176, 106, .7); }

/* Pace karaoke */
.karaoke { font: 500 20px/1.8 var(--font-display); color: var(--text-3); }
.karaoke .w { transition: color .12s; }
.karaoke .w.on { color: var(--text); }
.karaoke .w.cur { color: var(--accent-text); }
.karaoke .pause-mark { color: var(--accent-text); margin: 0 .3em; }
.karaoke .pause-mark .ico { width: .7em; height: .7em; }
.wpm-gauge { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 236, 200, .08) 0 33%, rgba(143, 191, 122, .55) 33% 62%, rgba(255, 236, 200, .08) 62%); }
.wpm-gauge .needle { position: absolute; top: -5px; width: 2px; height: 18px; background: var(--text); transition: left .3s var(--ease); transform: translateX(-50%); }

/* Grades and the unlock path */
.medal { color: var(--gold); }
.medal .ico { width: 40px; height: 40px; }
.grade-badge { flex: none; display: grid; place-items: center; border-radius: 9px; font: 600 15px var(--font-display); color: var(--gc); border: 1px solid var(--gc); background: color-mix(in srgb, var(--gc) 12%, transparent); }
.grade-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.grade-banner.unlocked { border-color: rgba(143, 191, 122, .45); background: rgba(143, 191, 122, .06); }
.grade-banner.unlocked strong { color: var(--good); }
/* the path: a line runs through every node, brass where you've already been */
.ladder { list-style: none; margin: 0; padding: 6px 0; }
.ladder li { position: relative; }
.ladder li::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.ladder li:first-child::before { top: 50%; }
.ladder li:last-child::before { bottom: 50%; }
.ladder li.done::before { background: linear-gradient(180deg, rgba(212, 176, 106, .75), rgba(212, 176, 106, .55)); }
.ladder .step { position: relative; display: flex; gap: 14px; align-items: center; padding: 11px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.ladder a.step:hover { background: rgba(212, 176, 106, .05); }
.ladder .node { position: relative; z-index: 1; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--font-mono); border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--text-2); }
.ladder .node .ico { width: 13px; height: 13px; }
.ladder .done .node { background: var(--brass); border-color: transparent; color: var(--accent-ink); box-shadow: 0 0 10px rgba(212, 176, 106, .35); }
.ladder .current .node { border-color: var(--accent); color: var(--accent-text); background: var(--panel-2); box-shadow: 0 0 0 4px rgba(212, 176, 106, .14), 0 0 16px rgba(212, 176, 106, .45); animation: nodePulse 2.4s ease-in-out infinite; }
.ladder li:last-child.current .node { border-color: #d6544a; color: #f2a99c; box-shadow: 0 0 0 4px rgba(184, 55, 47, .18), 0 0 18px rgba(184, 55, 47, .55); }
.ladder .current .step { background: linear-gradient(90deg, rgba(212, 176, 106, .1), transparent 70%); }
.ladder .locked .step { color: var(--text-3); }
.ladder .locked .node { background: var(--bg-2); }
.ladder .s-ico { width: 18px; flex: none; color: var(--text-3); }
.ladder .s-ico .ico { width: 16px; height: 16px; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 7px rgba(212, 176, 106, .06), 0 0 22px rgba(212, 176, 106, .55); } }

/* Live crowd */
.crowd { width: 100%; padding: 10px 12px 8px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.crowd-row { display: flex; gap: 3px; flex-wrap: wrap; }
.crowd-p { width: 26px; height: 32px; border-radius: 10px 10px 4px 4px; background: var(--skin); display: grid; place-items: start center; padding-top: 3px; transition: transform .3s var(--ease); }
.crowd-p i { font-style: normal; color: #d8d3cb; display: grid; place-items: center; }
.crowd-p i .ico { width: 16px; height: 16px; }
.crowd-p.lean { transform: translateY(-3px); }
.crowd-p.slump { transform: translateY(3px); opacity: .6; }
.crowd-p.clap { animation: clap .45s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes clap { to { transform: translateY(-4px); } }

/* Speech Lab */
.lab-avatar { --c: var(--accent); position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--c); overflow: hidden; }
.lab-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.5); transform-origin: 50% 20%; }
.lab-avatar .ico { width: 18px; height: 18px; }
.lab-avatar.sm { width: 28px; height: 28px; }
.lab-avatar.sm .ico { width: 14px; height: 14px; }
.lab-avatar.lg { width: 56px; height: 56px; }
.lab-verdict { font: 500 28px var(--font-display); letter-spacing: -.015em; color: var(--text); margin: 4px 0 8px; }
.lab-outcome.won { border-color: rgba(143, 191, 122, .45); }
.lab-stage { position: relative; height: min(52vh, 440px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #0d0a08; box-shadow: var(--shadow); }
.lab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lab-stage-ui { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 12px 16px; background: linear-gradient(0deg, rgba(10, 8, 6, .92), rgba(10, 8, 6, .7)); border-top: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 620px) { .lab-stage { height: 44vh; } }

/* Landing */
.land-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.land-nav .container { display: flex; align-items: center; height: var(--nav-h); gap: 16px; }
.land-nav nav a { font-size: 13px; color: var(--text-2); text-decoration: none; padding: 6px 8px; border-radius: var(--r); }
.land-nav nav a:hover { color: var(--text); }
.l-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.l-section > .container > .l-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .l-section > .container > .l-head { grid-template-columns: 1fr; gap: 14px; } }
.l-head h2 { font-size: 24px; letter-spacing: -.02em; }
.l-head p { color: var(--text-2); font-size: 14.5px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.how li { border-top: 2px solid var(--line-strong); padding: 12px 0 0; }
.how li:first-child { border-top-color: var(--accent); }
.how b { display: block; font: 600 12px var(--font-mono); color: var(--accent-text); margin-bottom: 6px; }
.how strong { display: block; font-size: 15px; margin-bottom: 3px; }
.how span { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr 1fr; } }
.mock { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; font-size: 13.5px; box-shadow: var(--shadow); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-family: var(--font-mono); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { padding: 0 0 15px; color: var(--text-2); margin: 0; max-width: 680px; }
.footer { padding: 28px 0 36px; color: var(--text-3); font-size: 12.5px; }

/* Reduced motion and contrast */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-ok) *, html:not(.motion-ok) *::before, html:not(.motion-ok) *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.high-contrast { --text-2: #ddd2c2; --text-3: #bcae9d; --line: rgba(232, 201, 135, .22); --line-strong: rgba(232, 201, 135, .4); }

/* ===================== Boss Battle ===================== */
.boss-root { position: fixed; inset: 0; z-index: 100; background: #0b0b0c; overflow: hidden; color: #fff; }
.boss-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.boss-vignette { position: absolute; inset: 0; pointer-events: none; background: transparent; }
.boss-root.phase-4 .boss-vignette { background: transparent; animation: pulseV 2s ease-in-out infinite; }
@keyframes pulseV { 50% { opacity: .7; } }
.boss-err { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 6; background: rgba(0,0,0,.7); padding: 8px 14px; border-radius: 10px; font-size: .85rem; border: 1px solid rgba(251,191,36,.4); }
.boss-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: max(14px, env(safe-area-inset-top)) 18px 14px; background: rgba(0,0,0,.7); }
.boss-title { display: grid; line-height: 1.1; }
.boss-title strong { font-family: var(--font-display); letter-spacing: .06em; font-size: 1rem; }
.boss-meter { position: relative; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); overflow: hidden; box-shadow: 0 0 30px rgba(184,55,47,.25); }
.bm-trail { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.75); transition: width .6s ease-out; }
.bm-fill { position: absolute; inset: 0 auto 0 0; background: #b8372f; box-shadow: 0 0 18px #b8372f; transition: width .35s var(--ease); }
.boss-meter i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,.5); }
.bm-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-shadow: 0 1px 4px #000; }
.phase-pips { display: flex; gap: 5px; }
.phase-pips span { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.phase-pips span.done { background: #34d399; }
.phase-pips span.cur { background: #b8372f; box-shadow: 0 0 10px #b8372f; }
.boss-center { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 90px 16px 24px; pointer-events: none; }
.boss-center > * { pointer-events: auto; }
.boss-card { width: min(620px, 100%); background: rgba(18,17,16,.72); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 26px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 90px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(184,55,47,.12); animation: pop .5s var(--ease) both; }
.boss-topic { font-family: var(--font-display); font-size: clamp(1.3rem, 3.6vw, 2rem); font-weight: 700; line-height: 1.2; margin-top: 6px; }
.boss-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 9vw, 6rem); letter-spacing: .02em; margin: .1em 0; background: #fff; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(184,55,47,.6)); }
.intro-card { text-align: center; align-content: center; animation: introIn 5.4s var(--ease) both; }
@keyframes introIn { 0% { opacity: 0; transform: scale(1.2); letter-spacing: .3em; } 25% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.defeated-text { animation: defeat 1.2s var(--ease) both; }
@keyframes defeat { 0% { opacity: 0; transform: scale(2.4); filter: blur(10px); } 60% { opacity: 1; transform: scale(.95); filter: none; } 100% { transform: scale(1); } }
.boss-count { position: absolute; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 20vw, 10rem); color: #fff; text-shadow: 0 0 40px #b8372f; animation: countPop .9s var(--ease) both; pointer-events: none; }
@keyframes countPop { 0% { opacity: 0; transform: scale(2); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.7); } }
.obj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.obj-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 600; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: all .4s var(--ease); }
.obj-box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid rgba(255,255,255,.4); display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.obj-list li.ok { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.5); }
.obj-list li.ok .obj-box { background: #34d399; border-color: #34d399; color: #04130c; animation: burst .5s var(--ease); }
.obj-list li.miss { opacity: .55; }
.obj-list li.miss .obj-box { border-color: #fb7185; color: #fb7185; }
.boss-hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.boss-hud > * { pointer-events: auto; }
.boss-obj { position: absolute; left: 18px; top: 90px; width: min(330px, 40vw); background: rgba(14,13,12,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 10px; }
.boss-bottom { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: grid; gap: 10px; background: rgba(14,13,12,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 14px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.boss-topic-mini { font-weight: 700; font-size: .9rem; text-align: center; }
.timer-ring { position: relative; width: 74px; height: 74px; flex: none; }
.timer-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .95rem; }
.boss-stats { display: flex; gap: 18px; }
.boss-stats div { display: grid; text-align: center; }
.boss-stats b { font-size: 1.2rem; }
.boss-tx { font-size: .85rem; color: rgba(255,255,255,.7); text-align: center; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
.obj-flash { position: absolute; z-index: 7; left: 50%; top: 32%; transform: translateX(-50%); text-align: center; pointer-events: none; animation: flash 2.2s var(--ease) both; }
.of-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2.6rem); color: #fff; text-shadow: 0 0 30px #d2a24c, 0 0 60px #b8372f; letter-spacing: .04em; }
.of-sub { font-weight: 700; margin-top: 4px; }
.of-dmg { font-family: var(--font-mono); color: #d9675d; font-weight: 700; margin-top: 6px; }
@keyframes flash { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px); } }
.boss-results { position: absolute; inset: 0; z-index: 8; overflow: auto; background: rgba(11,11,12,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .boss-top { grid-template-columns: 1fr auto; gap: 10px; }
  .boss-meter { grid-column: 1 / -1; grid-row: 2; }
  .boss-title strong { font-size: .85rem; }
  .boss-obj { left: 12px; right: 12px; top: 112px; width: auto; padding: 10px; gap: 6px; }
  .boss-obj .obj-list li { padding: 6px 9px; font-size: .8rem; }
  .boss-obj .obj-list li .tiny { display: none; }
  .boss-obj .obj-list li br { display: none; }
  .boss-stats { gap: 10px; }
  .boss-stats b { font-size: 1rem; }
  .timer-ring { width: 60px; height: 60px; }
}

#main:focus, #main:focus-visible { box-shadow: none; outline: none; }

.navlinks a { white-space: nowrap; }

@media (max-width: 620px) { .btn-xl, .btn-lg { white-space: normal; text-align: center; padding-inline: 18px; font-size: 1rem; } .card.pad-lg { padding: 20px; } }


/* ===================== Action fight HUD ===================== */
.boss-root.fight .boss-canvas { outline: none; touch-action: none; }
.player-hud { position: absolute; left: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 5; width: min(360px, 60vw); display: grid; gap: 6px; }
.ph-name { display: flex; gap: 8px; align-items: center; letter-spacing: .14em; }
.ph-bar { position: relative; height: 18px; border-radius: 6px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); overflow: hidden; }
.ph-bar span { position: absolute; inset: 0 auto 0 0; transition: width .25s var(--ease); box-shadow: 0 0 14px rgba(52,211,153,.6); }
.ph-bar b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; text-shadow: 0 1px 3px #000; }
.ph-dodge { display: flex; gap: 8px; align-items: center; }
.ph-dodge span:first-child { width: 22px; height: 22px; border-radius: 50%; background: #d2a24c; }
.ph-dodge span.ready { box-shadow: 0 0 12px #d2a24c; }
.combo { position: absolute; right: 24px; top: 42%; z-index: 5; text-align: right; animation: burst .35s var(--ease) both; pointer-events: none; }
.combo b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; background: #fff; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(255,209,102,.6)); }
.combo span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .3em; color: #ffd166; }
.fight-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 6; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 4vw, 2.2rem); letter-spacing: .06em; white-space: nowrap; pointer-events: none; animation: flash 2.2s var(--ease) both; text-shadow: 0 0 30px currentColor; }
.fight-banner.rage { color: #ff4d6d; } .fight-banner.good { color: #e2bd73; }
.pops { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; text-shadow: 0 2px 8px #000, 0 0 12px rgba(255,255,255,.4); animation: popUp .9s var(--ease) both; white-space: nowrap; }
.pop.crit { font-size: 1.8rem; color: #ffd166; text-shadow: 0 2px 8px #000, 0 0 20px #ffd166; }
.pop.hurt { color: #ff5470; } .pop.good { color: #e2bd73; font-size: 1rem; } .pop.boss { color: #d9675d; font-size: 1.4rem; }
@keyframes popUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -170%) scale(1); } }
.keys-hint { position: absolute; right: 18px; bottom: 18px; z-index: 5; color: rgba(255,255,255,.6); background: rgba(0,0,0,.4); padding: 8px 12px; border-radius: 12px; }
.touch-ui { position: absolute; inset: auto 0 0 0; z-index: 5; height: 230px; pointer-events: none; }
.stick { position: absolute; left: 22px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.2); pointer-events: auto; touch-action: none; display: grid; place-items: center; }
.stick i { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.3); box-shadow: 0 0 20px rgba(184,55,47,.6); transition: transform .05s; }
.tbtns { position: absolute; right: 18px; bottom: calc(70px + env(safe-area-inset-bottom)); width: 190px; height: 160px; pointer-events: auto; }
.tb { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: rgba(20,12,40,.6); color: #fff; font-size: 1.6rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.tb.atk { right: 0; bottom: 0; width: 92px; height: 92px; font-size: 2.2rem; background: #c9443b; box-shadow: 0 0 24px rgba(184,55,47,.6); }
.tb.dodge { right: 104px; bottom: 6px; width: 64px; height: 64px; background: rgba(63,193,176,.25); }
.tb.block { right: 36px; bottom: 104px; width: 60px; height: 60px; background: rgba(52,211,153,.22); }
.tb:active { transform: scale(.92); }
@media (pointer: coarse) { .boss-root.fight .player-hud { bottom: calc(220px + env(safe-area-inset-bottom)); left: 16px; } }


/* Boss: flat HUD text (no glow) */
.boss-big { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); font-family: var(--font-display); letter-spacing: -.03em; }
.boss-preview { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); padding: 20px; display: grid; gap: 16px; }
.combo b { color: var(--gold); }
.of-title, .fight-banner, .boss-count { text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.defeated-text { animation-delay: 1.5s; }
.boss-vignette { background: none; }

.lab-avatar { font: 700 13px var(--font-display); }
.lab-avatar.lg { font-size: 20px; }

/* Speech attack HUD */
.speech-hud { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 5; display: grid; justify-items: center; gap: 6px; width: min(520px, calc(100% - 24px)); }
.speech-caption { max-width: 100%; padding: 6px 10px; border-radius: var(--r); background: rgba(14, 14, 15, .82); border: 1px solid var(--line); font-size: 13px; text-align: center; }
.pop.speech { font: 600 14px var(--font-body); color: #fff; background: rgba(14, 14, 15, .75); padding: 3px 8px; border-radius: var(--r); text-shadow: none; }
.tb.speak { left: 0; right: auto; bottom: 108px; width: 64px; height: 40px; border-radius: var(--r); font-size: 12px; font-weight: 700; background: rgba(14, 14, 15, .7); }
.tb.speak.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 760px) { .speech-hud { top: 112px; } }

/* ===== Business pages ===== */
.doc p { max-width: 680px; color: var(--text-2); }
.doc p strong { color: var(--text); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
ul.plain li:last-child { border-bottom: 0; }
.table.pricing th, .table.pricing td { width: 33.3%; }
.faq-dl dt { font-weight: 600; margin-top: 14px; }
.faq-dl dd { margin: 4px 0 0; color: var(--text-2); max-width: 680px; }
.report-sheet h2 { font-size: 14px; margin: 0 0 6px; }

/* Print: the progress report on white paper, nothing else */
@media print {
  @page { margin: 14mm; }
  :root { --bg: #fff; --panel: #fff; --panel-2: #fff; --line: #d9d9d9; --line-strong: #bbb; --text: #111; --text-2: #444; --text-3: #666; }
  body { background: #fff; color: #111; }
  .topnav, .bottomnav, .toasts, .no-print, .skip-link { display: none !important; }
  .page { padding: 0; }
  .report-sheet { color: #111; }
  .stat-strip { border-color: #ccc; }
  .table th { background: #f3f3f3; }
  .bar { background: #e5e5e5; } .bar > span { background: #b8372f; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.coach-note { max-width: 760px; margin: 0 0 16px; color: var(--text); font-size: 14px; line-height: 1.6; }
.coach-note .label { display: block; margin-bottom: 4px; }
.page-head p + p { margin-top: 4px; }

/* ---- growth: share, challenges, class dashboard ---- */
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-bar .small { margin-right: 4px; }
.challenge h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; margin: 8px 0 16px; }
.challenge .accent { color: var(--accent-text); }
.challenge .lead { font-size: 17px; color: var(--text-2); max-width: 560px; }
.challenge-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--accent); border-radius: var(--r-lg); font-size: 14px; }
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 28px 16px; border: 1px dashed var(--line-2, var(--line)); border-radius: var(--r-lg); cursor: pointer; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: var(--panel); }
.th-sort { all: unset; cursor: pointer; }
.th-sort:hover, .th-sort[aria-pressed="true"] { color: var(--text); }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table td.warn { color: var(--accent-text); }
.link-btn { all: unset; cursor: pointer; text-decoration: underline; color: var(--text-2); }
.link-btn:hover { color: var(--text); }
.steps { padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .dropzone, .land-nav, .footer { display: none !important; } }

/* ---- friends ---- */
.nav-icon { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r, 8px); color: var(--text-2); border: 1px solid transparent; transition: color .12s, border-color .12s, background .12s; }
.nav-icon svg { width: 19px; height: 19px; }
.nav-icon:hover { color: var(--text); border-color: var(--line); }
.nav-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-icon[aria-current="page"] { color: var(--text); border-color: var(--line); background: var(--panel); }
.nav-count { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #f6ecdd; font: 700 10px/16px var(--font-mono); text-align: center; }
.friend-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--accent); border-radius: var(--r-lg); font-size: 14px; }
.table tr.is-me td { background: var(--panel); }
textarea.input { resize: vertical; font-family: var(--font-mono); font-size: 12px; }

/* ---- kids ---- */
.score-dial-wrap { display: grid; justify-items: center; gap: 4px; }
.stars { font-size: 18px; letter-spacing: 2px; color: var(--line-strong, #40342f); }
.stars .on { color: var(--accent-text); }
.check span .small { display: block; margin-top: 2px; }

/* ---- chat ---- */
.chat-safety { max-width: 760px; margin: 0 0 12px; }
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-side .chat-section { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-side .chat-section:last-child { border-bottom: 0; }
.chat-side .label { margin-bottom: 6px; }
.chat-req { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; }
.chat-friend { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: var(--r, 8px); font-size: 14px; cursor: pointer; color: var(--text-2); }
.chat-friend:hover { background: var(--panel-hover); color: var(--text); }
.chat-friend:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.chat-friend[aria-current="true"] { background: var(--panel-2, var(--panel-hover)); color: var(--text); font-weight: 600; }
.chat-main { display: flex; flex-direction: column; min-height: 460px; }
.chat-msgs { flex: 1; overflow-y: auto; max-height: 56vh; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 75%; display: grid; gap: 2px; }
.msg.mine { align-self: flex-end; justify-items: end; }
.msg .bubble { padding: 8px 12px; border-radius: 12px; background: var(--panel-2, var(--bg-2)); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--accent); border-color: var(--accent); color: #f6ecdd; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input .input { flex: 1; }
@media (max-width: 760px) { .chat { grid-template-columns: 1fr; } .msg { max-width: 90%; } }

/* ---- guest ---- */
.try-age { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.guest-save { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--r-lg); font-size: 14px; }

/* ---- certificates ---- */
.certificate { --ink: #1d1a16; --paper: #f7f2e8; --muted: #6b6257; --red: #c4471f; max-width: 980px; margin: 0 auto; padding: 14px; background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.45); }
.cert-frame { position: relative; aspect-ratio: 1.414; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6% 9% 4%; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; }
.cert-corner { position: absolute; width: 54px; height: 54px; color: var(--red); }
.cert-corner.tl { top: 14px; left: 14px; } .cert-corner.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.cert-corner.bl { bottom: 14px; left: 14px; transform: scaleY(-1); } .cert-corner.br { bottom: 14px; right: 14px; transform: scale(-1); }
.cert-head { display: grid; justify-items: center; gap: 6px; margin-bottom: 4%; }
.cert-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font-display); letter-spacing: .04em; color: var(--ink); }
.cert-mark { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.cert-kicker { font: 500 clamp(1.4rem, 3.6vw, 2.3rem)/1.1 'Fraunces', Georgia, serif; font-variant: small-caps; letter-spacing: .08em; color: var(--ink); }
.cert-rule { display: flex; align-items: center; gap: 10px; width: min(360px, 60%); color: var(--red); }
.cert-rule span { flex: 1; height: 1px; background: var(--ink); opacity: .5; }
.cert-rule i { font-style: normal; font-size: 12px; }
.cert-small { margin: 0; font: italic 400 clamp(.9rem, 1.7vw, 1.05rem) 'Fraunces', Georgia, serif; color: var(--muted); }
.cert-name { margin: 2% 0 2.5%; padding: 0 5% 1.5%; min-width: 55%; font: 600 clamp(2.2rem, 7vw, 4.4rem)/1.05 'Fraunces', Georgia, serif; letter-spacing: -.01em; color: var(--ink); border-bottom: 1px solid rgba(29,26,22,.55); }
.cert-title { margin: 1.2% 0 0; font: 700 clamp(1.3rem, 3.6vw, 2.2rem)/1.15 var(--font-display); color: var(--red); letter-spacing: -.01em; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6%; }
.cert-sig { display: grid; justify-items: center; gap: 4px; }
.cert-script { font: italic 500 clamp(1.1rem, 2.4vw, 1.6rem) 'Fraunces', Georgia, serif; color: var(--ink); }
.cert-date { font: 500 clamp(.85rem, 1.6vw, 1rem) 'Fraunces', Georgia, serif; color: var(--ink); }
.cert-line { width: 100%; max-width: 220px; height: 1px; background: var(--ink); }
.cert-cap { font: 600 10px var(--font-mono, monospace); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cert-seal { width: clamp(78px, 13vw, 118px); height: auto; filter: drop-shadow(0 2px 0 rgba(0,0,0,.15)); }
.cert-id { margin-top: 2.2%; font: 500 10px var(--font-mono, monospace); letter-spacing: .12em; color: var(--muted); }
@media (max-width: 640px) {
  .cert-frame { aspect-ratio: auto; min-height: 540px; padding: 56px 22px 28px; }
  .cert-corner { width: 34px; height: 34px; }
  .cert-foot { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
  .cert-seal { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}
@media print {
  @page { size: landscape; margin: 10mm; }
  body { background: #fff !important; }
  .topnav, .bottomnav, .land-nav, .footer, .no-print, header.nav, nav { display: none !important; }
  main { padding: 0 !important; }
  .certificate { box-shadow: none; max-width: none; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* ---- homepage help chat ---- */
.helpbot { position: fixed; right: 16px; bottom: 72px; z-index: 2147483000; /* sits above the host's "Powered by" badge */ display: grid; justify-items: end; gap: 10px; }
.helpbot-launch { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #f6ecdd; font: 600 14px var(--font-body); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .12s, background .12s; }
.helpbot-launch svg { width: 18px; height: 18px; }
.helpbot-launch:hover { background: #c9443b; }
.helpbot-launch:active { transform: translateY(1px); }
.helpbot-launch:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.helpbot-launch[aria-expanded="true"] { background: var(--panel); color: var(--text); border-color: var(--line); }
.helpbot-panel { width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 170px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 16px 48px rgba(0,0,0,.5); overflow: hidden; }
.helpbot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.helpbot-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hb-msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: var(--bg-2, var(--bg)); border: 1px solid var(--line); }
.hb-msg.me { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #f6ecdd; }
.hb-msg.bot { align-self: flex-start; }
.hb-suggest { display: grid; gap: 4px; margin-top: 2px; }
.hb-suggest button { all: unset; cursor: pointer; font-size: 13px; color: var(--text-2); padding: 4px 2px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hb-suggest button:hover { color: var(--text); text-decoration-color: var(--accent); }
.hb-suggest button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.helpbot-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.helpbot-input .input { flex: 1; }
@media (max-width: 520px) { .helpbot-launch { padding: 10px 13px; font-size: 13px; } }
@media print { .helpbot { display: none !important; } }

/* ---- homepage feedback ---- */
.fb-form { display: grid; gap: 14px; max-width: 620px; }
.fb-form fieldset { border: 0; padding: 0; margin: 0; }
.fb-rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.fb-rate label { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r, 8px); cursor: pointer; transition: border-color .12s, background .12s; }
.fb-rate label b { font: 700 18px var(--font-mono); }
.fb-rate label span { font-size: 11px; color: var(--text-3); text-align: center; }
.fb-rate label:hover { border-color: var(--line-strong, var(--text-3)); background: var(--panel-hover); }
.fb-rate label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-rate label.on { border-color: var(--accent); background: var(--panel); }
.fb-rate label.on b { color: var(--accent-text); }
.fb-thanks { max-width: 620px; padding: 16px; border: 1px solid var(--accent); border-radius: var(--r-lg); }

/* ---- homepage "Admit one" ticket ---- */
.ticket-section { border-bottom: 0; }
.admit-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 170px; max-width: 920px; background: var(--panel); border: 1px solid var(--line-strong); }
/* the punched notches where the stub tears off */
.admit-ticket::before, .admit-ticket::after { content: ""; position: absolute; right: 160px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); }
.admit-ticket::before { top: -11px; } .admit-ticket::after { bottom: -11px; }
.at-main { padding: 28px 30px 26px; display: grid; gap: 10px; min-width: 0; }
.at-admit { font: 600 11px var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }
.at-title { margin: 0; font: 800 clamp(2.2rem, 6vw, 3.8rem)/.95 var(--font-display); letter-spacing: -.02em; text-transform: none; text-wrap: balance; }
.at-title i { font-weight: 400; color: var(--accent-text); }
.at-sub { margin: 0; max-width: 52ch; color: var(--text-2); }
.at-cta { margin-top: 8px; gap: 10px; flex-wrap: wrap; }
.at-stub { border-left: 2px dashed var(--line-strong); padding: 22px 16px; display: grid; align-content: space-between; gap: 14px; text-align: center; font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.at-stub b { display: block; margin-top: 2px; font: 800 26px/1.05 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }
.at-seat { color: var(--accent-text); }
@media (max-width: 680px) {
  .admit-ticket { grid-template-columns: 1fr; }
  .admit-ticket::before, .admit-ticket::after { display: none; }
  .at-main { padding: 22px 20px; }
  .at-stub { border-left: 0; border-top: 2px dashed var(--line-strong); grid-auto-flow: column; align-items: center; text-align: left; padding: 14px 20px; }
  .at-stub b { font-size: 18px; }
}
.preview-note { margin: 8px 0 10px; padding: 10px 12px; border: 1px solid var(--accent-text); border-radius: var(--r-lg); font-size: 14px; max-width: 640px; }
.preview-note strong { color: var(--accent-text); }

/* ---- demo mode bar ---- */
.demo-bar { border-bottom: 1px solid var(--accent-text); background: var(--panel); font-size: 13px; }
.demo-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 8px; }
.demo-bar strong { color: var(--accent-text); }

/* ---------- homepage hero frame (the 360 theatre lives inside .lux) ---------- */
.lux-nav { background: rgba(10, 8, 7, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(210, 162, 76, .12); }
.lux-nav .brand { letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.lux-nav nav a { font: 600 11px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.lux-nav nav a:hover { background: none; color: #e8c987; }
.lux { position: relative; overflow: hidden; min-height: calc(100svh - var(--nav-h)); display: grid; grid-template-rows: 1fr auto; background: radial-gradient(ellipse 60% 70% at 70% 45%, #2a1d14 0%, #120d0b 55%, #0a0807 100%); isolation: isolate; }
.lux::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)); }
.lux-btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px; border: 1px solid rgba(232,201,135,.55); color: #f3ead9; text-decoration: none; font: 600 12px var(--font-body); letter-spacing: .22em; text-transform: uppercase; transition: background .3s, border-color .3s, gap .3s; }
.lux-btn:hover { background: rgba(232,201,135,.08); border-color: #e8c987; gap: 20px; }
.lux-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.lux-btn-hot { background: #d4b06a; border-color: #f2d38f; color: #1a1210; font-weight: 700; cursor: pointer; }
.lux-btn-hot:hover { background: #f2d38f; border-color: #f2d38f; }
.lux-link { background: none; border: 0; padding: 4px 0; color: var(--text-2); font: 500 13px var(--font-body); cursor: pointer; border-bottom: 1px solid rgba(188,174,157,.3); }
.lux-link:hover, .lux-link[aria-pressed="true"] { color: #e8c987; border-bottom-color: #e8c987; }
.try-age .lux-link { border: 0; }
@media (prefers-reduced-motion: reduce) { .lux-btn { transition: none; } }

/* ---------- homepage below the theatre ---------- */
.lux-page { background: var(--bg); color: var(--text); }
.lux-page .lux { background: radial-gradient(ellipse 60% 70% at 70% 45%, #2a1d14 0%, #120d0b 55%, var(--bg) 100%); }
.lux-page .l-section { position: relative; border-bottom-color: var(--line); padding: 80px 0; }
.lux-page .l-section:nth-of-type(even) { background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(212, 176, 106, .05), transparent 70%); }
.lux-page .l-head h2, .sec-head h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.015em; color: var(--text); }

.lux-page .l-head p { font-size: 15px; line-height: 1.7; }
.lux-page .footer { border-top: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 34px; }
.sec-head .eyebrow { display: block; margin-bottom: 14px; }
.sec-head p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 12px 0 0; }

/* Speech Lab: Random Topic setup card */
.spin-card { display: grid; gap: 10px; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--panel-2); }
.spin-topic { font: 400 clamp(22px, 4vw, 30px)/1.2 var(--font-display); color: var(--text); animation: spin-in .45s var(--ease); }
@keyframes spin-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spin-topic { animation: none; } }

/* ---------- the cast: portrait cards (Speech Lab and the homepage) ---------- */
.cast-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 28px; }
/* No frames: each photo fades into the page like a programme's cast page, with the name set underneath. */
.cast-card {
  all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer;
}
.cast-card:focus-visible .cast-photo { box-shadow: var(--ring); }
.cast-photo { position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 6px 6px 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.cast-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.02); transition: transform .6s var(--ease), filter .6s; filter: saturate(.88) brightness(.92); }
.cast-card:hover .cast-photo img { transform: scale(1.06); filter: saturate(1.05) brightness(1.05); }
.cast-body { position: relative; display: grid; gap: 3px; padding: 0 2px; margin-top: -40px; z-index: 1; flex: 1; }
.cast-role { font: 600 10.5px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #c4a46a; }
.cast-name { font: 500 28px/1.05 var(--font-display); color: var(--text); letter-spacing: -.01em; transition: color .2s; }
.cast-card:hover .cast-name { color: var(--accent-text); }
.cast-scene { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 6px; }
.cast-scene b { display: block; color: var(--text); font-weight: 600; font-style: italic; font-family: var(--font-display); font-size: 16px; }
.cast-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 14px; font-size: 12px; color: var(--text-3); }
.cast-go { margin-left: auto; font-weight: 700; color: var(--accent-text); transition: transform .2s var(--ease); }
.cast-card:hover .cast-go { transform: translateX(3px); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 236, 200, .12); }
.pips i.on { background: var(--accent); }
/* homepage version: one row of seven, scrolls sideways on small screens */
.cast-row { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 20px; }
.cast-row .cast-body { margin-top: -30px; }
.cast-row .cast-name { font-size: 22px; }
.cast-row .cast-scene b { font-size: 14px; }
.cast-row .cast-photo { aspect-ratio: 4 / 5; }
@media (max-width: 1100px) {
  .cast-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 172px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: thin; }
  .cast-row > li { scroll-snap-align: start; }
}
.cast-age { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }

/* ---------- dashboard ---------- */
.dash-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 30px 32px; margin-bottom: 18px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 60% 120% at 85% 0%, rgba(214, 160, 90, .16), transparent 60%), radial-gradient(ellipse 50% 80% at 0% 100%, rgba(184, 55, 47, .10), transparent 60%), linear-gradient(180deg, #1a1410, #120e0b);
  box-shadow: var(--lift), var(--shadow); }
/* a soft spotlight cone over the level ring */
.dash-hero::before { content: ""; position: absolute; z-index: -1; top: -40%; right: 6%; width: 340px; height: 160%; background: conic-gradient(from 180deg at 50% 0%, transparent 162deg, rgba(240, 205, 140, .08) 174deg, rgba(240, 205, 140, .13) 180deg, rgba(240, 205, 140, .08) 186deg, transparent 198deg); filter: blur(4px); pointer-events: none; }
.dash-hello h1 { margin: 12px 0 8px; font-size: clamp(30px, 3.6vw, 44px); }
.dash-hello p { color: var(--text-2); max-width: 560px; margin: 0; font-size: 15px; }
.dash-cta { margin-top: 22px; gap: 10px; }
.dash-level { display: flex; align-items: center; gap: 24px; }
.dash-level .level-ring .lv b { font-size: 40px; }
.dash-facts { display: grid; gap: 12px; margin: 0; min-width: 150px; }
.dash-facts div { display: grid; gap: 2px; }
.dash-facts dt { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.dash-facts dt .ico { width: 13px; height: 13px; color: var(--accent-text); }
.dash-facts dd { margin: 0; font: 500 22px/1.1 var(--font-display); font-variant-numeric: lining-nums tabular-nums; }
.dash-facts dd small { font: 500 12px var(--font-body); color: var(--text-3); }
@media (max-width: 860px) {
  .dash-hero { grid-template-columns: 1fr; padding: 22px 20px; gap: 20px; }
  .dash-hero::before { right: -20%; }
  .dash-level { justify-content: space-between; }
}
@media (max-width: 420px) { .dash-level .level-ring { width: 104px !important; height: 104px !important; } .dash-cta .btn { width: 100%; } }
.sess-list li { padding: 12px 18px; }
.sess-score { min-width: 42px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 9px; font: 500 16px var(--font-display); border: 1px solid var(--line-strong); background: rgba(255, 236, 200, .03); }
.empty-note { display: grid; gap: 4px; justify-items: start; padding: 22px 18px; color: var(--text-2); font-size: 13.5px; }
.empty-note strong { font: 500 17px var(--font-display); color: var(--text); }
/* today's quest is printed on a ticket: punched edges and a torn line before the reward */
.quest-ticket { padding-left: 24px; border-color: rgba(212, 176, 106, .28);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.quest-ticket .q-reward { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(212, 176, 106, .35); }
.cast-teaser { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-decoration: none; }
.faces { display: flex; }
.faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 16%; border: 2px solid var(--panel); margin-left: -12px; background: #1a120c; }
.faces img:first-child { margin-left: 0; }
.cast-teaser strong { display: block; font-size: 14px; }
.cast-teaser .tiny { display: block; margin-top: 2px; }

/* ---------- homepage: the example report, annotated by hand ---------- */
.annotated { position: relative; padding: 34px 0 40px; }
.note { position: absolute; font: 600 22px/1.05 var(--font-hand); color: var(--accent-text); white-space: nowrap; pointer-events: none; }
.note svg { position: absolute; width: 70px; height: 46px; overflow: visible; }
.note path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.note-score { top: -2px; left: 112px; transform: rotate(-3deg); }
.note-score svg { left: -62px; top: 8px; }
.note-next { bottom: 0; right: 6px; transform: rotate(2deg); }
.note-next svg { right: 40%; top: -40px; }
@media (max-width: 620px) { .note { font-size: 19px; } .note-score { left: 86px; } }

/* ---------- homepage: the drills as a printed programme ---------- */
.programme { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.programme li { display: grid; grid-template-columns: 92px auto minmax(24px, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.programme li:first-child { border-top: 1px solid var(--line); }
.pg-no { font: 600 11px var(--font-mono); letter-spacing: .06em; color: var(--text-3); text-transform: uppercase; }
.pg-name { font: 500 19px/1.2 var(--font-display); color: var(--text); }
.pg-dots { align-self: end; margin-bottom: 6px; border-bottom: 1px dotted rgba(212, 176, 106, .45); }
.pg-how { font-size: 13px; color: var(--accent-text); text-align: right; }
.pg-what { grid-column: 2 / -1; font-size: 13.5px; color: var(--text-2); }
.programme li.finale .pg-name { color: #f2a99c; }
.programme li.finale .pg-no { color: #d6544a; }
@media (max-width: 620px) {
  .programme li { grid-template-columns: 1fr auto; }
  .pg-no { grid-column: 1 / -1; }
  .pg-dots { display: none; }
  .pg-what { grid-column: 1 / -1; }
}

/* ---------- homepage: notes from the workshop ---------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.notes-grid.one { grid-template-columns: minmax(0, 760px); }
@media (max-width: 960px) { .notes-grid, .notes-grid.one { grid-template-columns: 1fr; } }
.note-card { padding: 22px 22px 16px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 236, 200, .03), transparent 50%), var(--panel); box-shadow: var(--lift), var(--shadow); }
.note-card h3 { font: 500 20px/1.2 var(--font-display); margin: 0 0 14px; }
.note-card ul { list-style: none; margin: 0; padding: 0; }
.note-card li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.note-card li:first-child { border-top: 0; }
.note-card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent); }
.note-card li b { color: var(--text); font-weight: 600; }
.note-card code { font: 500 12px var(--font-mono); color: var(--accent-text); }
.shiplog li { padding-left: 0; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; }
.shiplog li::before { display: none; }
.tag { font: 600 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 6px; border: 1px solid rgba(212, 176, 106, .4); color: var(--accent-text); }
.tag.fix { border-color: rgba(143, 191, 122, .4); color: var(--good); }
.footer-credits { margin-top: 10px; color: var(--text-3); font-size: 12px; }
.footer-credits a { color: var(--text-2); }

/* ---------- quick start: four tickets ---------- */
.quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; border-radius: 0; overflow: visible; }
@media (max-width: 620px) { .quick-list { grid-template-columns: 1fr; } }
.quick-item { all: unset; box-sizing: border-box; position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 236, 200, .03), transparent 60%), var(--panel); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.quick-item:hover { border-color: rgba(212, 176, 106, .45); transform: translateY(-2px); background: linear-gradient(180deg, rgba(212, 176, 106, .07), transparent 70%), var(--panel); }
.quick-item:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.qi-n { font: 600 11px var(--font-mono); color: var(--accent-text); letter-spacing: .08em; padding-right: 10px; border-right: 1px dashed rgba(212, 176, 106, .35); }
.qi-t { display: grid; gap: 3px; min-width: 0; }
.qi-t strong { font: 500 17px var(--font-display); color: var(--text); }
.qi-t span { font-size: 13px; color: var(--text-3); }
.qi-go { color: var(--accent-text); font-size: 18px; transition: transform .15s; }
.quick-item:hover .qi-go { transform: translateX(3px); }
.table.compare th.us, .table.compare td.us { color: var(--accent-text); }
.table.compare td.us { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .qi-go, .quick-item, .cast-card, .cast-photo img { transition: none; } }

/* ---------- homepage motion (js/ui/motion.js) ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.motion-on:not(.lux-go) .lux :is(.pano-card, .pano-hud) { opacity: 0; }
.motion-on.lux-go .pano-card { animation: riseIn .7s var(--ease) .1s both; }
.motion-on.lux-go .pano-hud { animation: fadeIn 1s var(--ease) .8s both; }
.lux-btn { position: relative; overflow: hidden; }
.lux-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,231,170,.22) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.motion-on.lux-go .lux-btn::after { animation: sheen 5s ease-in-out 2.2s infinite; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- 360 theatre cover (js/ui/theatre.js) ---------- */
.pano { display: block; min-height: calc(100svh - var(--nav-h)); background: #07050a; }
.pano::after { background: linear-gradient(to top, rgba(6,4,3,.92) 0%, rgba(6,4,3,.55) 28%, transparent 55%), linear-gradient(to right, rgba(6,4,3,.6), transparent 45%); z-index: 1; }
.pano-stage { position: absolute; inset: 0; }
.pano-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; outline: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.pano.mic-ready .pano-stage canvas { opacity: 1; }
.pano-stage canvas.grabbing { cursor: grabbing; }
.pano-stage canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pano:not(.mic-ready) .pano-pin { display: none; }
.pano-pin { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 0; margin: -22px 0 0 -22px; background: none; border: 0; color: #f3ead9; cursor: pointer; will-change: transform; }
.pin-dot { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,180,106,.92); box-shadow: 0 4px 18px rgba(0,0,0,.45), 0 0 0 0 rgba(232,180,106,.5); transition: transform .25s var(--ease), background .25s; }
.pin-dot i { width: 10px; height: 10px; border-radius: 50%; background: #1b120a; }
.pin-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(240,200,130,.55); animation: pinPulse 2.6s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.45); opacity: 0; } }
.pin-name { font: 600 11px var(--font-body); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; padding: 6px 10px; background: rgba(10,8,7,.72); border: 1px solid rgba(232,201,135,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pano-pin:hover .pin-dot, .pano-pin:focus-visible .pin-dot, .pano-pin.on .pin-dot { transform: scale(1.12); background: #f1c784; }
.pano-pin:hover .pin-name, .pano-pin:focus-visible .pin-name, .pano-pin.on .pin-name { opacity: 1; transform: none; }
.pano-pin:focus-visible { outline: none; } .pano-pin:focus-visible .pin-dot { box-shadow: 0 0 0 3px #0c0a08, 0 0 0 5px var(--accent); }
.pano-card { position: absolute; z-index: 3; left: max(16px, calc((100vw - 1180px) / 2 + 16px)); bottom: 34px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.pano-card > * { pointer-events: auto; }
.pano-copy { animation: fadeIn .45s var(--ease) both; }
.pano-title { font: 400 clamp(38px, 5vw, 64px)/1.02 var(--font-display); letter-spacing: -.015em; color: #f3ead9; margin: 0 0 14px; }
.pano-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 600 10.5px var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: #e2c27f; margin-bottom: 14px; }
.pano-line { width: 54px; height: 1px; background: linear-gradient(to right, #e2c27f, rgba(226,194,127,.2)); }
.pano-tick { width: 4px; height: 4px; border-radius: 50%; background: rgba(226,194,127,.6); }
.pano-body { font: 400 15px/1.65 var(--font-body); color: #cdbfae; margin: 0 0 20px; max-width: 420px; }
.pano-demo { display: grid; gap: 6px; margin: -6px 0 18px; font-size: 13px; color: var(--text-2); }
.pano-demo .lux-link { justify-self: start; }
.pano-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.pano-places { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(232,201,135,.14); }
.pano-places button { background: none; border: 0; padding: 2px 0; color: var(--text-3); font: 600 10.5px var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.pano-places button:hover, .pano-places button:focus-visible { color: #e8c987; }
.pano-hud { position: absolute; z-index: 3; right: max(16px, calc((100vw - 1180px) / 2 + 16px)); bottom: 34px; display: grid; justify-items: end; gap: 4px; pointer-events: none; }
.pano-deg { font: 500 22px/1 var(--font-mono); color: #e8c987; letter-spacing: .04em; }
.pano-hint { font: 600 10px var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); transition: opacity .6s; }
.pano-hint.gone { opacity: 0; }
@media (max-width: 760px) {
  .pano { min-height: calc(100svh - var(--nav-h)); }
  .pano::after { background: linear-gradient(to top, rgba(6,4,3,.96) 0%, rgba(6,4,3,.75) 42%, transparent 66%); }
  .pano-card { bottom: 20px; }
  .pano-title { font-size: 40px; }
  .pano-body { font-size: 14px; margin-bottom: 16px; }
  .pano-hud { top: 14px; bottom: auto; }
  .pin-dot { width: 38px; height: 38px; } .pano-pin { margin: -19px 0 0 -19px; }
}
@media (prefers-reduced-motion: reduce) { .pin-dot::after { animation: none; } .pano-stage canvas { transition: none; } }
.reduce-motion .pin-dot::after { animation: none; }

/* nav firms up after scrolling */
.lux-nav { transition: background .3s, box-shadow .3s; }
.lux-nav.scrolled { background: rgba(10, 8, 7, .9); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* scroll reveals */
.motion-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion-on .rv.in { opacity: 1; transform: none; }
.motion-on .lux-page .l-head h2::before, .motion-on.lux-page .l-head h2::before { width: 0; transition: width .9s var(--ease) .2s; }
.motion-on.lux-page .rv.in h2::before { width: 28px; }
.motion-on .rv .bar > span { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.motion-on .rv.in .bar > span { transform: none; }
.motion-on .rv.in .skill-row:nth-child(2) .bar > span { transition-delay: .4s; }
.motion-on .rv.in .skill-row:nth-child(3) .bar > span { transition-delay: .5s; }
.motion-on .rv.in .skill-row:nth-child(4) .bar > span { transition-delay: .6s; }
.motion-on .how li.in { transition-property: opacity, transform, border-color; }
.motion-on .how li { border-top-color: var(--line-strong); }
.motion-on .how li.in:hover { border-top-color: var(--accent); }

/* ticket leans toward the pointer, with a light sweep */
.motion-on .admit-ticket.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, opacity .8s var(--ease); }
.admit-ticket .at-main { position: relative; }
.motion-on .admit-ticket .at-main::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 220px at var(--mx, 50%) 40%, rgba(232,201,135,.10), transparent 70%); }

@media (prefers-reduced-motion: reduce) {
  .lux-dust { display: none; }
  .rv, .lux * { animation: none !important; transition: none !important; }
}

/* ---------- no info boxes ----------
   Information sits on the page like printed text in a programme: a thin rule
   above it and some space, never a bordered, shadowed box. Only things you press
   or type into keep an outline. */
.card, .panel, .card.glow, .card.hero-card {
  background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; padding: 20px 0 4px; overflow: visible;
}
.card.pad-lg { padding: 24px 0 4px; }
.card.interactive { border-radius: var(--r); padding: 18px 12px; margin: 0 -12px; border-top-color: var(--line); }
.card.interactive:hover { background: var(--panel); border-color: var(--line); transform: none; }
.card.glow { border-top-color: rgba(212, 176, 106, .45); }
.panel-head { padding: 0 0 12px; background: none; border-bottom: 0; }
.panel > :not(.panel-head) { padding-left: 0; padding-right: 0; }
.notice, .notice.info, .preview-note {
  background: none; border: 0; border-radius: 0; padding: 0; color: var(--text-2);
}
.notice strong, .preview-note strong { color: var(--accent-text); }
.demo-bar { background: none; }
.dash-hero { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 26px 0 30px; overflow: visible; border-bottom: 1px solid var(--line); }
.dash-hero::before { right: 0; opacity: .8; }
.stat-strip { background: none; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip > :first-child { padding-left: 0; }
.boss-preview { background: none; border: 0; border-radius: 0; padding: 4px 0 8px; }
.boss-preview .table td:first-child, .boss-preview .table th:first-child { padding-left: 0; }

/* ---------- the um counter ---------- */
.um h1 { font-size: clamp(36px, 6vw, 60px); margin-top: 6px; }
.um-lede { max-width: 560px; font-size: 16px; }
.um-warn { color: var(--warn); }
.um-stage { margin: 34px 0 18px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.um-count { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.um-n { font: 500 clamp(110px, 22vw, 190px)/.85 var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.04em; color: var(--text); }
.um-of { font: italic 500 26px var(--font-display); color: var(--text-2); }
.um-meta { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.um-bar { height: 3px; margin-top: 10px; background: var(--line); }
.um-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
.um-prompt { margin: 6px 0 18px; color: var(--text-2); }
.um-prompt .label { margin-right: 6px; }
.um-prompt .link { background: none; border: 0; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.um-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.um-text { margin-top: 22px; max-height: 220px; overflow: auto; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.um-text mark { background: var(--velvet-tint); color: #ffd9d2; padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--velvet); }
.um-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.um-verdict { font: italic 500 24px/1.3 var(--font-display); color: var(--text); }
.um-small { margin-top: 40px; max-width: 600px; }
.then-now { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0; }
.tn-nums { display: flex; align-items: flex-end; gap: 18px; }
.tn-nums span { display: grid; }
.tn-nums small { font: 600 10.5px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.tn-nums b { font: 500 54px/1 var(--font-display); font-variant-numeric: lining-nums; }
.tn-nums b.dim { color: var(--text-3); }
.tn-arrow { font-size: 28px; color: var(--accent); padding-bottom: 8px; }
.tn-side { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 600px) { .tn-side { justify-items: start; } }

/* ---------- practice without boxes ---------- */
/* topics read like a list on a page: hairlines between rows, the chosen one turns gold */
.topic-list { display: grid; border-top: 1px solid var(--line); }
.topic-list .option { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 4px 14px 30px; box-shadow: none; }
.topic-list .option::before { left: 4px; width: 12px; height: 12px; margin-top: -6px; }
.topic-list .option:hover { background: none; color: var(--text); }
.topic-list .option[aria-checked="true"] { background: none; border-color: var(--line); color: var(--accent-text); }
.rec-topic { text-align: left; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.rec-topic .p-text { font: 500 clamp(22px, 3vw, 30px)/1.25 var(--font-display); letter-spacing: -.01em; margin-top: 6px; }
.recorder .transcript { background: none; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; padding: 4px 0 4px 14px; font-size: 15px; }
.grade-banner { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; }
.grade-banner.unlocked { background: none; }
.guest-save { border: 0; border-top: 1px solid var(--accent); border-radius: 0; padding: 14px 0 0; }

/* ---------- giant type + scroll tour over the theatre ---------- */
.pano-giant { font: 400 clamp(64px, 11vw, 168px)/.9 var(--font-display); letter-spacing: -.035em; margin: 0 0 22px; }
.pano-giant em { display: block; font-style: italic; color: #f2d38f; padding-left: .5em; }
.pano-card:has(.pano-giant) { width: min(760px, calc(100% - 32px)); }
.pano-card:has(.pano-giant) .pano-body { max-width: 440px; }
.pano-scroll.on { height: calc(100svh * (var(--tour-n) + 1.2)); }
.pano-scroll.on > .pano { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); min-height: 0; overflow: hidden; }
.pano-pin[hidden] { display: none; }
.pano-scrollcue { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 600 10px var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); }
.pano-scrollcue::before { content: ''; width: 1px; height: 22px; background: linear-gradient(#e8c987, transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.pano .pano-card, .pano .pano-hud { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pano.is-tour .pano-card, .pano.is-tour .pano-hud, .pano.is-tour .pano-pin { opacity: 0; pointer-events: none; animation: none; }
.pano.is-tour .pano-card { transform: translateY(-14px); }
.tour { position: absolute; inset: 0; z-index: 3; display: grid; align-content: end; padding: 0 max(16px, calc((100vw - 1180px) / 2 + 16px)) 40px; pointer-events: none; }
.tour-copy { animation: tourIn .6s var(--ease) both; }
@keyframes tourIn { from { opacity: 0; transform: translateY(40px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.tour-n { display: block; color: #e2c27f; font-size: 12px; letter-spacing: .2em; margin-bottom: 10px; }
.tour-word { font: 400 clamp(72px, 14vw, 220px)/.88 var(--font-display); letter-spacing: -.04em; color: #f3ead9; margin: 0 0 .26em; text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.tour-line { font: 400 16px/1.6 var(--font-body); color: #cdbfae; max-width: 460px; margin: 0 0 24px; }
.tour-cta { pointer-events: auto; opacity: 0; transition: opacity .4s; }
.pano.is-tour .tour-cta { opacity: 1; }
.pano:not(.is-tour) .tour-cta { pointer-events: none; }
@media (max-width: 760px) {
  .pano-giant { font-size: clamp(58px, 17vw, 96px); }
  .tour { padding-bottom: 24px; }
  .tour-line { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tour-copy, .pano-scrollcue::before { animation: none; } }

/* ---------- homepage motion graphics (js/ui/motion-fx.js) ---------- */
.fx-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, #a8864a, #f2d38f); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.fx-spot { position: fixed; left: -320px; top: -320px; width: 640px; height: 640px; border-radius: 50%; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(242, 211, 143, .09), transparent); opacity: 0; transition: opacity .6s; will-change: transform; }
.fx-spot.on { opacity: 1; }

.fx-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .16em; margin-bottom: -.16em; }
.fx-w > span { display: inline-block; transform: translateY(112%); transition: transform .8s var(--ease); transition-delay: calc(var(--w) * 55ms); }
.fx-split.fx-in .fx-w > span { transform: none; }

.fband { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0807; }
.fband-track { display: inline-flex; align-items: baseline; gap: 44px; white-space: nowrap; will-change: transform; }
.fw { position: relative; font: italic 400 clamp(34px, 5vw, 64px)/1.15 var(--font-display); color: rgba(243, 234, 217, .26); cursor: pointer; transition: color .3s; user-select: none; }
.fw:hover { color: rgba(243, 234, 217, .62); }
.fw::after { content: ''; position: absolute; left: -4%; right: -4%; top: 56%; height: 3px; background: #b8372f; transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.fw.hit { color: rgba(243, 234, 217, .14); }
.fw.hit::after { transform: scaleX(1); }

.wave-band { height: 130px; padding: 0; overflow: hidden; border-top: 1px solid var(--line); }
.wave-band canvas { display: block; width: 100%; height: 100%; }
.motion-off .wave-band { display: none; }

.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease); }
.cast-card.fx-tilt::after, .mock.fx-tilt::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 236, 200, .14), transparent 55%); }
.cast-card.fx-tilt:hover::after, .mock.fx-tilt:hover::after { opacity: 1; }
.mock.fx-tilt { position: relative; }
.fx-mag { transition: translate .25s var(--ease), background .3s, border-color .3s, gap .3s; }

.motion-on .mock:not(.in) .bar > span { width: 0 !important; }
.motion-on .mock .bar > span { transition: width 1.2s var(--ease) .35s; }
.skill-row { transition: color .2s; }
.mock .skill-row:hover { color: var(--accent-text); }
.mock tbody tr { transition: background .2s; }
.mock tbody tr:hover { background: rgba(232, 201, 135, .07); }
.motion-on .annotated .note { opacity: 0; transition: opacity .7s var(--ease) 1.3s; }
.motion-on .annotated:has(.mock.in) .note { opacity: 1; }

@media (min-width: 861px) {
  .motion-on .how { position: relative; }
  .motion-on .how::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #e3c486; box-shadow: 0 0 12px rgba(227, 196, 134, .6); transform: scaleX(var(--p, 0)); transform-origin: left; z-index: 1; }
}
.motion-on .how li b { width: fit-content; transition: color .3s, transform .4s var(--ease); transform-origin: left; }
.motion-on .how li.lit b { transform: scale(1.5); color: #f2d38f; }
.motion-on .how li:not(.lit) :is(strong, span) { opacity: .45; }
.motion-on .how li :is(strong, span) { transition: opacity .4s; }

.motion-on .programme li { position: relative; }
.motion-on .programme li::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(232, 201, 135, .1), transparent 75%); opacity: 0; transition: opacity .35s; }
.motion-on .programme li.now::before, .motion-on .programme li:hover::before { opacity: 1; }
.motion-on .programme .pg-name { transition: transform .4s var(--ease), color .3s; }
.motion-on .programme li.now .pg-name, .motion-on .programme li:hover .pg-name { transform: translateX(8px); color: #f2d38f; }
.motion-on .programme li:not(.in) .pg-dots { transform: scaleX(0); }
.motion-on .programme .pg-dots { transform-origin: left; transition: transform 1s var(--ease) .3s; }

.motion-on .panel.in td.us, .motion-on .panel.in th.us { animation: usGlow 1.4s var(--ease) .5s both; }
@keyframes usGlow { 0% { background: rgba(232, 201, 135, 0); } 45% { background: rgba(232, 201, 135, .2); } 100% { background: rgba(232, 201, 135, .06); } }

.fx-dots { display: inline-flex; gap: 5px; align-items: center; height: 1em; }
.fx-dots b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: fxDot 1s ease-in-out infinite; }
.fx-dots b:nth-child(2) { animation-delay: .15s; } .fx-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes fxDot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

.motion-on .faq details[open] p { animation: riseIn .35s var(--ease) both; }
.motion-on .fb-rate label { transition: transform .25s var(--ease), background .2s, border-color .2s; }
.motion-on .fb-rate label:hover { transform: translateY(-3px); }
.motion-on .fb-rate label.on { transform: scale(1.06); }
.motion-on .admit-ticket { transition: opacity .8s var(--ease); will-change: scale; }
@media (max-width: 620px) { .wave-band { height: 90px; } .fband { padding: 18px 0; } }
.motion-on .fx-tilt.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease), opacity .8s var(--ease); }

/* ---------- trust: who made this ---------- */
.pano-trust { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: #bcae9d; }
.founder { max-width: 620px; }
.lux-page .l-head .founder p { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }
.founder a { color: var(--accent-text); }
.lux-page .l-head .founder .founder-sign { font: 600 30px/1 var(--font-hand); color: var(--accent-text); margin: 6px 0 0; }

/* homepage: skip the tour, today's topic, sticky try bar */
.pano-cue-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pano-cue-row .pano-scrollcue { margin-top: 16px; }
.pano-skip { margin-top: 16px; font: 600 12px var(--font-body); color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pano-skip:hover { color: #f2d38f; }
.today-topic { padding: 18px 20px; border: 1px solid rgba(212,176,106,.45); border-radius: 14px; background: linear-gradient(135deg, rgba(212,176,106,.12), rgba(184,55,47,.08)); display: grid; gap: 10px; justify-items: start; }
.lux-page .today-topic .tt-q { margin: 0; font: 500 clamp(19px, 2.4vw, 24px)/1.3 var(--font-display); color: var(--text); }
.today-topic .try-age { flex-wrap: wrap; }
.sticky-try { position: fixed; left: 50%; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 10px; background: rgba(18,14,10,.92); border: 1px solid rgba(212,176,106,.4); box-shadow: 0 12px 40px rgba(0,0,0,.5); backdrop-filter: blur(10px); transform: translate(-50%, 140%); opacity: 0; transition: transform .35s ease, opacity .35s ease; max-width: calc(100vw - 32px); }
.sticky-try.on { transform: translate(-50%, 0); opacity: 1; }
.sticky-try .st-text { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.sticky-try .lux-btn { padding: 10px 18px; font-size: 14px; }
.sticky-try .try-age { gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) { .sticky-try .st-text { display: none; } .sticky-try { padding: 6px; left: 16px; right: 16px; transform: translate(0, 140%); justify-content: center; } .sticky-try.on { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-try { transition: none; } }

/* Text instead of icons (no icons in the UI) */
.nav-icon { width: auto; padding: 0 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.bottomnav a { min-height: 46px; font-size: 12px; }
.tb.atk, .tb.block, .tb.dodge { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.tb.atk { font-size: 15px; }
.menu .menu-mobile { display: none; }
@media (max-width: 520px) {
  .nav-right .nav-icon, .nav-right > .btn-ghost { display: none; }
  .menu .menu-mobile { display: flex; }
}
.typo-note { margin-top: 6px; font-size: 12.5px; color: #f2b8a8; }

/* Speech Lab: "Make your own" card */
.cast-photo-custom { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, #4a3320 0%, #2a1e15 55%, #15110d 100%); }
.cast-photo-custom span { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: #f2d38f; transition: transform .6s var(--ease); }
.cast-card:hover .cast-photo-custom span { transform: scale(1.12); }

/* ---------- Home: practice first ---------- */
.stage-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: end; padding: 34px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.stage-copy h1 { margin: 10px 0 18px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; max-width: 680px; }
.stage-topic { border-left: 3px solid var(--velvet); padding: 4px 0 4px 18px; margin-bottom: 22px; max-width: 640px; }
.stage-topic-label { display: block; font: 600 10.5px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.stage-topic p { margin: 0; font: 400 clamp(19px, 2.2vw, 24px)/1.35 var(--font-display); font-style: italic; color: var(--text); }
.stage-cta { gap: 12px; align-items: center; }
.mic-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 16px; border-radius: 10px; background: var(--velvet); color: #fbf3e6; font: 700 16px var(--font-body); text-decoration: none; box-shadow: 0 10px 30px -12px rgba(184, 55, 47, .8); transition: background .2s, transform .2s var(--ease); }
.mic-btn:hover { background: var(--velvet-hover); transform: translateY(-1px); }
.mic-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.mic-dot { width: 30px; height: 30px; border-radius: 50%; background: #fbf3e6; position: relative; flex: none; }
.mic-dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--velvet); animation: micpulse 1.8s ease-in-out infinite; }
@keyframes micpulse { 50% { transform: scale(.7); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .mic-dot::after { animation: none; } }
.stage-note { margin: 12px 0 0; }
.stage-art svg { width: 100%; height: auto; display: block; }
.coach-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 22px; max-width: 820px; }
.coach-note-face { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font: 600 18px var(--font-display); border: 1px solid var(--line-strong); }
.coach-note-body p { margin: 0 0 10px; color: var(--text-2); max-width: 640px; }
.coach-note-body b { color: var(--text); font-weight: 600; }
.coach-note-who { font-weight: 700; color: var(--text) !important; margin-bottom: 2px !important; font-size: 13px; }
.dash-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.choice { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.choice:hover { border-color: var(--line-strong); background: var(--panel-hover); transform: translateY(-2px); }
.choice:focus-visible { outline: none; box-shadow: var(--ring); }
.choice strong { font: 500 20px/1.2 var(--font-display); }
.choice > span:last-child { color: var(--text-2); font-size: 13.5px; }
.choice-kicker { font: 600 10.5px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.choice .faces { display: flex; margin-bottom: 4px; }
.choice .faces img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--panel); margin-left: -8px; }
.choice .faces img:first-child { margin-left: 0; }
.dash-stats { display: flex; align-items: center; gap: 18px; }
.dash-stats .dash-facts { min-width: 0; gap: 8px; }
.dash-stats .dash-facts dd { font-size: 18px; }
@media (max-width: 760px) {
  .stage-hero { grid-template-columns: 1fr; padding-top: 22px; }
  .stage-art { display: none; }
  .dash-choices { grid-template-columns: 1fr; }
  .mic-btn { flex: 1 1 100%; justify-content: center; }
  .stage-cta .btn { flex: 1 1 100%; }
}

/* ---------- Polish: spring motion, press feedback, softer surfaces ---------- */
:root {
  /* a gentle spring: a touch of overshoot, then settles */
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --press: cubic-bezier(.2, .9, .3, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.097 28.8%, 1.035 35.2%, 1.008 39%, .993 43.3%, .992 50.6%, 1 64.4%, 1); }
}
body { letter-spacing: .005em; }
.small, .tiny { letter-spacing: .01em; }

/* everything you press shrinks a little, then springs back */
.btn, .mic-btn, .choice, .cast-card, .chip, .bottomnav a, .navlinks a, .avatar, .link-btn {
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s, transform .45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]), .mic-btn:active, .chip:active, .avatar:active, .link-btn:active { transform: scale(.96); transition-duration: .08s; transition-timing-function: var(--press); }
.choice:active, .cast-card:active { transform: scale(.98); transition-duration: .1s; transition-timing-function: var(--press); }
.bottomnav a:active { transform: scale(.92); transition-duration: .08s; }
.choice:hover, .card.interactive:hover { transform: translateY(-2px); }
.mic-btn:hover { transform: translateY(-1px) scale(1.01); }

/* home cards: soft background contrast instead of outlines */
.choice, .coach-note { border: 0; background: rgba(255, 236, 200, .035); }
.choice:hover { background: rgba(255, 236, 200, .06); border: 0; }
.coach-note { border-radius: 20px; padding: 20px 24px; }
.coach-note-face { border: 0; }

/* page content eases in instead of popping */
/* opacity only: a transform here would break fixed-position overlays inside the page */
main.page { animation: pageIn .35s ease-out both; }
@keyframes pageIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  main.page { animation: none; }
  .btn, .mic-btn, .choice, .cast-card, .chip { transition: background .18s, color .18s; }
  .btn:active, .mic-btn:active, .choice:active, .cast-card:active { transform: none; }
}

/* ---------- Less template-y: uneven layouts, real chat, varied rhythm ---------- */
/* Home: one big "talk to someone" card and two smaller ones beside it, not three equal boxes */
.dash-choices { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.choice-big { grid-row: span 2; justify-content: flex-end; padding: 22px; min-height: 170px; }
.choice-big strong { font-size: 26px; }
.choice-big > span:last-child { max-width: 42ch; font-size: 14.5px; }
.choice-big .faces img { width: 40px; height: 40px; }
.choice:not(.choice-big) { padding: 14px 18px; gap: 2px; }
.choice:not(.choice-big) strong { font-size: 17px; }
.stage-hello { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .dash-choices { grid-template-columns: 1fr; } .choice-big { grid-row: auto; min-height: 0; } .choice-big strong { font-size: 22px; } }

/* Landing: the coach example looks like an actual chat */
.chat-demo { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.bubble { margin: 0; padding: 11px 15px; border-radius: 18px; max-width: 85%; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #1a1208; border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.chat-a { align-self: flex-start; background: var(--panel); border-bottom-left-radius: 6px; }
.bubble-who { display: block; font-size: 12px; color: var(--accent-text); font-weight: 600; margin-bottom: 2px; }

/* related sections sit closer together instead of the same gap everywhere */
.l-section.tight { padding: 28px 0 40px; }
.l-section.tight + .l-section { padding-top: 64px; }

/* shown when the device loses its connection */
.offline-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 140px)); visibility: hidden; z-index: 300; width: min(440px, calc(100% - 32px)); padding: 10px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--text); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .35s var(--spring, ease), visibility 0s .35s; }
.offline-bar.on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--spring, ease); }
.offline-bar b { color: var(--warn); }
@media (max-width: 760px) { .offline-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* in-page links (Leave a review, FAQ) stop below the sticky top bar */
.lux-page .l-section { scroll-margin-top: 72px; }

/* ---------- Calm toolkit: nerves check, plan and the five calm modes ---------- */
.nerve-scale, .nerve-signs { border: 0; padding: 0; margin: 0; min-width: 0; }
.nerve-scale legend, .nerve-signs legend { font: 500 18px/1.35 var(--font-display); margin-bottom: 12px; padding: 0; }
.nerve-signs legend .muted { font: 400 13px var(--font-body); }
.ns-row { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.ns-n { aspect-ratio: 1; min-height: 34px; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in oklab, var(--panel), #c9443b calc(var(--t) * 28%)); color: var(--text); font: 600 15px var(--font-body); cursor: pointer; transition: transform .25s var(--spring, ease), border-color .2s; }
.ns-n:hover { border-color: var(--line-strong); }
.ns-n.on { background: var(--accent); color: #1a1208; border-color: var(--accent); transform: scale(1.08); }
.ns-n:focus-visible { outline: none; box-shadow: var(--ring); }
.ns-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-3, var(--text-2)); }
@media (max-width: 480px) { .ns-row { gap: 3px; } .ns-n { min-height: 28px; border-radius: 8px; font-size: 13px; } }

.calm-plan { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.calm-plan li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.calm-plan li:last-child { border-bottom: 1px solid var(--line); }
.cp-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font-size: 13px; }
.cp-name { font: 500 19px/1.2 var(--font-display); color: var(--text); text-decoration: none; }
.cp-name:hover { text-decoration: underline; }
.cp-reason { margin: 4px 0 6px; color: var(--text-2); font-size: 14px; }
.calm-plan .btn { flex: none; align-self: center; }
.calm-support { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent-tint); font-size: 14px; }
.calm-why { margin: -6px 0 18px; }

.step-ladder { list-style: none; margin: 0; padding: 0; }
.step-ladder li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.step-ladder li .grow { display: flex; flex-direction: column; gap: 2px; }
.step-ladder li.locked { opacity: .5; }
.sl-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 13px; }
.step-ladder li.done .sl-n { background: var(--accent); color: #1a1208; border-color: var(--accent); }

.worry-pad { min-height: 220px; font-size: 16px; line-height: 1.6; resize: vertical; }
.good-text { color: var(--accent-text); }
.picture-line { font: 400 clamp(20px, 3vw, 26px)/1.45 var(--font-display); margin: 18px 0; min-height: 4.4em; animation: pic-in .8s var(--spring, ease) both; }
@keyframes pic-in { from { opacity: 0; } to { opacity: 1; } }
.seen-video { width: 100%; max-height: 360px; border-radius: 14px; background: #000; transform: scaleX(-1); }
.seen-video[controls] { transform: none; }
.hidden { display: none !important; }
.chip-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.chip-btn.on { background: var(--accent); color: #1a1208; border-color: var(--accent); }

.calm-tools .btn { margin-bottom: 6px; }
.calm-list { list-style: none; margin: 8px 0 0; padding: 0; }
.calm-list a { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.calm-list a:hover strong { text-decoration: underline; }
.calm-list strong { font-size: 14px; }
.calm-list span { font-size: 12.5px; color: var(--text-2); }

/* ---------- Fewer design clichés: no spaced-out capitals, no italic highlights, no glows, fewer outlines ---------- */
/* small labels read as normal sentences instead of S P A C E D  C A P S */
.eyebrow, .label, .brand, .lux-nav .brand, .lux-nav nav a, .lux-btn, .cast-role, .pano-tags, .pano-places button, .pano-hint,
.pano-scrollcue, .stage-topic-label, .choice-kicker, .at-admit, .at-stub, .pin-name, .tag, .dash-facts dt, .pg-no, .stat .k, .table th {
  text-transform: none; letter-spacing: 0;
}
.eyebrow, .label, .stage-topic-label, .choice-kicker, .at-admit, .dash-facts dt, .stat .k, .table th { font-size: 13px; font-weight: 600; color: var(--text-2); }
.brand, .lux-nav .brand { font-size: 16px; letter-spacing: -.01em; }
.lux-nav nav a { font-size: 14px; }
.lux-btn { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.pano-tags, .pano-places button, .pin-name, .cast-role { font-size: 13px; }
/* no italic, gold-highlighted words */
.pano-giant em, .stage-topic p, .cast-scene b { font-style: normal; color: inherit; padding-left: 0; }
/* no glowing buttons or shimmering sweeps */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.lux-btn::after { display: none; }
.ladder .done .node { box-shadow: none; }
.ladder .current .node { box-shadow: 0 0 0 3px rgba(212, 176, 106, .16); animation: none; }
.rec-btn:hover { box-shadow: 0 0 0 6px rgba(184, 55, 47, .16); }
/* boxes are told apart by a soft fill, not a stack of outlines */
.card, .today-topic, .quick-item, .note-card, .mock { border-color: transparent; }
.panel .card { background: var(--panel-2, var(--panel-hover)); }
.mic-btn, .mic-btn:hover { box-shadow: none; }

/* Exercises picked from the nerves interview */
.ex-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface, transparent); }
.ex-item summary { cursor: pointer; list-style: none; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.ex-item summary::-webkit-details-marker { display: none; }
.ex-name { font-weight: 600; color: var(--text); }
.ex-meta { font-size: 12px; color: var(--text-2); align-self: center; }
.ex-reason { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); }
.ex-item.is-done .ex-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.ex-item details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.ex-item details[open] { padding-bottom: 14px; }
.ex-steps { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.ex-rung { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.ex-rung input { margin-top: 4px; accent-color: var(--accent, currentColor); }
.ex-why { margin: 0 0 12px; }

/* Real user reviews on the homepage */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reviews li { padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.reviews p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.rv-stars { font: 700 44px/0.6 var(--font-display); color: var(--accent, #d4b06a); height: 18px; }
.rv-who { font-size: 13px; color: var(--text-2); margin-top: auto; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* Plan chat */
.pc-chat { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pc-msg { max-width: 86%; }
.pc-msg p { margin: 0; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.pc-msg.bot p { background: var(--panel, rgba(255,255,255,.06)); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pc-msg.you { align-self: flex-end; }
.pc-msg.you p { background: var(--accent, #d4b06a); color: var(--accent-ink, #1a1210); border-bottom-right-radius: 6px; }
.pc-quick { padding: 4px 0 4px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-summary { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pc-input { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; position: sticky; bottom: 12px; background: var(--bg); padding: 8px 0; }
.pc-input textarea { flex: 1; resize: none; }
.pc-typing { display: inline-flex; gap: 5px; }
.pc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: pcDot 1s infinite ease-in-out; }
.pc-typing span:nth-child(2) { animation-delay: .15s; } .pc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pc-typing span { animation: none; } }
@media (max-width: 760px) { .pc-input { bottom: 76px; } }

/* Modes: personal plan banner */
.plan-cta { margin: 0 0 24px; padding: 26px 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(201,68,59,.30), rgba(212,176,106,.22)); border: 1px solid rgba(212,176,106,.45); display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.plan-cta h2 { margin: 0 0 6px; font-size: 1.55rem; }
.plan-cta p { margin: 0; color: var(--text-2); }
.plan-cta .pc-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-cta .pc-opts .btn { white-space: nowrap; }
@media (max-width: 760px) { .plan-cta { grid-template-columns: 1fr; padding: 22px 20px; } .plan-cta .pc-opts .btn { flex: 1; justify-content: center; } }

/* ---------- poster headings (Archivo, narrow + heavy) ---------- */
h1, h2, h3, h4, .pano-title, .pano-giant, .tour-word, .at-title, .lux-page .l-head h2, .sec-head h2, .cast-name, .um-n, .marquee-name, .boss-big, .of-title, .fight-banner, .combo b { font-stretch: 78%; font-weight: 800; letter-spacing: -.01em; }
.tour-word, .pano-giant { text-transform: uppercase; letter-spacing: -.005em; line-height: .86; }
.panel-head h2, .panel-head h3, .prompt-card .p-text, .note-card h3, .pg-name, .qi-t strong, .empty-note strong, .stat .v, .dash-facts dd { font-stretch: 85%; font-weight: 700; }
.fw, .um-of, .um-verdict, .cast-scene b { font-style: normal; font-weight: 700; font-stretch: 85%; }
.end-cta { text-align: center; }
.end-cta h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1; margin-bottom: 12px; }
.end-cta .lede { color: var(--text-2); margin: 0 auto 22px; max-width: 44ch; }
.end-cta .at-cta { justify-content: center; }
