:root {
  --bg: #090a0b;
  --surface: #111316;
  --surface-2: #171a1e;
  --surface-3: #1d2025;
  --text: #f2f3f5;
  --muted: #a4a9b1;
  --dim: #707680;
  --line: #2a2e34;
  --amber: #d08700;
  --amber-hi: #ffb300;
  --cyan: #00b4ff;
  --green: #28c76f;
  --red: #ff6268;
  --max: 1180px;
  --content: 820px;
  --display: "Saira Condensed", system-ui, sans-serif;
  --semi: "Saira Semi Condensed", system-ui, sans-serif;
  --body: "Saira", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  padding-top: 68px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #75d8ff; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--amber-hi);
  color: #050505;
  border-radius: 6px;
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid var(--amber-hi);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  background: rgba(9, 10, 11, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 32px, var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}
.brand img { width: auto; height: 30px; display: block; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 7px;
  color: #d9dce1;
  font-family: var(--semi);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-nav a:hover { background: var(--surface-2); color: #fff; }
.primary-nav a[aria-current="page"] { background: #2a210f; color: var(--amber-hi); }
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--semi);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }

main { display: block; }
.hero {
  border-bottom: 1px solid var(--line);
  background: #0d0f11;
}
.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 68px 0 58px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.breadcrumbs a { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-hi);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; background: var(--amber-hi); content: ""; }
h1, h2, h3 { font-family: var(--display); color: #fff; }
h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: #c2c6cc;
  font-size: clamp(17px, 2vw, 20px);
}
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .045em;
}
.status-chip.release { border-color: #654b16; color: #ffd26d; background: #201a0e; }

.page-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 52px 0 88px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.toc h2 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.toc nav { padding: 8px; }
.toc a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.toc a:hover { color: #fff; background: var(--surface-2); }
.toc .toc-extra { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }

.doc-content { min-width: 0; max-width: var(--content); }
.doc-section { scroll-margin-top: 94px; margin-bottom: 62px; }
.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-hi);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.doc-section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.doc-section h3 { margin: 30px 0 10px; font-size: 21px; line-height: 1.25; }
.doc-section p { margin: 0 0 15px; color: #c8ccd2; }
.doc-section ul, .doc-section ol { color: #c8ccd2; padding-left: 22px; }
.doc-section li { margin: 7px 0; }
.lead-copy { color: #d8dbe0 !important; font-size: 18px; }
.muted { color: var(--muted) !important; }

.notice {
  margin: 20px 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: var(--surface);
  color: #cdd1d6;
}
.notice strong { color: #fff; }
.notice.warning { border-left-color: var(--amber-hi); background: #17140e; }
.notice.security { border-left-color: var(--green); background: #0d1712; }

.quick-grid,
.game-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.card h3 { margin: 0 0 7px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { border-color: #5c4a20; background: #17150f; color: inherit; }
.card-link .card-cta { display: inline-block; margin-top: 13px; color: var(--amber-hi); font-weight: 800; }
.card-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--amber-hi);
  color: #050505;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}
.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin: 0 0 10px;
  padding: 2px 9px;
  border: 1px solid #3c424a;
  border-radius: 999px;
  color: #bac0c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tag.pending { border-color: #67501c; color: #ffd16b; }
.tag.local { border-color: #245b3d; color: #75e6a5; }

.steps { list-style: none; padding: 0 !important; counter-reset: setup; }
.steps li {
  position: relative;
  min-height: 62px;
  margin: 0 0 8px;
  padding: 12px 14px 12px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  counter-increment: setup;
}
.steps li::before {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-hi);
  color: #050505;
  content: counter(setup);
  font-family: var(--display);
  font-weight: 900;
}
.steps strong { display: block; margin-bottom: 2px; color: #fff; }

.table-wrap { width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--surface-2); font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
td { color: #c6cad0; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
code, kbd {
  border: 1px solid #363b42;
  border-radius: 4px;
  background: #0a0b0d;
  color: #f4c965;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .9em;
  padding: 2px 5px;
}

.faq-tools { margin: 0 0 28px; }
.search-label { display: block; margin-bottom: 8px; color: #fff; font-weight: 800; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 12px 48px 12px 15px;
  border: 1px solid #3b4047;
  border-radius: 8px;
  background: var(--surface);
  color: #fff;
}
.search-wrap input::placeholder { color: #7f858d; }
.search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-status { min-height: 25px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.faq-group { scroll-margin-top: 94px; margin-bottom: 46px; }
.faq-group h2 { margin: 0 0 14px; font-size: 30px; }
.faq-list { display: grid; gap: 9px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  color: #fff;
  cursor: pointer;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--amber-hi); font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 17px 17px; color: #c8ccd2; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item[hidden], .faq-group[hidden] { display: none; }
.no-results { display: none; padding: 20px; border: 1px dashed #4b5058; border-radius: 8px; color: var(--muted); }
.no-results.show { display: block; }

.site-footer { border-top: 1px solid var(--line); background: #070809; }
.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 38px 0 46px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px 50px;
  align-items: start;
}
.footer-brand img { width: auto; height: 25px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; }
.footer-note { grid-column: 1 / -1; margin: 0; color: var(--dim); font-size: 12px; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 8px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    width: 100%;
    padding: 7px 0 3px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { justify-content: flex-start; }
  .hero-inner { padding: 48px 0 44px; }
  .page-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 34px; }
  .toc { position: static; }
  .toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc .toc-extra { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-note { grid-column: auto; }
}

@media (max-width: 560px) {
  .header-inner, .hero-inner, .page-shell, .footer-inner { width: min(100% - 28px, var(--max)); }
  .brand img { height: 27px; }
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero-inner { padding: 38px 0 36px; }
  .quick-grid, .game-grid, .feature-grid { grid-template-columns: 1fr; }
  .toc nav, .toc .toc-extra { grid-template-columns: 1fr; }
  .doc-section { margin-bottom: 48px; }
  .faq-item summary { font-size: 16px; }
}

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

@media print {
  .site-header, .toc, .site-footer, .faq-tools { display: none !important; }
  body { background: #fff; color: #111; }
  .hero { background: #fff; border: 0; }
  .hero-inner, .page-shell { width: 100%; padding: 20px 0; }
  .page-shell { display: block; }
  .doc-content { max-width: none; }
  h1, h2, h3, .doc-section p, .doc-section li, .faq-answer { color: #111 !important; }
  .card, .notice, .faq-item, table { background: #fff; border-color: #aaa; break-inside: avoid; }
  .faq-item { display: block; }
  .faq-item .faq-answer { display: block; }
}
