/* ============================================================
   POKER DOGS — 16-Bit Poker Table Stylesheet
   Single source of truth for both relay viewer & local /deal games.
   ============================================================ */

/* 1. RESET & VARIABLES ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Base palette */
  --bg-deep: #050508;
  --bg-base: #0a0a12;
  --bg-elevated: #12121a;
  --bg-surface: #1a1a25;

  /* Neon accents */
  --neon-red:    #ff2d55;
  --neon-pink:   #ff2d95;
  --neon-green:  #00ff88;
  --neon-cyan:   #00f5ff;
  --neon-amber:  #ffaa00;
  --neon-purple: #9d4edd;

  /* Felt */
  --felt:       #1a5c35;
  --felt-light: #2d8b4e;
  --felt-dark:  #0f3d22;

  /* MMORPG log colors */
  --log-system: #8090a0;
  --log-action: #ffaa00;
  --log-dialogue: #00ff88;
  --log-thought: #00f5ff;
  --log-whisper: #d858d8;
  --log-phase: #ff2d95;
  --log-winner: #ffdd00;
  --log-elimination: #ff2d55;

  /* Text */
  --text: #e0e0ff;
  --text-muted: #6080a0;

  /* Fonts */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'VT323', monospace;

  /* HP bar colors */
  --hp-green: #00ff88;
  --hp-gold: #ffaa00;
  --hp-red: #ff2d55;

  /* Layout */
  --header-h: 44px;
}


/* 2. TYPOGRAPHY ================================================ */
body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(0,245,255,.03) 1px, transparent 1px),
    var(--bg-deep);
  background-size: 20px 20px, 100% 100%;
  line-height: 1.4;
  overflow: hidden;
  height: 100vh;
}

/* Neon glow overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,245,255,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(157,78,221,.08) 0%, transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(255,45,149,.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3 {
  font-family: var(--font-pixel);
  letter-spacing: 1px;
}


/* 3. (NES WINDOW REMOVED — flat panels now) =================== */


/* 4. LAYOUT ==================================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}


/* 5. HEADER ==================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 10;
  background: rgba(5,5,8,.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--neon-pink);
}
.header > * { position: relative; z-index: 1; }

.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo img { height: 22px; display: block; }

.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.header-center h1 {
  font-size: 13px;
  color: var(--neon-pink);
  text-shadow:
    0 0 5px #fff,
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-pink),
    0 0 40px var(--neon-pink),
    0 0 80px rgba(255,45,149,.5);
  animation: neon-flicker 4s ease-in-out infinite;
}
.hand-info {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
}

.header-right { display: flex; align-items: center; gap: 10px; }
.nav-link {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-link:hover { color: var(--log-thought); }

.perspective-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.toggle-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
}
.perspective-btn {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 6px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.perspective-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0,245,255,.1);
  text-shadow: 0 0 8px var(--neon-cyan);
}
.perspective-btn.active {
  background: rgba(255,45,149,.1);
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
  box-shadow: none;
}

.status {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 8px;
  border: 2px solid;
}
.status.live       { background: rgba(0,255,136,.15); color: var(--neon-green); border-color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); box-shadow: 0 0 12px rgba(0,255,136,.3); }
.status.replay     { background: rgba(255,170,0,.15); color: var(--neon-amber); border-color: var(--neon-amber); text-shadow: 0 0 8px var(--neon-amber); box-shadow: 0 0 12px rgba(255,170,0,.3); }
.status.connecting { background: transparent; color: var(--text-muted); border-color: var(--text-muted); }
.status.offline    { background: rgba(255,45,85,.15); color: var(--neon-red); border-color: var(--neon-red); text-shadow: 0 0 8px var(--neon-red); box-shadow: 0 0 12px rgba(255,45,85,.3); }


/* 6. TABLE SCENE =============================================== */
.table-scene {
  flex: 2;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.table-scene > * { position: relative; z-index: 1; }

/* Felt poker table oval */
.felt-oval {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt) 55%, var(--felt-dark) 100%);
  border-radius: 50%;
  border: 6px solid #5a4535;
  box-shadow:
    0 0 60px rgba(26,92,53,.5),
    0 0 120px rgba(26,92,53,.2),
    0 0 2px 2px rgba(90,69,53,.8),
    inset 0 0 80px rgba(0,0,0,.35);
  z-index: 0;
}

/* Neon glow moved to body::before */


/* 7. TABLE CENTER (community cards + pot) ====================== */
.table-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.pot-display {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(0,255,136,.6), 0 0 30px rgba(0,255,136,.2);
  padding: 4px 12px;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(0,255,136,.3);
}

.community-cards {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.community-cards .card {
  width: 40px;
  height: 56px;
  line-height: 56px;
  font-size: 24px;
  border-width: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.5);
}

.phase-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon-amber);
  text-shadow: 0 0 10px rgba(255,170,0,.5);
}

.winner-banner {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--log-winner);
  padding: 4px 10px;
  text-shadow: 0 0 12px var(--log-winner), 0 0 30px rgba(255,221,0,.3);
  animation: winner-glow 1s ease-in-out infinite;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,221,0,.3);
}


/* 7b. DEALER STATION =========================================== */
.dealer-station {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.dealer-station img {
  width: 52px;
  height: 65px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  display: block;
}


/* 8. PLAYER STATIONS =========================================== */
.player-station {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  transition: opacity .2s, transform .2s;
}

/* State modifiers */
.player-station.folded { opacity: 0.4; }
.player-station.folded .station-inner { border-color: var(--bg-surface); }

.player-station.winner .station-inner {
  border-color: var(--log-winner);
  box-shadow: 0 0 16px rgba(255,221,0,.5), 0 0 40px rgba(255,221,0,.15);
}
.player-station.all-in .station-inner {
  border-color: var(--neon-amber);
  box-shadow: 0 0 12px rgba(255,170,0,.5);
}
.player-station.active .station-inner {
  border-color: var(--neon-green);
  box-shadow: 0 0 14px rgba(0,255,136,.5), 0 0 35px rgba(0,255,136,.15);
  animation: active-glow 2s ease-in-out infinite;
}
.player-station.active {
  transform: scale(1.03);
}
.player-station.selected .station-inner {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,245,255,.3);
}

.station-inner {
  background: var(--bg-elevated);
  border: 2px solid var(--bg-surface);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  cursor: pointer;
  transition: all .3s;
}
.station-inner:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0,245,255,.2), inset 0 0 20px rgba(0,245,255,.05);
}

.station-avatar img {
  width: 52px;
  height: 58px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
  display: block;
}

.station-nameplate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}
.station-name {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon-pink);
  text-shadow: 0 0 6px rgba(255,45,149,.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dealer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 7px;
  background: var(--neon-amber);
  color: #000;
  border-radius: 50%;
  font-family: var(--font-pixel);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255,170,0,.4);
}

.station-chips {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(0,255,136,.3);
}

.station-cards {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.station-action {
  text-align: center;
  min-height: 16px;
}
.station-bet {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--neon-amber);
  text-shadow: 0 0 4px rgba(255,170,0,.3);
}

/* Thinking indicator */
.thinking-indicator {
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0,255,136,.6);
  visibility: hidden;
  padding: 1px 0;
}
.player-station.active .thinking-indicator {
  visibility: visible;
  animation: nes-blink 1s step-end infinite;
}


/* 9. BUBBLE GROUP (wraps speech + thought) ===================== */
.bubble-group {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 240px;
}

/* Left-side seats: bubble group on right */
.seat-left .bubble-group {
  left: calc(100% + 8px);
  top: 6px;
}

/* Right-side seats: bubble group on left */
.seat-right .bubble-group {
  right: calc(100% + 8px);
  top: 6px;
}

/* Center seats: bubble group above */
.seat-center .bubble-group {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
}


/* 9b. SPEECH BUBBLES =========================================== */
.speech-bubble {
  position: relative;
  background: #f5f0e0;
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 2px solid #888;
  line-height: 1.3;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
  word-wrap: break-word;
}
.speech-bubble:empty { display: none; }

/* Speech bubble tail - pointing toward character */
.speech-bubble::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

/* Left-side seats: tail on the left */
.seat-left .speech-bubble::after {
  right: 100%;
  top: 12px;
  border-right-color: #f5f0e0;
  border-left: none;
}

/* Right-side seats: tail on the right */
.seat-right .speech-bubble::after {
  left: 100%;
  top: 12px;
  border-left-color: #f5f0e0;
  border-right: none;
}

/* Center seats: tail on the bottom */
.seat-center .speech-bubble::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #f5f0e0;
  border-bottom: none;
}


/* 10. THOUGHT BUBBLES ========================================== */
.thought-bubble {
  position: relative;
  background: rgba(0,20,30,.85);
  color: var(--neon-cyan);
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,245,255,.4);
  line-height: 1.3;
  box-shadow: 0 0 8px rgba(0,245,255,.15);
  word-wrap: break-word;
}
.thought-bubble:empty { display: none; }


/* 11. SEAT POSITIONS =========================================== */

/* --- 4 players: corners --- */
.players-4 .seat-0 { top: 4%;  left: 5%; }
.players-4 .seat-1 { top: 4%;  right: 5%; }
.players-4 .seat-2 { bottom: 4%; right: 5%; }
.players-4 .seat-3 { bottom: 4%; left: 5%; }

/* --- 5 players: 3 top, 2 bottom --- */
.players-5 .seat-0 { top: 4%;  left: 3%; }
.players-5 .seat-1 { top: 4%;  left: 50%; transform: translateX(-50%); }
.players-5 .seat-2 { top: 4%;  right: 3%; }
.players-5 .seat-3 { bottom: 4%; right: 10%; }
.players-5 .seat-4 { bottom: 4%; left: 10%; }

/* --- 6 players: 3 top, 3 bottom --- */
.players-6 .seat-0 { top: 4%;  left: 3%; }
.players-6 .seat-1 { top: 4%;  left: 50%; transform: translateX(-50%); }
.players-6 .seat-2 { top: 4%;  right: 3%; }
.players-6 .seat-3 { bottom: 4%; right: 3%; }
.players-6 .seat-4 { bottom: 4%; left: 50%; transform: translateX(-50%); }
.players-6 .seat-5 { bottom: 4%; left: 3%; }

/* Seat side classes for bubble placement */
/* 4 players */
.players-4 .seat-0 { }
.players-4 .seat-1 { }
.players-4 .seat-2 { }
.players-4 .seat-3 { }

/* 5 players */
.players-5 .seat-1.seat-center .speech-bubble,
.players-5 .seat-1.seat-center .thought-bubble {
  /* center seat special positioning handled by .seat-center */
}

/* 6 players */
.players-6 .seat-1.seat-center .speech-bubble,
.players-6 .seat-1.seat-center .thought-bubble,
.players-6 .seat-4.seat-center .speech-bubble,
.players-6 .seat-4.seat-center .thought-bubble {
  /* center seat special positioning handled by .seat-center */
}


/* 12. CARDS ==================================================== */
.card {
  display: inline-block;
  width: 28px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: bold;
  background: #f0ece0;
  color: #111;
  border: 2px solid #888;
  vertical-align: middle;
  image-rendering: pixelated;
}
.card.hearts, .card.diamonds { color: var(--neon-red); }
.card.clubs    { color: var(--neon-green); }
.card.spades   { color: var(--neon-purple); }
.card.empty {
  background: var(--bg-elevated);
  border: 2px dashed var(--bg-surface);
  color: transparent;
}
.card.back {
  background: linear-gradient(135deg, var(--neon-red), #8b0000);
  border-color: #600;
  color: transparent;
}


/* 13. ACTION BADGES ============================================ */
.action-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 2px 5px;
  border: 2px solid;
  background: var(--bg-elevated);
  color: var(--text);
  animation: badge-pop .4s ease-out;
}
.action-badge.fold   { background: #2a1520; color: var(--neon-red); border-color: var(--neon-red); box-shadow: 0 0 6px rgba(255,45,85,.3); }
.action-badge.check  { background: #152a20; color: var(--neon-green); border-color: var(--neon-green); box-shadow: 0 0 6px rgba(0,255,136,.3); }
.action-badge.call   { background: #15202a; color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: 0 0 6px rgba(0,245,255,.3); }
.action-badge.raise  { background: #2a2015; color: var(--neon-amber); border-color: var(--neon-amber); box-shadow: 0 0 6px rgba(255,170,0,.3); }
.action-badge.bet    { background: #201525; color: var(--neon-purple); border-color: var(--neon-purple); box-shadow: 0 0 6px rgba(157,78,221,.3); }
.action-badge.all-in { background: #2a2515; color: var(--neon-amber); border-color: var(--neon-amber); text-shadow: 0 0 6px var(--neon-amber); }
.action-badge.wins   { background: #152a15; color: var(--neon-green); border-color: var(--neon-green); text-shadow: 0 0 6px var(--neon-green); }


/* 14. GAME LOG ================================================= */
.game-log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 2px solid var(--bg-surface);
}
.game-log > * { position: relative; z-index: 1; }

.log-header {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0,245,255,.3);
  padding: 6px 10px 4px;
  flex-shrink: 0;
}

.log-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 8px;
  font-family: var(--font-body);
  font-size: 17px;
}

.log-entry {
  padding: 1px 0;
  line-height: 1.3;
}
.log-entry.log-system    { color: var(--log-system); }
.log-entry.log-action    { color: var(--log-action); }
.log-entry.log-dialogue  { color: var(--log-dialogue); }
.log-entry.log-thought   { color: var(--log-thought); }
.log-entry.log-whisper   { color: var(--log-whisper); }
.log-entry.log-phase {
  color: var(--log-phase);
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 0 2px;
}
.log-entry.log-winner    { color: var(--log-winner); font-weight: bold; }
.log-entry.log-elimination { color: var(--log-elimination); font-weight: bold; }

.log-entry .log-speaker {
  font-weight: bold;
}


/* 15. CRT SCANLINES & VIGNETTE ================================= */
.crt-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.45) 100%);
}
.crt-vignette::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.08) 3px,
    rgba(0,0,0,.08) 4px
  );
}


/* 16. ANIMATIONS =============================================== */
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .7; }
  94% { opacity: 1; }
  96% { opacity: .8; }
  97% { opacity: 1; }
}

@keyframes active-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,255,136,.3); }
  50% { box-shadow: 0 0 18px rgba(0,255,136,.5); }
}

@keyframes winner-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--log-winner), 0 0 30px rgba(255,221,0,.3); }
  50% { opacity: .8; text-shadow: 0 0 20px var(--log-winner), 0 0 40px rgba(255,221,0,.4); }
}

@keyframes nes-blink {
  0%, 49% { visibility: visible; }
  50%, 100% { visibility: hidden; }
}

@keyframes badge-pop {
  0% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* 17. PERSPECTIVE SYSTEM ======================================= */
body.perspective-mode .station-cards { visibility: hidden; }
body.perspective-mode .player-station.perspective-self .station-cards { visibility: visible; }
body.perspective-mode .thought-bubble { display: none !important; }
body.perspective-mode .player-station.perspective-self .thought-bubble { display: block !important; }
body.perspective-mode .log-entry.log-thought { display: none; }


/* 18. GAME CONTAINER =========================================== */
#game {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}


/* 19. RESPONSIVE =============================================== */
@media (max-width: 800px) {
  :root { --header-h: 36px; }

  .header-left { display: none; }
  .header-center h1 { font-size: 9px; }
  .nav-link { display: none; }
  .perspective-toggle { display: none; }

  .table-scene { flex: 0 0 50%; }
  .game-log { flex: 0 0 50%; }

  .player-station { width: 110px; }
  .station-avatar img { width: 40px; height: 44px; }
  .station-name { font-size: 6px; }
  .card { width: 24px; height: 34px; line-height: 34px; font-size: 14px; }
  .community-cards .card { width: 32px; height: 44px; line-height: 44px; font-size: 20px; }

  .bubble-group { display: none; }

  .felt-oval { width: 80%; height: 75%; }

  .log-scroll { font-size: 15px; }
}

@media (max-width: 600px) {
  .header-center h1 { font-size: 8px; }
  .hand-info { font-size: 13px; }
  .player-station { width: 95px; }
  .station-avatar img { width: 32px; height: 36px; }
  .station-name { font-size: 5px; }
  .station-chips { font-size: 13px; }
  .community-cards .card { width: 28px; height: 40px; line-height: 40px; font-size: 18px; }
}


/* 20. FOOTER =================================================== */
.engagement-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 4px 16px;
  background: var(--bg-deep);
  border-top: 2px solid var(--bg-surface);
  flex-shrink: 0;
}
.footer-section { display: flex; align-items: center; gap: 8px; }

.social-links { gap: 10px; }
.social-link {
  display: flex;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color .2s;
}
.social-link:hover { color: var(--log-thought); }
.social-link svg { width: 100%; height: 100%; fill: currentColor; }

.email-capture { display: flex; align-items: center; gap: 8px; }
.email-capture-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-muted);
}
.email-capture form { display: flex; gap: 4px; }
.email-capture input[type="email"] {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 3px 6px;
  background: var(--bg-elevated);
  border: 2px solid var(--bg-surface);
  color: var(--text);
  width: 140px;
}
.email-capture button {
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 3px 8px;
  background: rgba(0,255,136,.15);
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
  cursor: pointer;
  transition: all .2s;
}
.email-capture button:hover {
  background: var(--neon-green);
  color: #000;
}

/* Email popup */
.email-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.email-popup-overlay.visible { display: flex; }
.email-popup {
  background: var(--bg-elevated);
  border: 3px solid var(--neon-pink);
  box-shadow: 0 0 40px rgba(255,45,149,.5), 0 0 80px rgba(255,45,149,.3);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}
.email-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.email-popup-header { margin-bottom: 10px; }
.popup-logo { height: 22px; }
.email-popup-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--log-winner);
  margin-bottom: 8px;
}
.email-popup-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.email-popup-form { display: flex; flex-direction: column; gap: 6px; }
.email-popup-form input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 6px 10px;
  background: var(--bg-deep);
  border: 2px solid var(--neon-cyan);
  color: var(--text);
  box-shadow: inset 0 0 10px rgba(0,0,0,.5), 0 0 8px rgba(0,245,255,.3);
}
.email-popup-form button {
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 8px;
  background: rgba(0,255,136,.15);
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
  cursor: pointer;
  text-shadow: 0 0 8px var(--neon-green);
  box-shadow: 0 0 15px rgba(0,255,136,.4);
  transition: all .2s;
}
.email-popup-form button:hover {
  background: var(--neon-green);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 25px rgba(0,255,136,.7);
}
.email-popup-privacy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Waiting state */
.waiting {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.waiting p:first-child {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--log-thought);
  margin-bottom: 12px;
}
