/* Modern Pokémon Manager — landing site. Dark stadium theme built on the game's own palette (src/ui/styles.css). */
:root {
  color-scheme: dark;
  --bg: #120e19;
  --bg-2: #17121f;
  --panel: #2a2236;
  --panel-2: #342a43;
  --line: #57466d;
  --row-line: #3a2f4a;
  --text: #f8f8f8;
  --muted: #c4b7d2;
  --dim: #9d8fb0;
  --accent: #ff9a72;
  --red: #dd5748;
  --red-2: #c0473d;
  --red-hi: #f08068;
  --red-lo: #7a2a2c;
  --gold: #ffd84a;
  --ink: #0d0a12;
  --plum: #3a1424;
  --led: #ffc95a;
  --chalk: #e8f0d8;
  --pitch-a: #4a9a45;
  --pitch-b: #57ab50;
  --flood: #fff3a0;
  --paper: #f4ecd9;
  --paper-2: #e9dcc0;
  --paper-ink: #1f1726;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -0.005em;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { word-break: normal; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffbfa5; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: #ffffff14; padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

/* Language switch: everything bilingual lives in .ko / .en pairs. */
html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ───────── Top bar (the game's red-ruled header) ───────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 14, 25, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red-2);
}
.topbar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { image-rendering: pixelated; }
.brand-txt {
  font-weight: 900; font-size: 22px; letter-spacing: -0.02em; color: #fff;
  text-shadow: 2px 0 0 var(--red), -2px 0 0 var(--red), 0 2px 0 var(--red), 0 -2px 0 var(--red), 2px 2px 0 var(--red), -2px -2px 0 var(--red), 2px -2px 0 var(--red), -2px 2px 0 var(--red), 3px 4px 0 var(--plum);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 4px; }
.nav a:hover { color: #fff; background: #ffffff10; }
.lang { display: flex; flex: none; border: 2px solid var(--ink); border-radius: 5px; overflow: hidden; background: var(--panel); }
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: transparent; border: 0;
  padding: 5px 11px; cursor: pointer; min-height: 32px;
}
.lang button + button { border-left: 2px solid var(--ink); }
.lang button[aria-pressed="true"] { background: var(--red-2); color: #fff; box-shadow: inset 0 2px 0 var(--red-hi), inset 0 -2px 0 var(--red-lo); }
.lang button:not([aria-pressed="true"]):hover { color: #fff; background: #ffffff12; }

/* ───────── Hero: night match, floodlights, pitch ───────── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 56px; }
.sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 50% 62%, #ff9a7222, transparent 70%),
    linear-gradient(180deg, #0a0812 0%, #15102a 34%, #221a40 58%, #1a1430 70%, #120e19 100%);
}
.stands {
  position: absolute; left: 0; right: 0; top: 54%; height: 110px;
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, #ffe9a066 22px 25px, transparent 25px 46px) 0 26px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 30px, #ffe9a044 30px 33px, transparent 33px 58px) 0 52px / 100% 3px no-repeat,
    linear-gradient(180deg, #2a2458 0 18px, #221d4a 18px 70px, #19163a 70px);
  clip-path: polygon(0 30%, 18% 30%, 18% 12%, 40% 12%, 40% 0, 60% 0, 60% 12%, 82% 12%, 82% 30%, 100% 30%, 100% 100%, 0 100%);
}
.tower { position: absolute; top: 9%; width: 12px; height: calc(45% + 20px); background: linear-gradient(90deg, #2c2650, #3b3468 50%, #2c2650); }
.tower i {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 76px; height: 34px;
  background: #1e1a3c; border: 3px solid #0b0916; border-radius: 3px;
  box-shadow: 0 0 40px 10px #fff3a055, 0 0 120px 40px #fff3a022;
}
.tower i::before {
  content: ""; position: absolute; inset: 4px;
  background: radial-gradient(circle, var(--flood) 0 45%, transparent 50%) 0 0 / 14px 13px;
}
.tower-l { left: 7%; }
.tower-r { right: 7%; }
.beam {
  position: absolute; top: calc(9% - 10px); width: 70%; height: 92%; opacity: .5; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(180deg, #fff3a050, #fff3a010 70%, transparent);
}
.beam-l { left: calc(7% + 6px); clip-path: polygon(0 0, 3% 0, 90% 100%, 40% 100%); transform-origin: 0 0; }
.beam-r { right: calc(7% + 6px); clip-path: polygon(97% 0, 100% 0, 60% 100%, 10% 100%); }
.pitch {
  position: absolute; left: 0; right: 0; bottom: 0; top: 66%; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--pitch-a) 0 96px, var(--pitch-b) 96px 192px);
  background-position: 50% 0;
}
.pitch::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #2f6a30; box-shadow: 0 4px 0 var(--chalk); }
.pitch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #120e19 100%); }
.pitch-lines {
  position: absolute; left: 50%; top: 8px; width: 360px; height: 140px; transform: translateX(-50%);
  border: 4px solid #e8f0d8cc; border-top: 0; border-radius: 0 0 180px 180px / 0 0 140px 140px;
}
.pitch-lines::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -40%; width: 4px; background: #e8f0d8cc; transform: translateX(-50%); }

.hero-in { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.kicker {
  display: inline-block; margin: 0 0 22px; padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--chalk); background: #ffffff0f; border: 1px solid #ffffff22; border-radius: 999px;
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 22px; }
.logo-emblem { width: 60px; height: 60px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 #0008); animation: bob 2.4s ease-in-out infinite; }
.logo-main {
  font-weight: 900; font-size: clamp(30px, 6.6vw, 66px); line-height: 1.24; color: #fff; letter-spacing: -0.02em;
  --o: 4px;
  text-shadow:
    var(--o) 0 0 var(--red), calc(var(--o) * -1) 0 0 var(--red), 0 var(--o) 0 var(--red), 0 calc(var(--o) * -1) 0 var(--red),
    var(--o) var(--o) 0 var(--red), calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--red), var(--o) calc(var(--o) * -1) 0 var(--red), calc(var(--o) * -1) var(--o) 0 var(--red),
    calc(var(--o) * 2) calc(var(--o) * 2) 0 var(--plum), var(--o) calc(var(--o) * 2) 0 var(--plum), calc(var(--o) * 2) var(--o) 0 var(--plum);
  padding: 0 8px;
}
.logo-sub {
  font-weight: 800; font-size: clamp(13px, 2.1vw, 21px); letter-spacing: .14em; color: var(--gold);
  text-shadow: 2px 0 0 var(--plum), -2px 0 0 var(--plum), 0 2px 0 var(--plum), 0 -2px 0 var(--plum), 2px 2px 0 var(--plum), -2px -2px 0 var(--plum), 2px -2px 0 var(--plum), -2px 2px 0 var(--plum), 3px 4px 0 #3a142488;
}
html[data-lang="en"] .logo-sub { letter-spacing: .08em; }
.pitchline { max-width: 640px; font-size: clamp(16px, 2vw, 19px); color: #e9e2f2; margin: 0 0 26px; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none; color: #fff;
  padding: 15px 24px 16px; min-height: 52px; border: 2px solid var(--ink); border-radius: 5px; cursor: pointer;
  background: #4b3d5f; box-shadow: inset 0 2px 0 #74608c, inset 0 -3px 0 #2c2238, 0 4px 0 #0009;
  transition: transform .06s, filter .12s;
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 #74608c, inset 0 -3px 0 #2c2238, 0 2px 0 #0009; }
.btn-pri { background: var(--red-2); box-shadow: inset 0 2px 0 var(--red-hi), inset 0 -3px 0 var(--red-lo), 0 4px 0 #0009; }
.btn-pri:active { box-shadow: inset 0 2px 0 var(--red-hi), inset 0 -3px 0 var(--red-lo), 0 2px 0 #0009; }
.btn-wide { width: 100%; margin: 4px 0 18px; }

.version-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 40px; font-variant-numeric: tabular-nums; }
.version-chip a { color: var(--muted); }
.version-chip b { color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6b6380; flex: none; }
.version-chip.ok .dot { background: #63d97a; box-shadow: 0 0 8px #63d97a; }

/* Jumbotron frame — the battle screen hung over the pitch */
.jumbotron { margin: 0; width: 100%; max-width: 1000px; background: var(--ink); padding: 8px; border-radius: 6px; box-shadow: 0 0 0 2px #2b2347, 0 24px 60px #000a, 0 0 80px #fff3a01a; }
.jumbo-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 8px; font-weight: 800; font-size: 12px; letter-spacing: .18em; color: var(--led); text-shadow: 0 0 8px #ffc95a88; }
.jumbo-score { letter-spacing: .12em; }
.jumbo-score b { color: #fff; margin: 0 6px; text-shadow: 0 0 8px #fff8; }
.jumbotron img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 2px var(--red); }

.scoreboard {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; max-width: 760px; margin: 28px 0 0;
  padding: 6px; background: var(--ink); border-radius: 6px; box-shadow: 0 0 0 2px #2b2347, 0 10px 30px #0008;
}
.scoreboard > div { background: #1a1428; padding: 10px 6px 12px; border-radius: 3px; display: flex; flex-direction: column-reverse; align-items: center; }
.scoreboard dt { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.scoreboard dd {
  margin: 0; font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--led);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 12px #ffc95a77;
}
.scoreboard small { font-size: .55em; margin: 0 2px; color: #ffe2a0; }

/* ───────── Section heads ───────── */
.sec-head { margin: 0 0 56px; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .24em; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: var(--chalk); border-radius: 1px; }
.sec-head h2 { font-size: clamp(27px, 4.2vw, 42px); font-weight: 850; }
.lede { margin: 18px 0 0; font-size: 18px; color: var(--muted); }

/* ───────── The game: numbered chapters ───────── */
.game { padding: 104px 0 40px; background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 30%, var(--bg-2) 100%); }
.chapter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin: 0 0 112px; }
.chapter.flip .ch-text { order: 2; }
.chapter.flip .shot { order: 1; }
.ch-text .ch-no {
  margin: 0 0 6px; font-weight: 900; font-size: 76px; line-height: .9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px var(--red); font-variant-numeric: tabular-nums;
}
.ch-text h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin: 0 0 16px; }
.ch-text p { color: #e4dcee; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--pitch-b); box-shadow: 2px 2px 0 #1f4a22; }

.shot { margin: 0; background: var(--panel); padding: 0; border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--red), 0 10px 0 #0007, 0 24px 50px #0007; overflow: hidden; }
.shot img { width: 100%; border: 4px solid transparent; border-radius: 4px; }
.shot .zoom { display: block; cursor: zoom-in; }
.shot .zoom:hover img { filter: brightness(1.08); }

.stat-defs { margin: 0; display: grid; gap: 10px; }
.stat-defs > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 12px 14px; background: var(--panel); border-left: 4px solid var(--red); border-radius: 3px; }
.stat-defs dt { font-weight: 900; font-size: 18px; color: #fff; line-height: 1.3; }
.stat-defs dt small { display: block; font-size: 12px; color: var(--dim); font-weight: 700; }
.stat-defs dd { margin: 0; color: var(--muted); font-size: 15px; }

.ch-side { display: grid; gap: 18px; min-width: 0; }
.league-board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: #1a1428; border: 1px solid var(--row-line); border-radius: 4px; }
.pyramid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pyramid li {
  --w: 100%; width: var(--w); margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--row-line); border-radius: 3px; padding: 5px 10px; font-size: 14px; font-weight: 600; color: #e6deef;
}
.pyramid li:nth-child(1) { --w: 50%; background: linear-gradient(90deg, #4a3a14, #3a2f1a); border-color: #7a6424; color: #fff2c4; }
.pyramid li:nth-child(2) { --w: 60%; }
.pyramid li:nth-child(3) { --w: 70%; }
.pyramid li:nth-child(4) { --w: 80%; }
.pyramid li:nth-child(5) { --w: 90%; }
.pyramid li b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; background: var(--ink); color: var(--led); font-size: 13px; font-variant-numeric: tabular-nums; }
.pyramid li.you { background: #3d1f2a; border-color: var(--red); }
.pyramid li em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--red-2); padding: 1px 8px; border-radius: 2px; }
.cups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cups li { background: var(--panel); border-radius: 3px; border-left: 4px solid; padding: 5px 10px 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); display: flex; flex-direction: column; }
.cups li b { font-size: 15px; color: #fff; }
.cup-red { border-color: var(--red) !important; }
.cup-oak { border-color: #b8823e !important; }
.cup-ketchum { border-color: var(--gold) !important; }
.cup-next { border-color: #6cb4ff !important; }

/* ───────── Download: tickets on the pitch ───────── */
.gate {
  position: relative; padding: 104px 0 96px;
  background:
    linear-gradient(180deg, var(--bg-2) 0, transparent 120px, transparent calc(100% - 120px), var(--bg) 100%),
    repeating-linear-gradient(90deg, #1b3a21 0 110px, #204528 110px 220px);
  background-position: 0 0, 50% 0;
}
.gate .sec-head h2, .gate .eyebrow { text-shadow: 0 2px 0 #0007; }
.gate .eyebrow { color: var(--gold); }
.tickets { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 70px; color: var(--paper-ink);
  background: var(--paper); border-radius: 8px; box-shadow: 0 6px 0 #00000055, 0 20px 40px #0007;
}
.t-main { padding: 26px 26px 22px; min-width: 0; }
.t-gate { margin: 0 0 6px; font-weight: 900; font-size: 12px; letter-spacing: .22em; color: var(--red-2); }
.ticket h3 { font-size: 24px; font-weight: 850; margin: 0 0 6px; }
.t-meta { font-size: 14px; color: #5b4d63; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.t-meta b { color: var(--paper-ink); }
.ticket a:not(.btn):not(.file) { color: #a3302a; }
.t-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0;
  border-left: 3px dashed #b9a98a; background: var(--paper-2); border-radius: 0 8px 8px 0;
}
.t-stub::before, .t-stub::after { content: ""; position: absolute; left: -13px; width: 22px; height: 22px; border-radius: 50%; background: #1d3f25; }
.t-stub::before { top: -11px; }
.t-stub::after { bottom: -11px; }
.t-stub span { writing-mode: vertical-rl; font-weight: 900; font-size: 13px; letter-spacing: .3em; color: #7d6c55; }
.t-stub b { font-size: 34px; font-weight: 900; color: var(--red-2); line-height: 1; }

.files { display: grid; gap: 10px; margin: 0 0 18px; }
.file {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name size" "desc desc"; gap: 4px 12px;
  padding: 14px 16px; text-decoration: none; color: var(--paper-ink);
  background: #fffaf0; border: 2px solid var(--paper-ink); border-radius: 5px; box-shadow: 0 3px 0 var(--paper-ink);
  transition: transform .06s, background .12s;
}
.file:hover { background: #fff; color: var(--paper-ink); }
.file:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--paper-ink); }
.f-name { grid-area: name; font-weight: 850; font-size: 17px; }
.f-name code { background: #1f17260f; color: #6a2a2a; font-size: 13px; margin-left: 4px; }
.f-desc { grid-area: desc; font-size: 14px; color: #5b4d63; line-height: 1.5; }
.f-size { grid-area: size; align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #fff; background: var(--red-2); padding: 4px 10px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-size::before { content: ""; width: 10px; height: 10px; background: currentColor; clip-path: polygon(35% 0, 65% 0, 65% 45%, 100% 45%, 50% 100%, 0 45%, 35% 45%); }
.f-size:empty::after { content: "GitHub"; }

.t-notes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.t-notes li { position: relative; padding-left: 18px; }
.t-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red-2); }
.t-tip { margin: 0; font-size: 13px; line-height: 1.55; color: #5b4d63; background: #ece0c6; border-radius: 4px; padding: 10px 12px; }
.t-tip b { color: var(--paper-ink); }
.ticket-web .t-main { display: flex; flex-direction: column; }
.ticket-web .btn-wide { min-height: 56px; }
.all-rel { margin: 30px 0 0; text-align: center; }
.all-rel a { color: var(--chalk); font-weight: 700; }

/* ───────── Patch notes: fixture list + report ───────── */
.patch { padding: 104px 0 96px; }
.notes { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.notes-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; }
.notes-list[hidden] { display: none; }
.notes-list[hidden] + .notes-body { grid-column: 1 / -1; }
.notes-list button {
  font: inherit; text-align: left; cursor: pointer; color: var(--muted);
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ver badge" "date date"; gap: 0 8px; align-items: center;
  padding: 10px 14px; background: var(--panel); border: 0; border-left: 4px solid transparent; border-radius: 3px;
}
.notes-list button:hover { background: var(--panel-2); color: #fff; }
.notes-list button[aria-selected="true"] { background: var(--panel-2); border-left-color: var(--red); color: #fff; }
.nl-ver { grid-area: ver; font-weight: 850; font-size: 17px; font-variant-numeric: tabular-nums; }
.nl-badge { grid-area: badge; justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink); background: var(--gold); padding: 1px 6px; border-radius: 2px; }
.nl-date { grid-area: date; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.notes-body {
  min-width: 0; background: var(--panel); border: 2px solid var(--ink); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--red);
  padding: 28px 32px 30px;
}
.nb-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.nb-head h3 { font-size: 24px; font-weight: 850; }
.nb-head p { margin: 6px 0 0; font-size: 14px; color: var(--dim); }
.md { color: #e6deef; font-size: 15.5px; }
.md h3, .md h4, .md h5 { margin: 1.5em 0 .6em; font-weight: 800; color: #fff; }
.md h3 { font-size: 20px; }
.md h4 { font-size: 17px; color: var(--accent); }
.md h5 { font-size: 15px; }
.md > :first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 1em; padding-left: 1.3em; }
.md li { margin: .35em 0; }
.md li::marker { color: var(--red); }
.md blockquote { margin: 0 0 1.2em; padding: 10px 16px; border-left: 4px solid var(--gold); background: #ffd84a12; border-radius: 0 3px 3px 0; }
.md blockquote p:last-child { margin-bottom: 0; }
.md strong { color: #fff; }
.md .shared { margin-top: 1.6em; padding-top: 1em; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--dim); }
.md .shared strong { color: var(--muted); }
.muted { color: var(--dim); }

/* ───────── Questions: press room ───────── */
.faq { padding: 96px 0 104px; background: var(--bg-2); border-top: 1px solid #ffffff0d; }
.qa { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qa > div { background: var(--panel); border-radius: 4px; padding: 22px 24px 20px; border: 1px solid var(--row-line); }
.qa dt { position: relative; padding-left: 42px; font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 10px; line-height: 1.4; }
.qa dt::before {
  content: "Q"; position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center;
  font-weight: 900; font-size: 16px; color: #fff; background: var(--red-2); border-radius: 3px; box-shadow: inset 0 2px 0 var(--red-hi), inset 0 -2px 0 var(--red-lo);
}
.qa dd { margin: 0; padding-left: 42px; color: var(--muted); font-size: 15.5px; }

/* ───────── Footer ───────── */
.foot { background: #0b0910; border-top: 2px solid var(--red-2); padding: 44px 0 56px; font-size: 13.5px; color: var(--dim); }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.foot-brand img { image-rendering: pixelated; }
.foot-name { margin: 0; font-weight: 800; font-size: 17px; color: #fff; }
.foot-links { margin: 2px 0 0; }
.foot a { color: var(--muted); }
.legal { max-width: 900px; line-height: 1.7; }
.credits { max-width: 900px; line-height: 1.7; margin: 0; }
.credits b { color: var(--muted); margin-right: 6px; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .chapter, .chapter.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 84px; }
  .chapter.flip .ch-text, .chapter.flip .shot { order: 0; }
  .tickets { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin: 0 auto; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .notes-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .notes-list button { flex: none; border-left: 0; border-bottom: 4px solid transparent; }
  .notes-list button[aria-selected="true"] { border-bottom-color: var(--red); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 40px 0 44px; }
  .tower { display: none; }
  .beam { display: none; }
  .stands { top: 57%; height: 90px; }
  .pitch { top: 66%; }
  .kicker { font-size: 12px; padding: 4px 10px; letter-spacing: .02em; }
  .pitch-lines { width: 220px; height: 90px; }
  .logo-main { --o: 3px; }
  .logo-emblem { width: 48px; height: 48px; }
  .btn { width: 100%; }
  .cta { width: 100%; max-width: 420px; }
  .version-chip { margin-bottom: 28px; }
  .jumbotron { padding: 5px; }
  .jumbo-bar { font-size: 10px; padding: 1px 3px 5px; }
  .scoreboard { grid-template-columns: repeat(2, 1fr); }
  .game, .gate, .patch, .faq { padding-top: 72px; }
  .sec-head { margin-bottom: 36px; }
  .lede { font-size: 16.5px; }
  .ch-no { font-size: 58px; }
  .stat-defs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .league-board { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cups { grid-template-columns: 1fr 1fr; }
  .pyramid li:nth-child(1) { --w: 64%; }
  .pyramid li:nth-child(2) { --w: 71%; }
  .pyramid li:nth-child(3) { --w: 78%; }
  .pyramid li:nth-child(4) { --w: 85%; }
  .pyramid li:nth-child(5) { --w: 92%; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .t-main { padding: 22px 18px 18px; }
  .t-stub { flex-direction: row; padding: 10px 18px; border-left: 0; border-top: 3px dashed #b9a98a; border-radius: 0 0 8px 8px; }
  .t-stub::before, .t-stub::after { top: -13px; bottom: auto; }
  .t-stub::before { left: -11px; }
  .t-stub::after { left: auto; right: -11px; }
  .t-stub span { writing-mode: horizontal-tb; font-size: 11px; }
  .t-stub b { font-size: 22px; }
  .file { grid-template-areas: "name" "size" "desc"; grid-template-columns: minmax(0, 1fr); }
  .f-size { justify-self: start; }
  .notes-body { padding: 20px 16px 22px; }
  .qa { grid-template-columns: minmax(0, 1fr); }
  .qa > div { padding: 18px 16px; }
  .qa dt { font-size: 17px; }
  .qa dd { padding-left: 0; }
}
