/* GameTide site styles. Direction A: Ledger, with a modern aura layer. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f7f9;
  --bg-3: #eceff3;
  --ink: #15181c;
  --ink-2: #3d454e;
  --ink-3: #5b636d;
  --line: #e2e5e9;
  --line-2: #eef0f2;
  --accent: #0b6e6e;
  --accent-2: #2ec4b6;
  --accent-3: #6c5ce7;
  --accent-ink: #ffffff;
  --warn-bg: #fff3cd;
  --warn-ink: #7a5a00;
  --warn-line: #f0d98a;
  --chip-bg: #eef0f2;
  --chip-ink: #3d454e;
  --chip-line: #d7dbe0;
  --shadow: 0 1px 2px rgba(21, 24, 28, 0.04), 0 8px 24px rgba(21, 24, 28, 0.06);
  --shadow-hover: 0 2px 4px rgba(21, 24, 28, 0.06), 0 16px 40px rgba(21, 24, 28, 0.10);
  --aura-1: rgba(46, 196, 182, 0.35);
  --aura-2: rgba(108, 92, 231, 0.22);
  --aura-3: rgba(11, 110, 110, 0.18);
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1117;
    --bg-2: #111820;
    --bg-3: #182029;
    --ink: #e8ecf0;
    --ink-2: #b7c0ca;
    --ink-3: #8a949f;
    --line: #222b35;
    --line-2: #1a222b;
    --accent: #3fd1c4;
    --accent-2: #2ec4b6;
    --accent-3: #9b8cff;
    --accent-ink: #06111f;
    --warn-bg: #2a2410;
    --warn-ink: #f5c84a;
    --warn-line: #4a3f14;
    --chip-bg: #182029;
    --chip-ink: #b7c0ca;
    --chip-line: #2b3541;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
    --aura-1: rgba(46, 196, 182, 0.22);
    --aura-2: rgba(108, 92, 231, 0.22);
    --aura-3: rgba(63, 209, 196, 0.12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1117;
  --bg-2: #111820;
  --bg-3: #182029;
  --ink: #e8ecf0;
  --ink-2: #b7c0ca;
  --ink-3: #8a949f;
  --line: #222b35;
  --line-2: #1a222b;
  --accent: #3fd1c4;
  --accent-2: #2ec4b6;
  --accent-3: #9b8cff;
  --accent-ink: #06111f;
  --warn-bg: #2a2410;
  --warn-ink: #f5c84a;
  --warn-line: #4a3f14;
  --chip-bg: #182029;
  --chip-ink: #b7c0ca;
  --chip-line: #2b3541;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
  --aura-1: rgba(46, 196, 182, 0.22);
  --aura-2: rgba(108, 92, 231, 0.22);
  --aura-3: rgba(63, 209, 196, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Skip link */
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
}

/* Status strip */
.status { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.status .wrap { display: flex; align-items: center; gap: 10px; min-height: 42px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a200; box-shadow: 0 0 0 4px rgba(224, 162, 0, 0.18); flex: none; }
.dot.live { background: #1fa971; box-shadow: 0 0 0 4px rgba(31, 169, 113, 0.18); }

/* Aura */
.aura { position: relative; overflow: hidden; isolation: isolate; }
.aura::before, .aura::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.aura::before { width: 720px; height: 720px; left: -200px; top: -320px; background: radial-gradient(closest-side, var(--aura-1), transparent 70%); }
.aura::after { width: 640px; height: 640px; right: -180px; top: -80px; background: radial-gradient(closest-side, var(--aura-2), transparent 70%); }
.aura .grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.9), transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .aura::before { animation: drift 18s ease-in-out infinite alternate; }
  .aura::after { animation: drift 22s ease-in-out infinite alternate-reverse; }
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(40px, 30px); } }

.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.hero-copy { grid-column: span 12; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-side { grid-column: span 12; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 980px) { .hero-copy { grid-column: span 6; } .hero-side { grid-column: span 6; } }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 580px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); position: relative; }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(46, 196, 182, 0.28); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glow { background: linear-gradient(90deg, var(--accent), var(--accent-3)); color: #fff; }
.btn-glow:hover { box-shadow: 0 10px 28px rgba(108, 92, 231, 0.32); }

/* Cards */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-pad { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { font-size: 15px; color: var(--ink-2); }
.card .icon { color: var(--accent); }

.tile {
  position: relative; padding: 16px 14px; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
}
.tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--accent-2), transparent 45%, var(--accent-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55;
}
.tile .big { font-family: var(--mono); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; position: relative; }
.tile .lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; position: relative; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Chips */
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); border: 1px solid var(--chip-line); white-space: nowrap; }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.chip.live { background: rgba(31, 169, 113, 0.12); color: #137a51; border-color: rgba(31, 169, 113, 0.35); }
.chip.accent { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* Tables */
.table-card { padding: 18px 20px; overflow: hidden; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.table-head .name { font-weight: 600; font-size: 14px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { font-weight: 600; text-align: left; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; vertical-align: top; }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.mono td, table.mono th { font-family: var(--mono); }
.facts td:first-child { color: var(--ink-3); white-space: normal; }
.facts td { white-space: normal; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.tint { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.section h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; }
.section .sub { color: var(--ink-2); margin-top: 8px; max-width: 680px; }
.more { font-size: 15px; font-weight: 500; }

/* Showcase */
.shot { height: 160px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 13px; position: relative; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .chip { position: absolute; top: 12px; left: 12px; background: var(--bg); }
.proj { overflow: hidden; display: flex; flex-direction: column; }
.proj .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.proj .links { display: flex; gap: 14px; font-size: 14px; margin-top: 4px; }
.proj.empty { border-style: dashed; align-items: center; justify-content: center; text-align: center; padding: 28px 24px; gap: 10px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-2), var(--accent-3)); opacity: 0.6; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 20px; padding: 0 0 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl-year { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.tl-item h3 { font-size: 20px; margin: 4px 0 8px; }
.tl-item p { color: var(--ink-2); max-width: 760px; }
.tl-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.tl-stats b { color: var(--ink); font-weight: 500; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 46px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; }
.notice { font-size: 13px; color: var(--ink-3); }

/* Prose */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); }
.prose h3 { font-size: 20px; margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; color: var(--ink); }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.025em; }
.page-hero .lede { margin-top: 14px; }

/* Footer */
.site-footer { background: #15181c; color: #c9ced4; padding: 40px 0 44px; font-size: 13px; line-height: 1.6; margin-top: 0; }
:root[data-theme="dark"] .site-footer, :root:not([data-theme="light"]) .site-footer { background: #070b10; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .site-footer { background: #15181c; } }
.site-footer a { color: #c9ced4; }
.site-footer a:hover { color: #fff; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-top .name { color: #fff; font-weight: 600; font-size: 15px; }
.foot-top .name span { color: #8a929b; font-weight: 400; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.notices { border-top: 1px solid #2a2f36; margin-top: 20px; padding-top: 18px; display: grid; gap: 12px 32px; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 720px) { .notices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-toggle { background: none; border: 1px solid #2a2f36; color: #c9ced4; border-radius: 8px; height: 36px; padding: 0 12px; cursor: pointer; font: inherit; font-size: 13px; }
.theme-toggle:hover { border-color: #c9ced4; }

.hero-table { font-size: 12px; }
.hero-table th, .hero-table td { padding: 7px 8px; }

.wrap.prose { max-width: 1200px; }
.wrap.prose > * { max-width: 760px; }

/* Sample row strip */
.samples-section { overflow: hidden; }
.marquee { overflow: hidden; position: relative; padding: 4px 0 10px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; padding-left: 24px; }
.sample { flex: none; width: min(900px, 88vw); padding: 16px 18px; box-shadow: var(--shadow); }
.sample .table-head .name { font-size: 12px; }
.sample table { font-size: 12px; }
.sample th, .sample td { padding: 6px 8px; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 90s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee:focus .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
