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

:root {
  --text: #ecfeff;
  --muted: #94a3b8;
  --accent: #67e8f9;
  --panel: rgba(8, 16, 28, 0.82);
  --border: rgba(103, 232, 249, 0.22);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: #05080f;
}

#stage {
  position: fixed;
  inset: 0;
}

.hud-top, .hud-bot, .card {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}

.hud-top {
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem 0;
}

.nav { margin-bottom: 0.4rem; font-size: 0.88rem; pointer-events: auto; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #a5f3fc, #c4b5fd, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
  margin-top: 0.2rem;
}

.hud-bot {
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem 1rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: linear-gradient(to top, rgba(5, 8, 15, 0.75), transparent);
}
.muted { color: var(--muted); }

.live-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: livepulse 1.4s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.card {
  pointer-events: auto;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  width: min(320px, calc(100vw - 1.6rem));
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.card.hidden { display: none; }
.card .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.card h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card p { color: #cbd5e1; font-size: 0.92rem; line-height: 1.5; }
.card .meta {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.go {
  display: inline-block;
  margin-top: 0.85rem;
  color: #083344;
  background: linear-gradient(90deg, #67e8f9, #a5b4fc);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.close {
  display: block;
  margin-top: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  font-size: 0.82rem;
}
.close:hover { color: var(--text); }

@media (max-width: 640px) {
  .card {
    top: auto;
    bottom: 3.4rem;
    right: 0.7rem;
    left: 0.7rem;
    width: auto;
    transform: none;
  }
  .lede { display: none; }
}
