:root{
  --black:#0b0b0b; --ink:#212529; --muted:#5c636a; --line:#dee2e6; --soft:#f3f3f3;
  --gold:#f2c230; --gold-deep:#8a6a00; --red:#c8102e; --mine:#fff1bf; --ok:#146c2e;
  --radius:12px; --font:"Helvetica Neue",Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:#fff;font-size:16px;line-height:1.4}
button,input,select{font:inherit}
a{color:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* Prototype bar */
.proto{background:var(--gold);color:var(--black);font-size:13px;padding:6px 12px;display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.proto a{font-weight:700}

/* Header */
.top{position:sticky;top:0;z-index:20;background:var(--black);color:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;height:84px;border-bottom:6px solid var(--gold)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;flex:1;min-width:0;align-self:stretch}
.brand>span{min-width:0}
.brand img{transition:width .2s,height .2s,top .2s,margin .2s}
.top.scrolled .brand img{width:56px;height:56px;top:0;margin:0}
@media (prefers-reduced-motion:reduce){.brand img{transition:none}}
.brand img{width:82px;height:82px;flex:none;position:relative;top:20px;margin:0 0 0 -2px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.45))}
.brand b{display:block;font-size:clamp(14px,calc((100vw - 178px) / 10.6),30px);line-height:1.1;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand small{display:block;white-space:nowrap;color:#e0e0e0;font-size:clamp(13px,calc((100vw - 178px) / 13),20px);margin-top:4px}
@media (max-width:359px){.brand img{width:66px;height:66px;top:14px}}
.menu-btn{background:var(--gold);border:0;color:#000;border-radius:50%;width:50px;height:50px;display:grid;place-items:center;flex:none;cursor:pointer}
.menu-btn svg{width:24px;height:24px}

/* Menu sheet */
.sheet{position:fixed;inset:0;z-index:50;visibility:hidden;transition:visibility 0s .28s}
.sheet::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.55);opacity:0;transition:opacity .28s}
.sheet.open{visibility:visible;transition:none}
.sheet.open::before{opacity:1}
.sheet-panel{position:absolute;inset:0 0 0 auto;width:min(400px,88%);background:var(--gold);color:#000;overflow:auto;transform:translateX(100%);transition:transform .28s ease;box-shadow:-8px 0 24px rgba(0,0,0,.25)}
.sheet.open .sheet-panel{transform:none}
@media (prefers-reduced-motion:reduce){.sheet,.sheet::before,.sheet-panel{transition:none}}
.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 20px;position:sticky;top:0;background:var(--gold);z-index:1}
.sheet-head h2{margin:0;font-size:22px}
.x{background:#000;border:0;color:#fff;width:44px;height:44px;border-radius:50%;font-size:24px;line-height:1;cursor:pointer}
.sheet .days{background:rgba(255,255,255,.55)}
.sheet .pitch-link{border:0;border-radius:999px;padding:8px 14px 8px 8px;min-height:56px}
.sheet .pnum{border-radius:50%;width:40px;height:40px;font-size:16px}
.sheet .pinfo span{color:#3d3d3d}
.sheet .menu-sub{color:#000}

/* Day switch */
.days{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--soft);border-radius:999px;padding:4px;margin:12px 16px}
.days button{border:0;background:none;border-radius:999px;padding:10px;min-height:44px;font-weight:700;cursor:pointer;color:var(--ink)}
.days button[aria-pressed=true]{background:var(--black);color:#fff}

/* Pitch list */
.pitches{list-style:none;margin:0;padding:0 16px 16px}
.pitches li+li{margin-top:8px}
.pitch-link{display:flex;align-items:center;gap:12px;text-decoration:none;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;min-height:64px;background:#fff}
.pitch-link:hover{border-color:var(--ink)}
.pnum{flex:none;width:44px;height:44px;border-radius:10px;background:var(--black);color:var(--gold);display:grid;place-items:center;font-weight:800;font-size:18px}
.pinfo{flex:1;min-width:0}
.pinfo b{display:block}
.pinfo span{color:var(--muted);font-size:14px;display:flex;align-items:center;gap:6px}
.kit{width:14px;height:14px;border-radius:50%;border:1px solid #777;display:inline-block;flex:none}
.kit.Stripes{background:repeating-linear-gradient(90deg,#000 0 3px,var(--gold) 3px 6px)}
.kit.White{background:#fff}.kit.Red{background:#d00}.kit.Blue{background:#1450c8}.kit.Claret{background:#7a1f3d}.kit.Yellow{background:#ffd400}.kit.Black{background:#000}
.status{font-size:12px;font-weight:700;border-radius:999px;padding:4px 8px;white-space:nowrap}
.status.live{background:var(--red);color:#fff}
.status.playing{background:var(--gold);color:#000}
.status.done{background:var(--soft);color:var(--ink)}
.status.soon{background:#fff;border:1px solid var(--line);color:var(--muted)}

/* Hero */
/* Brand stripe motif */
.stripe{display:none}

/* Home intro */
.intro{padding:48px 16px 4px}

.eyebrow{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);font-weight:700;margin:0 0 4px}
.intro h1{margin:0;font-size:30px;line-height:1.15}
.intro p{margin:8px 0 0;color:var(--muted);font-size:17px}

/* Quick links */
.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px 16px 0;list-style:none;margin:0}
.quick a{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;font-weight:700;font-size:15px}
.quick svg{width:24px;height:24px;flex:none}

/* Section headings */
.h2{font-size:20px;margin:0 0 10px}
.sub{color:var(--muted);margin:-6px 0 12px;font-size:15px}

/* What's on */
.whats{display:grid;grid-template-columns:1fr 1fr;gap:10px;list-style:none;margin:0;padding:0}
.whats li{border:1px solid var(--line);border-radius:var(--radius);padding:12px;background:#fff}
.whats .ic{width:40px;height:40px;border-radius:10px;background:var(--gold);display:grid;place-items:center;margin-bottom:8px}
.whats .ic svg{width:24px;height:24px}
.whats b{display:block;font-size:15px}
.whats span{display:block;font-size:14px;color:var(--muted);margin-top:2px}
.whats em{display:inline-block;font-style:normal;font-size:12px;font-weight:700;margin-top:6px;background:var(--soft);border-radius:4px;padding:2px 6px}

/* Welcome teaser */
.quote{background:var(--soft);border-radius:var(--radius);padding:16px}
.quote p{margin:0 0 10px}
.quote cite{font-style:normal;font-weight:700;display:block;margin-bottom:10px}
.more{font-weight:700}

/* Pitch header */
.pitch-head{padding:48px 16px 20px;display:flex;gap:16px;align-items:center}
.ptile{flex:none;width:76px;height:76px;border-radius:16px;background:var(--black);color:var(--gold);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.ptile small{font-size:11px;font-weight:800;letter-spacing:.1em;color:#fff;margin-bottom:4px}
.ptile b{font-size:36px}
.pitch-head h1{margin:0;font-size:28px;line-height:1.15;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pitch-head h1 .kit{width:18px;height:18px}
.pitch-head p{margin:6px 0 0;color:var(--muted);font-size:15px}

/* Content pages */
.page-head{padding:48px 16px 8px}
.page-head h1{margin:0;font-size:30px;line-height:1.15}
.page-head p{margin:8px 0 0;color:var(--muted);font-size:17px}
.prose{padding:16px;font-size:17px;line-height:1.55}
.prose p{margin:0 0 14px}
details{border:1px solid var(--line);border-radius:var(--radius);margin-bottom:10px;background:#fff}
summary{cursor:pointer;padding:14px 16px;font-weight:700;min-height:52px;display:flex;align-items:center;justify-content:space-between;list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:22px;font-weight:400}
details[open] summary::after{content:"−"}
details>div{padding:0 16px 8px}
details ul{padding-left:20px;margin:0 0 12px}
details li{margin-bottom:8px}
.faq dt{font-weight:700;margin-top:12px}
.faq dd{margin:4px 0 0}
.btn-dark{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--black);color:#fff;border-radius:12px;min-height:56px;font-weight:800;text-decoration:none;margin:0 16px}
.btn-dark svg{width:22px;height:22px}

/* Menu */
.menu-links{display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px 16px}
.menu-links a{background:#fff;border-radius:999px;padding:10px 18px;min-height:48px;display:inline-flex;align-items:center;text-decoration:none;font-weight:700}
.menu-links a[aria-current=page]{background:#000;color:#fff}
.menu-sub{margin:4px 16px 0;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}

main{max-width:760px;margin:0 auto}
.section{padding:24px 16px}
.bar{background:var(--black);color:#fff;margin:0;padding:12px 16px;font-size:20px;border-radius:var(--radius) var(--radius) 0 0}

/* Search */
.search label{display:block;font-weight:700;margin-bottom:6px}
.search input{width:100%;border:2px solid var(--ink);border-radius:var(--radius);padding:12px 14px;min-height:48px}
.results{list-style:none;padding:0;margin:8px 0 0}
.results a{display:block;padding:12px;border-bottom:1px solid var(--line);text-decoration:none}
.results small{color:var(--muted)}

/* Now card */
.now{border:2px solid var(--black);border-radius:var(--radius);overflow:hidden;margin:16px}
.now h2{margin:0;background:var(--black);color:var(--gold);font-size:14px;letter-spacing:.06em;text-transform:uppercase;padding:8px 12px}
.now .match{border:0}

/* Tabs */
.tabs{position:sticky;top:90px;z-index:10;background:#fff;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.tabs button{border:0;background:none;padding:14px;min-height:48px;font-weight:700;cursor:pointer;border-bottom:3px solid transparent;color:var(--muted)}
.tabs button[aria-selected=true]{color:var(--ink);border-color:var(--black)}

.mine-pick{display:flex;align-items:center;gap:10px;padding:14px 16px;margin:0 16px;background:var(--soft);border-radius:var(--radius)}
.mine-pick label{font-weight:700;font-size:14px;white-space:nowrap}
.mine-pick select{flex:1;min-width:0;min-height:44px;border:1px solid var(--ink);border-radius:8px;padding:8px;background:#fff}

/* Table */
.tbl-wrap{border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius);overflow:hidden}
table{width:100%;border-collapse:collapse;font-size:15px}
caption{text-align:left;padding:0}
th,td{padding:10px 4px;text-align:center;border-bottom:1px solid var(--line)}
th{font-size:12px;color:var(--muted);font-weight:700;text-transform:uppercase}
td.team,th.team{text-align:left;padding-left:8px}
td.pos{width:32px;font-weight:700}
td.pts{font-weight:800}
tr:last-child td{border-bottom:0}
tr.lead td{background:#e9e9e9}
tr.is-mine td{background:var(--mine)}
.badge{display:inline-block;font-size:11px;font-weight:800;border-radius:4px;padding:2px 5px;margin-left:4px;vertical-align:1px}
.badge.w{background:var(--gold);color:#000}
.badge.r{background:#d9d9d9;color:#000}
.opt{display:none}
.note{font-size:13px;color:var(--muted);padding:10px 12px;margin:0}
.alert{margin:12px 0 0;background:#fff7d6;border:1px solid #c9a227;border-radius:8px;padding:10px 12px;font-size:14px}
@media (min-width:420px){.opt{display:table-cell}}

/* Matches */
.matches{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius) var(--radius)}
.match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:12px 10px;border-bottom:1px solid var(--line)}
.matches li:last-child .match{border-bottom:0}
.match .h{text-align:right;font-size:15px}
.match .a{text-align:left;font-size:15px}
.mid{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:70px}
.pill{border-radius:6px;padding:5px 10px;font-weight:800;font-variant-numeric:tabular-nums;min-width:64px;text-align:center;font-size:16px}
.pill.done{background:var(--red);color:#fff}
.pill.sched{background:#fff;color:var(--ink);border:1px solid var(--ink)}
.pill.live{background:var(--gold);color:#000}
.mid small.clock{color:#000;font-weight:800;background:var(--gold);border-radius:4px;padding:1px 6px;font-variant-numeric:tabular-nums}
.pill.wd{background:#d9d9d9;color:#000;font-size:13px}
.mid small{font-size:12px;color:var(--muted)}
.match.is-mine{background:var(--mine)}
.match.next{box-shadow:inset 4px 0 0 var(--red)}
.break{background:var(--soft);text-align:center;font-size:13px;font-weight:700;color:var(--muted);padding:8px}
.win{font-weight:800}

/* Referee */
.ref{min-height:calc(100vh - 120px);background:#111;color:#fff;display:flex;flex-direction:column}
.ref-login{padding:20px 16px;max-width:460px;margin:0 auto;width:100%}
.ref-login h1{font-size:24px;margin:0 0 4px}
.ref-login p{color:#d0d0d0;margin:0 0 18px}
.field{margin-bottom:16px}
.field label{display:block;font-weight:700;margin-bottom:6px}
.field select,.field input{width:100%;min-height:52px;border-radius:10px;border:2px solid #777;background:#1e1e1e;color:#fff;padding:10px 12px;font-size:18px}
.field input.pin{letter-spacing:.5em;text-align:center;font-weight:800;font-size:24px}
.btn{display:block;width:100%;border:0;border-radius:12px;min-height:56px;font-size:18px;font-weight:800;cursor:pointer}
.btn.gold{background:var(--gold);color:#000}
.btn.ghost{background:none;color:#fff;border:2px solid #888}
.err{color:#ffb3b3;font-weight:700;min-height:1.4em;margin:8px 0}
.ref-head{display:flex;align-items:center;justify-content:space-between;padding:44px 16px 12px;border-bottom:1px solid #333;gap:8px}
.ref-head b{display:block}
.ref-head small{color:#cfcfcf}
.link-btn{background:none;border:1px solid #888;color:#fff;border-radius:999px;padding:8px 12px;min-height:40px;cursor:pointer;font-size:14px}
.prog{display:flex;gap:4px;padding:10px 16px;flex-wrap:wrap}
.prog i{flex:1;min-width:8px;height:6px;border-radius:3px;background:#444}
.prog i.d{background:var(--gold)}
.prog i.c{background:#fff}
.game{padding:8px 16px 16px;flex:1;display:flex;flex-direction:column;max-width:520px;margin:0 auto;width:100%}
.game-meta{text-align:center;color:#d6d6d6;margin:4px 0 12px;font-size:15px}
.game-meta b{color:var(--gold)}
.side{background:#1d1d1d;border:1px solid #333;border-radius:16px;padding:14px;margin-bottom:12px}
.side-name{font-size:20px;font-weight:800;text-align:center;margin-bottom:10px}
.stepper{display:grid;grid-template-columns:72px 1fr 72px;align-items:center;gap:10px}
.stepper button{height:72px;border-radius:14px;border:0;font-size:36px;font-weight:800;cursor:pointer;background:#333;color:#fff}
.stepper button.plus{background:var(--gold);color:#000}
.stepper output{font-size:56px;font-weight:800;text-align:center;font-variant-numeric:tabular-nums}
.vs{text-align:center;color:#aaa;margin:-4px 0 8px;font-size:14px}
.saved{text-align:center;font-weight:700;min-height:1.5em;margin:10px 0;color:#9be3ad}
.navrow{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.state{text-align:center;font-size:14px;color:#cfcfcf;margin:0 0 8px}
.done-all{text-align:center;padding:30px 16px}
.done-all h2{color:var(--gold)}

/* Referee timer */
.clockbox{text-align:center;margin:0 0 12px}
.clockbox .period{display:inline-block;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:#333;border-radius:999px;padding:4px 10px}
.clockbox.running .period{background:var(--gold);color:#000}
.bigclock{font-size:72px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:.02em}
.clockbox.ended .bigclock{color:var(--gold)}
.ctl{display:grid;grid-template-columns:1fr;gap:10px;margin:4px 0 0}
.addrow{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:14px;color:#d6d6d6;text-align:center}
.addrow span{grid-column:1/-1}
.addrow button{background:#333;color:#fff;border:1px solid #777;border-radius:999px;min-height:44px;padding:0 16px;font-weight:800;cursor:pointer}
.btn.white{background:#fff;color:#000}
.txt-btn{background:none;border:0;color:#e0e0e0;text-decoration:underline;font-size:15px;min-height:44px;cursor:pointer;width:100%}
.fast{display:flex;align-items:center;gap:6px;font-size:13px;color:#cfcfcf;justify-content:center;margin:6px 0 0}
/* Alerts */
.alertbar{background:#b3261e;color:#fff;padding:14px 16px;display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.35}
.alertbar svg{width:26px;height:26px;flex:none;margin-top:1px}
.alertbar b{display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:2px}
.pitch-alert{margin:0 16px 16px;background:#fde7e9;color:#5c0f14;border-left:6px solid #b3261e;border-radius:8px;padding:12px 14px;display:flex;gap:10px;font-size:15px}
.pitch-alert svg{width:22px;height:22px;flex:none;color:#b3261e}
.pitch-alert b{display:block}
.status.alert{background:#b3261e;color:#fff}
.assist-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:12px;border:2px solid #ff8a80;background:#2a1212;color:#fff;font-weight:800;font-size:16px;cursor:pointer;margin-top:14px}
.assist-btn svg{width:22px;height:22px;color:#ff8a80}
.assist{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.7);display:flex;align-items:flex-end;justify-content:center}
.assist-panel{background:#1b1b1b;color:#fff;width:100%;max-width:520px;border-radius:18px 18px 0 0;padding:20px 16px 24px;max-height:92vh;overflow:auto}
.assist-panel h2{margin:0 0 4px;font-size:22px}
.assist-panel p{margin:0 0 14px;color:#d6d6d6}
.assist-999{background:#b3261e;color:#fff;border-radius:10px;padding:10px 12px;font-weight:700;margin-bottom:14px}
.reasons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.reasons button{min-height:56px;border-radius:12px;border:2px solid #555;background:#262626;color:#fff;font-weight:700;cursor:pointer;padding:8px}
.reasons button[aria-pressed=true]{border-color:var(--gold);background:#3a3110}
.assist-panel textarea{width:100%;min-height:72px;border-radius:10px;border:2px solid #555;background:#111;color:#fff;padding:10px;font:inherit;margin-bottom:12px}
.assist-sent{background:#103a1e;border:2px solid #4caf50;border-radius:12px;padding:12px 14px;margin-top:12px;font-weight:700}
footer{padding:24px 16px;color:var(--muted);font-size:13px;text-align:center}
@media (min-width:760px){
  .intro,.pitch-head,.page-head{padding-left:max(24px,calc(50% - 380px));padding-right:max(24px,calc(50% - 380px))}
  .quick{grid-template-columns:repeat(4,1fr);padding:20px 0 0}
  .whats{grid-template-columns:repeat(3,1fr)}
  .section{padding:20px 0}
  .now{margin:20px 0}
}
