:root {
  --bg: #0b1020;
  --track: #121a33;
  --lane: #182246;
  --accent: #ffd700;
  --accent2: #00e0a4;
  --text: #eef1ff;
  --muted: #8a92b8;
  --us: #ff5d5d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #1b254a 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}
header {
  text-align: center;
  padding: 36px 16px 20px;
}
header h1 {
  margin: 0;
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.tagline {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.counter {
  display: inline-block;
  background: var(--lane);
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
}

main { max-width: 1100px; margin: 0 auto; padding: 10px 16px 40px; }

.track-wrap {
  background: var(--track);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lane {
  background: var(--lane);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  position: relative;
  overflow: hidden;
}
.lane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,0.03) 38px 40px);
  pointer-events: none;
}
.lane.party {
  background: linear-gradient(135deg, #2a1f4d, #1b2d4d);
  border: 1px solid rgba(0, 224, 164, 0.4);
}
.lane-label {
  flex: 0 0 170px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.lane-label span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.runners {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.runner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3a4578;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  animation: bob 2.4s ease-in-out infinite;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.runner.grown { width: 46px; height: 46px; font-size: 0.68rem; }
.runner.us {
  background: linear-gradient(135deg, var(--us), #b91c1c);
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(255, 93, 93, 0.7);
  z-index: 2;
}
.runner.active-dance {
  background: linear-gradient(135deg, var(--accent2), #0ea678);
  animation: dance 1.2s ease-in-out infinite;
}
.runner .flag { font-size: 0.9rem; }
.runner-more {
  width: 46px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.7rem; font-weight: 700;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}
@media (max-width: 760px) {
  .info { grid-template-columns: 1fr; }
  .lane { flex-direction: column; align-items: flex-start; }
  .lane-label { flex: none; }
}

.card {
  background: var(--lane);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
}
.card h2 { margin: 0 0 10px; font-size: 1.05rem; color: var(--accent); }
#our-label { color: var(--us); }
.progress-outer {
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--us), var(--accent));
  transition: width 1s ease;
}
#feed {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
#feed li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#feed li.add { color: var(--accent2); }
#feed li.remove { color: var(--us); }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 10px 20px 30px;
  max-width: 800px;
  margin: 0 auto;
}
