@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("../../fonts/LINESeedSansTH_W_Th.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("../../fonts/LINESeedSansTH_W_Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("../../fonts/LINESeedSansTH_W_Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed Sans TH";
  src: url("../../fonts/LINESeedSansTH_W_XBd.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-base: #06000f;
  --bg-deep: #0a0018;
  --bg-panel: rgba(15, 5, 30, 0.74);
  --bg-panel-strong: rgba(10, 3, 24, 0.9);
  --bg-soft: rgba(139, 92, 246, 0.08);
  --line: rgba(139, 92, 246, 0.24);
  --line-strong: rgba(34, 211, 238, 0.22);
  --text: #f3f4f6;
  --text-soft: #e9d5ff;
  --muted: #b8a8ff;
  --dim: #8a79af;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-400: #8b5cf6;
  --pink: #e879f9;
  --cyan: #22d3ee;
  --blue: #818cf8;
  --amber: #fb923c;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --shadow: 0 24px 90px rgba(3, 0, 12, 0.45);
  --glow-purple: 0 0 40px rgba(139, 92, 246, 0.24);
  --glow-cyan: 0 0 34px rgba(34, 211, 238, 0.16);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "LINE Seed Sans TH", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 15%, rgba(139, 92, 246, 0.2), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.14), transparent 22%),
    radial-gradient(circle at 50% 84%, rgba(232, 121, 249, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(160deg, #090016 0%, #06000f 42%, #090016 100%);
  background-size: auto, auto, auto, 108px 108px, 108px 108px, auto;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../../images/ESKC2026.png") center top / cover no-repeat;
  opacity: 0.07;
  filter: saturate(0.85) blur(2px);
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 95%);
}

.page-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
}

.page-glow-left {
  top: 120px;
  left: -110px;
  width: 280px;
  height: 280px;
  background: rgba(139, 92, 246, 0.2);
}

.page-glow-right {
  top: 180px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(34, 211, 238, 0.14);
}

.page-glow-bottom {
  bottom: -100px;
  left: 50%;
  width: 360px;
  height: 220px;
  transform: translateX(-50%);
  background: rgba(232, 121, 249, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(6, 0, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.34);
}

.header-shell {
  width: min(1280px, calc(100vw - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.header-nav .nav-cta {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.84), rgba(232, 121, 249, 0.84));
  box-shadow: var(--glow-purple);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Reading progress bar ── */
.reading-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--purple-400), var(--pink) 55%, var(--cyan));
  border-radius: 0 3px 3px 0;
  transition: width 80ms linear;
  pointer-events: none;
  z-index: 1;
}

/* ── Back-to-top FAB ── */
.fab-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--pink) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 32px rgba(109, 40, 217, 0.42);
  cursor: pointer;
  z-index: 40;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 180ms ease;
  pointer-events: none;
}

.fab-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 44px rgba(109, 40, 217, 0.58);
}

.hero {
  position: relative;
  padding: 56px 0 36px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(6, 0, 15, 0.2), rgba(6, 0, 15, 0.78)),
    url("../../images/ESKC2026.png") center top / cover no-repeat;
  opacity: 0.5;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 999px;
}

.hero-orbit-a {
  width: 480px;
  height: 480px;
  top: 40px;
  right: -120px;
}

.hero-orbit-b {
  width: 320px;
  height: 320px;
  bottom: -40px;
  left: -80px;
  border-color: rgba(34, 211, 238, 0.16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.rule-card,
.toc-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 7, 30, 0.82), rgba(9, 2, 20, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-lg);
}

.eyebrow,
.rule-kicker,
.panel-kicker,
.toc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-copy h1 span {
  display: block;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #fff 0%, var(--muted) 36%, var(--pink) 70%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead,
.rule-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-summary-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.hero-summary-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-summary-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.hero-summary-item p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-division-wrap {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.hero-division-summary {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: linear-gradient(180deg, rgba(26, 11, 48, 0.88), rgba(22, 10, 42, 0.92));
  box-shadow: 0 18px 48px rgba(7, 3, 20, 0.26);
}

.hero-division-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 28%, transparent 68%, rgba(232, 121, 249, 0.08));
  pointer-events: none;
}

.hero-division-summary-wide {
  padding: 24px;
}

.hero-division-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-division-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-division-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.hero-division-heading-copy {
  display: grid;
  gap: 4px;
}

.hero-division-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-division-head strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.hero-division-intro {
  max-width: 520px;
  margin: 0;
  color: #f0e8ff;
  font-size: 1rem;
  text-align: right;
}

.hero-division-rows {
  display: grid;
  gap: 14px;
}

.hero-division-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-division-row-head {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-division-row-advanced .hero-division-row-head {
  background: linear-gradient(180deg, rgba(232, 121, 249, 0.12), rgba(255, 255, 255, 0.04));
}

.hero-division-row-label {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-division-row-advanced .hero-division-row-label {
  color: #f5c0ff;
}

.hero-division-row-head h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.1;
}

.hero-division-row-head p {
  margin: 8px 0 0;
  color: #f0e8ff;
  font-size: 1rem;
  font-weight: 700;
}

.hero-division-row-head small {
  display: block;
  margin-top: 12px;
  color: rgba(240, 232, 255, 0.84);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-division-row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-division-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-division-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 60%);
  pointer-events: none;
}

.hero-division-card h4 {
  margin: 12px 0 4px;
  font-size: 1.12rem;
}

.hero-division-card p {
  margin: 0;
  color: #f0e8ff;
  font-size: 0.96rem;
}

.hero-division-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-division-badge-alt {
  background: rgba(232, 121, 249, 0.18);
  border-color: rgba(232, 121, 249, 0.34);
  color: #f5c0ff;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-600), var(--pink));
  box-shadow: var(--glow-purple);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.btn-pdf {
  border-color: rgba(34, 211, 238, 0.24);
  color: #d7f9ff;
  background: rgba(34, 211, 238, 0.08);
}

.hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text-soft);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}

.hero-panel {
  padding: 28px;
  border-radius: 28px;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-panel-icon {
  width: 60px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-panel h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.hero-panel-ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-panel-ribbon-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel-ribbon-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel-ribbon-item strong {
  display: block;
  font-size: 1rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.fact-card,
.highlight-card,
.division-card,
.spec-card,
.mini-card,
.score-card,
.pattern-card {
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.fact-card {
  padding: 18px;
}

.fact-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-card strong,
.division-card strong,
.spec-card strong,
.mini-card strong,
.score-card strong,
.pattern-card strong,
.highlight-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
}

.fact-card p,
.division-card p,
.spec-card p,
.mini-card p,
.score-card p,
.pattern-card p,
.highlight-card span,
.hero-note,
.callout,
.rule-card p,
.rule-list li,
.side-notes li,
.timeline-item p {
  color: var(--text-soft);
}

.fact-card p,
.division-card p,
.spec-card p,
.mini-card p,
.score-card p,
.pattern-card p,
.hero-note,
.callout,
.rule-card p {
  margin: 10px 0 0;
  font-size: 0.94rem;
}

.hero-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(34, 211, 238, 0.08);
}

.page-shell {
  position: relative;
  padding: 14px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc-column {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  display: grid;
  gap: 16px;
}

.toc-card {
  padding: 18px;
  border-radius: 24px;
}

.toc-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.toc-link {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.toc-link:hover,
.toc-link.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
  transform: translateX(2px);
}

.toc-link.visited:not(.active) {
  color: rgba(52, 211, 153, 0.65);
}

.secondary-card {
  background: linear-gradient(180deg, rgba(16, 7, 30, 0.72), rgba(8, 3, 20, 0.84));
}

.side-notes {
  margin: 14px 0 0;
  padding-left: 18px;
}

.side-notes li + li {
  margin-top: 10px;
}

.rules-column {
  display: grid;
  gap: 18px;
}

.rule-card {
  padding: 28px;
  border-radius: 28px;
  border-color: rgba(109, 40, 217, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 252, 0.98));
  box-shadow: 0 22px 60px rgba(7, 3, 20, 0.22);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.rule-card:hover {
  border-color: rgba(109, 40, 217, 0.28);
  box-shadow: 0 28px 80px rgba(7, 3, 20, 0.28), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.rule-card,
.rule-card p,
.rule-card li {
  color: #342b4b;
}

.rule-card strong,
.rule-card h2,
.rule-card h3 {
  color: #1d1431;
}

.rule-card .rule-kicker {
  color: var(--purple-500);
}

.rule-card .rule-lead {
  color: #4c4266;
}

.rule-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rule-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: linear-gradient(180deg, #f4ebff 0%, #e9d5ff 100%);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.12);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #4c1d95;
}

.rule-head > div {
  min-width: 0;
}

.rule-head .rule-kicker {
  letter-spacing: 0.18em;
  color: #7c3aed;
}

.rule-head h2,
.timeline-item h3,
.check-panel h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border-left: 4px solid var(--purple-400);
  background: rgba(139, 92, 246, 0.1);
  color: #3f3458;
}

.callout.soft {
  border-left-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.callout.warning {
  border-left-color: var(--amber);
  background: rgba(251, 146, 60, 0.09);
}

.callout.danger {
  border-left-color: var(--red);
  background: rgba(251, 113, 133, 0.1);
}

.highlight-grid,
.division-grid,
.spec-grid,
.check-grid,
.ring-grid,
.arena-meta,
.score-grid,
.pattern-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.highlight-grid,
.arena-meta,
.score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.division-grid,
.check-grid,
.pattern-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-card,
.division-card,
.spec-card,
.mini-card,
.score-card,
.pattern-card,
.check-panel,
.ring-card {
  padding: 18px;
  border-color: rgba(109, 40, 217, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(21, 10, 39, 0.06);
}

.highlight-card span,
.spec-card span,
.mini-card span,
.score-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #75678f;
  margin-bottom: 8px;
}

.division-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.division-pill-alt {
  background: rgba(232, 121, 249, 0.12);
  border-color: rgba(232, 121, 249, 0.22);
  color: var(--pink);
}

.rule-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.rule-list li + li {
  margin-top: 10px;
}

.check-panel {
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: #ffffff;
}

.check-panel .rule-list {
  margin-top: 14px;
}

.ring-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ring-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: #ffffff;
}

.ring-swatch {
  width: 28px;
  height: 28px;
  border: 5px solid currentColor;
  border-radius: 999px;
  flex-shrink: 0;
}

.ring-red {
  color: #fb7185;
}

.ring-blue {
  color: #60a5fa;
}

.ring-gold {
  color: #fbbf24;
}

.arena-visual {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.field-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(109, 40, 217, 0.12);
  background: #fff;
}

.field-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4c4266;
}

.field-legend-item strong {
  font-weight: 700;
  color: #1d1431;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

.legend-dot-red  { background: rgba(251, 113, 133, 0.8); border: 2px solid #fb7185; }
.legend-dot-gold { background: rgba(251, 191, 36,  0.8); border: 2px solid #fbbf24; }
.legend-dot-cyan { background: rgba(34,  211, 238, 0.5); border: 2px solid #22d3ee; }

.field-board {
  position: relative;
  min-height: 380px;
  border-radius: 28px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(12, 5, 25, 0.95), rgba(14, 4, 31, 0.88));
  background-size: 80px 80px, 80px 80px, auto;
  overflow: hidden;
}

.field-board::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}

.field-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.12);
  color: #ffe7a1;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field-zone,
.field-gate {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-zone {
  width: 110px;
  height: 110px;
  top: 50%;
  transform: translateY(-50%);
}

.field-zone-red {
  left: 38px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.34);
  color: #fecdd3;
}

.field-zone-blue {
  right: 38px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #dbeafe;
}

.field-gate {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -172px);
  min-width: 150px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #c4fbff;
}

.pole {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.22);
}

.pole-red {
  background: rgba(251, 113, 133, 0.22);
  border: 1px solid rgba(251, 113, 133, 0.55);
  color: #ffe6ea;
}

.pole-blue {
  background: rgba(96, 165, 250, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #eff6ff;
}

.pole-shared {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fff7d1;
}

.pole-red-a {
  top: 88px;
  left: 126px;
}

.pole-red-b {
  bottom: 88px;
  left: 126px;
}

.pole-blue-a {
  top: 88px;
  right: 126px;
}

.pole-blue-b {
  bottom: 88px;
  right: 126px;
}

.pole-shared-a {
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
}

.pole-shared-b {
  top: 50%;
  left: 37%;
  transform: translate(-50%, -50%);
}

.pole-shared-c {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pole-shared-d {
  top: 50%;
  left: 63%;
  transform: translate(-50%, -50%);
}

.pole-shared-e {
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
}

.pattern-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(180px, 100%);
  margin-bottom: 16px;
}

.pattern-board span {
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.pattern-board span.active {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(232, 121, 249, 0.88));
  border-color: rgba(232, 121, 249, 0.6);
  box-shadow: var(--glow-purple);
}

.timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0), rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0));
}

.timeline-item {
  position: relative;
  padding: 0 0 22px 24px;
}

.timeline-step {
  position: absolute;
  left: -1px;
  top: 4px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink));
  box-shadow: var(--glow-purple);
  font-size: 0.66rem;
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 1.08rem;
}

.timeline-item p {
  margin: 8px 0 0;
}

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(139, 92, 246, 0.16);
  background: rgba(6, 0, 15, 0.4);
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.footer-brand strong {
  display: block;
}

.footer-brand p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero-grid,
  .content-grid,
  .division-grid,
  .check-grid,
  .pattern-grid,
  .ring-grid,
  .highlight-grid,
  .arena-meta,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-summary-strip {
    grid-template-columns: 1fr;
  }

  .hero-division-head {
    display: grid;
    gap: 8px;
  }

  .hero-division-title {
    align-items: start;
  }

  .hero-division-intro {
    max-width: none;
    text-align: left;
  }

  .hero-division-row {
    grid-template-columns: 1fr;
  }

  .hero-division-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-column {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(9, 2, 20, 0.94);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }

  .header-nav.open {
    display: grid;
    gap: 10px;
  }

  .header-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy,
  .hero-panel,
  .rule-card {
    padding: 22px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .fact-grid,
  .spec-grid,
  .hero-division-row-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel-ribbon {
    grid-template-columns: 1fr;
  }

  .hero-division-title {
    gap: 10px;
  }

  .hero-division-count {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    border-radius: 16px;
  }

  .field-board {
    min-height: 420px;
  }

  .field-zone {
    width: 92px;
    height: 92px;
  }

  .field-zone-red {
    left: 22px;
  }

  .field-zone-blue {
    right: 22px;
  }

  .pole-red-a,
  .pole-red-b {
    left: 96px;
  }

  .pole-blue-a,
  .pole-blue-b {
    right: 96px;
  }

  .field-gate {
    transform: translate(-50%, -184px);
  }
}

@media (max-width: 560px) {
  .container,
  .header-shell {
    width: min(100vw - 24px, 100%);
  }

  .brand-name {
    font-size: 0.84rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .hero-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .field-board {
    min-height: 460px;
  }

  .field-zone {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .field-zone-red {
    left: 20px;
  }

  .field-zone-blue {
    right: 20px;
  }

  .field-center {
    width: 52%;
    height: 34%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.72rem;
  }

  .field-gate {
    min-width: 126px;
    top: 90px;
    transform: translateX(-50%);
  }

  .pole-red-a {
    top: 120px;
    left: 52px;
  }

  .pole-red-b {
    bottom: 142px;
    left: 52px;
  }

  .pole-blue-a {
    top: 120px;
    right: 52px;
  }

  .pole-blue-b {
    bottom: 142px;
    right: 52px;
  }

  .pole-shared-b {
    left: 32%;
  }

  .pole-shared-d {
    left: 68%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #1d1431 !important;
  }

  body::before,
  .page-atmosphere,
  .site-header,
  .toc-column,
  .btn-pdf,
  .btn-primary,
  .btn-secondary,
  .hero-media,
  .hero-updated,
  .site-footer,
  .fab-top {
    display: none !important;
  }

  .hero,
  .page-shell {
    padding: 0 !important;
  }

  .hero-grid,
  .content-grid {
    display: block !important;
  }

  .hero-copy,
  .hero-panel,
  .rule-card,
  .highlight-card,
  .division-card,
  .spec-card,
  .mini-card,
  .score-card,
  .pattern-card,
  .check-panel,
  .ring-card {
    background: #ffffff !important;
    color: #1d1431 !important;
    border: 1px solid rgba(109, 40, 217, 0.12) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .hero-copy,
  .hero-panel,
  .rule-card {
    padding: 16px !important;
    margin-bottom: 10px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hero-copy h1,
  .hero-copy h1 span,
  .hero-lead,
  .hero-panel h2,
  .panel-kicker,
  .eyebrow,
  .rule-kicker,
  .rule-card p,
  .rule-card li,
  .rule-card h2,
  .rule-card h3,
  .rule-card strong {
    color: #1d1431 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  .rule-index,
  .division-pill,
  .division-pill-alt {
    border: 1px solid rgba(109, 40, 217, 0.24) !important;
    box-shadow: none !important;
  }

  .field-board {
    border: 1px solid rgba(109, 40, 217, 0.16) !important;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
      #ffffff !important;
    box-shadow: none !important;
  }
}
