/* ============================================================
   TOON GODS — Cinematic Dashboard Stylesheet v2.0
   Full-world immersive trading experience
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  /* Brand Colors */
  --red:          #C8111A;
  --red-bright:   #FF3344;
  --red-glow:     rgba(200, 17, 26, 0.45);
  --gold:         #FFD700;
  --gold-bright:  #FFE566;
  --gold-glow:    rgba(255, 215, 0, 0.4);
  --win-green:    #39FF14;
  --loss-red:     #FF073A;
  --electric:     #BF5FFF;

  /* Sky / Background */
  --sky-deep:     #04000F;
  --sky-mid:      #0D001F;
  --sky-purple:   #18003A;
  --sky-red-low:  #2D0010;
  --ground-glow:  rgba(200, 17, 26, 0.2);

  /* Glass UI */
  --glass-bg:     rgba(8, 0, 20, 0.65);
  --glass-border: rgba(255, 215, 0, 0.25);
  --glass-glow:   rgba(255, 215, 0, 0.12);
  --glass-inner:  rgba(255, 255, 255, 0.04);

  /* Typography */
  --font-game:    'Press Start 2P', monospace;
  --font-display: 'Fredoka One', cursive;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Timing */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: var(--sky-deep);
  color: white;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-y: auto;
}

/* ── WORLD CONTAINER ────────────────────────────────────────── */
#world {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(
    175deg,
    var(--sky-deep) 0%,
    var(--sky-mid) 25%,
    var(--sky-purple) 55%,
    var(--sky-red-low) 80%,
    #3D0010 92%,
    #550015 100%
  );
}

/* ── PARALLAX LAYERS ────────────────────────────────────────── */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}

/* ── STAR CANVAS ────────────────────────────────────────────── */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── NEBULA ─────────────────────────────────────────────────── */
.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: nebula-breathe 8s ease-in-out infinite;
}
.nebula-1 {
  width: 600px; height: 400px;
  top: 5%; left: 10%;
  background: radial-gradient(ellipse, rgba(80,0,150,0.18) 0%, transparent 70%);
  animation-delay: 0s;
}
.nebula-2 {
  width: 800px; height: 500px;
  top: 10%; right: -100px;
  background: radial-gradient(ellipse, rgba(200,17,26,0.10) 0%, transparent 70%);
  animation-delay: -3s;
}
.nebula-3 {
  width: 500px; height: 350px;
  bottom: 20%; left: 35%;
  background: radial-gradient(ellipse, rgba(100,0,200,0.12) 0%, transparent 70%);
  animation-delay: -6s;
}
@keyframes nebula-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ── MOUNTAIN / ARCHITECTURE SVG ────────────────────────────── */
.mountain-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* ── CLOUD ISLANDS ───────────────────────────────────────────── */
.cloud-island {
  position: absolute;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 40% 30%, rgba(255,255,255,0.12), rgba(200,160,255,0.05) 60%, transparent);
  border: 1px solid rgba(255,255,255,0.06);
  filter: blur(1px);
}
.cloud-island-1 {
  width: 280px; height: 80px;
  top: 18%; left: 5%;
  animation: cloud-drift 28s linear infinite;
}
.cloud-island-2 {
  width: 360px; height: 100px;
  top: 28%; right: 8%;
  animation: cloud-drift 38s linear infinite reverse;
  animation-delay: -12s;
}
.cloud-island-3 {
  width: 220px; height: 65px;
  top: 12%; left: 42%;
  animation: cloud-drift 22s linear infinite;
  animation-delay: -8s;
}

.cloud-wisp {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  filter: blur(8px);
  animation: cloud-drift linear infinite;
}
.cloud-wisp-1 { width: 180px; height: 40px; top: 20%; left: -5%; animation-duration: 35s; }
.cloud-wisp-2 { width: 120px; height: 30px; top: 35%; right: -3%; animation-duration: 45s; animation-direction: reverse; }
.cloud-wisp-3 { width: 240px; height: 50px; top: 8%; left: 25%; animation-duration: 55s; animation-delay: -20s; }
.cloud-wisp-4 { width: 100px; height: 25px; top: 45%; left: 60%; animation-duration: 30s; animation-delay: -10s; }

@keyframes cloud-drift {
  from { transform: translateX(0px); }
  to   { transform: translateX(120px); }
}

/* ── MARBLE COLUMNS ──────────────────────────────────────────── */
.column {
  position: absolute;
  bottom: 0;
  width: 44px;
  background: linear-gradient(to right,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 30%,
    rgba(255,255,255,0.06) 60%,
    rgba(255,255,255,0.02) 100%
  );
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.column::before {
  content: '';
  position: absolute;
  top: 0; left: -6px; right: -6px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px 3px 0 0;
}
.column::after {
  content: '';
  position: absolute;
  bottom: 0; left: -8px; right: -8px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.col-left-1  { left: 4%;  height: 52vh; }
.col-left-2  { left: 11%; height: 38vh; }
.col-right-1 { right: 4%; height: 52vh; }
.col-right-2 { right: 11%; height: 38vh; }

.mid-arch {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 60px;
  border-top: 2px solid rgba(255,215,0,0.08);
  border-left: 2px solid rgba(255,215,0,0.06);
  border-right: 2px solid rgba(255,215,0,0.06);
  border-radius: 200px 200px 0 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,215,0,0.04), transparent 70%);
}

/* ── CHARACTER STAGE ─────────────────────────────────────────── */
#character-stage {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  z-index: 10;
}

/* ── GROUND PLATFORM ─────────────────────────────────────────── */
#ground-platform {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 60px;
  z-index: 1;
  overflow: hidden;
}

.ground-glow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 100%, var(--ground-glow) 0%, transparent 70%);
  pointer-events: none;
}

.ground-tiles {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0px,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 80px
    ),
    linear-gradient(
      to bottom,
      rgba(30, 0, 50, 0.8) 0%,
      rgba(50, 5, 20, 0.95) 100%
    );
}

.ground-trim {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--red) 15%,
    var(--gold) 30%,
    var(--gold) 50%,
    var(--gold) 70%,
    var(--red) 85%,
    transparent 100%
  );
  opacity: 0.6;
  box-shadow: 0 0 16px var(--gold-glow);
}

/* ── CHARACTERS ──────────────────────────────────────────────── */
.character {
  position: absolute;
  bottom: var(--char-bottom, 0px);
  left: 0;
  display: flex;
  align-items: flex-end;
  z-index: 20;
  will-change: transform;
  cursor: pointer;
}

.char-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s var(--ease-smooth);
}

.char-svg {
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
  transition: filter 0.3s ease;
}

/* Character drop shadow on ground */
.char-shadow-cast {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── CHARACTER ANIMATION STATES ─────────────────────────────── */

/* Idle: gentle breathing bob */
.char-idle .char-inner {
  animation: char-idle-bob 2.4s ease-in-out infinite;
}
@keyframes char-idle-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* Idle: occasional blink handled by SVG class */
.char-idle .char-svg {
  animation: char-blink 4s ease-in-out infinite;
}
@keyframes char-blink {
  0%, 90%, 100%  { transform: scaleY(1); }
  95%            { transform: scaleY(0.1); }
}

/* Walk states — smoother gait */
.char-walk-right .char-inner,
.char-walk-left  .char-inner {
  animation: char-walk-bob 0.4s ease-in-out infinite;
}
@keyframes char-walk-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25%       { transform: translateY(-3px) rotate(0.5deg); }
  75%       { transform: translateY(-3px) rotate(-0.5deg); }
}

/* Celebrate: jump! */
.char-celebrate .char-inner {
  animation: char-celebrate-jump 0.6s var(--ease-spring) infinite;
}
@keyframes char-celebrate-jump {
  0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
  30%       { transform: translateY(-28px) scale(1.15) rotate(-4deg); }
  60%       { transform: translateY(-20px) scale(1.12) rotate(3deg); }
}
.char-celebrate .char-svg {
  filter: drop-shadow(0 0 20px var(--gold)) drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

/* Sad: droop */
.char-sad .char-inner {
  animation: char-sad-slump 3s ease-in-out infinite;
}
@keyframes char-sad-slump {
  0%, 100% { transform: translateY(0px) rotate(-3deg); }
  50%       { transform: translateY(4px) rotate(-5deg); }
}
.char-sad .char-svg {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)) saturate(0.4) brightness(0.8);
}

/* Trading: lean forward and pulse */
.char-trading .char-inner {
  animation: char-trade-pulse 0.5s ease-in-out infinite;
}
@keyframes char-trade-pulse {
  0%, 100% { transform: rotate(5deg) scale(1); }
  50%       { transform: rotate(5deg) scale(1.08); }
}
.char-trading .char-svg {
  filter: drop-shadow(0 0 18px var(--red-bright)) drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

/* Meditate: gentle float (Oracle) */
.char-meditate .char-inner {
  animation: char-meditate-float 3.5s ease-in-out infinite;
}
@keyframes char-meditate-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.char-meditate .oracle-ball-group {
  animation: oracle-ball-glow 2.5s ease-in-out infinite;
}
@keyframes oracle-ball-glow {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 6px rgba(0,255,160,0.4)); }
  50%       { opacity: 1;    filter: drop-shadow(0 0 18px rgba(0,255,160,0.8)); }
}

/* Oracle pulse on signal change */
.oracle-pulse .char-svg {
  animation: oracle-signal-pulse 0.4s ease-out 4;
}
@keyframes oracle-signal-pulse {
  0%   { filter: drop-shadow(0 0 0px rgba(180,0,255,0)); }
  50%  { filter: drop-shadow(0 0 30px rgba(180,0,255,0.9)); }
  100% { filter: drop-shadow(0 0 0px rgba(180,0,255,0)); }
}

/* Hermes wings flutter */
#hermes .hermes-wing-left {
  animation: wing-flutter-l 0.25s ease-in-out infinite;
  transform-origin: right center;
}
#hermes .hermes-wing-right {
  animation: wing-flutter-r 0.25s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes wing-flutter-l {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50%       { transform: rotate(-12deg) scaleY(0.8); }
}
@keyframes wing-flutter-r {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50%       { transform: rotate(12deg) scaleY(0.8); }
}

/* Zeus bolt glow pulse */
.zeus-bolt {
  animation: bolt-glow 2s ease-in-out infinite;
}
@keyframes bolt-glow {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50%       { opacity: 0.85; filter: brightness(1.4) drop-shadow(0 0 8px #FF4466); }
}

/* ── SPEECH BUBBLES ──────────────────────────────────────────── */
.speech-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.85);
  background: white;
  color: #1a0035;
  font-family: var(--font-game);
  font-size: 7px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-spring);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 12px var(--gold-glow);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: white;
  border-bottom: none;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}
.speech-bubble.speech-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0px) scale(1);
}

/* ── FOREGROUND COLUMNS ──────────────────────────────────────── */
.fg-column {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(to right,
    rgba(50,0,80,0.8) 0%,
    rgba(30,0,60,0.6) 40%,
    transparent 100%
  );
}
.fg-col-left  { left: 0; }
.fg-col-right { right: 0; transform: scaleX(-1); }

.fg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%,
    transparent 40%,
    rgba(4,0,15,0.4) 100%
  );
  pointer-events: none;
}

/* ── PARTICLES CANVAS ────────────────────────────────────────── */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ── UI LAYER ────────────────────────────────────────────────── */
#ui-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
#ui-layer > * {
  pointer-events: auto;
}

/* ── WORDMARK ────────────────────────────────────────────────── */
#wordmark-container {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(200,17,26,0.5)) drop-shadow(0 4px 12px rgba(0,0,0,0.8));
  animation: wordmark-float 3s ease-in-out infinite;
}
@keyframes wordmark-float {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50%       { transform: translateX(-50%) translateY(-5px); }
}
.wordmark-img {
  height: 80px;
  width: auto;
  max-width: 480px;
}
.wordmark-fallback {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px var(--red), 0 2px 8px rgba(0,0,0,0.9);
}

/* ── TAGLINE ─────────────────────────────────────────────────── */
#tagline {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
.tagline-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ── GLASS CARDS ─────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 40px var(--glass-glow),
    0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), transparent);
}

/* ── STATS PANEL ─────────────────────────────────────────────── */
#stats-panel {
  position: absolute;
  top: 150px;
  right: 24px;
  width: 280px;
  padding: 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,215,0,0.1);
}

.card-title-label {
  font-family: var(--font-game);
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.signal-badge {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(57,255,20,0.12);
  border: 1px solid rgba(57,255,20,0.3);
  transition: all 0.4s ease;
}
.signal-badge.bearish {
  background: rgba(255,7,58,0.12);
  border-color: rgba(255,7,58,0.3);
}
.signal-text {
  font-family: var(--font-game);
  font-size: 6px;
  color: var(--win-green);
  letter-spacing: 0.1em;
}
.signal-badge.bearish .signal-text {
  color: var(--loss-red);
}

/* HP Bar */
.hp-section {
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hp-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-game);
  font-size: 7px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
}
.hp-bar-track {
  width: 100%;
  height: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.hp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a8a00, var(--win-green));
  border-radius: 7px;
  position: relative;
  transition: width 1.2s var(--ease-smooth);
  min-width: 6px;
}
.hp-bar-fill.danger {
  background: linear-gradient(90deg, var(--red), var(--red-bright));
}
.hp-bar-fill.warning {
  background: linear-gradient(90deg, #886600, var(--gold));
}
.hp-bar-shine {
  position: absolute;
  top: 1px; left: 4px; right: 4px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  animation: bar-shine 2.5s linear infinite;
}
@keyframes bar-shine {
  from { opacity: 0.3; transform: translateX(-100%); }
  to   { opacity: 0.6; transform: translateX(500%); }
}
.hp-sublabel {
  font-family: var(--font-game);
  font-size: 5.5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  margin-top: 5px;
  text-align: right;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-block {
  padding: 10px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}
.stat-block:last-child, .stat-block:nth-child(3) { border-right: none; }
.stat-block:hover {
  background: rgba(255,255,255,0.03);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-key {
  font-family: var(--font-game);
  font-size: 5.5px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  letter-spacing: 0.08em;
}
.win-color  { color: var(--win-green); }
.loss-color { color: var(--loss-red); }
.gold-color { color: var(--gold); }

/* Stat value number flip animation */
@keyframes stat-flip {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.stat-update {
  animation: stat-flip 0.35s var(--ease-spring) forwards;
}

/* Indicators row */
.indicators-row {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.indicator-chip {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.ind-label {
  display: block;
  font-family: var(--font-game);
  font-size: 5px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.ind-value {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
}
.clock-text {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.solscan-link {
  font-family: var(--font-game);
  font-size: 5.5px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.solscan-link:hover { opacity: 1; text-shadow: 0 0 8px var(--gold); }

/* ── LIVE TRADE FEED ─────────────────────────────────────────── */
#trade-feed {
  position: absolute;
  top: 150px;
  left: 24px;
  width: 280px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,215,0,0.1);
  flex-shrink: 0;
}
.feed-title {
  font-family: var(--font-game);
  font-size: 7px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.feed-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--win-green);
  box-shadow: 0 0 10px var(--win-green);
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}
.live-label {
  font-family: var(--font-game);
  font-size: 6px;
  color: var(--win-green);
  letter-spacing: 0.1em;
}

.feed-list {
  flex: 1;
  min-height: 160px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,215,0,0.2) transparent;
}
.feed-list::-webkit-scrollbar { width: 3px; }
.feed-list::-webkit-scrollbar-track { background: transparent; }
.feed-list::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.2); border-radius: 2px; }

.feed-empty {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 20px;
  letter-spacing: 0.08em;
}

/* Trade entry */
.trade-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: trade-enter 0.4s var(--ease-spring) forwards;
  position: relative;
  overflow: hidden;
}
.trade-entry::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.trade-entry.win::before  { background: var(--win-green); }
.trade-entry.loss::before { background: var(--loss-red); }
.trade-entry.win  { background: rgba(57,255,20,0.04); }
.trade-entry.loss { background: rgba(255,7,58,0.04); }

@keyframes trade-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.trade-battle-text {
  font-family: var(--font-game);
  font-size: 6.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}
.trade-battle-text .trade-action {
  color: var(--gold);
}
.trade-battle-text .trade-result.win-color {
  color: var(--win-green);
}
.trade-battle-text .trade-result.loss-color {
  color: var(--loss-red);
}

.trade-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trade-time {
  font-family: var(--font-game);
  font-size: 5px;
  color: rgba(255,255,255,0.3);
}
.trade-size {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

/* ── SIGNAL DISPLAY (center stage) ──────────────────────────── */
.signal-display-card {
  position: absolute;
  bottom: 220px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.signal-inner {
  text-align: center;
  background: rgba(4,0,15,0.5);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255,215,0,0.15);
  padding: 14px 28px;
  box-shadow: 0 0 30px rgba(255,215,0,0.08);
}
.signal-label-small {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.signal-main {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--win-green);
  line-height: 1;
  text-shadow: 0 0 20px currentColor;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.signal-main.bearish {
  color: var(--loss-red);
}
.signal-sub {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
  letter-spacing: 0.08em;
}

/* ── FLOATING TRADE NOTIFICATIONS ────────────────────────────── */
#notification-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.trade-notification {
  background: rgba(8,0,25,0.9);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 12px 20px;
  font-family: var(--font-game);
  font-size: 7.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: notif-rise 0.5s var(--ease-spring) forwards, notif-fade 0.4s ease 3.6s forwards;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.trade-notification.win {
  border: 1px solid rgba(57,255,20,0.4);
  color: var(--win-green);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 24px rgba(57,255,20,0.15);
}
.trade-notification.loss {
  border: 1px solid rgba(255,7,58,0.3);
  color: rgba(255,180,180,0.9);
}
.trade-notification .notif-highlight {
  color: var(--gold);
}

@keyframes notif-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0px) scale(1); }
}
@keyframes notif-fade {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ── CELEBRATION OVERLAY ─────────────────────────────────────── */
#celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#celebration-overlay.active {
  opacity: 1;
}
#confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.celebration-text {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: celeb-text-in 0.6s var(--ease-spring) forwards;
}
@keyframes celeb-text-in {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.celeb-line-1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--gold);
  text-shadow: 0 0 40px var(--gold), 0 4px 20px rgba(0,0,0,0.9);
  margin-bottom: 12px;
}
.celeb-line-2 {
  font-family: var(--font-game);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: white;
  letter-spacing: 0.2em;
  text-shadow: 0 0 20px white;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#site-footer {
  position: relative;
  z-index: 40;
  background: rgba(4,0,15,0.95);
  border-top: 1px solid rgba(255,215,0,0.12);
  padding: 20px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em;
}
.footer-club {
  color: var(--red);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-link {
  font-family: var(--font-game);
  font-size: 6px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-chain { color: var(--gold); opacity: 0.7; }
.footer-chain:hover { opacity: 1; }
.footer-divider {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}
.footer-tagline {
  font-family: var(--font-game);
  font-size: 5.5px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.12em;
  font-style: italic;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  #stats-panel {
    right: 12px;
    width: 240px;
    top: 130px;
  }
  #trade-feed {
    left: 12px;
    width: 240px;
    top: 130px;
  }
  .wordmark-img {
    height: 60px;
  }
  .character { transform: scale(0.85); }
}

@media (max-width: 680px) {
  #ui-layer {
    position: relative;
    z-index: 30;
  }
  #stats-panel, #trade-feed {
    position: relative;
    top: auto; left: auto; right: auto;
    width: calc(100% - 32px);
    margin: 12px 16px;
  }
  #stats-panel { margin-top: 0; }
  #signal-display {
    position: relative;
    bottom: auto; left: auto;
    transform: none;
    margin: 0 16px 16px;
  }
  .signal-display-card {
    position: relative;
    bottom: auto; left: auto;
    transform: none;
    margin: 12px 16px;
  }
  #world {
    min-height: 60vh;
  }
  #character-stage {
    height: 160px;
  }
  .char-svg { transform: scale(0.75); transform-origin: bottom center; }
  #wordmark-container { top: 16px; }
  .wordmark-img { height: 44px; }
  #tagline { top: 78px; }
  .col-left-2, .col-right-2 { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── UTILITY ─────────────────────────────────────────────────── */
.hidden { display: none !important; }
.invisible { opacity: 0; }

/* Number transitions */
.num-transition {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}

/* Gold shimmer text */
.shimmer {
  background: linear-gradient(90deg, var(--gold), #fff, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2.5s linear infinite;
}
@keyframes shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}
