/* Forensic World Cup 26 - poster-matched theme
   Navy ground / cream panels / red + gold accents.
   Anton (display + ribbons) + Inter (body + figures). */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-bg: #0A1A40;
  --navy-bg2: #0E2452;
  --navy: #122E63;
  --navy-deep: #0A1E47;
  --red: #C81E2C;
  --red-deep: #9E1620;
  --gold: #F3B71D;
  --gold-deep: #DE9A12;
  --gold-soft: #FAD46B;
  --cream: #F4F0E4;
  --cream-2: #FBF8F0;
  --white: #FFFFFF;
  --ink: #0E2A5E;
  --ink-muted: #46587C;
  --hair: rgba(14, 42, 94, 0.14);
  --hair-2: rgba(14, 42, 94, 0.07);
  --on-navy: rgba(244, 240, 228, 0.74);
  --on-navy-faint: rgba(244, 240, 228, 0.5);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anton", "Arial Narrow", Impact, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 16px;
  --r-sm: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 85% -6%, rgba(243, 183, 29, 0.10), transparent 60%),
    radial-gradient(720px 460px at -6% 0%, rgba(200, 30, 44, 0.12), transparent 55%),
    linear-gradient(160deg, var(--navy-bg) 0%, var(--navy-bg2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; }
.link { color: var(--gold); font-weight: 700; text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 36px); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* Tricolour edge strip under the top bar */
.topbar::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66% 100%);
}

/* ---- Header A ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(8, 22, 52, 0.94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(244, 240, 228, 0.14); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand .crest { flex: 0 0 auto; }
.brand .lock { display: flex; flex-direction: column; line-height: 1; }
.brand .lock-sm { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.brand .lock-big { font-family: var(--display); text-transform: uppercase; font-size: 22px; letter-spacing: 0.02em; margin-top: 3px; }
.nav-desktop { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.navlink { position: relative; color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 0; }
.navlink.is-active { color: var(--white); }
.navlink.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--gold); }
.acct-wrap { position: relative; padding-left: 22px; border-left: 1px solid rgba(244, 240, 228, 0.14); }
.acct-btn { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; color: var(--on-navy); font-family: inherit; padding: 6px 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); border: 1px solid rgba(244, 240, 228, 0.14); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--gold); flex: 0 0 auto; }
.acct-name { font-size: 13px; font-weight: 600; }
.caret { color: var(--on-navy-faint); font-size: 12px; }
.acct-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--gold); color: var(--navy-deep); text-decoration: none; font-weight: 800; font-size: 13px; }
.acct-panel { position: absolute; top: calc(100% + 14px); right: 0; width: 280px; background: #0c1f48; border: 1px solid rgba(244, 240, 228, 0.14); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); padding: 16px; z-index: 60; }
.acct-panel[hidden] { display: none; }
.acct-h { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-faint); }
.acct-nm { font-weight: 800; font-size: 18px; margin: 2px 0 12px; color: var(--white); }
.acct-teams { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.acct-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(244, 240, 228, 0.14); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--white); }
.acct-chip .flag { margin: 0; }
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(244, 240, 228, 0.14); font-size: 13px; color: var(--on-navy); }
.acct-row b { color: var(--white); font-variant-numeric: tabular-nums; }
.acct-switch { display: block; margin-top: 12px; background: var(--gold); color: var(--navy-deep); text-align: center; text-decoration: none; border-radius: 10px; padding: 12px; font-weight: 800; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(244, 240, 228, 0.14); color: var(--white); width: 44px; height: 44px; border-radius: 11px; place-items: center; cursor: pointer; }

/* Mobile full-screen menu */
.mobile-menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: linear-gradient(170deg, #0a1c44, #081431); transform: translateY(-101%); transition: transform 0.28s ease; visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mm-top { display: flex; align-items: center; padding-top: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(244, 240, 228, 0.14); }
.mm-x { margin-left: auto; background: none; border: 0; color: var(--white); width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.mm-nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mm-nav a { color: var(--on-navy); text-decoration: none; font-family: var(--display); text-transform: uppercase; font-size: 30px; letter-spacing: 0.02em; padding: 9px 14px; }
.mm-nav a.is-active { color: var(--gold); }
.mm-foot { display: flex; align-items: center; gap: 11px; padding: 18px clamp(16px, 4vw, 36px); border-top: 1px solid rgba(244, 240, 228, 0.14); }
.mm-who .nm { font-weight: 700; color: var(--white); }
.mm-who .teams { font-size: 12px; color: var(--on-navy-faint); margin-top: 1px; }
.mm-switch { margin-left: auto; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(244, 240, 228, 0.14); color: var(--white); border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---- Hero ---- */
main { padding: clamp(40px, 6vw, 76px) 0 64px; display: block; }
.eyebrow { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; font-weight: 800; color: var(--white); }
.eyebrow::before, .eyebrow::after { content: "\2605"; color: var(--gold); font-size: 13px; }
.display { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(30px, 5.5vw, 50px); text-wrap: balance; max-width: 20ch; color: var(--white); }
.lead { margin: 0; color: var(--on-navy); font-size: clamp(16px, 2.2vw, 19px); max-width: 56ch; text-wrap: balance; }
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 40px);
  margin-bottom: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(rgba(10, 26, 64, 0.62), rgba(10, 26, 64, 0.90)),
    url("/assets/img/header.jpg") center / cover no-repeat,
    var(--navy-deep);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.hero::after { display: none; }
.hero--tight { padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 40px); }
.hero--welcome {
  text-align: center;
  padding: clamp(44px, 8vw, 104px) clamp(20px, 5vw, 48px);
}
.hero--welcome .eyebrow { justify-content: center; }
.hero--welcome .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; font-size: clamp(40px, 9vw, 78px); max-width: 16ch; margin-inline: auto; }
.hero--welcome .lead { margin-inline: auto; }

/* Dashboard position header (split + cream card) with its own image */
.hero--dash {
  background:
    linear-gradient(rgba(10, 26, 64, 0.62), rgba(10, 26, 64, 0.90)),
    url("/assets/img/dashboard.jpg") center / cover no-repeat,
    var(--navy-deep);
}
.pos-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; }
.pos-left .display { font-size: clamp(24px, 3.6vw, 38px); max-width: 16ch; margin-bottom: 16px; }
.pos-teams-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--on-navy-faint); }
.team-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.team-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 15px; color: var(--white); }
.team-chip--strong { /* strong and weak share one chip style - no colour split */ }
.team-chip .flag { margin: 0; }
.pos-card { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 4px 20px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }
.pos-card .crow { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(14, 42, 94, 0.12); }
.pos-card .crow:last-child { border-bottom: 0; }
.pos-card .clab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-muted); }
.pos-card .cnum { font-weight: 800; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pos-card .cnum.rank { color: var(--red); }
@media (max-width: 680px) { .pos-split { grid-template-columns: 1fr; } }

/* ---- Ribbon section headers ---- */
.section-title { display: flex; align-items: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 auto 24px; padding: 8px 22px; border-radius: 8px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(18px, 3vw, 26px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.28); text-align: center; }
.section-title::before, .section-title::after { content: "\2605"; color: var(--gold); font-size: 0.62em; font-family: var(--sans); }
.section-title--accent { background: var(--red); }

.block { margin-top: clamp(46px, 7vw, 68px); }
.block--narrow { max-width: 420px; margin-inline: auto; }
.prose { margin: 0 auto 12px; color: var(--on-navy); max-width: 64ch; text-align: center; }
.note { margin: 14px auto 0; color: var(--on-navy-faint); font-size: 13.5px; max-width: 64ch; text-align: center; }

/* ---- My line (dashboard stats) ---- */
.myline { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 48px); }
.myline-item { display: flex; flex-direction: column; gap: 2px; }
.myline-num { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--gold); font-variant-numeric: tabular-nums; }
.myline-lab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--on-navy-faint); }

/* ---- Team ledger cards ---- */
.teamcards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.teamcard { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26); }
.tc-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.tc-hd .flag { margin: 0; width: 28px; height: 20px; }
.tc-nm { font-weight: 800; font-size: 19px; }
.tc-hd .pill { margin-left: auto; }
.tc-row { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #3a4a6b; }
.tc-row .v { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.tc-tot { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.tc-tot .tl { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.tc-tot .tv { font-family: var(--mono); font-weight: 700; font-size: 26px; color: var(--red); }
.tc-next { margin-top: 14px; background: var(--navy); border-radius: 10px; padding: 11px 14px; color: #fff; }
.tc-next-lab { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.tc-next-fx { display: flex; align-items: center; gap: 9px; }
.tc-next-fx .flag { margin: 0; width: 20px; height: 14px; }
.tc-next-fx .opp { font-weight: 800; font-size: 15px; }
.tc-next-fx .when { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--on-navy); white-space: nowrap; }
.tri { color: var(--ink-muted); font-weight: 600; font-size: 0.82em; }

/* Early-tournament banner */
.earlybanner { background: rgba(243, 183, 29, 0.14); border: 1px solid rgba(243, 183, 29, 0.4); color: var(--cream); border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: clamp(20px, 3vw, 30px); }
.earlybanner b { color: var(--white); }

/* Your games - schedule rows */
.sched { background: var(--cream); color: var(--ink); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26); overflow: hidden; }
.sg-row { display: grid; grid-template-columns: 92px 1fr 52px; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid rgba(14, 42, 94, 0.12); }
.sg-row:last-child { border-bottom: 0; }
.sg-d { font-size: 12px; color: var(--ink-muted); line-height: 1.35; }
.sg-d b { display: block; color: var(--ink); font-weight: 700; }
.sg-m { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sg-t { display: flex; align-items: center; gap: 7px; font-size: 15px; color: #3a4a6b; font-weight: 600; }
.sg-t.home { justify-content: flex-end; flex: 1; }
.sg-t.away { flex: 1; }
.sg-t .flag { width: 22px; height: 16px; margin: 0; }
.sg-t.mine { color: var(--ink); font-weight: 800; }
.sg-sc { font-family: var(--mono); font-weight: 700; color: var(--ink); min-width: 44px; text-align: center; }
.sg-sc .v { color: var(--ink-muted); font-weight: 600; }
.sg-st { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); text-align: right; }
.sg-st.ft { color: var(--red); font-weight: 700; }

.pill { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 10px; border-radius: 999px; }
.pill--strong, .pill--weak { background: rgba(14, 42, 94, 0.1); color: var(--ink-muted); }

/* ---- Podium ---- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.podium-slot { background: var(--cream); color: var(--ink); border: 0; border-top: 5px solid var(--navy); border-radius: var(--r); padding: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24); }
.podium-slot--gold { border-top-color: var(--gold); }
.podium-slot--silver { border-top-color: #9fb0c9; }
.podium-slot--bronze { border-top-color: #b07a43; }
.podium-pos { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--navy); }
.podium-desc { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-top: 2px; }
.podium-player { margin-top: 14px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.podium-team { color: var(--ink-muted); font-size: 14px; }
.podium-tbd { color: var(--ink-muted); font-weight: 700; font-size: 16px; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26); }
table.league { width: 100%; border-collapse: collapse; background: var(--cream-2); color: var(--ink); font-size: 15px; min-width: 520px; }
table.league thead th { text-align: left; padding: 13px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; font-weight: 800; background: var(--navy); position: sticky; top: 0; }
table.league td { padding: 13px 14px; border-bottom: 1px solid var(--hair-2); vertical-align: middle; }
table.league tbody tr:last-child td { border-bottom: 0; }
table.league tbody tr:nth-child(even) { background: rgba(14, 42, 94, 0.03); }
.col-num { text-align: right; white-space: nowrap; }
.col-rank { width: 44px; }
.col-conf { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.pts { color: var(--red); font-weight: 800; }
.rank { font-weight: 800; color: var(--navy); }
tr.is-me td { background: rgba(243, 183, 29, 0.13); }
tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
tr.is-me .rank { color: var(--red); }
.you { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--red); padding: 2px 7px; border-radius: 999px; margin-left: 6px; font-weight: 800; }
.tm { display: inline-block; font-size: 13px; padding: 3px 9px; border-radius: 7px; margin: 2px 4px 2px 0; }
.tm--strong, .tm--weak { background: rgba(14, 42, 94, 0.08); color: var(--ink); }
.ladder { min-width: 320px; }

.stage-tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(14, 42, 94, 0.1); color: var(--ink-muted); white-space: nowrap; font-weight: 600; }
.stage-winner, .stage-runner_up, .stage-third { background: var(--gold); color: var(--navy-deep); }
.stage-active { color: var(--navy); }

/* ---- Name grid (welcome) ---- */
.namegrid-wrap { margin-top: clamp(28px, 5vw, 44px); }
.namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.namebtn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 12px; border-radius: var(--r-sm); background: var(--cream); border: 0; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); transition: transform .1s ease, box-shadow .15s ease; }

/* ---- Fixtures ---- */
.fixtures { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fixture { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.fixture-stage { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 8px; }
.fixture-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fx-team { font-weight: 800; }
.fx-home { text-align: right; }
.fx-away { text-align: left; }
.fx-score { font-size: 18px; font-weight: 800; white-space: nowrap; color: var(--red); font-variant-numeric: tabular-nums; }
.fx-vs { color: var(--ink-muted); font-weight: 700; }
.fixture-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-muted); text-align: center; }
.fx-mine { color: var(--red); font-weight: 800; }

/* Team flags */
.flag { display: inline-block; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; vertical-align: -3px; margin-right: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.flag--lg { width: 30px; height: 22px; vertical-align: -5px; margin-right: 10px; }
.tm .flag { width: 18px; height: 13px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); }
@media (max-width: 560px) {
  table.league { min-width: 0; }
  table.league th, table.league td { padding: 11px 10px; }
  .col-hide-sm { display: none; }
  .tm { font-size: 12px; margin: 2px 3px 2px 0; }
}
.fx-team .flag { margin: 0 6px; }
.fx-home .flag { margin-left: 0; }
.fx-away .flag { margin-right: 0; }

/* Last-updated status bar */
.statusbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 28px); padding: 11px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; color: var(--on-navy); }
.statusbar .sb-live { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.statusbar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(243, 183, 29, 0.18); }
.statusbar b { color: var(--white); font-weight: 700; }
.statusbar .sb-sep { color: var(--on-navy-faint); }

/* Explainer card + played meta */
.explainer { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: 16px 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.explainer p { margin: 0 0 8px; font-size: 14px; color: var(--ink); }
.explainer p:last-child { margin-bottom: 0; }
.explainer b { color: var(--navy); }
.stat--played .stat-num { color: var(--navy); }
.empty { background: var(--cream); color: var(--ink-muted); border-radius: var(--r); padding: 28px; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }

/* ---- Forms / buttons ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field-lab { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-navy); }
.input { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--cream-2); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-sm); color: var(--ink); font-family: inherit; font-size: 15px; }
.input--sm { min-height: 40px; padding: 7px 10px; }
.input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 46px; padding: 11px 22px; border: 0; border-radius: var(--r-sm); background: var(--red); color: #fff; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; letter-spacing: 0.01em; }
.btn-mini { min-height: 36px; padding: 6px 12px; border-radius: 8px; background: rgba(14, 42, 94, 0.1); color: var(--ink); border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, 0.22); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-sm); background: var(--gold); color: var(--navy-deep); text-decoration: none; font-size: 14px; font-weight: 800; }

.flash { padding: 12px 16px; border-radius: var(--r-sm); margin: 8px auto 20px; font-size: 14px; font-weight: 700; max-width: 520px; }
.flash--ok { background: var(--gold); color: var(--navy-deep); }
.flash--err { background: var(--red); color: #fff; }

/* ---- Admin stage grid ---- */
.stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.stage-row { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 10px; background: var(--cream); color: var(--ink); border-radius: var(--r-sm); padding: 8px 12px; }
.stage-team { font-weight: 700; font-size: 14px; }
.sticky-save { position: sticky; bottom: 12px; margin-top: 18px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--navy-deep); margin-top: 52px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; }
.footer-credit { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.footer-powered { color: var(--on-navy-faint); font-size: 13px; }
.footer-banks { color: var(--gold); font-weight: 800; letter-spacing: -0.01em; font-size: 18px; text-decoration: none; }
.footer-tag { color: var(--on-navy-faint); font-size: 13px; width: 100%; }
.footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Hover ---- */
@media (hover: hover) {
  .navlink:hover { color: var(--white); }
  .acct-btn:hover { color: var(--white); }
  .menu-btn:hover, .mm-x:hover { border-color: var(--gold); }
  .namebtn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.3); }
  .btn:hover { filter: brightness(1.07); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
  .btn-mini:hover { background: rgba(14, 42, 94, 0.18); }
  .footer-banks:hover { text-decoration: underline; text-underline-offset: 3px; }
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Responsive ---- */
@media (max-width: 880px) { .form--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .nav-desktop, .acct-wrap { display: none; }
  .menu-btn { display: grid; }
  .topbar-in { min-height: 64px; gap: 12px; }
  .brand .lock-big { font-size: 18px; }
}
@media (max-width: 760px) {
  .teamcards { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .form--grid { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 1fr 130px; }
}
body.menu-open { overflow: hidden; }
@media (max-width: 380px) {
  .namegrid { grid-template-columns: 1fr 1fr; }
  .myline { gap: 18px; }
  .teamcard-stats { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
