/* ============================================================
   TRADERS OF THE ROUND TABLE — Castle Theme
   ============================================================ */

:root {
  --castle-night: #0e1320;
  --castle-night-2: #161b2c;
  --castle-stone-dark: #2a3043;
  --castle-stone: #3d4459;
  --castle-stone-light: #5b6379;
  --castle-mortar: #1a1f2e;
  --castle-gold: #d9b35a;
  --castle-gold-bright: #f2c761;
  --castle-gold-soft: #b89243;
  --castle-crimson: #8e2a3a;
  --castle-crimson-bright: #c43f54;
  --castle-parchment: #efe2c4;
  --castle-parchment-warm: #e8d6a8;
  --castle-parchment-dark: #c9b485;
  --castle-ink: #1c1408;
  --castle-candle: #ffc869;
  --castle-candle-glow: rgba(255, 200, 105, 0.45);

  --bg: var(--castle-night);
  --bg-2: var(--castle-night-2);
  --surface: var(--castle-stone-dark);
  --surface-2: var(--castle-stone);
  --border: var(--castle-stone-light);
  --text: #ece6d4;
  --text-dim: #a8a89e;
  --accent: var(--castle-gold);
  --accent-2: var(--castle-gold-bright);
  --warm: var(--castle-crimson);
}

body {
  background: radial-gradient(ellipse at top, #1a2138 0%, #0e1320 50%, #07090f 100%) !important;
  color: var(--text);
}

header, .app-header, [class*=AppHeader], [class*=appHeader] {
  background: linear-gradient(180deg, #1a2138 0%, #0e1320 100%) !important;
  border-bottom: 1px solid var(--castle-gold-soft) !important;
  box-shadow: 0 2px 0 rgba(217,179,90,0.12), 0 8px 30px rgba(0,0,0,0.6) !important;
}

button.primary, [class*=primary] button, button[class*=Primary] {
  background: linear-gradient(180deg, var(--castle-gold-bright) 0%, var(--castle-gold-soft) 100%) !important;
  color: var(--castle-ink) !important;
  border: 1px solid var(--castle-gold-soft) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--castle-night-2); }
::-webkit-scrollbar-thumb { background: var(--castle-stone-light); border-radius: 6px; border: 2px solid var(--castle-night-2); }
::-webkit-scrollbar-thumb:hover { background: var(--castle-gold-soft); }

/* Hide React's old verdict + report cards (the council replaces them) */
#root .detail-section,
#root .detail-card,
#root .verdict-card,
#root [class*=verdict-card] { display: none !important; }
#root .app-header, #root [class*=AppHeader] { display: none !important; }

/* ============================================================
   ADV DEVICE — DMG PALETTE & PIXEL FONT
   ============================================================ */

/* BGB DMG palette (from adv-mock) */
:root {
  --dmg-darkest:  #081820;
  --dmg-dark:     #346856;
  --dmg-mid:      #88C070;
  --dmg-lightest: #E0F8D0;
  --font-pixel:   'Press Start 2P', 'Courier New', monospace;
}

/* Load pixel font on-demand */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format('woff2');
}

/* ── ADV Device Bezel ── */
.adv-device {
  position: relative;
  max-width: 640px;
  margin: 20px auto 28px;
  background: var(--dmg-lightest);
  border: 16px solid var(--dmg-darkest);
  border-radius: 4px;
  padding: 12px;
  box-shadow:
    0 0 0 4px var(--dmg-darkest),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ── Status Strip ── */
.adv-status-strip {
  height: 40px;
  background: var(--dmg-dark);
  border-top: 2px solid var(--dmg-darkest);
  border-bottom: 2px solid var(--dmg-darkest);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--dmg-lightest);
  text-shadow: 0 1px 0 var(--dmg-darkest);
}
.adv-status-ticker   { text-align: left; text-transform: uppercase; }
.adv-status-title    { text-align: center; text-transform: uppercase; }
.adv-status-turn     { text-align: right; white-space: nowrap; }

/* ── Battle Arena ── */
.adv-battle-arena {
  position: relative;
  width: 100%;
  height: 380px;
  min-width: 480px;
  background: var(--dmg-dark);
  border-left: 4px solid var(--dmg-darkest);
  border-right: 4px solid var(--dmg-darkest);
  overflow: hidden;
}

/* ── Solo Screen (single analyst) ── */
.adv-solo-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.adv-solo-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-solo-portrait .adv-portrait-frame {
  border: 12px solid var(--dmg-darkest);
  outline: 2px solid var(--dmg-mid);
  outline-offset: -14px;
  padding: 6px;
  background: var(--dmg-lightest);
  box-shadow: 4px 4px 0 var(--dmg-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-solo-portrait .adv-portrait-frame img {
  width: 250px;
  height: 250px;
  image-rendering: auto;
  display: block;
  object-fit: cover;
}

/* ── Battle Screen (two-agent) ── */
.adv-battle-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Portrait Frame (shared) */
.adv-portrait-frame {
  border: 12px solid var(--dmg-darkest);
  outline: 2px solid var(--dmg-mid);
  outline-offset: -14px;
  padding: 6px;
  background: var(--dmg-lightest);
  box-shadow: 4px 4px 0 var(--dmg-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-portrait-frame img {
  width: 220px;
  height: 220px;
  image-rendering: auto;
  display: block;
  object-fit: cover;
}

/* Bear portrait (upper-right) */
.adv-battle-portrait-bear {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 2;
}
/* Bull portrait (lower-left) */
.adv-battle-portrait-bull {
  position: absolute;
  bottom: 50px;
  left: 20px;
  z-index: 2;
}

/* Platform shelves */
.adv-battle-platform {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 10px;
  background: var(--dmg-darkest);
  border-top: 2px solid var(--dmg-mid);
  border-left: 2px solid var(--dmg-darkest);
  border-right: 2px solid var(--dmg-darkest);
  z-index: 1;
}

/* Stat boxes */
.adv-battle-stats-bear,
.adv-battle-stats-bull {
  position: absolute;
  width: 180px;
  z-index: 4;
  background: var(--dmg-dark);
  border: 3px solid var(--dmg-darkest);
  box-shadow: 3px 3px 0 var(--dmg-darkest);
  padding: 8px 10px;
  font-family: var(--font-pixel);
  color: var(--dmg-lightest);
}
.adv-battle-stats-bear {
  bottom: 15px;
  right: 20px;
}
.adv-battle-stats-bull {
  bottom: 50px;
  left: 20px;
}
.adv-battle-stats-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.adv-battle-stats-name span:first-child {
  text-transform: uppercase;
}
.adv-battle-stats-allegiance {
  font-size: 10px;
  color: var(--dmg-lightest);
}
.adv-battle-stats-divider {
  height: 1px;
  background: var(--dmg-mid);
  margin-bottom: 6px;
}
.adv-battle-stats-gauge-label {
  font-size: 9px;
  color: var(--dmg-mid);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.adv-battle-stats-gauge {
  height: 10px;
  background: var(--dmg-darkest);
  border: 1px solid var(--dmg-darkest);
  position: relative;
  margin-bottom: 4px;
}
.adv-battle-stats-gauge-fill {
  height: 100%;
  width: 0%;
  background: var(--dmg-mid);
  transition: width 0.4s steps(8);
}
.adv-battle-stats-pct {
  font-size: 11px;
  text-align: right;
}

/* Active speaker emphasis */
.adv-battle-active .adv-portrait-frame {
  transform: scale(1.05);
  opacity: 1;
  box-shadow:
    4px 4px 0 var(--dmg-darkest),
    0 0 12px var(--dmg-lightest);
  transition:
    transform 0.35s ease-out,
    opacity 0.35s ease-out,
    box-shadow 0.35s ease-out;
}
.adv-battle-active .adv-portrait-frame img {
  animation: adv-battle-bob 2s ease-in-out infinite;
}
.adv-battle-idle .adv-portrait-frame {
  opacity: 0.65;
  transform: scale(0.97);
  box-shadow: 2px 2px 0 var(--dmg-darkest);
  transition:
    opacity 0.35s ease-out,
    transform 0.35s ease-out,
    box-shadow 0.35s ease-out;
}

/* ── Sentiment / Momentum Bar ── */
.adv-sentiment-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 10px auto 16px;
  padding: 6px 4px;
}
.adv-sentiment-label {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--dmg-darkest);
  white-space: nowrap;
}
.adv-sentiment-track {
  height: 20px;
  background: var(--dmg-dark);
  border: 2px solid var(--dmg-darkest);
  position: relative;
  overflow: hidden;
}
.adv-sentiment-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--dmg-dark) 0%, var(--dmg-mid) 100%);
  position: relative;
  transition: width 0.4s steps(8);
}
.adv-sentiment-readout {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--dmg-darkest);
  padding: 2px 0 0;
  max-width: 520px;
  margin: 0 auto 4px;
}
.adv-sentiment-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(10% - 1px),
    var(--dmg-darkest) calc(10% - 1px),
    var(--dmg-darkest) 10%
  );
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* ── Move Flourish ── */
.adv-move-flourish {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 16px;
  background: var(--dmg-darkest);
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dmg-lightest);
  text-align: center;
  text-transform: uppercase;
  border: 2px solid var(--dmg-mid);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
  line-height: 1.4;
}
.adv-move-flourish.adv-move-show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dialogue Box ── */
.adv-dialogue-box {
  width: 520px;
  height: 156px;
  background: var(--dmg-dark);
  border: 4px solid var(--dmg-darkest);
  box-shadow: 4px 4px 0 var(--dmg-darkest), inset 0 0 0 2px var(--dmg-mid);
  padding: 14px 16px;
  margin: 0 auto;
  position: relative;
  font-family: var(--font-pixel);
  color: var(--dmg-lightest);
  box-sizing: border-box;
  cursor: pointer;
}
.adv-dialogue-speaker {
  font-size: 12px;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.adv-dialogue-divider {
  height: 1px;
  background: var(--dmg-mid);
  margin-bottom: 10px;
}
.adv-dialogue-body {
  font-size: 11px;
  line-height: 1.7;
  min-height: 84px;
  max-height: 84px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--dmg-mid) var(--dmg-dark);
}
.adv-dialogue-body::-webkit-scrollbar { width: 4px; }
.adv-dialogue-body::-webkit-scrollbar-track { background: var(--dmg-dark); }
.adv-dialogue-body::-webkit-scrollbar-thumb { background: var(--dmg-mid); border-radius: 2px; }
.adv-dialogue-cursor {
  display: inline;
  animation: adv-cursor-blink 1.06s step-end infinite;
}
.adv-dialogue-advance {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 10px;
  animation: adv-blink-slow 1.4s step-end infinite;
  opacity: 0;
}
.adv-dialogue-advance.adv-visible { opacity: 1; }

/* ── Deliberation Grid ── */
.adv-deliberation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
  width: 520px;
  margin: 8px auto 0;
  padding: 0;
}
.adv-deliberation-slot {
  background: var(--dmg-darkest);
  border: 1px solid var(--dmg-dark);
  padding: 8px 4px;
  text-align: center;
  font-family: var(--font-pixel);
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.adv-delib-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--dmg-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--dmg-mid);
  background: var(--dmg-dark);
}
.adv-delib-icon.complete {
  background: var(--dmg-mid);
  color: var(--dmg-darkest);
  border-color: var(--dmg-lightest);
}
.adv-delib-label {
  font-size: 7px;
  color: var(--dmg-mid);
  text-transform: uppercase;
  line-height: 1.2;
}
.adv-delib-analyst {
  font-size: 8px;
  color: var(--dmg-lightest);
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
.adv-delib-label.complete {
  color: var(--dmg-lightest);
}

/* ── VS Intro Overlay ── */
.adv-vs-overlay {
  position: absolute;
  inset: 40px 0 0 0;
  z-index: 100;
  background: var(--dmg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
}
.adv-vs-overlay-bg {
  position: absolute;
  inset: 0;
  background: var(--dmg-darkest);
  z-index: 0;
}
.adv-vs-overlay .adv-vs-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 1;
}
.adv-vs-slot-left,
.adv-vs-slot-right {
  width: 120px;
  height: 120px;
  border: 6px solid var(--dmg-darkest);
  outline: 2px solid var(--dmg-mid);
  outline-offset: -8px;
  overflow: hidden;
  opacity: 0;
}
.adv-vs-slot-left img,
.adv-vs-slot-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}
.adv-vs-overlay .adv-vs-divider {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--dmg-lightest);
  background: var(--dmg-darkest);
  padding: 6px 14px;
  letter-spacing: 2px;
  z-index: 1;
}
.adv-vs-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dmg-mid);
  text-transform: uppercase;
  margin-top: 12px;
  z-index: 1;
  min-height: 12px;
}

/* ── Verdict Banner ── */
.adv-verdict-banner {
  background: var(--dmg-dark);
  border: 4px solid var(--dmg-darkest);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.adv-verdict-headline {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--dmg-lightest);
  text-align: center;
  line-height: 1.5;
}
.adv-verdict-ruling {
  color: var(--dmg-mid);
}
.adv-verdict-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dmg-mid);
  text-align: center;
  line-height: 1.4;
  flex-wrap: wrap;
}
.adv-verdict-sep {
  color: var(--dmg-darkest);
  opacity: 0.4;
}
.adv-verdict-prompt {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dmg-mid);
  animation: adv-blink-slow 2.5s step-end infinite;
}

/* ── Controls ── */
.adv-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
  gap: 8px;
}
.adv-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--dmg-dark);
  border: 1px solid var(--dmg-darkest);
  color: var(--dmg-lightest);
  font-family: var(--font-pixel);
  font-size: 7px;
  text-transform: uppercase;
}
.adv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dmg-mid);
}
.adv-live-dot.deliberating {
  animation: pulseGlow 1.5s ease-in-out infinite;
}
.adv-btn {
  background: var(--dmg-dark);
  border: 1px solid var(--dmg-darkest);
  color: var(--dmg-lightest);
  padding: 4px 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.adv-btn:hover {
  border-color: var(--dmg-mid);
  color: var(--dmg-lightest);
  background: var(--dmg-darkest);
}

/* ── Keyframes ── */
@keyframes adv-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes adv-blink-slow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes adv-battle-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes vs-slide-left {
  0%   { transform: translateX(-120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes vs-slide-right {
  0%   { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes vs-strike {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.3); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes vs-wipe {
  0%   { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes vs-reveal-battle {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .adv-device {
    max-width: 100%;
    margin: 16px 8px;
    border-width: 8px;
  }
  .adv-battle-arena {
    height: 320px;
    min-width: 320px;
  }
  .adv-portrait-frame img {
    width: 160px;
    height: 160px;
  }
  .adv-solo-portrait .adv-portrait-frame img {
    width: 180px;
    height: 180px;
  }
  .adv-battle-portrait-bear {
    top: 8px;
    right: 8px;
  }
  .adv-battle-portrait-bull {
    bottom: 38px;
    left: 8px;
  }
  .adv-battle-stats-bear,
  .adv-battle-stats-bull {
    width: 130px;
    font-size: 7px;
  }
  .adv-battle-stats-bear {
    bottom: 30px;
    right: 8px;
  }
  .adv-battle-stats-bull {
    bottom: 38px;
    left: 8px;
  }
  .adv-battle-stats-name {
    font-size: 8px;
  }
  .adv-battle-stats-gauge-label {
    font-size: 6px;
  }
  .adv-battle-stats-pct {
    font-size: 7px;
  }
  .adv-battle-platform {
    width: 180px;
    height: 8px;
  }
  .adv-move-flourish {
    font-size: 7px;
    padding: 3px 12px;
  }
  .adv-dialogue-box {
    width: 100%;
    min-height: 120px;
    height: auto;
  }
  .adv-deliberation-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .adv-vs-slot-left,
  .adv-vs-slot-right {
    width: 64px;
    height: 64px;
  }
  .adv-vs-slot-left img,
  .adv-vs-slot-right img {
    width: 64px;
    height: 64px;
  }
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
  .adv-battle-active .adv-portrait-frame img {
    animation: none;
  }
  .adv-battle-active .adv-portrait-frame,
  .adv-battle-idle .adv-portrait-frame {
    transition: none;
  }
  .adv-vs-overlay,
  .adv-vs-slot-left,
  .adv-vs-slot-right,
  .adv-vs-overlay .adv-vs-divider {
    animation: none !important;
    transition: opacity 150ms ease-in !important;
  }
}

/* ============================================================
   THE COUNCIL SCENE (legacy — round table chrome only, kept for
   verdict card / carousel / challenge input below the ADV device)
   ============================================================ */

#debate-scene-root {
  margin: 20px auto 28px;
  max-width: 1200px;
  padding: 0 20px;
  font-family: 'Cinzel', Georgia, serif;
  color: var(--text);
}
.rt-chrome {
  position: relative;
  background:
    linear-gradient(180deg, rgba(217,179,90,0.04) 0%, rgba(0,0,0,0) 30%),
    linear-gradient(180deg, #1a2138 0%, #0e1320 60%, #07090f 100%);
  border: 1px solid var(--castle-stone-light);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 80px rgba(0,0,0,0.6),
    0 12px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}
.rt-chrome::before {
  content:''; position:absolute; inset:10px;
  border: 1px solid rgba(217,179,90,0.18);
  border-radius: 10px; pointer-events:none; z-index: 2;
}
.rt-chrome::after {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,200,105,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(196,63,84,0.06) 0%, transparent 50%);
  pointer-events:none; z-index: 1;
}

.rt-header {
  position: relative; z-index: 3;
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 22px 12px;
  border-bottom: 1px solid rgba(217,179,90,0.18);
  background: linear-gradient(180deg, rgba(217,179,90,0.05), transparent);
}
.rt-title {
  display:flex; align-items:center; gap:14px;
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.22em; font-size: 13px;
  color: var(--castle-gold-bright); text-transform: uppercase;
}
.rt-title svg { width:22px; height:22px; }
.rt-controls { display:flex; align-items:center; gap:8px; }
.rt-btn {
  background: linear-gradient(180deg, #2a3043 0%, #1a1f2e 100%);
  border: 1px solid var(--castle-stone-light);
  color: var(--castle-parchment);
  padding: 6px 12px; border-radius: 6px;
  font-family: inherit; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.rt-btn:hover { border-color: var(--castle-gold-soft); color: var(--castle-gold-bright); }
.rt-btn.primary {
  background: linear-gradient(180deg, var(--castle-gold-bright), var(--castle-gold-soft));
  color: var(--castle-ink); border-color: var(--castle-gold-soft);
  font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}
.rt-btn.primary:hover { filter: brightness(1.08); }

/* ── Audio Toggle ─────────────────────────────── */
.rt-audio-btn {
  width: 38px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rt-audio-btn svg {
  transition: opacity 0.15s;
}
.rt-audio-btn.muted {
  color: var(--text-dim);
  border-color: var(--castle-stone-dark);
}
.rt-audio-btn.muted:hover {
  color: var(--castle-gold-soft);
  border-color: var(--castle-gold-soft);
}
.rt-audio-btn:not(.muted) {
  color: var(--castle-gold-bright);
  border-color: var(--castle-gold-soft);
  box-shadow: 0 0 6px rgba(217,179,90,0.2);
}

@media (prefers-reduced-motion: reduce) {
  .rt-audio-btn { display: none !important; }
}

.rt-stage {
  position: relative; height: 560px; z-index: 1;
  padding-top: 30px; padding-bottom: 30px; box-sizing: border-box;
}

.rt-banner {
  position: absolute; top: 0;
  width: 60px; height: 110px;
  background: linear-gradient(180deg, var(--castle-crimson) 0%, #5a1822 100%);
  border-radius: 4px 4px 30px 30px / 4px 4px 18px 18px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.1),
    inset 0 -20px 30px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}
.rt-banner::before {
  content:''; position:absolute; top: 18px; left:50%; transform:translateX(-50%);
  width: 24px; height: 24px;
  background: radial-gradient(circle, var(--castle-gold-bright) 30%, var(--castle-gold-soft) 60%, transparent 70%);
  border-radius:50%;
}
.rt-banner.left { left: 40px; border-left: 2px solid #4a141d; }
.rt-banner.right { right: 40px; border-right: 2px solid #4a141d; }

.rt-table {
  position: absolute; left: 50%; top: 50%;
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.06) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, #4a5067 0%, #353b50 35%, #252a3c 65%, #1a1f2e 100%);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.6),
    inset 0 2px 0 rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.8),
    0 0 60px rgba(217,179,90,0.05);
  border: 3px solid #1a1f2e;
  z-index: 3;
}
.rt-table::before {
  content:''; position:absolute; inset: 18px; border-radius: 50%;
  border: 1px solid rgba(217,179,90,0.22);
  box-shadow: inset 0 0 30px rgba(217,179,90,0.05);
}
.rt-table::after {
  content:''; position:absolute; inset: 40px; border-radius: 50%;
  border: 1px dashed rgba(217,179,90,0.15);
}
.rt-crest {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px; z-index: 4;
  pointer-events: none; opacity: 0.6;
}

.rt-seat {
  position: absolute; width: 110px;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 5;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.rt-portrait {
  width: 80px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.rt-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease-in-out;
}
.rt-portrait img.switching {
  opacity: 0.3;
}
.rt-seat.speaking .rt-portrait {
  transform: scale(1.12);
}
.rt-seat.thinking .comic-panel {
  border-color: var(--castle-gold-soft);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.3),
    0 0 0 2px rgba(217,179,90,0.3),
    0 4px 12px rgba(0,0,0,0.5);
  animation: thinkPulse 1.4s ease-in-out infinite;
}
@keyframes thinkPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), 0 0 0 2px rgba(217,179,90,0.18), 0 4px 12px rgba(0,0,0,0.5); }
  50%      { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3), 0 0 0 4px rgba(217,179,90,0.35), 0 0 16px rgba(217,179,90,0.35), 0 4px 12px rgba(0,0,0,0.5); }
}

/* ===== IDLE LIFE ANIMATIONS ===== */

/* --- Market: Flint squints at a chart — portrait tilts left 3° then back --- */
@keyframes idle-quirk-market {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  38%      { transform: translate(-50%, -50%) rotate(-3deg); }
  62%      { transform: translate(-50%, -50%) rotate(0deg); }
}
.rt-seat[data-id="market"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-market 5s ease-in-out infinite;
}

/* --- Social: Vera tilts head thoughtfully — slow 2° side-to-side rock --- */
@keyframes idle-quirk-social {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25%      { transform: translate(-50%, -50%) rotate(-2deg); }
  75%      { transform: translate(-50%, -50%) rotate(2deg); }
}
.rt-seat[data-id="social"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-social 4s ease-in-out infinite;
}

/* --- News: Reed adjusts spectacles — subtle upward nudge then settle --- */
@keyframes idle-quirk-news {
  0%, 100% { transform: translate(-50%, -50%); }
  30%      { transform: translate(-50%, -52%); }
  55%      { transform: translate(-50%, -50%); }
}
.rt-seat[data-id="news"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-news 3.5s ease-in-out infinite;
}

/* --- Fundamentals: Sage strokes beard/chin — slow 1.5° nod cycle --- */
@keyframes idle-quirk-fundamentals {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  30%      { transform: translate(-50%, -50%) rotate(1.5deg); }
  70%      { transform: translate(-50%, -50%) rotate(-1.5deg); }
}
.rt-seat[data-id="fundamentals"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-fundamentals 6s ease-in-out infinite;
}

/* --- Debater: Balthazar crosses arms, shifts weight — subtle lean L→R --- */
@keyframes idle-quirk-debater {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  35%      { transform: translate(-50%, -50%) translateX(-3px); }
  70%      { transform: translate(-50%, -50%) translateX(3px); }
}
.rt-seat[data-id="debater"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-debater 4.5s ease-in-out infinite;
}

/* --- Risk: Morwen taps fingers — micro-bounce scale 1→1.01→1, 3s cycle --- */
@keyframes idle-quirk-risk {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  12%      { transform: translate(-50%, -50%) scale(1.01); }
  24%      { transform: translate(-50%, -50%) scale(1); }
  36%      { transform: translate(-50%, -50%) scale(1.01); }
  48%      { transform: translate(-50%, -50%) scale(1); }
}
.rt-seat[data-id="risk"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-risk 3s ease-in-out infinite;
}

/* --- Trader: Kael checks multiple screens — quick glance left then right --- */
@keyframes idle-quirk-trader {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  20%      { transform: translate(-50%, -50%) rotate(-4deg); }
  40%      { transform: translate(-50%, -50%) rotate(0deg); }
  60%      { transform: translate(-50%, -50%) rotate(4deg); }
  80%      { transform: translate(-50%, -50%) rotate(0deg); }
}
.rt-seat[data-id="trader"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-trader 2.5s ease-in-out infinite;
}

/* --- Judge: Elder Aldric — regal stillness, barely moves, staff/gavel shifts subtly --- */
@keyframes idle-quirk-judge {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.006) translateY(-1px); }
}
.rt-seat[data-id="judge"]:not(.speaking):not(.thinking):not(.done):not(.dimmed):not(.entering) {
  animation: idle-quirk-judge 7s ease-in-out infinite;
}

@keyframes blink-frame {
  0%, 90%, 100% { opacity: 1; }
  95%           { opacity: 0; }
}
.rt-seat.blinking .rt-portrait img {
  animation: blink-frame 0.3s ease-in-out;
}

/* ---- Comic-panel framing (graphic-novel portrait borders) ---- */
.comic-panel {
  border: 3px solid #2a1a0a;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.3),
    0 0 0 2px #8b7355,
    0 4px 8px rgba(0,0,0,0.5);
  background: #1a1008;
}
.rt-seat.speaking .comic-panel {
  border-color: var(--castle-gold-bright, #f2c761);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.3),
    0 0 0 3px var(--castle-gold-bright, #f2c761),
    0 0 16px rgba(242,199,97,0.4),
    0 4px 8px rgba(0,0,0,0.5);
}

.rt-seat.done .rt-portrait { filter: saturate(0.6) brightness(0.85); }
.rt-seat.dimmed { filter: grayscale(0.7) brightness(0.55); }

/* ===== ENTRANCE ANIMATIONS ===== */
.rt-stage { opacity: 0; transition: opacity 0.6s ease; }
.rt-stage.entered { opacity: 1; }

@keyframes judge-entrance {
  0%   { transform: translate(-50%, -30%) scale(0.3); opacity: 0; }
  60%  { transform: translate(-50%, -52%) scale(1.08); opacity: 1; }
  80%  { transform: translate(-50%, -48%) scale(0.97); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.rt-seat[data-id="judge"].entering {
  animation: judge-entrance 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes seat-pop-in {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  70%  { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.rt-seat.entering {
  animation: seat-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes debater-pop-in {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: translate(-50%, -50%) scale(1.1) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.rt-seat[data-id="debater"].entering,
.rt-seat[data-id="risk"].entering {
  animation: debater-pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== SPEAKING GESTURES ===== */
@keyframes speaking-bob {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, -52%); }
}
.rt-seat.speaking {
  animation: speaking-bob 1.2s ease-in-out infinite;
}

@keyframes gesture-wave {
  0%   { transform: rotate(-10deg) scaleX(0.6); opacity: 0.2; }
  100% { transform: rotate(10deg) scaleX(1); opacity: 0.6; }
}
.rt-seat.speaking .rt-portrait::after {
  content: '';
  position: absolute;
  width: 24px; height: 3px;
  background: var(--castle-gold-bright);
  opacity: 0.5; border-radius: 2px;
  top: 50%; right: -8px;
  transform-origin: center left;
  animation: gesture-wave 0.6s ease-in-out infinite alternate;
}

.rt-name {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--castle-parchment-dark);
  text-transform: uppercase; text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.rt-role {
  font-size: 8.5px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
  margin-top: 2px; text-align:center;
}
.rt-seat.speaking .rt-name { color: var(--castle-gold-bright); }

.rt-candle {
  position: absolute; width: 12px; height: 28px;
  transform: translate(-50%, -50%); z-index: 4;
  pointer-events: none;
}
.rt-candle::before {
  content:''; position:absolute; bottom: 0; left: 50%;
  transform:translateX(-50%);
  width: 6px; height: 18px;
  background: linear-gradient(180deg, var(--castle-parchment-dark), #8a7544);
  border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.rt-candle::after {
  content:''; position:absolute; bottom: 14px; left: 50%;
  transform:translateX(-50%);
  width: 10px; height: 16px;
  background: radial-gradient(ellipse at 50% 60%, #fff5c0 0%, var(--castle-candle) 35%, #ff8a3a 70%, transparent 80%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  box-shadow: 0 0 12px var(--castle-candle-glow), 0 0 24px rgba(255,200,105,0.25);
  animation: flicker 1.6s ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1, 1); opacity: 0.95; }
  35%  { transform: translateX(-50%) scale(0.95, 1.06); opacity: 1; }
  65%  { transform: translateX(-50%) scale(1.05, 0.95); opacity: 0.85; }
  100% { transform: translateX(-50%) scale(0.98, 1.04); opacity: 0.98; }
}

.rt-bubble {
  position: absolute; z-index: 20;
  max-width: 240px;
  background: linear-gradient(180deg, var(--castle-parchment) 0%, var(--castle-parchment-warm) 100%);
  color: var(--castle-ink);
  padding: 10px 14px 11px; border-radius: 12px;
  border: 1px solid var(--castle-parchment-dark);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.6),
    0 0 0 1px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.5);
  font-family: 'Georgia', serif; font-size: 12px; line-height: 1.45;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.rt-bubble.visible { opacity: 1; transform: scale(1); }
.rt-bubble.rebuttal {
  border-color: var(--castle-crimson);
  background: linear-gradient(180deg, #f5dcd0, #ecc4b2);
}
.rt-bubble.rebuttal.shake { animation: shake 0.4s ease-in-out; }
@keyframes shake {
  0%,100% { transform: scale(1) translateX(0); }
  25% { transform: scale(1) translateX(-4px); }
  75% { transform: scale(1) translateX(4px); }
}

/* ===== BUBBLE TYPE STYLES ===== */
/* Emphatic — dramatic, gold-trimmed on dark */
.rt-bubble.emphatic {
  background: linear-gradient(180deg, #1e2438 0%, #161b2c 60%, #0e1320 100%);
  color: #ece6d4;
  border: 2px solid var(--castle-gold-bright);
  max-width: 300px;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.6),
    0 0 20px rgba(242,199,97,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.rt-bubble.emphatic .rt-bubble-name { color: var(--castle-gold-bright); }

/* Bull — green-tinted, upward surge */
.rt-bubble.bull {
  background: linear-gradient(180deg, #1a2e22 0%, #0e1812 100%);
  color: #d4ead8;
  border: 2px solid #3fa055;
  box-shadow:
    0 12px 24px rgba(0,0,0,0.6),
    0 0 16px rgba(63,160,85,0.25);
}
.rt-bubble.bull .rt-bubble-name { color: #6fdf7c; }

/* Bear — crimson-tinted, weighty descent */
.rt-bubble.bear {
  background: linear-gradient(180deg, #2e1a1e 0%, #180e10 100%);
  color: #f0d4d8;
  border: 2px solid var(--castle-crimson-bright);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.6),
    0 0 16px rgba(196,63,84,0.25);
}
.rt-bubble.bear .rt-bubble-name { color: #f5a0ac; }

/* Bubble body for typewriter */
.rt-bubble-body { min-height: 1.2em; }

/* ===== BUBBLE ENTRANCE ANIMATIONS ===== */
@keyframes emphatic-pop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-3deg); }
  50%  { opacity: 1; transform: scale(1.1) rotate(1deg); }
  70%  { transform: scale(0.95) rotate(0deg); }
  100% { transform: scale(1); }
}
.rt-bubble.emphatic.visible {
  animation: emphatic-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bull-surge {
  0%   { opacity: 0; transform: scale(0.7) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.rt-bubble.bull.visible {
  animation: bull-surge 0.3s ease-out forwards;
}

@keyframes bear-drop {
  0%   { opacity: 0; transform: scale(0.7) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.rt-bubble.bear.visible {
  animation: bear-drop 0.35s ease-out forwards;
}
.rt-bubble-name {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--castle-crimson);
  margin-bottom: 4px;
  display:flex; align-items:center; gap:6px;
}
.rt-bubble-name .dot {
  width:6px; height:6px; border-radius:50%; background: currentColor;
}

.rt-reaction {
  position: absolute; z-index: 8;
  transform: translate(-50%, -210%);
  display: inline-flex; align-items:center; gap: 6px;
  padding: 4px 9px 4px 4px; border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #1e2438, #0e1320);
  color: var(--castle-parchment);
  border: 1px solid var(--castle-stone-light);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.rt-reaction.visible { opacity: 1; transform: translate(-50%, -240%); }
.rt-reaction .chip {
  width: 18px; height: 18px; border-radius: 50%; overflow: hidden;
  background: var(--castle-stone-dark);
  border: 1px solid var(--castle-stone-light);
  flex-shrink: 0;
}
.rt-reaction .chip svg { width:100%; height:100%; display:block; }
.rt-reaction.agree { border-color: #5fbf6f; color: #b8f0c0; }
.rt-reaction.disagree { border-color: var(--castle-crimson-bright); color: #f5b8c2; }
.rt-reaction.thinking { border-color: var(--castle-gold-soft); color: var(--castle-gold-bright); }

.rt-progress {
  display:flex; gap: 6px;
  margin: 0 22px 16px;
  position: relative; z-index: 3;
}
.rt-pip {
  flex: 1; height: 6px;
  background: var(--castle-mortar); border-radius: 3px;
  border: 1px solid var(--castle-stone-dark);
  transition: background 0.3s, box-shadow 0.3s;
}
.rt-pip.active {
  background: linear-gradient(90deg, var(--castle-gold-bright), var(--castle-gold-soft));
  box-shadow: 0 0 8px rgba(242,199,97,0.5);
}
.rt-pip.done { background: var(--castle-gold-soft); }

.rt-verdict-banner {
  position: absolute;
  top: 32px; left: 50%; transform: translateX(-50%);
  z-index: 12;
  display: none;
  align-items: center; gap: 12px;
  padding: 11px 22px;
  background: linear-gradient(180deg, #f4e4c2 0%, #e8d09a 100%);
  color: #1a1408;
  border: 2px solid var(--castle-gold-soft);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.25),
    0 2px 0 rgba(255,255,255,0.4) inset,
    0 16px 38px rgba(0,0,0,0.85),
    0 0 70px rgba(242,199,97,0.55),
    0 0 140px rgba(242,199,97,0.18);
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.rt-verdict-banner svg { stroke: #1a1408; flex-shrink: 0; }
.rt-verdict-banner::before {
  content:''; position:absolute; inset: 3px;
  border-radius: 5px; border: 1px solid rgba(0,0,0,0.18);
  pointer-events: none;
}
.rt-verdict-banner.show {
  display: inline-flex;
  animation: verdictBannerFloat 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes verdictBannerFloat {
  0%   { transform: translate(-50%, -10px); opacity: 0; }
  60%  { transform: translate(-50%, 4px);   opacity: 1; }
  100% { transform: translate(-50%, 0);     opacity: 1; }
}
/* per-verdict palettes */
.rt-verdict-banner.buy  { background: linear-gradient(180deg, #d4f0d2 0%, #a6d6a1 100%); border-color: #3fa055; }
.rt-verdict-banner.sell { background: linear-gradient(180deg, #f5d0d6 0%, #e8a4ad 100%); border-color: var(--castle-crimson-bright); }
.rt-verdict-banner.hold { /* default gold palette */ }

.rt-status {
  position:absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  font-family:'Cinzel',serif; font-size: 10px;
  letter-spacing: 0.3em; color: var(--text-dim);
  text-transform: uppercase;
}

/* ===== VERDICT DRAMATIC EFFECTS ===== */
@keyframes stage-dim {
  0%   { filter: brightness(1); }
  100% { filter: brightness(0.5); }
}
.rt-stage.verdict-mode {
  animation: stage-dim 1s ease-in-out forwards;
}

@keyframes judge-finale-glow {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(242,199,97,0.25), 0 0 24px rgba(242,199,97,0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242,199,97,0.5), 0 0 60px rgba(242,199,97,0.8), 0 0 120px rgba(242,199,97,0.3);
  }
}
.rt-seat[data-id="judge"].speaking.verdict-finale .rt-portrait {
  animation: judge-finale-glow 2s ease-in-out infinite;
}

@keyframes crest-pulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}
.rt-stage.verdict-mode .rt-crest {
  animation: crest-pulse 1.5s ease-in-out infinite;
}

/* ============================================================
   DYNAMIC CANDLE STATES — phase-aware candle lighting
   ============================================================ */

/* Calm (default) — existing gentle flicker */
.rt-stage.candles-calm .rt-candle::after {
  animation: flicker 1.6s ease-in-out infinite alternate;
}

/* Heated — flare brighter, faster flicker, warm-orange glow */
@keyframes flicker-heated {
  0%   { transform: translateX(-50%) scale(1.1, 1.1); opacity: 0.95; filter: brightness(1.3); }
  25%  { transform: translateX(-50%) scale(1.25, 0.9); opacity: 1; filter: brightness(1.5); }
  50%  { transform: translateX(-50%) scale(1.05, 1.15); opacity: 0.88; filter: brightness(1.2); }
  75%  { transform: translateX(-50%) scale(1.3, 0.85); opacity: 1; filter: brightness(1.55); }
  100% { transform: translateX(-50%) scale(1.08, 1.1); opacity: 0.92; filter: brightness(1.35); }
}
.rt-stage.candles-heated .rt-candle::after {
  animation: flicker-heated 0.8s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(255,160,40,0.6), 0 0 40px rgba(255,140,20,0.3);
}

/* Verdict — all candles dim except the judge's (first candle, nearest 270°) */
@keyframes candle-verdict-dim {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1, 1); filter: brightness(0.6); }
  50%      { opacity: 0.4; transform: translateX(-50%) scale(1.05, 0.95); filter: brightness(0.7); }
}
.rt-stage.candles-verdict .rt-candle::after {
  animation: candle-verdict-dim 2s ease-in-out infinite alternate;
}
/* Judge's candle — the first .rt-candle appended (index 0, between judge at 270° and market at 315°) */
@keyframes candle-verdict-judge {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1.1, 1.1); filter: brightness(1.5); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.4, 1.65); filter: brightness(1.9); }
}
.rt-stage.candles-verdict .rt-candle[data-candle="0"]::after {
  animation: candle-verdict-judge 1.4s ease-in-out infinite alternate;
  box-shadow: 0 0 28px rgba(255,200,105,0.7), 0 0 50px rgba(255,170,50,0.4);
}

/* Victory — all candles pulse once in unison, then return to calm */
@keyframes candle-victory {
  0%   { transform: translateX(-50%) scale(1, 1); opacity: 0.3; filter: brightness(0.6); }
  15%  { transform: translateX(-50%) scale(1.6, 1.9); opacity: 1; filter: brightness(2.2); }
  30%  { transform: translateX(-50%) scale(1.4, 1.7); opacity: 1; filter: brightness(1.8); }
  60%  { transform: translateX(-50%) scale(0.95, 1.05); opacity: 0.9; filter: brightness(1.1); }
  100% { transform: translateX(-50%) scale(1, 1); opacity: 0.95; filter: brightness(1); }
}
.rt-stage.candles-victory .rt-candle::after {
  animation: candle-victory 1.5s ease-out forwards;
}

/* ============================================================
   DELIBERATION LOADING STATE
   ============================================================ */

/* Seats dimmed during deliberation (lighter than verdict .dimmed) */
.rt-seat.dimmed-pending {
  filter: grayscale(0.35) brightness(0.7);
  transition: filter 0.5s ease;
}

/* Candle dimmed/off state — no flame glow */
.rt-candle.dimmed-candle::after {
  opacity: 0;
  box-shadow: none;
  animation: none;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Candle ignition flare-up */
@keyframes candleIgnite {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.3, 0.1); box-shadow: none; }
  30%  { opacity: 1; transform: translateX(-50%) scale(1.8, 2.4); box-shadow: 0 0 30px var(--castle-candle-glow), 0 0 60px rgba(255,200,105,0.55); }
  60%  { transform: translateX(-50%) scale(1.2, 1.6); box-shadow: 0 0 20px var(--castle-candle-glow), 0 0 40px rgba(255,200,105,0.35); }
  100% { opacity: 0.98; transform: translateX(-50%) scale(1, 1.1); box-shadow: 0 0 12px var(--castle-candle-glow), 0 0 24px rgba(255,200,105,0.25); }
}
.rt-candle.igniting::after {
  animation: candleIgnite 0.55s ease-out forwards;
}

/* Lit candle — normal flicker */
.rt-candle.lit::after {
  opacity: 0.98;
  box-shadow: 0 0 12px var(--castle-candle-glow), 0 0 24px rgba(255,200,105,0.25);
  animation: flicker 1.6s ease-in-out infinite alternate;
}

/* Deliberating status text with pulsing ellipsis */
@keyframes deliberatingPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}
.rt-status.deliberating {
  color: var(--castle-gold-bright);
  animation: deliberatingPulse 2s ease-in-out infinite;
}
.rt-status.deliberating::after {
  content: '';
  animation: ellipsisDots 1.8s steps(4, end) infinite;
}
@keyframes ellipsisDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: '...'; }
}

/* Pulsing live dot during deliberation */
#rt-live-dot.deliberating {
  animation: deliberatingPulse 1s ease-in-out infinite;
}

/* Summoning overlay — centered callout that fades out */
.rt-summoning-overlay {
  position: absolute;
  left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  z-index: 15;
  padding: 14px 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,179,90,0.13) 0%, transparent 70%),
              linear-gradient(180deg, rgba(26,33,56,0.95) 0%, rgba(14,19,32,0.95) 100%);
  border: 1px solid var(--castle-gold-soft);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3) inset,
    0 16px 40px rgba(0,0,0,0.7),
    0 0 50px rgba(217,179,90,0.15);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--castle-gold-bright);
  text-transform: uppercase;
  text-align: center;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.rt-summoning-overlay.fade-out {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.08);
}
.rt-summoning-overlay .subtitle {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: none;
}

/* ============================================================
   VERDICT CARD (castle seal)
   ============================================================ */

.rt-verdict-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217,179,90,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #1e2438 0%, #0e1320 100%);
  border: 1px solid var(--castle-gold-soft);
  border-radius: 16px;
  padding: 28px 28px 26px;
  margin: 16px auto 22px;
  max-width: 1200px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(217,179,90,0.18) inset,
    0 0 60px rgba(217,179,90,0.06) inset,
    0 24px 70px rgba(0,0,0,0.7);
}
.rt-verdict-card::before {
  content:''; position:absolute; inset: 12px;
  border: 1px solid rgba(217,179,90,0.25);
  border-radius: 12px; pointer-events:none;
}
.rt-verdict-card::after {
  content:''; position:absolute; top: 0; left: 0; right:0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--castle-gold-bright), transparent);
  opacity: 0.7;
}
.rt-crest-large { margin: 0 auto 14px; width: 88px; height: 88px; position: relative; }
.rt-verdict-label {
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.4em; color: var(--castle-gold-soft);
  text-transform: uppercase; margin-bottom: 8px;
}
.rt-verdict-value {
  font-family: 'Cinzel', serif; font-size: 56px;
  font-weight: 900; letter-spacing: 0.3em;
  color: var(--castle-gold-bright);
  text-shadow: 0 0 30px rgba(242,199,97,0.3);
  margin: 4px 0 10px;
}
.rt-verdict-meta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--castle-stone-light);
  border-radius: 999px;
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 0.24em; color: var(--castle-parchment-dark);
  text-transform: uppercase;
}
.rt-verdict-meta .sep { color: var(--castle-gold-soft); }

/* ===== COPY VERDICT BUTTON ===== */
.rt-copy-verdict {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(217,179,90,0.15) 0%, rgba(217,179,90,0.05) 100%);
  border: 1px solid var(--castle-gold-soft);
  border-radius: 8px;
  color: var(--castle-gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.rt-copy-verdict:hover {
  background: linear-gradient(180deg, rgba(217,179,90,0.25) 0%, rgba(217,179,90,0.1) 100%);
  border-color: var(--castle-gold-bright);
  box-shadow: 0 0 16px rgba(217,179,90,0.25), 0 2px 8px rgba(0,0,0,0.4);
}
.rt-copy-verdict:active {
  transform: scale(0.97);
}
.rt-copy-verdict.copied {
  background: linear-gradient(180deg, rgba(63,160,85,0.3) 0%, rgba(63,160,85,0.1) 100%);
  border-color: #3fa055;
  color: #6fdf7c;
  box-shadow: 0 0 20px rgba(63,160,85,0.3);
}
.rt-copy-verdict svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.rt-copy-verdict.copied svg {
  transform: scale(1.1);
}

/* ============================================================
   CHALLENGE ANOTHER STOCK (quick-input after verdict)
   ============================================================ */

.rt-challenge-card {
  margin: 10px auto 0;
  max-width: 1200px;
  padding: 20px 28px 22px;
  text-align: center;
  animation: fadeInUp 0.5s ease 0.3s both;
  position: relative;
}
.rt-challenge-flourish {
  color: var(--castle-gold-soft);
  margin-bottom: 8px;
  opacity: 0.6;
}
.rt-challenge-label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--castle-gold-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rt-challenge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.rt-challenge-input {
  flex: 1;
  padding: 12px 16px;
  background:
    linear-gradient(180deg, #1a2138 0%, #0e1320 100%);
  border: 1px solid var(--castle-stone-light);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.rt-challenge-input::placeholder {
  color: var(--castle-stone-light);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 12px;
}
.rt-challenge-input:focus {
  border-color: var(--castle-gold-bright);
  box-shadow: 0 0 0 3px rgba(217,179,90,0.12), 0 0 20px rgba(217,179,90,0.08);
}
.rt-challenge-btn {
  padding: 12px 24px;
  background: linear-gradient(180deg, var(--castle-gold-bright) 0%, var(--castle-gold-soft) 100%);
  color: var(--castle-ink);
  border: 1px solid var(--castle-gold-soft);
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.rt-challenge-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(217,179,90,0.3);
  transform: translateY(-1px);
}
.rt-challenge-btn:active {
  transform: scale(0.97);
}

@media (max-width: 500px) {
  .rt-challenge-card {
    padding: 16px 16px 18px;
  }
  .rt-challenge-row {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }
  .rt-challenge-input {
    width: 100%;
    font-size: 16px;
    padding: 14px 16px;
    text-align: center;
  }
  .rt-challenge-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }
}

/* ============================================================
   REPORT CAROUSEL
   ============================================================ */

.rt-report-carousel {
  margin: 20px auto; max-width: 1200px;
  padding: 0 20px; position: relative;
}
.rt-report-track {
  display: grid;
  grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 18px; scrollbar-width: thin;
}
@media (min-width: 900px)  { .rt-report-track { grid-auto-columns: 60%; } }
@media (min-width: 1200px) { .rt-report-track { grid-auto-columns: 46%; } }

.rt-report-card {
  position: relative;
  scroll-snap-align: start;
  background:
    linear-gradient(180deg, rgba(217,179,90,0.02), transparent 30%),
    linear-gradient(180deg, var(--castle-parchment) 0%, var(--castle-parchment-warm) 100%);
  color: var(--castle-ink);
  border-radius: 12px;
  border: 1px solid var(--castle-parchment-dark);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.4);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 480px; max-height: 580px;
}
.rt-report-head {
  display:flex; align-items:center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), transparent);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.rt-mini-portrait {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--castle-gold-soft);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  background: var(--castle-stone-dark);
  flex-shrink: 0;
}
.rt-mini-portrait svg { width:100%; height:100%; display:block; }
.rt-report-head h3 {
  font-family: 'Cinzel', serif;
  font-size: 14px; letter-spacing: 0.2em;
  margin: 0; color: var(--castle-ink);
  text-transform: uppercase;
}
.rt-report-role {
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--castle-crimson);
  text-transform: uppercase; margin-top: 2px;
}
.rt-report-body {
  padding: 16px 22px 22px;
  overflow-y: auto;
  font-family: 'Georgia', serif;
  font-size: 13px; line-height: 1.6; color: #2c2516;
  white-space: pre-wrap;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 85%, transparent 100%);
}
.rt-report-body strong { color: var(--castle-crimson); }
.rt-report-body table, .rt-modal-body table { white-space: normal; }
.rt-report-body table {
  font-size: 11px; border-collapse: collapse; margin: 10px 0;
}
.rt-report-body th, .rt-report-body td {
  border: 1px solid rgba(0,0,0,0.2); padding: 4px 8px;
}

/* carousel arrow controls */
.rt-carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.rt-carousel-title {
  font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: 0.22em;
  color: var(--castle-gold-bright);
  text-transform: uppercase;
}
.rt-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, #2a3043, #1a1f2e);
  border: 1px solid var(--castle-stone-light);
  color: var(--castle-gold-bright);
  cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.rt-arrow:hover { border-color: var(--castle-gold-bright); transform: scale(1.05); }

.rt-read-full {
  position: absolute; bottom: 14px; right: 18px; z-index: 3;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--castle-gold-bright), var(--castle-gold-soft));
  color: var(--castle-ink);
  border: 1px solid var(--castle-gold-soft);
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.rt-read-full:hover { filter: brightness(1.08); }

/* Carousel auto-scroll highlight ring — pulses gold during scripted playback */
.rt-report-card.highlighted {
  border-color: var(--castle-gold-bright) !important;
  box-shadow:
    0 0 0 3px rgba(217,179,90,0.55),
    0 0 18px rgba(217,179,90,0.3),
    0 12px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.4) !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}
@keyframes rt-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217,179,90,0.55), 0 0 18px rgba(217,179,90,0.3), 0 12px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(217,179,90,0.75), 0 0 28px rgba(217,179,90,0.5), 0 12px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
}
.rt-report-card.highlighted {
  animation: rt-gold-pulse 1.6s ease-in-out infinite;
}

/* ============================================================
   READ-FULL MODAL
   ============================================================ */

.rt-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  opacity: 0; transition: opacity 0.25s;
}
.rt-modal-backdrop.visible { opacity: 1; }
.rt-modal {
  background: linear-gradient(180deg, var(--castle-parchment) 0%, var(--castle-parchment-warm) 100%);
  color: var(--castle-ink);
  border: 2px solid var(--castle-gold-soft);
  border-radius: 14px;
  width: min(1100px, 100%); max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  overflow: hidden;
  transform: scale(0.94); transition: transform 0.3s;
}
.rt-modal-backdrop.visible .rt-modal { transform: scale(1); }
.rt-modal-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.rt-modal-portrait {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--castle-gold-soft);
  flex-shrink: 0;
}
.rt-modal-portrait svg { width:100%; height:100%; display:block; }
.rt-modal-title-block { flex: 1; }
.rt-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 22px; letter-spacing: 0.18em;
  margin: 0; text-transform: uppercase;
  color: var(--castle-ink);
}
.rt-modal-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--castle-crimson);
  text-transform: uppercase; margin-top: 4px;
}
.rt-modal-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, #2a3043, #1a1f2e);
  border: 1px solid var(--castle-stone-light);
  color: var(--castle-gold-bright);
  cursor: pointer; font-size: 18px;
}
.rt-modal-close:hover { border-color: var(--castle-gold-bright); }
.rt-modal-body {
  overflow-y: auto; padding: 24px 32px 32px;
  font-family: 'Georgia', serif; font-size: 14px;
  line-height: 1.7; color: #2c2516;
  flex: 1; white-space: pre-wrap;
}
.rt-modal-body table {
  font-size: 12px; border-collapse: collapse; margin: 12px 0;
}
.rt-modal-body th, .rt-modal-body td {
  border: 1px solid rgba(0,0,0,0.2); padding: 6px 10px;
}
.rt-modal-body strong { color: var(--castle-crimson); }

/* lock background scroll while modal is open */
body:has(.rt-modal-backdrop.visible) { overflow: hidden; }

/* ============================================================
   BULL vs BEAR — Tug-of-War Meter
   (Matches rt-tug-meter HTML structure in castle-council.js)
   ============================================================ */

.rt-tug-meter {
  position: relative; z-index: 3;
  margin: 0 22px 16px;
  display: flex;
  align-items: stretch;
  height: 72px;
  background:
    linear-gradient(90deg,
      rgba(142,42,58,0.20) 0%,
      rgba(142,42,58,0.04) 25%,
      rgba(42,48,67,0.10) 50%,
      rgba(63,160,85,0.04) 75%,
      rgba(63,160,85,0.20) 100%);
  border: 1px solid var(--castle-stone-light);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 12px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* ── Pole (side anchor) ── */
.rt-tug-pole {
  position: relative;
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 2;
  pointer-events: none;
}

.rt-tug-pole.rt-tug-bear {
  border-right: 1px solid rgba(196,63,84,0.2);
  background: linear-gradient(90deg, rgba(142,42,58,0.15), transparent);
}

.rt-tug-pole.rt-tug-bull {
  border-left: 1px solid rgba(63,160,85,0.2);
  background: linear-gradient(270deg, rgba(63,160,85,0.15), transparent);
}

.rt-tug-pole-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-tug-pole-icon svg {
  width: 60%;
  height: 60%;
  display: block;
}

.rt-tug-bear .rt-tug-pole-icon {
  border-color: var(--castle-crimson-bright);
  background: radial-gradient(circle at 30% 25%, #5a1a2a, #2e1018);
  box-shadow:
    0 0 12px rgba(196,63,84,0.4),
    0 4px 12px rgba(0,0,0,0.5);
}

.rt-tug-bull .rt-tug-pole-icon {
  border-color: #3fa055;
  background: radial-gradient(circle at 30% 25%, #2a4a32, #0e1a12);
  box-shadow:
    0 0 12px rgba(63,160,85,0.4),
    0 4px 12px rgba(0,0,0,0.5);
}

.rt-tug-bear .rt-tug-pole-icon svg { stroke: var(--castle-crimson-bright); }
.rt-tug-bull .rt-tug-pole-icon svg { stroke: #6fdf7c; }

.rt-tug-pole-name {
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  text-align: center;
  line-height: 1.2;
}

.rt-tug-bear .rt-tug-pole-name { color: var(--castle-crimson-bright); }
.rt-tug-bull .rt-tug-pole-name { color: #6fdf7c; }

.rt-tug-pole-label {
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.rt-tug-pole-strength {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  margin-top: 2px;
}

.rt-tug-bear .rt-tug-pole-strength { color: var(--castle-crimson-bright); }
.rt-tug-bull .rt-tug-pole-strength { color: #6fdf7c; }

/* ── The track (center battle ground) ── */
.rt-tug-track {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Center mark */
.rt-tug-center-mark {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(217,179,90,0.25);
  z-index: 0;
}

/* Tick marks */
.rt-tug-tick {
  position: absolute;
  top: 50%;
  width: 1px;
  height: 8px;
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%);
  z-index: 0;
}

.rt-tug-tick-b3 { left: 15%; }
.rt-tug-tick-b2 { left: 27%; }
.rt-tug-tick-b1 { left: 39%; }
.rt-tug-tick-n  { left: 50%; height: 14px; background: rgba(217,179,90,0.35); }
.rt-tug-tick-u1 { left: 61%; }
.rt-tug-tick-u2 { left: 73%; }
.rt-tug-tick-u3 { left: 85%; }

/* ── Rope / tension lines ── */
.rt-tug-rope-left,
.rt-tug-rope-right {
  position: absolute;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  z-index: 1;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rt-tug-rope-left {
  left: 0;
  width: 50%;
  background: linear-gradient(90deg,
    var(--castle-crimson-bright) 0%,
    var(--castle-crimson) 60%,
    var(--castle-stone) 100%);
  border-radius: 0 2px 2px 0;
}

.rt-tug-rope-right {
  right: 0;
  width: 50%;
  background: linear-gradient(90deg,
    var(--castle-stone) 0%,
    #3fa055 40%,
    #6fdf7c 100%);
  border-radius: 2px 0 0 2px;
}

/* ── Indicator (the knot) ── */
.rt-tug-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2c761 0%, #d9b35a 40%, #b89243 80%, #6e4e1a 100%);
  border: 2px solid var(--castle-gold-bright);
  box-shadow:
    0 0 0 3px rgba(242,199,97,0.3),
    0 0 20px rgba(242,199,97,0.5),
    0 0 40px rgba(242,199,97,0.2),
    0 8px 20px rgba(0,0,0,0.7);
  z-index: 3;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner highlight */
.rt-tug-indicator::after {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 11px; bottom: 14px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.5) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── Tug pull effect arrows ── */
.rt-tug-pull-left,
.rt-tug-pull-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.rt-tug-pull-left {
  left: 8px;
  background:
    conic-gradient(from 90deg, transparent 0deg, rgba(196,63,84,0.5) 90deg, transparent 180deg);
  border-radius: 50% 0 0 50%;
}

.rt-tug-pull-right {
  right: 8px;
  background:
    conic-gradient(from 270deg, transparent 0deg, rgba(63,160,85,0.5) 90deg, transparent 180deg);
  border-radius: 0 50% 50% 0;
}

/* ── Track states ── */
.rt-tug-track.bull-leaning { background: radial-gradient(ellipse at 80% 50%, rgba(63,160,85,0.15), transparent 70%); }
.rt-tug-track.bear-leaning { background: radial-gradient(ellipse at 20% 50%, rgba(196,63,84,0.15), transparent 70%); }
.rt-tug-track.deadlocked { background: radial-gradient(ellipse at 50% 50%, rgba(217,179,90,0.1), transparent 70%); }

/* ── Settling animation (pre-snap) ── */
@keyframes tug-settling-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  25% { transform: translate(-52%, -50%); }
  75% { transform: translate(-48%, -50%); }
}

.rt-tug-indicator.settling {
  animation: tug-settling-shake 0.25s ease-in-out infinite;
}

/* ── Settled lock / snap ── */
@keyframes tug-slam {
  0%   { transform: translate(-50%, -50%) scale(1); }
  15%  { transform: translate(-50%, -50%) scale(1.5); }
  25%  { transform: translate(-50%, -50%) scale(0.8); }
  35%  { transform: translate(-50%, -50%) scale(1.2); }
  50%  { transform: translate(-50%, -50%) scale(0.9); }
  65%  { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.rt-tug-indicator.settled {
  animation: tug-slam 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.rt-tug-indicator.settled {
  box-shadow:
    0 0 0 4px rgba(242,199,97,0.6),
    0 0 30px rgba(242,199,97,0.9),
    0 0 60px rgba(242,199,97,0.5),
    0 8px 20px rgba(0,0,0,0.7) !important;
  border-color: #fff !important;
}

/* ── Verdict reached: full track glow ── */
.rt-tug-track.verdict-reached {
  box-shadow: inset 0 0 20px rgba(242,199,97,0.2);
}

/* ── Bull / Bear territory emphasis ── */
.rt-tug-bear { border-right: 1px solid rgba(196,63,84,0.3); }
.rt-tug-bull { border-left: 1px solid rgba(63,160,85,0.3); }

/* ============================================================
   CONSENSUS RING — Per-Analyst Stance Visualization
   (Semi-circular SVG arc below the tug-of-war meter)
   ============================================================ */

.rt-consensus-ring {
  position: relative; z-index: 3;
  margin: -10px 22px 10px;
  max-width: 800px;
}

.rt-ring-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
}

/* ── Arc track (dark background ring) ── */
.rt-ring-track {
  opacity: 0.5;
  transition: stroke 0.5s ease;
}

/* ── Arc glow fill (gradient arc, animated via stroke-dashoffset) ── */
.rt-ring-glow {
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ── Tilt needle (diamond pointer at cumulative tilt) ── */
.rt-ring-needle {
  filter:
    drop-shadow(0 0 10px rgba(242,199,97,0.7))
    drop-shadow(0 0 20px rgba(242,199,97,0.3));
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ── Analyst dots ── */
.rt-ring-dot {
  transition:
    cx 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
    cy 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
    r 0.4s ease,
    opacity 0.4s ease,
    fill 0.3s ease;
}

/* Dot entrance animation */
@keyframes dot-enter {
  0%   { r: 0; opacity: 0; }
  60%  { opacity: 0.9; }
  100% { opacity: 1; }
}
.rt-ring-dot.entering {
  animation: dot-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Dot highlight pulse — when a dot was just updated */
@keyframes dot-pulse {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.8); }
  100% { filter: brightness(1); }
}
.rt-ring-dot.highlight {
  animation: dot-pulse 0.6s ease-out;
}

/* ── Labels ── */
.rt-ring-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--text-dim);
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Verdict mode ring accent ── */
.rt-consensus-ring.verdict-mode .rt-ring-track {
  stroke: var(--castle-gold-soft);
}
.rt-consensus-ring.verdict-mode .rt-ring-needle {
  filter:
    drop-shadow(0 0 20px rgba(242,199,97,0.9))
    drop-shadow(0 0 40px rgba(242,199,97,0.5));
}

/* ===== Mobile / Tablet — Consensus Ring ===== */

/* Mobile fallback dot row (hidden on desktop) */
.rt-ring-mobile {
  display: none;
}

@media (max-width: 899px) and (min-width: 600px) {
  .rt-consensus-ring {
    margin: -15px 16px 8px;
  }
  .rt-ring-svg {
    max-height: 130px;
  }
  .rt-ring-label {
    font-size: 9px;
  }
}

@media (max-width: 599px) {
  .rt-consensus-ring {
    margin: 0 12px 10px;
  }

  /* Hide SVG, show mobile fallback */
  .rt-ring-svg {
    display: none;
  }
  .rt-ring-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  /* Mobile dot row */
  .rt-ring-mobile-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    min-height: 28px;
    width: 100%;
    flex-wrap: wrap;
  }
  .rt-ring-mobile-dot {
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background-color: var(--dot-color, var(--castle-stone-light));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease, height 0.3s ease;
  }
  .rt-ring-mobile-dot::after {
    content: attr(data-analyst);
    position: absolute;
    bottom: -16px;
    font-size: 7px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
  }
  .rt-ring-mobile-dot:active::after {
    opacity: 1;
  }

  /* Mobile gradient bar */
  .rt-ring-mobile-bar {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg,
      var(--castle-crimson-bright),
      var(--castle-crimson),
      var(--castle-stone-light),
      var(--castle-gold-soft),
      var(--castle-gold-bright));
    position: relative;
    border: 1px solid var(--castle-stone-light);
  }
  .rt-ring-mobile-needle {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: var(--castle-gold-bright);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(242,199,97,0.6);
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  }
}

/* ===== Mobile responsiveness ===== */
@media (max-width: 600px) {
  .rt-tug-meter {
    height: 56px;
    margin: 0 12px 12px;
  }

  .rt-tug-pole {
    flex: 0 0 56px;
  }

  .rt-tug-pole-icon {
    width: 28px;
    height: 28px;
  }

  .rt-tug-pole-name {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .rt-tug-pole-label {
    font-size: 6px;
  }

  .rt-tug-pole-strength {
    font-size: 13px;
  }

  .rt-tug-indicator {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   CINEMATIC VERDICT REVEAL
   ============================================================ */

/* ── Scales of Justice ── */
.rt-scales {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  width: 140px;
  height: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.rt-scales.active {
  opacity: 1;
}
.rt-scales-beam {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: linear-gradient(90deg, var(--castle-crimson-bright), var(--castle-gold-bright), var(--castle-gold-bright), #3fa055);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(242,199,97,0.5);
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.rt-scales-pivot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 26px;
  background: linear-gradient(180deg, var(--castle-gold-bright), var(--castle-gold-soft));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(242,199,97,0.6);
}
.rt-scales-pan {
  position: absolute;
  bottom: 0;
  width: 36px;
  height: 18px;
  border-radius: 0 0 18px 18px;
  border: 2px solid var(--castle-gold-soft);
  border-top: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(242,199,97,0.15), transparent 60%);
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.rt-scales-pan-left {
  left: 14px;
  border-color: var(--castle-crimson-bright);
  background: radial-gradient(ellipse at 50% 100%, rgba(196,63,84,0.15), transparent 60%);
}
.rt-scales-pan-right {
  right: 14px;
  border-color: #3fa055;
  background: radial-gradient(ellipse at 50% 100%, rgba(63,160,85,0.15), transparent 60%);
}
.rt-scales-pan-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.rt-scales-pan-left .rt-scales-pan-label { color: var(--castle-crimson-bright); }
.rt-scales-pan-right .rt-scales-pan-label { color: #6fdf7c; }

/* Scales tipping states */
@keyframes scales-tip-buy {
  0%   { transform: rotate(0deg); }
  40%  { transform: rotate(-3deg); }
  60%  { transform: rotate(6deg); }
  80%  { transform: rotate(-2deg); }
  100% { transform: rotate(3deg); }
}
@keyframes scales-tip-sell {
  0%   { transform: rotate(0deg); }
  40%  { transform: rotate(3deg); }
  60%  { transform: rotate(-6deg); }
  80%  { transform: rotate(2deg); }
  100% { transform: rotate(-3deg); }
}
@keyframes scales-tip-hold {
  0%   { transform: rotate(-2deg); }
  30%  { transform: rotate(2deg); }
  55%  { transform: rotate(-1deg); }
  75%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
.rt-scales.buy .rt-scales-beam,
.rt-scales.buy .rt-scales-pan-left,
.rt-scales.buy .rt-scales-pan-right {
  animation: scales-tip-buy 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.rt-scales.sell .rt-scales-beam,
.rt-scales.sell .rt-scales-pan-left,
.rt-scales.sell .rt-scales-pan-right {
  animation: scales-tip-sell 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.rt-scales.hold .rt-scales-beam,
.rt-scales.hold .rt-scales-pan-left,
.rt-scales.hold .rt-scales-pan-right {
  animation: scales-tip-hold 1.8s ease-out forwards;
}

/* BUY: left pan rises, right pan drops */
.rt-scales.buy .rt-scales-pan-left  { transform: translateY(-8px); }
.rt-scales.buy .rt-scales-pan-right { transform: translateY(4px); }

/* SELL: right pan rises, left pan drops */
.rt-scales.sell .rt-scales-pan-left  { transform: translateY(4px); }
.rt-scales.sell .rt-scales-pan-right { transform: translateY(-8px); }

/* HOLD: balanced */
.rt-scales.hold .rt-scales-pan-left  { transform: translateY(0); }
.rt-scales.hold .rt-scales-pan-right { transform: translateY(0); }

/* ── Wax Seal Stamp ── */
@keyframes seal-stamp {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-60deg); opacity: 0; }
  35%  { transform: translate(-50%, -50%) scale(1.4) rotate(5deg); opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(0.85) rotate(-2deg); opacity: 1; }
  65%  { transform: translate(-50%, -50%) scale(1.1) rotate(1deg); opacity: 1; }
  80%  { transform: translate(-50%, -50%) scale(0.95) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes seal-glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(242,199,97,0.4), 0 0 30px rgba(242,199,97,0.2); }
  50%      { box-shadow: 0 0 24px rgba(242,199,97,0.7), 0 0 50px rgba(242,199,97,0.4); }
}
.rt-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 13;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.rt-seal.active {
  animation: seal-stamp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.rt-seal::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.35);
}
.rt-seal::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
}
.rt-seal-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* Seal palettes */
.rt-seal.buy {
  background: radial-gradient(circle at 35% 30%, #6fdf7c 0%, #3fa055 50%, #1a4a22 100%);
  border: 3px solid #3fa055;
  box-shadow: 0 0 12px rgba(63,160,85,0.4), 0 0 30px rgba(63,160,85,0.2);
}
.rt-seal.buy.active { animation: seal-stamp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, seal-glow-pulse 2s ease-in-out 0.8s infinite; }
.rt-seal.buy .rt-seal-inner { color: #d4f0d8; }

.rt-seal.sell {
  background: radial-gradient(circle at 35% 30%, #f5a0ac 0%, var(--castle-crimson-bright) 50%, #5a1822 100%);
  border: 3px solid var(--castle-crimson-bright);
  box-shadow: 0 0 12px rgba(196,63,84,0.4), 0 0 30px rgba(196,63,84,0.2);
}
.rt-seal.sell.active { animation: seal-stamp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, seal-glow-pulse 2s ease-in-out 0.8s infinite; }
.rt-seal.sell .rt-seal-inner { color: #f5d0d6; }

.rt-seal.hold {
  background: radial-gradient(circle at 35% 30%, #f2c761 0%, var(--castle-gold-soft) 50%, #6e4e1a 100%);
  border: 3px solid var(--castle-gold-bright);
  box-shadow: 0 0 12px rgba(242,199,97,0.4), 0 0 30px rgba(242,199,97,0.2);
}
.rt-seal.hold.active { animation: seal-stamp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, seal-glow-pulse 2s ease-in-out 0.8s infinite; }
.rt-seal.hold .rt-seal-inner { color: #1a1408; }

/* ── Ember / Torch-flare Particle Field ── */
.rt-ember-field {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.rt-ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--castle-candle);
  box-shadow: 0 0 6px var(--castle-candle-glow), 0 0 12px rgba(255,160,40,0.4);
  opacity: 0;
  animation: none;
}
.rt-ember.active {
  animation: ember-rise var(--ember-duration, 2.5s) ease-out forwards;
  animation-delay: var(--ember-delay, 0s);
}
@keyframes ember-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  10%  { opacity: 1; transform: translate(var(--ember-drift-x, 0), -10px) scale(1); }
  40%  { opacity: 0.8; transform: translate(calc(var(--ember-drift-x, 0) * 2), -60px) scale(0.8); }
  70%  { opacity: 0.35; transform: translate(calc(var(--ember-drift-x, 0) * 3.5), -110px) scale(0.5); }
  100% { opacity: 0; transform: translate(calc(var(--ember-drift-x, 0) * 6), -180px) scale(0.15); }
}

/* ── Verdict Beat (audio sync hook) ── */
@keyframes verdict-beat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,199,97,0.8); }
  70%  { box-shadow: 0 0 0 30px rgba(242,199,97,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,199,97,0); }
}
.rt-verdict-beat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  z-index: 100;
  pointer-events: none;
}
.rt-verdict-beat.fire {
  animation: verdict-beat-pulse 0.8s ease-out forwards;
}

/* ── Verdict banner upgrade: glow pulse on show ── */
@keyframes verdict-banner-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.4) inset, 0 16px 38px rgba(0,0,0,0.85), 0 0 70px rgba(242,199,97,0.55), 0 0 140px rgba(242,199,97,0.18); }
  50%      { box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.4) inset, 0 16px 38px rgba(0,0,0,0.85), 0 0 90px rgba(242,199,97,0.8), 0 0 200px rgba(242,199,97,0.35); }
}
.rt-verdict-banner.show {
  animation: verdictBannerFloat 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), verdict-banner-glow 2s ease-in-out 0.7s infinite;
}

/* ── Torch flare overlay ── */
@keyframes torch-flare {
  0%   { opacity: 0; transform: scale(0.8); }
  20%  { opacity: 0.6; transform: scale(1.1); }
  40%  { opacity: 0.25; transform: scale(0.95); }
  60%  { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(0.9); }
}
.rt-torch-flare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 25%, rgba(255,160,40,0.3) 0%, rgba(255,200,105,0.1) 30%, transparent 70%);
  opacity: 0;
}
.rt-torch-flare.fire {
  animation: torch-flare 1.5s ease-out forwards;
}

/* ============================================================
   REDUCED-MOTION FALLBACK
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rt-seat,
  .rt-seat .rt-portrait,
  .rt-seat.speaking .rt-portrait,
  .rt-seat.thinking .rt-portrait,
  .rt-bubble,
  .rt-bubble.visible,
  .rt-bubble.emphatic,
  .rt-bubble.bull,
  .rt-bubble.bear,
  .rt-bubble.rebuttal.shake,
  .rt-candle::after,
  .rt-candle.igniting::after,
  .rt-candle.dimmed-candle::after,
  .rt-candle.lit::after,
  .rt-verdict-banner.show,
  .rt-stage.verdict-mode,
  .rt-crest,
  .rt-tug-indicator,
  .rt-stage,
  .rt-seat.entering,
  .rt-seat.speaking .rt-portrait::after,
  .rt-seat.blinking .rt-portrait img,
  .rt-portrait img,
  .rt-status.deliberating,
  .rt-status.deliberating::after,
  #rt-live-dot.deliberating,
  .rt-summoning-overlay {
    animation: none !important;
    transition: none !important;
  }

  .rt-seat.dimmed-pending {
    transition: none !important;
  }

  /* Static deliberating state: show status text without animation */
  .rt-status.deliberating {
    opacity: 1;
    color: var(--castle-gold-bright);
  }

  /* Candles show lit immediately — no ceremony sequence */
  .rt-candle.dimmed-candle::after {
    opacity: 0.98;
    box-shadow: 0 0 12px var(--castle-candle-glow), 0 0 24px rgba(255,200,105,0.25);
  }

  /* Overlay shows then fades instantly */
  .rt-summoning-overlay {
    opacity: 1;
  }
  .rt-summoning-overlay.fade-out {
    opacity: 0;
  }

  .rt-seat.speaking .comic-panel {
    transform: scale(1.08);
    border-color: var(--castle-gold-bright);
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.3),
      0 0 0 2px rgba(242,199,97,0.25),
      0 0 12px rgba(242,199,97,0.3);
  }

  .rt-seat.thinking .comic-panel {
    border-color: var(--castle-gold-soft);
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.3),
      0 0 0 2px rgba(217,179,90,0.2);
  }

  .rt-bubble.visible {
    opacity: 1;
    transform: scale(1);
  }

  .rt-verdict-banner.show {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  /* Cinematic verdict: disable animations, show static state */
  .rt-scales { transition: none !important; }
  .rt-scales.active { opacity: 1; }
  .rt-scales .rt-scales-beam,
  .rt-scales .rt-scales-pan-left,
  .rt-scales .rt-scales-pan-right {
    animation: none !important;
    transition: none !important;
  }
  .rt-seal { transition: none !important; }
  .rt-seal.active {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  .rt-ember,
  .rt-ember.active {
    animation: none !important;
    opacity: 0;
  }
  .rt-torch-flare { transition: none !important; opacity: 0; }
  .rt-torch-flare.fire { animation: none !important; opacity: 0; }
  .rt-verdict-beat.fire { animation: none !important; }
  .rt-verdict-banner.show {
    animation: none !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.4) inset, 0 16px 38px rgba(0,0,0,0.85), 0 0 70px rgba(242,199,97,0.55);
  }

  .rt-candle::after { opacity: 0.95; }
  .rt-tug-indicator { transition: none; }

  /* Disable candle intensity changes, keep uniform */
  .rt-stage.candles-calm .rt-candle::after,
  .rt-stage.candles-heated .rt-candle::after,
  .rt-stage.candles-verdict .rt-candle::after,
  .rt-stage.candles-verdict .rt-candle[data-candle="0"]::after,
  .rt-stage.candles-victory .rt-candle::after {
    animation: none !important;
    opacity: 0.95;
    filter: brightness(1);
    transform: translateX(-50%) scale(1, 1);
    box-shadow: 0 0 12px var(--castle-candle-glow), 0 0 24px rgba(255,200,105,0.25);
  }

  .rt-seat.entering {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .rt-stage {
    opacity: 1;
    filter: brightness(1);
  }

  .rt-bubble.bull.visible,
  .rt-bubble.bear.visible,
  .rt-bubble.emphatic.visible {
    opacity: 1;
    transform: scale(1);
  }

  .rt-tug-indicator {
    transition: none;
  }

  .rt-tug-indicator.settling,
  .rt-tug-indicator.settled {
    animation: none;
  }

  .rt-tug-indicator.settled {
    transform: translate(-50%, -50%) scale(1);
  }

  .rt-tug-rope-left,
  .rt-tug-rope-right {
    transition: none;
  }

  .rt-tug-pull-left,
  .rt-tug-pull-right {
    transition: none;
    opacity: 0;
  }

  /* Consensus ring: snap, don't drift */
  .rt-ring-dot,
  .rt-ring-needle,
  .rt-ring-glow,
  .rt-ring-track {
    transition: none !important;
  }
  .rt-ring-dot.entering {
    animation: none !important;
    opacity: 1;
  }
  .rt-ring-dot.highlight {
    animation: none !important;
  }
  .rt-ring-mobile-needle {
    transition: none !important;
  }
}
