:root {
  --navy: #072f73;
  --navy-2: #001f4f;
  --lime: #cce600;
  --ink: #10213a;
  --muted: #5c6b82;
  --line: #d7e0ea;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --danger: #9f2d2d;
  --ok: #1d6b45;
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 var(--font-body);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand-name { font-family: var(--font-display); letter-spacing: -0.03em; }
:focus-visible { outline: 3px solid #9bb800; outline-offset: 2px; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-name span { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--navy); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  background: var(--navy);
  color: white;
}
.btn.lime { background: var(--lime); color: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 14px; height: 38px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-row > .btn,
.form-row > button {
  width: auto;
  height: 42px;
  justify-self: start;
  align-self: end;
}

.hero { padding: 72px 0 40px; background: var(--navy-2); color: white; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 0.98; margin: 0 0 16px; max-width: 14ch; }
.hero p { max-width: 46ch; color: rgba(255,255,255,0.82); font-size: 18px; margin: 0 0 24px; }
.kicker { color: var(--lime); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { color: white; border-color: rgba(255,255,255,0.3); }
.modal.auth-dialog { width: min(480px, calc(100% - 32px)); padding: 22px 22px 24px; }
.auth-dialog[open] { display: grid; gap: 14px; }
.auth-close {
  justify-self: end;
  width: 34px;
  height: 34px;
  margin: -6px -6px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 14px; }
.auth-tab { border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.auth-tab[aria-selected="true"] { background: white; color: var(--navy); box-shadow: 0 1px 2px rgba(16, 33, 58, 0.08); }
.auth-note { margin: -2px 0 0; color: var(--muted); font-size: 14px; }
.auth-dialog form { display: grid; gap: 14px; }
.auth-temp { display: grid; gap: 8px; }
.auth-temp p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.auth-temp-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.auth-temp .btn { width: 100%; padding: 8px 6px; font-size: 13px; height: auto; }
.auth-dialog .btn { width: 100%; }
.auth-dialog :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section h2 { font-size: 32px; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.step-no { color: var(--navy); font-size: 13px; font-weight: 700; }
.card h3 { margin: 8px 0; font-size: 18px; }
.card p, .muted { color: var(--muted); }
.club-card { background: var(--navy); color: white; }
.club-card p { color: rgba(255,255,255,0.75); }
.league-list { display: grid; gap: 12px; }
.league-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy-2); color: white; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { font-size: 48px; line-height: 1; margin: 12px 0; }
.auth-form { display: grid; align-content: center; padding: 48px; }
.auth-form form, .stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
}
textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.thirds { grid-template-columns: 1fr 1fr 1fr; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.ok { color: var(--ok); font-weight: 700; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: var(--soft); }
.side {
  background: var(--navy-2);
  color: white;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side a.brand { color: white; }
.side nav { display: grid; gap: 4px; }
.side button.nav-btn, .side a.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 650;
  text-decoration: none;
}
.nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.side button.nav-btn.active, .side button.nav-btn:hover { background: rgba(255,255,255,0.08); color: white; }
.who { margin-top: auto; font-size: 13px; color: rgba(255,255,255,0.75); }
.who strong { display: block; color: white; }
.main { padding: 28px 32px 48px; max-width: 1080px; }
.main h1 { margin: 0 0 6px; font-size: 32px; }
.main .lede { margin-bottom: 16px; }
.main h2 { margin: 28px 0 12px; font-size: 22px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.main .section-head h2 { margin: 0; }
.modal.narrow { width: min(480px, calc(100% - 32px)); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 8px;
}
.facts div { background: white; padding: 14px 16px; min-height: 78px; }
.facts .span-2 { grid-column: span 2; }
.facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.facts strong { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; }
.fee-bar, .inline-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fee-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.fee-bar label, .inline-fields label { margin: 0; width: auto; }
.fee-bar label { color: var(--muted); font-size: 13px; font-weight: 700; display: block; }
.fee-bar input { width: 128px; flex: none; }
.inline-fields { align-items: flex-end; margin-top: 12px; }
.inline-fields label { width: min(240px, 100%); flex: none; }
.fee-bar .btn, .inline-fields .btn {
  flex: none;
  width: auto;
  height: 42px;
  border-radius: 10px;
}
.fee-bar .fee-message { margin: 0; min-height: 0; font-size: 14px; }
.panel { display: none; }
.panel.active { display: block; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.status-draft { color: #8a5a00; }
.status-open { color: var(--ok); }
.status-closed { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-toolbar, .card-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-toolbar { margin: 4px 0 8px; }
.status-actions:not(:empty) {
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
}
.season-list { display: grid; gap: 12px; }
.season-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 16px;
  padding: 16px 18px;
}
.approval-card { grid-template-columns: 1fr; align-items: start; }
.approval-card .season-side { justify-content: flex-start; }
.season-card.is-open { border-left-color: var(--ok); }
.season-card.is-draft { border-left-color: #c47d00; }
.season-card.is-closed { border-left-color: #b7c3d1; }
.season-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.season-meta span { background: var(--soft); color: var(--navy); border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700; }
.season-hero { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.season-hero .lede { margin-bottom: 0; }
.season-sheets { display: grid; gap: 12px; margin-top: 16px; }
.season-sheet { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; }
.main .season-sheet h2 { margin: 0 0 10px; font-size: 16px; }
.season-sheet .facts { margin: 0; }
.week-rail { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.week-rail li { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.week-rail span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: white; font-weight: 700; font-size: 13px; }
.week-rail li:last-child span { background: var(--lime); color: var(--navy-2); }
.week-rail strong, .week-rail em { display: block; }
.week-rail strong { margin-top: 8px; font-size: 13px; }
.week-rail em { margin-top: 2px; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; }
.season-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.main .season-card h2 { margin: 0; font-size: 20px; }
.season-card .muted { margin: 4px 0 0; }
.season-when { margin: 8px 0 0; font-size: 14px; }
.season-side { display: flex; align-items: center; gap: 18px; }
.season-fee { text-align: right; min-width: 72px; }
.season-fee span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.season-fee strong { font-size: 16px; }
.season-empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 18px;
  color: var(--muted);
}
.pill.draft, .pill.waiting { background: #fff4d6; color: #8a5a00; }
.pill.open { background: #e5f6ec; color: var(--ok); }
.pill.closed { background: #eef2f6; color: var(--muted); }
.pill.approved { background: #e8eef8; color: var(--navy); }
.modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100% - 48px));
  margin: auto;
  padding: 22px;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 31, 79, 0.28);
}
.season-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: min(92vh, 940px);
  padding: 0;
  overflow: hidden;
}
.season-editor { display: flex; flex-direction: column; max-height: min(92vh, 940px); }
.season-editor-head, .season-editor-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: white;
}
.season-editor-head { border-bottom: 1px solid var(--line); }
.season-editor .kicker { color: var(--navy); margin: 0 0 2px; }
.season-editor-head h2 { margin: 0; font-size: 26px; }
.season-editor-body { overflow: auto; padding: 16px 22px 20px; display: grid; gap: 12px; background: #eef3f8; }
.season-editor-foot { border-top: 1px solid var(--line); }
.season-editor-foot .error { margin: 0; flex: 1; }
.form-section { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.form-section header h3 { margin: 0; font-size: 16px; }
.form-section header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.modal::backdrop { background: rgba(0, 31, 79, 0.48); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 24px; }
.choice-field { margin: 0; padding: 0; border: 0; }
.choice-field legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.day-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.day-picker button {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
}
.day-picker button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.notice { background: #fff8dc; border: 1px solid #ead78a; border-radius: 12px; padding: 12px 14px; }
tr.mine td { font-weight: 700; background: #f4f7e8; }
.play-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 8px; }
.play-bar label { margin: 0; min-width: 220px; }
.play-bar select { margin-top: 4px; }
.ladder { list-style: none; margin: 0 0 20px; padding: 0; }
.rung { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.rung-rail { position: relative; display: grid; justify-items: center; }
.rung-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--navy); }
.rung:first-child .rung-rail::before { top: 22px; }
.rung:last-child .rung-rail::before { bottom: calc(100% - 34px); }
.rung-rail span {
  position: relative; z-index: 1; width: 36px; height: 36px; margin-top: 18px;
  border-radius: 50%; background: var(--navy); color: white;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.rung.top .rung-rail span { background: var(--lime); color: var(--navy-2); }
.rung-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 8px 0; }
.rung.top .rung-card { border-color: #c5d64a; box-shadow: inset 4px 0 0 var(--lime); }
.rung.out .rung-card { background: var(--soft); }
.rung.mine .rung-card { background: #f4f7e8; }
.rung-tag { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rung-card h3 { margin: 2px 0 8px; font-size: 18px; }
.rung-meta, .rung-bye { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.rung-players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.rung-players li { min-width: 0; }
.rung-players select, .player-card-tools select { width: 100%; min-width: 0; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; }
.rr-list { margin: 10px 0 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.rung-card.bench {
  margin-left: 68px;
  border-color: #e7b4b4;
  border-left: 6px solid #c62828;
}
.rung-card.bench .player-card { box-shadow: inset 6px 0 0 #e24b4b; }
.roster-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 12px; }
.roster-bar h2 { margin: 0 0 4px; }
.roster-bar .muted { margin: 0; }
.roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.roster-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.roster-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.roster-person strong { display: block; line-height: 1.2; }
.roster-person .player-chip { margin-top: 4px; }
.roster-row .portrait { width: 40px; height: 48px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.roster-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-btn { border: 1px solid var(--line); background: var(--soft); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.tag-btn.present.on { background: var(--ok); border-color: var(--ok); color: white; }
.tag-btn.absent.on { background: var(--danger); border-color: var(--danger); color: white; }
.tag-btn.cancelled.on { background: var(--navy); border-color: var(--navy); color: white; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.player-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--navy-2); color: white; min-width: 0; }
.player-card-media { position: relative; aspect-ratio: 4 / 5; background: #123a86; }
.player-card-compact .player-card-media { aspect-ratio: 1 / 1; }
.portrait { display: block; width: 100%; height: 100%; }
.portrait svg { width: 100%; height: 100%; display: block; }
.player-card-index { position: absolute; top: 8px; right: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: rgba(255,255,255,0.28); line-height: 1; }
.player-card-info { padding: 10px 10px 12px; background: linear-gradient(180deg, #12356e, var(--navy-2)); }
.player-card-first { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.player-card-last { display: block; font-size: 16px; font-weight: 700; font-family: var(--font-display); line-height: 1.15; }
.player-card-tools { display: grid; gap: 6px; margin-top: 8px; }
.player-chip { display: inline-flex; width: fit-content; padding: 2px 8px; border-radius: 999px; background: rgba(204, 230, 0, 0.18); color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.player-chip.is-available { background: #e7f6ee; color: var(--ok); }
.player-chip.is-maybe { background: #fff4d6; color: #8a5a00; }
.player-chip.is-out { background: #fde8e8; color: var(--danger); }
.player-chip.is-none { background: var(--soft); color: var(--muted); }
.avail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.avail-btn.available.on { background: var(--ok); color: white; }
.avail-btn.maybe.on { background: #c47d00; color: white; }
.avail-btn.unavailable.on { background: var(--danger); color: white; }
.player-card .btn.ghost { color: white; border-color: rgba(255,255,255,0.28); }
.court-accordion { display: grid; gap: 10px; }
.court-fold { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.court-fold summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 18px; list-style: none; }
.court-fold summary::-webkit-details-marker { display: none; }
.court-fold summary::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); flex: 0 0 auto; }
.court-fold[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.court-count { margin-left: auto; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.court-fold .game-grid, .court-fold .score-nights { padding: 0 16px 16px; }
.court-fold .score-nights { display: grid; gap: 10px; }
.match-block { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.match-block h3 { margin: 0 0 8px; font-size: 18px; }
.game-grid { display: grid; gap: 12px; }
.game-card { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.game-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--soft); font-size: 13px; font-weight: 700; }
.game-status { padding: 2px 8px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.game-status.is-done { background: #e7f6ee; color: var(--ok); border-color: #b7e0c8; }
.game-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; }
.game-side { display: grid; gap: 8px; padding: 12px; min-width: 0; }
.game-side-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.game-vs { display: grid; place-items: center; align-content: center; gap: 8px; min-width: 92px; margin: 12px 0; padding: 12px 8px; border-radius: 16px; background: var(--soft); }
.game-score { font-family: var(--font-display); font-size: 22px; color: var(--navy); }
.game-player { display: flex; align-items: center; gap: 8px; min-width: 0; }
.game-player .portrait { width: 42px; height: 52px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.game-player strong { display: block; font-size: 14px; line-height: 1.2; }
.game-player.is-me .portrait { box-shadow: 0 0 0 2px var(--lime); }
.game-sub { display: block; color: var(--muted); font-size: 12px; }
.match-score { display: flex; align-items: center; justify-content: center; gap: 8px; }
.match-score input { width: 72px; text-align: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.score-desk { display: grid; gap: 18px; }
.score-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.score-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: white; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.score-summary strong { color: var(--navy); font-family: var(--font-display); font-size: 16px; }
.score-court { background: var(--soft); border-radius: 20px; padding: 14px; }
.score-court-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4px 10px; }
.score-court-head h3 { margin: 0; font-size: 18px; }
.score-court-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.score-nights { display: grid; gap: 10px; }
.score-night { background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: inset 4px 0 0 #7eb6e8; }
.score-night.is-done { box-shadow: inset 4px 0 0 var(--ok); }
.score-night.is-editing { box-shadow: inset 4px 0 0 var(--navy); }
.score-night-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; background: white; border-bottom: 1px solid var(--line); }
.score-round { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--soft); border-radius: 999px; padding: 3px 10px; }
.score-night-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); align-items: stretch; }
.score-side { display: grid; align-content: center; gap: 10px; padding: 16px 18px; min-width: 0; }
.score-side.is-win { background: #f3faf6; }
.score-side.is-away { justify-items: end; text-align: right; }
.score-side.is-away .game-player { flex-direction: row-reverse; }
.score-role { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.score-vs { display: grid; justify-items: center; align-content: center; gap: 10px; margin: 12px; padding: 14px 10px; border-radius: 16px; background: var(--soft); }
.score-read, .score-edit { display: grid; justify-items: center; gap: 8px; width: 100%; }
.score-figures { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #8ea0b8; font-variant-numeric: tabular-nums; }
.score-figures .is-win { color: var(--navy); }
.score-figures.is-open { color: #b7c4d4; }
.score-vs-pill { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--navy-2); background: var(--lime); }
.score-dash { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: #8ea0b8; }
.match-score .score-dash { font-size: 22px; }
.score-edit-actions { display: flex; gap: 6px; justify-content: center; }
.score-pd { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: white; border: 1px solid var(--line); color: var(--muted); }
.score-pd.is-pos { color: var(--ok); background: #e7f6ee; border-color: #b7e0c8; }
.score-pd.is-neg { color: var(--navy); background: #e8eef8; border-color: #c5d4ea; }
.slot-edit { display: grid; gap: 4px; margin-top: 4px; }
.slot-edit select { width: 100%; min-width: 0; }

@media (max-width: 860px) {
  .grid-3, .grid-4, .league-row, .auth-page, .portal, .form-row, .form-row.thirds, .facts { grid-template-columns: 1fr; }
  .facts .span-2 { grid-column: auto; }
  .season-card, .season-side { grid-template-columns: 1fr; display: grid; }
  .season-fee { text-align: left; }
  .week-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .portal { grid-template-columns: 1fr; }
  .side { position: static; }
  .rung-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-bar, .roster-row { display: grid; grid-template-columns: 1fr; align-items: start; }
  .rung-card.bench { margin-left: 0; }
  .game-board, .score-night-grid { grid-template-columns: 1fr; }
  .game-vs, .score-vs { margin: 0 12px 12px; }
  .score-side.is-away, .score-side.is-away .game-player { justify-items: start; text-align: left; flex-direction: row; }
}
