:root {
  color-scheme: dark;
  --bg: #191a1b;
  --panel: #232527;
  --line: #414346;
  --ink: #f7f7f4;
  --soft: #c3c6c9;
  --accent: #ffdf38;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: break-word;
}
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.045em; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: absolute; z-index: 4; top: -5em; left: 12px; padding: 8px 18px; background: white; color: black; }
.skip:focus { top: 5px; }
.mast { background: #141516; border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; width: 142px; height: auto; }
.mast nav { display: flex; align-items: stretch; gap: clamp(12px, 3vw, 38px); }
.mast nav a { display: flex; align-items: center; min-height: 76px; border-bottom: 3px solid transparent; padding-top: 3px; text-decoration: none; font-weight: 700; }
.mast nav a[aria-current] { border-bottom-color: var(--accent); color: var(--accent); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr); gap: 16px; margin-top: 28px; }
.hero { position: relative; isolation: isolate; min-height: 426px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 6px; background: #1c2927; }
.venue { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .venue { position: absolute; inset: 0; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 12 16 / 90%), rgb(8 12 16 / 50%) 57%, transparent), linear-gradient(0deg, rgb(7 12 16 / 55%), transparent 65%); }
.hero-copy { padding: clamp(24px, 4vw, 48px); max-width: 590px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
.rule { display: inline-block; vertical-align: middle; width: 26px; height: 3px; margin-right: 6px; background: currentColor; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(43px, 5vw, 72px); line-height: 1.07; font-weight: 900; letter-spacing: -.07em; }
.hero h1 span { display: block; color: var(--accent); }
.hero h1 + p { max-width: 380px; line-height: 1.7; color: #f3f3f1; }
.button { display: inline-flex; align-items: center; gap: 26px; margin-top: 23px; min-height: 46px; padding: 9px 18px; border-radius: 3px; background: var(--accent); color: #17170e; font-weight: 800; text-decoration: none; }
.button:hover { background: #ffe966; color: black; }
.scorecard { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 5px; background: var(--panel); }
.scorecard h2 { margin-top: 6px; font-size: 27px; }
.sub, .scoregame p, .byline, .source-note, .back { color: var(--soft); font-size: .86rem; }
.sub { margin-top: 3px; }
.scoregame { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); }
.scoregame p, .record-link, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scoregame p { font-size: .76rem; }
.scoregame dl { margin: 5px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; line-height: 1.42; }
.scoregame dt { font-size: .93rem; }
.scoregame dd { text-align: right; font: 700 22px/1.1 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.won { color: var(--accent); }
.record-link { border-top: 1px solid var(--line); margin-top: auto; padding-top: 12px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.home-section { margin: 34px 0 0; }
.section-head { margin-bottom: 14px; }
.section-head h2, .about h2 { font-size: clamp(22px, 2.2vw, 29px); }
.section-head a { color: var(--soft); font-size: .85rem; white-space: nowrap; }
.league-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.league { position: relative; display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; background: var(--panel); }
.league:hover { border-color: var(--accent); }
.code { color: var(--accent); font: italic 900 32px/1.1 Arial, sans-serif; letter-spacing: -.07em; }
.league h3 { margin: 10px 0 3px; font-size: 18px; }
.league p { color: var(--soft); font-size: .86rem; }
.corner { position: absolute; right: 20px; top: 15px; color: var(--soft); }
.about { border-top: 1px solid var(--line); padding-top: 25px; display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.about p, .guide-block p, .prose p { color: #d6d8da; }
.about p + p, .guide-block p + p, .prose p + p { margin-top: 12px; }
.about p a, .prose a, .guide-block p a { color: var(--ink); }
.foot { margin-top: auto; padding-top: 44px; }
.foot .wrap { border-top: 1px solid var(--line); padding-block: 18px; color: var(--soft); font-size: .84rem; display: grid; gap: 4px; }
.foot small { font-size: .73rem; }
.reading { max-width: 820px; }
.page-intro { padding: clamp(35px, 6vw, 70px) 0 26px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(32px, 4vw, 49px); margin: 9px 0 18px; }
.page-intro h1 + p { color: #d6d8da; max-width: 700px; line-height: 1.85; }
.back { display: inline-block; margin-bottom: 20px; }
.byline { margin-top: 16px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 25px; }
.pills a, .source-link { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-decoration: none; font-size: .88rem; }
.guide-block { scroll-margin-top: 12px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.guide-block h2, .prose h2 { font-size: clamp(21px, 2.6vw, 29px); margin: 6px 0 13px; }
.guide-block .eyebrow { color: var(--accent); }
.source-link { margin-top: 16px; }
.story { margin-top: 25px; }
.story-link { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; display: grid; grid-template-columns: 36% minmax(0, 1fr); background: var(--panel); text-decoration: none; }
.story-link > div { padding: 24px; }
.story h2 { font-size: clamp(23px, 2.4vw, 31px); margin: 8px 0 12px; }
.story h2 a { text-decoration-thickness: 1px; }
.story h2 + p { font-size: .94rem; color: var(--soft); }
.prose { line-height: 1.85; }
.prose h2 { margin-top: 32px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 24px; font-variant-numeric: tabular-nums; }
.prose caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.prose th, .prose td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead { background: var(--panel); color: var(--accent); }
.source-note { margin-top: 8px; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .feature-grid { grid-template-columns: 1fr; margin-top: 16px; }
  .hero { min-height: 365px; }
  .scorecard { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 18px 20px; }
  .scorecard > :is(.eyebrow, h2, .sub, .record-link) { grid-column: 1 / -1; }
  .scorecard .record-link { margin-top: 12px; }
  .about { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 580px) {
  .mast-in { gap: 10px; }
  .logo img { width: 95px; }
  .mast nav { gap: 12px; }
  .mast nav a { min-height: 60px; font-size: .8rem; }
  .hero { min-height: 350px; }
  .hero-copy { padding: 22px; }
  .league-grid { grid-template-columns: 1fr; gap: 8px; }
  .league { display: grid; grid-template-columns: 61px 1fr; column-gap: 12px; padding: 14px 32px 14px 14px; align-items: center; }
  .league .code { grid-row: span 2; font-size: 25px; }
  .league h3 { margin: 0; }
  .corner { right: 12px; }
  .story-link { grid-template-columns: 1fr; }
  .story-link .venue { aspect-ratio: 16/7; }
  .prose th, .prose td { font-size: .86rem; padding: 8px 4px; }
}
