@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=DM+Sans:wght@400;600;800&display=swap');

:root {
  --bg: #1d130d;
  --bg2: #2b1c13;
  --panel: #33231a;
  --line: #4d3626;
  --ink: #fbf3e6;
  --muted: #c8b29a;
  --then: #e9a53b;
  --then-deep: #8a5a14;
  --now: #3cc7cc;
  --now-deep: #13676b;
  --good: #7cc46a;
  --bad: #e2574c;
  --c0: #d9572b;
  --c1: #c79a1e;
  --c2: #5e9a4a;
  --c3: #9b4a7a;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at top, #3a2416 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
input { font: inherit; }
.hidden { display: none !important; }

.logo { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; }
.logo .then { color: var(--then); }
.logo .now { color: var(--now); }
.logo .vs { color: var(--muted); font-style: italic; font-weight: 600; font-size: 0.55em; vertical-align: 0.25em; margin: 0 0.15em; }

.team-then { color: var(--then); }
.team-now { color: var(--now); }
.chip { display: inline-block; padding: 0.2em 0.7em; border-radius: 999px; font-weight: 600; }
.chip.then { background: color-mix(in srgb, var(--then) 22%, transparent); color: var(--then); }
.chip.now { background: color-mix(in srgb, var(--now) 22%, transparent); color: var(--now); }

.c0 { background: var(--c0); } .c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }

.timerbar { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.timerbar > div { height: 100%; background: linear-gradient(90deg, var(--then), var(--now)); border-radius: 999px; transition: width 0.25s linear; }

.offline {
  position: fixed; left: 50%; top: 10px; transform: translateX(-50%);
  background: var(--bad); color: white; padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; z-index: 50;
}

@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop 0.35s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes fadeup { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.fadeup { animation: fadeup 0.4s ease-out both; }
