:root {
  --bg: #070b14;
  --bg-deep: #050810;
  --surface: #0c1320;
  --surface-2: #101a2a;
  --surface-3: #142033;
  --text: #f3f7fd;
  --text-soft: #c2ccda;
  --muted: #7f8da3;
  --line: #1c2a40;
  --line-strong: #29405f;
  --accent: #4d8dff;
  --accent-bright: #72a5ff;
  --accent-soft: rgba(77, 141, 255, 0.12);
  --danger-soft: rgba(77, 141, 255, 0.08);
  --max: 1120px;
  --reading: 760px;
  --header-height: 68px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 70%);
  z-index: -1;
}

a { color: inherit; }
a:hover { color: var(--accent-bright); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
strong { color: #fff; }
p { margin: 0 0 1em; }
ul, ol { margin: .7em 0 1.2em; padding-left: 1.4em; }
li + li { margin-top: .38em; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  z-index: 999;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border-radius: 4px;
}
.skip-link:focus { transform: none; }

.section-shell,
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(7, 11, 20, .86);
  backdrop-filter: blur(16px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.desktop-nav a:hover { color: #fff; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  display: grid;
  padding: 8px;
  background: #0a101b;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.mobile-nav-panel a {
  padding: 10px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 110px;
}
.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .14em;
}
.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(64px, 10vw, 132px);
  line-height: .84;
  letter-spacing: -.065em;
  font-weight: 900;
  text-wrap: balance;
}
.hero h1::after {
  content: "";
  display: block;
  width: min(360px, 46vw);
  height: 3px;
  margin-top: 40px;
  background: var(--accent);
}
.hero-copy {
  margin: 34px 0 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero-meta {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
}
.hero-meta div { display: grid; gap: 2px; }
.hero-meta span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.hero-meta strong { font-size: 15px; }
.hero-actions,
.entry-actions,
.final-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color .18s, background-color .18s, color .18s, transform .18s;
}
a.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #06101e; }
.button-primary:hover { background: var(--accent-bright); color: #06101e; }
.button-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.button-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.is-disabled { opacity: .48; cursor: default; user-select: none; }

.section { padding-block: 112px; }
.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 48px;
}
.section-number {
  flex: 0 0 auto;
  color: var(--accent);
  font: 800 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-top: 2px solid var(--accent);
  padding-top: 7px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading .eyebrow { margin-bottom: 8px; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 80px;
  align-items: start;
}
.about-copy { max-width: 670px; color: var(--text-soft); }
.lead-text {
  color: var(--text);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.7;
  font-weight: 700;
}
.fact-list { margin: 0; border-top: 1px solid var(--line-strong); }
.fact-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.fact-list dd { margin: 0; font-weight: 800; }

.events-section { padding-bottom: 0; }
.event-block {
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.event-block-alt { background: #080e18; }
.event-inner { padding-block: 72px 86px; }
.event-title-row { display: flex; align-items: baseline; gap: 20px; }
.event-index {
  color: var(--accent);
  font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.event-title-row h3 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.05em;
}
.stat-strip {
  margin: 34px 0 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.stat-strip div { padding: 16px 14px 18px 0; }
.stat-strip span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.stat-strip strong { font-size: 17px; }
.event-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 70px;
  align-items: start;
}
.event-copy { color: var(--text-soft); }
.event-copy h4,
.elimination-box h4,
.two-column-copy h3,
.entry-card h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}
.score-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.score-pair span {
  padding: 13px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--text-soft);
}
.score-pair strong { float: right; color: var(--accent-bright); }
.elimination-box {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}
.elimination-box p { color: var(--text-soft); font-size: 13px; }
.box-intro { margin-top: -4px; }
.timeline-list { list-style: none; padding: 0; margin: 0 0 18px; }
.timeline-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.timeline-list time {
  color: var(--accent-bright);
  font: 800 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.timeline-list span { color: var(--text-soft); font-size: 13px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--accent-bright);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.text-link span { transition: transform .18s; }
.text-link:hover span { transform: translateX(4px); }

.overall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 72px;
}
.formula {
  margin: 32px 0 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.formula span,
.formula strong {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
}
.formula b { color: var(--muted); }
.formula strong { color: var(--accent-bright); border-color: var(--line-strong); }
.example-box {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.example-box > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.example-box > div strong { color: var(--accent-bright); font-size: 22px; }
.example-box > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.small-note { color: var(--muted); font-size: 13px; }

.concept-section {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #06101e;
}
.concept-section::after {
  content: "";
  position: absolute;
  right: -10vw;
  top: -36%;
  width: 58vw;
  aspect-ratio: 1;
  border: 1px solid rgba(4, 14, 28, .18);
  transform: rotate(25deg);
}
.concept-inner { position: relative; z-index: 1; }
.light-heading .section-number,
.light-heading .eyebrow { color: #071221; border-color: #071221; }
.light-heading h2 { color: #071221; }
.concept-section blockquote {
  margin: 0;
  max-width: 930px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.18;
  letter-spacing: -.055em;
  font-weight: 900;
}
.concept-copy {
  margin: 54px 0 0 auto;
  max-width: 660px;
  font-size: 15px;
  font-weight: 600;
}

.schedule-list { border-top: 1px solid var(--line-strong); }
.schedule-list article {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-index {
  color: var(--accent-bright);
  font: 800 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.schedule-list h3 { margin: 0 0 4px; font-size: 21px; }
.schedule-list p { margin: 0; color: var(--text-soft); }
.schedule-list p span { color: var(--accent); margin-inline: 6px; }
.break-row {
  width: fit-content;
  margin: -1px 0 -1px 96px;
  padding: 5px 10px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.award-row { background: linear-gradient(90deg, var(--accent-soft), transparent 55%); }

.entry-section { background: #080e18; border-block: 1px solid var(--line); }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-card {
  min-height: 100%;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.entry-card p, .entry-card li { color: var(--text-soft); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 20px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.two-column-copy { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.two-column-copy p { color: var(--text-soft); }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.staff-grid article { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.staff-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.staff-grid h3 { margin: 0 0 6px; font-size: 22px; }
.staff-grid p { margin: 0; color: var(--text-soft); }

.final-cta { padding-block: 80px; background: var(--surface); border-top: 1px solid var(--line); }
.final-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.final-cta h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.final-actions { margin: 0; justify-content: flex-end; }
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.footer-inner a { text-decoration: none; }

/* Rules page */
.rules-page { background: #070b14; }
.rules-shell {
  width: min(1260px, calc(100% - 48px));
  margin-inline: auto;
  padding: 74px 0 120px;
}
.rules-hero {
  max-width: 900px;
  padding: 20px 0 74px 260px;
}
.back-link { display: inline-block; margin-bottom: 34px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.rules-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(54px, 8vw, 92px);
  line-height: .96;
  letter-spacing: -.055em;
}
.rules-hero > p:not(.eyebrow):not(.updated) { max-width: 650px; color: var(--text-soft); }
.updated { margin-top: 24px; color: var(--muted); font-size: 12px; }
.mobile-toc { display: none; }
.rules-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 50px; align-items: start; }
.rules-sidebar { position: sticky; top: 96px; }
.rules-sidebar nav > p { margin: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.rules-sidebar a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 9px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.rules-sidebar a:hover { color: var(--text); }
.rules-sidebar a span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rules-content { min-width: 0; }
.rule-group { margin-bottom: 96px; }
.rule-group-heading {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}
.rule-group-heading > span {
  color: var(--accent);
  font: 800 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.rule-group-heading p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.rule-group-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.035em; }
.rule-article {
  max-width: var(--reading);
  padding: 58px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
}
.rule-article:last-child { border-bottom: 0; }
.rule-article h3 {
  margin: 0 0 34px;
  color: #fff;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.rule-article h4 {
  margin: 38px 0 14px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
}
.rule-article p { font-size: 14px; }
.rule-article li { font-size: 14px; }
.rule-callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 14px;
}
.rule-callout p:last-child, .rule-callout ul:last-child { margin-bottom: 0; }
.rule-callout.warning { border-left-width: 4px; background: rgba(77, 141, 255, .075); }
.rule-example, .score-table, .rule-timeline {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.rule-example { padding: 20px; }
.rule-example > p:first-child { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.rule-example > div, .score-table > div, .rule-timeline > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rule-example > div strong, .score-table strong { color: var(--accent-bright); }
.rule-example > p:last-child { margin: 12px 0 0; }
.score-table { padding-inline: 18px; }
.rule-timeline { padding-inline: 18px; }
.rule-timeline > div { grid-template-columns: 72px 1fr; }
.rule-timeline time { color: var(--accent-bright); font: 800 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.schedule-rule-grid, .staff-rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.schedule-rule-grid section, .staff-rule-grid section { padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.schedule-rule-grid h4, .staff-rule-grid h4 { margin-top: 0; }
.staff-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules-end { padding-top: 20px; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: auto; padding-block: 100px 90px; }
  .about-grid,
  .event-content-grid,
  .overall-grid,
  .two-column-copy { grid-template-columns: 1fr; gap: 38px; }
  .about-copy { max-width: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .elimination-box { max-width: 620px; }
  .rules-hero { padding-left: 0; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-sidebar { display: none; }
  .mobile-toc {
    display: block;
    margin-bottom: 48px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .mobile-toc summary { cursor: pointer; padding: 14px 16px; list-style: none; font-size: 13px; font-weight: 800; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc nav { display: grid; border-top: 1px solid var(--line); }
  .mobile-toc a { padding: 11px 16px; color: var(--text-soft); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 13px; }
}

@media (max-width: 680px) {
  .section-shell,
  .header-inner,
  .rules-shell { width: min(100% - 32px, var(--max)); }
  .site-header { height: 60px; }
  :root { --header-height: 60px; }
  .brand { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding-block: 82px 72px; }
  .hero h1 { font-size: clamp(52px, 17vw, 84px); }
  .hero h1::after { margin-top: 28px; }
  .hero-copy { font-size: 19px; }
  .desktop-only { display: none; }
  .hero-meta { margin-top: 34px; }
  .hero-actions .button,
  .entry-actions .button,
  .final-actions .button { width: 100%; }
  .section { padding-block: 78px; }
  .section-heading { margin-bottom: 36px; gap: 15px; }
  .section-heading h2 { font-size: 36px; }
  .fact-list div { grid-template-columns: 112px 1fr; }
  .event-inner { padding-block: 58px 68px; }
  .event-title-row h3 { font-size: 46px; }
  .stat-strip { margin-block: 28px 34px; }
  .stat-strip div { padding: 12px 8px 14px 0; }
  .stat-strip strong { font-size: 15px; }
  .score-pair { grid-template-columns: 1fr; }
  .elimination-box { padding: 18px; }
  .formula { gap: 7px; }
  .formula span, .formula strong { font-size: 11px; }
  .concept-section blockquote { font-size: 40px; }
  .concept-copy { margin-top: 38px; }
  .schedule-list article { grid-template-columns: 48px 1fr; gap: 12px; }
  .break-row { margin-left: 60px; }
  .schedule-list p span { display: inline; margin-inline: 3px; }
  .entry-grid, .staff-grid { grid-template-columns: 1fr; }
  .staff-grid article + article { padding-left: 0; border-left: 0; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .final-actions { width: 100%; justify-content: flex-start; }
  .footer-inner { flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 20px; }

  .rules-shell { padding-top: 48px; }
  .rules-hero { padding-bottom: 46px; }
  .rules-hero h1 { font-size: 54px; }
  .rule-group { margin-bottom: 74px; }
  .rule-group-heading { grid-template-columns: 42px 1fr; gap: 12px; }
  .rule-group-heading h2 { font-size: 29px; }
  .rule-article { padding-top: 46px; }
  .rule-article h3 { margin-bottom: 28px; font-size: 30px; }
  .rule-article h4 { margin-top: 32px; }
  .schedule-rule-grid, .staff-rule-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  body { background: white; color: black; }
  body::before, .site-header, .rules-sidebar, .mobile-toc, .site-footer { display: none !important; }
  .rules-shell { width: 100%; padding: 0; }
  .rules-hero { padding: 0 0 24px; }
  .rule-group-heading h2, .rule-article h3, .rule-article h4, strong { color: black; }
  .rule-article, .rule-callout, .rule-example, .score-table, .rule-timeline, .schedule-rule-grid section, .staff-rule-grid section { color: #222; border-color: #bbb; background: transparent; }
}
