:root {
  --bg: #0a0a0c;
  --panel: #131318;
  --panel-2: #1a1a21;
  --line: #2a2a33;
  --text: #f4f1ea;
  --muted: #8b8b97;
  --amber: #ff7a18;
  --amber-soft: #ffb066;
  --hot: #ff3b30;
  --ok: #38d18a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* atmosphere */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 0%, rgba(255,122,24,0.16), transparent 60%),
    radial-gradient(40% 40% at 10% 100%, rgba(255,59,48,0.10), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar, .hero, .foot { position: relative; z-index: 2; }

/* top bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Anton", sans-serif; font-size: 24px; letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 16px var(--amber);
}
.live-count {
  font-family: "Spline Sans Mono", monospace; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hot);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

/* hero layout */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px);
  max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  font-family: "Spline Sans Mono", monospace; color: var(--amber-soft);
  letter-spacing: 3px; font-size: 13px; margin-bottom: 18px;
  animation: rise 0.7s ease both;
}
h1 {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(54px, 8.5vw, 112px); line-height: 0.92; letter-spacing: 1px;
  text-transform: uppercase;
  animation: rise 0.7s ease 0.05s both;
}
h1 .accent { color: var(--amber); }
.lede {
  color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 46ch;
  margin: 26px 0 22px; animation: rise 0.7s ease 0.12s both;
}
.ticks { list-style: none; display: grid; gap: 10px; animation: rise 0.7s ease 0.18s both; }
.ticks li {
  position: relative; padding-left: 26px; color: var(--text); font-size: 15px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 2px;
  background: var(--amber); box-shadow: 6px 0 0 var(--amber);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* the scoreboard card */
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
  box-shadow: 0 0 0 1px rgba(255,122,24,0.08), 0 40px 80px -30px rgba(0,0,0,0.8),
              inset 0 1px 0 rgba(255,255,255,0.04);
  animation: rise 0.7s ease 0.2s both;
}
.card-head { margin-bottom: 18px; }
.chip {
  font-family: "Spline Sans Mono", monospace; font-size: 12px; letter-spacing: 2px;
  color: var(--bg); background: var(--amber); padding: 6px 12px; border-radius: 6px;
  font-weight: 700;
}

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.5px; }
.field small { display: block; color: #5f5f6b; font-size: 12px; margin-top: 6px; }

input[type="tel"], select, input[type="number"] {
  width: 100%; background: #0d0d11; border: 1px solid var(--line); color: var(--text);
  padding: 13px 14px; border-radius: 10px; font-family: "Archivo", sans-serif; font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,122,24,0.18);
}
select { appearance: none; cursor: pointer; }

/* trigger blocks */
.trigger {
  background: #0e0e12; border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 12px; padding: 16px; margin-bottom: 14px;
}
.trigger.urgent { border-left-color: var(--hot); }
.trigger-label {
  display: flex; align-items: center; gap: 10px;
  font-family: "Anton", sans-serif; letter-spacing: 1px; text-transform: uppercase; font-size: 16px;
  margin-bottom: 8px;
}
.trigger .num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: var(--amber); color: var(--bg); font-size: 14px;
}
.trigger.urgent .num { background: var(--hot); }
.trigger p { color: var(--muted); font-size: 14px; }
.trigger p strong { color: var(--text); }
.stepper { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.stepper input[type="number"] {
  width: 88px; font-family: "Spline Sans Mono", monospace; font-size: 22px; font-weight: 700;
  text-align: center; color: var(--amber-soft);
}
.unit { color: var(--muted); font-size: 14px; }
.inline-num {
  width: 56px !important; display: inline-block; padding: 4px 6px !important;
  font-family: "Spline Sans Mono", monospace; font-weight: 700; text-align: center;
  color: var(--amber-soft); font-size: 16px;
}

/* consent + submit */
.consent {
  display: flex; gap: 11px; align-items: flex-start; margin: 18px 0;
  font-size: 13px; color: var(--muted);
}
.consent input { margin-top: 3px; accent-color: var(--amber); width: 16px; height: 16px; }

button#submit {
  width: 100%; border: none; cursor: pointer; border-radius: 12px; padding: 16px;
  font-family: "Anton", sans-serif; letter-spacing: 1.5px; font-size: 18px; text-transform: uppercase;
  color: var(--bg); background: var(--amber);
  transition: transform 0.12s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 10px 30px -10px rgba(255,122,24,0.6);
}
button#submit:hover { transform: translateY(-2px); background: var(--amber-soft); box-shadow: 0 16px 40px -12px rgba(255,122,24,0.7); }
button#submit:active { transform: translateY(0); }
button#submit:disabled { opacity: 0.6; cursor: wait; }

.msg { margin-top: 12px; font-size: 14px; min-height: 18px; text-align: center; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--hot); }

/* unsubscribe */
.unsub-toggle {
  display: block; margin: 16px auto 0; background: none; border: none; cursor: pointer;
  color: #5f5f6b; font-size: 13px; text-decoration: underline; font-family: inherit;
}
.unsub { display: flex; gap: 10px; margin-top: 12px; }
.unsub input { flex: 1; }
.unsub button {
  background: #0d0d11; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0 16px; cursor: pointer; font-family: inherit; font-size: 14px;
}
.unsub button:hover { border-color: var(--hot); color: var(--hot); }

.foot {
  text-align: center; color: #4d4d57; font-size: 12px;
  padding: 40px 20px 56px; border-top: 1px solid var(--line); margin-top: 40px;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------- multi-step card additions ---------- */
.step { animation: rise 0.4s ease both; }
.loading { color: var(--muted); font-family: "Spline Sans Mono", monospace; padding: 30px 4px; }
.ell { animation: blink 1.2s steps(3,end) infinite; }
@keyframes blink { 0%,100%{opacity:.2} 50%{opacity:1} }

/* schedule list */
.schedule { max-height: 460px; overflow-y: auto; margin: 4px -6px 0; padding: 0 6px; }
.schedule::-webkit-scrollbar { width: 8px; }
.schedule::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.day-group { margin-bottom: 18px; }
.day-label {
  font-family: "Spline Sans Mono", monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--amber-soft); margin: 6px 0 10px;
  position: sticky; top: 0; background: linear-gradient(180deg, var(--panel) 70%, transparent);
  padding: 4px 0; z-index: 2;
}
.game-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: #0e0e12; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 9px; color: var(--text);
  font-family: inherit; transition: border-color .15s, transform .1s, background .15s;
}
.game-card:hover { border-color: var(--amber); transform: translateX(2px); }
.game-card.selected { border-color: var(--amber); background: #19140c; box-shadow: inset 0 0 0 1px var(--amber); }
.gc-teams { display: flex; flex-direction: column; gap: 2px; }
.gc-line { display: flex; align-items: baseline; gap: 8px; }
.gc-tri { font-family: "Anton", sans-serif; letter-spacing: 1px; font-size: 17px; width: 46px; }
.gc-name { color: var(--muted); font-size: 13px; }
.gc-at { color: #4d4d57; font-size: 11px; font-family: "Spline Sans Mono", monospace; }
.gc-meta { text-align: right; flex-shrink: 0; }
.gc-time { font-family: "Spline Sans Mono", monospace; font-size: 13px; color: var(--amber-soft); }
.gc-status { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* selected-game banner on step 2 */
.selected-game {
  background: #19140c; border: 1px solid var(--amber); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 18px;
  font-family: "Anton", sans-serif; letter-spacing: 1px; font-size: 18px;
}
.selected-game small {
  display: block; font-family: "Spline Sans Mono", monospace; font-size: 11px;
  letter-spacing: 1px; color: var(--amber-soft); margin-top: 4px; font-weight: 400;
}

/* shared primary buttons */
#sendCode, #confirmCode {
  width: 100%; border: none; cursor: pointer; border-radius: 12px; padding: 16px;
  font-family: "Anton", sans-serif; letter-spacing: 1.5px; font-size: 18px; text-transform: uppercase;
  color: var(--bg); background: var(--amber); margin-top: 4px;
  transition: transform .12s, box-shadow .18s, background .18s;
  box-shadow: 0 10px 30px -10px rgba(255,122,24,.6);
}
#sendCode:hover, #confirmCode:hover { transform: translateY(-2px); background: var(--amber-soft); }
#sendCode:disabled, #confirmCode:disabled { opacity: .6; cursor: wait; transform: none; }

/* back link */
.back-link {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-family: "Spline Sans Mono", monospace; font-size: 12px; letter-spacing: 1px;
  padding: 0 0 12px; text-transform: lowercase;
}
.back-link:hover { color: var(--amber); }

/* verify step */
.verify-copy { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.verify-copy strong { color: var(--text); }
.code-input {
  width: 100%; text-align: center; letter-spacing: 14px; font-size: 30px;
  font-family: "Spline Sans Mono", monospace; color: var(--amber-soft);
  background: #0d0d11; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 12px; margin-bottom: 14px;
}
.code-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,122,24,.18); }
.resend {
  display: block; margin: 12px auto 0; background: none; border: none; cursor: pointer;
  color: #5f5f6b; font-size: 13px; text-decoration: underline; font-family: inherit;
}
.resend:hover { color: var(--amber-soft); }

/* done */
.done { text-align: center; padding: 24px 8px 8px; animation: rise .5s ease both; }
.done .check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 32px; color: var(--bg);
  background: var(--ok); box-shadow: 0 0 30px -6px var(--ok);
}
.done h3 { font-family: "Anton", sans-serif; font-size: 30px; letter-spacing: 1px; text-transform: uppercase; }
.done p { color: var(--muted); margin: 10px 0 22px; font-size: 15px; }
.another {
  background: #0d0d11; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 20px; cursor: pointer; font-family: inherit; font-size: 14px;
}
.another:hover { border-color: var(--amber); color: var(--amber); }
