:root {
  color-scheme: light;
  --ink: #161715;
  --ink-soft: #383b36;
  --paper: #f1eee4;
  --paper-deep: #e5ddcc;
  --line: #b7b09f;
  --line-strong: #6f6a5e;
  --sun: #c54d20;
  --sun-dark: #7c2c12;
  --navy: #17314a;
  --blue: #2f6482;
  --chalk: #edf3ea;
  --film: #171b20;
  --film-line: #3f4852;
  --wood: #c88d52;
  --focus: #005fcc;
  --max: 1500px;
  --touch: 44px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 280px; }
body[data-environment="film-room"] { background: #d8d5cb; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; background: white; padding: .8rem 1rem; border: 2px solid var(--ink); }
.skip-link:focus { top: 1rem; }
.boot-screen { min-height: 100svh; display: grid; align-content: center; gap: .4rem; width: min(900px, calc(100% - 2rem)); margin: auto; border-top: 8px solid var(--ink); }
.boot-screen h1 { font-size: clamp(2.2rem, 8vw, 6rem); line-height: .92; margin: 0; max-width: 12ch; }
.boot-screen--error { border-color: var(--sun-dark); }
.facility-app { min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; }
.facility-masthead { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding: 1.1rem clamp(1rem, 3vw, 3rem); border-bottom: 1px solid var(--line); background: rgba(241,238,228,.96); }
.learning-identity { text-decoration: none; display: grid; gap: .18rem; }
.learning-identity__program { font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.learning-identity__product { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 750; }
.season-context { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem 1.1rem; font-size: .82rem; }
.season-context span { display: inline-flex; gap: .35rem; }
.facility-nav { display: grid; grid-template-columns: repeat(6, minmax(115px, 1fr)); border-bottom: 1px solid var(--line-strong); background: #ded7c7; overflow-x: auto; }
.facility-nav__link { min-height: 58px; padding: .65rem clamp(.65rem, 1.4vw, 1.25rem); text-decoration: none; border-right: 1px solid var(--line); display: grid; align-content: center; gap: .05rem; position: relative; }
.facility-nav__link span { font-size: .88rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.facility-nav__link small { font-size: .68rem; color: var(--ink-soft); white-space: nowrap; }
.facility-nav__link.is-current::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 0; height: 5px; background: var(--sun); }
.facility-nav__link.is-locked { opacity: .48; cursor: not-allowed; }
.facility-stage { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(1rem, 3vw, 3rem); }
.environment-header { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr) auto; gap: clamp(1rem, 3vw, 3rem); align-items: end; padding: clamp(1rem, 2vw, 2rem) 0 clamp(1.5rem, 3vw, 3rem); border-bottom: 2px solid var(--ink); }
.eyebrow, .meta-label { margin: 0; font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.environment-title { font-size: clamp(2.9rem, 7vw, 7.8rem); line-height: .82; letter-spacing: -.055em; margin: .35rem 0 0; text-wrap: balance; }
.environment-description { margin: 0; max-width: 46ch; line-height: 1.55; color: var(--ink-soft); }
.week-stamp { width: 82px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 2px solid var(--ink); transform: rotate(1deg); background: #fffaf0; }
.week-stamp span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.week-stamp strong { font-size: 1.65rem; }
.muted { color: #66665e; }
.orientation-gate { max-width: 980px; padding: clamp(2rem, 6vw, 6rem) 0; }
.orientation-gate h2 { font-size: clamp(2rem, 5vw, 4.8rem); line-height: .98; margin: .4rem 0 1rem; letter-spacing: -.035em; }
.orientation-gate > p:not(.eyebrow) { max-width: 70ch; font-size: 1.05rem; line-height: 1.7; }
.orientation-gate blockquote { margin: 2rem 0; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 7px solid var(--sun); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 780; max-width: 35ch; }
.primary-action, .text-action { min-height: var(--touch); border: 2px solid var(--ink); cursor: pointer; }
.primary-action { padding: .8rem 1.15rem; background: var(--ink); color: white; font-weight: 800; }
.primary-action:disabled { opacity: .45; cursor: not-allowed; }
.text-action { background: transparent; padding: .7rem .9rem; }
.season-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 0; margin-top: 2rem; border-top: 1px solid var(--line-strong); }
.season-board__primary { border-right: 1px solid var(--line); }
.season-board__rail { display: grid; align-content: start; }
.season-board__rail section { padding: 1.25rem; border-bottom: 1px solid var(--line); }
.board-section { padding: 1.5rem 1.5rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.board-section__heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.board-section h2 { margin: .25rem 0 0; font-size: clamp(1.6rem, 3vw, 2.7rem); }
.board-count { font-size: .75rem; font-weight: 800; border: 1px solid var(--line-strong); padding: .45rem .6rem; }
.week-lane { margin-top: 1.2rem; display: grid; border-top: 1px solid var(--line); }
.week-lane__decision { display: grid; grid-template-columns: 130px 1fr auto; gap: 1rem; align-items: center; text-decoration: none; padding: 1rem .25rem; border-bottom: 1px solid var(--line); }
.week-lane__decision span, .week-lane__decision small { font-size: .75rem; color: var(--ink-soft); }
.week-lane__decision strong { font-size: 1rem; }
.dimension-ledger { margin-top: 1rem; border-top: 1px solid var(--line); }
.dimension-ledger__row { display: grid; grid-template-columns: minmax(180px,.8fr) 120px 1.4fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dimension-ledger__row > span { text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; font-weight: 800; }
.dimension-ledger__row p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.evidence-note { display: grid; gap: .25rem; line-height: 1.45; }
.evidence-note strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.attention-link { display: grid; gap: .18rem; text-decoration: none; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.attention-link span { color: var(--ink-soft); font-size: .88rem; line-height: 1.35; }
.locker-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.7fr); gap: 0; margin-top: 2rem; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.roster-wall { background: #dbd5c7; border-right: 1px solid var(--line-strong); }
.roster-wall__header { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line-strong); }
.roster-slat { display: grid; grid-template-columns: 38px minmax(120px,.75fr) 1fr; gap: .75rem; align-items: center; min-height: 52px; padding: .65rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.roster-slat > span { font-variant-numeric: tabular-nums; font-size: .72rem; }
.roster-slat small { color: var(--ink-soft); }
.roster-slat.is-current { background: #fffaf0; box-shadow: inset 6px 0 0 var(--sun); }
.player-file { padding: clamp(1.3rem, 4vw, 3rem); background: #faf6eb; }
.player-file h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: .9; margin: .35rem 0 .4rem; letter-spacing: -.04em; }
.player-archetype { margin: 0 0 2rem; color: var(--sun-dark); font-weight: 780; font-size: 1.1rem; }
.player-file__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.player-file h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.player-file ul { margin: .5rem 0; padding-left: 1.15rem; line-height: 1.55; }
.player-question, .player-risk, .player-evidence { display: grid; grid-template-columns: 155px 1fr; gap: 1.2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.player-question span, .player-risk span, .player-evidence > span { font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.player-question p, .player-risk p, .player-evidence p, .player-evidence ul { margin: 0; line-height: 1.55; }
.scenario-rail { display: flex; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); overflow-x: auto; background: rgba(255,255,255,.24); }
.scenario-rail__item { flex: 0 0 170px; min-height: 78px; padding: .7rem .8rem; border-right: 1px solid var(--line); text-decoration: none; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: .1rem .5rem; }
.scenario-rail__item span { font-size: .66rem; font-weight: 850; }
.scenario-rail__item small { grid-column: 1 / -1; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scenario-rail__item.is-current { background: var(--ink); color: white; }
.scenario-rail__item.is-current small { color: #ddd8cd; }
.scenario-stage { max-width: 1120px; padding: clamp(2rem, 5vw, 5rem) 0; }
.scenario-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.scenario-meta span, .framework-line > span:not(.meta-label) { border: 1px solid var(--line-strong); padding: .35rem .5rem; font-size: .68rem; font-weight: 780; text-transform: uppercase; letter-spacing: .05em; }
.scenario-stage h2 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: .96; letter-spacing: -.035em; margin: .45rem 0 .8rem; max-width: 18ch; }
.scenario-setup { font-size: 1.05rem; line-height: 1.65; max-width: 75ch; color: var(--ink-soft); }
.player-context, .framework-line { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.inline-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-links a { font-size: .85rem; font-weight: 750; }
.coach-prompt { margin: 1.7rem 0; padding: 1.35rem 0; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--line); }
.coach-prompt p { font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.35; max-width: 40ch; margin: .45rem 0 0; font-weight: 650; }
.decision-set { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); margin: 1.4rem 0 1rem; }
.decision-option { min-height: 104px; text-align: left; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.38); padding: 1rem; display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: start; cursor: pointer; line-height: 1.45; }
.decision-option:nth-child(2n) { border-right: 0; }
.decision-option.is-selected { box-shadow: inset 0 0 0 4px var(--ink); background: #fffaf0; }
.decision-option:disabled { cursor: default; opacity: 1; }
.decision-option__letter { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; font-weight: 850; }
.decision-locked { font-size: .82rem; font-weight: 750; }
.interaction-shell { margin: 1.5rem 0; padding: 1.2rem; border-left: 7px solid var(--blue); background: rgba(255,255,255,.42); max-width: 820px; }
.interaction-shell strong { display: block; margin: .25rem 0; font-size: 1.15rem; }
.interaction-shell p { line-height: 1.55; }
.interaction-detail { font-size: .86rem; color: var(--ink-soft); }
.feedback-structure { margin-top: 3rem; border-top: 2px solid var(--ink); }
.feedback-structure--waiting { padding-top: 1.2rem; max-width: 720px; }
.feedback-step { display: grid; grid-template-columns: 62px 1fr; gap: 1.25rem; border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.feedback-step > span { font-size: 1.45rem; font-weight: 850; color: var(--sun-dark); }
.feedback-step p { margin: .22rem 0 0; line-height: 1.55; max-width: 72ch; }
.court-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px,.65fr); min-height: 520px; border-bottom: 2px solid var(--ink); }
.court-shell__surface { position: relative; overflow: hidden; min-height: 520px; background:
  linear-gradient(90deg, transparent 49.7%, rgba(80,45,15,.36) 49.8%, rgba(80,45,15,.36) 50.2%, transparent 50.3%),
  repeating-linear-gradient(90deg, #d59c62 0 52px, #cc9156 52px 104px); border-right: 1px solid #8e653e; }
.court-shell__surface::after { content: ""; position: absolute; width: 260px; height: 260px; border: 3px solid rgba(74,42,18,.62); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.court-shell__paint { position: absolute; width: 180px; height: 220px; border: 3px solid rgba(74,42,18,.62); left: 50%; top: 0; transform: translateX(-50%); border-top: 0; }
.court-shell__circle { position: absolute; width: 110px; height: 110px; border: 3px solid rgba(74,42,18,.62); border-radius: 50%; left: 50%; top: 220px; transform: translate(-50%,-50%); }
.court-shell__baseline { position: absolute; z-index: 2; left: 1rem; top: 1rem; background: var(--ink); color: white; padding: .45rem .55rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.court-shell__workspace { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .7rem; font-weight: 850; }
.court-shell__context { padding: clamp(1.3rem, 3vw, 2.5rem); background: #ebe1d0; }
.court-shell__context h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin: .35rem 0 .8rem; }
.court-shell__context p { line-height: 1.55; }
.future-space { margin-top: 2rem; border-top: 1px solid var(--line-strong); padding-top: 1rem; display: grid; gap: .3rem; }
.future-space span { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.whiteboard-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 490px; border-bottom: 2px solid var(--ink); }
.whiteboard-sequence { background: var(--ink); color: white; padding: 1rem 0; }
.whiteboard-sequence div { display: grid; grid-template-columns: 40px 1fr; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid #3d403b; }
.whiteboard-sequence span { font-size: .65rem; color: #aaa; }
.whiteboard-canvas { background: #e9eee6; position: relative; display: grid; place-content: center; padding: 2rem; text-align: center; overflow: hidden; }
.whiteboard-canvas::before, .whiteboard-canvas::after { content: ""; position: absolute; border: 2px solid rgba(22,50,45,.24); border-radius: 50%; }
.whiteboard-canvas::before { width: 230px; height: 230px; left: 9%; top: 20%; }
.whiteboard-canvas::after { width: 340px; height: 170px; right: 8%; bottom: 12%; transform: rotate(-9deg); }
.whiteboard-canvas__label { font-size: clamp(2rem, 6vw, 5rem); font-weight: 900; color: rgba(20,50,45,.12); letter-spacing: -.04em; }
.whiteboard-canvas p { max-width: 50ch; position: relative; z-index: 2; }
.game-board { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink); }
.game-board > div { padding: clamp(1.3rem, 4vw, 3rem); min-height: 220px; }
.game-board__scoreboard { background: var(--navy); color: white; }
.game-board__development { background: #efe6d2; }
.game-board strong { display: block; font-size: clamp(1.8rem, 3.5vw, 3.6rem); line-height: .95; margin: .5rem 0 1rem; max-width: 13ch; }
.game-board p { line-height: 1.55; max-width: 45ch; }
.pressure-strip { display: grid; grid-template-columns: 150px 1fr 150px; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line-strong); text-align: center; }
.pressure-strip span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.film-shell { background: var(--film); padding: clamp(1rem, 3vw, 2.5rem); border-bottom: 2px solid #000; }
.film-screen { aspect-ratio: 16/7; background: #06080b; border: 1px solid var(--film-line); display: grid; place-items: center; padding: 2rem; box-shadow: inset 0 0 80px rgba(80,120,160,.08); }
.film-screen__frame { color: #eef3f6; text-align: center; display: grid; gap: .8rem; }
.film-screen__frame span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #9cb0c1; }
.film-screen__frame strong { font-size: clamp(1rem, 3vw, 2.4rem); letter-spacing: .03em; }
.film-screen__frame p { color: #aab4bc; margin: 0; }
.film-console { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--film-line); border-top: 0; color: #bcc6ce; }
.film-console span { padding: .75rem; border-right: 1px solid var(--film-line); text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.facility-footer { width: min(var(--max), 100%); margin: 0 auto; padding: 1.25rem clamp(1rem, 3vw, 3rem) 2rem; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.facility-footer > div { display: grid; gap: .15rem; }
.facility-footer span { font-size: .78rem; color: var(--ink-soft); }
.facility-footer__support { max-width: 48ch; margin: 0; font-size: .875rem; line-height: 1.5; }
.facility-footer__actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.facility-footer__actions a { min-height: var(--touch); display: inline-flex; align-items: center; font-weight: 800; text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .environment-header { grid-template-columns: 1fr auto; }
  .environment-description { grid-column: 1 / -1; grid-row: 2; }
  .season-board { grid-template-columns: 1fr; }
  .season-board__primary { border-right: 0; }
  .season-board__rail { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .season-board__rail section { border-right: 1px solid var(--line); }
  .court-shell { grid-template-columns: 1fr; }
  .court-shell__surface { border-right: 0; border-bottom: 1px solid #8e653e; }
  .locker-layout { grid-template-columns: 330px 1fr; }
}
@media (max-width: 820px) {
  .facility-masthead { align-items: start; }
  .season-context { max-width: 240px; }
  .facility-nav { grid-template-columns: repeat(6, minmax(108px, 1fr)); }
  .locker-layout { grid-template-columns: 1fr; }
  .roster-wall { border-right: 0; border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr 1fr; }
  .roster-wall__header { grid-column: 1 / -1; }
  .roster-slat { grid-template-columns: 32px 1fr; }
  .roster-slat small { grid-column: 2; }
  .player-file__columns { gap: 1rem; }
  .whiteboard-shell { grid-template-columns: 180px 1fr; }
  .decision-set { grid-template-columns: 1fr; }
  .decision-option, .decision-option:nth-child(2n) { border-right: 0; }
  .season-board__rail { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html { scroll-behavior: auto; }
  .facility-masthead { display: grid; gap: .85rem; padding: .9rem 1rem; }
  .season-context { justify-content: start; max-width: none; }
  .facility-stage { padding: .9rem 1rem 1.5rem; }
  .environment-header { grid-template-columns: 1fr auto; gap: 1rem; }
  .environment-title { font-size: clamp(2.8rem, 16vw, 5rem); }
  .environment-description { font-size: .92rem; }
  .week-stamp { width: 68px; }
  .board-section { padding-right: 0; }
  .week-lane__decision { grid-template-columns: 80px 1fr; }
  .week-lane__decision small { grid-column: 2; }
  .dimension-ledger__row { grid-template-columns: 1fr auto; }
  .dimension-ledger__row p { grid-column: 1 / -1; }
  .roster-wall { display: block; max-height: 370px; overflow-y: auto; }
  .player-file { padding: 1.2rem; }
  .player-file__columns { grid-template-columns: 1fr; }
  .player-question, .player-risk, .player-evidence { grid-template-columns: 1fr; gap: .4rem; }
  .scenario-stage { padding: 2.2rem 0; }
  .scenario-stage h2 { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .decision-option { min-height: var(--touch); }
  .feedback-step { grid-template-columns: 44px 1fr; gap: .75rem; }
  .court-shell__surface { min-height: 430px; }
  .court-shell__workspace { display: grid; grid-template-columns: 1fr 1fr; }
  .whiteboard-shell { grid-template-columns: 1fr; }
  .whiteboard-sequence { display: flex; overflow-x: auto; }
  .whiteboard-sequence div { flex: 0 0 135px; }
  .whiteboard-canvas { min-height: 380px; }
  .game-board { grid-template-columns: 1fr; }
  .pressure-strip { grid-template-columns: 1fr; text-align: left; }
  .film-screen { aspect-ratio: 4/3; }
  .film-console { grid-template-columns: 1fr 1fr; }
  .facility-footer { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .facility-nav__link { min-height: 54px; }
  .facility-nav__link small { display: none; }
  .environment-header { align-items: start; }
  .week-stamp { width: 58px; }
  .week-stamp strong { font-size: 1.3rem; }
  .scenario-meta { gap: .3rem; }
  .scenario-meta span { font-size: .62rem; }
  .court-shell__surface { min-height: 390px; }
  .court-shell__paint { width: 140px; height: 180px; }
  .court-shell__circle { top: 180px; }
  .film-screen { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* Pass 3 responsive containment: grid/flex descendants may not widen the page.
   Horizontal facility/scenario strips own their scrolling instead. */
.facility-app,
.facility-masthead,
.facility-nav,
.facility-stage,
.facility-footer,
.environment-header,
.season-board,
.locker-layout,
.player-file,
.court-shell,
.court-shell__surface,
.court-shell__context,
.whiteboard-shell,
.whiteboard-canvas,
.game-board,
.scenario-stage,
.scenario-rail,
.decision-set {
  min-width: 0;
}
.facility-app { width: 100%; max-width: 100%; overflow-x: clip; }
.facility-masthead,
.facility-nav { width: 100%; max-width: 100vw; }
.facility-stage,
.facility-footer { max-width: min(var(--max), 100%); }
.scenario-rail { width: 100%; max-width: 100%; }


/* Pass 4 — Accessible basketball court interaction */
.practice-court-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.practice-court-context h2 {
  margin: .3rem 0 .55rem;
  font-size: clamp(1.7rem, 4vw, 3.3rem);
  letter-spacing: -.035em;
}
.practice-court-context p { max-width: 70ch; line-height: 1.55; }
.practice-cycle { display: grid; grid-template-columns: repeat(4, auto); gap: .4rem; }
.practice-cycle span {
  border-top: 3px solid var(--ink);
  padding: .45rem .5rem 0;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  white-space: nowrap;
}
.court-engine {
  margin: 1.5rem 0 2.5rem;
  border-top: 6px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #e8ddca;
  min-width: 0;
}
.court-engine__header {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr);
  gap: 2rem;
  padding: 1.2rem clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line-strong);
  align-items: end;
}
.court-engine__header h2 { margin: .25rem 0 0; font-size: clamp(1.7rem, 3.5vw, 3rem); }
.court-engine__header > p { margin: 0; line-height: 1.5; color: var(--ink-soft); }
.court-engine__player-picker {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  background: #d9cfbd;
}
.court-player-choice {
  flex: 0 0 138px;
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: .55rem .7rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: .45rem;
  align-items: center;
}
.court-player-choice > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .67rem;
  font-weight: 900;
}
.court-player-choice strong { font-size: .76rem; line-height: 1.1; }
.court-player-choice.is-active { background: var(--ink); color: white; }
.court-engine__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  min-width: 0;
}
.court-engine__visual {
  padding: clamp(.8rem, 2vw, 1.5rem);
  min-width: 0;
  background:
    repeating-linear-gradient(90deg, rgba(132,76,32,.10) 0 52px, rgba(255,255,255,.04) 52px 104px),
    #ca9158;
  border-right: 1px solid #7f5b39;
}
.court-svg {
  width: 100%;
  max-height: 640px;
  display: block;
  background: #d39a60;
  border: 2px solid #704b2c;
}
.court-svg__floor { fill: #d39a60; stroke: #704b2c; stroke-width: 3; }
.court-line { fill: none; stroke: #684528; stroke-width: 3; vector-effect: non-scaling-stroke; }
.court-paint { fill: rgba(255,255,255,.05); }
.court-rim { fill: none; stroke: #a9361c; stroke-width: 4; vector-effect: non-scaling-stroke; }
.court-center-arc { fill: none; }
.court-zone { cursor: pointer; }
.court-zone circle {
  fill: rgba(255,250,240,.82);
  stroke: #342719;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.court-zone text { font-size: 12px; font-weight: 900; fill: #211a12; pointer-events: none; }
.court-zone:hover circle,
.court-zone:focus circle,
.court-zone.is-selected circle {
  fill: #fff;
  stroke: var(--focus);
  stroke-width: 4;
}
.court-zone:focus { outline: none; }
.court-player-marker circle {
  fill: var(--navy);
  stroke: white;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.court-player-marker.is-active circle { fill: var(--sun-dark); }
.court-player-marker text { fill: white; font-size: 12px; font-weight: 900; pointer-events: none; }
.court-movement line {
  stroke: #17314a;
  stroke-width: 4;
  stroke-dasharray: 10 7;
  vector-effect: non-scaling-stroke;
}
.court-movement circle { fill: #f8f3e7; stroke: #17314a; stroke-width: 2; }
.court-movement text { fill: #17314a; font-size: 11px; font-weight: 900; }
#court-arrow path { fill: #17314a; }
.court-zone-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  border: 1px solid #704b2c;
  border-top: 0;
}
.court-zone-controls button {
  min-height: var(--touch);
  border: 0;
  border-right: 1px solid #aa7b50;
  border-bottom: 1px solid #aa7b50;
  background: #f2dfc5;
  padding: .45rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .35rem;
  align-items: center;
  text-align: left;
}
.court-zone-controls button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #6e4a2e;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 850;
}
.court-zone-controls button strong { font-size: .69rem; line-height: 1.1; }
.court-engine__text {
  background: #f1ecdf;
  padding: clamp(1rem, 2vw, 1.6rem);
  min-width: 0;
}
.court-engine__text section { padding: 0 0 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.court-current-player { margin: .4rem 0 0; font-size: 1.25rem; font-weight: 800; }
.court-empty { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.court-sequence-list { margin: .6rem 0 0; padding-left: 1.3rem; }
.court-sequence-list li { padding: .4rem 0; line-height: 1.4; }
.court-sequence-list strong { display: block; }
.court-position-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.court-position-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.court-position-list span { color: var(--ink-soft); }
.court-engine__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 1rem clamp(1rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-strong);
  background: #ddd3c0;
}
.court-engine__actions button:disabled,
.court-player-choice:disabled,
.court-zone-controls button:disabled { opacity: .45; cursor: not-allowed; }
.court-scratch-note {
  margin: 0;
  padding: 0 clamp(1rem, 2.5vw, 2rem) 1rem;
  font-size: .78rem;
  color: var(--ink-soft);
  background: #ddd3c0;
}

@media (max-width: 1000px) {
  .court-engine__layout { grid-template-columns: 1fr; }
  .court-engine__visual { border-right: 0; border-bottom: 1px solid #7f5b39; }
  .court-engine__text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .court-engine__text section { border-bottom: 0; margin: 0; padding: 0; }
}
@media (max-width: 820px) {
  .practice-court-context { grid-template-columns: 1fr; }
  .practice-cycle { grid-template-columns: repeat(4, 1fr); }
  .practice-cycle span { white-space: normal; }
  .court-engine__header { grid-template-columns: 1fr; gap: .7rem; }
  .court-zone-controls { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .court-engine__text { grid-template-columns: 1fr; }
  .court-engine__text section { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}
@media (max-width: 620px) {
  .practice-cycle { grid-template-columns: 1fr 1fr; }
  .court-engine { margin-left: 0; margin-right: 0; }
  .court-engine__visual { padding: .6rem; }
  .court-svg { max-height: none; }
  .court-player-choice { flex-basis: 124px; min-height: 54px; }
  .court-zone-controls button { min-height: 48px; }
  .court-engine__actions { display: grid; grid-template-columns: 1fr; }
  .court-engine__actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .court-movement line { stroke-dasharray: none; }
}


/* Pass 5 — Film Room playback / WATCH engine */
.film-room-principle {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 0;
  margin: 1.2rem 0 0;
  border-top: 1px solid var(--film-line);
  border-bottom: 1px solid var(--film-line);
  background: var(--film);
  color: #eef3f6;
}
.film-room-principle span {
  padding: .8rem;
  text-align: center;
  border-right: 1px solid var(--film-line);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .11em;
}
.film-engine {
  margin: 1.4rem 0 2.5rem;
  background: #11161c;
  color: #eef2f5;
  border-top: 6px solid #05070a;
  border-bottom: 2px solid #05070a;
  min-width: 0;
}
.film-engine__header {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(280px,1.2fr);
  gap: 2rem;
  padding: 1.2rem clamp(1rem,2.5vw,2rem);
  border-bottom: 1px solid #38424d;
  align-items: end;
}
.film-engine__header h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.8rem,3.8vw,3.4rem);
  line-height: .95;
}
.film-engine__header > p { margin: 0; color: #b9c4cc; line-height: 1.55; max-width: 60ch; }
.film-playback { min-width: 0; }
.film-monitor { padding: clamp(.8rem,2vw,1.5rem); background: #080b0f; border-bottom: 1px solid #38424d; }
.film-playback-svg {
  width: 100%;
  display: block;
  background: #05080b;
  border: 1px solid #34404b;
  box-shadow: 0 16px 50px rgba(0,0,0,.36);
}
.film-frame-bg { fill: #090d12; stroke: #36434f; stroke-width: 2; }
.film-frame-inner { fill: #121922; stroke: #26323d; stroke-width: 1; }
.film-frame-kicker { fill: #8fa3b4; font-size: 12px; font-weight: 800; letter-spacing: 1.6px; }
.film-frame-title { fill: #f2f5f7; font-size: 27px; font-weight: 850; }
.film-frame-copy { color: #b8c4cd; font: 600 18px/1.4 system-ui,sans-serif; }
.film-freeze-badge { fill: #f09b6a; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }
.film-participant circle { fill: #273645; stroke: #607285; stroke-width: 2; }
.film-participant.is-focus circle { fill: var(--sun-dark); stroke: #f2c3a8; stroke-width: 4; }
.film-participant text { fill: white; font-size: 12px; font-weight: 900; }
.film-participant__name { fill: #9eb0bf !important; font-size: 11px !important; font-weight: 700 !important; }
.film-now {
  display: grid;
  gap: .18rem;
  padding: .8rem 0 0;
}
.film-now strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; color: #f1b08a; }
.film-now span { color: #d6dde2; line-height: 1.45; }
.film-now em { color: #f1b08a; font-style: normal; font-weight: 800; }
.film-playback-controls {
  display: grid;
  grid-template-columns: auto auto auto minmax(220px,1fr);
  gap: .55rem;
  align-items: center;
  padding: .9rem clamp(1rem,2.5vw,2rem);
  border-bottom: 1px solid #38424d;
  background: #171e26;
}
.film-playback-controls button {
  min-height: var(--touch);
  padding: .6rem .85rem;
  border: 1px solid #607080;
  color: #eef2f5;
  background: transparent;
  cursor: pointer;
}
.film-playback-controls button:disabled { opacity: .38; cursor: not-allowed; }
.film-play-primary { background: #eef2f5 !important; color: #11161c !important; font-weight: 850; }
.film-timeline { display: grid; gap: .25rem; min-width: 0; }
.film-timeline span { font-size: .7rem; color: #9dafbd; }
.film-timeline input { width: 100%; accent-color: #f1a477; }
.film-transcript {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #38424d;
}
.film-transcript li { flex: 0 0 min(260px,74vw); }
.film-transcript button {
  width: 100%;
  min-height: 92px;
  border: 0;
  border-right: 1px solid #38424d;
  color: #dce4e9;
  background: #111820;
  padding: .7rem .8rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .18rem .5rem;
}
.film-transcript button span {
  width: 25px; height: 25px; display: grid; place-items: center;
  border: 1px solid #627586; border-radius: 50%;
  font-size: .65rem; font-weight: 850;
}
.film-transcript button strong { align-self: center; }
.film-transcript button em {
  grid-column: 1/-1;
  font-style: normal;
  color: #9dafbd;
  font-size: .78rem;
  line-height: 1.35;
}
.film-transcript li.is-current button { background: #253240; box-shadow: inset 0 -4px 0 #f0a272; }
.film-transcript button:disabled { cursor: not-allowed; }
.film-source-limit {
  margin: 0;
  padding: .9rem clamp(1rem,2.5vw,2rem);
  border-bottom: 1px solid #38424d;
  color: #d9c4b7;
  background: #241a15;
  line-height: 1.5;
}
.film-prediction,
.film-perspectives,
.watch-panel {
  padding: clamp(1rem,3vw,2rem);
  border-bottom: 1px solid #38424d;
}
.film-section-heading { display: grid; grid-template-columns: minmax(180px,.5fr) 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
.film-section-heading p { margin: 0; }
.film-section-heading p:last-child { color: #aebac3; line-height: 1.45; }
.film-prediction label,
.film-long-response,
.film-perspective-note label,
.watch-grid label {
  display: grid;
  gap: .35rem;
  color: #dde5ea;
  font-weight: 750;
}
.film-prediction textarea,
.film-perspectives textarea,
.watch-grid textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #526271;
  background: #0d1319;
  color: #f3f6f8;
  padding: .75rem;
  font: inherit;
  line-height: 1.45;
}
.film-prediction { display: grid; gap: 1rem; }
.film-prediction-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.film-prediction-options button,
.film-perspective-tabs button {
  min-height: var(--touch);
  border: 1px solid #607080;
  color: #e8eef2;
  background: #151d25;
  padding: .55rem .75rem;
  cursor: pointer;
}
.film-prediction-options button:hover,
.film-perspective-tabs button.is-active { background: #e8eef2; color: #11161c; }
.film-perspective-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.film-perspective-note { margin-bottom: 1rem; }
.film-long-response { margin-top: 1rem; }
.watch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.watch-grid label:last-child { grid-column: 1/-1; }
.film-submit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem,2.5vw,2rem);
  background: #202a34;
}
.film-submit-bar span { color: #b9c5cd; }
.film-submit-bar strong { color: #e4edf2; }
.film-submit-bar .primary-action { background: #eef2f5; color: #11161c; border-color: #eef2f5; }
.film-engine textarea:disabled,
.film-engine button:disabled,
.film-engine input:disabled { opacity: .5; }
.film-engine--missing { padding: 1rem; }

@media (max-width: 900px) {
  .film-engine__header { grid-template-columns: 1fr; gap: .7rem; }
  .film-playback-controls { grid-template-columns: repeat(3,1fr); }
  .film-timeline { grid-column: 1/-1; }
  .watch-grid { grid-template-columns: 1fr; }
  .watch-grid label:last-child { grid-column: auto; }
}
@media (max-width: 620px) {
  .film-room-principle { grid-template-columns: 1fr; }
  .film-room-principle span { text-align: left; border-right: 0; border-bottom: 1px solid var(--film-line); }
  .film-section-heading { grid-template-columns: 1fr; gap: .3rem; }
  .film-playback-controls { grid-template-columns: 1fr 1fr 1fr; }
  .film-monitor { padding: .55rem; }
  .film-frame-title { font-size: 22px; }
  .film-frame-copy { font-size: 16px; }
  .film-submit-bar { align-items: stretch; flex-direction: column; }
  .film-submit-bar button { width: 100%; }
}
@media (max-width: 420px) {
  .film-playback-controls { grid-template-columns: 1fr; }
  .film-timeline { grid-column: auto; }
  .film-transcript li { flex-basis: 82vw; }
}
@media (prefers-reduced-motion: reduce) {
  .film-playback-svg * { animation: none !important; transition: none !important; }
}


/* Pass 6 — Game & Season Engine */
.season-engine {
  margin: 1.5rem 0 2.5rem;
  border-top: 6px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #e9e2d3;
  min-width: 0;
}
.season-engine__header {
  display: grid;
  grid-template-columns: minmax(0,.7fr) minmax(300px,1.3fr);
  gap: 2rem;
  align-items: end;
  padding: 1.25rem clamp(1rem,2.5vw,2rem);
  border-bottom: 1px solid var(--line-strong);
}
.season-engine__header h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.8rem,4vw,3.3rem);
  line-height: .95;
}
.season-engine__header > p {
  margin: 0;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 70ch;
}
.season-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(11,minmax(95px,1fr));
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
  background: #dcd3c2;
}
.season-week {
  min-height: 118px;
  padding: .65rem;
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: .35rem;
}
.season-week > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem;
}
.season-week span {
  font-size: 1rem;
  font-weight: 900;
}
.season-week strong {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.season-week small,
.season-week em {
  font-size: .68rem;
  line-height: 1.25;
}
.season-week em {
  font-style: normal;
  display: block;
  color: var(--sun-dark);
}
.season-week--current {
  background: #fff9ec;
  box-shadow: inset 0 -6px 0 var(--sun);
}
.season-week--future { opacity: .55; }
.season-engine__current {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-strong);
}
.season-engine__current > section {
  padding: clamp(1rem,2.5vw,1.7rem);
  border-right: 1px solid var(--line);
}
.season-engine__current > section:last-child { border-right: 0; }
.season-engine__current > section > strong {
  display: block;
  margin: .4rem 0 .8rem;
  font-size: 1.1rem;
}
.season-engine__current ul {
  margin: .5rem 0 0;
  padding-left: 1.15rem;
}
.season-engine__current li {
  padding: .3rem 0;
  line-height: 1.4;
}
.season-engine__current li span {
  color: var(--ink-soft);
  font-size: .76rem;
  margin-left: .35rem;
}
.season-engine__advance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem,2.5vw,2rem);
  background: #d8cfbe;
}
.season-engine__advance span {
  color: var(--ink-soft);
  line-height: 1.4;
}

.game-season-context {
  margin: 1.2rem 0 2rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #efe7d7;
}
.game-season-context > header {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(260px,1.2fr);
  gap: 2rem;
  align-items: end;
  padding: 1.2rem clamp(1rem,2.5vw,2rem);
  border-bottom: 1px solid var(--line-strong);
}
.game-season-context > header h2 {
  margin: .25rem 0 0;
  font-size: clamp(1.7rem,3.5vw,3rem);
  line-height: .98;
}
.game-season-context > header > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.game-pressure-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr);
  border-bottom: 1px solid var(--line-strong);
}
.game-pressure-grid > section {
  padding: clamp(1rem,2.5vw,1.6rem);
  border-right: 1px solid var(--line);
}
.game-pressure-grid > section:last-child { border-right: 0; }
.game-pressure-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.game-pressure-card > span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sun-dark);
  font-weight: 850;
}
.game-pressure-card > strong {
  display: block;
  margin: .35rem 0 .5rem;
  font-size: 1.15rem;
}
.game-pressure-card p {
  margin: .35rem 0;
  line-height: 1.5;
}
.role-pressure-list {
  list-style: none;
  padding: 0;
  margin: .6rem 0 0;
}
.role-pressure-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}
.role-pressure-list span {
  color: var(--ink-soft);
  font-size: .78rem;
}
.game-result-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.game-result-ledger label {
  display: grid;
  gap: .45rem;
  padding: clamp(1rem,2.5vw,1.6rem);
  border-right: 1px solid var(--line);
}
.game-result-ledger label:last-child { border-right: 0; }
.game-result-ledger label > span {
  font-weight: 850;
  line-height: 1.3;
}
.game-result-ledger textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  border: 1px solid var(--line-strong);
  background: #fffaf0;
  color: var(--ink);
  padding: .75rem;
  font: inherit;
  line-height: 1.45;
}
.game-result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem,2.5vw,1.6rem);
  border-top: 1px solid var(--line-strong);
  background: #ddd4c3;
}
.game-result-actions span {
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .season-engine__header,
  .game-season-context > header {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .season-engine__current,
  .game-pressure-grid {
    grid-template-columns: 1fr;
  }
  .season-engine__current > section,
  .game-pressure-grid > section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .season-engine__advance,
  .game-result-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .season-engine__advance button,
  .game-result-actions button {
    width: 100%;
  }
  .game-result-ledger {
    grid-template-columns: 1fr;
  }
  .game-result-ledger label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .season-week { min-height: 104px; }
}


/* Pass 6 — Source-defined structured Game/Season responses */
.season-response-engine {
  margin: 1.5rem 0;
  border-top: 5px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: #eef0e8;
}
.season-response-engine > header {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(280px,1.2fr);
  gap: 2rem;
  align-items: end;
  padding: 1.1rem clamp(1rem,2.5vw,1.6rem);
  border-bottom: 1px solid var(--line-strong);
}
.season-response-engine > header h3 {
  margin: .25rem 0 0;
  font-size: clamp(1.5rem,3vw,2.5rem);
  line-height: 1;
}
.season-response-engine > header > p {
  margin: 0;
  line-height: 1.5;
  color: var(--ink-soft);
}
.season-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}
.season-ranking li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .8rem;
  align-items: center;
  min-height: 64px;
  padding: .65rem clamp(1rem,2.5vw,1.6rem);
  border-bottom: 1px solid var(--line);
}
.season-ranking li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 900;
}
.season-ranking li > div { display: flex; gap: .3rem; }
.season-ranking button {
  min-width: var(--touch);
  min-height: var(--touch);
  border: 1px solid var(--line-strong);
  background: #fffaf0;
  cursor: pointer;
}
.season-ranking button:disabled { opacity: .35; cursor: not-allowed; }

.season-choose-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-strong);
}
.season-choose-two button {
  min-height: 92px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7f3e8;
  text-align: left;
  padding: 1rem;
  display: grid;
  gap: .35rem;
  cursor: pointer;
}
.season-choose-two button:nth-child(2n) { border-right: 0; }
.season-choose-two button span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sun-dark);
  font-weight: 850;
}
.season-choose-two button.is-selected {
  background: #fff8e8;
  box-shadow: inset 0 0 0 4px var(--navy);
}
.season-choose-two button:disabled:not(.is-selected) { opacity: .45; cursor: not-allowed; }

.season-response-field {
  display: grid;
  gap: .45rem;
  padding: 1rem clamp(1rem,2.5vw,1.6rem);
}
.season-response-field > span,
.season-schedule-builder label > span,
.season-player-plan-fields label > span {
  font-weight: 800;
  line-height: 1.3;
}
.season-response-field textarea,
.season-schedule-builder input,
.season-player-plan-fields input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fffdf5;
  color: var(--ink);
  padding: .7rem;
  font: inherit;
  line-height: 1.4;
}
.season-response-field textarea { resize: vertical; }
.season-response-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.season-response-pair > label:first-child { border-right: 1px solid var(--line); }

.season-schedule-builder {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border-bottom: 1px solid var(--line-strong);
}
.season-schedule-builder label {
  display: grid;
  gap: .4rem;
  padding: .9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-player-plans details {
  border-bottom: 1px solid var(--line);
  background: #f7f4eb;
}
.season-player-plans summary {
  min-height: 54px;
  padding: .8rem clamp(1rem,2.5vw,1.6rem);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.season-player-plans summary span {
  color: var(--ink-soft);
  font-size: .78rem;
}
.season-player-plan-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .8rem;
  padding: 0 clamp(1rem,2.5vw,1.6rem) 1rem;
}
.season-player-plan-fields label {
  display: grid;
  gap: .35rem;
}
.season-player-plan-fields label:last-child:nth-child(odd) { grid-column: 1/-1; }

.season-response-submit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem,2.5vw,1.6rem);
  border-top: 1px solid var(--line-strong);
  background: #dde2d7;
}
.season-response-submit span { color: var(--ink-soft); }
.season-response-engine input:disabled,
.season-response-engine textarea:disabled,
.season-response-engine button:disabled { opacity: .5; }

@media (max-width: 820px) {
  .season-response-engine > header,
  .season-response-pair {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .season-response-pair > label:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .season-player-plan-fields { grid-template-columns: 1fr; }
  .season-player-plan-fields label:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 620px) {
  .season-choose-two,
  .season-schedule-builder {
    grid-template-columns: 1fr;
  }
  .season-choose-two button,
  .season-schedule-builder label {
    border-right: 0;
  }
  .season-response-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .season-response-submit button { width: 100%; }
  .season-ranking li {
    grid-template-columns: 38px 1fr;
  }
  .season-ranking li > div { grid-column: 2; }
}


/* Pass 7 — Transfer / Coaching Blueprint */
.blueprint-gate {
  margin: 1.5rem 0;
  padding: clamp(1.2rem,3vw,2rem);
  border-top: 5px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: #eef0e8;
}
.blueprint-gate strong {
  display: block;
  margin: .35rem 0 .55rem;
  font-size: clamp(1.2rem,2.5vw,1.8rem);
}
.blueprint-gate p:last-child { max-width: 70ch; line-height: 1.5; }

.blueprint-experience {
  margin: 1.5rem 0 2.5rem;
  border-top: 7px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #f4efe4;
}
.blueprint-hero {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(1.2rem,3vw,2.2rem);
  border-bottom: 1px solid var(--line-strong);
}
.blueprint-hero h2 {
  margin: .3rem 0 0;
  max-width: 16ch;
  font-size: clamp(2rem,5vw,4.8rem);
  line-height: .92;
  letter-spacing: -.045em;
}
.blueprint-status {
  display: grid;
  gap: .3rem;
  justify-items: start;
  padding-left: 1rem;
  border-left: 4px solid var(--sun);
}
.blueprint-status strong { font-size: 1rem; }
.blueprint-status span,
.blueprint-status small { color: var(--ink-soft); line-height: 1.4; }
.blueprint-transfer-note,
.blueprint-brief {
  margin: 0;
  padding: 1rem clamp(1.2rem,3vw,2.2rem);
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.blueprint-brief {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 2rem;
}
.blueprint-brief p { margin: 0; }

.blueprint-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.blueprint-editor__section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: .35rem .8rem;
  padding: clamp(1rem,2.5vw,1.6rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.blueprint-editor__section:nth-child(2n) { border-right: 0; }
.blueprint-editor__number {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 900;
}
.blueprint-editor__label {
  font-size: 1.05rem;
  font-weight: 850;
  align-self: center;
}
.blueprint-editor textarea {
  grid-column: 2;
  width: 100%;
  resize: vertical;
  min-height: 145px;
  border: 1px solid var(--line-strong);
  background: #fffdf7;
  color: var(--ink);
  padding: .8rem;
  font: inherit;
  line-height: 1.5;
}
.blueprint-editor textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.blueprint-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1.2rem,3vw,2.2rem);
  background: #ddd4c2;
  border-top: 1px solid var(--line-strong);
}
.blueprint-actions > span { color: var(--ink-soft); }
.blueprint-actions--review { justify-content: flex-end; }
.blueprint-actions button:disabled { opacity: .45; cursor: not-allowed; }

.blueprint-text-preview {
  border-top: 1px solid var(--line);
  background: #ece5d7;
}
.blueprint-text-preview summary {
  min-height: var(--touch);
  padding: .8rem clamp(1.2rem,3vw,2.2rem);
  cursor: pointer;
  font-weight: 800;
}
.blueprint-text-preview pre {
  margin: 0;
  padding: 1rem clamp(1.2rem,3vw,2.2rem) 1.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 .86rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;
}

.blueprint-review {
  counter-reset: blueprint;
}
.blueprint-review__section {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: clamp(1.1rem,3vw,2rem) clamp(1.2rem,3vw,2.2rem);
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.blueprint-review__section > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}
.blueprint-review__section h3 {
  margin: .1rem 0 .6rem;
  font-size: clamp(1.2rem,2.5vw,1.8rem);
}
.blueprint-review__section p {
  margin: 0;
  max-width: 78ch;
  white-space: pre-wrap;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .blueprint-hero,
  .blueprint-brief {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .blueprint-status {
    padding-left: 0;
    padding-top: .8rem;
    border-left: 0;
    border-top: 4px solid var(--sun);
  }
  .blueprint-editor { grid-template-columns: 1fr; }
  .blueprint-editor__section,
  .blueprint-editor__section:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 620px) {
  .blueprint-review__section {
    grid-template-columns: 44px 1fr;
    gap: .7rem;
  }
  .blueprint-review__section > span {
    width: 38px;
    height: 38px;
  }
  .blueprint-actions,
  .blueprint-actions--review {
    align-items: stretch;
    flex-direction: column;
  }
  .blueprint-actions button { width: 100%; }
  .blueprint-editor__section {
    grid-template-columns: 40px 1fr;
  }
  .blueprint-editor__number {
    width: 36px;
    height: 36px;
  }
}

@media print {
  @page { margin: .6in; }
  body {
    background: white !important;
    color: black !important;
  }
  body * { visibility: hidden !important; }
  #blueprint-print-region,
  #blueprint-print-region * {
    visibility: visible !important;
  }
  #blueprint-print-region {
    position: absolute;
    inset: 0;
    width: 100%;
    background: white;
    color: black;
    border: 0;
  }
  #blueprint-print-region .blueprint-actions {
    display: none !important;
  }
  #blueprint-print-region .blueprint-transfer-note,
  #blueprint-print-region .blueprint-hero {
    visibility: visible !important;
  }
  .blueprint-review__section {
    border-bottom: 1px solid #bbb;
    padding: .25in 0;
    break-inside: avoid;
  }
  .blueprint-review__section > span {
    border-color: black;
  }
}


/* Pass 8 — Release-candidate corrective responses */
.rc-response-engine {
  margin: 1.5rem 0;
  border-top: 5px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: #f1eee5;
}
.rc-response-engine > header {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(280px,1.2fr);
  gap: 2rem;
  align-items: end;
  padding: 1.1rem clamp(1rem,2.5vw,1.6rem);
  border-bottom: 1px solid var(--line-strong);
}
.rc-response-engine > header h3 {
  margin: .25rem 0 0;
  font-size: clamp(1.5rem,3vw,2.5rem);
  line-height: 1;
}
.rc-response-engine > header > p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}
.rc-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rc-ranking li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .65rem clamp(1rem,2.5vw,1.6rem);
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}
.rc-ranking li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-weight: 900;
}
.rc-ranking li > div { display: flex; gap: .3rem; }
.rc-ranking button {
  min-width: var(--touch);
  min-height: var(--touch);
  border: 1px solid var(--line-strong);
  background: #fffaf0;
  cursor: pointer;
}
.rc-field {
  display: grid;
  gap: .45rem;
  padding: 1rem clamp(1rem,2.5vw,1.6rem);
}
.rc-field > span {
  font-weight: 800;
  line-height: 1.35;
}
.rc-field textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: #fffdf6;
  color: var(--ink);
  padding: .75rem;
  font: inherit;
  line-height: 1.45;
}
.rc-practice-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.rc-practice-builder .rc-field {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rc-practice-builder .rc-field:nth-child(2n) { border-right: 0; }
.rc-practice-builder .rc-field:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.rc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.rc-compare .rc-field:first-child { border-right: 1px solid var(--line); }
.rc-response-submit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem,2.5vw,1.6rem);
  border-top: 1px solid var(--line-strong);
  background: #ded7c7;
}
.rc-response-submit span { color: var(--ink-soft); }
.rc-response-engine button:disabled,
.rc-response-engine textarea:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 820px) {
  .rc-response-engine > header,
  .rc-practice-builder,
  .rc-compare {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .rc-practice-builder .rc-field,
  .rc-practice-builder .rc-field:nth-child(2n),
  .rc-compare .rc-field:first-child {
    border-right: 0;
  }
  .rc-practice-builder .rc-field:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 620px) {
  .rc-response-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .rc-response-submit button { width: 100%; }
  .rc-ranking li {
    grid-template-columns: 38px 1fr;
  }
  .rc-ranking li > div { grid-column: 2; }
}

/* Guided court reading: one authentic action at a time. */
.orientation-steps { padding-left: 1.35rem; display: grid; gap: .7rem; max-width: 72ch; line-height: 1.5; }
.orientation-steps strong { display: block; }
.season-start { margin: 1.5rem 0; padding: clamp(1rem, 3vw, 2rem); border-left: 7px solid var(--sun); background: #fffaf0; }
.season-start h2 { font-size: clamp(1.45rem, 3vw, 2.5rem); margin: .4rem 0; }
.season-start p:not(.eyebrow) { max-width: 66ch; line-height: 1.5; }
.season-start a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 850; text-underline-offset: .2em; }
.court-example { margin: 1.5rem 0 2rem; border: 2px solid var(--navy); background: #f6f1e7; }
.court-example__header { padding: clamp(1rem, 2.5vw, 1.8rem); }
.court-example__header h2 { font-size: clamp(1.9rem, 4vw, 3.5rem); margin: .25rem 0 .6rem; }
.court-example__header p:not(.eyebrow) { max-width: 76ch; line-height: 1.5; }
.court-example__source { font-size: .8rem; }
.court-example__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.court-example__steps button { min-height: 58px; padding: .5rem; border: 0; border-right: 1px solid var(--line); background: #e6e0d2; color: var(--ink); font: inherit; font-weight: 750; cursor: pointer; text-align: left; }
.court-example__steps button:last-child { border-right: 0; }
.court-example__steps button.is-current { background: var(--navy); color: white; }
.court-example__steps span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: .5rem; border: 1px solid currentColor; border-radius: 50%; }
.court-example__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); }
.court-example__body > div:first-child { min-width: 0; }
.court-example__svg { border: 0; }
.court-example__basket { font-size: 12px; font-weight: 900; fill: #473322; }
.court-example__path { fill: none; stroke-width: 5; vector-effect: non-scaling-stroke; }
.court-example__path--movement { stroke: var(--navy); }
.court-example__path--pass { stroke: #8c3b10; stroke-dasharray: 9 7; }
#example-movement-arrow path { fill: var(--navy); }
#example-pass-arrow path { fill: #8c3b10; }
.court-example__offense circle { fill: var(--navy); stroke: white; stroke-width: 3; }
.court-example__offense text { fill: white; font-weight: 900; font-size: 18px; }
.court-example__defender circle { fill: #fffaf0; stroke: #4c3222; stroke-width: 3; }
.court-example__defender text { fill: #4c3222; font-weight: 900; font-size: 15px; }
.court-example__ball { fill: #ef8b1a; stroke: #3d250f; stroke-width: 2; }
.court-example__legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .75rem 1rem; margin: 0; line-height: 1.35; font-size: .79rem; }
.court-example__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.court-example__key { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-size: 11px; }
.court-example__key--offense { background: var(--navy); color: white; }
.court-example__key--defense { background: #fffaf0; border: 2px solid #4c3222; }
.court-example__key--ball { background: #ef8b1a; border: 1px solid #3d250f; }
.court-example__key--pass, .court-example__key--movement { width: 30px; height: 0; border-radius: 0; border-top: 4px solid #8c3b10; }
.court-example__key--pass { border-top-style: dashed; }
.court-example__key--movement { border-top-color: var(--navy); }
.court-example__explanation { padding: clamp(1rem, 2.5vw, 1.8rem); border-left: 1px solid var(--line); background: #fffaf0; }
.court-example__explanation h3 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); margin: .4rem 0 1rem; }
.court-example__explanation p { line-height: 1.55; }
.court-example__nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.court-example__nav button { min-height: 44px; padding: .6rem 1rem; border: 2px solid var(--navy); background: white; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.court-example__nav button:disabled { opacity: .45; cursor: not-allowed; }
.whiteboard-example-note { max-width: 75ch; line-height: 1.5; }
@media (max-width: 820px) {
  .court-example__body { grid-template-columns: 1fr; }
  .court-example__explanation { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .court-example__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .court-example__steps button:nth-child(2) { border-right: 0; }
  .court-example__steps button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
