/* Sporty display font for headings + numbers; Anton for the wordmark title */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ZINGO Zone Predictor — mobile-first */
:root {
  --zingo-blue:   #0b5fff;
  --zingo-blue-d: #0844b8;
  --zingo-navy:   #03102e;
  --zingo-green:  #16a34a;
  --zingo-green-d:#0e7a36;
  --zingo-pitch:  #0d8a3e;
  --zingo-yellow: #facc15;
  --zingo-gold:   #f5b400;
  --zingo-lime:   #d1ff15;
  --zingo-pink:   #ec4899;
  --zingo-orange: #f97316;
  --ink:          #0b1220;
  --ink-2:        #475569;
  --line:         #e2e8f0;
  --bg:           #f4f7fb;
  --card:         #ffffff;
  --danger:       #dc2626;
  --shadow:       0 2px 10px rgba(11, 18, 32, 0.06);

  /* 12 group identity colors (used on stripes, pills, group badges) */
  --group-a: #ef4444;   /* red */
  --group-b: #f97316;   /* orange */
  --group-c: #eab308;   /* amber */
  --group-d: #84cc16;   /* lime */
  --group-e: #22c55e;   /* green */
  --group-f: #14b8a6;   /* teal */
  --group-g: #06b6d4;   /* cyan */
  --group-h: #3b82f6;   /* blue */
  --group-i: #8b5cf6;   /* violet */
  --group-j: #ec4899;   /* pink */
  --group-k: #f43f5e;   /* rose */
  --group-l: #a855f7;   /* purple */
}

body {
  background:
    /* Confetti dots scattered across the page */
    radial-gradient(circle at 8% 6%,  rgba(11,95,255,0.10) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 3%, rgba(250,204,21,0.12) 0 5px, transparent 6px),
    radial-gradient(circle at 22% 22%, rgba(22,163,74,0.08) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 14%, rgba(236,72,153,0.10) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 8%, rgba(209,255,21,0.12) 0 5px, transparent 6px),
    radial-gradient(ellipse 80% 24% at 50% 0%, rgba(11,95,255,0.04) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, scroll;
}

/* Group color attribute → CSS variable */
[data-group="A"] { --group-color: var(--group-a); }
[data-group="B"] { --group-color: var(--group-b); }
[data-group="C"] { --group-color: var(--group-c); }
[data-group="D"] { --group-color: var(--group-d); }
[data-group="E"] { --group-color: var(--group-e); }
[data-group="F"] { --group-color: var(--group-f); }
[data-group="G"] { --group-color: var(--group-g); }
[data-group="H"] { --group-color: var(--group-h); }
[data-group="I"] { --group-color: var(--group-i); }
[data-group="J"] { --group-color: var(--group-j); }
[data-group="K"] { --group-color: var(--group-k); }
[data-group="L"] { --group-color: var(--group-l); }

/* Flag styling — used everywhere a team name shows */
.flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(11,18,32,0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
  vertical-align: -2px;
  margin-right: 6px;
  flex-shrink: 0;
}
.flag.lg { width: 36px; height: 26px; }
.flag.xl { width: 56px; height: 40px; }
.flag-fallback {
  background: var(--bg);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 4px;
  border: 1px solid var(--line);
}
.flag-fallback.lg { height: 26px; font-size: 11px; padding: 0 6px; }
.flag-fallback.xl { height: 40px; font-size: 14px; padding: 0 10px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--zingo-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Headings: sporty display + accent ─────────────── */
h1, h2 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;            /* Bebas is intrinsically heavy */
  letter-spacing: 0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(28px, 5.5vw, 40px); }
h2 { font-size: clamp(22px, 3.5vw, 28px); }

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.25;
}

/* Section title in a card: short colored bar underneath */
.card > h2,
.card > h3 {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.card > h2::after,
.card > h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 4px;
  background: linear-gradient(90deg, var(--zingo-blue) 0%, var(--zingo-green) 60%, var(--zingo-yellow) 100%);
  border-radius: 3px;
}

/* Eyebrow text */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zingo-blue);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--zingo-yellow);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.25);
}

/* ── Reveal panels (click-to-expand) ─────────────── */
.reveal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 14px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reveal > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--ink);
  user-select: none;
  transition: background .12s;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::after {
  content: "";
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--zingo-blue);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 800; line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 0 var(--zingo-blue-d);
  transition: transform 0.18s ease, background 0.15s;
  background-image: linear-gradient(135deg, var(--zingo-blue), #0a4dd1);
}
.reveal > summary::after { content: "+"; padding-bottom: 2px; }
.reveal[open] > summary::after { content: "−"; }
.reveal > summary:hover { background: rgba(11,95,255,0.04); }
.reveal[open] > summary { border-bottom: 1px solid var(--line); }
.reveal__body { padding: 14px 18px 18px; }

/* ── Scoring grid (inside reveal) ────────────────── */
.scoring__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 14px;
  font-size: 14px;
}
.scoring__row {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.scoring__row:last-child { border-bottom: 0; }
.scoring__pts {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; line-height: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--zingo-blue), var(--zingo-green));
  color: white;
  padding: 6px 0;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.scoring__row.bonus .scoring__pts {
  background: linear-gradient(135deg, var(--zingo-yellow), var(--zingo-gold));
  color: var(--ink);
}
.scoring__row.bonus .scoring__pts::before { content: "+"; }
.scoring__label { color: var(--ink-2); font-weight: 600; }
.scoring__label strong { color: var(--ink); font-weight: 700; }
.scoring__footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
}
.scoring__footer strong { color: var(--ink); font-weight: 700; }

/* Discreet sign-out link at the bottom of the home page */
.signout-row {
  margin: 18px 0 6px;
  text-align: right;
  font-size: 12px;
}
.signout-row a { color: var(--ink-2); }
.signout-row a:hover { color: var(--ink); text-decoration: underline; }

/* ── How to play (inside reveal) ─────────────────── */
.how-to-play .steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  counter-reset: htp-step;
}
@media (min-width: 640px) {
  .how-to-play .steps { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
.how-to-play .steps li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 62px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  min-height: 56px;
  margin: 0;
}
.how-to-play .steps li::before {
  content: counter(htp-step);
  counter-increment: htp-step;
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--zingo-blue), var(--zingo-blue-d));
  color: var(--zingo-lime);
  border-radius: 50%;
  box-shadow: 0 2px 0 #052478;
}
.how-to-play .steps li strong { color: var(--zingo-blue-d); font-weight: 700; }
@media (min-width: 640px) {
  .how-to-play .steps li {
    padding: 60px 14px 18px;
    text-align: center;
    min-height: 0;
  }
  .how-to-play .steps li::before {
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    font-size: 26px;
  }
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--zingo-blue) 0%, var(--zingo-lime) 100%);
  color: white;
  /* Side padding scales to keep content aligned with .container (max 720px + 16px gutters) */
  padding: 18px max(16px, calc((100% - 688px) / 2)) 36px;
  position: relative;
  overflow: hidden;
  /* Curved sporty bottom edge */
  border-bottom-left-radius: 50% 28px;
  border-bottom-right-radius: 50% 28px;
  margin-bottom: -12px;
}
.header::after {
  content: "";
  position: absolute; inset: 0;
  background:
    /* Pitch stripes */
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.05) 0 60px,
      rgba(255,255,255,0)   60px 120px),
    /* Sparkle dots */
    radial-gradient(circle at 12% 30%, rgba(255,255,255,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 22%, rgba(250,204,21,0.55)  0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, rgba(209,255,21,0.45)  0 2px, transparent 3px),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.20) 0 2px, transparent 3px);
  pointer-events: none;
}
.header .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.5px; font-size: 18px;
  position: relative; z-index: 1;
}
.header .brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--zingo-yellow); box-shadow: 0 0 0 3px rgba(250,204,21,0.25); }

.header .brand-logo {
  display: block;
  height: 60px;
  width: auto;
  margin-bottom: 4px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}
@media (min-width: 720px) {
  .header .brand-logo { height: 76px; }
}

/* Brand row: logo + wordmark + mascot all on one row.
   Title uses Anton italic + extra CSS skew to match the ZINGO logo's heavy
   condensed italic letters. */
.header .brand-row {
  display: flex;
  align-items: center;
  gap: 0;                            /* zero gap — logo and title touch */
  flex-wrap: nowrap;
  position: relative; z-index: 1;
}
.header .brand-row .brand-logo {
  margin: 0 0 0 -22px;            /* more negative left margin: logo sits further left */
  height: 60px;
  width: auto;
  flex-shrink: 0;
}
.header .brand-mascot {
  display: block;
  height: 68px; width: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  position: relative; z-index: 1;
  flex-shrink: 0;
  margin-left: auto;
}
.header .brand-row h1 {
  margin: 0 0 0 -4px;
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(20px, 5.8vw, 46px);
  letter-spacing: 0.015em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 6px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.32);
}
@media (min-width: 640px) {
  .header .brand-row .brand-logo { height: 80px; margin-left: -28px; }
  .header .brand-mascot { height: 92px; }
}
@media (min-width: 900px) {
  .header .brand-row .brand-logo { height: 96px; margin-left: -36px; }
  .header .brand-mascot { height: 110px; }
}
.header h1 {
  font-size: 22px; margin: 8px 0 0; position: relative; z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.header p  {
  margin: 4px 0 0; opacity: 0.95; position: relative; z-index: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

/* Nav — sits inside the header band */
.nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 0;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(11,18,32,0.22);
  border: 1px solid rgba(11,18,32,0.28);
  backdrop-filter: blur(4px);
  transition: background .12s, color .12s, transform .12s;
}
.nav a:hover { background: rgba(11,18,32,0.34); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav a.active {
  background: var(--ink);
  color: var(--zingo-lime);
  border-color: transparent;
  box-shadow: 0 3px 0 #000, 0 6px 14px rgba(0,0,0,0.25);
}

/* Layout */
.container { max-width: 720px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 8px; }

/* Match list */
.match { display: flex; flex-direction: column; gap: 6px; }
.match .teams { font-weight: 700; font-size: 18px; }
.match .kickoff { color: var(--ink-2); font-size: 13px; }
.match .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.match .countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--zingo-blue); }
.match.locked .countdown { color: var(--ink-2); }
.match.completed .countdown { color: var(--zingo-green-d); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
}
.badge.open      { background: rgba(22,163,74,0.12);  color: var(--zingo-green-d); }
.badge.locked    { background: rgba(11,95,255,0.10);  color: var(--zingo-blue-d); }
.badge.completed { background: rgba(15,23,42,0.08);   color: var(--ink-2); }

/* Forms */
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--zingo-blue);
  outline-offset: 1px;
}
.score-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.score-row .sep { padding-bottom: 10px; font-weight: 800; font-size: 22px; text-align: center; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border: 0; border-radius: 10px;
  background: var(--zingo-blue); color: white;
  font: inherit; font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  width: 100%;
  /* Sticker / stamped feel — chunky shadow below */
  box-shadow: 0 3px 0 var(--zingo-blue-d), 0 5px 14px rgba(11,95,255,0.25);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { background: var(--zingo-blue-d); transform: translateY(-1px); box-shadow: 0 4px 0 #022a86, 0 8px 18px rgba(11,95,255,0.30); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--zingo-blue-d), 0 2px 6px rgba(11,95,255,0.20); }
.btn.secondary {
  background: white; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 3px 0 #cbd5e1, 0 4px 12px rgba(11,18,32,0.06);
}
.btn.secondary:hover { background: var(--bg); transform: translateY(-1px); }
.btn.green {
  background: var(--zingo-green);
  box-shadow: 0 3px 0 var(--zingo-green-d), 0 5px 14px rgba(22,163,74,0.30);
}
.btn.green:hover { background: var(--zingo-green-d); transform: translateY(-1px); box-shadow: 0 4px 0 #075c27, 0 8px 18px rgba(22,163,74,0.35); }
.btn.danger {
  background: var(--danger);
  box-shadow: 0 3px 0 #991b1b, 0 5px 14px rgba(220,38,38,0.25);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.row-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.row-inline .btn { width: auto; flex: 1; }

.msg {
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 8px 0;
}
.msg.error   { background: rgba(220,38,38,0.10); color: var(--danger); }
.msg.success { background: rgba(22,163,74,0.12); color: var(--zingo-green-d); }
.msg.info    { background: rgba(11,95,255,0.10); color: var(--zingo-blue-d); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; color: var(--ink-2); letter-spacing: 0.4px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Leaderboard rank pills */
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-weight: 800; font-size: 12px;
  background: var(--bg); color: var(--ink-2);
}
.rank.r1 { background: var(--zingo-yellow); color: var(--ink); }
.rank.r2 { background: #d4d4d8; color: var(--ink); }
.rank.r3 { background: #f59e0b; color: white; }

.footer { text-align: center; color: var(--ink-2); font-size: 12px; padding: 24px 16px 36px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* Share-fallback modal */
.share-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 18, 32, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.share-modal {
  background: var(--card);
  border-radius: var(--zingo-blue, 14px);
  border-radius: 14px;
  padding: 20px 22px 18px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}
.share-modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.share-close {
  position: absolute; top: 8px; right: 12px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 24px; color: var(--ink-2);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.share-close:hover { background: var(--bg); color: var(--ink); }
.share-actions {
  display: grid; gap: 8px;
  margin: 12px 0 10px;
}
.share-actions .btn { width: 100%; }
.share-preview {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-monospace, monospace;
}

@media (min-width: 720px) {
  .header h1 { font-size: 28px; }
  .container { padding: 24px; }
}

/* ============================================================
   Hero — next-fixture spotlight (stadium feel)
   ============================================================ */
.hero {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(250,204,21,0.22) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(22,163,74,0.35) 0%, transparent 60%),
    linear-gradient(135deg, var(--zingo-navy) 0%, #0b3aa6 50%, var(--zingo-blue) 100%);
  color: white;
  border-radius: 18px;
  padding: 22px 18px 22px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(3,16,46,0.32);
}
@media (min-width: 720px) {
  .hero { padding: 28px 24px 28px; }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    /* faint pitch stripes */
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.04) 0 80px,
      rgba(255,255,255,0)   80px 160px),
    /* halftone-style dot grid bottom-right */
    radial-gradient(circle at center, rgba(255,255,255,0.10) 1px, transparent 1.5px);
  background-size: auto, 14px 14px;
  background-position: 0 0, 0 0;
  pointer-events: none;
  opacity: 0.6;
}
/* Mascot now lives INSIDE the CTA row, right beside the Predict button */
.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 0;
}
.hero .cta-mascot {
  height: 80px;
  width: auto;
  /* nudge down so the thumbs-up sits at the button's vertical center */
  margin-top: 14px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.30));
  animation: mascotFloat 3.4s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-1.5deg); }
}
@media (min-width: 720px) {
  .hero .cta-mascot { height: 96px; margin-top: 18px; }
}
.hero > * { position: relative; z-index: 1; }
.hero .matchup-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 6px 0 4px;
}
.hero .matchup-row .flag { width: 32px; height: 24px; margin-right: 0; }
.hero .team-name { font-size: 22px; font-weight: 800; line-height: 1.1; }
.hero .vs-sep { opacity: 0.65; font-weight: 700; font-size: 14px; padding: 0 4px; }
.hero .eyebrow {
  font-size: 12px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase;
  color: #fff; opacity: 1;
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
/* Only the .pulse dot — hide the global eyebrow dot so we don't double up */
.hero .eyebrow::before { display: none; }
.hero .eyebrow .pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--zingo-yellow);
  box-shadow: 0 0 0 0 rgba(250,204,21,0.7); animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(250,204,21,0.75); }
  70%  { box-shadow: 0 0 0 14px rgba(250,204,21,0); }
  100% { box-shadow: 0 0 0 0   rgba(250,204,21,0); }
}
.hero .matchup { font-size: 24px; font-weight: 800; line-height: 1.15; margin: 6px 0 4px; }
.hero .matchup .vs { opacity: 0.7; font-weight: 600; margin: 0 8px; font-size: 16px; vertical-align: middle; }
.hero .meta { font-size: 13px; opacity: 0.92; }
.hero .countdown-big {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.hero .cd-cell {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.hero .cd-cell b {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero .cd-cell span { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; opacity: 0.85; }
.hero .cta { display: inline-flex; margin-top: 14px; }
.hero .cta a {
  background: var(--zingo-yellow); color: #0b1220; font-weight: 800;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 14px rgba(250,204,21,0.35);
}
.hero .cta a:hover { background: #ffe34a; }

/* ============================================================
   Filter chip row
   ============================================================ */
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: white;
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s, border-color .12s;
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip.active {
  background: var(--zingo-lime);
  color: var(--ink); border-color: transparent;
  box-shadow: 0 4px 0 #a3cc10, 0 6px 14px rgba(209,255,21,0.40);
}
.chip .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--zingo-yellow); margin-right:6px; vertical-align: middle; }

/* ============================================================
   Fixture rows (replaces card-per-match for density)
   ============================================================ */
.day-heading {
  margin: 16px 4px 6px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--zingo-blue-d); font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.day-heading::before {
  content: "";
  width: 18px; height: 3px;
  background: var(--zingo-yellow);
  border-radius: 2px;
}

/* Divider between group stage and knockouts */
.ko-divider {
  text-align: center;
  margin: 28px 0 14px;
  position: relative;
}
.ko-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--zingo-yellow), transparent);
  z-index: 0;
}
.ko-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--zingo-yellow);
  color: var(--ink);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.12em;
  padding: 6px 18px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--zingo-gold), 0 6px 14px rgba(245,180,0,0.30);
}
.fixture {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.12s cubic-bezier(.4,.0,.2,1.4), box-shadow 0.15s ease, border-color 0.15s ease;
}
.fixture::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--group-color, var(--line));
  border-radius: 4px 0 0 4px;
}
.fixture:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11,18,32,0.10), 0 2px 4px rgba(11,18,32,0.05);
  border-color: var(--group-color, #cbd5e1);
  text-decoration: none;
}
.fixture.completed { background: linear-gradient(180deg, rgba(22,163,74,0.04) 0%, rgba(22,163,74,0) 100%); }
.fixture.locked { opacity: 0.92; }
.fixture .time-col {
  text-align: center;
}
.fixture .time-col .ko {
  font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px;
}
.fixture .time-col .ko-meta { font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; }
.fixture .teams-col .teams-line {
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.fixture .teams-col .teams-line .flag { margin-right: 4px; }
.fixture .teams-col .teams-line .vs { color: var(--ink-2); font-weight: 500; margin: 0 4px; }
.fixture .teams-col .meta-line {
  font-size: 11.5px; color: var(--ink-2); margin-top: 2px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fixture .group-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  background: var(--group-color, var(--bg));
  color: white;
  border: 0;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase;
}
.fixture .cta-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 78px;
}
.fixture .cta-col .countdown {
  font-size: 11px; font-weight: 700; color: var(--zingo-blue);
  font-variant-numeric: tabular-nums;
}
.fixture.locked .countdown    { color: var(--ink-2); }
.fixture.completed .countdown { color: var(--zingo-green-d); }
.fixture .cta-col .score-final {
  font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
}
.fixture .cta-col .pill-cta {
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--zingo-yellow); color: var(--ink);
}
.fixture.locked .pill-cta { background: var(--bg); color: var(--ink-2); }
.fixture.completed .pill-cta { background: rgba(22,163,74,0.12); color: var(--zingo-green-d); }

.empty {
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  padding: 18px 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: white;
}

/* ============================================================
   Group teams (small horizontal list)
   ============================================================ */
.group-teams {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 6px 4px 8px;
}
.group-teams .team {
  background: white; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.group-teams .team .flag { margin-right: 0; }

/* Wallchart-style group panel */
.group-panel {
  background:
    radial-gradient(100% 80% at 0% 0%, rgba(11,95,255,0.06) 0%, transparent 60%),
    white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 10px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.group-panel .group-letter-badge {
  position: absolute; top: 12px; right: 12px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900;
  background: var(--group-color, linear-gradient(135deg, var(--zingo-blue), var(--zingo-green)));
  color: white; border-radius: 14px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.18), 0 10px 22px rgba(11,18,32,0.20);
  transform: rotate(-3deg);
  letter-spacing: 0;
}
.group-panel .group-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-2);
}
.group-panel .group-teams-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 10px 0 4px;
}
.group-panel .group-team {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.group-panel .group-team .flag { width: 26px; height: 19px; margin-right: 0; }

/* POTT card — mascot accent */
.pott-card {
  position: relative;
  overflow: hidden;
}
.pott-card::after {
  content: "";
  position: absolute;
  right: -16px; bottom: -16px;
  width: 130px; height: 170px;
  background: url('../assets/zingo-mascot.png') no-repeat right bottom / contain;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.10));
  pointer-events: none;
}
@media (max-width: 480px) {
  .pott-card::after { width: 90px; height: 120px; right: -10px; opacity: 0.85; }
}
.pott-card > * { position: relative; z-index: 1; }

/* Trophy / winner marker */
.pott-winner-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--zingo-gold), #f7c43a);
  color: var(--ink);
  border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(245,180,0,0.35);
}

/* Standings table */
.standings { font-size: 13px; }
.standings th { font-size: 11px; }
.standings td, .standings th { padding: 6px 4px; }
.standings tr.qual {
  background: linear-gradient(90deg, rgba(22,163,74,0.06) 0%, rgba(22,163,74,0) 100%);
}
.standings tr.qual td:first-child .rank-mini {
  background: var(--zingo-green);
  color: white;
}
.rank-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg); color: var(--ink-2);
  font-size: 11px; font-weight: 800;
}
.standings .team-cell {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
}
.standings .team-cell .flag { margin: 0; }
.legend {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-2);
  font-style: italic;
}

/* ============================================================
   Auth gate
   ============================================================ */
.auth-gate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 0 auto 14px;
  position: relative;
  overflow: hidden;
}
.auth-gate::before {
  content: "";
  position: absolute;
  right: -10px; top: -6px;
  width: 110px; height: 140px;
  background: url('../assets/zingo-mascot.png') no-repeat right top / contain;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}
@media (max-width: 480px) {
  .auth-gate::before { width: 80px; height: 100px; }
}
.auth-gate h2 { margin: 0 0 6px; max-width: 60%; }
.auth-gate p.lede,
.auth-gate .auth-tabs,
.auth-gate form { position: relative; z-index: 1; }
.auth-gate p.lede { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.auth-tab {
  flex: 1; padding: 8px; border: 0; border-radius: 7px;
  font: inherit; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--ink-2);
}
.auth-tab.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.user-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 14px;
  background: white; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px;
  font-size: 13px;
}
.user-strip .who strong { color: var(--ink); }
.user-strip .who { color: var(--ink-2); }
.user-strip button { width: auto; padding: 6px 12px; font-size: 12px; }

/* ============================================================
   v6.2: Hero banner header — simplified, full-bleed (2026-05-21)
   ============================================================ */
.header {
  background: var(--ink) !important;
  padding: 0 !important;
  margin: 0 0 0 !important;
  position: relative;
  overflow: hidden !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  color: #fff;
}
.header::after { display: none !important; }

/* Hide old brand elements — the banner already includes the logo/wordmark/mascot */
.header .brand-row,
.header > .brand-logo,
.header > .brand-mascot { display: none !important; }

.header .hero-banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--ink);
  overflow: hidden;
  border-bottom-left-radius: 50% 36px;
  border-bottom-right-radius: 50% 36px;
}
.header .hero-banner picture {
  display: block;
  width: 100%;
}
.header .hero-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: cover;
  object-position: center 38%;
}

/* Desktop: don't let the banner grow huge — cap width and center, show full aspect */
@media (min-width: 721px) {
  .header .hero-banner {
    max-width: 980px;
    margin: 0 auto;
  }
}

/* Subpage H1 + description: sit on the dark band below the banner */
.header > h1,
.header > p {
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 14px;
}
.header > h1 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 4.5vw, 30px);
  letter-spacing: 0.01em;
  padding-top: 10px;
  padding-bottom: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header > p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  padding-top: 2px;
  padding-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* Nav row */
.header #nav {
  padding: 10px 14px 12px;
  margin: 0;
}
.header .nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.header .nav::-webkit-scrollbar { display: none; }
.header .nav a {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ---------- Mobile (<=720px) ---------- */
@media (max-width: 720px) {
  .header .hero-banner {
    border-bottom-left-radius: 50% 26px;
    border-bottom-right-radius: 50% 26px;
  }
  .header .hero-banner img {
    max-height: 220px;
    object-position: center 42%;
  }
  .header .nav { justify-content: flex-start; }
  .header .nav a { padding: 6px 11px; font-size: 12.5px; }
}

/* ---------- Very small phones (<=380px) ---------- */
@media (max-width: 380px) {
  .header .hero-banner img { max-height: 190px; }
  .header > h1 { font-size: 20px; }
}
