/* Scoreboard — the app's own materials, on the web.
   Near-black slate, brass, warm chalk ink. Numerals are the brand, so they
   are tabular everywhere and they are the only thing allowed to be loud. */

:root {
  --base: #0E1210;
  --raised: #171C19;
  --sunken: #090C0A;
  --line: #232A26;
  --ink: #F2EFE7;
  --ink-muted: #99A29B;
  --ink-faint: #5C645D;
  --brass: #C8A24A;
  --brass-dim: #6E5A2E;
  --felt: #123C40;
  --wrap: 68rem;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* The eyebrow: small, tracked, brass. Straight out of the app. */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 18, 16, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand-row { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-row:hover { text-decoration: none; }
.brand-row img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.brand-row .name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--ink-muted); }
.site-header nav a:hover { color: var(--brass); }

/* ---------- hero ---------- */

/* Vertical only — the shorthand would wipe out .wrap's side padding, since
   the hero carries both classes and this rule comes later. */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 30px;
}

/* The signature: a split-flap board, the same object as the app icon. */
.flap-board {
  display: inline-flex;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1a1f1c, #0b0f0d);
  border: 2px solid var(--brass-dim);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  margin-bottom: 34px;
}
.flap {
  position: relative;
  min-width: 86px;
  padding: 14px 12px;
  border-radius: 10px;
  background: #141815;
  border: 1px solid #000;
  font-variant-numeric: tabular-nums;
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* The hinge line across the middle of each flap. */
.flap::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.85);
}
.flap .cap {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.flap-sep {
  align-self: center;
  font-size: 40px;
  color: var(--brass);
  padding: 0 2px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--brass);
  color: #0E1210;
  font-weight: 600;
  font-size: 16px;
  border: 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.btn.ghost:hover { color: var(--brass); border-color: var(--brass-dim); }

/* ---------- sections ---------- */

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
section > .wrap > p.sub { color: var(--ink-muted); max-width: 58ch; margin: 0 0 32px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

/* The game list reads as a rack, matching the app's shelf. */
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.rack span {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--sunken);
  font-size: 15px;
  color: var(--ink-muted);
}
.rack span b { color: var(--ink); font-weight: 600; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}

/* ---------- legal pages ---------- */

.legal { padding: 48px 0 80px; }
.legal .doc { max-width: 46rem; }
.legal .back { display: inline-block; margin-bottom: 26px; color: var(--ink-muted); font-size: 15px; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 34px; }
.legal h2 {
  font-size: 1.16rem;
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: var(--ink-muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* The one claim the whole policy rests on, given its own weight. */
.callout {
  background: var(--sunken);
  border: 1px solid var(--brass-dim);
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--ink); }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 6px;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--ink); font-weight: 600; }
table.data td { color: var(--ink-muted); }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  color: var(--ink-faint);
  font-size: 14.5px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); }

@media (max-width: 560px) {
  .flap { min-width: 66px; font-size: 46px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
