/* League-wide schedule · Project Dynasty
   Standalone page. No dependency on app.js, redesign.css, or the press room work. */

:root {
  --ink: #08090a;
  --ink-2: #0b0c0d;
  --warm: #1a1511;
  --cream: #f3ede2;
  --cream-2: #cfc8bb;
  --muted: #8f8779;
  --gold: #d3bc8d;
  --gold-2: #e7d5ac;
  --line: rgba(243, 237, 226, 0.13);
  --line-warm: rgba(248, 233, 203, 0.17);
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  background:
    radial-gradient(1180px 560px at 62% -12%, rgba(248, 233, 203, 0.19), transparent 62%),
    radial-gradient(820px 440px at 91% -6%, rgba(173, 57, 45, 0.08), transparent 64%),
    linear-gradient(180deg, #1a1511 0%, #14110e 28%, #0b0b0c 58%, #08090a 100%);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

img { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top) + 72px); }

/* The site header is fixed; anchors and the skip target must clear it. */
#main { scroll-margin-top: calc(var(--pd-shell-h, 54px) + 16px); }

.page {
  width: min(1360px, calc(100% - 80px));
  margin: 0 auto;
  padding: 26px 0 24px;
  position: relative;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(211, 188, 141, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--cream);
  text-decoration: none;
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-diamond { color: var(--gold); font-size: 11px; letter-spacing: 0; }
.brand-slash { color: rgba(243, 237, 226, 0.3); }
.brand-room { color: var(--gold); }

/* The site command bar owns the wordmark and the route out. This strip is the
   room title for the schedule itself, so the page keeps one identity rather
   than repeating the brand underneath the global header. */
.room-id {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.room-kicker {
  color: var(--gold);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.room-title {
  margin: 0;
  color: var(--cream);
  font: 800 21px/1 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mast-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--cream-2);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mast-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
  flex: none;
}

.mast-league { color: var(--gold); }

/* ---------- section rails ---------- */

.section { position: relative; }

.rail {
  display: grid;
  grid-template-columns: auto auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.rail-num {
  color: var(--gold);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.14em;
}

.rail-label {
  margin: 0;
  color: var(--cream);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rail-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 237, 226, 0.2), rgba(243, 237, 226, 0.04));
}

.rail-meta {
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- 01 · the week ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.335fr) minmax(0, 0.665fr);
  min-height: 372px;
  border-top: 1px solid var(--line-warm);
  background: linear-gradient(180deg, rgba(248, 233, 203, 0.025), rgba(248, 233, 203, 0) 34%);
}

.week-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 26px 16px 0;
}

.week-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  color: var(--gold);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.week-of {
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.week-num {
  margin: 16px 0 0 -0.045em;
  color: var(--cream);
  font: 900 clamp(120px, 17.4vw, 250px) / 0.72 var(--font-display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.week-panel .week-date {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(211, 188, 141, 0.36);
  color: var(--cream-2);
  font: 800 12px/1 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.week-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.week-counts strong {
  display: block;
  color: var(--cream);
  font: 900 28px/1 var(--font-display);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.week-counts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.week-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 9px 10px;
  border: 1px solid rgba(243, 237, 226, 0.16);
  background: transparent;
  color: var(--cream-2);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.week-btn[hidden] { display: none; }
.week-btn:hover { border-color: rgba(211, 188, 141, 0.6); color: var(--gold-2); }
.week-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.week-btn:disabled { opacity: 0.28; cursor: default; border-color: rgba(243, 237, 226, 0.1); }
.week-btn:disabled:hover { color: var(--cream-2); border-color: rgba(243, 237, 226, 0.1); }

.week-btn .chev { color: var(--gold); font-size: 12px; line-height: 1; }
.week-btn[disabled] .chev { color: var(--muted); }

.week-btn-now { border-color: rgba(211, 188, 141, 0.36); color: var(--gold); }
.week-btn-now:hover { background: rgba(211, 188, 141, 0.08); }
.now-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- game of the week ---------- */

.feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(248, 233, 203, 0.1);
  background: linear-gradient(180deg, rgba(27, 23, 18, 0.62), rgba(10, 12, 13, 0) 72%);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(243, 237, 226, 0.12);
}

.feature-kicker {
  color: var(--gold);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-badge {
  padding: 5px 8px;
  border: 1px solid rgba(211, 188, 141, 0.3);
  border-radius: 999px;
  color: var(--cream-2);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-badge.is-solid {
  border-color: var(--gold);
  background: var(--gold);
  color: #08090a;
  font-weight: 800;
}

.feature-status {
  margin-left: auto;
  color: var(--cream);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  border-bottom: 1px solid rgba(243, 237, 226, 0.12);
}

/* The hero is one target: either club card opens the same game page. */
.feature-open {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature-open:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.club {
  position: relative;
  color: var(--cream);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px 12px;
  color: var(--cream);
  background:
    radial-gradient(90% 72% at 18% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--p) 82%, #fff 18%) 0%,
      var(--p) 40%,
      color-mix(in srgb, var(--p) 62%, #000 38%) 100%
    );
}

.club::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: color-mix(in srgb, var(--s) 82%, #fff 18%);
  z-index: 2;
}

.club::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.22) 100%);
  z-index: 0;
}

.club > * { position: relative; z-index: 1; }

.feature-open:hover .club-city { color: var(--cream); }
.feature-open:hover .club-name { color: var(--gold-2); }
.feature-open:focus-visible .club-name { color: var(--gold-2); }

.club-skeleton {
  background: linear-gradient(160deg, #1e2a36 0%, #131c24 46%, #0a0f14 100%);
}

.club-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.club-side {
  color: rgba(243, 237, 226, 0.66);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.club-crest {
  width: 88px;
  height: 88px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, 0.36));
}

.club-city {
  margin-top: auto;
  color: rgba(243, 237, 226, 0.72);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-name {
  margin: 2px 0 0 -0.02em;
  color: var(--cream);
  font: 900 100px/0.76 var(--font-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.22);
}

.club-name.wm-l { font-size: 110px; }
.club-name.wm-m { font-size: 100px; }
.club-name.wm-s { font-size: 84px; }
.club-name.wm-xs { font-size: 70px; }

.club-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(243, 237, 226, 0.25);
}

.club-rec {
  flex: none;
  color: var(--cream);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.club-owner {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(243, 237, 226, 0.8);
  font: 700 12px/1.15 var(--font-body);
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-score {
  flex: none;
  margin-left: auto;
  color: var(--cream);
  font: 900 48px/0.72 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.club-score.is-tbd {
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  color: rgba(243, 237, 226, 0.6);
}

.feature-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 4px;
  border-left: 1px solid rgba(243, 237, 226, 0.08);
  border-right: 1px solid rgba(243, 237, 226, 0.08);
  background: linear-gradient(180deg, #1b1712 0%, #0c0e0f 100%);
}

.mid-week {
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.mid-at {
  color: var(--gold);
  font: 900 24px/1 var(--font-display);
  letter-spacing: 0.02em;
}

.mid-status {
  color: var(--cream-2);
  font: 800 11px/1.25 var(--font-body);
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- 02 · the slate ---------- */

.section-slate { margin-top: 36px; }

.slate-panel {
  padding: 14px 20px 12px;
  border-top: 1px solid rgba(248, 233, 203, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 233, 203, 0.065), rgba(248, 233, 203, 0.018) 52%, rgba(248, 233, 203, 0) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 22px 60px rgba(0, 0, 0, 0.18);
}

.slate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  align-items: stretch;
}

.game-slot {
  display: grid;
  min-width: 0;
}

/* One row is one link: the whole matchup opens that game's page. */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 7px;
  height: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 4px 0 4px 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(243, 237, 226, 0.07);
  border-left: 2px solid transparent;
}

.game:hover { background-color: rgba(211, 188, 141, 0.055); }
.game:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.game.is-owner {
  border-left-color: rgba(211, 188, 141, 0.72);
  background: linear-gradient(90deg, rgba(211, 188, 141, 0.055), rgba(211, 188, 141, 0) 54%);
}

.game.is-owner-owner {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(211, 188, 141, 0.085), rgba(211, 188, 141, 0) 60%);
}

.game.is-owner:hover,
.game.is-owner-owner:hover { background-color: rgba(211, 188, 141, 0.045); }

.side {
  display: grid;
  color: inherit;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  min-width: 0;
}

.side-crest {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.95;
}

.side-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.side-abbr {
  color: var(--cream);
  font: 900 21px/1 var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.side.is-owner .side-abbr { color: var(--gold-2); }
.game:hover .side-abbr,
.game:focus-visible .side-abbr { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }

.side-rec {
  overflow: hidden;
  color: rgba(207, 200, 187, 0.74);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-owner {
  grid-column: 2;
  display: block;
  overflow: hidden;
  color: var(--gold);
  font: 700 12px/1.15 var(--font-body);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-at {
  color: rgba(211, 188, 141, 0.42);
  font: 700 11px/1 var(--font-body);
  text-align: center;
}

.game-status { min-width: 0; text-align: right; }

.game-status b {
  display: block;
  overflow: hidden;
  color: var(--cream);
  font: 900 14px/1 var(--font-display);
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-status span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-status.is-final b { color: var(--gold-2); }
.game-status.is-final span { color: rgba(211, 188, 141, 0.72); }
.game-status.is-tbd b { color: var(--cream-2); font: 800 12px/1 var(--font-body); letter-spacing: 0.1em; }

.slate-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 9px;
  color: var(--muted);
  font: 700 11px/1.4 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gold-diamond { margin-right: 4px; color: var(--gold); font-size: 11px; }
.bye-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cream-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(211, 188, 141, 0.45);
}
.bye-link:hover,
.bye-link:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold); }
.bye-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bye-crest { width: 14px; height: 14px; flex: none; object-fit: contain; }

/* ---------- 03 · the season ---------- */

.section-season { margin-top: 32px; }

.weeks {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 4px;
}

.week {
  position: relative;
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  min-height: 78px;
  padding: 7px 6px 6px;
  border: 1px solid rgba(243, 237, 226, 0.08);
  border-top: 2px solid rgba(243, 237, 226, 0.14);
  background: rgba(243, 237, 226, 0.025);
  color: var(--cream-2);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.week:hover { background: rgba(243, 237, 226, 0.06); border-color: rgba(211, 188, 141, 0.45); }
.week:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; z-index: 2; }

.week-wk {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--cream);
  white-space: nowrap;
}

.wk-prefix {
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wk-num { font: 900 16px/0.9 var(--font-display); letter-spacing: 0.01em; }

.week-prog {
  color: var(--cream-2);
  font: 900 11px/1 var(--font-display);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.week .week-date {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.week-now {
  display: none;
  position: absolute;
  top: 5px;
  right: 6px;
  color: rgba(8, 9, 10, 0.6);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.week.is-done { background: rgba(243, 237, 226, 0.045); }
.week.is-future { opacity: 0.55; }

.week.is-current {
  padding-top: 20px;
  border-color: #f4eee3;
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #f4eee3 0%, #d9cfbf 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.week.is-current .week-wk,
.week.is-current .week-date { color: rgba(8, 9, 10, 0.56); }
.week.is-current .wk-num { color: #08090a; }
.week.is-current .week-prog { color: rgba(8, 9, 10, 0.72); }
.week.is-current .week-now { display: block; }

.week.is-selected { opacity: 1; }
.week.is-selected:not(.is-current) {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.week.is-selected:not(.is-current) .week-wk { color: var(--gold); }
.week.is-selected:not(.is-current) .week-prog { color: var(--gold-2); }
.week.is-selected:not(.is-current) .wk-prefix { color: var(--gold); }

.season-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 7px;
  color: var(--muted);
  font: 700 11px/1.3 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-note b { color: var(--cream-2); font-weight: 800; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- boot / error ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #08090a;
  color: var(--cream-2);
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.is-ready .boot { opacity: 0; visibility: hidden; pointer-events: none; }
.boot[hidden] { display: none; }
.boot-mark { color: var(--gold); animation: boot-pulse 1.6s ease-in-out infinite; }

@keyframes boot-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.error-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  width: min(380px, calc(100% - 40px));
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(211, 188, 141, 0.4);
  background: #0d0e0f;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.error-panel[hidden] { display: none; }
.error-kicker { color: var(--gold); font: 800 11px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; }
.error-panel p { margin: 12px 0 18px; color: var(--cream-2); font-size: 13px; line-height: 1.5; }
.error-panel button {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-2);
  padding: 9px 14px;
  font: 800 11px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.error-panel button:hover { background: rgba(211, 188, 141, 0.08); }
.error-panel button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- 1100 ---------- */

@media (max-width: 1100px) {
  .page { width: calc(100% - 56px); }
  .hero { grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr); min-height: 340px; }
  .club-crest { width: 76px; height: 76px; }
  .club-name.wm-l { font-size: 88px; }
  .club-name.wm-m { font-size: 80px; }
  .club-name.wm-s { font-size: 68px; }
  .club-name.wm-xs { font-size: 58px; }
  .club-score { font-size: 40px; }
  .weeks { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
}

/* ---------- 1020 · two slate columns ---------- */

@media (max-width: 1020px) {
  .slate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 900 · stack the week panel ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .week-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "top top"
      "num date"
      "num nav"
      "counts counts";
    column-gap: 20px;
    padding: 12px 0 14px;
    border-bottom: 1px solid rgba(248, 233, 203, 0.12);
  }

  .week-top { grid-area: top; align-self: end; }
  .week-num { grid-area: num; align-self: start; margin: 2px 0 0; font-size: 118px; line-height: 0.8; }
  .week-date { grid-area: date; margin-top: 4px; padding-top: 7px; }
  .week-counts { grid-area: counts; margin-top: 10px; padding-top: 8px; }
  .week-counts strong { font-size: 24px; }
  .week-nav { grid-area: nav; margin-top: 9px; padding-top: 0; }

  .feature { padding-left: 0; border-left: 0; padding-top: 8px; }
  .feature-body { min-height: 300px; }
}

/* ---------- 620 · phone ---------- */

@media (max-width: 620px) {
  .page { width: calc(100% - 32px); padding: 18px 0 30px; }
  .masthead { padding-bottom: 11px; gap: 10px; }
  /* The week is repeated large in the hero; the room title carries identity. */
  .mast-meta { display: none; }
  .mast-league, .mast-dot-b { display: none; }
  .room-kicker { font-size: 11px; letter-spacing: 0.12em; }
  .room-title { font-size: 18px; }

  .rail { gap: 8px; }
  .rail-num { font-size: 11px; }
  .rail-label { font-size: 11px; letter-spacing: 0.14em; }
  .rail-meta { font-size: 11px; letter-spacing: 0.08em; }

  .week-panel { column-gap: 14px; padding: 10px 0 12px; }
  .week-num { font-size: 90px; margin-top: 3px; }
  .week-of { font-size: 11px; }
  .week-panel .week-date { font-size: 12px; letter-spacing: 0.14em; }
  .week-counts { gap: 6px; }
  .week-counts strong { font-size: 21px; }
  .week-counts span { font-size: 11px; letter-spacing: 0.05em; }
  .week-nav { gap: 4px; }
  .week-btn { min-height: 40px; padding: 8px 9px; font-size: 11px; letter-spacing: 0.08em; }

  .feature { padding-top: 6px; }
  .feature-head { min-height: 32px; gap: 8px; padding-bottom: 7px; }
  .feature-kicker { font-size: 11px; letter-spacing: 0.14em; }
  .feature-badge { display: none; }
  .feature-status { font-size: 11px; letter-spacing: 0.08em; }

  .feature-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 38px auto;
    min-height: 0;
  }

  .feature-open {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 38px auto;
  }

  .club { min-height: 132px; padding: 12px 14px 10px; gap: 5px; }
  .club-crest { width: 52px; height: 52px; }
  .club-name.wm-l { font-size: 66px; }
  .club-name.wm-m { font-size: 60px; }
  .club-name.wm-s { font-size: 50px; }
  .club-name.wm-xs { font-size: 42px; }
  .club-score { font-size: 38px; }
  .club-score.is-tbd { font-size: 11px; }
  .club-foot { padding-top: 6px; margin-top: 2px; }

  .feature-mid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(243, 237, 226, 0.1);
    border-bottom: 1px solid rgba(243, 237, 226, 0.1);
  }

  .mid-week { writing-mode: horizontal-tb; transform: none; font-size: 11px; }
  .mid-at { font-size: 16px; }
  .mid-status { text-align: right; font-size: 11px; }

  .section-slate { margin-top: 24px; }
  .slate-panel { padding: 10px 12px 8px; }
  .slate { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .game { min-height: 58px; }
  .slate-foot { flex-direction: column; gap: 5px; font-size: 11px; line-height: 1.45; }

  .section-season { margin-top: 22px; }
  .weeks { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
  .week { min-height: 78px; padding: 6px 5px; }
  .wk-num { font-size: 15px; }
  .week-prog { font-size: 11px; }
  .week .week-date { font-size: 11px; letter-spacing: 0.01em; }

  .footer { flex-wrap: wrap; gap: 5px 14px; font-size: 11px; letter-spacing: 0.08em; }
  .footer span:last-child { display: none; }
}

/* ---------- 420 · small phone ---------- */

@media (max-width: 420px) {
  .mast-season, .mast-dot-a { display: none; }
  .rail {
    grid-template-columns: auto auto minmax(24px, 1fr);
    grid-template-areas:
      "num label line"
      "meta meta meta";
    row-gap: 6px;
  }
  .rail-num { grid-area: num; }
  .rail-label { grid-area: label; }
  .rail-line { grid-area: line; }
  .rail-meta { grid-area: meta; justify-self: end; white-space: normal; text-align: right; }
  .weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-kicker { font-size: 11px; letter-spacing: 0.12em; }
  .room-title { font-size: 17px; }
  .mast-meta { font-size: 11px; }
  .rail-meta { font-size: 11px; }
  .week-num { font-size: 86px; }
  .week-btn { padding: 8px; font-size: 11px; }
  .club-name.wm-l { font-size: 60px; }
  .club-name.wm-m { font-size: 55px; }
  .club-name.wm-s { font-size: 46px; }
  .club-name.wm-xs { font-size: 38px; }
  .club-score { font-size: 34px; }
  .game { grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 58px; gap: 5px; padding-left: 8px; }
  .side-abbr { font-size: 20px; }
  .side-rec { font-size: 11px; }
  .side-owner { font-size: 12px; }
  .game-status b { font-size: 14px; }
}

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

/* The shared command bar is part of this page's chrome. Its one small
   sub-label is raised to the same reading floor as the schedule copy. */
body.pd-shell .pd-brand small { font-size: 11px; }
