/* ===== Watcher of the River Forest — promo site ===== */

:root {
  --ink: #e7ecef;
  --ink-dim: #9aa6ad;
  --paper: #07111a;
  --paper-2: #0d1a25;
  --paper-3: #142436;
  --shard: #7cc7ff;
  --shard-hot: #e3f3ff;
  --shard-glow: rgba(124, 199, 255, 0.55);
  --moss: #4a7a5c;
  --gold: #d8b56b;
  --rust: #c46a3a;
  --line: rgba(231, 236, 239, 0.12);
  --font-display: 'Cinzel', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--shard); text-decoration: none; }
a:hover { color: var(--shard-hot); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.02em; font-weight: 600; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--shard);
  margin: 0 0 0.5rem;
}

.section-head {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.section-head .lede {
  color: var(--ink-dim);
  font-size: 1.05rem;
}

/* ===== Snow ===== */
.snow {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}
.snow span {
  position: absolute; top: -10px;
  width: 6px; height: 6px;
  background: white; border-radius: 50%;
  opacity: 0.6;
  filter: blur(0.5px);
  animation: snowfall linear infinite;
}
.snow span:nth-child(1)  { left: 4%;  animation-duration: 14s; animation-delay: 0s;  width: 4px; height: 4px; opacity:.35; }
.snow span:nth-child(2)  { left: 9%;  animation-duration: 18s; animation-delay: -3s; width: 8px; height: 8px; }
.snow span:nth-child(3)  { left: 14%; animation-duration: 12s; animation-delay: -5s; }
.snow span:nth-child(4)  { left: 19%; animation-duration: 16s; animation-delay: -2s; width: 3px; height:3px; opacity:.4;}
.snow span:nth-child(5)  { left: 23%; animation-duration: 20s; animation-delay: -8s; }
.snow span:nth-child(6)  { left: 28%; animation-duration: 13s; animation-delay: -1s; }
.snow span:nth-child(7)  { left: 33%; animation-duration: 17s; animation-delay: -6s; width: 5px; height: 5px; }
.snow span:nth-child(8)  { left: 38%; animation-duration: 22s; animation-delay: -10s; }
.snow span:nth-child(9)  { left: 43%; animation-duration: 15s; animation-delay: -4s; width: 7px; height: 7px; opacity:.7; }
.snow span:nth-child(10) { left: 48%; animation-duration: 19s; animation-delay: -7s; }
.snow span:nth-child(11) { left: 52%; animation-duration: 14s; animation-delay: -2s; }
.snow span:nth-child(12) { left: 57%; animation-duration: 21s; animation-delay: -9s; width: 4px; height: 4px; opacity:.5; }
.snow span:nth-child(13) { left: 62%; animation-duration: 16s; animation-delay: -3s; }
.snow span:nth-child(14) { left: 67%; animation-duration: 18s; animation-delay: -11s; }
.snow span:nth-child(15) { left: 72%; animation-duration: 13s; animation-delay: -5s; width: 6px; height: 6px; }
.snow span:nth-child(16) { left: 77%; animation-duration: 20s; animation-delay: -8s; }
.snow span:nth-child(17) { left: 82%; animation-duration: 15s; animation-delay: -2s; width: 3px; height: 3px; opacity:.4; }
.snow span:nth-child(18) { left: 86%; animation-duration: 17s; animation-delay: -4s; }
.snow span:nth-child(19) { left: 90%; animation-duration: 19s; animation-delay: -6s; width: 5px; height: 5px; }
.snow span:nth-child(20) { left: 94%; animation-duration: 14s; animation-delay: -7s; }
.snow span:nth-child(21) { left: 97%; animation-duration: 21s; animation-delay: -3s; }
.snow span:nth-child(22) { left: 2%;  animation-duration: 16s; animation-delay: -9s; width: 7px; height: 7px; opacity:.7; }
.snow span:nth-child(23) { left: 11%; animation-duration: 18s; animation-delay: -1s; }
.snow span:nth-child(24) { left: 25%; animation-duration: 13s; animation-delay: -6s; width: 4px; height: 4px; }
.snow span:nth-child(25) { left: 36%; animation-duration: 22s; animation-delay: -4s; }
.snow span:nth-child(26) { left: 45%; animation-duration: 17s; animation-delay: -8s; width: 5px; height: 5px; }
.snow span:nth-child(27) { left: 55%; animation-duration: 15s; animation-delay: -2s; }
.snow span:nth-child(28) { left: 65%; animation-duration: 19s; animation-delay: -10s; width: 6px; height: 6px; opacity:.6; }
.snow span:nth-child(29) { left: 78%; animation-duration: 14s; animation-delay: -5s; }
.snow span:nth-child(30) { left: 88%; animation-duration: 20s; animation-delay: -7s; }

@keyframes snowfall {
  0%   { transform: translateY(-20px) translateX(0);   opacity: 0; }
  10%  { opacity: var(--snow-op, 0.6); }
  100% { transform: translateY(110vh) translateX(40px); opacity: 0; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(124, 199, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 199, 255, 0.18), transparent 65%),
    linear-gradient(180deg, #050b12 0%, #07111a 50%, #0a1622 100%);
  overflow: hidden;
  z-index: 2;
}
.hero-bg {
  position: absolute; left: 0; right: 0; bottom: -1px;
  pointer-events: none;
  opacity: 0.85;
}
.hero-bg svg { width: 100%; display: block; }
.hero-bg path { fill: #03070b; }

.hero-inner {
  position: relative;
  max-width: 900px;
  z-index: 3;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: var(--shard);
  margin: 0 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 0 2rem;
  text-shadow: 0 0 30px rgba(124, 199, 255, 0.25);
}
.hero-title .line-1 { display: block; color: var(--ink); }
.hero-title .line-2 {
  display: block;
  background: linear-gradient(180deg, var(--shard-hot), var(--shard));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-byline { margin: 0 0 2rem; }
.title-mark {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--ink);
  display: block;
}
.by {
  display: block;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-meta {
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Shard */
.shard {
  position: absolute;
  top: 18%;
  right: 12%;
  width: 80px;
  height: 130px;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.shard-shape { width: 100%; height: 100%; fill: url(#shardGrad); }
.shard svg polygon { fill: var(--shard-hot); filter: drop-shadow(0 0 10px var(--shard-glow)); }
.shard-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, var(--shard-glow), transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-14px) rotate(-4deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.15); }
}

@media (max-width: 720px) {
  .shard { right: 6%; width: 50px; height: 85px; top: 12%; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--ink-dim);
  border-radius: 14px;
  display: block;
  opacity: 0.6;
}
.scroll-cue span {
  display: block;
  width: 3px; height: 7px;
  background: var(--shard);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollDot 1.5s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn .btn-label { font-weight: 600; }
.btn .btn-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  margin-top: 0.2rem;
  text-transform: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--shard-hot), var(--shard));
  color: #06121d;
  box-shadow: 0 8px 30px rgba(124, 199, 255, 0.25), 0 0 0 1px rgba(124, 199, 255, 0.4) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 199, 255, 0.4), 0 0 0 1px rgba(124, 199, 255, 0.6) inset;
}
.btn-primary .btn-sub { color: rgba(6, 18, 29, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(124, 199, 255, 0.08);
  border-color: var(--shard);
  transform: translateY(-2px);
}

/* ===== Quote band ===== */
.quote-band {
  background: var(--paper-2);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-band blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  padding: 0;
}
.quote-band blockquote p { margin: 0 0 0.5rem; }
.quote-band .quote-tail { font-family: var(--font-hand); font-size: 1.8rem; color: var(--shard); font-style: normal; }
.quote-band cite {
  display: block; margin-top: 1.5rem;
  font-style: normal; font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* ===== Publishers ===== */
.publishers { padding: 6rem 1.5rem; position: relative; z-index: 2; }

.branch-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}
.tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
  text-align: left;
}
.tab:hover { border-color: var(--shard); transform: translateY(-2px); }
.tab.active {
  background: linear-gradient(135deg, rgba(124,199,255,0.12), rgba(124,199,255,0.04));
  border-color: var(--shard);
  box-shadow: 0 6px 30px rgba(124,199,255,0.15);
}
.tab-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--shard);
  padding: 0 0.4rem;
}
.tab-name { font-family: var(--font-display); font-weight: 600; display: block; }
.tab-sub { display: block; font-size: 0.75rem; color: var(--ink-dim); letter-spacing: 0.05em; }

.branch {
  max-width: 1100px;
  margin: 0 auto;
  display: none;
}
.branch.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.branch-head {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 2rem;
}
.branch-logo {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(124,199,255,0.1);
  border: 1px solid var(--shard);
  border-radius: 12px;
  color: var(--shard);
}
.branch-logo svg { width: 30px; height: 30px; }
.branch-logo-b { background: rgba(216,181,107,0.1); border-color: var(--gold); color: var(--gold); }

.branch-name { font-family: var(--font-display); margin: 0; font-size: 1.05rem; letter-spacing: 0.1em; }
.branch-tag { margin: 0.2rem 0 0; color: var(--ink-dim); font-style: italic; }

.branch-tagline {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 1.5rem;
  line-height: 1.2;
  color: var(--shard-hot);
  font-family: var(--font-display);
}
.branch-b .branch-tagline { color: var(--gold); }

.branch-subhero {
  font-size: 1.15rem; color: var(--ink);
  margin-bottom: 2.5rem;
  max-width: 820px;
  line-height: 1.55;
}

.branch-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.branch-grid.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) {
  .branch-grid, .branch-grid.two-col { grid-template-columns: 1fr; }
}

.pitch-card,
.side-card,
.discussion-box,
.series-tease {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
}

.card-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--shard);
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
.branch-b .card-label { color: var(--gold); }

.pitch-card p { margin: 0 0 1rem; }
.pitch-close { color: var(--shard-hot); font-size: 1.05rem; }
.branch-b .pitch-close { color: var(--gold); font-style: italic; }

.love-list, .reasons-list, .comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.love-list li, .reasons-list li, .comp-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.love-list li:last-child, .reasons-list li:last-child, .comp-list li:last-child { border-bottom: none; }
.love-list li::before {
  content: '◆';
  color: var(--shard);
  margin-right: 0.6rem;
  font-size: 0.7rem;
}

.series-tease {
  background: linear-gradient(135deg, rgba(124,199,255,0.06), transparent);
  margin-bottom: 2rem;
}
.series-tease.no-bg { background: rgba(255,255,255,0.025); }
.branch-b .series-tease { background: linear-gradient(135deg, rgba(216,181,107,0.06), transparent); }

.discussion-box {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(216,181,107,0.04), transparent);
}
.discussion-box ol {
  padding-left: 1.2rem;
  margin: 0;
}
.discussion-box ol li {
  padding: 0.5rem 0;
}

.small-prose { font-size: 0.95rem; color: var(--ink-dim); line-height: 1.6; }

.branch-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1rem;
}

/* ===== Listen ===== */
.listen { padding: 6rem 1.5rem; background: var(--paper-2); position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.key-banner {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.4rem;
  background: rgba(216,181,107,0.08);
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.92rem;
}
.key-banner code {
  background: rgba(0,0,0,0.35);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}
.key-banner.hidden { display: none; }

.players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 880px) { .players { grid-template-columns: 1fr; } }

.player {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  transition: border-color .2s ease;
}
.player:hover { border-color: var(--shard); }
.player.playing { border-color: var(--shard); box-shadow: 0 0 50px rgba(124,199,255,0.18); }
@media (max-width: 600px) { .player { grid-template-columns: 1fr; } }

.player-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(124,199,255,0.45), transparent 60%),
    linear-gradient(180deg, #122236, #050b12);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.player-art.alt {
  background:
    radial-gradient(circle at 50% 40%, rgba(124,199,255,0.6), rgba(196,106,58,0.35) 35%, transparent 65%),
    linear-gradient(180deg, #1a0f0a, #050b12);
}
.player-art-glow {
  position: absolute; inset: 30% 30%;
  background: radial-gradient(circle, var(--shard-hot), transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse 4s ease-in-out infinite;
}
.player-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--shard-hot);
  position: relative;
  z-index: 2;
  margin: 0;
  text-shadow: 0 0 20px var(--shard-glow);
}

.player-eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; color: var(--shard); margin: 0 0 0.4rem; }
.player-title { font-size: 1.7rem; margin: 0 0 0.4rem; }
.player-sub { color: var(--ink-dim); font-style: italic; margin: 0 0 1.2rem; }

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, var(--shard-hot), var(--shard));
  color: #06121d;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.play-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,199,255,0.3); }
.play-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.play-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.play-btn.ghost:hover { border-color: var(--shard); }
.play-icon { font-size: 0.9rem; }

.player-status {
  font-size: 0.78rem;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.player-status.busy { color: var(--gold); }
.player-status.err { color: var(--rust); }
.player-status.ready { color: var(--shard); }

.now-speaking {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.ns-label { color: var(--ink-dim); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.2em; }
.ns-character { font-family: var(--font-display); color: var(--shard-hot); font-weight: 600; }
.ns-voice { color: var(--ink-dim); font-style: italic; font-size: 0.8rem; }

.transcript {
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.55;
  padding-right: 0.5rem;
  scrollbar-color: var(--shard) transparent;
}
.transcript p {
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all .25s ease;
  opacity: 0.6;
}
.transcript p.active {
  background: rgba(124,199,255,0.08);
  border-left-color: var(--shard);
  opacity: 1;
}
.transcript .char-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--shard);
  margin-right: 0.6rem;
  text-transform: uppercase;
}

/* ===== Antagonists ===== */
.antagonists { padding: 6rem 1.5rem; position: relative; z-index: 2; }

.antag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.antag-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.antag-card:hover {
  border-color: var(--shard);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.antag-avatar {
  height: 200px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.antag-avatar .monogram {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--shard-hot);
  text-shadow: 0 0 16px var(--shard-glow);
  z-index: 2;
}

.avatar-eamon { background: radial-gradient(circle at 50% 60%, #1a3252, #0a0f1a 70%); }
.avatar-eamon .orb {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shard-hot), var(--shard) 40%, #2b5b87 80%);
  filter: blur(2px);
  animation: pulse 3.5s ease-in-out infinite;
  opacity: 0.55;
}
.avatar-eamon .monogram { color: #c8e5ff; }

.avatar-jp { background: radial-gradient(circle at 50% 50%, #2a3a1d, #0c1208 70%); }
.avatar-jp .monogram { color: #d2e8a6; }
.avatar-jp .track {
  position: absolute;
  bottom: 15%;
  font-size: 2rem;
  color: rgba(210, 232, 166, 0.4);
  letter-spacing: 0.8em;
}

.avatar-twins { background: radial-gradient(circle at 50% 50%, #3a1818, #100707 70%); }
.avatar-twins .monogram { color: #f4baba; }

.avatar-machines { background: radial-gradient(circle at 50% 50%, #4a3a10, #1a1305 70%); }
.avatar-machines .monogram { color: #e6c97a; font-size: 4rem; }

.antag-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.antag-role {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-dim);
  margin: 0 0 0.4rem;
}
.antag-card h3 { font-size: 1.5rem; margin: 0 0 0.7rem; color: var(--shard-hot); }
.antag-line { color: var(--ink); font-style: italic; margin: 0 0 1.2rem; }

.antag-stats { margin: 0 0 1.2rem; }
.antag-stats dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shard);
  margin-top: 0.7rem;
}
.antag-stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.voice-block {
  background: rgba(124,199,255,0.06);
  border: 1px dashed rgba(124,199,255,0.3);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.voice-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  color: var(--shard);
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}
.voice-val { margin: 0; font-size: 0.9rem; }
.voice-val em { color: var(--ink-dim); font-size: 0.85rem; }

.avatar-prompt {
  margin-top: auto;
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  font-size: 0.85rem;
}
.avatar-prompt summary {
  cursor: pointer;
  color: var(--shard);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.avatar-prompt p {
  margin: 0.7rem 0 0;
  color: var(--ink-dim);
  font-style: italic;
  line-height: 1.5;
}

/* ===== Voice Cast ===== */
.cast { padding: 6rem 1.5rem; background: var(--paper-2); position: relative; z-index: 2; border-top: 1px solid var(--line); }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.cast-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  transition: border-color .15s ease;
}
.cast-card:hover { border-color: var(--shard); }

.cast-char {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--shard-hot);
  margin: 0 0 0.3rem;
  letter-spacing: 0.08em;
}
.cast-desc { color: var(--ink-dim); font-size: 0.88rem; margin: 0 0 0.8rem; }
.cast-voice {
  font-size: 0.78rem;
  color: var(--shard);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}
.cast-voice .voice-id {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.cast-note {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(124,199,255,0.04);
  border: 1px solid var(--line);
  border-left: 3px solid var(--shard);
  padding: 1.5rem 1.8rem;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}
.cast-note ol { padding-left: 1.2rem; margin: 0.8rem 0 0; }
.cast-note li { padding: 0.4rem 0; }

/* ===== Footer ===== */
.footer {
  background: #03070b;
  text-align: center;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.4rem; color: var(--shard-hot); letter-spacing: 0.1em; }
.footer-byline { color: var(--ink-dim); margin: 0 0 0.4rem; }
.footer-meta { color: var(--ink-dim); font-size: 0.8rem; margin: 0; opacity: 0.6; }

/* ===== Auth bar (fixed top-right) ===== */
.auth-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.95rem;
  background: rgba(7, 17, 26, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.auth-bar > div { display: none; align-items: center; gap: 0.55rem; }
.auth-bar[data-state="loading"]    .auth-bar-loading,
.auth-bar[data-state="signed-out"] .auth-bar-signed-out,
.auth-bar[data-state="signed-in"]  .auth-bar-signed-in { display: inline-flex; }

.auth-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--shard);
  font: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.auth-link:hover { color: var(--shard-hot); }
.auth-link-strong { font-weight: 600; }
.auth-sep { color: var(--ink-dim); opacity: 0.5; }

.auth-email {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--ink-dim);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(124, 199, 255, 0.25);
  border-top-color: var(--shard);
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .auth-bar { top: 0.6rem; right: 0.6rem; padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .auth-email { max-width: 130px; font-size: 0.72rem; }
}

/* ===== Auth modal ===== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: authFade 0.18s ease;
}
.auth-modal[hidden] { display: none; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 11, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(124, 199, 255, 0.1) inset;
  animation: authPop 0.22s ease;
}
@keyframes authPop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.auth-modal-close:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.auth-modal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--shard);
  margin: 0 0 0.4rem;
}
.auth-modal-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  color: var(--shard-hot);
}
.auth-modal-sub {
  color: var(--ink-dim);
  font-style: italic;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shard);
}
.auth-field input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color .12s ease, background .12s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--shard);
  background: rgba(124, 199, 255, 0.05);
}

.auth-error {
  background: rgba(196, 106, 58, 0.12);
  border: 1px solid rgba(196, 106, 58, 0.45);
  color: #f6c8aa;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 0;
}

.auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--shard-hot), var(--shard));
  color: #06121d;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.3rem;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 199, 255, 0.3);
}
.auth-submit:disabled { opacity: 0.65; cursor: wait; }
.auth-submit-spinner { display: none; border-color: rgba(6, 18, 29, 0.25); border-top-color: #06121d; }
.auth-submit[data-busy="true"] .auth-submit-spinner { display: inline-block; }

.auth-swap {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-dim);
  text-align: center;
}
.auth-swap .auth-link { margin-left: 0.35rem; }

.auth-modal[data-mode="signin"] [data-auth-mode-text="signup"],
.auth-modal[data-mode="signup"] [data-auth-mode-text="signin"] { display: none; }
