@font-face { font-family: 'Press Start 2P'; src: url('/assets/game/fonts/PressStart2P-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #0d1114;
  --panel-raised: #11171b;
  --line: #273036;
  --line-soft: #1b2227;
  --text: #f2f1eb;
  --muted: #9ca4a7;
  --quiet: #697379;
  --acid: #e8ff61;
  --orange: #ff792e;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --header: 70px;
  --sidebar: 272px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 32px); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.7 var(--sans); }
body::before { content: ''; position: fixed; z-index: 30; inset: 0; opacity: .025; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
a, button, input { -webkit-tap-highlight-color: transparent; }
a, button { transition: color .45s cubic-bezier(.32,.72,0,1), background-color .45s cubic-bezier(.32,.72,0,1), transform .45s cubic-bezier(.32,.72,0,1), opacity .45s cubic-bezier(.32,.72,0,1); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
img, svg { display: block; }
code, pre, kbd { font-family: var(--mono); }
code { color: #dce7c8; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 10px 14px; background: var(--acid); color: #0b0d06; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.docs-header { position: fixed; z-index: 20; top: 0; right: 0; left: 0; display: grid; height: var(--header); grid-template-columns: var(--sidebar) 1fr auto; align-items: center; padding: 0 34px 0 26px; border-bottom: 1px solid var(--line-soft); background: rgba(8,11,13,.91); backdrop-filter: blur(18px); }
.docs-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 15px; font-weight: 780; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(232,255,97,.2); background: rgba(232,255,97,.06); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.brand-mark img { image-rendering: pixelated; }
.docs-brand i { margin-left: 3px; padding-left: 11px; border-left: 1px solid var(--line); color: var(--muted); font-style: normal; font-weight: 520; }
.docs-header > nav { display: flex; justify-self: end; align-items: center; gap: 4px; }
.docs-header > nav a { padding: 8px 13px; border-radius: 99px; color: var(--muted); font-size: 13px; text-decoration: none; }
.docs-header > nav a:hover, .docs-header > nav a.is-current { background: rgba(255,255,255,.045); color: var(--text); }
.docs-header > nav a.is-current::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--acid); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; }

.docs-layout { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr) 220px; padding-top: var(--header); }
.docs-sidebar { position: fixed; z-index: 10; top: var(--header); bottom: 0; left: 0; width: var(--sidebar); overflow-y: auto; padding: 26px 22px 26px 26px; border-right: 1px solid var(--line-soft); background: var(--bg); scrollbar-width: thin; }
.docs-search { display: grid; height: 42px; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.docs-search svg { width: 17px; fill: none; stroke: var(--quiet); stroke-linecap: round; stroke-width: 1.5; }
.docs-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 12px/1 var(--sans); }
.docs-search input::placeholder { color: var(--quiet); }
.docs-search kbd { padding: 3px 6px; border: 1px solid #30393f; border-bottom-color: #465159; border-radius: 3px; color: var(--quiet); font-size: 10px; line-height: 1; }
.section-nav { margin-top: 29px; }
.section-nav div + div { margin-top: 28px; }
.section-nav p, .on-this-page > p { margin: 0 0 8px 12px; color: #667178; font: 8px/1.5 var(--pixel); letter-spacing: .02em; text-transform: uppercase; }
.section-nav a { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 6px 11px; border-left: 1px solid transparent; color: #a9b0b3; font-size: 12px; text-decoration: none; }
.section-nav a:hover { color: var(--text); transform: translateX(2px); }
.section-nav a.is-active { border-left-color: var(--acid); background: linear-gradient(90deg, rgba(232,255,97,.07), transparent); color: var(--text); }
.method-dot { color: var(--acid); font: 700 8px/1 var(--mono); }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 32px 11px 0; color: var(--quiet); font: 10px/1.4 var(--mono); }
.sidebar-foot span { width: 6px; height: 6px; border-radius: 50%; background: #6fcf83; box-shadow: 0 0 0 3px rgba(111,207,131,.09); }

.docs-main { grid-column: 2; width: min(860px, calc(100% - 64px)); margin: 0 auto; padding: 0 0 80px; }
.doc-section { scroll-margin-top: calc(var(--header) + 30px); }
.docs-hero { padding: clamp(86px, 10vw, 132px) 0 76px; }
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--acid); font: 8px/1 var(--pixel); letter-spacing: .02em; text-transform: uppercase; }
.eyebrow span { padding: 8px 10px; border: 1px solid rgba(232,255,97,.35); background: rgba(232,255,97,.045); }
.eyebrow i { color: var(--quiet); font-style: normal; }
.docs-hero h1 { max-width: 790px; margin: 31px 0 26px; font-size: clamp(56px, 6.4vw, 86px); font-weight: 820; line-height: .94; letter-spacing: -.068em; }
.docs-hero h1 em { color: var(--acid); font-style: normal; font-weight: 450; }
.hero-lede { max-width: 700px; margin: 0; color: #b8bec0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 35px; }
.primary-action, .secondary-action, .docs-cta > a { display: inline-flex; min-height: 52px; align-items: center; gap: 22px; padding: 5px 6px 5px 20px; border-radius: 99px; text-decoration: none; }
.primary-action { background: var(--acid); color: #0c1007; font-size: 13px; font-weight: 780; }
.primary-action i, .docs-cta > a i { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: rgba(8,11,13,.12); font-style: normal; }
.primary-action:hover, .docs-cta > a:hover { transform: translateY(-2px); }
.secondary-action { padding-right: 20px; border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.secondary-action:hover { border-color: #4b575e; background: rgba(255,255,255,.025); }
.status-strip { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 64px; background: var(--line-soft); }
.status-strip span { flex: 1 1 150px; padding: 13px 15px; background: var(--panel); color: var(--muted); font: 10px/1.3 var(--mono); text-align: center; }
.status-strip i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #70d387; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 122px; padding: 1px; background: var(--line); }
.concept-grid article { min-height: 238px; padding: 26px 24px; background: var(--panel); }
.concept-grid article > span, .deployment-grid article > span { color: var(--acid); font: 8px/1 var(--pixel); }
.concept-grid h2 { margin: 58px 0 10px; font-size: 17px; letter-spacing: -.025em; }
.concept-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.72; }

.docs-main > section:not(.docs-hero):not(.concept-grid):not(.docs-cta) { padding: 104px 0 22px; border-top: 1px solid var(--line-soft); }
.section-heading { display: grid; grid-template-columns: 48px 1fr; gap: 22px; align-items: start; margin-bottom: 27px; }
.section-heading > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(232,255,97,.38); color: var(--acid); font: 8px/1 var(--pixel); }
.section-heading p { margin: 1px 0 8px; color: var(--acid); font: 8px/1.4 var(--pixel); text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.03; letter-spacing: -.048em; }
.section-lede { max-width: 700px; margin: 0 0 30px; color: #b6bdc0; font-size: 17px; line-height: 1.7; }
.docs-main h3 { margin: 39px 0 12px; font-size: 17px; letter-spacing: -.025em; }
.docs-main > section > p:not(.section-lede) { max-width: 760px; color: var(--muted); }
.docs-main a { color: inherit; }

.code-window { overflow: hidden; margin: 27px 0; padding: 5px; border: 1px solid #29333a; border-radius: 14px; background: #12181c; box-shadow: 0 24px 80px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.035); }
.code-top { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 9px 0 14px; border-bottom: 1px solid #202a30; color: #78848a; font-size: 10px; }
.code-top > span:not(.code-tabs) { display: flex; gap: 6px; }
.code-top > span > i { width: 7px; height: 7px; border-radius: 50%; background: #3b454b; }
.code-top b { font: 500 10px/1 var(--mono); }
.copy-button { min-width: 58px; min-height: 30px; border: 1px solid #303b42; border-radius: 99px; background: #161d21; color: #a8b0b3; cursor: pointer; font: 10px/1 var(--mono); }
.copy-button:hover { border-color: #526069; color: var(--text); }
.copy-button.is-copied { border-color: rgba(232,255,97,.5); color: var(--acid); }
.code-window pre { margin: 0; overflow: auto; padding: 27px 25px 30px; color: #d8dee0; font: 12px/1.85 var(--mono); tab-size: 2; }
.code-window.tall pre { max-height: 650px; }
.code-window.compact pre { padding-top: 22px; padding-bottom: 24px; }
.code-tabs { display: flex; align-self: stretch; }
.code-tab { position: relative; padding: 0 14px; border: 0; background: transparent; color: var(--quiet); cursor: pointer; font: 10px/1 var(--mono); }
.code-tab::after { content: ''; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 1px; background: transparent; }
.code-tab.is-active { color: var(--text); }
.code-tab.is-active::after { background: var(--acid); }
.token-prompt, .token-property { color: var(--acid); }
.token-string { color: #cde8ae; }
.token-keyword { color: #ff9a62; }
.token-number { color: #98cfee; }
.token-comment { color: #6f7a80; font-style: italic; }
.callout { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; margin: 24px 0; padding: 20px 22px; border-left: 2px solid var(--acid); background: rgba(232,255,97,.045); }
.callout > span { padding-top: 4px; color: var(--acid); font: 8px/1.4 var(--pixel); text-transform: uppercase; }
.callout p { margin: 0; color: #aeb6b9; font-size: 13px; }
.callout a { color: var(--text); }
.callout--warning { border-left-color: var(--orange); background: rgba(255,121,46,.045); }
.callout--warning > span { color: var(--orange); }

.endpoint-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.endpoint-heading span { padding: 7px 10px; background: var(--acid); color: #0b0e07; font: 800 10px/1 var(--mono); }
.endpoint-heading code { color: var(--text); font-size: clamp(21px, 3vw, 29px); font-weight: 650; letter-spacing: -.04em; }
.property-table { margin: 17px 0 27px; border-top: 1px solid var(--line); }
.property-row { display: grid; grid-template-columns: minmax(190px, .65fr) 1.35fr; gap: 28px; padding: 22px 5px; border-bottom: 1px solid var(--line-soft); }
.property-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.property-row code { color: var(--acid); font-size: 12px; font-weight: 700; }
.property-row b { color: var(--quiet); font: 9px/1.4 var(--mono); font-weight: 500; }
.property-row p { margin: 0; color: var(--muted); font-size: 13px; }
.response-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 29px 0 39px; padding: 1px; background: var(--line); }
.response-map article { min-height: 130px; padding: 22px; background: var(--panel); }
.response-map code { color: var(--acid); font-size: 12px; font-weight: 700; }
.response-map p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.status-table { margin: 28px 0; border-top: 1px solid var(--line); }
.status-table > div { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 17px 4px; border-bottom: 1px solid var(--line-soft); }
.status-table code { color: var(--acid); font-weight: 750; }
.status-table p { margin: 0; color: var(--muted); font-size: 13px; }

.config-table { margin: 28px 0; border: 1px solid var(--line); }
.config-table > div { display: grid; min-height: 58px; grid-template-columns: 1fr 130px 1.7fr; gap: 18px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.config-table > div:last-child { border-bottom: 0; }
.config-table .config-head { min-height: 38px; background: #11171a; color: var(--quiet); font: 8px/1 var(--pixel); text-transform: uppercase; }
.config-table code { color: var(--acid); font-size: 11px; }
.config-table b { color: #bdc4c6; font: 500 10px/1.3 var(--mono); }
.config-table p { margin: 0; color: var(--muted); font-size: 12px; }
.deployment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0; padding: 1px; background: var(--line); }
.deployment-grid article { min-height: 220px; padding: 27px; background: var(--panel); }
.deployment-grid h3 { margin-top: 47px; }
.deployment-grid p { color: var(--muted); font-size: 13px; }

.pipeline { margin: 40px 0 20px; }
.pipeline article { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 27px; padding-bottom: 45px; }
.pipeline article:not(:last-child)::before { content: ''; position: absolute; top: 48px; bottom: 0; left: 23px; border-left: 1px dashed #3c484e; }
.pipeline article > b { display: grid; z-index: 1; width: 48px; height: 48px; place-items: center; border: 2px solid var(--acid); border-radius: 50%; background: var(--bg); color: var(--text); font: 8px/1 var(--pixel); }
.pipeline article span { color: var(--acid); font: 8px/1.4 var(--pixel); text-transform: uppercase; }
.pipeline article h3 { margin: 9px 0 5px; font-size: 21px; }
.pipeline article p { max-width: 660px; margin: 0; color: var(--muted); font-size: 13px; }
.ranking-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 31px 0; padding: 1px; background: var(--line); }
.ranking-card > div { min-height: 205px; padding: 25px; background: var(--panel); }
.ranking-card strong { display: block; color: var(--acid); font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.ranking-card span { display: block; margin-top: 20px; color: var(--text); font-size: 13px; font-weight: 720; }
.ranking-card p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.check-list, .limit-list { margin: 30px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 36px 1fr; gap: 17px; padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.check-list li > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid rgba(232,255,97,.4); color: var(--acid); font-size: 11px; }
.check-list p { margin: 0; color: var(--muted); font-size: 13px; }
.check-list strong { color: var(--text); }
.limit-list { counter-reset: limits; border-top: 1px solid var(--line); }
.limit-list li { counter-increment: limits; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 19px 4px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.limit-list li::before { content: '0' counter(limits); color: var(--orange); font: 8px/1.8 var(--pixel); }

.docs-cta { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 26px; margin: 118px 0 60px; padding: 8px 13px 8px 0; border: 1px solid rgba(232,255,97,.35); background: radial-gradient(circle at 15% 100%, rgba(255,121,46,.1), transparent 37%), var(--panel); }
.docs-cta img { align-self: end; width: 180px; height: auto; object-fit: contain; image-rendering: pixelated; }
.docs-cta p { margin: 0 0 6px; color: var(--acid); font: 8px/1.4 var(--pixel); text-transform: uppercase; }
.docs-cta h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.docs-cta > div > span { color: var(--muted); font-size: 12px; }
.docs-cta > a { background: var(--acid); color: #0b0e07; font-size: 12px; font-weight: 760; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 30px; border-top: 1px solid var(--line-soft); color: var(--quiet); font: 10px/1.4 var(--mono); }
.docs-footer nav { display: flex; gap: 24px; }
.docs-footer a { text-decoration: none; }
.docs-footer a:hover { color: var(--acid); }

.on-this-page { position: fixed; top: calc(var(--header) + 44px); right: max(22px, calc((100vw - 1440px) / 2)); width: 170px; }
.on-this-page > p { margin-left: 0; }
.on-this-page nav { display: grid; padding-left: 12px; border-left: 1px solid var(--line); }
.on-this-page nav a { padding: 5px 0; color: var(--quiet); font-size: 11px; text-decoration: none; }
.on-this-page nav a:hover, .on-this-page nav a.is-active { color: var(--text); }
.edit-link { display: flex; justify-content: space-between; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line-soft); color: var(--quiet); font: 10px/1.4 var(--mono); text-decoration: none; }
.edit-link:hover { color: var(--acid); }
.menu-scrim { position: fixed; z-index: 8; inset: var(--header) 0 0; background: rgba(0,0,0,.54); }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .docs-main { width: min(820px, calc(100% - 72px)); }
  .on-this-page { display: none; }
}

@media (max-width: 800px) {
  :root { --header: 64px; }
  .docs-header { grid-template-columns: 1fr auto; padding: 0 16px; }
  .docs-header > nav { display: none; }
  .menu-button { position: relative; display: block; cursor: pointer; }
  .menu-button span { position: absolute; left: 10px; width: 22px; height: 1px; background: var(--text); transition: transform .6s cubic-bezier(.32,.72,0,1); }
  .menu-button span:first-child { top: 17px; }
  .menu-button span:nth-child(2) { top: 24px; }
  .menu-button[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-button[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .docs-layout { display: block; }
  .docs-sidebar { transform: translateX(-102%); transition: transform .7s cubic-bezier(.32,.72,0,1); }
  .docs-sidebar.is-open { transform: translateX(0); }
  .docs-main { width: min(100% - 36px, 760px); }
  .docs-hero { padding: 76px 0 62px; }
  .docs-hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .concept-grid, .ranking-card { grid-template-columns: 1fr; }
  .concept-grid article { min-height: 0; }
  .concept-grid h2 { margin-top: 28px; }
}

@media (max-width: 600px) {
  .docs-brand { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark img { width: 27px; height: 27px; }
  .docs-main { width: min(100% - 28px, 760px); }
  .docs-hero h1 { margin-top: 25px; font-size: clamp(43px, 13.8vw, 62px); line-height: .98; }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .secondary-action { justify-content: space-between; }
  .status-strip span { flex-basis: calc(50% - 1px); }
  .concept-grid { margin-bottom: 86px; }
  .docs-main > section:not(.docs-hero):not(.concept-grid):not(.docs-cta) { padding-top: 80px; }
  .section-heading { grid-template-columns: 40px 1fr; gap: 14px; }
  .section-heading > span { width: 36px; height: 36px; }
  .section-heading h2 { font-size: 31px; }
  .section-lede { font-size: 15px; }
  .code-window { margin-right: -5px; margin-left: -5px; }
  .code-window pre { padding: 22px 17px 25px; font-size: 10px; }
  .callout { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .property-row { grid-template-columns: 1fr; gap: 12px; }
  .response-map, .deployment-grid { grid-template-columns: 1fr; }
  .config-table { overflow-x: auto; }
  .config-table > div { min-width: 680px; }
  .pipeline article { grid-template-columns: 48px 1fr; gap: 15px; }
  .pipeline article > b { width: 40px; height: 40px; }
  .pipeline article:not(:last-child)::before { top: 40px; left: 19px; }
  .docs-cta { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: center; }
  .docs-cta img { width: 150px; margin: -70px auto -10px; }
  .docs-cta > a { justify-content: space-between; }
  .docs-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
}

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