/* =====================================================================
   Yankees & Mets Squares Pool — styles.css
   Mobile-first. Yankees (navy) & Mets (royal blue / orange).
   Plain CSS, no build step. Tested mentally at 360px wide.
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --mets-blue: #002D72;
  --mets-orange: #FF5910;
  --yanks-navy: #0C2340;
  --yanks-white: #ffffff;
  --yanks-pop: #2570e8; /* brighter royal blue so Yankees numbers/accents pop on white */

  --ink: #16202c;
  --ink-soft: #50606f;
  --line: #e3e8ee;
  --bg: #eef2f7;
  --card: #ffffff;
  --good: #1c8a4d;
  --bad: #b62d2d;
  --warn: #b9601a;
  --gold: #f4b400;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(12, 35, 64, 0.10);
  --shadow-sm: 0 2px 8px rgba(12, 35, 64, 0.08);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, 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:
    radial-gradient(1200px 400px at 0% -10%, rgba(0,45,114,0.08), transparent 60%),
    radial-gradient(1200px 400px at 100% -10%, rgba(12,35,64,0.08), transparent 60%),
    var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; }
img { max-width: 100%; display: block; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: relative;
  color: #fff;
  background: linear-gradient(110deg, var(--yanks-navy) 0%, var(--yanks-navy) 45%, var(--mets-blue) 55%, var(--mets-blue) 100%);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0));
  padding-top: calc(18px + env(safe-area-inset-top, 0));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.header-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.site-title {
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  text-transform: uppercase;
}
.t-yanks { color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.t-mets  { color: var(--mets-orange); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.amp { color: rgba(255,255,255,.6); font-weight: 700; }
.t-donate { color: var(--gold); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.subtitle { margin: 2px 0 0; font-size: .92rem; color: rgba(255,255,255,.85); }

/* Pot block */
.pot-block {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px; align-self: flex-start;
}
.pot-amount { font-size: clamp(1.6rem, 9vw, 2.2rem); font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.pot-caption { text-transform: uppercase; font-size: .68rem; letter-spacing: .12em; color: rgba(255,255,255,.8); }
.week-dates { margin-top: 4px; font-size: .82rem; color: rgba(255,255,255,.9); }

/* ------------------------------ Layout ------------------------------ */
.container { max-width: 980px; margin: 0 auto; padding: 14px 12px 28px; display: grid; gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.1rem; }
.card-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------ Buttons ----------------------------- */
.btn {
  font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; }
.btn-primary { background: var(--mets-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #ff6f33; }
.btn-ghost { background: #f3f6fa; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #e9eef5; }
.btn-ghost.unlocked { color: var(--good); border-color: #bfe6cd; }
.btn-lock { background: #f3f6fa; color: var(--mets-blue); border-color: var(--line); }
.btn-close { background: transparent; border: none; font-size: 1.2rem; min-height: 40px; min-width: 40px; border-radius: 10px; color: var(--ink-soft); }
.btn-close:hover { background: #f1f4f8; }
.ico { font-size: 1.05em; line-height: 1; }

/* ----- page nav: jump to the MLB scoreboard page ----- */
.page-nav { display: flex; justify-content: flex-end; margin: 14px 0 2px; }
.mlb-scores-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px 8px 13px; min-height: 44px;
  font-weight: 800; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.mlb-scores-link:hover { background: #f7f9fc; box-shadow: var(--shadow); }
.mlb-scores-link:active { transform: scale(.98); }
.mlb-scores-link:focus-visible { outline: 2px solid var(--mets-orange); outline-offset: 2px; }
.mlb-scores-logo { height: 22px; width: auto; display: block; }
.mlb-scores-link span { font-size: .98rem; letter-spacing: .01em; }

/* View-week selector */
.view-week { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); }
.view-week .vw-label { text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.view-week select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; min-height: 38px; background: #f3f6fa; }
.wk-nav { min-height: 38px; min-width: 36px; padding: 0 9px; border: 1px solid var(--line); background: #f3f6fa; color: var(--mets-blue); border-radius: 999px; font: inherit; font-size: 1.05rem; font-weight: 800; line-height: 1; cursor: pointer; }
.wk-nav:hover:not(:disabled) { background: #e9eef5; }
.wk-nav:disabled { opacity: .3; cursor: default; }

/* ------------------------------ Scoreboard -------------------------- */
.status-pill { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.status-pill.live { background: #fde8df; color: var(--warn); border-color: #f6c9b3; }
.status-pill.final { background: #e3f5ea; color: var(--good); border-color: #bfe6cd; }
.status-pill.error { background: #fdeaea; color: var(--bad); border-color: #f3c4c4; }

.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.team { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.team-mets { background: linear-gradient(135deg, rgba(0,45,114,.06), rgba(255,89,16,.06)); }
.team-yanks { background: linear-gradient(135deg, rgba(12,35,64,.08), rgba(12,35,64,.02)); }
.team-logo { width: 48px; height: 48px; flex: 0 0 auto; }
.team-name { font-weight: 700; font-size: .95rem; }
.team-total { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.team-total small { font-size: .6rem; font-weight: 600; color: var(--ink-soft); margin-left: 4px; text-transform: uppercase; }
.team-lastdigit { font-size: .75rem; color: var(--ink-soft); }
.team-lastdigit strong { display: inline-block; min-width: 1.4em; text-align: center; background: var(--mets-blue); color: #fff; border-radius: 6px; padding: 0 4px; font-size: .9rem; }
.team-yanks .team-lastdigit strong { background: var(--yanks-pop); }
.score-divider { text-align: center; font-size: 1.4rem; color: var(--mets-orange); }

/* Weekly matchup schedule */
.schedule { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sched-team { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.sched-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #fff; }
.sched-team.is-mets .sched-head { background: linear-gradient(120deg, var(--mets-blue), #00409c); }
.sched-team.is-yanks .sched-head { background: linear-gradient(120deg, var(--yanks-navy), var(--yanks-pop)); }
.sched-head .logo { background: #fff; border-radius: 6px; padding: 1px; }
.sched-team-name { font-weight: 800; letter-spacing: .02em; }
.sched-total { margin-left: auto; font-size: .8rem; opacity: .92; }
.sched-total strong { font-size: 1.05rem; }
.sched-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--line); }
.sched-row:nth-child(odd) { background: #fafbfd; }
.sched-day { flex: 0 0 34px; font-weight: 700; font-size: .78rem; color: var(--ink-soft); padding-top: 2px; }
.sched-mus { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.mu { display: flex; align-items: center; gap: 5px; font-size: .83rem; }
.mu .logo { width: 18px; height: 18px; flex: 0 0 auto; }
.mu-opp { font-weight: 600; white-space: nowrap; }
.mu-ha { font-size: .74rem; font-weight: 800; color: var(--ink-soft); min-width: 16px; text-align: center; }
.mu-score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mu-score.live { color: var(--warn); }
.mu-dash { color: var(--ink-soft); margin: 0 1px; }
.mu-run { font-weight: 800; }
.mu-run { font-weight: 900; }
.is-mets .mu-run { color: var(--mets-orange); }
.is-yanks .mu-run { color: var(--yanks-pop); }
.mu-badge { font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; letter-spacing: .03em; }
.mu-badge.w { background: #e3f5ea; color: var(--good); }
.mu-badge.l { background: #fdeaea; color: var(--bad); }
.mu-badge.t { background: #eef2f7; color: var(--ink-soft); }
.mu-badge.live { background: #fde8df; color: var(--warn); }
.mu-badge.ppd { background: #fef3e2; color: #8a5a00; }
.mu-sched { margin-left: auto; color: var(--ink-soft); font-size: .76rem; font-style: italic; white-space: nowrap; }
/* postponed/cancelled game: right-aligned "PPD  makeup 8/29" group */
.mu-ppd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mu-makeup { color: var(--ink-soft); font-size: .72rem; font-style: italic; }
.mu-off { color: #b6bfc9; font-size: .8rem; }
.mu-ovr { color: var(--mets-orange); font-size: .8rem; }

.scores-note { margin: 10px 2px 0; font-size: .8rem; color: var(--ink-soft); min-height: 1em; }

/* ------------------------------ Winner banner ----------------------- */
.winner-banner { padding: 0; overflow: hidden; }
.winner-inner { display: flex; align-items: center; gap: 14px; padding: 16px; background: linear-gradient(120deg, var(--mets-blue), var(--yanks-navy)); color: #fff; }
.winner-banner.win .winner-inner { background: linear-gradient(120deg, #1c8a4d, #0f6e3b); }
.winner-banner.roll .winner-inner { background: linear-gradient(120deg, #6b4f1d, #8a6620); }
.winner-badge { flex: 0 0 auto; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); }
.winner-label { font-size: .78rem; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.winner-name { font-size: 1.5rem; font-weight: 800; }

/* ------------------------------ The Board --------------------------- */
.board-frame {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "corner top" "side board";
  gap: 6px;
}
.bf-corner { grid-area: corner; }
.bf-board { grid-area: board; min-width: 0; }

.board-banner { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border-radius: var(--radius-sm); font-weight: 900; letter-spacing: .06em; }
.board-banner .logo { background: #fff; border-radius: 6px; padding: 1px; }
.banner-top { grid-area: top; padding: 8px 10px; font-size: clamp(1.1rem, 4.5vw, 1.7rem); }
.banner-side { grid-area: side; writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 6px; font-size: clamp(1rem, 4vw, 1.5rem); }
.banner-side .logo { transform: rotate(180deg); }
.board-banner.is-mets { background: linear-gradient(120deg, var(--mets-orange), #ff7a40); }
.board-banner.is-yanks { background: linear-gradient(160deg, var(--yanks-navy) 35%, var(--yanks-pop)); }
.banner-text { line-height: 1; }

.board-scroll { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 78vh; }
.board { border-collapse: separate; border-spacing: 0; }
.board th, .board td {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  width: 64px; min-width: 64px; height: 48px; text-align: center; vertical-align: middle;
  background: #fff; font-size: .72rem; padding: 2px 4px; overflow: hidden;
}
.board .corner { position: sticky; top: 0; left: 0; z-index: 5; background: var(--mets-blue); }
.board thead th { position: sticky; top: 0; z-index: 3; }
.board .digit-top { background: var(--mets-blue); color: #fff; font-weight: 800; font-size: 1rem; }
.board .digit-side { position: sticky; left: 0; z-index: 2; background: var(--yanks-navy); color: #fff; font-weight: 800; font-size: 1rem; }
.board td.name-cell { color: var(--ink); font-weight: 600; line-height: 1.05; white-space: normal; word-break: break-word; overflow: hidden; }
.board td.name-cell.blank { color: #c4cdd6; font-weight: 400; }

.board .win-col { background: rgba(255,89,16,.10); }
.board .win-row { background: rgba(0,45,114,.08); }
.board td.win-cell {
  background: radial-gradient(circle at 50% 40%, #fff3cf, #ffe39a) !important;
  box-shadow: inset 0 0 0 3px var(--gold), 0 0 14px rgba(244,180,0,.7);
  font-weight: 800; color: #5a4500; position: relative; z-index: 1;
  animation: winpulse 1.6s ease-in-out infinite;
}
@keyframes winpulse {
  0%,100% { box-shadow: inset 0 0 0 3px var(--gold), 0 0 8px rgba(244,180,0,.5); }
  50% { box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px rgba(244,180,0,.9); }
}
.board td.win-cell .win-flag { display: block; font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; }
/* Non-winning landing square (blank square / rollforward) — distinct steel look, not gold */
.board td.land-cell {
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 7px, #dfe6ef 7px, #dfe6ef 14px) !important;
  box-shadow: inset 0 0 0 3px #8a97a8;
  font-weight: 700; color: #43526a; position: relative; z-index: 1;
}
.board td.land-cell .win-flag { display: block; font-size: .55rem; text-transform: uppercase; letter-spacing: .05em; color: #5a6b82; }
.board .digit-top.win-digit, .board .digit-side.win-digit { background: var(--mets-orange); color: #fff; }
/* Draft week: numbers not locked in yet — show 🔒 in the digit-strip headers */
.board .digit-top.locked, .board .digit-side.locked {
  background: #6b7688; color: #eef2f7; font-size: .8rem; font-weight: 600;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.07), rgba(255,255,255,.07) 6px, transparent 6px, transparent 12px);
}
/* Locked / draft status chip next to "The Board" */
.lock-chip { display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; letter-spacing: .01em; white-space: nowrap; line-height: 1.5; }
.lock-chip[hidden] { display: none; }
.lock-chip.locked { background: #e7f6ec; color: #1c7d3f; border: 1px solid #b9e3c6; }
.lock-chip.draft  { background: #fff4d6; color: #8a5a00; border: 1px solid #f2d287; }
/* Admin-only view-count readout inside the (board-password-gated) editor */
.admin-stats { margin: 0 0 12px; padding: 7px 11px; background: #f3f6fa; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .76rem; color: var(--ink-soft); }
.admin-stats[hidden] { display: none; }
.board-help { margin: 10px 2px 0; font-size: .78rem; color: var(--ink-soft); }
.board-note { margin: 10px 2px 0; padding: 8px 12px; background: #fff7ed; border: 1px solid #f6d6b3; border-left: 4px solid var(--mets-orange); border-radius: var(--radius-sm); color: #7a4a16; font-size: .85rem; }
.board-note[hidden] { display: none; }

/* ------------------------------ History ----------------------------- */
.history-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.history-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
.history-table th, .history-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.history-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.history-table td { font-variant-numeric: tabular-nums; }
.history-table tbody tr { cursor: pointer; }
.history-table tbody tr:hover { background: rgba(0,45,114,.05); }
.history-table tbody tr:focus-visible { outline: 2px solid var(--mets-orange); outline-offset: -2px; }
.history-table tbody tr.no-grid { cursor: default; color: var(--ink-soft); }
.history-table tbody tr.no-grid:hover { background: transparent; }
.history-table tr.current-week { background: rgba(255,89,16,.06); font-weight: 600; }
.history-table tr.viewing { box-shadow: inset 3px 0 0 var(--mets-orange); }
.win-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e3f5ea; color: var(--good); }
.win-tag.roll { background: #f4eddc; color: var(--warn); }
.win-tag.pending { background: #eef2f7; color: var(--ink-soft); }

/* ------------------------------ Footer + discreet SO ---------------- */
.site-footer { text-align: center; padding: 18px 12px 30px; color: var(--ink-soft); font-size: .8rem; }
.site-footer .updated { font-size: .72rem; opacity: .8; margin-top: 4px; }
.so-btn {
  margin-top: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .72rem; font-weight: 600;
  cursor: pointer; opacity: .55; display: inline-flex; align-items: center; gap: 4px;
}
.so-btn:hover, .so-btn:focus-visible { opacity: 1; }

/* ------------------------------ Floating mascot --------------------- */
.commissioner { position: fixed; right: 10px; bottom: 12px; margin: 0; text-align: center; pointer-events: none; z-index: 20; }
/* Show the WHOLE cutout (it's a tall portrait) — height-sized + contain, never clipped */
.commissioner img { height: 150px; width: auto; max-width: 40vw; object-fit: contain; border-radius: 12px; border: 3px solid var(--mets-orange); box-shadow: var(--shadow); transform: rotate(2deg); background: #fff; }
.commissioner figcaption { margin-top: 3px; font-size: .55rem; color: var(--ink); background: rgba(255,255,255,.82); border-radius: 6px; padding: 1px 5px; font-style: italic; line-height: 1.1; }

/* ------------------------------ Modals ------------------------------ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 35, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; z-index: 50; backdrop-filter: blur(2px); }
.modal-backdrop[hidden] { display: none; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.3); animation: slideup .22s ease; }
@keyframes slideup { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { font-size: 1.05rem; }
.modal-body { padding: 16px; }
.modal-intro { margin: 0 0 12px; color: var(--ink-soft); font-size: .9rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.field { display: block; margin-bottom: 12px; }
.field > span, .field > legend { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.field input[type="text"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 44px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--mets-orange); outline-offset: 1px; border-color: var(--mets-orange); }
fieldset.field { border: none; padding: 0; margin: 0 0 12px; }
.editor-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.editor-row.two-col .field { margin-bottom: 0; }

.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; min-height: 44px; }
.radio-chip input { accent-color: var(--mets-orange); }

.digit-strip-inputs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.digit-strip-inputs input { width: 100%; min-width: 0; text-align: center; padding: 8px 2px; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; min-height: 40px; font-size: .95rem; }
.digit-strip-inputs input.dup { border-color: #d33; background: #fdeaea; }
.strip-tools { display: flex; gap: 8px; margin-top: 4px; }

/* Names edit (locked behind scores password) */
.names-edit { margin: 8px 0 12px; }
.names-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.names-edit-title { font-weight: 600; }
.names-lock { padding: 12px; background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; }
.names-lock .form-hint { margin-top: 0; margin-bottom: 8px; }
.names-lock-row { display: flex; gap: 8px; }
.names-lock-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 44px; font: inherit; }
.names-scroll { overflow: auto; max-height: 50vh; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 8px; }
.names-edit-table { border-collapse: collapse; }
.names-edit-table td { padding: 0; border: 1px solid var(--line); }
.names-edit-table input { border: none; width: 84px; padding: 6px; font-size: .75rem; min-height: 38px; }
.names-edit-table input:focus { outline: 2px solid var(--mets-orange); outline-offset: -2px; }

.form-error { color: var(--bad); font-size: .85rem; min-height: 1em; margin: 4px 0 0; }
.form-ok { color: var(--good); font-size: .85rem; min-height: 1em; margin: 4px 0 0; }
.form-hint { color: var(--ink-soft); font-size: .82rem; margin: 4px 0 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--yanks-navy); color: #fff; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 60; font-size: .9rem; max-width: 90vw; text-align: center; }
.toast[hidden] { display: none; }
.toast.error { background: var(--bad); }
.toast.ok { background: var(--good); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 600px) {
  .header-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .board th, .board td { width: 78px; min-width: 78px; font-size: .8rem; height: 52px; }
  .container { padding: 20px 16px 36px; }
  .commissioner img { height: 188px; }
}
@media (min-width: 720px) {
  .schedule { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .pot-block { align-self: flex-end; }
  .board th, .board td { width: 88px; min-width: 88px; }
}
@media (max-width: 520px) {
  .commissioner { right: 6px; bottom: 8px; }
  .commissioner img { height: 104px; }
  .commissioner figcaption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
