:root {
  --accent: #ffcc33;
  --accent-dark: #ffb84d;
  --bg1: #0c1328;
  --bg2: #050712;
  --fg: #e6eef8;
  --muted: rgba(255,255,255,0.6);
  --glass: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
html,body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: radial-gradient(circle at top, var(--bg1), var(--bg2) 70%);
  color: var(--fg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

/* Card (main container) */
.card {
  width: 520px;
  max-width: 95vw;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 28px 34px;
  box-shadow: 0 8px 28px rgba(2,6,23,0.7);
}

/* Header */
h1 { margin: 0 0 8px; font-size: 22px; text-align: center; }
.lead { margin: 0 0 18px; text-align: center; opacity: 0.9; }

/* Next race highlighted */
.next-race {
  background: linear-gradient(135deg, rgba(255,204,51,0.15), rgba(255,153,0,0.07));
  border: 2px solid rgba(255,204,51,0.6);
  box-shadow: 0 0 18px rgba(255,204,51,0.25);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 18px;
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 10px rgba(255,204,51,0.25); transform: translateY(0); }
  to   { box-shadow: 0 0 25px rgba(255,204,51,0.5); transform: translateY(-2px); }
}

.next-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #ffdb6d; }
.next-circuit { opacity: 0.85; margin-bottom: 6px; }
.next-time { font-size: 16px; margin-bottom: 10px; }

.countdown {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace;
  background: rgba(0,0,0,0.3);
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(255,204,51,0.4);
  color: #ffeebb;
}

/* Race list */
.race-list { margin-top: 10px; }
.race {
  border-left: 3px solid rgba(255,255,255,0.1);
  margin: 10px 0;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  transition: background .2s, transform .12s;
}
.race:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.race-name { font-size: 16px; font-weight: 600; }
.circuit { opacity: 0.8; font-size: 14px; margin-bottom: 4px; }
.time { font-size: 14px; }

/* Actions */
.actions { margin-top: 16px; display:flex; gap:8px; justify-content:center; }
button {
  background: #0f1724;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, transform .08s;
}
button:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* Muted footer text */
.muted { opacity: 0.6; font-size: 13px; margin-top: 12px; text-align: center; }

/* Footer / legal links */
.site-footer { margin-top: 18px; text-align:center; font-size:14px; color:var(--muted); }
.footer-nav { margin-bottom: 8px; }
.footer-nav a { color: var(--muted); text-decoration: none; margin: 0 6px; }
.footer-nav a:hover { text-decoration: underline; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(8,8,8,0.92);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(2,6,23,0.7);
}
.cookie-banner.hidden { display: none; }
.cookie-actions { display:flex; gap:8px; }
button.primary { background: var(--accent); color: #000; border: none; padding: 8px 12px; border-radius:6px; }
button.ghost { background: transparent; color: var(--fg); border: 1px solid rgba(255,255,255,0.08); }

/* Responsive */
@media (max-width: 600px) {
  .card { padding: 20px; width: 94vw; }
  .next-title { font-size: 18px; }
  .countdown { font-size: 14px; }
}
