@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- base ---- */
:root {
  --bg: #060a14; --panel: #0f1629; --panel2: #161f38; --line: #25304f; --text: #eef2ff; --mute: #8e9bbd;
  --win: #16a34a; --loss: #dc2626; --live: #f59e0b; --accent: #3b82f6; --gold: #fbbf24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--text); min-height: 100vh;
  background: radial-gradient(1200px 500px at 50% -120px, #1e3a8a55, transparent), var(--bg);
}
body.noscroll { overflow: hidden; }
a { color: #93c5fd; }
button, input, select { font: inherit; color: inherit; }
button, .btn, .team, a { touch-action: manipulation; }
.wrap { max-width: 980px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left)); }
.wide { max-width: 1500px; }
.muted { color: var(--mute); }
.center { text-align: center; }
.small { font-size: 13px; }
.spin { text-align: center; padding: 60px 0; color: var(--mute); }

/* ---- header ---- */
.hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.hero img.nfl { width: 52px; height: 52px; }
.hero h1 { overflow-wrap: anywhere; font-family: Oswald, sans-serif; font-size: 30px; line-height: 1; margin: 0; letter-spacing: .5px; text-transform: uppercase; }
.hero .sub { color: var(--mute); font-size: 14px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.chip.gold { background: #fbbf2422; border-color: #fbbf2466; color: var(--gold); }
.chip.red { background: #dc262622; border-color: #dc262666; color: #fca5a5; }
.chip.green { background: #16a34a22; border-color: #16a34a66; color: #86efac; }

/* ---- panels, forms, buttons ---- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.panel h2 { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 18px; margin: 0 0 10px; letter-spacing: .5px; overflow-wrap: anywhere; }
details.panel summary { cursor: pointer; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.field label { font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .6px; }
input[type=text], input[type=number], input[type=password], select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font-size: 17px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-height: 44px; font-weight: 700; cursor: pointer;
  background: var(--panel2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn.primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #3b82f6; color: #fff; }
.btn.go { background: linear-gradient(135deg, #16a34a, #15803d); border-color: #22c55e; color: #fff; font-size: 18px; padding: 15px 22px; }
.btn.danger { color: #fca5a5; }
.btn.danger.armed { background: #dc2626; border-color: #ef4444; color: #fff; }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.block { display: flex; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- banners and messages ---- */
.banner { padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; overflow-wrap: anywhere; }
.banner.info { background: #1d4ed822; border: 1px solid #3b82f655; }
.banner.warn { background: #f59e0b1a; border: 1px solid #f59e0b55; color: #fde68a; }
.banner.ok { background: #16a34a1f; border: 1px solid #22c55e66; color: #bbf7d0; }
.banner.big { font-size: 18px; }
.err { background: #dc262622; border: 1px solid #dc262688; color: #fecaca; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-weight: 600; overflow-wrap: anywhere; }
#toast { position: fixed; left: 12px; right: 12px; margin: 0 auto; width: fit-content; bottom: calc(env(safe-area-inset-bottom) + 118px); transform: translateY(30px); background: #16a34a; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .2s; z-index: 50; pointer-events: none; max-width: 520px; text-align: center; overflow-wrap: anywhere; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.bad { background: #dc2626; }
html.kb-open #toast { bottom: calc(var(--kb, 0px) + 16px); }

/* ---- pot card (public) ---- */
.potcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 14px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, #fbbf2433, #f59e0b14 60%, var(--panel)); border: 1px solid #fbbf2466; }
.potcard .k { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #fde68a; }
.potcard .v { font-family: Oswald, sans-serif; font-size: 40px; line-height: 1; color: var(--gold); margin-top: 4px; text-shadow: 0 2px 16px #fbbf2455; }
.potr { text-align: right; font-size: 14px; font-weight: 600; line-height: 1.5; }
.potr b { font-size: 20px; color: #fff; }
.potr span { color: var(--mute); font-size: 13px; }

/* ---- pick cards ---- */
/* room below the last game card for its glow ring, so it never runs into the Who's in box */
.games { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
@media (min-width: 760px) { .games { grid-template-columns: 1fr 1fr; } }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 10px; position: relative; }
.game.done { border-color: #22c55e55; }
.game.tb { grid-column: 1 / -1; border: 2px solid var(--gold); box-shadow: 0 0 0 4px #fbbf2418; }
.game.missing { border: 2px solid #ef4444; box-shadow: 0 0 0 4px #ef444426; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.gmeta { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); font-weight: 600; padding: 2px 6px 8px; letter-spacing: .3px; }
.where { font-size: 12px; font-weight: 700; color: #93c5fd; padding: 0 6px 8px; margin-top: -4px; }
.gteams { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; }
.at { display: flex; align-items: center; justify-content: center; font-family: Oswald, sans-serif; font-size: 20px; color: var(--mute); }
.needpick { display: none; text-align: center; color: #fca5a5; font-weight: 800; font-size: 13px; padding-top: 8px; }
.game.missing .needpick { display: block; }
.game.tb.missing .needpick { display: none; }

/* Team button: club-color tint, big logo watermark behind a centered name; fills with the club color when picked. */
.team {
  position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 12px 8px 10px; min-height: 128px; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tc) 28%, var(--panel2)), var(--panel2) 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s, opacity .15s;
}
.team:active { transform: scale(.97); }
.team:disabled { cursor: not-allowed; }
.team::before { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000)); opacity: 0; transition: opacity .15s; }
.team .bg { position: absolute; inset: -12% -8%; background: center / contain no-repeat; opacity: .32; transform: rotate(-10deg); transition: opacity .15s, transform .2s; pointer-events: none; }
.team b { position: relative; z-index: 1; font-family: Oswald, sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .4px; line-height: 1.05; text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.team .ha { position: absolute; top: 6px; left: 8px; z-index: 1; font-size: 10px; font-weight: 800; color: var(--mute); letter-spacing: .8px; }
.team.on { border-color: var(--ta); box-shadow: 0 0 0 2px var(--ta), 0 8px 24px color-mix(in srgb, var(--tc) 50%, transparent); }
.team.on::before { opacity: 1; }
.team.on .bg { opacity: .5; transform: rotate(-10deg) scale(1.08); }
.team.on .ha { color: #fffc; }
.team.on::after { content: '✓'; position: absolute; top: 6px; right: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #111; font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.team.off { opacity: .42; }

/* ---- tiebreaker ---- */
.tbbox { margin: 10px 4px 2px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fbbf2412; border-radius: 12px; padding: 12px; }
.tbbox .lbl { flex: 1; min-width: 180px; }
.tbbox .lbl b { color: var(--gold); font-family: Oswald, sans-serif; letter-spacing: .5px; font-size: 16px; }
.tbbox .lbl div { font-size: 13px; color: var(--mute); margin-top: 2px; }
.tbbox input { width: 120px; font-size: 26px; font-weight: 800; text-align: center; }
.game.tb.missing .tbbox { outline: 2px solid #ef4444; }

/* ---- bottom bar (pick sheet) ---- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #060a14ee; backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); z-index: 20; }
@media (pointer: coarse) { html.typing .bar, html.kb-open .bar { display: none; } }
.bar .in { max-width: 980px; margin: 0 auto; display: flex; gap: 14px; align-items: center; }
.prog { flex: 1; }
.prog .t { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.prog .track { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.prog .fill { height: 100%; background: linear-gradient(90deg, #22c55e, #86efac); width: 0; transition: width .2s; }

/* ---- confirm sheet ---- */
.sheet { position: fixed; inset: 0; background: #000a; z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding-bottom: var(--kb, 0px); }
.sheet[hidden] { display: none; }
.sheet-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; max-height: calc(100% - 12px); overflow-y: auto; animation: up .2s ease-out; }
.sheet-card h2 { font-family: Oswald, sans-serif; text-transform: uppercase; margin: 0 0 12px; font-size: 22px; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 20px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ---- "you're in" summary ---- */
.sumlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sumlist div { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 7px 10px; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tc, #334155) 35%, var(--panel2)), var(--panel2)); }
.sumlist img { width: 26px; height: 26px; }
.tbline { font-size: 16px; margin: 14px 0 6px; }
.tbline b { color: var(--gold); font-size: 20px; }

/* ---- admin ---- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.tabs[hidden] { display: none; }
.tabs button { border: 0; background: transparent; border-radius: 10px; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--mute); cursor: pointer; }
.tabs button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.weekbar { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; margin-bottom: 14px; }
.weekbar .btn { font-size: 22px; padding: 0; }
.weekbar select { font-weight: 800; font-size: 18px; text-align: center; text-align-last: center; }
.linkbox { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 700; padding: 14px 16px; background: var(--bg); border: 2px dashed #3b82f6; border-radius: 12px; word-break: break-all; color: #bfdbfe; user-select: all; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pinfo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.pinfo span { font-size: 12px; }
.paid { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--mute); font-weight: 700; text-transform: uppercase; }
.toggle { width: 46px; height: 26px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); position: relative; cursor: pointer; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--mute); transition: left .15s; }
.toggle.on { background: #16a34a; border-color: #22c55e; }
.toggle.on::after { left: 22px; background: #fff; }

/* All weeks list */
.wk { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; scroll-margin-top: 12px; }
.wk.now { border: 2px solid var(--gold); box-shadow: 0 0 0 4px #fbbf2414; }
.wk.done { opacity: .6; }
.wk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-top b { font-family: Oswald, sans-serif; font-size: 20px; text-transform: uppercase; letter-spacing: .4px; display: inline-flex; align-items: center; }
.wk-meta { font-size: 13px; color: var(--mute); margin-top: 3px; }
.wk-link { font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 700; color: #bfdbfe; margin-top: 8px; word-break: break-all; user-select: all; }
.wk-btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.tag { font-family: Inter, sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .8px; padding: 3px 7px; border-radius: 6px; background: var(--gold); color: #111; margin-left: 8px; }

/* ---- picks sheet: players down the left (pinned while you swipe), games across the top (pinned while you scroll) ---- */
.gridwrap { overflow: auto; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; max-height: 78vh; background: var(--panel); overscroll-behavior-x: contain; }
.gridwrap.fitted { max-height: none; overflow: hidden; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; }
/* A box around every cell (rows and columns), so each pick lines up with its game and its player at a glance. */
.grid th, .grid td { border-bottom: 1px solid #34436e; border-right: 1px solid #34436e; padding: 6px 4px; text-align: center; white-space: nowrap; }
.grid tr > :last-child { border-right: 0; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid thead th { position: sticky; top: 0; background: #111a30; z-index: 2; vertical-align: bottom; border-bottom: 2px solid #4a5b8c; }
.grid thead .gc { vertical-align: top; }

/* Player column: rank + name on top, record and tiebreaker underneath. Solid backgrounds: picks slide under it. */
.grid .pl { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; padding: 7px 10px 7px 8px;
  width: 136px; min-width: 136px; max-width: 136px; border-right: 2px solid #4a5b8c; box-shadow: 6px 0 8px -6px #000c; }
.grid thead .pl { z-index: 3; background: #111a30; font-size: 11px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .6px; vertical-align: bottom; }
.grid tbody tr:nth-child(even) .pl { background: #131c33; }
.grid tbody tr:nth-child(even) td { background-color: #ffffff05; }
.grid tbody tr td.tbc { background-color: #fbbf2410; }
.grid tbody tr.top .pl { background: linear-gradient(90deg, #fbbf2433, #fbbf2412), var(--panel); }
.pl-top { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.pl .rk { flex: none; min-width: 18px; text-align: center; color: var(--mute); font-size: 12px; font-weight: 800; }
.pl-name { min-width: 0; font-size: 15px; font-weight: 800; line-height: 1.15; color: var(--text); white-space: normal; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid tr.me .pl-name { color: var(--gold); }
.pl-sub { margin-top: 3px; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--mute); }
.pl-sub .rec { color: #86efac; font-size: 13px; font-weight: 800; }
.pl-sub i { font-style: normal; }
.pl-sub .up { color: #fcd34d; }
.pl-sub .off { color: var(--gold); }

/* Game columns */
.grid .gc { width: 54px; min-width: 54px; max-width: 54px; padding: 6px 2px; }
.gh { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.gh-t { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 800; min-height: 22px; }
.gh-t img { width: 22px; height: 22px; }
.gh-t b { color: var(--mute); }
.gh-t b.lead { color: #fff; }
.gh-at { font-size: 9px; font-weight: 800; color: var(--mute); line-height: 1; }
.gs { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; line-height: 1.15; color: var(--mute); white-space: normal; }
.grid .gc .gs { max-width: 52px; }
.gs.live { color: var(--live); }
.gs.off { color: #fca5a5; }
.tbcol { background: linear-gradient(#fbbf241f, #fbbf241f), #111a30 !important; }
.tbtag { margin-top: 3px; background: var(--gold); color: #111; font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 4px; }

/* Tiebreaker column: last on the right, like the last line of the paper sheet */
.grid .tbh, .grid .tbc { width: 62px; min-width: 62px; max-width: 62px; padding: 6px 3px; border-left: 2px solid #fbbf2466; }
.grid thead .tbh { vertical-align: top; background: linear-gradient(#fbbf2424, #fbbf2424), #111a30; }
.tbh-i { font-size: 17px; line-height: 1.15; }
.tbh-t { font-size: 9px; font-weight: 900; line-height: 1.1; letter-spacing: .3px; text-transform: uppercase; color: var(--gold); white-space: normal; hyphens: manual; }
.tbh-n { margin-top: 3px; font-size: 11px; font-weight: 800; color: #fff; }
.tbc b { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
.tbc small { display: block; margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--gold); }

/* Pick cells */
.pc { height: 54px; }
.pc img { width: 28px; height: 28px; display: block; margin: 0 auto; }
.pc span { font-size: 9px; font-weight: 800; display: block; margin-top: 2px; opacity: .85; }
.grid .pc.win, .pc.win { background-color: #16a34a47; }
.grid .pc.loss, .pc.loss { background-color: #dc262633; }
.pc.loss img { opacity: .45; filter: grayscale(.8); }
.grid .pc.winning, .pc.winning { background-color: #f59e0b30; box-shadow: inset 0 -3px 0 #22c55e; }
.grid .pc.losing, .pc.losing { background-color: #dc26261a; box-shadow: inset 0 -3px 0 #dc2626; }
.grid .pc.tied, .pc.tied { background-color: #f59e0b1a; }
.pc.void img { opacity: .35; }
.pc.none { color: var(--mute); }
@media (hover: hover) { .grid tbody tr:hover .pl { background: #1b2646; } }

/* ---- The sheet is two tables sharing one set of columns: a header strip pinned to the top of the screen, and the
   rows, which only scroll sideways, so the page does all the up and down (no box-inside-a-page scrolling). On a
   computer the sheet stretches to the full width, with bigger logos and room for full names. ---- */
.gridx { --pl: 136px; --gcw: 54px; --tbw: 62px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.gridx .gridhead { position: sticky; top: 0; z-index: 5; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-radius: 13px 13px 0 0;
  background: #111a30; box-shadow: 0 6px 10px -8px #000; overscroll-behavior-x: contain; }
.gridx .gridhead::-webkit-scrollbar { display: none; }
.gridx .gridwrap { overflow-x: auto; overflow-y: hidden; width: auto; max-width: none; max-height: none; border: 0; border-radius: 0 0 13px 13px; background: none; }
.gridx table.grid { width: 100%; min-width: calc(var(--pl) + var(--n) * var(--gcw) + var(--tbw)); table-layout: fixed; }
.gridx col.c-pl { width: var(--pl); }
.gridx col.c-tb { width: var(--tbw); }
.gridx .grid thead th { position: static; }
.gridx .grid .pl { position: sticky; left: 0; width: auto; min-width: 0; max-width: none; }
.gridx .grid .gc, .gridx .grid .tbh, .gridx .grid .tbc { width: auto; min-width: 0; max-width: none; }
.gridx .grid .gc .gs { max-width: none; }
.gridx.fitted .gridhead, .gridx.fitted .gridwrap { overflow: hidden; }
@media (min-width: 900px) {
  .gridx { --pl: 200px; --gcw: 56px; --tbw: 84px; }
  .gridx .pc img { width: 34px; height: 34px; }
  .gridx .gh-t img { width: 26px; height: 26px; }
}
@media (max-width: 520px) {
  /* phones: the sheet runs edge to edge inside its panel, for one more game on screen */
  .panel .gridx { margin: 0 -12px; border-left: 0; border-right: 0; border-radius: 0; }
  .panel .gridx .gridhead, .panel .gridx .gridwrap { border-radius: 0; }
}

/* Games-down layout (board "flip" option): one column per person */
.gridT .num { font-weight: 800; font-size: 15px; min-width: 38px; }
.gridT .num small { display: block; font-size: 10px; font-weight: 700; color: var(--mute); }
.gridT .num small.up { color: #fcd34d; }
.gridT .w { color: #86efac; }
.gridT .gl { position: sticky; left: 0; background: var(--panel); z-index: 1; text-align: left; border-right: 2px solid #4a5b8c; }
.gridT thead .gl { z-index: 3; background: #111a30; }
.gridT .pn { vertical-align: bottom; padding: 8px 4px; min-width: 40px; }
.gridT .pn .pmark { font-size: 13px; line-height: 1; margin-bottom: 4px; }
.gridT .pn span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 13px; white-space: nowrap; max-height: 130px; overflow: hidden; text-overflow: ellipsis; }
.glg { display: flex; flex-direction: column; gap: 2px; min-width: 92px; }
.glg .gt { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; }
.glg .gt img { width: 18px; height: 18px; }
.glg .gt b { margin-left: auto; color: var(--mute); }
.glg .gt b.lead { color: #fff; }
.gridT .pc img { width: 28px; height: 28px; }
.gridT .tbrow td.pend, .gridT .tbrow td.none { background-color: #fbbf2412; }
.gridT .tbrow th { background: linear-gradient(#fbbf2412, #fbbf2412), var(--panel); }
.gridT .sumrow td, .gridT .sumrow th { font-weight: 800; background: #111a30; }
.gridT .tbsum td { color: var(--gold); font-size: 15px; }

/* ---- board page ---- */
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mute); margin: 8px 2px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* ---- phones ---- */
@media (max-width: 520px) {
  .wrap { padding: 12px max(12px, env(safe-area-inset-right)) 110px max(12px, env(safe-area-inset-left)); }
  .panel { padding: 14px 12px; }
  .hero img.nfl { width: 40px; height: 40px; }
  .hero h1 { font-size: 24px; }
  .team { min-height: 118px; }
  .team b { font-size: 16px; }
  .gridT .pn { min-width: 34px; }
  .gridT .pc img { width: 24px; height: 24px; }
  .bar .btn.go { padding: 14px 20px; }
}

/* ---- public sheet (pick page after the lock) ---- */
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -2px 0 12px; }
.gridT .pn.me { color: var(--gold); }

/* ---- manual copy box (browsers that refuse to copy) ---- */
.copybox textarea { width: 100%; min-height: 120px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #0b1222; color: var(--text); font: 600 16px/1.35 Inter, system-ui, sans-serif; resize: none; }

/* ---- standings card: top 3 while games are on, then the winner ---- */
.podium h2 { margin-bottom: 8px; }
.pod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pod-list li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.pod-m { flex: none; min-width: 26px; text-align: center; font-size: 18px; font-weight: 800; color: var(--mute); }
.pod-n { flex: 1; min-width: 0; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.pod-r { flex: none; font-size: 13px; font-weight: 700; color: #86efac; white-space: nowrap; }
.pod-r .up { color: #fcd34d; font-style: normal; }
.podium.done { text-align: center; border-color: #fbbf2488; background: linear-gradient(135deg, #fbbf2426, #fbbf2408), var(--panel); }
.podium.done .pod-list { text-align: left; }
.pod-k { font-family: Oswald, sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.pod-win { font-family: Oswald, sans-serif; font-size: 30px; line-height: 1.1; margin: 4px 0; overflow-wrap: anywhere; }
.pod-sub { color: var(--mute); font-size: 13px; font-weight: 600; }
.pod-prize { display: inline-block; max-width: 100%; margin: 10px 0 12px; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #111; font-size: 15px; font-weight: 900; overflow-wrap: anywhere; }
.pod-n .more { font-style: normal; font-size: 13px; font-weight: 700; color: var(--mute); }
