/* ============================================================
   World Cup 2026 — "2000s FIFA / Pro Evo" skin
   Glossy steel panels, chrome italics, skewed menu buttons,
   electric-blue + lime accents, LED score boxes.
   ============================================================ */
:root {
  --bg0: #05070f;
  --bg1: #0a1430;
  --ink: #eaf2ff;
  --muted: #93a6cc;
  --faint: #6c80a6;

  --cyan: #36c6ff;
  --cyan-dk: #1ba5ee;
  --lime: #b6ff3a;
  --lime-dk: #7fce14;
  --gold: #ffce3a;
  --night: #8b9bff;
  --red: #ff5a52;

  --steel-top: #243a66;
  --steel-mid: #15233f;
  --steel-bot: #0d1830;
  --edge: #34507f;
  --edge-lo: #1c2c4d;

  --radius: 8px;
  --display: "Arial Narrow", "Oswald", "Roboto Condensed", "Franklin Gothic Medium", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Bahnschrift", "DIN Alternate", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 600px at 50% -8%, rgba(54,150,255,.18), transparent 62%),
    linear-gradient(180deg, #0a1530 0%, #070c1b 55%, var(--bg0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
/* faint diagonal sheen + vignette overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255,255,255,.018) 0 2px, transparent 2px 30px),
    radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}
main, .topbar, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { height: 12px; width: 12px; }
::-webkit-scrollbar-track { background: #0a1226; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2c477a, #16243f); border-radius: 6px; border: 2px solid #0a1226; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3e6bb0, #1c3556); }

.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #d3e2ff 44%, #93add9 56%, #c2d4f2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.65));
}

/* ---- Top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, #16243f 0%, #0c1730 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--cyan-dk), transparent) 1;
  box-shadow: 0 4px 18px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 11px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem;
}
.brand .ball { font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(54,198,255,.6)); -webkit-text-fill-color: initial; }
.brand small { color: var(--cyan); font-weight: 700; letter-spacing: .08em; -webkit-text-fill-color: var(--cyan); filter: none; }

nav.tabs { display: flex; gap: 9px; margin-left: 6px; }
nav.tabs a {
  position: relative; z-index: 0;
  padding: 8px 18px; color: #bcd0f0;
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; font-size: .92rem;
  transition: color .12s, transform .12s;
}
nav.tabs a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: skewX(-12deg);
  background: linear-gradient(180deg, #26395f, #101d36);
  border: 1px solid var(--edge); border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.5);
  transition: background .12s, box-shadow .12s, border-color .12s;
}
nav.tabs a:hover { color: #fff; }
nav.tabs a:hover::before { background: linear-gradient(180deg, #32508c, #182c52); }
nav.tabs a.active { color: #04121f; }
nav.tabs a.active::before {
  background: linear-gradient(180deg, #8ee4ff, var(--cyan-dk));
  border-color: #b6f0ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 0 16px rgba(54,180,255,.6);
}

.meta-line {
  margin-left: auto; text-align: right;
  font-family: var(--mono); font-size: .76rem; color: var(--faint); line-height: 1.5;
}
.meta-line .src { color: var(--lime); font-weight: 700; text-shadow: 0 0 8px rgba(182,255,58,.4); }

main { max-width: 1120px; margin: 0 auto; padding: 26px 20px 90px; }

/* ---- Headings ---- */
.page-head { margin: 6px 0 24px; }
.page-head h1 {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; font-size: 2.1rem; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #d3e2ff 46%, #8fabd8 56%, #bcd0f0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.6));
  display: flex; align-items: center; gap: 12px;
}
.page-head h1 .flag { width: 1.5em; height: 1.12em; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: .92rem; }

.section-title {
  display: flex; align-items: center; gap: 12px; margin: 30px 0 12px;
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; font-size: 1rem; color: #cfe0ff;
}
.section-title::before {
  content: ""; width: 5px; height: 18px; transform: skewX(-12deg);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dk));
  box-shadow: 0 0 10px rgba(54,180,255,.7); border-radius: 1px;
}
.section-title .hr { flex: 1; height: 2px; background: linear-gradient(90deg, var(--edge), transparent); }

/* ---- Day groups ---- */
.day-group { margin-bottom: 16px; scroll-margin-top: 76px; }
.day-head {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 10px;
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; color: #e7f0ff;
}
.day-head .today-pill {
  font-family: var(--sans); font-style: normal; font-size: .64rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: #04121f;
  background: linear-gradient(180deg, #8ee4ff, var(--cyan-dk));
  padding: 3px 9px; border-radius: 3px; box-shadow: 0 0 12px rgba(54,180,255,.6);
}
.day-head .line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--edge), transparent); }

/* ---- Glossy panel (shared) ---- */
.matches { display: flex; flex-direction: column; gap: 9px; }
.match {
  position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center;
  padding: 12px 16px 12px 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--steel-top) 0%, var(--steel-mid) 46%, var(--steel-bot) 100%);
  border: 1px solid var(--edge); border-left: 4px solid var(--cyan-dk);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.45);
}
.match::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.07), transparent);
  border-radius: var(--radius) var(--radius) 0 0; pointer-events: none;
}
.match.finished { border-left-color: #46618f; }
.match.overnight { border-left-color: var(--night); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 16px rgba(139,155,255,.22), 0 4px 14px rgba(0,0,0,.45); }
.match.on-path { border-left-color: var(--lime); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 16px rgba(182,255,58,.28), 0 4px 14px rgba(0,0,0,.45); }

.m-time { text-align: center; font-family: var(--mono); }
.m-time .ko { font-size: 1.18rem; font-weight: 700; color: #fff; text-shadow: 0 0 8px rgba(54,198,255,.4); }
.m-time .ft {
  display: inline-block; color: var(--lime); font-weight: 800; font-size: .72rem; letter-spacing: .12em;
  border: 1px solid rgba(182,255,58,.45); border-radius: 3px; padding: 1px 6px; text-shadow: 0 0 6px rgba(182,255,58,.5);
}
.m-time .moon { display: block; font-size: .9rem; margin-top: 3px; filter: drop-shadow(0 0 5px rgba(139,155,255,.7)); }

.m-body { min-width: 0; }
.m-meta { font-size: .76rem; color: var(--faint); margin-bottom: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m-meta .mdate {
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--cyan); font-size: .82rem;
}
.m-meta .night-note { color: var(--night); font-weight: 700; }
.m-meta .pending { color: var(--gold); font-weight: 700; }

.fixture { display: flex; align-items: center; gap: 10px; }
.fixture .side { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.fixture .side.home { justify-content: flex-end; text-align: right; }
.fixture .side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fixture .vs { color: var(--faint); font-family: var(--mono); font-size: .85rem; }
.fixture .score {
  font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--cyan);
  background: linear-gradient(180deg, #060c1c, #0c1a33); border: 1px solid #20406e; border-radius: 5px;
  padding: 3px 12px; white-space: nowrap;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.7), 0 0 10px rgba(54,180,255,.25); text-shadow: 0 0 8px rgba(54,198,255,.7);
}
.fixture .winner .nm { color: #fff; }
.fixture .loser .nm { color: var(--muted); }

/* Win/Draw/Win prediction bar (upcoming fixtures) */
.winbar {
  display: flex; height: 11px; margin-top: 9px; border-radius: 4px; overflow: hidden;
  background: #0b1426; border: 1px solid #1d3358; box-shadow: inset 0 1px 2px rgba(0,0,0,.6);
}
.winbar .seg { height: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.winbar .seg + .seg { border-left: 1px solid rgba(0,0,0,.4); }
.winbar .seg.d { background: linear-gradient(180deg, #5d6e8a, #38465d); }
.winbar-cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: 4px; }
.winbar-cap .d { color: var(--faint); }

/* flag image */
.flag {
  width: 1.45em; height: 1.08em; object-fit: cover; border-radius: 2px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.5); vertical-align: -0.14em;
}
a.lnk { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
a.lnk:hover .nm { color: var(--cyan); }

/* code badge (fallback) */
.badge {
  font-family: var(--mono); font-size: .7rem; font-weight: 700; color: var(--muted);
  background: #16243f; border: 1px solid var(--edge); border-radius: 5px; padding: 2px 6px; flex-shrink: 0;
}

/* slot (knockout placeholder) */
.slot-label { color: var(--muted); font-style: italic; }
.slot-proj { font-style: normal; }
.prob { color: var(--faint); font-family: var(--mono); font-size: .8rem; }

/* ---- Standings table ---- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--edge);
  background: linear-gradient(180deg, #15243f, #0c1730);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 14px rgba(0,0,0,.45);
}
table.standings { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 440px; }
table.standings th, table.standings td { padding: 10px 10px; text-align: center; }
table.standings thead th {
  font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .76rem; color: #aebfe0;
  background: linear-gradient(180deg, #20335a, #16243f); border-bottom: 2px solid var(--edge);
}
table.standings td.team-cell, table.standings th.team-cell { text-align: left; }
table.standings tr td { border-bottom: 1px solid rgba(255,255,255,.05); }
table.standings tbody tr:nth-child(even) td { background: rgba(255,255,255,.012); }
table.standings .pos { font-family: var(--mono); color: var(--faint); }
table.standings tr.qual td { background: rgba(182,255,58,.07); }
table.standings tr.qual .pos { color: var(--lime); font-weight: 800; text-shadow: 0 0 8px rgba(182,255,58,.5); }
table.standings tr.third td { background: rgba(255,206,58,.07); }
table.standings tr.third .pos { color: var(--gold); font-weight: 800; }
table.standings .pts { font-weight: 800; color: #fff; }
.qual-key { font-size: .76rem; color: var(--faint); margin-top: 8px; display: flex; gap: 18px; flex-wrap: wrap; }
.qual-key .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.qual-key .dot.q { background: var(--lime); box-shadow: 0 0 8px rgba(182,255,58,.6); }
.qual-key .dot.t { background: var(--gold); box-shadow: 0 0 8px rgba(255,206,58,.6); }

/* ---- Cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.card {
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--steel-top), var(--steel-bot));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 14px rgba(0,0,0,.45);
}

/* qualification bars */
.qbars { display: flex; flex-direction: column; gap: 11px; }
.qbar-row { display: grid; grid-template-columns: 140px 1fr 54px; gap: 12px; align-items: center; font-size: .9rem; }
.qbar-track {
  height: 14px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #060c1c, #0d1a33); border: 1px solid #1d3358;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7);
}
.qbar-fill {
  display: block; height: 100%; min-width: 2px; border-radius: 3px;
  background: linear-gradient(180deg, #8ee4ff, var(--cyan-dk));
  box-shadow: 0 0 12px rgba(54,180,255,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
.qbar-fill.dim { background: linear-gradient(180deg, #ffe17a, #e0a51f); box-shadow: 0 0 12px rgba(255,206,58,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.qbar-row .pct { font-family: var(--mono); text-align: right; color: #dce8ff; font-weight: 700; }

/* ---- Path (most likely route) ---- */
.path { display: flex; flex-direction: column; gap: 9px; }
.path-step {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center;
  padding: 13px 16px; border-radius: var(--radius); border: 1px solid var(--edge); border-left: 4px solid var(--lime);
  background: linear-gradient(180deg, var(--steel-top), var(--steel-bot));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 4px 12px rgba(0,0,0,.4);
}
.ps-round { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: var(--lime); text-shadow: 0 0 10px rgba(182,255,58,.4); }
.ps-info { min-width: 0; }
.ps-when { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.ps-when .moon { color: var(--night); }
.ps-venue { font-size: .78rem; color: var(--faint); margin: 2px 0 6px; }
.ps-opp { font-size: 1.02rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ps-opp b { color: #fff; }
.ps-stats { display: flex; gap: 9px; }
.ps-stat { min-width: 86px; text-align: center; padding: 9px 12px; border-radius: 9px; background: rgba(4,8,18,.5); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.ps-stat .v { display: block; font-family: var(--mono); font-weight: 800; font-size: 1.35rem; line-height: 1.05; }
.ps-stat .l { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.ps-stat.reach .v { color: var(--cyan); text-shadow: 0 0 8px rgba(54,198,255,.4); }
.ps-stat.face .v { color: #fff; }
.ps-stat.win .v { color: var(--lime); text-shadow: 0 0 8px rgba(182,255,58,.4); }
.reach-strip { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.reach-strip .chip {
  border: 1px solid var(--edge); border-radius: 5px; padding: 7px 13px; font-size: .82rem;
  background: linear-gradient(180deg, #1c2c4d, #111d36); box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.reach-strip .chip b { font-family: var(--mono); color: #fff; }

/* ---- Knockout bracket ---- */
.bracket-scroll { overflow-x: auto; padding-bottom: 14px; }
.bracket { position: relative; display: flex; gap: 26px; min-width: 1180px; }
.connectors { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.bracket .round { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; min-width: 200px; flex: 1; justify-content: space-around; }
.bracket .round-title {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; font-size: .82rem; color: var(--cyan); margin-bottom: 4px;
}
.tie {
  position: relative; padding: 9px 11px; border-radius: 7px; font-size: .82rem;
  background: linear-gradient(180deg, var(--steel-top), var(--steel-bot));
  border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 10px rgba(0,0,0,.4);
}
.tie.on-path { border-color: var(--lime); box-shadow: 0 0 14px rgba(182,255,58,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.tie .tie-meta { color: var(--faint); font-size: .68rem; font-family: var(--mono); margin-bottom: 7px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.tie .tie-meta .moon { color: var(--night); }
.tie .slot-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 3px 0; }
.tie .slot-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tie .slot-row .p { font-family: var(--mono); color: var(--cyan); font-size: .74rem; }

/* title odds */
.odds-list { display: flex; flex-direction: column; gap: 7px; }
.odds-row { display: grid; grid-template-columns: 1fr 130px 50px; gap: 12px; align-items: center; font-size: .9rem; }
.odds-row .otrack {
  height: 12px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #060c1c, #0d1a33); border: 1px solid #2a2f1d; box-shadow: inset 0 1px 3px rgba(0,0,0,.7);
}
.odds-row .ofill { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: linear-gradient(180deg, #ffe17a, #e0a51f); box-shadow: 0 0 12px rgba(255,206,58,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.odds-row .opct { font-family: var(--mono); text-align: right; color: var(--gold); font-weight: 700; }

/* ---- Teams index ---- */
.group-block { margin-bottom: 18px; }
.group-tag {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; font-size: .95rem; color: #cfe0ff; margin: 16px 0 9px;
  display: inline-flex; align-items: center; gap: 9px;
}
.group-tag::before {
  content: ""; width: 5px; height: 16px; transform: skewX(-12deg);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dk)); box-shadow: 0 0 10px rgba(54,180,255,.7);
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.team-btn {
  position: relative; z-index: 0; display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; color: var(--ink); font-weight: 700; transition: transform .12s, color .12s;
}
.team-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-9deg);
  background: linear-gradient(180deg, var(--steel-top) 0%, var(--steel-mid) 55%, var(--steel-bot) 100%);
  border: 1px solid var(--edge); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 3px 9px rgba(0,0,0,.45);
  transition: background .12s, box-shadow .12s, border-color .12s;
}
.team-btn:hover { transform: translateY(-2px); color: #fff; }
.team-btn:hover::before {
  background: linear-gradient(180deg, #2f4d88, #16294d);
  border-color: var(--cyan); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 18px rgba(54,180,255,.45);
}
.team-btn .flag { width: 1.85em; height: 1.38em; }
.team-btn .tb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-btn .tb-code { font-family: var(--mono); font-size: .7rem; color: var(--faint); }

/* ---- Controls / misc ---- */
.controls { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; flex-wrap: wrap; }
.controls label { color: var(--muted); font-size: .85rem; }
select {
  background: linear-gradient(180deg, #1c2c4d, #101d36); color: var(--ink);
  border: 1px solid var(--edge); border-radius: 6px; padding: 8px 12px; font-size: .88rem; font-family: var(--sans);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(54,180,255,.3); }
.note { color: var(--muted); font-size: .82rem; }
.note b { color: var(--cyan); }
.empty { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--edge); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.computing { color: var(--gold); }

footer { max-width: 1120px; margin: 0 auto; padding: 0 20px 44px; color: var(--faint); font-size: .78rem; }
footer a { color: var(--muted); text-decoration: underline; }

/* wider canvas for the bracket page */
main.wide { max-width: min(1680px, 97vw); }

/* expandable ties (click to reveal alternates) */
details.tie > summary { list-style: none; cursor: pointer; display: block; }
details.tie > summary::-webkit-details-marker { display: none; }
.tie.uncertain { border-color: rgba(255,206,58,.45); }
.tie.uncertain > summary:hover { border-color: var(--gold); }
/* a highlighted-path tie always shows the lime outline, even if it's also low-confidence */
.tie.uncertain.on-path { border-color: var(--lime); box-shadow: 0 0 14px rgba(182,255,58,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.unc-tag { color: var(--gold); font-weight: 700; margin-left: auto; }
.tie-alts { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--edge); display: flex; flex-direction: column; gap: 9px; }
.alt-side .alt-h { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 4px; }
.alt-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; font-size: .78rem; padding: 1px 0; color: var(--muted); }
.alt-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-row .p { font-family: var(--mono); font-size: .72rem; color: var(--faint); }

/* predicted-winner showcase (right of the Final) */
.champion-col { min-width: 230px; justify-content: flex-start !important; }
.champ-hero {
  text-align: center; padding: 20px 16px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #3c310f 0%, #1d1707 58%, #110c03 100%);
  border: 1px solid #836721;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 26px rgba(255,206,58,.28), 0 6px 20px rgba(0,0,0,.55);
}
.champ-hero .trophy { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(255,206,58,.75)); }
.champ-hero .flag { width: 3.6em; height: 2.7em; display: block; margin: 10px auto 8px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.6); }
.champ-name { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.45rem; letter-spacing: .02em; color: #fff; }
.champ-pct { font-family: var(--mono); font-weight: 800; font-size: 2.05rem; color: var(--gold); text-shadow: 0 0 16px rgba(255,206,58,.6); line-height: 1.1; }
.champ-cap { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: #bda85e; }
.champ-others { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.champ-other {
  display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 6px; font-size: .82rem; color: var(--ink);
  background: linear-gradient(180deg, #1c2c4d, #111d36); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.champ-other:hover { border-color: var(--gold); }
.champ-other .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-other .p { font-family: var(--mono); color: var(--gold); font-size: .78rem; }

/* team-page route tree */
.route-tree { min-width: 900px; }
.route-tree .round { justify-content: center; }

@media (max-width: 720px) {
  main { padding: 20px 14px 70px; }
  main.wide { max-width: 100%; }
  .page-head h1 { font-size: 1.55rem; }
  .brand small { display: none; }
  .topbar-inner { gap: 10px; }
  nav.tabs { gap: 6px; order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  nav.tabs a { padding: 7px 13px; font-size: .85rem; white-space: nowrap; }
  .meta-line { margin-left: auto; text-align: right; font-size: .68rem; }

  .qbar-row { grid-template-columns: 116px 1fr 44px; }

  /* path step: round + matchup on top, the three key stats span the full width below */
  .path-step { grid-template-columns: 52px 1fr; row-gap: 12px; }
  .ps-stats { grid-column: 1 / -1; gap: 7px; }
  .ps-stat { flex: 1; min-width: 0; padding: 9px 4px; }
  .ps-stat .v { font-size: 1.2rem; }
  .ps-stat .l { font-size: .56rem; }

  /* match cards: keep time + fixture readable */
  .match { grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 12px; }
  .fixture .side .nm { font-size: .92rem; }
  .reach-strip .chip { padding: 6px 10px; font-size: .78rem; }
}
