/* OPT Poker League — brushed silver / charcoal / navy / red */
:root {
  --navy: #13233b;
  --navy-2: #1e3456;
  --charcoal: #191c22;
  --charcoal-2: #262a32;
  --red: #d3132d;
  --red-dark: #a60d22;
  --silver-1: #f4f5f7;
  --silver-2: #dfe2e7;
  --silver-3: #c3c8d0;
  --silver-4: #8d95a1;
  --text: #18212d;
  --muted: #5d6675;
  --white: #fbfbfc;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 8px 22px rgba(17, 25, 38, .14), 0 1px 3px rgba(17,25,38,.18);
  --head: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background-color: var(--silver-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, rgba(0,0,0,0) 1px 3px),
    linear-gradient(180deg, #eceef1 0%, #d9dde3 55%, #cfd4db 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--navy-2); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- metal surfaces ---------- */
.metal {
  background-color: var(--silver-1);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, #fafbfc 0%, #e6e9ed 60%, #d8dce2 100%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background-color: #eef0f3;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, #fbfbfc 0%, #e3e6ea 100%);
  border-bottom: 1px solid var(--silver-3);
  box-shadow: 0 2px 0 var(--red), 0 6px 18px rgba(0,0,0,.12);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; padding: 8px 0; flex: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand-sub {
  font-family: var(--head); font-style: italic; font-weight: 800; font-size: 11px;
  letter-spacing: .02em; text-transform: uppercase; color: var(--charcoal); margin: 2px 0 0 46px;
}
.main-nav { margin-left: auto; display: flex; gap: 0; }
.main-nav a {
  font-family: var(--head); font-weight: 700; font-size: 15px; text-transform: uppercase;
  letter-spacing: .01em; color: var(--charcoal); text-decoration: none;
  padding: 10px 18px; position: relative; border-left: 1px solid var(--silver-3);
}
.main-nav a:first-child { border-left: 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 3px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transition: transform .15s;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--charcoal);
  border-bottom: 3px solid var(--silver-3);
}
.hero-art {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%;
  background: url("hero-trophies.jpg") 50% 42% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25,28,34,1) 0%, rgba(25,28,34,.96) 36%, rgba(25,28,34,.35) 58%, rgba(25,28,34,0) 75%);
  z-index: 1;
}
.hero::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 30%, transparent 30% 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 64px; }
.kicker {
  font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .32em; font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.hero h1 {
  font-family: var(--head); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 64px); line-height: .98; margin: 0 0 18px; letter-spacing: -.01em;
  text-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.hero h1 .silver {
  background: linear-gradient(180deg, #ffffff 0%, #d9dde3 50%, #a7aeb9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .red { color: var(--red); }
.hero .lede { font-size: 19px; font-style: italic; max-width: 26ch; margin: 0; color: #e6e8ec; }

/* sub-page banner */
.banner {
  color: var(--white);
  background: linear-gradient(100deg, var(--charcoal) 0%, var(--navy) 60%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--silver-3); position: relative;
}
.banner::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 30%; background: var(--red); }
.banner .wrap { padding-top: 28px; padding-bottom: 26px; }
.banner h1 {
  font-family: var(--head); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 40px); margin: 0; line-height: 1.05;
}

/* ---------- panels ---------- */
.section { padding: 28px 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.panel {
  border: 1px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 20px; position: relative;
  background-color: var(--silver-1);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, #fbfbfc 0%, #e9ebef 100%);
}
.panel-title {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; font-size: 17px; color: var(--navy); margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.panel-title::before { content: ""; width: 30px; height: 3px; background: var(--red); border-radius: 2px; flex: none; }
.panel-title .more { margin-left: auto; white-space: nowrap; font-size: 12px; letter-spacing: .06em; font-style: normal; font-weight: 700; color: var(--red-dark); text-decoration: none; }
.panel-title .more:hover { text-decoration: underline; }

/* next game */
.next-game { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.datebox {
  width: 92px; border-radius: 8px; overflow: hidden; text-align: center; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18); border: 1px solid var(--silver-3);
}
.datebox .m { background: var(--red); color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .08em; padding: 3px 0; text-transform: uppercase; }
.datebox .d { font-family: var(--head); font-weight: 800; font-size: 38px; line-height: 1.1; color: var(--charcoal); padding: 2px 0 0; }
.datebox .w { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; letter-spacing: .06em; }
.next-game h3 { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 26px; margin: 0 0 4px; color: var(--charcoal); }
.next-game .when { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.next-game .where { margin: 0; font-size: 16px; }
.next-game .where strong { color: var(--navy); }
.countdown { display: inline-block; margin-top: 10px; font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--navy); border-radius: 4px; padding: 3px 10px; }
.nav-short { display: none; }
.tba { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--silver-2); border-radius: 4px; padding: 2px 8px; }
.notes { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--red); background: rgba(255,255,255,.6); border-radius: 0 6px 6px 0; font-size: 15px; white-space: pre-line; }

/* stat tiles */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1 1 120px; background: rgba(255,255,255,.65); border: 1px solid var(--silver-3); border-radius: 8px; padding: 10px 12px; }
.stat .v { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
table.board { width: 100%; border-collapse: separate; border-spacing: 0 5px; font-size: 16px; }
table.board thead th {
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: 13px; letter-spacing: .06em; text-align: left; padding: 9px 12px; white-space: nowrap;
}
table.board thead th:first-child { border-radius: 6px 0 0 6px; }
table.board thead th:last-child { border-radius: 0 6px 6px 0; }
table.board th.r, table.board td.r { text-align: right; }
table.board th.c, table.board td.c { text-align: center; }
table.board tbody td {
  background: linear-gradient(180deg, #ffffff 0%, #eef0f3 100%);
  padding: 8px 12px; border-top: 1px solid #fff; border-bottom: 1px solid var(--silver-3);
}
table.board tbody td:first-child { border-radius: 6px 0 0 6px; }
table.board tbody td:last-child { border-radius: 0 6px 6px 0; }
table.board td.player { font-weight: 700; }
table.board td.player .full { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
table.board .score { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--navy); }
.rank {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 6px;
  border-radius: 4px; font-family: var(--head); font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #8d95a1, #6b7380);
}
.rank.r1 { background: linear-gradient(180deg, #e3203a, var(--red-dark)); }
.rank.r2, .rank.r3 { background: linear-gradient(180deg, #5d6878, #3f4856); }
.rank small { font-size: 10px; margin-left: 1px; }
tr.expandable { cursor: pointer; }
tr.expandable:hover td { background: linear-gradient(180deg, #ffffff 0%, #e4e8ee 100%); }
tr.expandable:focus-visible td { outline: 2px solid var(--navy-2); outline-offset: -2px; }
tr.expandable td.chev::after { content: "▾"; color: var(--silver-4); }
tr.expandable[aria-expanded="true"] td.chev::after { content: "▴"; color: var(--red); }
tr.detail td { background: rgba(255,255,255,.7) !important; padding: 12px 14px 14px; }
.games-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.gcell { text-align: center; background: #fff; border: 1px solid var(--silver-3); border-radius: 6px; padding: 4px 2px; }
.gcell .gn { font-size: 11px; color: var(--muted); font-weight: 600; }
.gcell .gp { font-family: var(--head); font-weight: 800; font-size: 17px; color: var(--charcoal); line-height: 1.15; }
.gcell .gf { font-size: 11px; color: var(--muted); }
.gcell.counted { background: #e3f3e7; border-color: #5fae76; box-shadow: inset 0 -3px 0 #2f8a4b; }
.gcell.counted .gp { color: #17622f; }
.gcell.dropped { background: #f8d9dd; border-color: #e3a1ab; }
.gcell.dropped .gp { color: #a3293a; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.gcell.absent .gp { color: var(--silver-3); }
.gcell.future { opacity: .5; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.legend { font-size: 13px; color: var(--muted); margin: 10px 2px 0; }
.legend .sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 0; }
.legend .sw ~ .sw { margin-left: 12px; }
.legend .sw-counted { background: #e3f3e7; border: 1px solid #5fae76; box-shadow: inset 0 -3px 0 #2f8a4b; }
.legend .sw-dropped { background: #f8d9dd; border: 1px solid #e3a1ab; }
.legend .grid-dash { margin-left: 12px; font-weight: 700; color: var(--silver-4); }

/* season grid (players x games) */
.section > .panel + .panel { margin-top: 22px; }
table.season-grid { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 15px; }
table.season-grid th { background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .04em; padding: 6px 4px; white-space: nowrap; border-radius: 4px; }
table.season-grid th a { color: #fff; text-decoration: none; }
table.season-grid th a:hover { text-decoration: underline; }
table.season-grid th.future { background: var(--silver-4); }
table.season-grid td { text-align: center; padding: 5px 4px; border-radius: 4px; font-family: var(--head); font-weight: 700; min-width: 30px; background: rgba(255,255,255,.55); }
table.season-grid .sg-name { text-align: left; font-family: var(--body); white-space: nowrap; padding-left: 8px; padding-right: 8px; background: #fff; position: sticky; left: 0; z-index: 1; }
table.season-grid th.sg-name { background: var(--navy); }
table.season-grid .sg-rank { color: var(--muted); font-size: 13px; min-width: 24px; }
table.season-grid th.sg-rank { color: #fff; }
table.season-grid .sg-avg { color: var(--navy); font-weight: 800; padding-left: 8px; padding-right: 8px; }
table.season-grid th.sg-avg { color: #fff; }
table.season-grid td.counted { background: #e3f3e7; color: #17622f; box-shadow: inset 0 -2px 0 #2f8a4b; }
table.season-grid td.dropped { background: #f8d9dd; color: #a3293a; text-decoration: line-through; text-decoration-thickness: 1px; }
table.season-grid td.absent { color: var(--silver-4); }
table.season-grid td.future { background: rgba(255,255,255,.25); }
table.season-grid tbody tr:hover td { filter: brightness(.96); }
.download-panel { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.download-panel .panel-title { margin-bottom: 8px; }
.download-panel p { margin: 0; }
.download-panel .btn { flex: none; }
@media (max-width: 760px) {
  .download-panel { flex-direction: column; align-items: stretch; }
  table.season-grid { font-size: 14px; }
}

/* compact top-5 board on home */
table.board.compact td { padding: 6px 10px; }

/* ---------- high hand ---------- */
.hh { display: grid; gap: 14px; }
.hh-item { background: rgba(255,255,255,.65); border: 1px solid var(--silver-3); border-radius: 8px; padding: 12px 14px; }
.hh-period { font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--red-dark); }
.hh-who { font-weight: 700; font-size: 18px; margin: 2px 0 6px; }
.hh-who .amp { color: var(--muted); font-weight: 500; }
.hh-meta { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--navy); color: #fff; border-radius: 3px; padding: 1px 6px; vertical-align: middle; }
.cards { display: inline-flex; gap: 4px; }
.card {
  width: 30px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--silver-4); border-radius: 4px; font-family: var(--head); font-weight: 800;
  font-size: 18px; color: var(--charcoal); box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.hand-text { font-family: var(--head); font-weight: 800; font-size: 20px; }

/* prize pool */
.pool-total { font-family: var(--head); font-style: italic; font-weight: 900; font-size: 44px; color: var(--navy); line-height: 1; margin: 0 0 12px; }
.pool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pool-list li { display: flex; justify-content: space-between; background: rgba(255,255,255,.65); border: 1px solid var(--silver-3); border-radius: 6px; padding: 6px 12px; font-weight: 600; }

/* championship band */
.band {
  margin: 8px 0 0; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--charcoal) 0%, #222833 50%, var(--navy) 100%);
  border-top: 3px solid var(--silver-3); border-bottom: 3px solid var(--silver-3);
}
.band .wrap { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; text-align: center; flex-wrap: wrap; }
.band .season { font-family: var(--head); font-style: italic; font-weight: 900; font-size: clamp(28px, 5vw, 46px); text-transform: uppercase; line-height: 1; }
.band .season span { display: block; color: var(--red); background: linear-gradient(180deg,#f1f2f4,#c4c9d1); -webkit-background-clip: text; background-clip: text; }
.band .season em { display: block; font-style: italic; color: #fff; background: var(--red); padding: 4px 18px; margin-top: 6px; font-size: .7em; -webkit-text-fill-color: #fff; }
.band .tagline { font-family: var(--head); font-style: italic; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: 18px; border-left: 2px solid rgba(255,255,255,.35); padding-left: 28px; text-align: left; }

/* ---------- schedule ---------- */
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sched li {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #eceef2 100%); border: 1px solid var(--silver-3);
  border-radius: 8px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.sched li.is-next { border-color: var(--red); box-shadow: 0 0 0 2px rgba(211,19,45,.25), 0 4px 12px rgba(0,0,0,.12); }
.sched li.is-done { opacity: .92; }
.sched li.is-link { cursor: pointer; }
.sched li.is-link:hover { border-color: var(--navy-2); box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.sched h3 a { color: inherit; text-decoration: none; }
a.gcell { text-decoration: none; color: inherit; }
a.gcell:hover { border-color: var(--red); }
.show-xs { display: none !important; }
.sched .datebox { width: 76px; }
.sched .datebox .d { font-size: 28px; }
.sched .datebox .m { font-size: 13px; }
.sched h3 { margin: 0; font-family: var(--head); font-style: italic; font-weight: 800; font-size: 20px; }
.sched .meta { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.sched .meta strong { color: var(--text); }
.pill { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pill-next { background: var(--red); color: #fff; }
.pill-done { background: var(--navy); color: #fff; }
.pill-up { background: var(--silver-2); color: var(--muted); }
.half-label { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); margin: 18px 2px 8px; }

/* ---------- roster ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 16px 18px; margin-bottom: 10px; }
.toolbar label, .toolbar .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; display: block; margin-bottom: 6px; }
.tb-search { flex: 2 1 220px; }
.tb-sort { flex: 1 1 180px; }
.tb-filter { flex: 0 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--silver-4); border-radius: 6px; overflow: hidden; background: #fff; }
.seg button { font: inherit; font-weight: 600; font-size: 15px; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; color: var(--text); border-left: 1px solid var(--silver-3); }
.seg button:first-child { border-left: 0; }
.seg button span { color: var(--muted); font-size: 13px; margin-left: 2px; }
.seg button.on { background: var(--navy); color: #fff; }
.seg button.on span { color: #c9d3e3; }
input[type=search] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--silver-4); background: #fff; color: var(--text); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; align-items: start; }
.member { background: linear-gradient(180deg,#fff 0%,#eceef2 100%); border: 1px solid var(--silver-3); border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.member[hidden] { display: none; }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.member .nm { font-weight: 700; font-size: 18px; line-height: 1.2; }
.member .sn { font-size: 13px; color: var(--muted); }
.m-badge { margin-top: 8px; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: 4px; padding: 3px 8px; display: inline-block; }
.member .ms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: center; }
.member .ms span { background: rgba(255,255,255,.75); border: 1px solid var(--silver-3); border-radius: 6px; padding: 6px 2px 5px; }
.member .ms b { display: block; font-family: var(--head); font-size: 18px; color: var(--navy); letter-spacing: 0; text-transform: none; line-height: 1.15; }
.m-more { margin-top: 10px; border-top: 1px solid var(--silver-3); padding-top: 8px; }
.m-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--navy-2); list-style: none; }
.m-more summary::-webkit-details-marker { display: none; }
.m-more summary::after { content: " ▾"; color: var(--silver-4); }
.m-more[open] summary::after { content: " ▴"; color: var(--red); }
.mini-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 10px 0; }
.mg { display: block; text-align: center; background: #fff; border: 1px solid var(--silver-3); border-radius: 5px; padding: 2px 0 3px; font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--charcoal); text-decoration: none; line-height: 1.1; }
.mg span { display: block; font-family: var(--body); font-weight: 600; font-size: 10px; color: var(--muted); }
a.mg:hover { border-color: var(--navy-2); }
.mg.win { background: var(--red); border-color: var(--red-dark); color: #fff; }
.mg.win span { color: #ffd9de; }
.mg.pod { border-color: var(--navy-2); box-shadow: inset 0 -3px 0 var(--navy-2); }
.mg.abs { color: var(--silver-4); }
.mg.fut { opacity: .45; }
.m-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.m-dl dt { color: var(--muted); }
.m-dl dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- forms / admin ---------- */
.login-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card img { width: 220px; margin: 4px auto 6px; display: block; }
.login-card p { color: var(--muted); margin: 0 0 18px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; text-align: left; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--silver-4); background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 1px; }
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 15px; border: 0; border-radius: 6px; cursor: pointer;
  padding: 11px 20px; color: #fff; background: linear-gradient(180deg, #e3203a, var(--red-dark)); text-decoration: none;
  box-shadow: 0 2px 6px rgba(166,13,34,.35);
}
.btn:hover { filter: brightness(1.07); }
.btn-navy { background: linear-gradient(180deg, var(--navy-2), var(--navy)); box-shadow: 0 2px 6px rgba(19,35,59,.35); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--silver-4); box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.error { background: #fde8eb; border: 1px solid #f3b4be; color: #8a0c1e; border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; text-align: left; font-size: 15px; }
.flash { margin: 18px 0 0; border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.flash-ok { background: #e5f4ea; border: 1px solid #a9d8b7; color: #135a2a; }
.flash-err { background: #fde8eb; border: 1px solid #f3b4be; color: #8a0c1e; }
.issues { margin: 0; padding-left: 20px; }
.issues li { margin: 4px 0; }
.issues.err li::marker { color: var(--red); }
.box { border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
.box h3 { margin: 0 0 6px; font-size: 16px; }
.box-err { background: #fde8eb; border: 1px solid #f3b4be; }
.box-warn { background: #fff6df; border: 1px solid #ecd18a; }
.box-ok { background: #e5f4ea; border: 1px solid #a9d8b7; }
.box-info { background: rgba(255,255,255,.7); border: 1px solid var(--silver-3); }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--silver-3); vertical-align: top; }
table.plain th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.badge-live { background: #1d7a3d; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.game-edit { display: grid; grid-template-columns: 70px 150px 120px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--silver-3); }
.game-edit .gno { font-family: var(--head); font-weight: 800; font-style: italic; font-size: 18px; padding-top: 8px; }
.game-edit textarea { min-height: 42px; margin-top: 6px; }
.dropzone { border: 2px dashed var(--silver-4); border-radius: 10px; padding: 22px; text-align: center; background: rgba(255,255,255,.55); }
.dropzone input[type=file] { margin: 10px auto; display: block; max-width: 100%; }
.help { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 36px; border-top: 1px solid var(--silver-3);
  background-color: #e8eaee;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, #f3f4f6 0%, #d7dbe1 100%);
  box-shadow: 0 -2px 0 var(--navy);
}
.footer-inner { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.footer-logo { height: 40px; width: auto; }
.footer-contact { border-left: 1px solid var(--silver-4); padding-left: 24px; }
.footer-contact .label { font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .25em; font-size: 12px; margin: 0 0 2px; }
.footer-contact a { color: var(--text); font-weight: 600; }
.footer-loc { font-weight: 600; }
.footer-loc::before { content: "⌖ "; color: var(--navy); }
.footer-meta { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.footer-links { display: block; margin-top: 2px; }
.footer-links a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > .span-all-md { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .brand { align-items: center; padding: 10px 0 4px; }
  .brand img { height: 34px; }
  .brand-sub { margin: 2px 0 0; }
  .main-nav { margin: 0 -16px; justify-content: center; }
  .main-nav a { padding: 9px 10px 12px; font-size: 13px; flex: 1; text-align: center; }
  .main-nav a::after { left: 12px; right: 12px; bottom: 5px; }
  .site-header { position: static; }
  .hero-art { width: 100%; background-position: 50% 40%; opacity: .55; }
  .hero::before { background: linear-gradient(180deg, rgba(25,28,34,.85) 0%, rgba(25,28,34,.55) 100%); }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .panel-title { flex-wrap: wrap; row-gap: 4px; }
  .panel-title .more { margin-left: 42px; flex-basis: 100%; }
  .hide-xs { display: none; }
  .show-xs { display: block !important; }
  table.board td.player .full { display: none; }
  table.board td.player { white-space: nowrap; }
  .detail-meta { gap: 4px 14px; }
  .hero .wrap { padding-top: 34px; padding-bottom: 38px; }
  .hero .lede { font-size: 17px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .panel { padding: 18px 14px 16px; }
  .hide-sm { display: none; }
  table.board { font-size: 15px; }
  table.board thead th, table.board tbody td { padding-left: 8px; padding-right: 8px; }
  .games-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sched li { grid-template-columns: 64px 1fr; }
  .sched li .pill { grid-column: 2; justify-self: start; }
  .sched .datebox { width: 64px; }
  .band .tagline { border-left: 0; padding-left: 0; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-contact { border-left: 0; padding-left: 0; }
  .footer-meta { margin-left: 0; text-align: center; }
  .game-edit { grid-template-columns: 1fr 1fr; }
  .tb-filter, .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 6px; }
  .roster { grid-template-columns: 1fr; }
  .game-edit .gno { grid-column: 1 / -1; padding-top: 0; }
  .game-edit .loc { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .next-game { grid-template-columns: 1fr; }
}
