/* Shared styles for the inner pages (game pages, data protection, requests).
   Same tokens and components as the home page, without its scroll animations. */
:root {
  color-scheme: light;
  --blue: #3A86FF;
  --lavender: #BDB2FF;
  --pink: #FFD6E0;
  --blush: #FFF4F4;
  --white: #FFFFFF;
  --ink: #121A3A;
  --ink-soft: #3B4470;
  --muted: #5E6589;
  --blue-ink: #1F5FD6;
  --rose: #FF8FAB;
  --line: rgba(18, 26, 58, .12);
  --f-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--blush); color: var(--ink); font: 1rem/1.65 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--blue-ink); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.eyebrow { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-ink); font-weight: 500; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font: 500 1rem/1 var(--f-body); padding: 15px 24px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--white); text-decoration: none; cursor: pointer; transition: translate .2s ease, box-shadow .2s ease; }
.btn:hover { translate: 0 -2px; box-shadow: 0 6px 0 -1px var(--lavender); }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: .75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--blush); color: var(--ink); }
.chip.soon { background: var(--pink); border-color: #F5A9BD; color: #6B1F36; }
.chip.built { background: #E4EEFF; border-color: #9EC0FF; color: #133F8F; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--blush) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.brand small { display: block; font-family: var(--f-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.75); }
.nav a.cta { background: var(--ink); color: var(--white); margin-left: 6px; }
.menu-btn { display: none; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 .95rem var(--f-body); color: var(--ink); cursor: pointer; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: var(--blush); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* Game sub-navigation (tabs under the header) */
.game-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.game-nav .wrap { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; min-height: 56px; padding-block: 8px; }
.game-nav .game-id { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; }
.game-nav .game-id img { width: 32px; height: 32px; border-radius: 9px; }
.game-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.game-nav ul a { display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .92rem; }
.game-nav ul a:hover { background: var(--blush); color: var(--ink); }
.game-nav ul a[aria-current="page"] { background: var(--ink); color: var(--white); }

/* Page hero for inner pages */
.page-hero { background: linear-gradient(165deg, #D7E6FF 0%, var(--lavender) 52%, var(--pink) 88%, var(--blush) 100%); padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-top: 10px; }
.page-hero .lede { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.updated { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); margin-top: 14px; }

/* Long-form text (data protection) */
.prose { display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-top: 28px; }
.prose h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 620px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--blush); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 500; color: var(--ink); }
.callout { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 8px; }
.callout h3 { margin: 0; }

/* Forms */
input, select, textarea { font: 1rem var(--f-body); color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 500; font-size: .95rem; padding: 0; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field fieldset { border: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: #F2F7FF; }
.choice input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.choice b { display: block; font-weight: 500; }
.choice span { font-size: .88rem; color: var(--muted); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.status { font-weight: 500; }
.status:empty { display: none; }
.status.ok { color: #145A2E; background: #E3F6E9; border-radius: 12px; padding: 12px 14px; }
.status.err { color: #8A1F2B; background: #FDE7EA; border-radius: 12px; padding: 12px 14px; }
@media (max-width: 640px) { .form .two, .choices { grid-template-columns: minmax(0, 1fr); } }

/* Footer with the hover-reactive pixel grid */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--blush); padding-block: clamp(48px, 7vw, 72px) 28px; border-top: 1px solid var(--line); }
.footer-grid { position: absolute; inset: 0; z-index: -1; display: grid; gap: 2px; padding: 2px; align-content: start; }
.footer-grid span { background: var(--pink); opacity: .4; border-radius: 2px; aspect-ratio: 1; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; }
.footer-top p { color: var(--ink-soft); margin-top: 14px; max-width: 22rem; }
.footer-col h4 { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: start; }
.footer-col a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 2px 8px; margin-left: -8px; border-radius: 4px; transition: background-color .2s ease, color .2s ease; }
.footer-col a:hover, .footer-col a:focus-visible { background: var(--ink); color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-soft); }
.footer-bottom a { color: var(--ink-soft); text-decoration: none; padding: 2px 6px; border-radius: 4px; }
.footer-bottom a:hover { background: var(--ink); color: var(--white); }
@media (max-width: 820px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }

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