/* Vaelith Stream Overlay — OBS Browser Source
   Transparent background, all elements positioned absolutely.
   Designed for 1920x1080 browser source. */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #050403;
  overflow: hidden;
  width: 1920px;
  height: 1080px;
  font-family: 'Share Tech Mono', monospace;
  color: #e0d6c2;
}

/* Background art — deepest layer, subtle presence */
#bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  z-index: -1;
  pointer-events: none;
  background-image: url('img/bg_thalline.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 2s ease;
}

/* Ambient particle canvas — sits behind all UI, above background */
#ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   RARITY / PHILOSOPHY COLOR SYSTEM
   Warm = native/common, Cool = alien/rare
   ======================================== */

:root {
  /* Rarity colors */
  --sulphuric: #f5c842;
  --vitreous: #e8852e;
  --oxidic: #d43535;
  --carbonic: #2ecc71;
  --abyssal: #3498db;

  /* Philosophy */
  --native-glow: #f5c842;
  --carbon-glow: #2ecc71;

  /* Mood colors */
  --mood-charged: #f5c842;
  --mood-oscillating: #b8a060;
  --mood-reactive: #d43535;
  --mood-inert: #555555;
  --mood-fractured: #8b45a6;

  /* UI chrome */
  --bg-dark: rgba(10, 8, 6, 0.85);
  --bg-panel: rgba(20, 16, 12, 0.75);
  --border-dim: rgba(200, 180, 140, 0.2);
  --border-bright: rgba(245, 200, 66, 0.5);
  --text-primary: #e0d6c2;
  --text-dim: #8a7e6a;
  --text-bright: #fff5e0;
}

/* ========================================
   HUD — Top Left
   ======================================== */

#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

#hud-mood {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.8s ease;
}

#mood-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px currentColor);
}

#hud-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#hud-stats > div {
  padding: 4px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
}

#hud-stats span {
  color: var(--text-bright);
  font-weight: bold;
}

#hud-flare {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#flare-bar {
  flex: 1;
  height: 6px;
  background: rgba(100, 80, 50, 0.3);
  border-radius: 3px;
  overflow: hidden;
  min-width: 100px;
}

#flare-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mood-charged), #ff4500);
  border-radius: 3px;
  transition: width 1s ease;
}

/* ========================================
   PULSE HEARTBEAT + RING TIMER — Top Center
   ======================================== */

#pulse-container {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  z-index: 10;
}

#pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
}

#pulse-ring .ring-track {
  fill: none;
  stroke: rgba(200, 180, 140, 0.12);
  stroke-width: 2.5;
}

#ring-fill {
  fill: none;
  stroke: rgba(245, 200, 66, 0.5);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;  /* 2 * PI * 19 */
  stroke-dashoffset: 119.38; /* starts empty */
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

#ring-fill.ring-urgent {
  stroke: rgba(245, 200, 66, 0.85);
  filter: drop-shadow(0 0 4px rgba(245, 200, 66, 0.4));
}

#ring-fill.ring-pulse-flash {
  stroke: rgba(245, 200, 66, 1);
  filter: drop-shadow(0 0 12px rgba(245, 200, 66, 0.6)) drop-shadow(0 0 24px rgba(245, 200, 66, 0.3));
  transition: none;
}

#pulse-beat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sulphuric);
  opacity: 0.3;
  transition: opacity 0.1s;
}

#pulse-beat.active {
  opacity: 1;
  box-shadow: 0 0 16px var(--sulphuric), 0 0 32px rgba(245, 200, 66, 0.3);
  animation: pulse-glow 1.5s ease-out;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
}

/* ========================================
   EVENT FEED — Right Side
   ======================================== */

#event-feed {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 420px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  z-index: 10;
}

.event-card {
  padding: 10px 14px;
  background: var(--bg-dark);
  border-left: 3px solid var(--border-dim);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  line-height: 1.4;
  animation: card-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.event-card.fade-out {
  opacity: 0;
  transform: translateX(40px);
}

@keyframes card-in {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Event type borders */
.event-card.kill       { border-left-color: #d43535; }
.event-card.strike     { border-left-color: #e8852e; }
.event-card.death      { border-left-color: #8b45a6; }
.event-card.title      { border-left-color: #f5c842; }
.event-card.forge      { border-left-color: #e8852e; }
.event-card.item_drop  { border-left-color: var(--sulphuric); }
.event-card.discovery  { border-left-color: #3498db; }
.event-card.explore    { border-left-color: #7ec8a0; }
.event-card.sprout     { border-left-color: #7ec8a0; }
.event-card.bond       { border-left-color: #e88ee8; }
.event-card.election   { border-left-color: #b8a060; }
.event-card.world_event { border-left-color: #f5c842; }
.event-card.carbon_decay { border-left-color: #2ecc71; }
.event-card.purify     { border-left-color: #3498db; }
.event-card.upgrade    { border-left-color: #e8852e; }
.event-card.salvage    { border-left-color: #8a7e6a; }
.event-card.siege_complete { border-left-color: #d43535; }
.event-card.crime      { border-left-color: #8b45a6; }
.event-card.crime_fail { border-left-color: #5a2d6a; }
.event-card.trade      { border-left-color: #f5c842; }
.event-card.wager      { border-left-color: #e88ee8; }
.event-card.decree     { border-left-color: #7e9cd8; }
.event-card.life_event { border-left-color: #b8a060; }

/* Event card inner elements */
.event-card .event-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* District category badge */
.event-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
}

.rank-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-right: 3px;
  text-shadow: 0 0 6px currentColor;
}

.district-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 1px 6px;
  border: 1px solid;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.event-card .event-body {
  color: var(--text-primary);
}

.event-card .player-name {
  color: var(--text-bright);
  font-weight: bold;
}

.event-card .damage {
  color: #d43535;
  font-weight: bold;
}

.event-card .crit {
  color: #ff6b6b;
  font-weight: bold;
  text-transform: uppercase;
}

/* Rarity text colors */
.rarity-sulphuric  { color: var(--sulphuric); }
.rarity-vitreous   { color: var(--vitreous); }
.rarity-oxidic      { color: var(--oxidic); }
.rarity-carbonic    { color: var(--carbonic); }
.rarity-abyssal     { color: var(--abyssal); }

.philosophy-native { color: var(--native-glow); }
.philosophy-carbon { color: var(--carbon-glow); }

/* Crime / wager text */
.crime-detail { color: #8b45a6; font-weight: bold; }
.crime-fail   { color: #5a2d6a; font-style: italic; }
.wager-win    { color: #f5c842; font-weight: bold; }
.wager-lose   { color: var(--text-dim); font-style: italic; }

/* Strain icon in event cards and splashes */
.strain-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 4px rgba(200, 180, 140, 0.3));
}

.strain-icon.crystallier { background-image: url('img/strain_crystallier.png'); }
.strain-icon.conduit     { background-image: url('img/strain_conduit.png'); }
.strain-icon.shard        { background-image: url('img/strain_shard.png'); }
.strain-icon.catalyst     { background-image: url('img/strain_catalyst.png'); }
.strain-icon.corrosion    { background-image: url('img/strain_corrosion.png'); }
.strain-icon.signal       { background-image: url('img/strain_signal.png'); }

/* Larger strain icon for splash cards */
.splash-card .strain-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(200, 180, 140, 0.4));
}

/* Growth stage images */
.stage-img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 8px auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(245, 200, 66, 0.3));
}

.splash-card .stage-img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 0 16px rgba(245, 200, 66, 0.4));
}

/* Item name styling in event cards */
.item-name {
  font-weight: bold;
  text-shadow: 0 0 8px currentColor;
}

.item-name.sulphuric  { color: var(--sulphuric); }
.item-name.vitreous   { color: var(--vitreous); }
.item-name.oxidic     { color: var(--oxidic); }
.item-name.carbonic   { color: var(--carbonic); text-shadow: 0 0 12px var(--carbonic); }
.item-name.abyssal    { color: var(--abyssal); text-shadow: 0 0 16px var(--abyssal), 0 0 30px rgba(52, 152, 219, 0.3); }

/* ========================================
   SPLASH ZONE — Center (big events)
   ======================================== */

#splash-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 20;
  pointer-events: none;
}

.splash-card {
  padding: 16px 32px;
  background: var(--bg-dark);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  animation: splash-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 600px;
}

.splash-card.fade-out {
  animation: splash-out 0.8s ease forwards;
}

@keyframes splash-in {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes splash-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.1) translateY(-20px); }
}

.splash-card .splash-type {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.splash-card .splash-body {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.3);
}

/* Kill splash */
.splash-card.kill { border-color: #d43535; }
.splash-card.kill .splash-body { color: #ff6b6b; text-shadow: 0 0 20px rgba(212, 53, 53, 0.4); }

/* Title splash */
.splash-card.title { border-color: var(--sulphuric); }
.splash-card.title .splash-body { color: var(--sulphuric); }

/* Death splash */
.splash-card.death { border-color: #8b45a6; }
.splash-card.death .splash-body { color: #c77dff; text-shadow: 0 0 20px rgba(139, 69, 166, 0.4); }

/* World event splash */
.splash-card.world_event { border-color: var(--sulphuric); }

/* Sprout splash */
.splash-card.sprout { border-color: #7ec8a0; }
.splash-card.sprout .splash-body { color: #7ec8a0; }

/* ========================================
   MOOD-SPECIFIC EFFECTS
   ======================================== */

/* Charged mood — warm glow on HUD */
body.mood-charged #hud-mood {
  border-color: var(--mood-charged);
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.2);
  color: var(--mood-charged);
}

body.mood-oscillating #hud-mood {
  border-color: var(--mood-oscillating);
  color: var(--mood-oscillating);
  animation: oscillate 2s ease-in-out infinite;
}

@keyframes oscillate {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

body.mood-reactive #hud-mood {
  border-color: var(--mood-reactive);
  color: var(--mood-reactive);
  box-shadow: 0 0 12px rgba(212, 53, 53, 0.2);
}

body.mood-inert #hud-mood {
  border-color: var(--mood-inert);
  color: var(--mood-inert);
  opacity: 0.7;
}

body.mood-fractured #hud-mood {
  border-color: var(--mood-fractured);
  color: var(--mood-fractured);
  box-shadow: 0 0 15px rgba(139, 69, 166, 0.3);
  animation: fracture-shake 0.15s infinite;
}

@keyframes fracture-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

/* ========================================
   FIELD GUIDE CTA — bottom-center call-to-action
   Boxless crystalline composition: floating text + corner chevrons
   + scattered drifting facets + title shimmer + pulse-sync flare
   ======================================== */

#guide-cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  text-decoration: none;
  color: var(--sulphuric);
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  user-select: none;
  padding: 24px 64px;
  /* Soft radial aura behind text — fades to transparent at edges,
     gives just enough legibility without feeling boxed-in */
  background: radial-gradient(
    ellipse at center,
    rgba(245, 200, 66, 0.10) 0%,
    rgba(232, 133, 46, 0.06) 35%,
    transparent 70%
  );
  /* Subtle pulse on the aura, slow and atmospheric */
  animation: cta-aura 5s ease-in-out infinite;
}

@keyframes cta-aura {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

/* === CORNER CHEVRONS (light-frame, no box) === */
.guide-cta-chevron {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0.85;
  /* Diagonal gradient line from a corner inward */
}

.guide-cta-chevron::before,
.guide-cta-chevron::after {
  content: '';
  position: absolute;
  background: linear-gradient(to right, var(--sulphuric), transparent);
  filter: drop-shadow(0 0 4px var(--sulphuric));
}

/* TL: horizontal line + vertical line forming an "L" facing inward */
.guide-cta-chevron.tl { top: 0; left: 0; }
.guide-cta-chevron.tl::before { top: 0; left: 0; width: 28px; height: 1.5px; }
.guide-cta-chevron.tl::after  { top: 0; left: 0; width: 1.5px; height: 28px; background: linear-gradient(to bottom, var(--sulphuric), transparent); }

.guide-cta-chevron.tr { top: 0; right: 0; transform: scaleX(-1); }
.guide-cta-chevron.tr::before { top: 0; left: 0; width: 28px; height: 1.5px; }
.guide-cta-chevron.tr::after  { top: 0; left: 0; width: 1.5px; height: 28px; background: linear-gradient(to bottom, var(--sulphuric), transparent); }

.guide-cta-chevron.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.guide-cta-chevron.bl::before { top: 0; left: 0; width: 28px; height: 1.5px; }
.guide-cta-chevron.bl::after  { top: 0; left: 0; width: 1.5px; height: 28px; background: linear-gradient(to bottom, var(--sulphuric), transparent); }

.guide-cta-chevron.br { bottom: 0; right: 0; transform: scale(-1, -1); }
.guide-cta-chevron.br::before { top: 0; left: 0; width: 28px; height: 1.5px; }
.guide-cta-chevron.br::after  { top: 0; left: 0; width: 1.5px; height: 28px; background: linear-gradient(to bottom, var(--sulphuric), transparent); }

/* === SCATTERED DRIFTING FACETS === */
.guide-cta-facet {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--sulphuric);
  transform: rotate(45deg);
  box-shadow:
    0 0 6px var(--sulphuric),
    0 0 12px rgba(245, 200, 66, 0.5);
  pointer-events: none;
  opacity: 0;
  animation: cta-facet ease-in-out infinite;
}

@keyframes cta-facet {
  0%   { opacity: 0; transform: rotate(45deg) scale(0.4) translateY(0); }
  20%  { opacity: 0.9; }
  50%  { opacity: 1; transform: rotate(225deg) scale(1.3) translateY(-4px); }
  80%  { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(405deg) scale(0.4) translateY(-12px); }
}

/* === TEXT BLOCK === */
.guide-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.guide-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  color: rgba(245, 200, 66, 0.7);
  text-transform: uppercase;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.8),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

/* === TITLE — with built-in shimmer sweep === */
.guide-cta-title {
  position: relative;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--sulphuric);
  /* Strong shadow for legibility against any background */
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.9),
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(245, 200, 66, 0.6),
    0 0 44px rgba(245, 200, 66, 0.3);
  animation: cta-text-glow 3s ease-in-out infinite;
}

/* Title shimmer — uses ::after to overlay a moving light gradient on the text.
   data-text attribute carries the same text so we can clip it to the letters. */
.guide-cta-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 245, 224, 0.95) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  pointer-events: none;
  animation: cta-title-shimmer 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes cta-title-shimmer {
  0%, 30%   { background-position: 200% 0; }
  60%, 100% { background-position: -100% 0; }
}

@keyframes cta-text-glow {
  0%, 100% {
    text-shadow:
      0 0 4px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 0 22px rgba(245, 200, 66, 0.6),
      0 0 44px rgba(245, 200, 66, 0.3);
  }
  50% {
    text-shadow:
      0 0 4px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 0 28px rgba(245, 200, 66, 0.85),
      0 0 56px rgba(245, 200, 66, 0.45),
      0 0 88px rgba(255, 245, 224, 0.2);
  }
}

/* === PULSE FLARE — fired by overlay.js when global Pulse heartbeat hits === */
.guide-cta-title.pulse-flare {
  animation: cta-pulse-flare 1.2s ease-out;
}

@keyframes cta-pulse-flare {
  0%   { text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 200, 66, 0.6); }
  15%  {
    text-shadow:
      0 0 4px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 0 36px rgba(255, 245, 224, 1),
      0 0 72px rgba(245, 200, 66, 0.7),
      0 0 120px rgba(245, 200, 66, 0.4);
    color: #fff5e0;
  }
  100% {
    text-shadow:
      0 0 4px rgba(0, 0, 0, 0.9),
      0 2px 4px rgba(0, 0, 0, 0.8),
      0 0 22px rgba(245, 200, 66, 0.6),
      0 0 44px rgba(245, 200, 66, 0.3);
    color: var(--sulphuric);
  }
}

.guide-cta-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(224, 214, 194, 0.7);
  text-transform: uppercase;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.85),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Hover (only meaningful when viewing the overlay in a browser, not OBS) */
#guide-cta:hover .guide-cta-title {
  color: #fff5e0;
}

#guide-cta:hover .guide-cta-chevron {
  opacity: 1;
}

/* Hide CTA when stream-state screen is visible */
.stream-state:not(.hidden) ~ #guide-cta { display: none; }

/* Stream State Screens (Offline / BRB) */

.stream-state {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 3, 0.85);
}

.stream-state.hidden {
  display: none;
}

.stream-state-content {
  text-align: center;
}

.stream-state-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 20px;
  color: #f5c842;
  text-shadow:
    0 0 40px rgba(245, 200, 66, 0.4),
    0 0 80px rgba(245, 200, 66, 0.15);
  margin-bottom: 24px;
}

.stream-state-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 12px;
  color: #e0d6c2;
  opacity: 0.9;
  margin-bottom: 16px;
}

.stream-state-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(224, 214, 194, 0.35);
  text-transform: uppercase;
}

/* Ending state gets a slow pulsing glow */
.stream-state.ending .stream-state-logo {
  animation: brb-pulse 3s ease-in-out infinite;
}

.stream-state.ending .stream-state-sub {
  color: #7ec8a0;
}

@keyframes brb-pulse {
  0%, 100% {
    text-shadow:
      0 0 40px rgba(245, 200, 66, 0.4),
      0 0 80px rgba(245, 200, 66, 0.15);
  }
  50% {
    text-shadow:
      0 0 60px rgba(245, 200, 66, 0.6),
      0 0 120px rgba(245, 200, 66, 0.3);
  }
}
