@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #070707;
  --panel: #111110;
  --panel-2: #191816;
  --line: #2a2825;
  --text: #f3eee4;      /* warm white */
  --muted: #8f8a80;
  --accent: #e3a82b;    /* mustard */
  --accent-ink: #070707;
  --gold: #e3a82b;
  --silver: #c9c5bd;
  --bronze: #b9773f;
  --good: #57c27a;
  --bad: #e5604f;
  --display: "Anton", "Bebas Neue", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); letter-spacing: .02em; text-transform: uppercase; }
.cond { font-family: var(--cond); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.demo-banner {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); z-index: 99;
  font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; box-shadow: 0 4px 20px #0008;
}
.demo-banner a { color: inherit; }

.live-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--bad); margin-right: .4em; vertical-align: middle; animation: pulse 1.4s infinite; }
.live-dot.off { background: var(--muted); animation: none; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

@keyframes flash { 0% { background: color-mix(in srgb, var(--accent) 45%, transparent); } 100% { background: transparent; } }
.flash { animation: flash 2.2s ease-out; }

/* ---------- animations (fx.js) ---------- */
.fx-pop {
  position: absolute; left: 50%; top: 0; pointer-events: none; z-index: 5;
  font: 1em/1 var(--display); color: var(--accent-ink); background: var(--accent);
  padding: .15em .4em; border-radius: .3em; white-space: nowrap; box-shadow: 0 6px 24px #0009;
}
.move { display: inline-block; font: 600 .45em/1 var(--body); margin-left: .35em; vertical-align: middle; animation: movefade 6s ease-out forwards; }
.move.up { color: var(--good); } .move.down { color: var(--bad); }
@keyframes movefade { 0%, 70% { opacity: 1 } 100% { opacity: 0 } }

.fx-takeover {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); text-align: center;
}
.fx-takeover.tone-dark { background: var(--bg); color: var(--text); }
.fx-takeover.tone-dark .fx-title { color: var(--accent); }
.fx-stripes {
  position: absolute; inset: -50%;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(0,0,0,.07) 60px 120px);
  animation: stripes 2.4s linear infinite;
}
.tone-dark .fx-stripes { background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(227,168,43,.07) 60px 120px); }
@keyframes stripes { to { transform: translateX(240px); } }
.fx-inner { position: relative; padding: 0 5vw; }
.fx-kicker { font: 600 clamp(14px, 3.2vh, 40px)/1 var(--cond); letter-spacing: .4em; text-transform: uppercase; }
.fx-title { font: clamp(64px, 24vh, 300px)/.9 var(--display); text-transform: uppercase; margin: 2vh 0; letter-spacing: .01em; }
.fx-sub { font: clamp(20px, 6vh, 80px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.fx-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

.urgent { animation: urgent 1s ease-in-out infinite; color: var(--bad) !important; }
@keyframes urgent { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.machine-chip { display: inline-block; padding: .15em .5em; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; }
