/* ============================================================
   The Midnight Parlor — UI system
   Version 2. A cinematic, candlelit table for social deduction.
   Hand-written. No framework. Single file.
   Structure:
   01 tokens * 02 base * 03 atmosphere * 04 layout
   05 topbar * 06 type * 07 surfaces * 08 controls
   09 avatar studio * 10 lobby * 11 chat * 12 table (room)
   13 gameplay * 14 reveals * 15 scene transition
   16 screens (onboarding/name) * 17 utility * 18 breakpoints
   ============================================================ */

/* ---------- 01 — tokens ---------- */
:root {
  /* surfaces */
  --void: #070709;
  --bg: #0b0a0e;
  --bg-2: #0e0c12;
  --panel: #141119;
  --panel-2: #191522;
  --panel-3: #1f1a29;
  --line: #2b2436;
  --line-soft: #1f1927;
  --line-hot: rgba(238, 170, 190, 0.42);

  /* light */
  --text: #efeaf3;
  --text-2: #ded7e6;
  --muted: #a89fb6;
  --faint: #8d849c;
  --ghost: #6c6478;

  /* flame */
  --pink: #f0a8bc;
  --pink-2: #dc7f9e;
  --pink-3: #c96488;
  --pink-core: #f9cdd8;
  --pink-soft: rgba(240, 168, 188, 0.12);
  --pink-wash: rgba(240, 168, 188, 0.06);

  /* accents */
  --teal: #86dcd2;
  --teal-soft: rgba(134, 220, 210, 0.12);
  --gold: #d9b970;
  --gold-soft: rgba(217, 185, 112, 0.14);
  --green: #7ed99f;
  --rose: #e67884;

  /* geometry */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* depth */
  --shadow-1: 0 2px 18px -6px rgba(0, 0, 0, 0.7);
  --shadow-2: 0 24px 70px -30px rgba(0, 0, 0, 0.95);
  --shadow-3: 0 40px 130px -40px rgba(0, 0, 0, 1);
  --glow-pink: 0 14px 44px -16px rgba(240, 168, 188, 0.55);

  /* motion */
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --ease-io: cubic-bezier(0.66, 0, 0.22, 1);
  --ease-back: cubic-bezier(0.32, 1.4, 0.45, 1);
  --t-fast: 0.16s;
  --t-med: 0.28s;
  --t-slow: 0.6s;

  /* type scale */
  --font-serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ---------- 02 — base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-weight: 360;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(240, 168, 188, 0.32); color: #fff; }
::placeholder { color: var(--ghost); opacity: 1; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* thin, quiet scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.24); }

/* ---------- 03 — atmosphere ---------- */
/* Three stacked layers: pool of light, grain, vignette. */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.atmosphere::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto -12%;
  height: 88vh;
  background:
    radial-gradient(52% 60% at 30% 4%, rgba(240, 168, 188, 0.15), transparent 68%),
    radial-gradient(40% 48% at 78% 12%, rgba(201, 100, 136, 0.11), transparent 70%),
    radial-gradient(34% 42% at 55% 0%, rgba(134, 220, 210, 0.05), transparent 72%);
  filter: saturate(1.1);
}

/* slow breathing of the pool of light */
.atmosphere::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80vh;
  background: radial-gradient(42% 46% at 46% 6%, rgba(240, 169, 188, 0.09), transparent 65%);
  animation: breathe 9s var(--ease-io) infinite;
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 110% at 50% 42%, transparent 52%, rgba(4, 3, 6, 0.55) 100%);
}

/* ---------- 04 — layout ---------- */
.shell { position: relative; z-index: 2; min-height: 100dvh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.page { padding: 44px 0 72px; }
main { flex: 1; }

.lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: start;
}
.parlor-side { display: grid; gap: 22px; }

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 40px;
  color: var(--ghost);
  font-size: 12px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer .mark-inline { display: inline-flex; align-items: center; gap: 9px; }
.footer .mark-inline .mark { width: 20px; height: 20px; opacity: 0.8; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--pink); }

/* ---------- 05 — topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, rgba(9, 8, 12, 0.86), transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(240, 168, 188, 0.24), rgba(240, 168, 188, 0.03) 72%),
    var(--panel);
  border: 1px solid var(--line-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 30px -8px rgba(240, 168, 188, 0.55);
  transition: box-shadow var(--t-med) var(--ease);
}
.brand:hover .mark { box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 0 42px -6px rgba(240, 168, 188, 0.8); }
.brand em { color: var(--pink); font-style: italic; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlink {
  position: relative;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.navlink:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.navlink[aria-current="page"] { color: var(--pink); }
.navlink[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1px;
  background: var(--pink);
  opacity: 0.55;
}
.me {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 5px 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.02);
}
.me .name { font-size: 13px; color: var(--muted); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me img { width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); }

/* ---------- 06 — type ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 340;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.01;
  letter-spacing: -0.024em;
  color: var(--text);
}
.display em { font-style: italic; font-weight: 300; color: var(--pink); }
.title-lg { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; }
.title-md { font-family: var(--font-serif); font-size: 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow-pink { color: var(--pink-2); }
.lede { color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 56ch; }
.muted  { color: var(--muted); }
.faint  { color: var(--faint); }
.ghost  { color: var(--ghost); }
.mono   { font-family: var(--font-mono); }
.fine-print { font-size: 12.5px; color: var(--faint); }

/* handwritten-style ornament between sections */
.rule-ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ghost);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  margin: 44px 0;
}
.rule-ornament::before,
.rule-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line));
}
.rule-ornament::after { background: linear-gradient(90deg, var(--line), var(--line) 70%, transparent); }

/* ---------- 07 — surfaces ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 14%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
/* one unobtrusive top light on every panel */
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 18% 82%, transparent);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 64px;
}
.panel-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.conversation-title { margin-top: 6px; font-size: 21px; }
.panel-body { padding: 22px; }
.panel-body-tight { padding: 14px; }

/* ---------- 08 — controls ---------- */
.btn {
  --btn-bg: var(--panel-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition:
    transform var(--t-fast) var(--ease),
    background var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    color var(--t-fast) var(--ease);
}
.btn::after {  /* glass sheen */
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 44%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  pointer-events: none;
}
.btn { position: relative; }
.btn:hover { border-color: #383043; }
.btn:active { transform: translateY(1px) scale(0.994); }

.btn-primary {
  --btn-bg: linear-gradient(160deg, #f4bccb, var(--pink-2) 82%);
  border-color: rgba(249, 205, 216, 0.5);
  color: #240e16;
  font-weight: 620;
  box-shadow: var(--glow-pink), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-primary:hover { box-shadow: 0 18px 50px -14px rgba(240, 168, 188, 0.7), inset 0 1px 0 rgba(255,255,255,0.55); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost { background: rgba(255, 255, 255, 0.028); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.055); border-color: #3a3348; }
.btn-danger { color: var(--rose); border-color: rgba(230, 120, 132, 0.35); background: rgba(230, 120, 132, 0.06); }
.btn-danger:hover { background: rgba(230, 120, 132, 0.12); border-color: rgba(230, 120, 132, 0.6); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px 11px; }

.field {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.field:hover { border-color: #352d42; }
.field:focus {
  border-color: var(--line-hot);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 0 0 3.5px rgba(240, 168, 188, 0.12),
    0 0 24px -6px rgba(240, 168, 188, 0.28);
}
.label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 550; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-grow { flex: 1; min-width: 0; }

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.022);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: dot-pulse 2.4s var(--ease-io) infinite; }
.status.connecting .dot, .status.polling .dot { background: var(--gold); animation: none; }
.status.offline .dot { background: var(--rose); animation: none; }
.status.readonly .dot { background: var(--faint); animation: none; }
.status.playing .dot { background: var(--pink); }
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 217, 159, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(126, 217, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 217, 159, 0); }
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-pink { background: var(--pink-soft); color: var(--pink); border-color: rgba(240, 168, 188, 0.25); }
.badge-teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(134, 220, 210, 0.25); }
.badge-gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(217, 185, 112, 0.3); }
.badge-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-sim { background: var(--gold-soft); color: var(--gold); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; border: 1px solid rgba(217, 185, 112, 0.22); }

/* ---------- 09 — avatar studio (the mask drawer) ---------- */
.secondary-action { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.014); box-shadow: var(--shadow-1); overflow: hidden; }
.secondary-action summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.secondary-action summary::-webkit-details-marker { display: none; }
.secondary-action summary:hover { color: var(--text); background: rgba(255, 255, 255, 0.022); }
.secondary-action summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg);
  transition: transform var(--t-med) var(--ease);
}
.secondary-action[open] summary { color: var(--text); border-bottom: 1px solid var(--line-soft); }
.secondary-action[open] summary::after { transform: rotate(225deg); }
.utility-body { padding: 20px; }
.avatar-preview-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar-input-row { margin-bottom: 14px; }
.avatar-option-group { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 9px; }
.style-tile {
  position: relative;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.style-tile img { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; background: var(--panel-2); }
.style-tile:hover { transform: translateY(-2px); border-color: #3d3549; }
.style-tile.selected { border-color: var(--pink); box-shadow: 0 0 0 2.5px rgba(240, 168, 188, 0.22); }
.style-tile input { position: absolute; opacity: 0; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.swatch:hover { transform: translateY(-2px); }
.swatch.selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--pink); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- 10 — lobby ---------- */
.hero { position: relative; padding: 30px 0 40px; }
.hero-emblem {
  position: absolute;
  right: -4vw;
  top: -30px;
  width: clamp(240px, 30vw, 430px);
  opacity: 0.5;
  z-index: -1;
  filter: drop-shadow(0 0 60px rgba(240, 168, 188, 0.35));
}
.hero .eyebrow { margin-bottom: 16px; }
.hero .display { margin-bottom: 18px; }
.hero .lede { font-size: 17px; }

/* candle row under the hero */
.candle-row {
  display: flex;
  gap: 34px;
  margin: 30px 0 8px;
  opacity: 0.85;
}
.candle { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.candle-stick {
  width: 5px;
  height: 26px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #cdb3a6, #8e776f 78%, #5f4e49);
  position: relative;
}
.candle-stick::before {  /* melting rim */
  content: "";
  position: absolute;
  top: -2px;
  left: -1.5px;
  right: -1.5px;
  height: 4px;
  border-radius: 3px;
  background: #dcbcac;
}
.candle-flame {
  width: 9px;
  height: 15px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 78%, #fff2ce, var(--gold) 46%, var(--pink-3) 82%, transparent);
  filter: blur(0.4px) drop-shadow(0 0 12px rgba(217, 185, 112, 0.85));
  animation: flame-dance 2.1s var(--ease-io) infinite both;
  transform-origin: 50% 100%;
}
.candle:nth-child(2) .candle-flame { animation-delay: -0.7s; animation-duration: 1.7s; }
.candle:nth-child(3) .candle-flame { animation-delay: -1.2s; animation-duration: 2.6s; }
.candle:nth-child(4) .candle-flame { animation-delay: -0.4s; }
.candle:nth-child(odd) .candle-stick { height: 21px; }
@keyframes flame-dance {
  0%, 100% { transform: scale(1, 1) rotate(-2deg); }
  25% { transform: scale(0.92, 1.08) rotate(2.5deg); }
  50% { transform: scale(1.06, 0.94) rotate(-1deg); }
  75% { transform: scale(0.96, 1.05) rotate(1deg); }
}

/* queue status: the table waits */
.queue-status-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.queue-status-copy h2 { margin: 8px 0 9px; font-size: clamp(24px, 3.4vw, 33px); }
.queue-message { color: var(--muted); font-size: 14.5px; }
.queue-status-counts { display: flex; gap: 26px; padding-right: 8px; }
.queue-count { display: flex; align-items: baseline; gap: 9px; }
.queue-count strong {
  font-family: var(--font-serif);
  font-weight: 380;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 0.9;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.queue-count span, .queue-ready { color: var(--muted); font-size: 12.5px; }
.queue-ready strong { color: var(--teal); font-family: var(--font-serif); font-size: 21px; font-weight: 400; }
.queue-ready { display: flex; flex-direction: column; gap: 2px; }
.queue-actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* queue meter: how full the table is */
.queue-meter {
  --parts: 5;
  position: relative;
  height: 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}
.queue-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(240, 168, 188, 0.45), var(--pink-2));
  box-shadow: 0 0 18px rgba(240, 168, 188, 0.55);
  transition: width var(--t-slow) var(--ease);
}
.queue-meter-cap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  border-radius: 50%;
  background: var(--pink-core);
}

/* poll (the small diversion) */
.minigame .panel-head .badge { font-family: var(--font-mono); min-height: 24px; display: inline-flex; align-items: center; }
.minigame-prompt { font: 360 clamp(20px, 2.6vw, 24px)/1.3 var(--font-serif); color: var(--text); }
.choice-list { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 4px; }
.choice-button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.022);
  color: var(--text-2);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.choice-button::before {  /* tally bar */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--tally, 0) * 100%);
  background: linear-gradient(90deg, rgba(240, 168, 188, 0.16), rgba(240, 168, 188, 0.07));
  transition: width var(--t-slow) var(--ease);
}
.choice-button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-hot); }
.choice-button.selected { border-color: var(--pink); color: var(--text); }
.choice-button.selected::before { width: 100%; opacity: 0.24; }
.choice-button:disabled { cursor: default; opacity: 0.92; }
.choice-label { position: relative; display: flex; align-items: center; gap: 9px; }
.choice-radio {
  width: 15px;
  height: 15px;
  flex: none;
  border: 1.5px solid var(--faint);
  border-radius: 50%;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.choice-button.selected .choice-radio {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 3.5px var(--pink);
}
.choice-tally { position: relative; min-width: 26px; text-align: center; color: var(--pink); font: 500 12px var(--font-mono); opacity: 0.9; }

/* the one-answer participation card */
.participation-card { border-color: var(--line-hot); }
.participation-prompt { font-size: clamp(21px, 2.8vw, 26px); }
.participation-answer { min-height: 104px; resize: vertical; }

/* avatar chip row inside hero of room */
.player-strip { display: flex; align-items: center; gap: 4px; }
.player-strip img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -9px; background: var(--panel-2); }
.player-strip img:first-child { margin-left: 0; }

/* table cards */
.table-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.014);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.table-card:hover { transform: translateY(-2px); border-color: rgba(240, 168, 188, 0.38); background: rgba(255, 255, 255, 0.03); }
.table-card .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.table-card .name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.table-card .sub { font-size: 12px; color: var(--faint); }

/* ---------- 11 — chat ---------- */
.chat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px 18px 6px; display: flex; flex-direction: column; gap: 4px; min-height: 140px; }
.lobby-chat-scroll { min-height: 250px; max-height: 420px; }
.msg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; padding: 7px 10px; border-radius: 12px; animation: msg-in 0.34s var(--ease) both; transition: background var(--t-fast) var(--ease); }
.msg:hover { background: rgba(255, 255, 255, 0.022); }
.msg .body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.msg .top { display: flex; align-items: baseline; gap: 9px; }
.msg .who { font-size: 12.5px; font-weight: 620; color: var(--teal); letter-spacing: 0.01em; }
.msg.you .who { color: var(--pink); }
.msg .at { font-family: var(--font-mono); font-size: 9.5px; color: var(--ghost); }
.msg .text { font-size: 14px; color: var(--text-2); word-wrap: break-word; overflow-wrap: break-word; }
.msg.system { justify-self: center; display: flex; padding: 3px 14px; animation: none; }
.msg.system .text { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.06em; }
.msg-enter { animation: msg-in 0.34s var(--ease) both; }
.chat-empty { margin: auto; text-align: center; color: var(--ghost); font-size: 13.5px; padding: 30px; font-style: italic; font-family: var(--font-serif); letter-spacing: 0.01em; }
.chat-day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--ghost);
  font: 9.5px var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0 4px;
}
.chat-day-divider::before, .chat-day-divider::after { content: ""; height: 1px; width: 34px; background: var(--line-soft); }
@keyframes msg-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.composer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.composer .field { flex: 1; min-width: 0; border-radius: var(--r-pill); padding: 10.5px 17px; }
.composer .btn-primary { border-radius: var(--r-pill); padding: 10.5px 20px; }
.chat-feedback { min-height: 18px; padding: 0 12px 9px; font-size: 12px; color: var(--rose); }
.chat-typing { display: none; padding: 0 18px 8px; color: var(--ghost); font-size: 11px; font-style: italic; }
.chat-typing.on { display: block; }
.chat-typing .dots { display: inline-flex; gap: 3px; margin-left: 5px; }
.chat-typing .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); animation: typing-bounce 1.2s var(--ease-io) infinite; }
.chat-typing .dots i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.divider { height: 1px; border: 0; margin: 0; background: var(--line-soft); }

/* connection footer inside chat panels */
.chat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
  font-size: 11.5px;
  color: var(--faint);
}
.chat-foot .fine-print { font-size: 11px; }

/* ---------- 12 — table (room) ---------- */
.room-heading { margin-bottom: 26px; align-items: flex-start; }
.room-title { margin-top: 7px; font-size: clamp(30px, 4.6vw, 46px); }
.room-heading-actions { align-items: center; gap: 10px; margin-top: 8px; }
.room-grid {
  display: grid;
  grid-template-columns: minmax(280px, 324px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.room-main { display: grid; grid-template-rows: auto minmax(360px, 1fr); gap: 22px; min-width: 0; }
.room-main .chat { height: min(46vh, 500px); }
.rail { display: grid; gap: 22px; align-content: start; }

/* seats: players arranged as around a table */
.seat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease), opacity var(--t-med) var(--ease), border-color var(--t-fast) var(--ease);
  position: relative;
}
.seat:last-child { border-bottom-color: transparent; }
.seat:hover { background: rgba(255, 255, 255, 0.024); }
.seat.me { border-color: rgba(240, 168, 188, 0.3); background: var(--pink-wash); }
.seat.out { opacity: 0.42; }
.seat .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.seat .n { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .s { font-size: 11px; color: var(--ghost); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .live { width: 7.5px; height: 7.5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(126, 217, 159, 0.65); }
.seat .vote-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--pink);
  font-size: 12px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-back), opacity var(--t-fast);
}
.seat .vote-mark.on { background: var(--pink-soft); border-color: var(--pink); transform: scale(1.12); }
.seat .vote-mark:empty { visibility: hidden; }

/* table facts */
.table-facts { display: grid; gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.014); }
.stat .k { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); letter-spacing: 0.2em; text-transform: uppercase; }
.stat .v { font-family: var(--font-serif); font-size: 17px; color: var(--text); }

/* ---------- 13 — gameplay ---------- */
.gameplay-panel { position: relative; }
.game-panel-head { background: linear-gradient(180deg, rgba(240, 168, 188, 0.05), transparent 130%); }
.game-title { margin-top: 7px; font-size: clamp(21px, 3vw, 25px); }
.gameplay-body { display: grid; gap: 20px; padding: 22px; }

/* phase banner: a strip of light describing where the round is */
.phase-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(90deg, rgba(240, 168, 188, 0.07), transparent 55%),
    rgba(255, 255, 255, 0.012);
}
.phase-lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px rgba(240, 168, 188, 0.8); animation: lamp-sway 3.2s var(--ease-io) infinite; }
@keyframes lamp-sway { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.phase-name { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--text); }
.phase-note { color: var(--faint); font-size: 12.5px; margin-left: auto; text-align: right; }

.game-intro { display: grid; gap: 9px; }
.game-prompt { max-width: 64ch; color: var(--muted); font-size: 14px; }
.gameplay-columns { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr); gap: 16px; align-items: start; }

/* role card: dealt card, faced up, only yours */
.role-card {
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(240, 168, 188, 0.4);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(240, 168, 188, 0.15), transparent 60%),
    linear-gradient(165deg, var(--panel-3), var(--panel));
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: card-deal 0.5s var(--ease-back) both;
}
@keyframes card-deal { from { opacity: 0; transform: rotate(-2.5deg) translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }
.role-card::before {  /* corner filigree */
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 26px;
  height: 26px;
  border-top: 1px solid rgba(240, 168, 188, 0.55);
  border-left: 1px solid rgba(240, 168, 188, 0.55);
  border-top-left-radius: 12px;
}
.role-card h3 { margin: 7px 0 9px; font-size: clamp(23px, 3vw, 28px); color: var(--pink); }
.role-card p:not(.eyebrow) { color: var(--muted); font-size: 13.5px; }
.role-instructions { margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(240, 168, 188, 0.28); color: var(--muted) !important; font-size: 13px; }

/* guests at the table */
.game-players { padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.014); }
.game-players h3 { margin-bottom: 12px; font-size: 16px; }
.game-player-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 8px; }
.game-player {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: var(--text-2);
  font-size: 12.5px;
  transition: opacity var(--t-med) var(--ease);
}
.game-player .avatar { width: 27px; height: 27px; border-radius: 50%; flex: none; }
.game-player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.alive-indicator { color: var(--green); font: 500 9.5px var(--font-mono); letter-spacing: 0.08em; }
.game-player.eliminated { opacity: 0.45; }
.game-player.eliminated .alive-indicator { color: var(--ghost); }

/* actions of the round */
.game-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.game-action-group { display: grid; gap: 7px; min-width: min(100%, 250px); }
.game-action-group .label { margin: 0; }
.game-feedback { min-height: 20px; color: var(--muted); font-size: 12.5px; }
.game-waiting { display: grid; gap: 10px; max-width: 640px; padding: 26px; }
.game-waiting h2 { font-size: clamp(23px, 3vw, 28px); }
.game-waiting p { color: var(--muted); }

/* investigate select styled as a candle-lit list */
.investigate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.investigate-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.investigate-option:hover { border-color: var(--line-hot); background: var(--pink-wash); transform: translateY(-1px); }
.investigate-option .avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.investigate-option-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.investigate-option[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }

/* private notes: what only you know */
.game-private-notes { display: grid; gap: 7px; }
.private-clue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(134, 220, 210, 0.26);
  border-left: 2px solid var(--teal);
  border-radius: 0 10px 10px 0;
  color: var(--teal);
  background: linear-gradient(90deg, rgba(134, 220, 210, 0.07), transparent 82%);
  font-size: 12.5px;
  animation: msg-in 0.4s var(--ease) both;
}
.private-clue .clue-round { font: 500 9.5px var(--font-mono); color: rgba(134, 220, 210, 0.7); letter-spacing: 0.1em; }

/* ---------- 14 — reveals & verdicts ---------- */
.game-result {
  padding: 16px 18px;
  border: 1px solid rgba(240, 168, 188, 0.35);
  border-left: 2.5px solid var(--pink-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background:
    linear-gradient(90deg, var(--pink-wash), transparent 84%),
    rgba(255, 255, 255, 0.012);
  color: var(--text);
  animation: verdict-in 0.55s var(--ease-back) both;
}
@keyframes verdict-in { from { opacity: 0; transform: translateX(-9px); } to { opacity: 1; transform: none; } }
.game-result h3 { margin-bottom: 5px; font-size: 18px; letter-spacing: 0; }
.game-result p { color: var(--muted); font-size: 13.5px; }
.game-result.verdict-hit { border-color: rgba(134, 220, 210, 0.4); border-left-color: var(--teal); background: linear-gradient(90deg, rgba(134, 220, 210, 0.08), transparent 84%), rgba(255,255,255,0.012); }
.game-result.verdict-miss { border-color: rgba(230, 120, 132, 0.4); border-left-color: var(--rose); background: linear-gradient(90deg, rgba(230, 120, 132, 0.08), transparent 84%), rgba(255,255,255,0.012); }
.game-vote-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 11px 0 0; padding-left: 16px; color: var(--faint); font-size: 12px; }
.game-vote-totals strong { color: var(--pink); font-family: var(--font-mono); font-weight: 500; }

/* winner plate */
.winner-plate {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 26px 20px;
  border: 1px solid var(--line-hot);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(240, 168, 188, 0.14), transparent 70%),
    var(--panel-2);
  box-shadow: var(--shadow-2);
  animation: card-deal 0.6s var(--ease-back) both;
}
.winner-plate h3 { font-size: clamp(24px, 3.4vw, 30px); color: var(--text); }
.winner-plate .fine-print { max-width: 48ch; }

/* ---------- 15 — scene transition (the parlor doors) ---------- */
.scene-transition {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  pointer-events: none;
  background: #08070b;
}
.scene-transition[data-active="true"] { pointer-events: auto; }
.scene-door { position: absolute; inset: 0 auto 0 0; width: 51%; will-change: transform; }
.scene-door-inner {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #241a25, #120f16 66%),
    radial-gradient(50% 40% at 70% 12%, rgba(240, 168, 188, 0.07), transparent 70%);
  border-right: 1px solid rgba(240, 168, 188, 0.22);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}
::v-deep .scene-door-inner::after,
.scene-door-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(240, 168, 188, 0.05) 47px, transparent 48px 94px);
}
.scene-door-right .scene-door-inner { border-right: 0; border-left: 1px solid rgba(240, 168, 188, 0.22); transform: scaleX(-1); }
.scene-door-left { transform: translateX(-100%); }
.scene-door-right { transform: translateX(100%); }
.scene-transition.is-active .scene-door { transition: transform 0.78s var(--ease-io); }
.scene-transition.is-closing .scene-door { transform: translateX(0); }
.scene-transition.is-closed .scene-door { transform: translateX(0); transition: none; }
.scene-transition.is-opening .scene-door-left { transform: translateX(-100%); }
.scene-transition.is-opening .scene-door-right { transform: translateX(100%); }
.scene-door::before {  /* knob glow */
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 40px;
  border-radius: 3px;
  background: rgba(240, 168, 188, 0.32);
  box-shadow: 0 0 24px rgba(240, 168, 188, 0.5);
}
.scene-door-left::before { right: 14px; }
.scene-door-right::before { left: 14px; }
.scene-core {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 0 24px;
  color: var(--text);
}
.scene-symbol {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 168, 188, 0.36);
  border-radius: 50%;
  background: rgba(240, 168, 188, 0.07);
  box-shadow: 0 0 80px rgba(220, 127, 158, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: symbol-breathe 3.4s var(--ease-io) infinite;
}
.scene-symbol .mark-svg { width: 62px; height: 62px; }
@keyframes symbol-breathe { 0%, 100% { box-shadow: 0 0 60px rgba(220,127,158,0.18), inset 0 1px 0 rgba(255,255,255,0.08); } 50% { box-shadow: 0 0 110px rgba(220,127,158,0.3), inset 0 1px 0 rgba(255,255,255,0.08); } }
.scene-caption { color: var(--faint); font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.26em; }
.scene-title { margin: 0; padding: 0 18px; font: 340 clamp(30px, 5.6vw, 52px)/1.05 var(--font-serif); letter-spacing: -0.02em; }
.scene-rule { width: 76px; height: 1px; background: linear-gradient(90deg, transparent, var(--pink), transparent); }
.scene-transition.is-closing .scene-core { animation: scene-core-in 0.5s 0.34s var(--ease) both; }
.scene-transition.is-opening .scene-core { animation: scene-core-out 0.24s var(--ease) both; }
@keyframes scene-core-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes scene-core-out { to { opacity: 0; transform: translateY(-10px) scale(0.98); } }

/* ---------- 16 — full-screen moments ---------- */
.onboarding-overlay, .name-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 4, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  animation: overlay-in 0.4s var(--ease) both;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
body.onboarding-active, body.name-prompt-active { overflow: hidden; }
[hidden] { display: none !important; }

.onboarding-card, .name-prompt-card {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid rgba(240, 168, 188, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(110% 96% at 100% 0%, rgba(220, 127, 158, 0.15), transparent 58%),
    linear-gradient(160deg, #1c1622, #100e15 74%);
  box-shadow: var(--shadow-3);
  animation: card-rise 0.5s var(--ease-back) both;
}
@keyframes card-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.name-prompt-card { width: min(100%, 430px); text-align: center; }
.name-prompt-card h2 { margin: 0 0 9px; font-size: clamp(24px, 5vw, 31px); }
.name-prompt-card p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.onboarding-card .onboarding-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.onboarding-card .onboarding-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-hot); border-radius: 50%; background: var(--pink-wash); }
.onboarding-card .onboarding-step { color: var(--ghost); font: 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.18em; }
.onboarding-card h2 { max-width: 17ch; margin: 11px 0 15px; font-size: clamp(31px, 5.6vw, 50px); line-height: 1.04; }
.onboarding-card .onboarding-note { max-width: 52ch; margin-bottom: 22px; color: var(--muted); font-size: 13.5px; }
.onboarding-answer { min-height: 118px; resize: vertical; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 16px; }
.onboarding-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--muted); font-size: 12.5px; }
.onboarding-consent input { margin-top: 3px; accent-color: var(--pink-2); }
.onboarding-skip, .onboarding-forget {
  border: 0;
  padding: 0;
  background: none;
  color: var(--faint);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.onboarding-skip:hover, .onboarding-forget:hover { color: var(--pink); }
.onboarding-feedback { min-height: 20px; margin-top: 10px; color: var(--pink); font-size: 12.5px; }

/* ---------- 17 — utility & accessibility ---------- */
.skip-link {
  position: fixed;
  z-index: 400;
  left: 14px;
  top: 10px;
  transform: translateY(-180%);
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--pink);
  color: #22010b;
  font-weight: 700;
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.fade-up { animation: fade-up 0.55s var(--ease) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.11s; }
.d3 { animation-delay: 0.17s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gsap-ready .fade-up { animation: none; }
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 320;
  padding: 11px 20px;
  border: 1px solid var(--line-hot);
  border-radius: var(--r-pill);
  background: rgba(20, 15, 22, 0.92);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-2), 0 0 34px -10px rgba(240, 168, 188, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .fine-print { color: var(--faint); margin-left: 8px; }

/* inference page */
.inference-title { font-size: clamp(30px, 4.4vw, 44px); }
.model-limit { width: 92px; }
.inference-note { color: var(--muted); font-size: 13px; max-width: 60ch; }
.result-plate {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* the flowing generated mark (kept from v1, tuned) */
.mark-svg { display: block; overflow: visible; animation: mark-turn 30s linear infinite; }
.mark-svg circle, .mark-svg path, .mark-svg ellipse {
  stroke-dasharray: 5 4.5;
  animation: mark-flow 12s linear infinite;
}
.mark-svg circle[fill]:not([fill="none"]), .mark-svg circle[stroke="none"] { animation: mark-pulse 3.6s var(--ease-io) infinite; }
@keyframes mark-turn { to { transform: rotate(360deg); } }
@keyframes mark-flow { to { stroke-dashoffset: -38; } }
@keyframes mark-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.03); }
}

/* ---------- 18 — breakpoints ---------- */
@media (max-width: 1020px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .parlor-side { grid-template-columns: 1fr 1fr; display: grid; }
  .parlor-side > .panel { min-width: 0; }
  .room-grid { grid-template-columns: 1fr; }
  .room-main { order: 1; }
  .room-grid > .rail { order: 2; }
  .gameplay-columns { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .queue-status-panel { grid-template-columns: 1fr; }
  .queue-status-counts { justify-content: flex-start; }
  .parlor-side { grid-template-columns: 1fr; }
  .room-main .chat { height: min(60vh, 560px); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 18px; }
  .page { padding: 28px 0 60px; }
  .topbar-inner { height: 58px; }
  .brand { font-size: 17px; }
  .brand span.full { display: none; }
  .me .name { max-width: 80px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .candle-row { gap: 24px; }
  .msg { padding: 6px 6px; grid-template-columns: auto 1fr; gap: 9px; }
  .msg img.avatar { width: 30px; height: 30px; }
  .composer { align-items: stretch; padding: 11px; }
  .composer .btn-primary { min-width: 66px; }
  .chat-feedback { padding: 0 4px 8px; }
  .gameplay-body { padding: 15px; gap: 15px; }
  .queue-count strong { font-size: 46px; }
  .room-title { font-size: 30px; }
  .scene-symbol { width: 64px; height: 64px; }
  .scene-symbol .mark-svg { width: 46px; height: 46px; }
  .panel-body { padding: 16px; }
  .onboarding-overlay, .name-prompt-overlay { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .atmosphere, .grain, .vignette, .scene-transition, .topbar, .footer { display: none !important; }
}

/* ---------------------------------------------------------------------- */
/* Tonight's read (class-theater card) + Final Reveal receipts            */
/* ---------------------------------------------------------------------- */
.class-panel { gap: 12px; }
.class-current .fine-print { margin-bottom: 4px; }
.class-label {
  font-family: var(--font-display, Georgia, serif);
  font-size: 22px;
  color: var(--pink-core);
  letter-spacing: 0.02em;
}
.class-label.inconclusive { color: var(--gold); font-style: italic; }
.class-trail { display: flex; flex-wrap: wrap; gap: 6px; }
.class-chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--pink-soft);
  border-radius: 999px;
  font-size: 12px;
  color: var(--pink);
  background: var(--pink-wash);
}
.class-chip.struck {
  color: var(--ink-soft, #999);
  text-decoration: line-through;
  border-color: transparent;
  background: transparent;
}
.class-chip.ghost {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  font-style: italic;
}

.final-reveal {
  margin-top: 18px;
  padding: 22px 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--gold-soft), transparent 70%),
    var(--pink-wash);
  display: grid;
  gap: 18px;
}
.reveal-title { margin: 6px 0 10px; }
.reveal-punchline {
  font-family: var(--font-display, Georgia, serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--pink-core);
  border-left: 3px solid var(--pink);
  padding-left: 14px;
}
.reveal-block h4 {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--gold);
}
.reveal-tactics { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.tactic-entry {
  padding: 12px 14px;
  border: 1px solid var(--ink-line, rgba(255, 255, 255, 0.09));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 6px;
}
.tactic-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tactic-name { font-weight: 600; color: var(--pink); }
.tactic-source { color: var(--ink-soft, #999); font-size: 13px; }
.tactic-quote {
  margin: 0;
  padding: 6px 10px;
  border-left: 2px solid var(--pink-soft);
  font-style: italic;
  color: var(--ink, #eee);
}
.tactic-plain { margin: 0; color: var(--ink, #ddd); }
.tactic-social { margin: 0; color: var(--teal); font-size: 14px; }
.reveal-classes { margin-top: 10px; display: grid; gap: 8px; }
.reveal-class-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.reveal-class-name { min-width: 110px; font-weight: 600; }


/* ---------- 19 — practice table (playable room skeleton) ----------
   Front-end loop UI. Lighter, warmer register; sits on existing tokens. */
.practice-wrap { padding: 4px 0 10px; }
.demo-banner {
  margin: 2px 2px 14px;
  padding: 8px 12px;
  border: 1px dashed rgba(217, 185, 112, 0.35);
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.practice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.clock-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  border: 1px solid rgba(134, 220, 210, 0.3);
  background: var(--teal-soft);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  min-width: 96px;
  text-align: center;
}
.clock-chip.ticking { color: var(--rose); border-color: rgba(230, 120, 132, 0.5); background: rgba(230, 120, 132, 0.12); }
.practice-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(220px, 1fr) minmax(200px, 0.9fr);
  gap: 14px;
  align-items: start;
}
.practice-label {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-hand { display: grid; gap: 10px; }
.demo-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  cursor: default;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  display: grid;
  gap: 4px;
}
.demo-card[role="button"] { cursor: pointer; }
.demo-card[role="button"]:hover { border-color: var(--line-hot); transform: translateY(-2px); box-shadow: var(--glow-pink); }
.demo-card.chosen { border-color: var(--pink-2); box-shadow: 0 0 0 1px var(--pink-2), var(--glow-pink); transform: translateY(-3px); }
.demo-card.spent { opacity: 0.42; filter: saturate(0.4); pointer-events: none; }
.demo-card-name { font-family: var(--font-serif); font-size: 17px; color: var(--pink-core); }
.demo-card-blurb { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.demo-card-hint { font-size: 12px; }
.demo-seat-grid { display: grid; gap: 8px; }
.demo-seat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.demo-seat.me { border-color: rgba(134, 220, 210, 0.4); background: var(--teal-soft); }
.demo-seat.targetable { cursor: pointer; border-style: dashed; border-color: rgba(240, 168, 188, 0.55); }
.demo-seat.targetable:hover { background: var(--pink-soft); }
.demo-seat.targetable:hover .demo-seat-name { color: var(--pink-core); }
.demo-seat.cannot { opacity: 0.5; }
.demo-seat-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-seat-name { font-weight: 600; color: var(--text); font-size: 14px; }
.demo-suspicion { color: var(--gold); letter-spacing: 2px; font-size: 12px; }
.practice-side { display: grid; gap: 12px; }
.practice-panel {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
}
.suspect-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13.5px; }
.suspect-name { color: var(--text-2); }
.suspect-meter { display: inline-flex; gap: 3px; }
.suspect-pip { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.suspect-pip.lit { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px -2px var(--gold); }
.anomaly-line { padding: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.anomaly-line.sour { color: var(--rose); }
.anomaly-line.warm { color: var(--green); }
.anomaly-line.odd { color: var(--gold); }
.demo-feed {
  margin: 16px 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, var(--panel-3), var(--panel-2));
  display: grid;
  gap: 6px;
  min-height: 74px;
}
.demo-feed:empty { visibility: hidden; }
.demo-headline { font-family: var(--font-serif); color: var(--pink-core); font-size: 17px; }
.demo-feed-line { color: var(--text-2); font-size: 14px; }
.demo-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-actions:empty { display: none; }

/* ---------- 19b — chat reactions (front-end layer) ---------- */
.reaction-bar {
  display: inline-flex;
  gap: 6px;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.msg:hover .reaction-bar, .reaction-bar:focus-within { opacity: 1; }
.reaction-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.reaction-btn:hover { border-color: var(--line-hot); color: var(--text); }
.reaction-btn.pinned { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.reaction-count { color: var(--faint); font-size: 11px; margin-left: 2px; }
.msg.msg-pinned .text { box-shadow: inset 2px 0 0 var(--gold); padding-left: 8px; }

/* ---------- 19c — landing "three beats" strip ---------- */
.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 8px;
}
.beat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.beat::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, var(--pink-wash), transparent);
  pointer-events: none;
}
.beat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  color: var(--pink-2);
  line-height: 1;
}
.beat-title { font-family: var(--font-serif); font-size: 18px; color: var(--text); }
.beat-copy { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .practice-side { grid-column: 1 / -1; }
  .beats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .practice-grid { grid-template-columns: 1fr; }
  .clock-chip { min-width: 78px; }
}

/* =====================================================================
   20 — REHAUL 2026-11-10 · bright card-room skin
   The parlor candlelight is out. Same geometry and type, new palette:
   warm paper, bright panels, saturated pink. Declared last so the
   tokens override the cave above them. Every hook id kept.
   ===================================================================== */
:root {
  /* surfaces — warm daylight paper instead of candle cave */
  --void: #faf6f8;
  --bg: #fdf9fb;
  --bg-2: #f8f2f6;
  --panel: #ffffff;
  --panel-2: #fff7fa;
  --panel-3: #fdf0f5;
  --line: #ecd8e0;
  --line-soft: #f4e6ec;
  --line-hot: rgba(214, 92, 134, 0.45);

  /* light — dark ink on paper */
  --text: #2b2130;
  --text-2: #463a52;
  --muted: #7a6c85;
  --faint: #9c8fa6;
  --ghost: #b3a6bc;

  /* flame — saturated fruit-punch pink */
  --pink: #d65c86;
  --pink-2: #c1436f;
  --pink-3: #a83259;
  --pink-core: #f59fba;
  --pink-soft: rgba(228, 111, 154, 0.12);
  --pink-wash: rgba(228, 111, 154, 0.06);

  /* accents — candy-bright */
  --teal: #2fb8a6;
  --teal-soft: rgba(47, 184, 166, 0.14);
  --gold: #db9b2d;
  --gold-soft: rgba(219, 155, 45, 0.16);
  --green: #3fae6a;
  --rose: #e2566a;

  /* depth — soft daylight shadows */
  --shadow-1: 0 2px 14px -6px rgba(120, 60, 90, 0.18);
  --shadow-2: 0 18px 50px -24px rgba(120, 60, 90, 0.28);
  --shadow-3: 0 30px 90px -40px rgba(120, 60, 90, 0.32);
  --glow-pink: 0 10px 30px -12px rgba(228, 111, 154, 0.5);
}

/* the old fixed layers: turn candle glow into soft daylight blobs */
.atmosphere {
  background:
    radial-gradient(560px 420px at 12% -6%, rgba(228, 111, 154, 0.12), transparent 70%),
    radial-gradient(640px 480px at 92% 104%, rgba(47, 184, 166, 0.10), transparent 70%),
    radial-gradient(480px 380px at 86% 6%, rgba(219, 155, 45, 0.10), transparent 70%),
    linear-gradient(180deg, #fdf9fb 0%, #faf5f8 100%);
}
.grain, .vignette { display: none !important; }

/* panels: paper cards, not glass slabs */
body { color: var(--text); }
.panel {
  background: var(--panel);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line-soft);
}
.panel-head { border-bottom: 1px solid var(--line-soft); }
.field {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.field::placeholder { color: var(--faint); }
.btn-primary {
  background: linear-gradient(160deg, var(--pink), var(--pink-2));
  color: #fff;
  box-shadow: var(--glow-pink);
}
.btn-ghost {
  --btn-bg: #fff;
  color: var(--pink-2);
  box-shadow: 0 0 0 1px var(--line);
}
.btn-ghost:hover { color: var(--pink); }
.topbar {
  background: rgba(253, 249, 251, 0.9);
  box-shadow: 0 1px 0 var(--line-soft);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.navlink { color: var(--muted); }
.navlink:hover, .navlink[aria-current="page"] { color: var(--pink-2); }
.brand .full { color: var(--text); }
.footer { color: var(--muted); background: transparent; border-top: 1px solid var(--line-soft); }
.chat-scroll { background: #fff; }
.chat-scroll .msg .text { color: var(--text); }
.chat-scroll .msg .who { color: var(--pink-2); }
.chat-scroll .msg .at, .chat-scroll .msg.system .text { color: var(--faint); }
.composer { border-top: 1px solid var(--line-soft); background: var(--panel-2); }
.badge { box-shadow: 0 0 0 1px var(--line-soft); }

/* hero: clean bright masthead */
.rehaul-hero .display, .rehaul-display, .display {
  color: var(--text);
  text-shadow: none;
}
.rehaul-display em, .display em { color: var(--pink); font-style: italic; }
.rehaul-lede, .lede { color: var(--text-2); }
.candle-row { display: none !important; }
.deck-chip {
  background: #fff;
  color: var(--pink-2);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
}
.beat { background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line-soft); border-radius: var(--r-md); }
.beat-num { color: var(--pink); }
.beat-copy { color: var(--text-2); }
.beat-title { color: var(--text); }
.rule-ornament { color: var(--pink-soft); }
.stat, .queue-count strong, .queue-ready strong { color: var(--text); }
.queue-message { color: var(--text-2); }
.query, .fine-print, .faint { color: var(--muted) !important; }
.table-card { background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line-soft); }
.table-card .name { color: var(--text); }
.table-card .sub { color: var(--muted); }
.secondary-action summary { color: var(--text); }
.choice-button { background: #fff; box-shadow: 0 0 0 1px var(--line-soft); }
.choice-button:hover { box-shadow: var(--glow-pink); }
.name-room { color: var(--text); }

/* overlay cards float on frosted paper */
.onboarding-overlay, .name-prompt-overlay { background: rgba(43, 33, 48, 0.35); }
.onboarding-card, .name-prompt-card {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.onboarding-note { color: var(--muted); }
.onboarding-feedback { color: var(--pink-3); }

/* scene door: bright wash */
.scene-transition { background: var(--bg); }
.scene-door { background: linear-gradient(180deg, #fdf9fb, #f8eef4); }
.scene-title, .scene-caption { color: var(--text); }

/* practice table tiles pop on light too */
.demo-card { background: #fff; box-shadow: var(--shadow-1), 0 0 0 1px var(--line-soft); color: var(--text); }
.demo-card.chosen { box-shadow: 0 0 0 2px var(--pink), var(--glow-pink); }
.demo-card.spent { opacity: 0.45; }
.demo-seat { background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-soft); color: var(--text); }
.demo-seat.targetable { box-shadow: 0 0 0 2px var(--pink), var(--glow-pink); cursor: pointer; }
.demo-seat.me { box-shadow: 0 0 0 2px var(--teal); }
.clock-chip { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.anomaly-line.sour { color: var(--rose); }
.anomaly-line.warm { color: var(--gold); }
.demo-suspicion { color: var(--pink-2); }

@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp var(--t-slow) var(--ease) both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
