:root {
  --birch-primary: #222832;
  --birch-secondary: #344352;
  --birch-indigo: #414b76;
  --birch-sage: #9eaea1;
  --birch-steel: #88a0b2;
  --birch-brick: #a94736;
  --birch-sand: #d8c6a5;
  --birch-lilac: #b8b5c6;
  --birch-background: #eef1f3;
  --birch-surface: #ffffff;
  --birch-surface-soft: #e4e9ed;
  --birch-surface-deep: #1f2630;
  --birch-text: #20252b;
  --birch-muted: #64707b;
  --birch-border: #aab9c5;
  --birch-radius-small: 2px;
  --birch-radius-medium: 6px;
  --birch-radius-large: 10px;
  --birch-shadow-soft: 0 8px 24px rgba(25, 33, 42, .08);
  --birch-shadow-raised: 0 18px 48px rgba(25, 33, 42, .15);
  --birch-container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--birch-text);
  background: var(--birch-background);
  font: 1rem/1.65 Calibri, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--birch-brick); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.shell { width: min(calc(100% - 2.5rem), var(--birch-container)); margin-inline: auto; }
.eyebrow, .code, .vertical-note {
  font-family: "Lucida Console", Monaco, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--birch-brick); }
h1, .display-title { font: 400 clamp(3rem, 7vw, 7.2rem)/.94 Garamond, "Times New Roman", serif; letter-spacing: -.035em; margin: .5rem 0 1.2rem; }
h2, h3, h4, nav, .button { font-family: "Century Gothic", Futura, Arial, sans-serif; }
h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1.2rem; }
h3 { line-height: 1.18; }
p { max-width: 68ch; }
.lede { font-size: 1.18rem; color: #4e5a65; }
.section { padding: clamp(4.5rem, 9vw, 9rem) 0; border-top: 1px solid var(--birch-border); }
.section-head { display: grid; grid-template-columns: 1fr minmax(260px, .55fr); align-items: end; gap: 3rem; margin-bottom: 3.5rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .75rem 1.05rem; border: 1px solid var(--birch-brick);
  background: var(--birch-brick); color: white; text-decoration: none; cursor: pointer; border-radius: var(--birch-radius-small);
  font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase;
}
.button:hover { background: #8e392b; }
.button.secondary { background: transparent; color: var(--birch-text); border-color: var(--birch-border); }
.button.light { background: #fff; color: var(--birch-primary); border-color: #fff; }
.text-link { text-underline-offset: .35em; text-decoration-thickness: 1px; }
.external-note { font-size: .76rem; color: var(--birch-muted); margin: .75rem 0 0; }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(244, 246, 247, .92);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--birch-border); transition: .25s ease;
}
.header-row { min-height: 82px; display: flex; align-items: center; gap: 1.5rem; transition: .25s ease; }
.site-header.compact .header-row { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: max-content; }
.brand img { width: 42px; height: 42px; border: 1px solid var(--birch-border); }
.brand strong { font-family: "Century Gothic", Futura, sans-serif; font-size: .92rem; letter-spacing: .04em; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.75rem, 1.5vw, 1.5rem); }
.primary-nav a { position: relative; text-decoration: none; font-size: .72rem; letter-spacing: .04em; white-space: nowrap; }
.primary-nav a.active::after, .primary-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.65rem; height: 3px; background: var(--birch-brick); }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--birch-border); background: white; padding: .65rem; }

.hero { padding: clamp(3rem, 7vw, 7rem) 0 5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr) 220px; gap: clamp(1.5rem, 4vw, 5rem); align-items: stretch; }
.hero-copy { padding-top: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.hero-visual { position: relative; margin-right: -2.5rem; }
.hero-visual img { height: 620px; width: 100%; border: 1px solid var(--birch-steel); }
.hero-visual::after { content: ""; width: 18px; height: 18px; background: var(--birch-brick); position: absolute; right: -8px; top: 28px; }
.vertical-note { position: absolute; right: -2.4rem; bottom: 1rem; writing-mode: vertical-rl; color: var(--birch-muted); }
.hero-aside { border-left: 1px solid var(--birch-border); padding-left: 1.5rem; display: flex; flex-direction: column; }
.hero-initial { margin-top: auto; font: 400 10rem/.75 Garamond, serif; color: var(--birch-lilac); }
.metrics { border-top: 1px solid var(--birch-border); margin-top: 2rem; }
.metric { padding: .8rem 0; border-bottom: 1px solid var(--birch-border); }
.metric strong { display: block; font: 400 2rem/1 Garamond, serif; }

.index-strip { background: var(--birch-surface); border-block: 1px solid var(--birch-border); }
.index-label { padding: .85rem 0; border-bottom: 1px solid var(--birch-border); }
.index-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.index-item { position: relative; padding: 1.5rem; border-right: 1px solid var(--birch-border); }
.index-item:last-child { border-right: 0; }
.index-item h3 { font-size: .92rem; }
.index-item p { font-size: .84rem; margin-bottom: 0; }
.index-item::before { content: ""; width: 7px; height: 24px; background: var(--birch-brick); position: absolute; top: 1.5rem; right: 1rem; }

.ranking-grid, .highlight-grid, .method-grid { display: grid; grid-template-columns: repeat(12, 1fr); border: 1px solid var(--birch-border); background: var(--birch-surface); }
.game-entry { grid-column: span 12; display: grid; grid-template-columns: 100px minmax(220px, .72fr) minmax(0, 1fr); min-height: 420px; border-bottom: 1px solid var(--birch-border); }
.game-entry:last-child { border-bottom: 0; }
.rank-number { padding: 1.25rem; font: 300 clamp(3.5rem, 7vw, 7rem)/1 "Century Gothic", sans-serif; color: var(--birch-brick); border-right: 1px solid var(--birch-border); }
.game-entry img { width: 100%; height: 100%; min-height: 300px; border-right: 1px solid var(--birch-border); }
.game-copy { padding: clamp(1.5rem, 4vw, 3rem); }
.game-copy h3 { font-size: clamp(1.7rem, 3vw, 3rem); margin: .4rem 0 1rem; overflow-wrap: anywhere; }
.game-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; padding-block: 1rem; border-block: 1px solid currentColor; }
.game-meta span { font-size: .79rem; }
.game-meta strong { display: block; }
.game-entry.dark { background: var(--birch-primary); color: white; grid-template-columns: 100px minmax(0, 1fr) minmax(240px, .72fr); }
.game-entry.dark img { order: 3; border-right: 0; border-left: 1px solid var(--birch-steel); }
.game-entry.dark .game-copy { order: 2; }
.game-entry.indigo { background: var(--birch-indigo); color: white; }
.game-entry.steel { background: #b9c9d2; }
.game-entry.compact-left { grid-column: span 7; grid-template-columns: 90px 1fr; }
.game-entry.compact-left img { grid-column: 1 / -1; height: 250px; border-right: 0; border-top: 1px solid var(--birch-border); }
.game-entry.tall-right { grid-column: span 5; grid-template-columns: 1fr; grid-template-rows: auto 260px 1fr; }
.game-entry.tall-right .rank-number { border-right: 0; border-bottom: 1px solid var(--birch-border); }
.game-entry.tall-right img { border-right: 0; border-bottom: 1px solid var(--birch-border); }

.branches { display: grid; grid-template-columns: .7fr 1.4fr; border: 1px solid var(--birch-border); }
.branch { padding: 2.2rem; min-height: 360px; }
.branch + .branch { border-left: 1px solid var(--birch-border); }
.branch.fantasy { background: var(--birch-indigo); color: white; }
.branch.warfare { grid-column: 1 / -1; min-height: auto; background: var(--birch-primary); color: white; border-top: 1px solid var(--birch-border); border-left: 0; display: grid; grid-template-columns: .7fr 1fr; gap: 3rem; }
.branch-list { list-style: none; padding: 0; margin: 2rem 0; }
.branch-list li { padding: .65rem 0; border-top: 1px solid currentColor; }

.device-layout { display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--birch-border); background: white; }
.device-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--birch-border); }
.device-tab { min-height: 88px; padding: 1rem; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--birch-border); cursor: pointer; }
.device-tab[aria-selected="true"] { border-top: 4px solid var(--birch-brick); background: var(--birch-surface-soft); font-weight: 700; }
.device-panel { padding: clamp(2rem, 5vw, 5rem); }
.device-panel[hidden] { display: none; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.detail-grid > div { padding: 1rem; border-top: 1px solid var(--birch-border); }

.feature { background: var(--birch-surface-deep); color: white; }
.feature-grid { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; gap: 4rem; border-left: 8px solid var(--birch-brick); padding-left: 2rem; }
.feature-image { position: relative; }
.feature-image img { height: 100%; min-height: 720px; width: 100%; }
.feature-number { position: absolute; left: -1.5rem; top: 1rem; writing-mode: vertical-rl; font: 300 5rem/1 "Century Gothic", sans-serif; }
.feature-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.feature-point { border-top: 1px solid var(--birch-steel); }
.summary-panel { margin-top: 2rem; background: white; color: var(--birch-text); padding: 1.5rem; }

.method-step { padding: 2rem; border-right: 1px solid var(--birch-border); border-bottom: 1px solid var(--birch-border); }
.method-step:nth-child(1), .method-step:nth-child(5) { grid-column: span 12; }
.method-step:nth-child(2), .method-step:nth-child(3) { grid-column: span 5; }
.method-step:nth-child(4) { grid-column: span 2; }
.method-step ul { padding-left: 1.1rem; }
.method-step .code { color: var(--birch-brick); }

.highlight { padding: 2rem; min-height: 270px; border-right: 1px solid var(--birch-border); border-bottom: 1px solid var(--birch-border); }
.highlight:nth-child(1), .highlight:nth-child(5) { grid-column: span 8; }
.highlight:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.highlight:nth-child(3) { grid-column: span 5; background: var(--birch-primary); color: white; }
.highlight:nth-child(4) { grid-column: span 3; }
.highlight:nth-child(5) { background: var(--birch-indigo); color: white; }
.highlight img { width: 100%; height: 150px; margin-bottom: 1rem; }

.segmented-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--birch-border); background: white; }
.segment { padding: 1.5rem; border-right: 1px solid var(--birch-border); }
.access-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; }
.access-notes { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--birch-border); }
.access-note { padding: 1rem; border: 1px solid var(--birch-border); margin: -1px; }
.disclaimer { padding: 1.25rem; border-left: 5px solid var(--birch-brick); background: var(--birch-surface-soft); }
.security { background: var(--birch-primary); color: white; }
.security-record { display: grid; grid-template-columns: 80px 1fr; padding: 1rem 0; border-top: 1px solid var(--birch-steel); }
.security-record .code { color: #d7a093; }
.domain-panel { padding: 1.5rem; margin-top: 2rem; background: #313d49; overflow-wrap: anywhere; }
.domain-panel span { display: inline-block; margin: .25rem .6rem .25rem 0; padding: .3rem .5rem; border: 1px solid var(--birch-steel); }

.session-rows, .standard-list { border-top: 1px solid var(--birch-border); }
.session-row { display: grid; grid-template-columns: 120px .7fr 1fr; gap: 2rem; padding: 1.6rem; border-bottom: 1px solid var(--birch-border); background: white; }
.session-row:nth-child(even) { margin-left: 6vw; background: var(--birch-surface-soft); }
.standard-record { display: grid; grid-template-columns: 1fr 100px 1.6fr; padding: 1.2rem 0; border-bottom: 1px solid var(--birch-border); }
.standard-record .status { width: 14px; height: 14px; background: var(--birch-brick); justify-self: center; margin-top: .4rem; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--birch-border); border: 1px solid var(--birch-border); }
.explore-step { padding: 2rem; background: white; position: relative; }
.explore-step:nth-child(even) { transform: translateY(2rem); }

.faq-list { max-width: 980px; margin-left: auto; }
.faq-item { border-top: 1px solid var(--birch-border); }
.faq-question { width: 100%; padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: left; border: 0; background: transparent; cursor: pointer; font-family: "Century Gothic", sans-serif; font-weight: 700; }
.faq-question::after { content: "+"; font-size: 1.4rem; }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 0 1.5rem; margin: 0; }
.dispatches { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--birch-border); }
.dispatch { padding: 2rem; border-right: 1px solid var(--birch-border); background: white; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.contact-email { font-family: "Lucida Console", monospace; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .8rem; border: 1px solid var(--birch-border); background: white; border-radius: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border: 2px solid var(--birch-brick); }
.error { display: block; color: #8a2f24; font-size: .8rem; min-height: 1.2em; }
.consent { display: flex; gap: .7rem; align-items: flex-start; }
.success { padding: 1rem; background: #dbe8de; border-left: 4px solid #42664a; margin-top: 1rem; }
.final-cta { color: white; background: linear-gradient(120deg, var(--birch-primary), var(--birch-indigo)); }
.final-panel { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: space-between; gap: 3rem; overflow: hidden; }
.final-letter { font: 400 20rem/.7 Garamond, serif; color: rgba(255,255,255,.08); position: absolute; right: 0; }

.site-footer { padding: 4rem 0 2rem; background: #171d24; color: #dfe5e9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(2, .6fr); gap: 4rem; }
.footer-links a { display: block; padding: .3rem 0; color: inherit; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #53606c; font-size: .8rem; color: #aeb8bf; }
.cookie-banner { position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem; max-width: 720px; margin: auto; padding: 1rem; background: #fff; border: 1px solid var(--birch-border); box-shadow: var(--birch-shadow-raised); display: flex; gap: 1rem; align-items: center; }
.cookie-banner[hidden] { display: none; }
.cookie-actions { margin-left: auto; display: flex; gap: .5rem; }
.back-to-top { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border: 1px solid var(--birch-border); background: white; opacity: 0; pointer-events: none; transition: .2s; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

.internal-hero { padding: 6rem 0; background: var(--birch-indigo); color: white; }
.internal-hero h1 { max-width: 900px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 6rem; }
.article-nav { position: sticky; top: 90px; align-self: start; border-top: 1px solid var(--birch-border); }
.article-nav a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--birch-border); font-size: .8rem; }
.article-section { padding: 2.5rem 0; border-bottom: 1px solid var(--birch-border); }
.article-section h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.legal-content { max-width: 850px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .primary-nav { position: fixed; inset: 82px 0 auto 0; max-height: calc(100vh - 82px); overflow: auto; display: none; flex-direction: column; align-items: stretch; padding: 1.5rem; background: white; border-bottom: 1px solid var(--birch-border); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .8rem; border-bottom: 1px solid var(--birch-border); }
  .header-cta { display: none; }
  .menu-button { display: block; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin-right: 1.5rem; }
  .vertical-note { right: -1.25rem; }
  .hero-aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 150px; gap: 2rem; }
  .hero-initial { margin-top: 0; }
  .game-entry.compact-left, .game-entry.tall-right { grid-column: span 12; }
  .highlight:nth-child(n) { grid-column: span 6; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-image img { min-height: 480px; }
}

@media (max-width: 768px) {
  .shell { width: min(calc(100% - 1.4rem), var(--birch-container)); }
  .section { padding: 4rem 0; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-right: 1.5rem; }
  .hero-visual img { height: 500px; }
  .hero-aside { grid-column: auto; grid-template-columns: 1fr; }
  .index-row, .segmented-grid { grid-template-columns: 1fr; }
  .index-item, .segment { border-right: 0; border-bottom: 1px solid var(--birch-border); }
  .game-entry, .game-entry.dark, .game-entry.compact-left, .game-entry.tall-right { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .game-entry img, .game-entry.dark img, .game-entry.tall-right img { order: initial; grid-column: 1 / -1; grid-row: auto; height: 260px; min-height: 0; border: 0; border-top: 1px solid var(--birch-border); }
  .game-copy, .game-entry.dark .game-copy { order: initial; grid-column: 1 / -1; }
  .rank-number { border-right: 0; }
  .game-meta { grid-template-columns: 1fr; }
  .branches { grid-template-columns: 1fr; }
  .branch + .branch, .branch.warfare { grid-column: auto; border-left: 0; border-top: 1px solid var(--birch-border); grid-template-columns: 1fr; }
  .device-layout { grid-template-columns: 1fr; }
  .device-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--birch-border); }
  .device-tab { min-width: 150px; border-right: 1px solid var(--birch-border); }
  .detail-grid, .feature-points { grid-template-columns: 1fr; }
  .method-step:nth-child(n), .highlight:nth-child(n) { grid-column: span 12; grid-row: auto; }
  .access-grid, .contact-grid, .footer-grid, .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-nav { position: static; }
  .session-row, .standard-record { grid-template-columns: 1fr; gap: .5rem; }
  .session-row:nth-child(even) { margin-left: 0; }
  .standard-record .status { justify-self: start; }
  .steps-grid, .dispatches { grid-template-columns: 1fr; }
  .explore-step:nth-child(even) { transform: none; }
  .dispatch { border-right: 0; border-bottom: 1px solid var(--birch-border); }
  .form-grid { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { margin-left: 0; }
}

@media (max-width: 480px) {
  h1, .display-title { font-size: 2.85rem; }
  h2 { font-size: 2.15rem; }
  .brand strong { font-size: .78rem; }
  .brand img { width: 36px; height: 36px; }
  .header-row { min-height: 70px; }
  .primary-nav { top: 70px; }
  .hero-visual img { height: 390px; }
  .hero-initial, .vertical-note, .final-letter { display: none; }
  .rank-number { font-size: 3rem; }
  .access-notes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
