/* Go Kaptai legal pages: /privacy/, /terms/, /delete/ (one stylesheet for all three, served from /privacy/).
   They outlive the pre-registration page (it gives way to the game on 16 Dec 2026), so nothing here reaches into
   /prereg/. Refined palette B and the B2 rules as on that page (src/ui/kit/tokens.css): panels told apart by fill, depth
   and shadow, never an outline; keyboard focus fills with pale brass. No external files, no inline styles (the CSP is
   style-src 'self'). */
/* page-only subsets of the game's Anek Bangla (scripts/prereg-fonts.py, OFL 1.1, see CREDITS.md): 400 and 600 */
@font-face { font-family: 'Anek Bangla'; src: url(fonts/anek-400.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Anek Bangla'; src: url(fonts/anek-600.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }

:root {
  --surface-0: #100d0a; --surface-1: #1b1713; --surface-2: #27211b; --surface-3: #342c24; --surface-4: #43392f;
  --shade-rgb: 2 1 0; --accent-rgb: 214 180 101;
  --ink-1: #f5eedc; --ink-2: #d7cbb6; --ink-3: #b9ad99;
  --accent: #d6b465; --accent-hi: #f0dda5; --accent-lo: #b58e45; --on-accent: #1b140a;
  --lac: radial-gradient(120% 90% at 15% 0%, rgb(240 221 165 / .035), transparent 65%), linear-gradient(160deg, var(--surface-2), var(--surface-1) 72%);
  --lac-shadow: inset 0 12px 24px -18px rgb(245 238 220 / .10), inset 0 -18px 28px -22px rgb(2 1 0 / .55), 0 14px 36px -10px rgb(2 1 0 / .60);
  --well: inset 0 2px 8px rgb(var(--shade-rgb) / .5);
  --depth-1: 0 6px 14px rgb(var(--shade-rgb) / .45);
  --f-body: 'Anek Bangla', 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--surface-0); font-synthesis-weight: none; scroll-padding-top: 16px; }
body { margin: 0; min-height: 100vh; background: var(--surface-0); color: var(--ink-1); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
html:lang(en) body { line-height: 1.6; }
[hidden] { display: none !important; }
a { color: var(--accent-hi); text-underline-offset: 3px; border-radius: 6px; }
a:hover { color: #fff6dc; }
b, strong { font-weight: 600; }
h1, h2, h3, p, li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
:focus, :focus-visible { outline: none; }
a:focus-visible, .lang:focus-visible, .skip:focus-visible { background: var(--accent-hi); color: var(--on-accent); text-decoration: none; box-shadow: 0 0 0 3px var(--accent-hi); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 9; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* header: the wordmark home, and the language switch (it shows only when the script runs; without it both languages
   are on the page, Bangla first) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 880px; margin: 0 auto; padding: 12px 16px 0; padding-top: max(12px, env(safe-area-inset-top)); }
.mark { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 22px; color: var(--accent-hi); text-decoration: none; }
.lang { display: none; border: 0; cursor: pointer; padding: 8px 18px; min-height: 44px; min-width: 44px; border-radius: 999px; font: 600 15px/1.2 var(--f-body); background: var(--surface-3); color: var(--ink-1); box-shadow: var(--depth-1); }
.js .lang { display: inline-block; }
.lang:hover { background: var(--surface-4); }

main { max-width: 880px; margin: 0 auto; padding: 8px 16px 0; }
.js[data-lang="bn"] .doc.en, .js[data-lang="en"] .doc.bn { display: none; }
.doc + .doc { margin-top: 40px; }

.doc-head { padding: 18px 0 6px; }
h1 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 600; color: var(--ink-1); }
.sub { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.updated { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; box-shadow: var(--well); }

/* the short version: one lacquered card */
.gist { margin: 18px 0 8px; padding: 16px 18px; border-radius: 18px; background: var(--lac); box-shadow: var(--lac-shadow); }
.gist h2 { margin: 0 0 6px; font-size: 18px; color: var(--accent-hi); }
.gist ul { margin: 0; padding-left: 1.2em; }
.gist li { margin: 4px 0; }

.toc { margin: 18px 0 4px; padding: 14px 18px; border-radius: 16px; background: var(--surface-1); box-shadow: var(--well); }
.toc h2 { margin: 0 0 4px; font-size: 16px; color: var(--ink-2); }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 2px 0; break-inside: avoid; }
.toc a { display: inline-block; padding: 4px 2px; }

section { margin: 28px 0 0; }
section > h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; font-weight: 600; color: var(--accent-hi); }
h3 { margin: 16px 0 4px; font-size: 17px; font-weight: 600; color: var(--ink-1); }
p { margin: 8px 0; color: var(--ink-1); }
ul, ol { margin: 8px 0; padding-left: 1.3em; }
li { margin: 5px 0; }
li::marker { color: var(--accent); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink-1); overflow-wrap: anywhere; }

/* a recessed well for steps and key facts */
.box { margin: 12px 0; padding: 12px 16px; border-radius: 14px; background: var(--surface-1); box-shadow: var(--well); }
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; line-height: 1; background: var(--accent); color: var(--on-accent); }
.star { color: var(--accent); }

/* tables of what and why: stacked on phones */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: 4px 0; }
.tbl th { text-align: left; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 0 12px; }
.tbl td { vertical-align: top; padding: 10px 12px; background: var(--surface-1); }
.tbl td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.tbl td:last-child { border-radius: 0 12px 12px 0; color: var(--ink-2); }
@media (max-width: 599px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { margin: 0 0 8px; border-radius: 12px; overflow: hidden; background: var(--surface-1); }
  .tbl td { border-radius: 0 !important; padding: 8px 12px; }
  .tbl td:first-child { padding-bottom: 0; }
}

.contact { font-weight: 600; }
.contact.todo { color: var(--accent-hi); }

.foot { max-width: 880px; margin: 48px auto 0; padding: 18px 16px 36px; padding-bottom: max(36px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 -10px 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--ink-1); font-weight: 600; text-decoration-color: rgb(var(--accent-rgb) / .6); text-underline-offset: 4px; }
.foot nav a[aria-current="page"] { color: var(--accent-hi); text-decoration: none; }
.foot p { margin: 0; color: var(--ink-3); }

@media (min-width: 900px) {
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  .top { padding-top: 22px; }
  .mark { font-size: 24px; }
  section > h2 { font-size: 23px; }
}
@media print {
  .lang, .skip, .toc { display: none !important; }
  .doc.bn, .doc.en { display: block !important; }
}
