:root {
  --ink: #191c17;
  --night: #171c15;
  --lime: #d9fa69;
  --paper: #f7f7ef;
  --surface: #fffefa;
  --line: #dcded2;
  --muted: #575e51;
  --link: #375820;
  --subtle: #edf0e3;
  --radius: 1rem;
  --gutter: clamp(1rem, 3.5vw, 2.25rem);
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.container { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
main { padding-block: clamp(1.25rem, 4vw, 2.75rem) 4rem; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: .18rem solid #7961be; outline-offset: .22rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.7rem); margin: 0 0 .9rem; }
h2 { font-size: clamp(1.45rem, 1.24rem + 1vw, 2.2rem); margin: 0 0 .8rem; }
h3 { font-size: 1.15rem; }
.lead { max-width: 66ch; margin: 0 0 1.15rem; font-size: clamp(1rem, .95rem + .3vw, 1.17rem); color: var(--muted); }
.muted { color: var(--muted); font-size: .875rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .8rem;
  color: var(--link);
  font: 700 .75rem/1.5 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: .55em; height: .55em; background: currentColor; flex: none; }

.skip-link { position: fixed; inset: .5rem auto auto var(--gutter); z-index: 10; padding: .65rem 1rem; background: var(--lime); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .brand, .site-nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-block: .7rem; }
.brand { gap: .65rem; min-height: 44px; color: inherit; font-size: 1.25rem; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.logo-badge { flex: none; }
.site-nav { flex-wrap: wrap; gap: .25rem .65rem; }
.site-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .85rem; color: var(--ink); font-size: .875rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .btn-nav { background: var(--lime); border: 1px solid #b5cc66; border-radius: .5rem; }

.hero {
  padding: clamp(1.25rem, 4.4vw, 3.75rem);
  border-radius: calc(var(--radius) + .25rem);
  background: var(--night);
  color: var(--surface);
  margin-bottom: 1.5rem;
}
.hero .eyebrow { color: var(--lime); }
.hero .lead { color: #d2d9c9; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.hero-home { padding-block: clamp(1.5rem, 3.5vw, 3.25rem); }
.hero-home h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5.8rem); letter-spacing: -.065em; line-height: .98; }
.hero-home h1 span { display: block; color: var(--lime); }
.hero-art { width: 100%; }
.hero-game { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
.hero-game .hero-art { border-radius: .75rem; }
.hero-actions, .hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-stats { margin-bottom: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: var(--ink);
  background: var(--lime);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}
.btn:hover { background: #e7ffa0; text-decoration: underline; }
.btn-ghost { background: transparent; color: var(--surface); border-color: #727b67; }
.btn-ghost:hover { background: #343c2e; }
.stat-chip { border: 1px solid #505a47; padding: .3rem .6rem; border-radius: .35rem; color: #d2d9c9; font-size: .825rem; }
.stat-chip b { color: var(--surface); }
.hero-ds { color: #c3ceba; font-size: .825rem; margin: 1.15rem 0 0; }
.report-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; color: #d2d9c9; font-size: .85rem; }
.verdict { background: var(--lime); color: var(--ink); border-radius: .35rem; padding: .3rem .6rem; font: 750 .8rem/1.4 var(--mono); }

.section { margin-block: clamp(2rem, 4vw, 3.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.section-head h2, .section-head .eyebrow:last-child { margin: 0; }
.section-head .more { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; }
.card, .toc-card, .game-spotlight, .table-wrap, .faq, .stat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.card, .toc-card { padding: clamp(1rem, 2.5vw, 1.5rem); }
.card p:last-child, .toc-card p:last-child { margin-bottom: 0; }
.toc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.toc-card { display: block; color: inherit; text-decoration: none; }
a.toc-card:hover { border-color: #9bac85; }
a.toc-card:hover h3 { text-decoration: underline; }
.toc-card h3 { margin: 0 0 .45rem; }
.toc-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.toc-card .eyebrow { color: var(--link); font: 700 .75rem/1.5 var(--mono); margin-bottom: .75rem; }
.toc-ico { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: .85rem; border-radius: .5rem; background: var(--subtle); }
.toc-cta { display: block; color: var(--link); margin-top: .45rem; }
.game-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: center; padding: .8rem; margin-bottom: .85rem; }
.spotlight-art { display: grid; place-items: center; min-height: 7rem; background: #e3d7fc; border-radius: .65rem; overflow: clip; }
.spotlight-art img { width: 100%; }
.spotlight-ico { font-size: 3rem; }
.spotlight-body { padding: .45rem .5rem; }
.game-spotlight h3 { margin: 0; font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.35rem); letter-spacing: -.04em; }
.game-spotlight h3 a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.game-spotlight h3 a:hover { text-decoration: underline; }
.spotlight-meta, .directory-label { color: var(--muted); font: 700 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.spotlight-meta { margin: 0 0 .3rem; }
.spotlight-tagline { margin: .2rem 0 .8rem; color: var(--muted); max-width: 64ch; }
.badge-new { background: #eaf4d9; border-radius: .25rem; padding: .15rem .4rem; margin-left: .3rem; }
.hub-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.hub-links a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .85rem;
  border: 1px solid #c6cdb9; border-radius: .45rem; background: var(--subtle);
  font-size: .875rem; font-weight: 750; text-decoration: none;
}
.hub-links a:hover { background: #e3edcd; text-decoration: underline; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .55rem; margin-bottom: .5rem; color: var(--muted); font-size: .875rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 650; }
.update-tag { color: var(--muted); font: 700 .8rem/1.5 var(--mono); }
.content-block { margin-bottom: 1rem; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem; }
.adv-card { border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; }
.adv-card h3 { margin: 0; }
.content-block ol li { margin-bottom: .5rem; }
.content-block h3 a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .65rem; margin-block: 1rem; }
.stat-tile { padding: .9rem 1rem; }
.stat-tile b { display: block; color: var(--ink); font-size: clamp(1.3rem, 1.05rem + 1vw, 2rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-tile span { display: block; margin-top: .35rem; color: var(--muted); font-size: .825rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table:has(tr > :nth-child(3)) { min-width: 30rem; }
.table th, .table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { background: var(--subtle); color: #35442c; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f6f8ee; }
.table td a[href] { display: inline-flex; align-items: center; min-height: 44px; }
.code-cell { font-family: var(--mono); font-weight: 700; color: var(--link); }
.copy-btn {
  margin-left: .5rem; min-height: 44px; min-width: 44px; padding: .3rem .5rem; cursor: pointer;
  color: var(--link); background: var(--subtle); border: 1px solid #b6c5a6;
  border-radius: .35rem; font: 700 .825rem/1.25 system-ui, sans-serif;
}
.copy-btn:hover, .copy-btn.copied { background: var(--lime); color: var(--ink); }
.verify, .verify-note, .ds-box { padding: .85rem 1rem; border-radius: .6rem; font-size: .9rem; }
.verify { background: var(--surface); border: 1px solid var(--line); border-left: .25rem solid #79974c; margin-top: 1rem; }
.verify ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.verify-note { background: #fff3d8; border: 1px solid #e2c78e; margin-top: .4rem; }
.ds-box { background: var(--subtle); border: 1px solid var(--line); margin-block: 1.25rem; }
.faq { margin-block: .55rem; padding-inline: 1rem; }
.faq summary { min-height: 44px; padding-block: .75rem; cursor: pointer; font-weight: 700; }
.faq summary:hover { color: var(--link); }
.faq p { margin: 0 0 1rem; max-width: 76ch; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.timeline li { position: relative; padding: .15rem 0 1.5rem 3rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 2rem; bottom: 0; left: .95rem; border-left: 1px solid #b6c5a6; }
.timeline li::before {
  content: attr(data-n); position: absolute; inset: 0 auto auto 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); border-radius: .45rem; font: 800 .85rem/1 var(--mono);
}
.timeline h3 { margin: .15rem 0 .4rem; }
.timeline p { margin: 0; max-width: 76ch; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin: 0; padding: clamp(1rem, 3vw, 1.6rem); }
.guide-cta p { flex: 1 1 23rem; margin: 0; color: #d2d9c9; }
.notfound { text-align: center; padding: 3rem 0; }
.notfound .lead { margin-inline: auto; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; list-style: none; padding: 0; }
.notfound-links a { display: inline-flex; align-items: center; min-height: 44px; }
.notfound-icon { font-size: 3rem; margin-bottom: .5rem; }

.site-footer { background: var(--night); color: #c7cfbf; padding-block: 2.5rem 1.25rem; font-size: .875rem; }
.site-footer .brand, .footer-col h3 { color: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.footer-brand { max-width: 18rem; }
.footer-col h3 { margin: .6rem 0 .25rem; font: 700 .8rem/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.footer-col ul { padding: 0; margin: 0; list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: #d3dcc9; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-disclaimer { max-width: 78ch; }
.footer-bottom { border-top: 1px solid #424a3a; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; font-size: .8rem; }
.footer-bottom a { color: inherit; }

@media (max-width: 48em) {
  .hero-home { grid-template-columns: 1fr; }
  .hero-home .hero-art { width: min(100%, 21rem); justify-self: center; margin-top: -.25rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34em) {
  .site-nav { gap: .25rem; }
  .site-nav a { padding-inline: .5rem; }
  .header-inner { gap: .25rem .5rem; }
  .hero-home h1 { font-size: clamp(2.4rem, 1.45rem + 4.75vw, 3.5rem); }
  .hero-home .hero-art { width: min(100%, 10rem); margin-top: -.5rem; }
  .hero-game { grid-template-columns: 1fr; }
  .hero-game .hero-art { display: none; }
  .game-spotlight { grid-template-columns: clamp(3.8rem, 20vw, 6rem) minmax(0, 1fr); align-items: start; gap: .75rem; }
  .spotlight-art { min-height: 0; aspect-ratio: 1; }
  .spotlight-art img { height: 100%; object-fit: cover; }
  .spotlight-ico { font-size: 2rem; }
  .spotlight-body { padding: 0; }
}
