:root {
  --ink: #05080d;
  --ink-2: #0a111a;
  --panel: #0d1622;
  --chalk: #edf4f7;
  --muted: #8c9aa7;
  --line: rgba(210, 232, 241, .18);
  --ice: #79d7ff;
  --blue: #2768d7;
  --signal: #ff4b45;
  --topbar: 74px;
  color-scheme: dark;
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body { color: var(--chalk); overflow: hidden; }
button, a, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute !important;
  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; z-index: 9999; left: 12px; top: -80px;
  padding: 12px 18px; background: var(--chalk); color: var(--ink);
}
.skip-link:focus { top: 12px; }

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

/* Entry gate */
.entry {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  overflow: hidden; background: #010306;
  transition: opacity .42s ease, visibility .42s ease;
}
.entry[hidden] { display: none; }
.entry.is-leaving { opacity: 0; visibility: hidden; }
.entry__backdrop, .entry__shade, .entry__scan { position: absolute; inset: 0; }
.entry__backdrop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08) brightness(.52); }
.entry__shade {
  background:
    radial-gradient(circle at 50% 44%, transparent 0 12%, rgba(3, 7, 12, .22) 38%, rgba(2, 4, 8, .92) 100%),
    linear-gradient(180deg, rgba(1, 3, 6, .28), rgba(1, 3, 6, .6));
}
.entry__scan {
  opacity: .16;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.055) 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.entry__center { position: relative; z-index: 2; width: min(680px, 84vw); text-align: center; }
.entry__eyebrow {
  margin: 0 0 20px; color: rgba(229, 241, 247, .62);
  font-size: 10px; font-weight: 800; letter-spacing: .34em;
}
.entry__logo { width: min(560px, 80vw); margin: 0 auto; filter: drop-shadow(0 0 32px rgba(71, 157, 255, .2)); }
.entry__copy { margin: 24px 0 34px; color: rgba(237, 244, 247, .8); font-size: 14px; letter-spacing: .08em; }
.entry__button {
  width: min(260px, 76vw); min-height: 64px; border: 1px solid rgba(121,215,255,.48);
  padding: 11px 22px; cursor: pointer; background: rgba(4, 10, 18, .76);
  text-transform: uppercase; position: relative; overflow: hidden;
}
.entry__button::before {
  content: ""; position: absolute; inset: 0 100% 0 0; background: var(--blue);
  transition: inset .24s ease;
}
.entry__button:hover::before, .entry__button:focus-visible::before { inset-right: 0; }
.entry__button span, .entry__button b { position: relative; z-index: 1; display: block; }
.entry__button span { font-size: 17px; font-weight: 800; letter-spacing: .12em; }
.entry__button b { margin-top: 5px; color: var(--ice); font-size: 8px; letter-spacing: .28em; }
.entry__button:hover b, .entry__button:focus-visible b { color: #fff; }
.entry__note { margin: 17px 0 0; color: rgba(237,244,247,.42); font-size: 10px; letter-spacing: .08em; }
.entry__status {
  position: absolute; z-index: 2; top: 26px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; color: rgba(237,244,247,.44);
  font: 700 9px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .22em;
}
.entry__status span:last-child { color: var(--ice); }
.entry__edition {
  position: absolute; z-index: 2; bottom: 22px; right: 28px; margin: 0;
  color: rgba(237,244,247,.32); font: 700 8px/1 ui-monospace, Consolas, monospace; letter-spacing: .24em;
}

/* Fixed scoreboard shell */
.topbar {
  position: fixed; z-index: 100; inset: 0 0 auto 0; height: var(--topbar);
  display: grid; grid-template-columns: 198px 1fr auto; align-items: stretch;
  background: rgba(4, 8, 13, .96); border-bottom: 1px solid var(--line);
  transition: opacity .32s ease;
}
.is-gated .topbar, .is-gated .stage, .is-gated .mobile-mode { opacity: 0; pointer-events: none; }
.topbar__brand {
  border: 0; border-right: 1px solid var(--line); background: transparent; padding: 14px 24px; cursor: pointer;
}
.topbar__brand img { width: 150px; height: 44px; object-fit: contain; }
.mode-nav { display: flex; min-width: 0; }
.mode-nav button {
  position: relative; min-width: 112px; border: 0; border-right: 1px solid var(--line);
  padding: 0 22px; background: transparent; color: #7f8d98; cursor: pointer;
  font-size: 10px; font-weight: 900; letter-spacing: .15em;
}
.mode-nav button span { margin-right: 8px; color: #465563; font: 700 8px ui-monospace, Consolas, monospace; }
.mode-nav button::after { content: ""; position: absolute; left: 18px; right: 100%; bottom: -1px; height: 2px; background: var(--ice); transition: right .2s ease; }
.mode-nav button[aria-current="page"] { color: var(--chalk); }
.mode-nav button[aria-current="page"] span { color: var(--ice); }
.mode-nav button[aria-current="page"]::after { right: 18px; }
.topbar__tools { display: flex; align-items: stretch; }
.topbar__tools > * { border-left: 1px solid var(--line); }
.topbar__tools a {
  display: grid; place-items: center; padding: 0 22px; color: #9dacb8; text-decoration: none;
  font-size: 9px; font-weight: 900; letter-spacing: .14em;
}
.sound {
  border: 0; background: transparent; min-width: 132px; padding: 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  color: #8d9ba7; font-size: 9px; font-weight: 900; letter-spacing: .14em;
}
.sound i { display: flex; align-items: end; gap: 2px; height: 13px; }
.sound i b { display: block; width: 2px; height: 5px; background: currentColor; }
.sound i b:nth-child(2) { height: 9px; }
.sound i b:nth-child(3) { height: 13px; }
.sound.is-playing { color: var(--ice); }
.sound.is-playing i b { animation: meter .72s ease-in-out infinite alternate; }
.sound.is-playing i b:nth-child(2) { animation-delay: -.28s; }
.sound.is-playing i b:nth-child(3) { animation-delay: -.5s; }
@keyframes meter { to { height: 3px; } }

.stage { position: fixed; inset: var(--topbar) 0 0; overflow: hidden; transition: opacity .32s ease; }
.scene { position: absolute; inset: 0; min-height: 0; overflow: hidden; background: var(--ink); }
.scene[hidden] { display: none !important; }
.scene.is-active { animation: scene-in .3s ease both; }
@keyframes scene-in { from { opacity: 0; clip-path: inset(0 0 0 8%); } to { opacity: 1; clip-path: inset(0); } }
.scene-backdrop { position: absolute; inset: 0; }
.scene-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.scene-kicker { color: var(--ice); font: 800 10px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .2em; }

/* Opening */
.scene--opening { display: block; }
.scene--opening .scene-backdrop img { filter: saturate(.78) contrast(1.06) brightness(.72); }
.opening-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,7,12,.96) 0%, rgba(3,7,12,.73) 35%, rgba(3,7,12,.05) 69%), linear-gradient(0deg, rgba(3,7,12,.82), transparent 38%); }
.opening-copy { position: absolute; z-index: 2; left: clamp(32px, 7vw, 120px); top: 50%; width: min(670px, 46vw); transform: translateY(-50%); }
.opening-copy h2 { margin: 18px 0 24px; font-size: clamp(46px, 5.5vw, 88px); line-height: .98; letter-spacing: -.055em; }
.opening-copy h2 span { color: #8fa1af; font-size: .54em; font-weight: 540; letter-spacing: -.035em; }
.opening-copy h2 em { color: var(--ice); font-style: normal; }
.opening-copy > p:not(.scene-kicker) { width: min(540px, 100%); color: #b6c2ca; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.75; }
.opening-actions { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.opening-actions button {
  min-height: 54px; border: 0; padding: 0 24px; background: var(--chalk); color: var(--ink); cursor: pointer;
  font-weight: 900; letter-spacing: .04em;
}
.opening-actions button span { padding-left: 28px; }
.opening-actions a { color: #c2ccd2; text-decoration-color: rgba(194,204,210,.4); text-underline-offset: 6px; font-size: 13px; }
.opening-data {
  position: absolute; z-index: 2; right: clamp(22px, 4vw, 64px); bottom: 38px;
  display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); width: min(390px, 37vw);
  border-top: 1px solid rgba(255,255,255,.25); border-left: 1px solid rgba(255,255,255,.25);
}
.opening-data div { min-height: 72px; padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); background: rgba(4,9,15,.72); }
.opening-data span, .opening-data strong { display: block; }
.opening-data span { color: #728392; font: 800 8px ui-monospace, Consolas, monospace; letter-spacing: .18em; }
.opening-data strong { margin-top: 9px; font-size: 18px; }
.scroll-cue { position: absolute; left: 28px; bottom: 23px; margin: 0; color: #677782; font: 700 8px ui-monospace, Consolas, monospace; letter-spacing: .2em; transform: rotate(-90deg); transform-origin: left top; }
.scroll-cue i { display: inline-block; width: 44px; height: 1px; margin-left: 12px; vertical-align: middle; background: #677782; }

/* Roster */
.scene--roster { grid-template-columns: 48% 52%; grid-template-rows: minmax(0, 1fr) 90px; background: #091019; }
.scene--roster.is-active { display: grid; }
.roster-watermark { position: absolute; z-index: 0; top: 4%; left: 2%; color: rgba(124, 164, 187, .065); font-size: clamp(78px, 13vw, 220px); font-weight: 950; line-height: .8; letter-spacing: -.07em; white-space: nowrap; }
.roster-portrait { position: relative; z-index: 1; grid-row: 1; min-width: 0; overflow: hidden; background: #0b1520; }
.roster-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, #091019 100%), linear-gradient(0deg, rgba(9,16,25,.48), transparent 35%); }
.roster-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; filter: saturate(.8) contrast(1.05); transition: opacity .18s ease, transform .28s ease; }
.roster-portrait.is-switching img { opacity: .22; transform: scale(1.025); }
.roster-number { position: absolute; z-index: 2; left: 22px; bottom: 15px; color: rgba(237,244,247,.18); font-size: clamp(62px, 8vw, 126px); font-weight: 950; line-height: 1; }
.roster-copy { position: relative; z-index: 2; grid-column: 2; grid-row: 1; align-self: center; width: min(610px, 78%); padding-left: 6%; }
.roster-profile { margin: 28px 0 6px; color: #94a4af; font-size: 13px; }
.roster-copy h2 { margin: 0; font-size: clamp(56px, 7vw, 112px); line-height: 1; letter-spacing: -.075em; }
.roster-copy > strong { display: block; margin: 21px 0 16px; color: var(--ice); font-size: clamp(17px, 1.5vw, 24px); }
.roster-copy > p:not(.scene-kicker):not(.roster-profile) { margin: 0; max-width: 560px; color: #aab6be; font-size: 14px; line-height: 1.75; }
.roster-copy blockquote { margin: 24px 0 0; padding: 16px 0 16px 20px; border-left: 2px solid var(--ice); color: #e3ebef; font-size: 14px; line-height: 1.6; }
.roster-arrows { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.roster-arrows button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.roster-arrows span { position: relative; width: 100px; height: 2px; background: rgba(255,255,255,.14); }
.roster-arrows span i { display: block; width: 33.333%; height: 100%; background: var(--ice); transition: width .24s ease; }
.roster-rail { position: relative; z-index: 3; grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(9, minmax(92px, 1fr)); overflow-x: auto; border-top: 1px solid var(--line); background: #060b11; scrollbar-width: none; }
.roster-rail::-webkit-scrollbar { display: none; }
.roster-rail button { position: relative; min-width: 92px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #6f7d88; cursor: pointer; font-size: 12px; font-weight: 800; }
.roster-rail button span { display: block; margin-bottom: 7px; color: #40505d; font: 700 8px ui-monospace, Consolas, monospace; }
.roster-rail button::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--ice); transition: width .2s ease; }
.roster-rail button[aria-selected="true"] { color: var(--chalk); background: #0d1621; }
.roster-rail button[aria-selected="true"] span { color: var(--ice); }
.roster-rail button[aria-selected="true"]::before { width: 100%; }

/* League */
.scene--league { --club-accent: #2db8c6; grid-template-columns: minmax(210px, 19%) 39% 1fr; background: #071019; }
.scene--league.is-active { display: grid; }
.league-field { position: absolute; inset: 0; overflow: hidden; opacity: .34; pointer-events: none; }
.league-field::before { content: ""; position: absolute; width: min(54vw, 820px); aspect-ratio: 1; left: 35%; top: 50%; border: 1px solid color-mix(in srgb, var(--club-accent) 42%, transparent); transform: translate(-50%, -50%) rotate(45deg); }
.league-field::after { content: ""; position: absolute; width: min(45vw, 680px); aspect-ratio: 1; left: 35%; top: 77%; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: translate(-50%, -50%); }
.league-field i { position: absolute; left: 35%; top: 50%; width: 8px; height: 8px; border: 1px solid var(--club-accent); background: #071019; transform: translate(-50%, -50%) rotate(45deg); }
.club-list { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 42px 0 34px 34px; border-right: 1px solid var(--line); background: rgba(4,9,14,.74); }
.club-list .scene-kicker { margin: 0 26px 25px 0; }
.club-list button { position: relative; flex: 1; border: 0; border-top: 1px solid var(--line); padding: 8px 20px 8px 0; background: transparent; color: #6d7d88; text-align: left; cursor: pointer; }
.club-list button:last-child { border-bottom: 1px solid var(--line); }
.club-list button span { display: block; margin-bottom: 4px; color: #3e4f5c; font: 700 8px ui-monospace, Consolas, monospace; }
.club-list button b { font-size: clamp(13px, 1vw, 16px); }
.club-list button::after { content: "→"; position: absolute; right: 18px; top: 50%; color: transparent; transform: translateY(-50%); }
.club-list button[aria-selected="true"] { color: #fff; }
.club-list button[aria-selected="true"] span, .club-list button[aria-selected="true"]::after { color: var(--club-accent); }
.club-mark { position: relative; z-index: 1; display: grid; place-items: center; overflow: hidden; }
.club-mark::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border: 1px solid var(--club-accent); border-radius: 50%; box-shadow: 0 0 70px color-mix(in srgb, var(--club-accent) 16%, transparent); }
.club-mark img { position: relative; z-index: 2; width: min(62%, 420px); max-height: 62%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0,0,0,.45)); transition: transform .25s ease, opacity .18s ease; }
.club-mark.is-switching img { opacity: .2; transform: scale(.9); }
.club-mark span { position: absolute; z-index: 0; left: 3%; bottom: -7%; color: color-mix(in srgb, var(--club-accent) 14%, transparent); font-size: clamp(150px, 22vw, 360px); font-weight: 950; line-height: 1; }
.club-copy { position: relative; z-index: 2; align-self: center; width: min(640px, 80%); padding: 22px 0 22px 7%; }
.club-copy > p:first-child { margin: 0 0 14px; color: #778996; font: 700 10px ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.club-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 82px); line-height: .98; letter-spacing: -.06em; }
.club-copy > strong { display: inline-block; margin: 19px 0 24px; padding: 7px 10px; background: var(--club-accent); color: #061019; font-size: 11px; letter-spacing: .11em; }
.club-copy > p:not(:first-child) { color: #a7b3bb; line-height: 1.68; font-size: 14px; }
.club-copy #club-headline { color: var(--chalk); font-size: 18px; font-weight: 800; }
.club-copy dl { margin: 26px 0 0; border-top: 1px solid var(--line); }
.club-copy dl div { display: grid; grid-template-columns: 105px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.club-copy dt { color: var(--club-accent); font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: .14em; }
.club-copy dd { margin: 0; color: #c1cbd1; font-size: 12px; }

/* At bat */
.scene--atbat { background: #0b0e10; }
.atbat-image, .atbat-overlay { position: absolute; inset: 0; }
.atbat-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78) contrast(1.06); transition: opacity .22s ease, transform .34s ease; }
.atbat-image.is-switching img { opacity: .2; transform: scale(1.015); }
.atbat-overlay { background: linear-gradient(90deg, rgba(4,8,12,.88), rgba(4,8,12,.14) 52%, rgba(4,8,12,.38)), linear-gradient(0deg, rgba(4,8,12,.88), transparent 55%); }
.atbat-title { position: absolute; z-index: 2; top: 8%; left: 6%; }
.atbat-title h2 { margin: 14px 0 0; font-size: clamp(42px, 5.6vw, 90px); line-height: .98; letter-spacing: -.055em; }
.score-console { position: absolute; z-index: 3; left: 6%; bottom: 11%; width: min(460px, 38vw); border: 1px solid rgba(183,214,227,.32); background: rgba(4,10,16,.92); }
.console-head { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); color: #718492; font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: .15em; }
.console-head b { color: var(--signal); }
.score-console > p, .score-console > strong, .score-console > small { display: block; margin-left: 18px; margin-right: 18px; }
.score-console > p:first-of-type { margin-top: 18px; margin-bottom: 8px; color: #8799a5; font-size: 11px; }
.score-console > strong { color: var(--chalk); font-size: clamp(24px, 2.5vw, 38px); letter-spacing: -.03em; }
#atbat-state { margin-top: 11px; margin-bottom: 0; color: var(--ice); font-size: 12px; font-weight: 800; }
#atbat-copy { margin-top: 15px; color: #b7c2c9; font-size: 13px; line-height: 1.6; }
.score-console > small { margin-top: 17px; margin-bottom: 17px; color: #667883; font-size: 9px; }
.atbat-steps { position: absolute; z-index: 3; top: 50%; right: 3%; width: 180px; transform: translateY(-50%); border-top: 1px solid rgba(255,255,255,.28); }
.atbat-steps button { position: relative; display: block; width: 100%; min-height: 82px; border: 0; border-bottom: 1px solid rgba(255,255,255,.28); padding: 0 14px 0 48px; background: rgba(4,8,12,.42); color: #72818c; text-align: left; cursor: pointer; }
.atbat-steps button span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 700 9px ui-monospace, Consolas, monospace; }
.atbat-steps button b { font-size: 14px; }
.atbat-steps button::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--signal); transition: height .2s ease; }
.atbat-steps button[aria-selected="true"] { color: #fff; background: rgba(7,15,22,.86); }
.atbat-steps button[aria-selected="true"] span { color: var(--signal); }
.atbat-steps button[aria-selected="true"]::before { height: 100%; }

/* Player log */
.scene--log { background: #04080e; }
.scene--log .scene-backdrop img { filter: saturate(.58) contrast(1.08) brightness(.48); }
.log-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,7,12,.95) 0%, rgba(3,7,12,.52) 48%, rgba(3,7,12,.7) 100%), linear-gradient(0deg, #03070c 0%, transparent 48%); }
.log-intro { position: absolute; z-index: 2; left: 6%; top: 12%; width: min(600px, 42vw); }
.log-intro h2 { margin: 14px 0 18px; font-size: clamp(42px, 5.5vw, 88px); line-height: .98; letter-spacing: -.06em; }
.log-intro > p:not(.scene-kicker) { color: #9eabb4; font-size: 12px; }
.log-toggle { display: inline-flex; margin-top: 20px; border: 1px solid rgba(255,255,255,.25); }
.log-toggle button { min-width: 95px; height: 42px; border: 0; background: transparent; color: #84939d; cursor: pointer; font-size: 12px; font-weight: 800; }
.log-toggle button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }
.stat-line { position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 124px; display: grid; grid-template-columns: repeat(2, minmax(180px, 1.55fr)) repeat(5, minmax(92px, .75fr)); border-top: 1px solid rgba(255,255,255,.34); border-left: 1px solid rgba(255,255,255,.34); background: rgba(4,9,15,.78); }
.stat-line > div { min-height: 118px; padding: 16px; border-right: 1px solid rgba(255,255,255,.34); border-bottom: 1px solid rgba(255,255,255,.34); }
.stat-line span { display: block; color: #70818d; font-size: 10px; font-weight: 800; }
.stat-line strong { display: block; margin-top: 15px; font-size: 34px; line-height: 1; }
.stat-line__primary strong { display: inline-block; margin-top: 8px; color: var(--ice); font-size: clamp(48px, 5vw, 76px); }
.stat-line__primary i { margin-left: 10px; color: #7e909b; font: 800 8px ui-monospace, Consolas, monospace; }
.final-links { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 86px; display: grid; grid-template-columns: 1fr 1fr; background: #05090e; border-top: 1px solid var(--line); }
.final-links > * { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; min-width: 0; padding: 0 6%; border-right: 1px solid var(--line); text-decoration: none; }
.final-links small { color: #60717d; font: 800 8px ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.final-links strong { margin-top: 6px; font-size: 15px; }
.final-links span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--ice); font-size: 21px; }
.final-links div { color: #697984; }

.mobile-mode { display: none; }

@media (max-width: 1120px) {
  .topbar { grid-template-columns: 170px 1fr auto; }
  .topbar__brand { padding-inline: 16px; }
  .mode-nav button { min-width: 88px; padding-inline: 12px; }
  .mode-nav button span { display: none; }
  .topbar__tools a { display: none; }
  .opening-data { width: 320px; }
  .scene--league { grid-template-columns: 190px 36% 1fr; }
  .club-list { padding-left: 22px; }
  .club-copy { width: 88%; }
  .stat-line { grid-template-columns: repeat(2, 1.4fr) repeat(5, .65fr); }
}

@media (max-width: 760px) {
  :root { --topbar: 54px; }
  body { min-height: 100dvh; }
  .entry__status { top: max(16px, env(safe-area-inset-top)); left: 18px; right: 18px; }
  .entry__status span:nth-child(2) { display: none; }
  .entry__center { width: 88vw; }
  .entry__eyebrow { margin-bottom: 15px; font-size: 8px; letter-spacing: .23em; }
  .entry__copy { margin: 18px 0 28px; font-size: 12px; }
  .entry__button { min-height: 58px; }
  .entry__edition { right: 18px; bottom: calc(16px + env(safe-area-inset-bottom)); }

  .topbar { height: var(--topbar); grid-template-columns: 1fr auto; padding-top: env(safe-area-inset-top); }
  .topbar__brand { width: 142px; border-right: 0; padding: 6px 12px; }
  .topbar__brand img { width: 118px; height: 40px; }
  .mode-nav { display: none; }
  .topbar__tools a { display: none; }
  .sound { min-width: 118px; padding: 0 12px; border-left: 1px solid var(--line); }
  .stage { inset: calc(var(--topbar) + env(safe-area-inset-top)) 0 calc(62px + env(safe-area-inset-bottom)); }

  .mobile-mode {
    position: fixed; z-index: 120; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: #050a10; border-top: 1px solid var(--line);
  }
  .mobile-mode button { border: 0; border-right: 1px solid var(--line); background: transparent; color: #667681; cursor: pointer; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
  .mobile-mode button span { display: block; margin-bottom: 5px; color: #374854; font: 700 7px ui-monospace, Consolas, monospace; }
  .mobile-mode button[aria-current="page"] { color: #fff; background: #0c151f; }
  .mobile-mode button[aria-current="page"] span { color: var(--ice); }

  .scene-kicker { font-size: 8px; letter-spacing: .15em; }
  .opening-vignette { background: linear-gradient(0deg, rgba(3,7,12,.98) 0%, rgba(3,7,12,.55) 54%, rgba(3,7,12,.22) 100%); }
  .scene--opening .scene-backdrop img { object-position: center; }
  .opening-copy { left: 22px; right: 22px; top: auto; bottom: 138px; width: auto; transform: none; }
  .opening-copy h2 { margin: 12px 0 16px; font-size: clamp(42px, 13vw, 62px); }
  .opening-copy > p:not(.scene-kicker) { font-size: 12px; line-height: 1.6; }
  .opening-actions { gap: 18px; margin-top: 22px; }
  .opening-actions button { min-height: 48px; padding-inline: 17px; font-size: 12px; }
  .opening-actions button span { padding-left: 14px; }
  .opening-actions a { font-size: 11px; }
  .opening-data { left: 0; right: 0; bottom: 0; width: 100%; grid-template-columns: repeat(4, 1fr); border-left: 0; }
  .opening-data div { min-height: 72px; padding: 12px 10px; }
  .opening-data span { font-size: 6px; letter-spacing: .1em; }
  .opening-data strong { margin-top: 8px; font-size: 12px; }
  .scroll-cue { display: none; }

  .scene--roster { grid-template-columns: 1fr; grid-template-rows: 45% minmax(0, 1fr) 58px; }
  .roster-watermark { top: 2%; left: 3%; font-size: 66px; }
  .roster-portrait { grid-column: 1; grid-row: 1; }
  .roster-portrait::after { background: linear-gradient(0deg, #091019 0%, transparent 42%); }
  .roster-portrait img { object-position: center 30%; }
  .roster-number { left: 14px; bottom: -2px; font-size: 70px; }
  .roster-copy { grid-column: 1; grid-row: 2; align-self: stretch; width: auto; min-height: 0; padding: 15px 20px 18px; overflow-y: auto; }
  .roster-copy .scene-kicker { margin: 0; }
  .roster-profile { margin: 8px 0 4px; font-size: 10px; }
  .roster-copy h2 { font-size: 44px; }
  .roster-copy > strong { margin: 9px 0 7px; font-size: 14px; }
  .roster-copy > p:not(.scene-kicker):not(.roster-profile) { font-size: 11px; line-height: 1.55; }
  .roster-copy blockquote { margin: 10px 0 0; padding: 8px 0 8px 12px; font-size: 11px; }
  .roster-arrows { position: absolute; right: 18px; top: 21px; margin: 0; gap: 7px; }
  .roster-arrows button { width: 34px; height: 34px; }
  .roster-arrows span { display: none; }
  .roster-rail { grid-column: 1; grid-row: 3; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86px; }
  .roster-rail button { min-width: 86px; font-size: 10px; }
  .roster-rail button span { margin-bottom: 3px; font-size: 7px; }

  .scene--league { grid-template-columns: 1fr; grid-template-rows: 64px 36% minmax(0, 1fr); }
  .league-field::before { width: 73vw; left: 50%; top: 36%; }
  .league-field::after { width: 90vw; left: 50%; top: 55%; }
  .club-list { grid-row: 1; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .club-list::-webkit-scrollbar { display: none; }
  .club-list .scene-kicker { display: none; }
  .club-list button { flex: 0 0 94px; border-top: 0; border-right: 1px solid var(--line); border-bottom: 0 !important; padding: 8px 10px; text-align: center; }
  .club-list button span { margin-bottom: 5px; }
  .club-list button b { font-size: 10px; }
  .club-list button::after { display: none; }
  .club-mark { grid-row: 2; }
  .club-mark::before { width: 46%; }
  .club-mark img { width: 43%; max-height: 76%; }
  .club-mark span { left: 3%; bottom: -12%; font-size: 138px; }
  .club-copy { grid-row: 3; align-self: stretch; width: auto; min-height: 0; padding: 17px 20px 24px; overflow-y: auto; background: rgba(6,13,20,.94); }
  .club-copy > p:first-child { margin-bottom: 8px; font-size: 8px; }
  .club-copy h2 { font-size: 38px; }
  .club-copy > strong { margin: 10px 0 11px; padding: 5px 7px; font-size: 9px; }
  .club-copy #club-headline { margin: 0 0 8px; font-size: 14px; }
  .club-copy > p:not(:first-child) { font-size: 11px; line-height: 1.5; }
  .club-copy dl { margin-top: 13px; }
  .club-copy dl div { grid-template-columns: 83px 1fr; gap: 10px; padding: 8px 0; }
  .club-copy dt { font-size: 7px; }
  .club-copy dd { font-size: 10px; }

  .atbat-image img { object-position: 56% center; }
  .atbat-overlay { background: linear-gradient(0deg, rgba(4,8,12,.98) 0%, rgba(4,8,12,.65) 46%, rgba(4,8,12,.15) 100%); }
  .atbat-title { top: 6%; left: 20px; }
  .atbat-title h2 { margin-top: 9px; font-size: 42px; }
  .score-console { left: 18px; right: 18px; bottom: 70px; width: auto; }
  .console-head { padding: 8px 11px; font-size: 7px; }
  .score-console > p, .score-console > strong, .score-console > small { margin-left: 13px; margin-right: 13px; }
  .score-console > p:first-of-type { margin-top: 12px; margin-bottom: 4px; font-size: 9px; }
  .score-console > strong { font-size: 23px; }
  #atbat-state { margin-top: 6px; font-size: 10px; }
  #atbat-copy { margin-top: 8px; margin-bottom: 0; font-size: 10px; }
  .score-console > small { margin-top: 9px; margin-bottom: 10px; font-size: 7px; }
  .atbat-steps { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 55px; transform: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top-color: var(--line); }
  .atbat-steps button { min-height: 55px; padding: 0 8px 0 29px; border-right: 1px solid var(--line); border-bottom: 0; }
  .atbat-steps button span { left: 9px; font-size: 7px; }
  .atbat-steps button b { font-size: 10px; }
  .atbat-steps button::before { left: 0; top: auto; bottom: 0; width: 0; height: 2px; transition: width .2s ease; }
  .atbat-steps button[aria-selected="true"]::before { width: 100%; height: 2px; }

  .scene--log .scene-backdrop img { object-position: 64% center; }
  .log-shade { background: linear-gradient(0deg, rgba(3,7,12,.98) 0%, rgba(3,7,12,.76) 61%, rgba(3,7,12,.38) 100%); }
  .log-intro { left: 20px; right: 20px; top: 6%; width: auto; }
  .log-intro h2 { margin: 9px 0 10px; font-size: 42px; }
  .log-intro > p:not(.scene-kicker) { font-size: 9px; }
  .log-toggle { margin-top: 12px; }
  .log-toggle button { min-width: 78px; height: 36px; font-size: 10px; }
  .stat-line { left: 18px; right: 18px; bottom: 87px; grid-template-columns: repeat(10, 1fr); }
  .stat-line > div { min-height: 52px; padding: 8px; }
  .stat-line__primary { grid-column: span 5; min-height: 76px !important; }
  .stat-line > div:not(.stat-line__primary) { grid-column: span 2; }
  .stat-line span { font-size: 7px; }
  .stat-line strong { margin-top: 8px; font-size: 17px; }
  .stat-line__primary strong { margin-top: 3px; font-size: 38px; }
  .stat-line__primary i { margin-left: 4px; font-size: 6px; }
  .final-links { height: 72px; }
  .final-links > * { padding-inline: 14px; }
  .final-links small { font-size: 6px; }
  .final-links strong { font-size: 11px; }
  .final-links span { font-size: 16px; }
}

@media (max-height: 650px) and (max-width: 760px) {
  .opening-copy { bottom: 112px; }
  .opening-copy h2 { font-size: 38px; }
  .opening-copy > p:not(.scene-kicker) { display: none; }
  .opening-actions { margin-top: 14px; }
  .opening-data div { min-height: 58px; }
  .scene--roster { grid-template-rows: 40% minmax(0, 1fr) 52px; }
  .roster-copy blockquote { display: none; }
  .scene--league { grid-template-rows: 54px 31% minmax(0, 1fr); }
  .club-copy #club-bio { display: none; }
  .atbat-title h2 { font-size: 34px; }
  .score-console { bottom: 58px; }
  .log-intro h2 { font-size: 34px; }
  .stat-line { bottom: 74px; }
}

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