/* GHBL (ghbl.us) v2.0.0: "the electronic rec department". A town rec-department bulletin board meets a hand-turned
 * ballpark scoreboard: warm flyer paper, scoreboard green with cream number tiles, varsity red, navy and pennant gold.
 * Type: Graduate (varsity block, headings and scoreboard numbers) + Asap (text). Self-hosted, no outside requests.
 * No inline styles anywhere (the CSP allows none); colours that vary per diamond come from classes. */

@font-face { font-family: "Graduate"; src: url("fonts/graduate-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Asap"; src: url("fonts/asap-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F1E4; --paper-2: #EDE4CE; --card: #FFFCF4; --line: #D9CDB2; --line-2: #C7B894;
  --ink: #17202E; --ink-2: #39414F; --muted: #5A6170;
  --navy: #1C2B4A; --navy-2: #13203A; --board: #1F4D36; --board-2: #163A28; --board-3: #2A6146;
  --chalk: #FFFDF6; --brick: #A8322A; --brick-2: #8C2620; --gold: #E8B33C; --gold-2: #C9951F; --clay: #C46E3F;
  --grass: #3E8A4E; --sky: #2F6FB0;
  --f1: #E8B33C; --f2: #3E8A4E; --f3: #C46E3F; --f4: #2F6FB0; --f5: #1C2B4A;
  --r: 14px; --r-sm: 9px; --shadow: 0 1px 0 rgba(23,32,46,.06), 0 10px 28px -14px rgba(23,32,46,.28);
  --head: "Graduate", Georgia, "Times New Roman", serif;
  --text: "Asap", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: var(--brick); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brick-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
code { font: 600 .95em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper-2); border-radius: 6px; padding: .1em .35em; word-break: break-all; }
table { border-collapse: collapse; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }   /* v2.0.3 (GHBL-A11Y-TABLES): the scroll boxes take keyboard focus */
.eyebrow { display: inline-block; font: 400 .78rem/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: .6em; }
.noprint { }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.2em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-red { background: var(--brick); color: var(--chalk); box-shadow: 0 3px 0 var(--brick-2); }
.btn-red:hover { background: #B83A31; color: var(--chalk); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--gold-2); }
.btn-gold:hover { background: #F0BF4D; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(255,253,246,.6); }
.btn-ghost:hover { background: rgba(255,253,246,.1); color: var(--chalk); }
.btn-line { background: var(--card); color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--chalk); }
.btn-sm { min-height: 40px; padding: .45em .95em; font-size: .93rem; }
.btn .ball-ic { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--navy); color: var(--chalk); box-shadow: 0 2px 0 var(--gold); }
.hdr .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.crest { display: flex; align-items: center; gap: 11px; color: var(--chalk); text-decoration: none; flex: none; }
.crest:hover { color: var(--chalk); }
.crest svg { width: 40px; height: 44px; flex: none; }
.crest b { display: block; font: 400 1.5rem/1 var(--head); letter-spacing: .06em; }
.crest small { display: block; font: 600 .66rem/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--chalk); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5em .72em; border-radius: 8px; }
.nav a:hover { background: rgba(255,253,246,.1); color: var(--chalk); }
.nav a[aria-current="page"] { background: var(--chalk); color: var(--navy); }
.hdr .btn-gold { flex: none; }

/* the game-time strip under the header, on every page */
.strip { background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--board-2); }
.strip .wrap { display: flex; align-items: center; gap: 14px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.strip .st { font: 400 .8rem/1 var(--head); letter-spacing: .12em; background: var(--board-2); border: 1px solid var(--board-3); border-radius: 6px; padding: .45em .65em; }
.strip.is-live .st { background: var(--gold); color: var(--ink); border-color: var(--gold-2); }
.strip.is-lobby .st { background: var(--chalk); color: var(--board); }
.strip .tx { font-size: .95rem; }
.strip .tx b { font-weight: 700; }
.strip .times { margin-left: auto; display: flex; gap: 6px; }
.strip .times span { font: 400 .78rem/1 var(--head); background: var(--chalk); color: var(--board); border-radius: 4px; padding: .4em .5em; box-shadow: inset 0 -2px 0 var(--line-2); }
.cd { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-paper { background: var(--paper-2); }
.sec-green { background: var(--board); color: var(--chalk); }
.sec-green h2, .sec-green h3 { color: var(--chalk); }
.sec-green .eyebrow { color: var(--gold); }
.sec-green a { color: var(--gold); }
.sec-green a.btn-gold, .sec-navy a.btn-gold { color: var(--ink); }
.sec-green a.btn-ghost, .sec-navy a.btn-ghost { color: var(--chalk); }
.sec-green a.btn-line, .sec-navy a.btn-line { color: var(--navy); }
.sec-navy { background: var(--navy); color: var(--chalk); }
.sec-navy h2, .sec-navy h3 { color: var(--chalk); }
.sec-navy .eyebrow { color: var(--gold); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.sec-head p { margin: 0; color: var(--ink-2); }
.sec-green .sec-head p, .sec-navy .sec-head p { color: rgba(255,253,246,.85); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* pennant section label: a felt pennant cut with clip-path */
.pennant { display: inline-flex; align-items: center; gap: .6em; background: var(--brick); color: var(--chalk); font: 400 .86rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  padding: .7em 2.2em .7em 1em; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%); margin-bottom: 18px; }
.pennant.gold { background: var(--gold); color: var(--ink); }
.pennant.green { background: var(--grass); }

/* page header */
.phead { background: var(--navy); color: var(--chalk); padding: 54px 0 46px; position: relative; overflow: hidden; }
.phead::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: repeating-linear-gradient(90deg, var(--brick) 0 40px, var(--chalk) 40px 80px, var(--gold) 80px 120px); opacity: .9; }
.phead h1 { color: var(--chalk); max-width: 18ch; }
.phead p { max-width: 62ch; font-size: 1.08rem; color: rgba(255,253,246,.9); margin: 0; }
.phead .eyebrow { color: var(--gold); }
.phead .cta-row { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.phead.f1 { background: #1E3B2A; } .phead.f2 { background: #1F4D36; } .phead.f3 { background: #5A2C1F; } .phead.f4 { background: #1D3E66; } .phead.f5 { background: #0E1528; }

/* ---------- home hero: the scoreboard ---------- */
.hero { background: var(--navy); color: var(--chalk); position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(45deg, rgba(255,253,246,.045) 0 2px, transparent 2px 18px), repeating-linear-gradient(-45deg, rgba(255,253,246,.045) 0 2px, transparent 2px 18px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { color: var(--chalk); font-size: clamp(2.1rem, 4.8vw, 3.7rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.15rem; max-width: 36em; color: rgba(255,253,246,.92); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero .since { display: inline-flex; align-items: center; gap: 10px; font: 400 .8rem/1 var(--head); letter-spacing: .14em; color: var(--gold); margin-bottom: 16px; }
.hero .since::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.chip { display: inline-block; background: rgba(255,253,246,.1); border: 1px solid rgba(255,253,246,.25); border-radius: 999px; padding: .45em 1em; font-size: .92rem; }
.chip strong { color: var(--gold); }
.hero .chip { margin-top: 4px; }

.board { background: var(--board); border: 10px solid var(--board-2); border-radius: 6px; box-shadow: 0 0 0 3px #0F2A1D, 0 30px 60px -30px rgba(0,0,0,.6); padding: 18px 18px 14px; color: var(--chalk); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--board-3); padding-bottom: 10px; margin-bottom: 12px; }
.board-head h2 { margin: 0; color: var(--chalk); font-size: 1.15rem; letter-spacing: .14em; }
.board-head span { font: 400 .78rem/1 var(--head); letter-spacing: .1em; color: var(--gold); }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--board-2); border-radius: 4px; padding: 10px 12px; }
.tiles { display: flex; gap: 3px; }
.tile { display: inline-grid; place-items: center; min-width: 30px; height: 44px; padding: 0 6px; background: var(--chalk); color: var(--board-2); font: 400 1.65rem/1 var(--head); border-radius: 3px; box-shadow: inset 0 -3px 0 #DCD2BB, 0 2px 0 #0F2A1D; }
.tile.colon { background: transparent; color: var(--chalk); box-shadow: none; min-width: 10px; padding: 0; }
.tile.ampm { font-size: .95rem; min-width: 36px; background: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold-2), 0 2px 0 #0F2A1D; }
.board .what b { display: block; font: 400 .95rem/1.2 var(--head); letter-spacing: .08em; }
.board .what span { display: block; font-size: .9rem; color: rgba(255,253,246,.82); }
.lamp { font: 400 .72rem/1 var(--head); letter-spacing: .1em; border-radius: 4px; padding: .55em .6em; background: #0F2A1D; color: rgba(255,253,246,.7); white-space: nowrap; }
.lamp.on { background: var(--gold); color: var(--ink); box-shadow: 0 0 18px rgba(232,179,60,.55); }
.lamp.lobby { background: var(--chalk); color: var(--board-2); }
.lamp.done { background: #0F2A1D; color: rgba(255,253,246,.55); }
.board-foot { margin: 12px 0 0; font-size: .88rem; color: rgba(255,253,246,.8); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- diamonds (field program cards) ---------- */
.diamonds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.dcard .tab { position: absolute; top: 10px; left: 10px; z-index: 1; font: 400 .7rem/1 var(--head); letter-spacing: .1em; padding: .5em .6em; border-radius: 4px; background: var(--chalk); color: var(--navy); box-shadow: 0 1px 0 var(--line-2); }
.dcard .art { display: block; border-bottom: 4px solid var(--f1); }
.dcard .art svg { display: block; width: 100%; height: auto; }
.dcard .body { padding: 14px 16px 6px; flex: 1; }
.dcard .num { font: 400 .74rem/1 var(--head); letter-spacing: .12em; color: var(--muted); }
.dcard h3 { margin: .35em 0 .25em; font-size: 1.12rem; }
.dcard h3 a { color: var(--navy); text-decoration: none; }
.dcard h3 a:hover { color: var(--brick); }
.dcard .lvl { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: .15em .65em; margin-bottom: .5em; }
.dcard p { font-size: .93rem; color: var(--ink-2); margin-bottom: .6em; }
.dcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .85rem; margin: 0 0 8px; }
.dcard dt { color: var(--muted); }
.dcard dd { margin: 0; font-weight: 600; }
.dcard .stub { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px 16px; border-top: 1px dashed var(--line-2); }
.dcard.f2 .art { border-color: var(--f2); } .dcard.f3 .art { border-color: var(--f3); } .dcard.f4 .art { border-color: var(--f4); } .dcard.f5 .art { border-color: var(--f5); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { background: var(--board-2); border: 1px solid var(--board-3); border-radius: var(--r); padding: 22px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 48px; height: 56px; margin-bottom: 12px; background: var(--chalk); color: var(--board-2); font: 400 1.9rem/1 var(--head); border-radius: 4px; box-shadow: inset 0 -4px 0 #DCD2BB; }
.steps h3 { color: var(--chalk); }
.steps p { margin: 0; color: rgba(255,253,246,.88); }

/* ticker of final scores */
.ticker { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 24px; }
.ticker div { display: flex; justify-content: space-between; gap: 12px; background: rgba(0,0,0,.18); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.ticker b { font: 400 1.1rem/1 var(--head); color: var(--gold); white-space: nowrap; }

/* ---------- panels, lists, tables ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }
.panel.pass { border: 2px solid var(--brick); position: relative; }
.panel.pass::before { content: "THE PASS"; position: absolute; top: -13px; right: 20px; background: var(--brick); color: var(--chalk); font: 400 .7rem/1 var(--head); letter-spacing: .12em; padding: .5em .7em; border-radius: 4px; }
.sec-green .panel, .sec-navy .panel { color: var(--ink); }
.sec-green .panel h3, .sec-navy .panel h3 { color: var(--navy); }
.sec-green .panel a, .sec-navy .panel a { color: var(--brick); }
.aside { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--r); padding: 22px; position: sticky; top: 130px; }
.aside > :last-child { margin-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: var(--grass); box-shadow: inset 0 0 0 4px var(--card); border: 2px solid var(--grass); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .45em; }
.notice { background: #FFF5D6; border: 1px solid #EAD08A; border-left: 6px solid var(--gold); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 22px; }
.preview-note { background: #FFF5D6; border: 1px solid #EAD08A; border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 24px; }
.pricebox { font-size: .92rem; background: var(--paper-2); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }
.pricebox strong, .preview-note strong { color: var(--brick); }
.plan-pr { font: 400 2.2rem/1.1 var(--head); color: var(--navy); margin: .2em 0 .5em; }
.plan-pr small { font: 600 .95rem var(--text); color: var(--muted); }

.std { width: 100%; background: var(--card); font-size: .95rem; font-variant-numeric: tabular-nums; }
.std th, .std td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.std th:first-child, .std td:first-child { text-align: left; }
.std thead th { font: 400 .72rem/1.2 var(--head); letter-spacing: .1em; color: var(--chalk); background: var(--board); border-bottom: 0; }
.std tbody tr:nth-child(even) td { background: #FBF6EA; }
.std tr.me td { background: #FFF1C9 !important; font-weight: 700; }
.std.rules-table td { white-space: normal; text-align: left; }
.std.rules-table th[scope="row"] { text-align: left; width: 34%; font-weight: 700; color: var(--navy); background: var(--paper-2); }
.tname { display: inline-flex; align-items: center; gap: 8px; }
.tname .jersey { width: 22px; height: 22px; }
.house { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); border-radius: 4px; padding: .1em .45em; }
.std-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.std-card h3 { margin: 0; padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--line); }
.std-card h3 small { font: 400 .85rem var(--text); color: var(--muted); }

/* league boxes and game lists (team page, standings) */
.lgbox { background: var(--card); border: 1px solid var(--line); border-top: 8px solid var(--f1); border-radius: var(--r); padding: 22px; margin-bottom: 26px; box-shadow: var(--shadow); }
.lgbox.f2 { border-top-color: var(--f2); } .lgbox.f3 { border-top-color: var(--f3); } .lgbox.f4 { border-top-color: var(--f4); } .lgbox.f5 { border-top-color: var(--f5); }
.lgbox h2 { font-size: 1.4rem; }
.lgbox h2 small { font: 600 .9rem var(--text); color: var(--muted); }
.games { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.games li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.games .rd { font: 400 .78rem/1.15 var(--head); letter-spacing: .08em; color: var(--chalk); background: var(--board); border-radius: 4px; padding: .5em .4em; text-align: center; }
.games .rd small { display: block; color: var(--gold); font-size: .72rem; margin-top: 2px; }
.games .vs { font-weight: 700; }
.games .meta { font-size: .88rem; color: var(--muted); }
.games .score { font: 400 1.2rem/1 var(--head); color: var(--navy); white-space: nowrap; }
.tag { display: inline-block; font: 400 .74rem/1 var(--head); letter-spacing: .06em; padding: .45em .55em; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); margin-right: 6px; }
.tag.win { background: var(--grass); color: var(--chalk); } .tag.loss { background: var(--brick); color: var(--chalk); } .tag.tie { background: var(--gold); color: var(--ink); }
.std-title { margin-top: 8px; }

/* team page */
.team-head { display: flex; align-items: center; gap: 18px; }
.team-head h1 { margin: 0; color: inherit; }
.jersey { width: 40px; height: 40px; flex: none; }
.jersey.big { width: 86px; height: 86px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.j-red { color: #D23B3B; } .j-orange { color: #EE7A2A; } .j-gold { color: #E3A91F; } .j-green { color: #2F9E58; }
.j-teal { color: #1B9AA0; } .j-blue { color: #2F6FD6; } .j-purple { color: #7D4FD0; } .j-gray { color: #6E7487; }
.keepbox { background: var(--card); border: 3px dashed var(--brick); border-radius: var(--r); padding: 22px; margin-bottom: 26px; }
.keepbox code { display: inline-block; font-size: 1rem; margin: 6px 0 10px; padding: .5em .7em; }
.danger { margin-top: 36px; border: 1px solid #E3B7B2; background: #FCF1EF; border-radius: var(--r); padding: 20px; }
.danger label { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.danger input { width: 20px; height: 20px; }
.enter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.past-h { margin-top: 30px; }

/* forms */
select { font: 500 1rem var(--text); min-height: 46px; padding: .5em 2.2em .5em .8em; border: 2px solid var(--line-2); border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C2B4A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8em center / 12px 8px;
  appearance: none; -webkit-appearance: none; color: var(--ink); max-width: 100%; }
select:focus { border-color: var(--navy); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.form-row { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.form-row > label, .lbl { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.form-row select { width: 100%; }
.name-preview { display: flex; align-items: center; gap: 14px; background: var(--board); color: var(--chalk); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; }
.name-preview .jersey { width: 54px; height: 54px; }
.name-preview small { display: block; font-size: .8rem; opacity: .85; }
.name-preview b { display: block; font: 400 1.35rem/1.15 var(--head); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.swatches span:first-of-type { display: block; width: 44px; height: 44px; border-radius: 50%; background: currentColor; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--line-2); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--navy); }
.swatches input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.fieldpick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fieldpick label { position: relative; cursor: pointer; }
.fieldpick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fieldpick span { display: block; text-align: center; border: 2px solid var(--line-2); border-radius: 10px; padding: 10px 4px; font-size: .85rem; font-weight: 600; line-height: 1.25; background: var(--card); }
.fieldpick b { display: block; font: 400 1.3rem/1 var(--head); color: var(--navy); margin-bottom: 4px; }
.fieldpick input:checked + span { border-color: var(--navy); background: #EAF0F8; }
.fieldpick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- schedule ---------- */
.daygrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.day h2 { font-size: 1.35rem; display: flex; align-items: baseline; gap: 10px; }
.day h2 small { font: 600 .9rem var(--text); color: var(--muted); }
.slot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; overflow: hidden; }
.slot-head { display: flex; align-items: center; gap: 14px; background: var(--board); color: var(--chalk); padding: 12px 14px; }
.slot-head .tiles .tile { height: 38px; font-size: 1.35rem; min-width: 26px; }
.slot-head .what { flex: 1; font-size: .92rem; }
.slot-head .what b { display: block; font: 400 .9rem/1.2 var(--head); letter-spacing: .08em; }
.slot ul { list-style: none; margin: 0; padding: 6px 14px 10px; }
.slot li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.slot li:last-child { border-bottom: 0; }
.slot li .fld { font-size: .8rem; color: var(--muted); display: block; }
.slot li b.sc { font: 400 1.05rem/1 var(--head); color: var(--navy); white-space: nowrap; align-self: center; }
.slot .empty { padding: 12px 14px; margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- history ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 4px solid var(--gold); }
.timeline li { position: relative; margin: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--chalk); border: 4px solid var(--brick); }
.timeline .yr { display: block; font: 400 1.25rem/1 var(--head); color: var(--brick); margin-bottom: .3em; }
.cite { font-size: .84rem; color: var(--muted); }
.cite a { color: var(--muted); word-break: break-word; }
blockquote.clip { margin: 0 0 1.2em; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--board); border-radius: var(--r-sm); padding: 16px 18px; font-size: 1.05rem; }
blockquote.clip p { margin: 0 0 .4em; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: .5em; word-break: break-word; }

/* ---------- grown-ups gate ---------- */
.gate { max-width: 640px; margin: 0 auto; text-align: center; }
.gate .q { font: 400 clamp(2rem, 6vw, 3rem)/1.1 var(--head); color: var(--navy); margin: .3em 0 .5em; }
.choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.choices button { min-height: 64px; font: 400 1.6rem/1 var(--head); border-radius: 12px; border: 2px solid var(--navy); background: var(--card); color: var(--navy); cursor: pointer; }
.choices button:hover { background: var(--navy); color: var(--chalk); }
.wrongmsg { color: var(--brick); font-weight: 700; }

/* ---------- message pages ---------- */
.msg { padding: 80px 0; text-align: center; }
.msg .wrap { max-width: 760px; }
.msg .stamp { display: inline-block; font: 400 .8rem/1 var(--head); letter-spacing: .14em; color: var(--chalk); background: var(--board); padding: .6em .9em; border-radius: 4px; margin-bottom: 18px; }
.msg p { font-size: 1.08rem; }
.msg .cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- the game page ---------- */
.stadium { background: linear-gradient(180deg, var(--navy) 0, var(--navy-2) 100%); color: var(--chalk); padding: 26px 0 44px; }
.stadium .wrap { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.gamebox { background: var(--board-2); border: 1px solid var(--board-3); border-radius: var(--r); padding: 12px; }
.sb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.sb div { background: var(--board); border-radius: 6px; padding: 6px 8px; text-align: center; }
.sb small { display: block; font: 400 .66rem/1 var(--head); letter-spacing: .12em; color: var(--gold); margin-bottom: 5px; }
.sb b { display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 6px; background: var(--chalk); color: var(--board-2); font: 400 1.5rem/1 var(--head); border-radius: 3px; box-shadow: inset 0 -3px 0 #DCD2BB; font-variant-numeric: tabular-nums; }
.cv-wrap { position: relative; border-radius: 10px; overflow: hidden; background: #0E1A2C; aspect-ratio: 16 / 11; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.cv-wrap canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-wrap canvas[hidden] { display: none; }
.cv-wrap canvas#field { object-fit: contain; background: #0E1A2C; }
.callout { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font: 400 clamp(1.4rem, 4.4vw, 2.6rem)/1 var(--head); color: var(--chalk); text-shadow: 0 3px 0 var(--brick), 0 0 24px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; letter-spacing: .04em; }
.cv-start { position: absolute; inset: auto 0 18px 0; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.cv-start > * { pointer-events: auto; }
.cv-start .btn[hidden] { display: none; }
.cv-load { position: absolute; left: 12px; top: 12px; font-size: .8rem; background: rgba(0,0,0,.45); border-radius: 6px; padding: .3em .6em; pointer-events: none; }
.cv-load[hidden] { display: none; }
.meter { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: min(78%, 560px); background: rgba(11,17,36,.84); border-radius: 14px; padding: 10px 14px 12px; pointer-events: none; }
.meter[hidden] { display: none; }
.meter p { margin: 0 0 6px; text-align: center; font-weight: 700; font-size: .92rem; }
.meter .bar { position: relative; height: 18px; background: #3A4670; border-radius: 4px; overflow: hidden; }
.meter .green { position: absolute; top: 0; bottom: 0; background: #3FA862; }
.meter .sweet { position: absolute; top: 0; bottom: 0; background: #7CF2A2; }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 8px; margin-left: -4px; background: var(--gold); border-radius: 2px; left: 0; }
.swingbar { display: flex; gap: 10px; margin-top: 10px; align-items: stretch; }
.btn-swing { flex: 1; min-height: 64px; font: 400 1.5rem/1 var(--head); letter-spacing: .08em; border-radius: 12px; background: var(--brick); color: var(--chalk); box-shadow: 0 4px 0 var(--brick-2); }
.btn-swing:hover { background: #B83A31; color: var(--chalk); }
.swingbar .btn-ghost { border-radius: 12px; }
.viewbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; color: rgba(255,253,246,.8); }
.viewbar .btn { min-height: 36px; padding: .35em .85em; font-size: .85rem; }
.hint { margin: 10px 0 0; font-size: .9rem; color: rgba(255,253,246,.82); }
.status-msg { margin: 8px 0 0; min-height: 1.6em; font-weight: 600; }
.status-msg .btn { margin-left: 6px; }
.side { display: grid; gap: 16px; }
.side .card { background: var(--card); color: var(--ink); border-radius: var(--r); padding: 18px 20px; }
.side .card > :last-child { margin-bottom: 0; }
.side .card h2 { font-size: 1.1rem; }
.h-game { font-size: 1.7rem; color: var(--navy); }
.lobby { background: var(--gold); color: var(--ink); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.lobby .cd { font: 400 1.5rem/1.1 var(--head); display: block; }
.cage { display: grid; gap: 8px; }
.cage select { width: 100%; }
.line { width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.line th, .line td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.line th { font: 400 .72rem var(--head); letter-spacing: .08em; color: var(--muted); }
.line td:first-child, .line th:first-child { text-align: left; }
.log { max-height: 260px; overflow-y: auto; padding-left: 1.2em; margin: 0; font-size: .92rem; }
.log li { margin-bottom: .3em; }

/* ---------- AdEngine slot (SPEC B6; adengine-rollout PLAN section 3) ---------- */
.ae-slot { margin: 0; padding: 0; background: var(--paper); }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 32px auto; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ae-slot ins.adengine a { display: inline-block; }
.ae-slot:has(> ins.adengine[style*="display: none"]) { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--navy-2); color: rgba(255,253,246,.88); padding: 52px 0 30px; border-top: 6px solid var(--brick); }
.foot a { color: var(--chalk); }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { color: var(--gold); font-size: .85rem; letter-spacing: .12em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45em; }
.foot .crest { margin-bottom: 12px; }
.foot .legal { border-top: 1px solid rgba(255,253,246,.15); margin-top: 32px; padding-top: 20px; font-size: .9rem; }
.foot .indep { color: var(--chalk); font-weight: 600; }
.foot .legal strong { color: var(--gold); }

.tabbar { display: none; }

/* ---------- print (team card) ---------- */
@media print {
  .hdr, .strip, .foot, .tabbar, .noprint, .ae-slot { display: none !important; }
  body { background: #fff; }
  .form-card { box-shadow: none; border: 2px solid #000; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .diamonds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a { padding: .5em .5em; font-size: .9rem; }
}
@media (max-width: 960px) {
  .hero .wrap, .cols2, .sec-head, .stadium .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 32px; }
  .aside { position: static; }
  .nav { display: none; }
  .hdr .btn-gold { margin-left: auto; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daygrid, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  footer.foot { padding-bottom: calc(30px + 70px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .sec { padding: 44px 0; }
  .hdr .wrap { min-height: 60px; gap: 10px; }
  .crest svg { width: 34px; height: 38px; }
  .crest b { font-size: 1.3rem; }
  .crest { min-width: 0; flex: 1 1 auto; }
  .crest > span { min-width: 0; }
  .crest small { font-size: .56rem; letter-spacing: .06em; white-space: normal; max-width: 170px; }
  .hdr .btn-gold { padding: .45em .8em; }
  .strip .times { display: none; }
  .strip .tx { font-size: .88rem; }
  .diamonds { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .games li { grid-template-columns: 64px minmax(0, 1fr); }
  .games li > :last-child { grid-column: 1 / -1; justify-self: start; }
  .fieldpick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { border-width: 6px; padding: 12px; }
  .board li { grid-template-columns: auto 1fr; }
  .board li .lamp { grid-column: 1 / -1; justify-self: start; }
  .tile { min-width: 26px; height: 38px; font-size: 1.35rem; }
  .cv-wrap { aspect-ratio: 4 / 5; }
  .meter { bottom: 70px; width: 90%; }
  .sb b { min-width: 38px; height: 34px; font-size: 1.25rem; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); border-top: 3px solid var(--gold); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--chalk); text-decoration: none; font-size: .72rem; font-weight: 700; padding: 4px 0; border-radius: 8px; }
  .tabbar a[aria-current="page"] { background: rgba(255,253,246,.14); color: var(--gold); }
  .tabbar svg { width: 22px; height: 22px; }
  .ae-slot ins.adengine { max-width: 300px; min-height: 270px; }
  .hero { padding: 36px 0 44px; }
  .phead { padding: 38px 0 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
