/* ── Soccer Superfan Trivia — night match under floodlights ─────────
   Deep pitch green with mowing stripes, floodlight corner glows,
   chalk touchline headline, kit-shirt answer bars with number
   patches, LED scoreboard result, referee's notebook review. */

:root {
  --pitch: #14522c;
  --pitch-dark: #0c3a1f;
  --stripe: rgba(255, 255, 255, 0.03);
  --chalk: #f4f7f2;
  --chalk-soft: rgba(244, 247, 242, 0.65);
  --gold-led: #ffb52e;
  --kit: #ffffff;
  --kit-ink: #163a24;
  --accent: #7fdc9a;
  --red-card: #d93b2b;
  --board: #101512;
  --err: #ff9d8a;
  --display: 'Archivo Black', sans-serif;
  --cond: 'Barlow Condensed', sans-serif;
  --mono: 'Chivo Mono', monospace;
}

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

.hidden { display: none !important; }

body {
  font-family: var(--cond);
  font-weight: 500;
  color: var(--chalk);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(0deg, var(--stripe) 0 70px, transparent 70px 140px),
    linear-gradient(180deg, var(--pitch), var(--pitch-dark));
  background-attachment: fixed;
  min-height: 100vh;
}

.stadium { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.floodlight {
  position: fixed;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 224, 0.16), transparent 65%);
  pointer-events: none;
}

.fl-l { left: -140px; }
.fl-r { right: -140px; }

.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 24px; position: relative; }

main { flex: 1 0 auto; padding-bottom: 60px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 52px 24px 8px; }

.kicker {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 8.5vw, 3.6rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--chalk);
  text-shadow: 0 0 24px rgba(244, 247, 242, 0.25), 2px 2px 0 rgba(12, 58, 31, 0.8);
  letter-spacing: 0.01em;
}

.sub { color: var(--chalk-soft); font-size: 1.1rem; max-width: 440px; margin: 14px auto 0; }

/* ── Pitch card ───────────────────────────────────────────────────── */
.pitch-card {
  position: relative;
  background: rgba(12, 58, 31, 0.55);
  border: 2.5px solid rgba(244, 247, 242, 0.85);
  border-radius: 14px;
  padding: 28px 30px 26px;
  margin-top: 28px;
  overflow: hidden;
}

.center-circle {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 190px;
  border: 2.5px solid rgba(244, 247, 242, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.q-counter,
.minute {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* question */
.q-text {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.28;
  text-align: center;
  margin-bottom: 20px;
}

.choices { display: grid; gap: 10px; position: relative; }

.choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--kit-ink);
  background: var(--kit);
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.choice-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); }
.choice-btn:disabled { cursor: default; }

.kit-num {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--kit);
  background: var(--pitch);
  border-radius: 8px;
}

.choice-btn.picked { background: var(--accent); }
.choice-btn.picked .kit-num { background: var(--kit-ink); }

/* ── Gate ─────────────────────────────────────────────────────────── */
.gate { text-align: center; }

.gate h2 {
  font-family: var(--display);
  font-size: 1.9rem;
  text-transform: uppercase;
  color: var(--chalk);
}

.lead { color: var(--chalk-soft); font-size: 1.05rem; margin: 8px 0 22px; }

.field { margin-bottom: 16px; text-align: left; }

label {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--accent);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--chalk);
  background: rgba(244, 247, 242, 0.08);
  border: 2px solid rgba(244, 247, 242, 0.3);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-color: var(--accent); }
input.error { border-color: var(--err); }
input::placeholder { color: rgba(244, 247, 242, 0.35); }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kit-ink);
  background: var(--chalk);
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  cursor: pointer;
  transition: transform 0.12s ease;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--gold-led); outline-offset: 3px; }

.btn-block { width: 100%; }

.form-error { color: var(--err); font-weight: 700; text-align: center; margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(22, 58, 36, 0.35);
  border-top-color: var(--kit-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scoreboard result ────────────────────────────────────────────── */
.scoreboard {
  text-align: center;
  background: var(--board);
  border: 3px solid #2a332c;
  border-radius: 14px;
  padding: 32px 28px;
  margin-top: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.board-tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 181, 46, 0.7);
  margin-bottom: 8px;
}

.board-score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: 1;
  color: var(--gold-led);
  text-shadow: 0 0 18px rgba(255, 181, 46, 0.6);
  letter-spacing: 0.08em;
}

.board-title {
  font-family: var(--display);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--chalk);
  margin-top: 14px;
}

.board-desc { color: var(--chalk-soft); font-size: 1.02rem; margin-top: 8px; max-width: 430px; margin-left: auto; margin-right: auto; }

/* review — referee's notebook */
.review { display: grid; gap: 10px; margin-top: 22px; }

.review-card {
  background: var(--kit);
  color: var(--kit-ink);
  border-radius: 10px;
  padding: 13px 16px;
  border-left: 6px solid #2f9e57;
}

.review-card.missed { border-left-color: var(--red-card); }

.review-q { font-weight: 700; font-size: 1.05rem; }

.review-a { font-size: 0.95rem; margin-top: 3px; color: #5a6b5e; }

.review-a strong.right { color: #2f9e57; }
.review-a strong.wrong { color: var(--red-card); }

.challenge-line { text-align: center; color: var(--chalk-soft); font-size: 1rem; margin-top: 22px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  color: rgba(244, 247, 242, 0.45);
  font-size: 0.9rem;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .pitch-card { padding: 22px 18px 20px; }
  .scoreboard { padding: 26px 18px; }
}
