/* ==========================================================================
   Button's Ultimate Football Challenge — design system
   "Under the lights": Button green is the turf, Button gold is the floodlight.
   ========================================================================== */

/* ---------- Fonts (Geist self-hosted, Big Shoulders from Google Fonts) ---- */
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/be-geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../fonts/be-geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/be-geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("../fonts/be-geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../fonts/be-geist-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --night: #05120b;
  --turf-900: #0a2c17;
  --turf-850: #0d361c;
  --turf-800: #114224;
  --turf-700: #1a5a30;
  --turf-600: #267543;
  --turf-500: #389560;

  --chalk: #f4f1e6;
  --chalk-70: rgba(244, 241, 230, 0.72);
  --chalk-45: rgba(244, 241, 230, 0.45);
  --chalk-25: rgba(244, 241, 230, 0.25);
  --line: rgba(244, 241, 230, 0.10);
  --line-strong: rgba(244, 241, 230, 0.22);

  --gold: #efde00;
  --gold-soft: #f7ec6a;
  --gold-glow: rgba(239, 222, 0, 0.35);
  --frost: #9cc4e4;
  --frost-glow: rgba(156, 196, 228, 0.28);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 16px;
  --max: 1080px;
  --tray-h: 76px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--night); color: var(--chalk); }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(38, 117, 67, 0.35), transparent 60%),
    var(--night);
}
body.has-tray { padding-bottom: calc(var(--tray-h) + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--gold); color: var(--night); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type roles --------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-45);
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Top bar ------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 18, 11, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.brand-title { display: none; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 0.06em; color: var(--chalk-70); padding-left: 12px; border-left: 1px solid var(--line-strong); }
@media (min-width: 900px) { .brand-title { display: inline-block; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  color: var(--chalk-70);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--chalk); background: rgba(244, 241, 230, 0.06); }
.nav a[aria-current="page"] { color: var(--night); background: var(--chalk); }
.nav .nav-points { font-family: var(--font-mono); font-size: 13px; color: var(--gold); padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line-strong); border-radius: 0; }
.nav .nav-points:hover { background: none; }
.nav .nav-out { color: var(--chalk-45); }
/* Play draws a little light so people notice the game */
/* The glow lives on a pseudo-element and only its opacity animates (compositor-only inside the blurred sticky bar). */
.nav a.nav-play:not([aria-current="page"]) { position: relative; color: var(--gold); }
.nav a.nav-play:not([aria-current="page"]):hover { background: rgba(239,222,0,0.12); }
.nav a.nav-play:not([aria-current="page"])::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 12px 1px var(--gold-glow); opacity: 0; animation: navPlayGlow 2.6s var(--ease) infinite; }
@keyframes navPlayGlow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (max-width: 719px) {
  .topbar .wrap { height: 56px; }
  .brand img { height: 26px; }
  .nav a { padding: 7px 10px; font-size: 13px; }
}

/* Mobile: nav collapses behind a menu button */
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; color: var(--chalk); }
.menu-btn svg { width: 16px; height: 16px; }
.menu-btn .pts { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
@media (max-width: 719px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 14px; background: rgba(5,18,11,0.96); border-bottom: 1px solid var(--line-strong); overflow: visible; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; border-radius: var(--r-md); }
  .nav .nav-points { display: none; }
}

/* ---------- Hero (dashboard) -------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 62vh;
  min-height: 62svh;
  display: flex; align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .hero { min-height: 70vh; min-height: 70svh; } }
@media (max-width: 719px) { .hero { min-height: 54vh; min-height: 54svh; } .hero-inner { padding-top: 40px; } .scoreboard > div { padding: 12px 12px; } .scoreboard .val { font-size: 30px; } }
.field-canvas, .field-poster { position: absolute; inset: 0; z-index: -2; }
.field-canvas { opacity: 0; transition: opacity 0.9s var(--ease); image-rendering: pixelated; image-rendering: crisp-edges; }
.field-canvas.is-ready { opacity: 1; }
/* Flat turf-stripe poster: visible until the pixel scene has drawn its first frame */
.field-poster {
  background:
    linear-gradient(180deg, var(--night) 0%, var(--night) 34%, transparent 34%, transparent 78%, var(--night) 78%),
    repeating-linear-gradient(90deg, var(--turf-800) 0 60px, var(--turf-850) 60px 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 78% at 22% 100%, rgba(5,18,11,0.72), transparent 68%),
    linear-gradient(180deg, rgba(5,18,11,0.28) 0%, rgba(5,18,11,0.04) 30%, rgba(5,18,11,0.55) 66%, rgba(5,18,11,0.94) 100%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 28px; width: 100%; }
.hero .eyebrow { color: var(--gold); margin-bottom: 14px; }
.hero h1 { font-size: clamp(72px, 19vw, 190px); color: var(--chalk); text-shadow: 0 2px 40px rgba(0,0,0,0.5); }
.hero h1 .week-num { color: var(--gold); }
.lock-line { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--font-mono); font-size: 14px; color: var(--chalk-70); }
.lock-line strong { color: var(--chalk); font-weight: 500; }
.lock-line .countdown { color: var(--gold); }
.lock-line .lock-rule { flex-basis: 100%; font-size: 12px; color: var(--chalk-45); }

/* Scoreboard strip */
.scoreboard {
  margin-top: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(5, 18, 11, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  overflow: hidden;
}
.scoreboard > div { padding: 14px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.scoreboard > div:last-child { border-right: 0; }
.scoreboard .eyebrow { margin-bottom: 4px; color: var(--chalk-45); }
.scoreboard .val { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: 0.01em; }
.scoreboard .val small { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--chalk-45); margin-left: 6px; letter-spacing: 0.06em; }
@media (min-width: 720px) { .scoreboard { max-width: 620px; } .scoreboard .val { font-size: 40px; } }

/* ---------- Page head (non-dashboard pages) ------------------------------ */
.page-head { padding-top: 44px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: clamp(48px, 10vw, 96px); }
.page-head p { margin-top: 10px; max-width: 58ch; color: var(--chalk-70); }

/* ---------- Notices ------------------------------------------------------ */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; margin: 18px 0 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(244, 241, 230, 0.06);
  font-size: 15px;
}
.notice::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--chalk-45); }
.notice.is-success { border-color: rgba(239, 222, 0, 0.45); background: rgba(239, 222, 0, 0.08); }
.notice.is-success::before { background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.notice.is-error { border-color: rgba(156, 196, 228, 0.5); background: rgba(156, 196, 228, 0.08); }
.notice.is-error::before { background: var(--frost); box-shadow: 0 0 12px var(--frost-glow); }
/* Legacy markup emitted by controllers */
.alert { padding: 12px 14px; margin: 18px 0 0; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(244,241,230,0.06); font-size: 15px; }
.alert-success { border-color: rgba(239,222,0,0.45); background: rgba(239,222,0,0.08); }
.alert-danger, .alert-warning { border-color: rgba(156,196,228,0.5); background: rgba(156,196,228,0.08); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid var(--line-strong);
  color: var(--chalk);
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: rgba(244,241,230,0.06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--night); border-color: var(--gold); box-shadow: 0 0 0 0 var(--gold-glow); }
.btn-primary:hover { background: var(--gold-soft); box-shadow: 0 8px 30px var(--gold-glow); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 26px; }

/* ---------- Matchups ----------------------------------------------------- */
.picks { padding-top: 8px; padding-bottom: 40px; }
.day { margin-top: 30px; }
.day-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.day-head h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.03em; color: var(--chalk); }
.day-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--chalk-45); }
.matchups { display: grid; gap: 12px; }
@media (min-width: 760px) { .matchups { grid-template-columns: 1fr 1fr; gap: 14px; } }

.matchup {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(17,66,36,0.55), rgba(10,44,23,0.65));
  padding: 12px 12px 12px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.matchup:hover { border-color: var(--line-strong); }
.matchup-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 10px; }
.matchup-meta .kick { font-family: var(--font-mono); font-size: 13px; color: var(--chalk-70); }
.matchup-meta .status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chalk-45); display: inline-flex; align-items: center; gap: 6px; }
.matchup-meta .status.is-locked { color: var(--frost); }
.matchup-meta .status svg { width: 12px; height: 12px; }
.matchup-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.at { align-self: center; font-family: var(--font-mono); font-size: 12px; color: var(--chalk-25); }

/* A team is a label wrapping the real checkbox — the form contract is unchanged. */
.team {
  position: relative; display: block;
  min-height: 74px;
  padding: 12px 12px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(5,18,11,0.35);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.team input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.team .city { display: block; font-size: 12px; color: var(--chalk-45); line-height: 1.2; }
.team .nick { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 26px; letter-spacing: 0.02em; line-height: 1; color: var(--chalk); }
.team .tag { position: absolute; right: 10px; top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chalk-45); }
.team .check {
  position: absolute; right: 10px; bottom: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease-out);
}
.team .check svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--ease-out); }
.team:hover:not(.is-off) { border-color: var(--line-strong); background: rgba(244,241,230,0.05); }
.team:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.team:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(239,222,0,0.14), rgba(239,222,0,0.06));
  box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 40px -12px var(--gold-glow);
}
.team:has(input:checked) .nick { color: var(--gold); }
.team:has(input:checked) .check { background: var(--gold); border-color: var(--gold); transform: scale(1.05); }
.team:has(input:checked) .check svg { opacity: 1; transform: scale(1); color: var(--night); }
.team.is-off { cursor: default; }
.team.is-off .nick { color: var(--chalk-45); }
.team.is-used { border-style: dashed; }
.team.is-used .nick { text-decoration: line-through; text-decoration-color: var(--chalk-45); text-decoration-thickness: 2px; }
.team.is-used .tag { color: var(--gold); }
.team.is-locked { opacity: .55; }
.team.is-locked:has(input:checked) { opacity: 1; }
.team.is-locked .check { display: none; }
@media (min-width: 760px) { .team .nick { font-size: 28px; } }

/* Pick tray */
.tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(5,18,11,0.82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(0);
  transition: transform .35s var(--ease);
}
.tray-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.tray-status { flex: 1; min-width: 0; }
.tray-status .eyebrow { margin-bottom: 2px; }
.tray-status .picked { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-status .picked .none { color: var(--chalk-45); }
.tray-status .picked .sep { color: var(--chalk-25); padding: 0 6px; }
.tray-status .picked .gold { color: var(--gold); }
.tray .btn { flex: 0 0 auto; }
.tray.is-dirty .btn-primary { animation: trayPulse 1.6s var(--ease) infinite; }
@keyframes trayPulse { 0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); } 50% { box-shadow: 0 0 0 10px rgba(239,222,0,0); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tray-h) + 18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px); opacity: 0; z-index: 60;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--chalk); color: var(--night);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Off-season / no-week state */
.offseason { padding-top: 24px; padding-bottom: 60px; }
.offseason .card { max-width: 640px; }
.offseason h2 { font-size: clamp(34px, 7vw, 56px); margin-bottom: 14px; }
.offseason p { color: var(--chalk-70); margin-bottom: 12px; }
.offseason a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards / panels ---------------------------------------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(17,66,36,0.5), rgba(10,44,23,0.6));
  padding: 22px;
}
@media (min-width: 720px) { .card { padding: 30px; } }

/* ---------- Ledger (leaderboard / history) ------------------------------- */
.ledger { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(5,18,11,0.35); }
.ledger-row {
  display: grid; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  min-height: 56px;
}
.ledger-row:first-child { border-top: 0; }
.ledger-head { background: rgba(244,241,230,0.04); min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.ledger-head span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chalk-45); }
.ledger-row.is-me { background: rgba(239,222,0,0.07); box-shadow: inset 3px 0 0 var(--gold); }
.rank { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--chalk-70); }
.ledger-row.is-me .rank { color: var(--gold); }
.rank.top { color: var(--gold); }
.who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--chalk-45); font-weight: 400; }
.pts { font-family: var(--font-mono); font-size: 18px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.pts.pos { color: var(--gold); }
.pts.neg { color: var(--frost); }
.pts.zero { color: var(--chalk-45); }
.left { font-family: var(--font-mono); font-size: 13px; color: var(--chalk-45); text-align: right; }
.ledger-lb .ledger-row { grid-template-columns: 44px 1fr 90px 70px; }
.ledger-hist .ledger-row { grid-template-columns: 64px 1fr 110px; }
@media (max-width: 480px) {
  .ledger-lb .ledger-row { grid-template-columns: 36px 1fr 74px 56px; padding: 10px 12px; }
  .ledger-hist .ledger-row { grid-template-columns: 54px 1fr 92px; padding: 10px 12px; }
  .rank { font-size: 20px; }
  .pts { font-size: 16px; }
}
/* Signed margin bar: grows right for gains (gold) and left for losses (frost) */
.margin { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.margin-bar { position: relative; width: 56px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.margin-bar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-radius: 2px; }
.margin-bar i.pos { background: var(--gold); }
.margin-bar i.neg { background: var(--frost); transform: translateX(-100%); }
.ledger-empty { padding: 28px 16px; text-align: center; color: var(--chalk-45); }
.ledger-filter { margin-top: 18px; }
.ledger-filter input {
  width: 100%; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  background: rgba(5,18,11,0.5); color: var(--chalk);
}
.ledger-filter input::placeholder { color: var(--chalk-45); }

/* ---------- Forms (auth) ------------------------------------------------- */
.auth { padding-top: 36px; padding-bottom: 70px; }
.auth .card { max-width: 440px; margin: 0 auto; }
.auth .card h2 { font-size: 40px; margin-bottom: 4px; }
.auth .card .lede { color: var(--chalk-70); font-size: 15px; margin-bottom: 20px; }
.field { display: block; margin-top: 14px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--chalk-70); margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: rgba(5,18,11,0.5); color: var(--chalk);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239,222,0,0.18); }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--chalk-45); }
.form-actions { margin-top: 22px; }
/* Sign-up: "I've read the rules" */
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--chalk-70); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.agree a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.form-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--chalk-70); }
.form-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
/* Landing layout: pitch + rules on the left, the card on the right; on phones the card sits between them */
.auth-split { display: grid; gap: 28px; align-items: start; grid-template-areas: "pitch" "card" "rules"; }
.auth-pitch { grid-area: pitch; }
.auth-split .card { grid-area: card; }
.auth-rules { grid-area: rules; }
@media (min-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px); grid-template-areas: "pitch card" "rules card"; column-gap: 56px; row-gap: 26px; }
  .auth-pitch { align-self: end; }
  .auth-rules { align-self: start; }
}
@media (min-width: 1200px) { .auth-split { column-gap: 80px; } }
.auth-pitch h1 { font-size: clamp(64px, 10.5vw, 150px); text-shadow: 0 2px 40px rgba(0,0,0,0.55); }
.auth-pitch h1 .lit { color: var(--gold); text-shadow: 0 0 60px var(--gold-glow), 0 2px 40px rgba(0,0,0,0.55); }
.auth-pitch .eyebrow { color: var(--gold); margin-bottom: 12px; }
.auth-pitch p { margin-top: 18px; color: var(--chalk); max-width: 40ch; font-size: 18px; text-shadow: 0 1px 24px rgba(0,0,0,0.7); }
.auth-rules { display: grid; gap: 10px; }
.auth-rules li { display: flex; gap: 12px; align-items: baseline; color: var(--chalk); font-size: 15px; text-shadow: 0 1px 18px rgba(0,0,0,0.8); }
.auth-rules li b { font-family: var(--font-mono); font-weight: 500; color: var(--gold); font-size: 13px; letter-spacing: 0.06em; white-space: nowrap; min-width: 30px; }
@media (max-width: 899px) { .auth-rules { max-width: 440px; width: 100%; margin: 0 auto; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(5,18,11,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }

/* Sign up / Log in switch at the top of the card */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(5,18,11,0.5); }
.auth-tabs a { min-height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--chalk-70); transition: color .2s var(--ease), background .2s var(--ease); }
.auth-tabs a:hover { color: var(--chalk); }
.auth-tabs a[aria-current="page"] { background: var(--gold); color: var(--night); }
.auth-view { animation: viewIn .22s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Rules -------------------------------------------------------- */
.rules { padding-top: 28px; padding-bottom: 60px; }
.rules ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(5,18,11,0.35); font-size: 16px; line-height: 1.5; }
.rules li b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-top: 5px; }
.rules li p { color: var(--chalk); }
.rules li small { display: block; margin-top: 4px; color: var(--chalk-45); font-size: 13px; }
.rules-example { margin-top: 26px; }
.rules-example .card { display: grid; gap: 12px; }
.rules-example .ex { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rules-example .ex:first-of-type { border-top: 0; }
.rules-example .ex .nick { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; }
.rules-example .ex .ex-score { font-family: var(--font-mono); font-size: 13px; color: var(--chalk-45); }

/* ---------- Prizes ------------------------------------------------------- */
.prizes { padding-top: 28px; padding-bottom: 60px; }
.prize-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .prize-grid { grid-template-columns: 1.25fr 1fr; } }
.prize {
  position: relative; overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 100% at 100% 0%, rgba(239,222,0,0.16), transparent 55%), linear-gradient(180deg, rgba(17,66,36,0.55), rgba(10,44,23,0.7));
}
.prize.second { background: radial-gradient(120% 100% at 100% 0%, rgba(244,241,230,0.10), transparent 55%), linear-gradient(180deg, rgba(17,66,36,0.45), rgba(10,44,23,0.6)); }
.prize .place { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.prize.second .place { color: var(--chalk-70); }
.prize .amount { margin-top: 10px; font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 14vw, 120px); line-height: .9; color: var(--chalk); }
.prize.first .amount { color: var(--gold); text-shadow: 0 0 60px var(--gold-glow); }
.prize .of { margin-top: 10px; font-size: 17px; color: var(--chalk); }
.prize .fine { margin-top: 6px; font-size: 13px; color: var(--chalk-45); }
.prizes-note { margin-top: 18px; color: var(--chalk-70); max-width: 60ch; }

/* ---------- Footer ------------------------------------------------------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; color: var(--chalk-45); font-size: 13px; }
.footer .wrap { display: grid; gap: 18px; }
.footer-prizes { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; }
.footer-prizes b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold); letter-spacing: 0.02em; }
.footer-prizes b + span { color: var(--chalk-70); }
.footer-prizes .second b { color: var(--chalk); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-meta img { height: 22px; width: auto; opacity: .8; }
.footer a:hover { color: var(--chalk); }

/* ---------- Admin score entry ------------------------------------------- */
.admin { padding-top: 20px; padding-bottom: 60px; }
.score-grid { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .score-grid { grid-template-columns: 1fr 1fr; } }
.score { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: rgba(5,18,11,0.35); }
.score-meta { display: flex; justify-content: space-between; margin: 0 4px 10px; font-family: var(--font-mono); font-size: 12px; color: var(--chalk-45); }
.score-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.score-team { display: grid; gap: 6px; }
.score-team .nick { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; }
.score-team .city { font-size: 12px; color: var(--chalk-45); }
.score-team input {
  width: 100%; min-height: 52px; text-align: center;
  font-family: var(--font-mono); font-size: 24px; font-weight: 500;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: rgba(5,18,11,0.6); color: var(--chalk);
}
.score-team input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239,222,0,0.18); }
.score-team input::-webkit-outer-spin-button, .score-team input::-webkit-inner-spin-button { -webkit-appearance: none; }
.score-team input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.admin-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-actions .note { font-family: var(--font-mono); font-size: 13px; color: var(--chalk-45); }

.bowl-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  margin-bottom: 22px; padding: 22px 24px;
  border-radius: var(--r-lg); border: 1px solid rgba(239,222,0,0.35);
  background: radial-gradient(120% 150% at 100% 0%, rgba(239,222,0,0.16), transparent 55%), linear-gradient(180deg, rgba(17,66,36,0.5), rgba(10,44,23,0.72));
  position: relative; overflow: hidden;
  transition: border-color .2s var(--ease);
}
.bowl-banner:hover { border-color: rgba(239,222,0,0.65); }
.bowl-banner:focus-visible { border-radius: var(--r-lg); }
.bowl-banner-copy { flex: 1 1 300px; display: block; }
.bowl-banner .eyebrow { display: block; color: var(--gold); }
.bowl-banner .display { display: block; margin-top: 6px; font-size: clamp(30px, 5vw, 50px); color: var(--chalk); }
.bowl-banner-sub { display: block; margin-top: 8px; max-width: 48ch; font-size: 14px; color: var(--chalk-70); }
.bowl-banner-cta { flex: 0 0 auto; pointer-events: none; display: inline-flex; align-items: center; gap: 10px; }
.bowl-banner-cta svg { width: 15px; height: 15px; }
/* one light sweep across the banner on hover, matching the primary-button shimmer */
.bowl-banner::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(239,222,0,0.10), transparent);
  transform: skewX(-16deg); transition: transform .5s var(--ease-out);
}
.bowl-banner:hover::before { transform: skewX(-16deg) translateX(450%); }

/* ---------- Reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tray.is-dirty .btn-primary { animation: none; }
  .nav a.nav-play:not([aria-current="page"])::after { animation: none; opacity: .7; }
  .field-canvas { transition: none; } /* the scene draws one still frame and never animates */
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Stage: the landing page is one full screen of stadium --------- */
.stage { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5,18,11,0.38) 0%, rgba(5,18,11,0.18) 40%, rgba(5,18,11,0.45) 75%, rgba(5,18,11,0.82) 100%); }
.stage .card { background: rgba(8, 30, 17, 0.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.landing { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); display: flex; flex-direction: column; }
/* A pool of shadow behind the text column (desktop only): the crowd pixels sit right behind the headline,
   and a feathered ellipse keeps the type legible while the stadium stays lit around it */
@media (min-width: 900px) {
  .landing::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 58% 78% at 22% 48%, rgba(5,18,11,0.9) 0%, rgba(5,18,11,0.78) 40%, rgba(5,18,11,0.35) 72%, rgba(5,18,11,0) 100%); }
}
.landing .auth { --max: 1280px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 36px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 900px) { .landing .auth { gap: 48px; padding-top: 48px; padding-bottom: 32px; } }
.landing .auth .card { max-width: none; margin: 0; }
@media (max-width: 899px) { .landing .auth .card { max-width: 440px; width: 100%; margin: 0 auto; } }
/* Kickoff strip: the dashboard scoreboard, four cells, full width */
.kickoff { margin-top: 0; max-width: none; grid-template-columns: repeat(2, 1fr); }
.kickoff > div:nth-child(2) { border-right: 0; }
.kickoff > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) {
  .kickoff { grid-template-columns: repeat(4, 1fr); }
  .kickoff > div:nth-child(2) { border-right: 1px solid var(--line); }
  .kickoff > div:nth-child(-n+2) { border-bottom: 0; }
}
.kickoff .val { font-size: 30px; }
@media (min-width: 720px) { .kickoff .val { font-size: 36px; } }
.kickoff .val.gold { color: var(--gold); }
.kickoff .val .countdown { color: var(--gold); }
.kickoff .sub { font-size: 12px; color: var(--chalk-70); line-height: 1.35; }
.landing + .footer .footer-prizes { display: none; } /* the strip already says it */

/* Admin: finished-week chooser on the scores page */
.week-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.week-nav a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--chalk-70); text-decoration: none; }
.week-nav a.is-open { border-color: rgba(239, 222, 0, 0.45); color: var(--gold); }
.week-nav a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: #05120b; }
.ledger-lb .who small { white-space: normal; }

/* Button Bowl — the playable game (play.php) */
.arcade { height: clamp(380px, 72vh, 680px); background: var(--night); }
.arcade .field-canvas { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0; outline: none; }
.arcade::after { display: none; }
.arcade-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; background: rgba(5, 18, 11, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.arcade-overlay .card { width: 100%; max-width: 560px; background: rgba(8, 30, 17, 0.9); max-height: 100%; overflow-y: auto; }
.arcade-overlay h2 { font-size: clamp(40px, 7vw, 64px); line-height: 0.95; }
.arcade-overlay .lede { color: var(--chalk-70); margin-top: 8px; }
.arcade-overlay .final-score { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 8vw, 72px); line-height: 1; margin-top: 14px; color: var(--chalk); }
.arcade-overlay .final-score b { color: var(--gold); }
.arcade-overlay .result { margin-top: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.arcade-overlay .ledger { margin-top: 18px; }
.arcade-overlay .form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.arcade-overlay .form-actions .btn { flex: 1 1 160px; }
.arcade-note { margin-top: 12px; font-size: 13px; color: var(--frost); }
.arcade-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 14px; padding-bottom: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--chalk-45); border-bottom: 1px solid var(--line); }
.arcade-legend span { white-space: nowrap; }
kbd { display: inline-block; min-width: 20px; text-align: center; padding: 1px 6px; margin-right: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--chalk); background: rgba(244, 241, 230, 0.07); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; }
.ledger-arc .ledger-row { grid-template-columns: 40px 1fr 92px 70px; }
.ledger-arc .score-line { font-family: var(--font-mono); font-size: 13px; color: var(--chalk-70); text-align: right; }
.ledger-arc .margin-only { font-family: var(--font-mono); font-size: 14px; text-align: right; }
.ledger-arc .margin-only.pos { color: var(--gold); }
.ledger-arc .margin-only.neg { color: var(--frost); }
.ledger-arc .margin-only.zero { color: var(--chalk-45); }
@media (max-width: 640px) { .ledger-arc .ledger-row { grid-template-columns: 34px 1fr 78px 56px; padding: 10px 12px; } }

/* Prize eligibility: players who can no longer use all 32 teams */
.rank.dq { font-size: 12px; letter-spacing: 0.1em; color: var(--frost); }
.ledger-row.is-dq .who { color: var(--chalk-70); }
.scoreboard .val.dq { color: var(--frost); }

/* ---------- Polish pass 2026-09-06: tab bar, invites, saved state, chips ------ */
:root { --tabbar-h: 58px; }
/* Bottom tab bar: phones only, four thumb-sized destinations */
.tabbar { display: none; }
@media (max-width: 719px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(5,18,11,0.9);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-strong);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk-45); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--gold); }
  .tabbar a:active { color: var(--chalk); }
  body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-tray.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--tray-h) + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .tray { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  body.has-tabbar .toast { bottom: calc(var(--tabbar-h) + var(--tray-h) + 18px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .footer { padding-bottom: 24px; }
  .hero { min-height: 46vh; min-height: 46svh; }
}

/* Invite row under the scoreboard / above the leaderboard */
.invite { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--chalk-70); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 15px; height: 15px; }

/* First week: three steps so a new player knows the loop before the list of games */
.howto { margin-top: 20px; display: grid; gap: 10px; }
@media (min-width: 720px) { .howto { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.howto > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(239,222,0,0.05); }
.howto b { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--gold); }
.howto strong { display: block; font-weight: 600; margin-bottom: 2px; }
.howto p { font-size: 14px; color: var(--chalk-70); }

/* Tray button: "Pick two teams" (nothing yet) -> "Save picks" (changed) -> "Saved" (in sync with the server) */
.tray .btn-primary.is-saved { background: transparent; color: var(--gold); border-color: rgba(239,222,0,0.5); box-shadow: none; animation: none; }
.tray .btn-primary.is-saved svg { width: 14px; height: 14px; }
.tray .btn-primary:disabled { opacity: .6; }

/* Team chips (history: what's still available) */
.chips-head { margin-top: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chips-head h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.03em; }
.chips-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--chalk-45); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(5,18,11,0.35); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: 0.03em; color: var(--chalk); }
.chips-note { margin-top: 10px; font-size: 13px; color: var(--chalk-45); }

/* Show / hide password */
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chalk-70); border: 1px solid var(--line); }
.pw button:hover { color: var(--chalk); border-color: var(--line-strong); }

/* Leaderboard toolbar: search + invite */
.board-tools { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.board-tools .ledger-filter { margin: 0; flex: 1; }

/* Motion: one light sweep across a primary button on hover (transform only, hover-gated) */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; transform: skewX(-12deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition: transform .5s var(--ease-out); }
.btn-primary:hover:not(:disabled)::after { transform: skewX(-12deg) translateX(380%); }
.btn-primary.is-saved::after { display: none; }
