:root {
  --tiktok-cyan: #25f4ee;
  --tiktok-pink: #fe2c55;
  --gold: #ffb800;
  --go-green: #39ff88;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(37,244,238,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(254,44,85,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #0b0b12 0%, #050507 100%);
  color: #fff;
}

body { position: relative; }

/* Foreground holds every piece of UI and shakes independently of the fixed
   track backdrop (which must never move, or the cars would look glitchy). */
.foreground {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.foreground.shake { animation: screen-shake 0.4s ease; }

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 3px) rotate(-0.3deg); }
  40% { transform: translate(5px, -4px) rotate(0.3deg); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(4px, 3px); }
}

.spark-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- language pairing ---------- */

.lang-en { font-weight: 700; color: #fff; }
.lang-de { font-weight: 500; color: rgba(255,255,255,0.5); font-size: 0.78em; margin-top: 1px; }

/* ---------- status bar ---------- */

.status {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
}

.status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tiktok-pink);
  box-shadow: 0 0 8px var(--tiktok-pink);
}

.status.online .dot { background: var(--go-green); box-shadow: 0 0 8px var(--go-green); }
.viewers { opacity: 0.75; font-weight: 600; }

/* ---------- header / brand ---------- */

#raceHeader {
  text-align: center;
  padding: 16px 0 6px;
  position: relative;
  z-index: 1;
}

#raceHeader h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  position: relative;
  display: inline-block;
  text-shadow:
    -2px 0 var(--tiktok-cyan),
    2px 0 var(--tiktok-pink);
  animation: brand-flicker 6s ease-in-out infinite;
}

@keyframes brand-flicker {
  0%, 92%, 100% { text-shadow: -2px 0 var(--tiktok-cyan), 2px 0 var(--tiktok-pink); }
  94% { text-shadow: -4px 0 var(--tiktok-cyan), 4px 0 var(--tiktok-pink); }
  96% { text-shadow: -1px 0 var(--tiktok-cyan), 1px 0 var(--tiktok-pink); }
}

.tagline { margin-top: 4px; font-size: 14px; }
.tagline .lang-de { margin-top: 0; }

/* ---------- rotating instruction ticker ---------- */

.ticker {
  position: relative;
  z-index: 1;
  margin: 8px auto 4px;
  width: min(640px, 92vw);
  background: linear-gradient(90deg, var(--tiktok-cyan), var(--tiktok-pink));
  border-radius: 999px;
  padding: 7px 18px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(254,44,85,0.25);
}

.ticker-text {
  font-size: 14px;
  font-weight: 800;
  color: #0a0a10;
  animation: ticker-in 0.4s ease;
}

@keyframes ticker-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px 0;
  position: relative;
  z-index: 1;
}

/* countdown + finish screens are a deliberate "moment" — centered, with room to breathe */
.view-center { justify-content: center; }

.hidden { display: none !important; }

.view.entering { animation: view-in 0.4s cubic-bezier(.22,1,.36,1); }

@keyframes view-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- hype meter (live diamond counter) ---------- */

.hype-meter {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255,184,0,0.25), rgba(255,184,0,0.08));
  border: 1px solid rgba(255,184,0,0.5);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.hype-meter .hype-icon { font-size: 15px; }
.hype-meter .hype-label { font-weight: 500; opacity: 0.7; font-size: 11px; }

.hype-meter.pulse { animation: hype-pulse 0.5s ease; }

@keyframes hype-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); box-shadow: 0 0 20px rgba(255,184,0,0.8); }
  100% { transform: scale(1); }
}

/* ---------- lobby ---------- */

.lobby-timer {
  width: min(760px, 90vw);
  margin-bottom: 10px;
  text-align: center;
}

.timer-bar-outer {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-top: 6px;
}

.timer-bar-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--tiktok-cyan), #7c5cff);
  transition: width 0.3s linear;
}

.timer-bar-inner.urgent { background: linear-gradient(90deg, var(--tiktok-pink), var(--gold)); }

.slots-count {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.55;
  font-weight: 600;
}

.grid-slots {
  width: min(680px, 94vw);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  align-content: center;
  gap: 8px;
  padding: 4px;
}

.slot {
  position: relative;
  border-radius: 10px;
  padding: 3px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.15);
}

.slot.filled {
  border-style: solid;
  background: rgba(255,255,255,0.06);
  animation: slot-pop 0.4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 12px -2px currentColor;
}

@keyframes slot-pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.slot .car-number {
  position: absolute;
  top: -4px;
  left: -4px;
  font-size: 9px;
  font-weight: 800;
  background: rgba(0,0,0,0.65);
  border-radius: 999px;
  padding: 1px 4px;
  z-index: 1;
}

.slot .avatar {
  width: 100%;
  height: 100%;
  border-radius: 26%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
  background: #222;
  box-shadow: 0 3px 8px -2px rgba(0,0,0,0.6);
}

.slot .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0.3;
  border: 2px dashed rgba(255,255,255,0.22);
  animation: pulse-empty 2s ease-in-out infinite;
}

@keyframes pulse-empty {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.38; }
}

/* how-to-join legend card */

.howto-card {
  margin-top: 12px;
  width: min(640px, 92vw);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 18px;
}

.howto-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.howto-rows { display: flex; flex-direction: column; gap: 6px; }

.howto-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 8px;
}

.howto-icon { font-size: 18px; flex: none; width: 22px; text-align: center; }

.howto-text { font-size: 13px; line-height: 1.3; }
.howto-text .lang-de { font-size: 0.75em; }

.howto-row.howto-gift {
  background: linear-gradient(90deg, rgba(255,184,0,0.16), rgba(255,184,0,0.03));
  border: 1px solid rgba(255,184,0,0.35);
  box-shadow: 0 0 14px -4px rgba(255,184,0,0.6);
}

.howto-row.howto-gift .howto-icon { font-size: 22px; animation: gift-bounce 1.6s ease-in-out infinite; }
.howto-row.howto-gift b { color: var(--gold); }

@keyframes gift-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-6deg); }
  75% { transform: translateY(-1px) rotate(6deg); }
}

/* ---------- countdown ---------- */

.lights {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.light {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a1414, #200a0a);
  border: 4px solid #1a1a1a;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.7);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.light.on {
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c81d1d);
  box-shadow: 0 0 26px 5px rgba(255,60,60,0.8), inset 0 0 10px rgba(255,255,255,0.3);
}

.light.go {
  background: radial-gradient(circle at 35% 30%, #6dffb0, #14c46a);
  box-shadow: 0 0 40px 10px rgba(60,255,140,0.9), inset 0 0 10px rgba(255,255,255,0.4);
}

.countdown-text {
  font-size: 96px;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(255,255,255,0.5), 0 4px 10px rgba(0,0,0,0.6);
}

.countdown-text.go { color: var(--go-green); animation: go-pop 0.5s ease; }

@keyframes go-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- racing ---------- */

.gift-reminder {
  width: min(640px, 92vw);
  text-align: center;
  background: linear-gradient(90deg, rgba(255,184,0,0.18), rgba(254,44,85,0.18));
  border: 1px solid rgba(255,184,0,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 10px;
  font-size: 13px;
  animation: reminder-glow 2.2s ease-in-out infinite;
}

.gift-reminder .lang-en { color: var(--gold); }

@keyframes reminder-glow {
  0%, 100% { box-shadow: 0 0 10px -4px rgba(255,184,0,0.5); }
  50% { box-shadow: 0 0 20px -2px rgba(255,184,0,0.8); }
}

/* The track is a permanent full-bleed backdrop behind every phase — dimmed
   while the lobby/countdown/podium are showing, full brightness while racing.
   This keeps the screen visually "alive" instead of leaving flat dead space. */
.track-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.24;
  filter: saturate(0.7) brightness(0.75);
  transition: opacity 0.7s ease, filter 0.7s ease;
}

.track-stage.racing {
  opacity: 1;
  filter: none;
}

.track-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.track-shoulder {
  fill: none;
  stroke: #05130b;
  stroke-width: 96;
}

.track-asphalt {
  fill: none;
  stroke: #2b2b36;
  stroke-width: 80;
}

.track-centerline {
  fill: none;
  stroke: #ffffff;
  stroke-opacity: 0.35;
  stroke-width: 3;
  stroke-dasharray: 12 12;
  animation: centerline-flow 1.6s linear infinite;
}

@keyframes centerline-flow {
  to { stroke-dashoffset: -56; }
}

.grandstand {
  fill: url(#grandstandPattern);
  opacity: 0.55;
}

.start-flag {
  position: absolute;
  left: 30%;
  top: 20%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.6));
}

.car-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.infield-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 33%;
  max-width: 210px;
  background: rgba(8,8,14,0.72);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.track-stage.racing .infield-panel { opacity: 1; }

.swarm-car {
  position: absolute;
  top: 0;
  left: 0%;
  transform: translate(-50%, -50%);
  transition: left 0.1s linear, top 0.1s linear;
  z-index: 2;
}

.swarm-car .avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #888;
  background: #222;
  display: block;
}

.dot-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  display: inline-block;
  flex: none;
}

.swarm-car.finished { opacity: 0.35; }

.swarm-car.tier-small .avatar-mini,
.swarm-car.tier-small .dot-mini { box-shadow: 0 0 8px 2px rgba(255,170,60,0.75); }

.swarm-car.tier-medium .avatar-mini,
.swarm-car.tier-medium .dot-mini { box-shadow: 0 0 12px 4px rgba(255,150,40,0.85); }

.swarm-car.tier-large .avatar-mini,
.swarm-car.tier-large .dot-mini { box-shadow: 0 0 16px 6px rgba(255,80,80,0.9); }

.swarm-car.tier-mega .avatar-mini,
.swarm-car.tier-mega .dot-mini {
  box-shadow: 0 0 24px 9px rgba(255,184,0,0.95);
  animation: mega-pulse 0.5s ease infinite;
}

@keyframes mega-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.swarm-car.boosting::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,180,60,0.7);
  animation: boost-ring 0.6s ease-out infinite;
}

@keyframes boost-ring {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.infield-panel h2 {
  margin: 0 0 8px;
  font-size: 14px;
  opacity: 0.9;
  text-align: center;
}

.infield-panel ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.75;
}

.infield-panel li {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.infield-panel li img,
.infield-panel li .dot-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.infield-panel li .lb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.infield-panel li .lb-pct {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.infield-panel li.rank-up { animation: rank-flash-up 0.8s ease; }
.infield-panel li.rank-down { animation: rank-flash-down 0.8s ease; }

@keyframes rank-flash-up {
  0% { background: rgba(57,255,136,0.35); }
  100% { background: transparent; }
}

@keyframes rank-flash-down {
  0% { background: rgba(254,44,85,0.3); }
  100% { background: transparent; }
}

.rank-arrow { font-size: 10px; flex: none; }
.rank-arrow.up { color: var(--go-green); }
.rank-arrow.down { color: var(--tiktok-pink); }

.top-gifter {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,184,0,0.22), rgba(255,184,0,0.05));
  border: 1px solid rgba(255,184,0,0.5);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: top-gifter-glow 1.8s ease-in-out infinite;
}

.top-gifter .crown { font-size: 15px; }
.top-gifter-name { color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes top-gifter-glow {
  0%, 100% { box-shadow: 0 0 8px -2px rgba(255,184,0,0.5); }
  50% { box-shadow: 0 0 16px 0 rgba(255,184,0,0.8); }
}

.racer-count {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.55;
}

/* ---------- finished / podium ---------- */

.podium-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.podium {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  position: relative;
}

.podium::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,184,0,0.18), transparent 65%);
  z-index: -1;
  animation: spotlight-pulse 2.4s ease-in-out infinite;
}

@keyframes spotlight-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

.podium-block.first { animation: winner-reveal 0.6s cubic-bezier(.22,1,.36,1); }

@keyframes winner-reveal {
  0% { opacity: 0; transform: translateY(24px) scale(0.7); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}

.podium-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 138px;
}

.podium-block .avatar {
  width: 62px;
  height: 62px;
  border-radius: 22%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.6);
  background: #222;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,0.6);
}

.podium-block.first .avatar { width: 84px; height: 84px; border-color: var(--gold); box-shadow: 0 0 20px rgba(255,184,0,0.6); }

.podium-block .medal { font-size: 24px; }
.podium-block .name { font-weight: 700; font-size: 13px; text-align: center; }
.podium-block .time { font-size: 11px; opacity: 0.65; }

.podium-block .riser {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
}

.podium-block.first .riser { height: 118px; background: linear-gradient(180deg, var(--gold), rgba(255,184,0,0.12)); }
.podium-block.second .riser { height: 82px; background: linear-gradient(180deg, #d6d6e6, rgba(214,214,230,0.15)); }
.podium-block.third .riser { height: 54px; background: linear-gradient(180deg, #ffb27a, rgba(255,178,122,0.15)); }

.next-race {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.75;
}

/* ---------- popups / screen flash / confetti ---------- */

.popups {
  position: absolute;
  top: 26%;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 15;
}

.event-popup {
  position: absolute;
  left: 50%;
  font-weight: 800;
  font-size: 19px;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
  animation: float-up 1.3s ease-out forwards;
  white-space: nowrap;
}

.event-popup.grid-join { color: var(--go-green); }
.event-popup.winner { color: var(--gold); font-size: 32px; }
.event-popup.finish { color: var(--tiktok-cyan); }

.event-popup.tier-small { color: #ffa63d; }
.event-popup.tier-medium { color: #ff8a3d; font-size: 23px; }
.event-popup.tier-large { color: var(--tiktok-pink); font-size: 28px; }
.event-popup.tier-mega { color: var(--gold); font-size: 38px; animation: float-up-mega 1.6s ease-out forwards; }

@keyframes float-up {
  0% { transform: translate(-50%, 0) scale(0.85); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -10px) scale(1.05); }
  100% { transform: translate(-50%, -90px) scale(1); opacity: 0; }
}

@keyframes float-up-mega {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  20% { opacity: 1; transform: translate(-50%, -14px) scale(1.3); }
  40% { transform: translate(-50%, -20px) scale(1.1); }
  100% { transform: translate(-50%, -110px) scale(1.15); opacity: 0; }
}

.screen-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(circle, rgba(255,220,130,0.55), transparent 70%);
  opacity: 0;
}

.screen-flash.active { animation: flash-pulse 0.5s ease; }

@keyframes flash-pulse {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 25;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.2; }
}

/* firework bursts on the podium — radial particles exploding outward */
.fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 24;
}

.firework-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: firework-burst 1s cubic-bezier(.2,.7,.3,1) forwards;
}

@keyframes firework-burst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)) scale(0.3); opacity: 0; }
}

/* spark particles spawned at a boosting car's position on gift */
.spark-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: spark-fly 0.55s ease-out forwards;
}

@keyframes spark-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--fx), var(--fy)) scale(0.2); opacity: 0; }
}

/* ---------- feed ---------- */

.feed {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6) 40%);
  overflow: hidden;
  font-size: 13px;
  z-index: 10;
}

.feed-line {
  opacity: 0;
  animation: feed-in 0.3s ease forwards;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}

.feed-line.nitro { color: #ffa63d; }
.feed-line.finish { color: var(--tiktok-cyan); }
.feed-line.winner { color: var(--gold); font-weight: 700; }
.feed-line.grid-join { color: var(--go-green); }
.feed-line.system { opacity: 0.5; font-style: italic; }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
