/* TimeStamp Games: shared design system.
   No web fonts, no third-party requests: system fonts only, so visitors' browsers
   never contact anyone but this site. */

:root {
  --bg: #FBF8F3;
  --bg2: #F3EEE6;
  --surface: #FFFFFF;
  --ink: #15120E;
  --muted: #5B554D;
  --faint: #6A635A;
  --rule: #E7DFD3;

  /* Game accents (text-safe on light backgrounds) */
  --ts: #9A4708;
  --dr: #6D28D9;
  --nt: #C2361F;

  /* Legacy tokens used by the policy pages */
  --dr-light: rgba(109, 40, 217, 0.07); --dr-border: rgba(109, 40, 217, 0.22);
  --ts-light: rgba(180, 83, 9, 0.07);   --ts-border: rgba(180, 83, 9, 0.22);

  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { content: none !important; } /* old pages layered a noise texture here */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { display: inline-flex; gap: 3px; }
.brand-mark span { width: 9px; height: 9px; border-radius: 3px; }
.brand-mark span:nth-child(1) { background: #E0A526; }
.brand-mark span:nth-child(2) { background: #7C3AED; }
.brand-mark span:nth-child(3) { background: #E2462C; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .site-nav summary {
  font-size: 0.93rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav > a:hover, .site-nav summary:hover, .site-nav details[open] summary { color: var(--ink); background: var(--bg2); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav details { position: relative; }
.site-nav summary::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(21, 18, 14, 0.12); padding: 6px;
}
.site-nav .menu a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.site-nav .menu a:hover { background: var(--bg2); }
.brand, .site-nav > a, .site-nav summary { white-space: nowrap; }
@media (max-width: 640px) {
  .site-nav > a.hide-sm { display: none; }
  .site-nav > a, .site-nav summary { padding: 8px 9px; }
  .brand { font-size: 0.98rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 54px; padding: 6px 22px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }
.store-btn strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8D0C4; margin-top: 0; padding: 64px 0 36px; }
.site-footer a { color: #F6F1E7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #A99F92; margin: 0 0 14px; font-family: var(--body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.95rem; }
.footer-about p { margin: 12px 0 0; font-size: 0.95rem; max-width: 34ch; }
.footer-about .brand { color: #F6F1E7; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 48px; padding-top: 22px; font-size: 0.83rem; color: #A99F92; display: grid; gap: 6px; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Policy / document pages ---------- */
.doc-wrap { max-width: 780px !important; margin: 0 auto !important; padding: 64px 24px 96px !important; }
.doc-wrap h1 { font-size: clamp(2.1rem, 5vw, 3rem) !important; font-weight: 800 !important; letter-spacing: -0.03em !important; }
.doc-wrap h2 { font-weight: 800 !important; }
.doc-wrap p, .doc-wrap li, .doc-wrap td { color: #37322C !important; }
.doc-meta { color: var(--muted) !important; }
.doc-eyebrow { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.auto-badge { color: #15803D !important; }
.doc-wrap .contact-cta p { color: #E4DCCF !important; }
.contact-section p, .contact-note { color: rgba(255, 255, 255, 0.74) !important; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.data-table th { text-align: left; padding: 11px 16px; background: var(--bg2); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--rule); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.badge-nt { background: #FBE3DD !important; color: #8E2513 !important; border-color: rgba(194, 54, 31, 0.25) !important; }
