/* 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:
    /* Big soft brand-color blobs in the gutters/edges */
    radial-gradient(circle 420px at  -5% 20%, rgba(11,95,255,0.28),  transparent 70%),
    radial-gradient(circle 380px at 105% 35%, rgba(22,163,74,0.26),  transparent 70%),
    radial-gradient(circle 360px at  -5% 65%, rgba(250,204,21,0.22), transparent 70%),
    radial-gradient(circle 420px at 105% 80%, rgba(236,72,153,0.22), transparent 70%),
    radial-gradient(circle 320px at  50% 110%, rgba(209,255,21,0.30), transparent 70%),
    /* Stage-light spotlight just below the banner */
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(11,95,255,0.20), transparent 65%),
    /* Sky-to-pitch base gradient */
    linear-gradient(180deg,
      #c2d8f1 0%,
      #e0ebf6 28%,
      #eaf0f4 55%,
      #d9e8d8 82%,
      #b3d4af 100%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

/* 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 lives in the rule at line ~40 — don't reset it here */
  -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(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  transition: background .12s, color .12s, transform .12s;
}
.nav a:hover { background: rgba(255,255,255,0.20); color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav a.active {
  background: var(--zingo-yellow);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 3px 0 #c89500, 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); }

/* ---------- Predict page: form card ---------- */
.predict-card {
  background:
    linear-gradient(180deg, rgba(11,95,255,0.03) 0%, rgba(11,95,255,0) 80px),
    var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--zingo-blue) 0%, var(--zingo-green) 60%, var(--zingo-yellow) 100%) 1;
  box-shadow: 0 6px 24px rgba(11,18,32,0.08);
  padding: 20px;
}
.predict-card .predict-head h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 0;
}
.predict-card .predict-head h2::after { display: none; }
.predict-card .predict-sub {
  margin: 6px 0 18px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.predict-card .pf-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.predict-card .pf-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.predict-card .score-tiles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.predict-card .score-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .12s, box-shadow .12s, transform .08s;
}
.predict-card .score-tile.home {
  background: linear-gradient(180deg, #f1f6ff 0%, #fff 70%);
  border-color: #cfdcff;
}
.predict-card .score-tile.away {
  background: linear-gradient(180deg, #fff7e0 0%, #fff 70%);
  border-color: #ffe0a3;
}
.predict-card .score-tile:focus-within {
  box-shadow: 0 0 0 3px rgba(11,95,255,0.18);
  border-color: var(--zingo-blue);
}
.predict-card .st-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
}
.predict-card .st-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.predict-card .score-select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 28px;
  text-align: center;
  text-align-last: center;
  padding: 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 14px) 60%, calc(100% - 9px) 60%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.predict-card .score-divider {
  align-self: center;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--ink-2);
  padding: 0 4px;
}

.predict-card .zingo-select {
  font-weight: 600;
  font-size: 15px;
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.predict-card .zingo-select:focus {
  outline: none;
  border-color: var(--zingo-blue);
  box-shadow: 0 0 0 3px rgba(11,95,255,0.18);
}

.predict-card .predict-submit {
  margin-top: 18px;
  font-size: 15px;
  padding: 14px 18px;
}

@media (max-width: 380px) {
  .predict-card .st-team { font-size: 12px; }
  .predict-card .score-select { font-size: 24px; }
}

.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.predicted {
  border-color: var(--zingo-lime);
  box-shadow: 0 0 0 2px var(--zingo-lime), 0 4px 14px rgba(209,255,21,0.25);
  background: linear-gradient(180deg, rgba(209,255,21,0.07) 0%, rgba(209,255,21,0) 60%);
}
.fixture.predicted:hover {
  border-color: var(--zingo-lime);
  box-shadow: 0 0 0 2px var(--zingo-lime), 0 8px 22px rgba(209,255,21,0.35);
}
.fixture .your-pick {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink);
  background: rgba(209,255,21,0.22);
  border: 1px solid rgba(180,220,0,0.55);
  padding: 3px 8px;
  border-radius: 999px;
  max-width: 100%;
}
.fixture .your-pick .yp-label {
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.fixture .your-pick .yp-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.fixture .your-pick .yp-zz {
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.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); }
.fixture.predicted .pill-cta { background: var(--zingo-green); color: #fff; }

.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: 18px;
  padding: 0;
  box-shadow: 0 12px 40px rgba(11,18,32,0.10);
  max-width: 480px;
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
}
/* Landing hero strip — gradient, mascot in its own column, no overlap */
.auth-gate .ag-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 20px 18px 18px;
  background:
    radial-gradient(circle 280px at 110% -30%, rgba(250,204,21,0.45), transparent 60%),
    radial-gradient(circle 200px at -20% 110%, rgba(22,163,74,0.40), transparent 60%),
    linear-gradient(135deg, #0b5fff 0%, #1648c2 55%, #03102e 100%);
  color: #fff;
  overflow: hidden;
}
.auth-gate .ag-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url('../assets/footballer.svg') no-repeat 105% 110% / 160px;
  opacity: 0.10;
  pointer-events: none;
}
.auth-gate .ag-hero-text { position: relative; z-index: 1; min-width: 0; }
.auth-gate .ag-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zingo-yellow);
  background: rgba(0,0,0,0.20);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.auth-gate .ag-hero h2 {
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(20px, 5.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #fff;
  max-width: none;
}
.auth-gate .ag-hero h2::after { display: none; }
.auth-gate .ag-hero h2 .ag-grad {
  background: linear-gradient(90deg, var(--zingo-yellow), var(--zingo-lime));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-gate .ag-hero .lede {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: none;
}
.auth-gate .ag-hero .lede strong { color: var(--zingo-yellow); }
.auth-gate .ag-mascot {
  width: 110px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
  margin: 0;
  justify-self: end;
}

/* Prize teaser chips */
.auth-gate .ag-prize-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(11,95,255,0.05) 0%, rgba(11,95,255,0) 100%);
  border-bottom: 1px solid var(--line);
}
.auth-gate .ag-prize {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  flex: 1 1 auto;
  min-width: 110px;
}
.auth-gate .ag-prize b {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.auth-gate .ag-prize em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* Form body */
.auth-gate > .auth-tabs,
.auth-gate > form,
.auth-gate > p { margin-left: 18px; margin-right: 18px; }
.auth-gate > .auth-tabs { margin-top: 16px; }
.auth-gate > form { margin-bottom: 2px; }
.auth-gate > p:last-child { margin-bottom: 18px; }

.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); }

/* Mobile tweaks */
@media (max-width: 460px) {
  .auth-gate .ag-hero {
    grid-template-columns: 1fr 86px;
    padding: 18px 16px 14px;
  }
  .auth-gate .ag-mascot { width: 86px; }
  .auth-gate .ag-prize { min-width: calc(50% - 3px); }
}
@media (max-width: 360px) {
  .auth-gate .ag-hero {
    grid-template-columns: 1fr 72px;
  }
  .auth-gate .ag-mascot { width: 72px; }
}

/* Inside .footer: compact account chip on its own line. Empty when signed out. */
.footer .user-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 0 auto 10px;
  font-size: 12px;
  width: fit-content;
  max-width: 100%;
}
.footer .user-strip .who { color: var(--ink-2); }
.footer .user-strip .who strong { color: var(--ink); }
.footer .user-strip button {
  width: auto;
  padding: 4px 10px;
  font-size: 11px;
  background: var(--ink);
  box-shadow: none;
}
.footer .user-strip button:hover { background: var(--zingo-blue); }
.footer .user-strip:empty { display: none; }

/* ============================================================
   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: cap banner width and center — shows full image, no crop */
@media (min-width: 721px) {
  .header .hero-banner {
    max-width: 660px;
    margin: 0 auto;
  }
}

/* Subpage H1: visually hidden (kept in DOM for SEO + screen readers).
   The page title is in the document <title>, and the banner + nav already
   identify the page visually. */
.header > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* (Legacy <p> sub already removed from every page; rule kept harmless in case
   something re-introduces one.) */
.header > p {
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0 14px;
}
.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 22px;   /* extra bottom space so the active pill's drop shadow isn't clipped by .header { overflow: hidden } */
  margin: 0;
}
.header .nav {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;        /* let the active pill's shadow render below */
  padding: 4px 0;             /* room above + below for the shadow */
  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; }
}

/* ---------- Leaderboard tabs (v8: wrapping pills, no scroll) ---------- */
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 8px;
  margin: 0 0 4px;
}
.lb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform .08s, background .12s, border-color .12s;
}
.lb-tab:hover { text-decoration: none; transform: translateY(-1px); border-color: var(--zingo-blue); }
.lb-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(11,18,32,0.18);
}
.lb-tab .lb-tab-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.1;
}
.lb-tab.active .lb-tab-prize { color: var(--zingo-yellow); }

.lb-prize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 4px;
}
.lb-prize-header .lb-prize-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
}
.lb-prize-header .lb-prize-amount {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--zingo-blue);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.pc-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}
.pc-status.provisional { background: #fef3c7; color: #92400e; }
.pc-status.live        { background: #dbeafe; color: #1e3a8a; }
.pc-status.confirmed   { background: #d1fae5; color: #065f46; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table thead th {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: left;
  padding: 6px 6px 8px;
  border-bottom: 2px solid var(--line);
}
.lb-table thead th.num { text-align: right; }
.lb-table tbody td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.lb-table tbody td.num {
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.lb-table tbody td.num strong {
  color: var(--zingo-blue);
  font-weight: 800;
  font-size: 18px;
}
.lb-table tbody td:nth-child(2) > div:first-child {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.lb-table tbody tr:hover { background: rgba(11,95,255,0.03); }
.lb-table .tied-top { background: rgba(250, 204, 21, 0.10); }
.lb-table .tied-top:hover { background: rgba(250, 204, 21, 0.16); }
.lb-table .tied-pill {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--zingo-yellow);
  color: var(--ink);
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: 2px;
}
.lb-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-2);
}

@media (max-width: 540px) {
  .lb-prize-header { flex-direction: column; align-items: flex-start; }
  .lb-prize-header .pc-status { align-self: flex-start; }
  .lb-tab { padding: 7px 11px; }
  .lb-tab .lb-tab-label { font-size: 12px; }
}

/* ---------- Share button + fallback modal (v8) ---------- */
.share-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--zingo-yellow) 0%, var(--zingo-gold) 100%);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 #c89500, 0 6px 16px rgba(245,180,0,0.4);
  text-decoration: none;
  transition: transform .08s, box-shadow .12s;
}
.share-cta:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 4px 0 #c89500, 0 7px 18px rgba(245,180,0,0.5); }
.share-cta:active { transform: translateY(1px); box-shadow: 0 2px 0 #c89500, 0 4px 10px rgba(245,180,0,0.35); }

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: share-fade .15s ease-out;
}
@keyframes share-fade { from { opacity: 0; } to { opacity: 1; } }
.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,18,32,0.55);
  backdrop-filter: blur(2px);
}
.share-modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 380px);
  background: var(--card);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: share-rise .18s ease-out;
}
@keyframes share-rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.share-modal-card h3 {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.share-modal .share-close {
  position: absolute;
  top: 6px; right: 10px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.share-modal .share-close:hover { background: var(--bg); color: var(--ink); }
.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share-buttons .btn { padding: 10px 12px; font-size: 13.5px; font-weight: 700; text-align: center; }
.share-buttons .share-wa { background: #25d366; color: #fff; box-shadow: 0 3px 0 #128c7e; }
.share-buttons .share-wa:hover { background: #1ebe5d; }
.share-buttons .share-tw { background: #0f1419; color: #fff; box-shadow: 0 3px 0 #000; }
.share-buttons .share-tw:hover { background: #2d3338; }
.share-buttons .share-fb { background: #1877f2; color: #fff; box-shadow: 0 3px 0 #0a59c8; }
.share-buttons .share-fb:hover { background: #1567d3; }
.share-buttons .share-copy { grid-column: 1 / -1; background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.share-buttons .share-copy:hover { background: var(--ink-2); }

/* ---------- Admin: duplicate-accounts review ---------- */
.dup-cluster {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  background: var(--bg);
}
.dup-cluster-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.dup-cluster-head strong { font-size: 14px; }
.dup-strength {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dup-strength.dup-client_uuid { background: #fee2e2; color: #991b1b; }
.dup-strength.dup-fingerprint { background: #fef3c7; color: #92400e; }
.dup-strength.dup-ip          { background: #e0e7ff; color: #3730a3; }
.dup-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.dup-cluster-val {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 10px;
  word-break: break-all;
}
.dup-users { width: 100%; font-size: 13px; }
.dup-users th { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.dup-users td { padding: 6px; border-bottom: 1px solid var(--line); }
.dup-users tr:last-child td { border-bottom: 0; }

/* ---------- Tiebreaker summary (locked state) ---------- */
.tb-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.tb-summary .tb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.tb-summary .tb-row .tb-label { color: var(--ink-2); }
.tb-summary .tb-row strong {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--zingo-blue);
  letter-spacing: 0.02em;
}

/* ---------- Tiebreaker popup modal ---------- */
.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 16, 46, 0.62);
  backdrop-filter: blur(2px);
}
.tb-modal-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(3, 16, 46, 0.35);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px 22px 18px;
}
.tb-modal-card label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--ink);
}
.tb-modal-card select,
.tb-modal-card input[type="number"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.tb-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 8px;
}
.tb-close:hover { color: var(--ink); }
.tb-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.tb-modal-buttons .btn {
  flex: 1 1 0;
  margin: 0;
}
@media (max-width: 420px) {
  .tb-modal-buttons { flex-direction: column-reverse; }
}
