/* ==========================================================================
   KENO CLUB — website design system
   Derived from the app's "Classic Midnight Cabinet" design language.
   Tokens mirror FlyCowKeno/Design/DesignSystem.swift exactly.
   No external requests: system fonts only, all art inline.
   ========================================================================== */

:root {
  /* Cabinet palette (FlyCowPalette) */
  --abyss: #000512;
  --midnight: #001134;
  --panel: #00163B;
  --panel-raised: #02214C;
  --cobalt: #09379E;
  --cobalt-bright: #0F45B8;
  --carmine: #D71F19;
  --carmine-deep: #A30D13;
  --gold: #FFC400;
  --gold-bright: #FFDD00;
  --enamel: #F7F7F4;
  --silver: #D5D8DE;
  --ink: #010712;
  --mist: #C7CDD9;
  --mint: #3DD2A2;

  /* Derived chrome */
  --gold-dim: rgba(255, 196, 0, 0.55);
  --gold-faint: rgba(255, 196, 0, 0.22);
  --gold-ghost: rgba(255, 196, 0, 0.1);
  --line: rgba(213, 216, 222, 0.14);
  --shadow-hard: 0 6px 0 0 rgba(0, 5, 18, 0.55);

  /* Type — Avenir Next Condensed is the app's display face on Apple
     devices; the stack degrades to the closest condensed grotesques. */
  --font-display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow",
    "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --container: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --radius: 14px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--midnight);
  background-image:
    radial-gradient(120rem 60rem at 50% -20rem, rgba(15, 69, 184, 0.16), transparent 65%),
    repeating-linear-gradient(90deg, rgba(247, 247, 244, 0.016) 0 1px, transparent 1px 9px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8em 1.2em;
  background: var(--gold-bright);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--enamel);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before,
.kicker::after {
  content: "";
  height: 1px;
  flex: 0 0 2.2rem;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.kicker::after {
  flex: 1;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.kicker--center {
  justify-content: center;
}

.kicker--center::before,
.kicker--center::after {
  flex: 0 0 2.6rem;
}

.kicker--center::before {
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.kicker--center::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--mist);
}

.gold-text {
  color: var(--gold-bright);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Wordmark lockup — mirrors ClassicCabinetComponents: enamel + goldBright
   with the carmineDeep hard shadow. Never composed with the VIP capsule. */

.wordmark {
  display: inline-flex;
  gap: 0.28em;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wordmark .wm-keno {
  color: var(--enamel);
}

.wordmark .wm-club {
  color: var(--gold-bright);
}

.wordmark.wm-shadow .wm-keno,
.wordmark.wm-shadow .wm-club {
  text-shadow: 0.05em 0.05em 0 var(--carmine-deep);
}

/* VIP capsule — the program's mark, always separate from the wordmark. */

.vip-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.42em 0.95em;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--abyss);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.status-capsule {
  display: inline-block;
  padding: 0.42em 1em;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--panel-raised);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--enamel);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.7em;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
  text-indent: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.13s ease, box-shadow 0.13s ease,
    background-color 0.13s ease, border-color 0.13s ease;
}

.btn-gold {
  background: var(--gold-bright);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-hard);
}

.btn-gold:hover {
  background: #ffe84d;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 0 rgba(0, 5, 18, 0.55);
}

.btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 0 rgba(0, 5, 18, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--gold-dim);
  color: var(--enamel);
}

.btn-ghost:hover {
  background: var(--panel-raised);
  border-color: var(--gold);
  color: var(--enamel);
}

.btn-note {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 5, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-faint);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.45rem;
  margin-right: auto;
}

.nav-brand:hover .wm-keno {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:not(.btn):hover {
  color: var(--gold-bright);
}

.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav .btn {
  padding: 0.7em 1.2em;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head h2 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 0.9rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .lede {
  margin-inline: auto;
}

.rule-gold {
  border: 0;
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--gold-faint);
  background:
    radial-gradient(90rem 44rem at 78% -8rem, rgba(9, 55, 158, 0.35), transparent 68%),
    radial-gradient(70rem 40rem at 8% 110%, rgba(0, 5, 18, 0.7), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-copy .kicker {
  margin-bottom: 1.6rem;
}

.hero-title {
  display: block;
  font-size: clamp(4.2rem, 11vw, 8rem);
  line-height: 0.88;
}

.hero-title .wordmark {
  display: block;
  white-space: normal;
}

.hero-title .wm-keno,
.hero-title .wm-club {
  display: block;
}

.hero-tagline {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--enamel);
}

.hero-tagline em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-lede {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--mist);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-meta {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.hero-meta .dot {
  color: var(--gold);
  padding-inline: 0.5em;
}

/* --------------------------------------------------------------------------
   Cabinet demo
   -------------------------------------------------------------------------- */

.cabinet {
  position: relative;
  max-width: 540px;
  margin-inline: auto;
  padding: clamp(0.9rem, 2vw, 1.3rem);
  background: linear-gradient(180deg, var(--panel), #001030);
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 5, 18, 0.7),
    inset 0 0 0 4px rgba(255, 196, 0, 0.12),
    0 24px 60px rgba(0, 5, 18, 0.65);
}

.cab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0.35rem 0.7rem;
}

.cab-brand {
  font-size: 1.25rem;
}

.cab-draw {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

.cab-draw b {
  color: var(--gold-bright);
  font-weight: 900;
}

.cab-status {
  margin: 0 0.35rem 0.75rem;
  padding: 0.5em 0.9em;
  background: var(--abyss);
  border: 1px solid var(--gold-faint);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(3px, 0.7vw, 5px);
  padding: 0.35rem;
}

.cell {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  border: 1px solid var(--cobalt-bright);
  border-radius: 18%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.72rem, 1.9vw, 1.02rem);
  color: var(--enamel);
  user-select: none;
}

.cell.marked {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.cell.drawn {
  background: var(--carmine);
  border-color: var(--carmine-deep);
}

.cell.hit {
  background: var(--carmine);
  border-color: var(--carmine-deep);
  box-shadow: inset 0 0 0 2px var(--gold-bright), 0 0 14px rgba(255, 221, 0, 0.3);
}

.cell.flash {
  animation: cell-flash 0.42s ease-out;
}

@keyframes cell-flash {
  0% {
    transform: scale(1.28);
    filter: brightness(2.1);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

.board-divider {
  grid-column: 1 / -1;
  height: 10px;
  margin-block: 2px;
  border-block: 1px solid var(--gold-dim);
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 2px, transparent 2.6px),
    var(--abyss);
}

.cab-read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0.35rem 0;
  padding: 0.65em 0.9em;
  background: var(--abyss);
  border: 1px solid var(--gold-faint);
  border-radius: 8px;
}

.cab-read .stat {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  min-width: 0;
}

.cab-read .stat:nth-child(2) {
  text-align: center;
}

.cab-read .stat:last-child {
  text-align: right;
}

.cab-read .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.cab-read .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--enamel);
}

.cab-read .value.win-pos {
  color: var(--gold-bright);
}

.cab-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.7rem 0.35rem 0.15rem;
}

.cab-balls {
  display: flex;
  gap: 0.35rem;
  overflow: hidden;
  min-height: 30px;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}

.ball {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--enamel);
  color: var(--ink);
  border: 2px solid rgba(1, 7, 18, 0.5);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
}

.ball.hit {
  background: var(--carmine);
  color: var(--enamel);
  border-color: var(--gold-bright);
}

.cab-replay {
  flex: 0 0 auto;
  padding: 0.65em 1.1em;
  font-size: 0.88rem;
  border-radius: 9px;
}

.cab-banner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 5, 18, 0.55);
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.cab-banner.show {
  opacity: 1;
  visibility: visible;
}

.cab-banner .banner-card {
  padding: 1rem 2.2rem 1.15rem;
  background: var(--abyss);
  border: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 5, 18, 0.8);
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cab-banner.show .banner-card {
  transform: scale(1);
}

.banner-tier {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-shadow: 0.05em 0.05em 0 var(--carmine-deep);
}

.banner-amount {
  display: block;
  margin-top: 0.35em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--enamel);
}

.cab-note {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Stat strip
   -------------------------------------------------------------------------- */

.stat-strip {
  border-block: 1px solid var(--gold-faint);
  background: rgba(0, 5, 18, 0.45);
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-block: 1.9rem;
}

.stat-strip .stat {
  text-align: center;
}

.stat-strip .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--gold-bright);
}

.stat-strip .lbl {
  margin-top: 0.45em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.card {
  padding: 1.7rem 1.6rem 1.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.card .glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  color: var(--gold-bright);
}

.card h3 {
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--mist);
}

.card p b {
  color: var(--enamel);
  font-weight: 600;
}

/* Win tier chips */

.tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
  justify-content: center;
}

.tier-chip {
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: var(--abyss);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--enamel);
}

.tier-chip small {
  font-size: 0.8em;
  font-weight: 700;
  color: var(--mist);
  letter-spacing: 0.08em;
}

.tier-chip.mega {
  border-color: var(--carmine);
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Paytable
   -------------------------------------------------------------------------- */

.pay-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.6vw, 1.1rem);
}

.pay-cell {
  padding: 1.15rem 0.9rem 1.2rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--gold-faint);
  border-radius: 12px;
}

.pay-cell.top {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.12);
}

.pay-cell .combo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.pay-cell .award {
  display: block;
  margin-top: 0.4em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.pay-note {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--mist);
}

.pay-note .flag {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footnote {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: rgba(199, 205, 217, 0.75);
}

/* --------------------------------------------------------------------------
   Progressive jackpot
   -------------------------------------------------------------------------- */

.jackpot-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  background:
    radial-gradient(60rem 30rem at 50% -12rem, rgba(215, 31, 25, 0.22), transparent 70%),
    var(--abyss);
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 5, 18, 0.7), inset 0 0 0 4px rgba(255, 196, 0, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.jackpot-meter .meter-label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.jackpot-meter .meter-value {
  margin-top: 0.35em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 34px rgba(255, 196, 0, 0.35);
}

.jackpot-meter .meter-unit {
  margin-top: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.jackpot-how h3 {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.jackpot-how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.jackpot-how li {
  counter-increment: step;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--enamel);
}

.jackpot-how li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  display: grid;
  place-items: center;
  background: var(--carmine);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--enamel);
}

.jackpot-how .gc-note {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Club split (index teaser + club page)
   -------------------------------------------------------------------------- */

.club-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}

.club-col {
  padding: clamp(1.8rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.club-col--floor {
  background: var(--panel);
  border: 1px solid var(--line);
}

.club-col--vip {
  background: linear-gradient(180deg, #001030, var(--abyss));
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0, 5, 18, 0.7), 0 18px 50px rgba(0, 5, 18, 0.5);
}

.club-col .vip-capsule,
.club-col .status-capsule {
  align-self: flex-start;
}

.club-col h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: 0.05em;
}

.club-col .sub {
  color: var(--mist);
  font-size: 0.98rem;
}

.club-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.club-list li {
  position: relative;
  padding-left: 1.35em;
  font-size: 0.99rem;
  color: var(--silver);
}

.club-list li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.48em;
  width: 0.5em;
  height: 0.5em;
  transform: rotate(45deg);
  background: var(--gold);
}

.club-list li b {
  color: var(--enamel);
  font-weight: 600;
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.benefit-list li {
  position: relative;
  padding-left: 1.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--enamel);
}

.benefit-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0.06em;
  color: var(--gold-bright);
  font-size: 0.85em;
}

.price-line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.price-line small {
  display: block;
  margin-top: 0.3em;
  font-weight: 700;
  font-size: 0.68em;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* The mandated honesty line — keep verbatim wherever VIP Club appears. */

.honesty {
  padding: 0.9em 1.1em;
  background: rgba(0, 5, 18, 0.55);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.13em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Daily return ladder (club page)
   -------------------------------------------------------------------------- */

.ladder {
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.ladder-grid {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) repeat(7, minmax(4.6rem, 1fr));
  gap: 4px;
  min-width: 640px;
}

.ladder-grid > span {
  padding: 0.75em 0.5em;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}

.ladder-head {
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.ladder-row-label {
  background: transparent;
  justify-items: start !important;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--enamel);
}

.ladder-row-label.vip {
  color: var(--gold-bright);
}

.ladder-base {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--enamel);
}

.ladder-vip {
  background: linear-gradient(180deg, rgba(255, 196, 0, 0.16), rgba(255, 196, 0, 0.07));
  border: 1px solid var(--gold-dim);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Cabinet styles gallery (club page)
   -------------------------------------------------------------------------- */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.style-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.style-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
}

/* Per-card palette comes from inline custom props (--sf, --sfb, --sp, --spr, --sm) */

.style-preview {
  padding: 1.1rem;
  background: var(--sm);
  border-bottom: 1px solid var(--line);
}

.style-frame {
  padding: 0.7rem;
  background: var(--sp);
  border: 2px solid var(--sf);
  border-radius: 12px;
}

.style-frame .style-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sfb);
  margin-bottom: 0.55rem;
}

.style-cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.style-cells span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18%;
  background: var(--cobalt);
  border: 1px solid var(--cobalt-bright);
  color: var(--enamel);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
}

.style-cells .s-hit {
  background: var(--carmine);
  border-color: var(--carmine-deep);
  box-shadow: inset 0 0 0 2px var(--sfb);
}

.style-cells .s-raised {
  background: var(--spr);
  border-color: transparent;
  color: var(--sfb);
}

.style-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
}

.style-meta .name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--enamel);
}

.style-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: var(--abyss);
}

.style-tag.free {
  border-color: var(--line);
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   Membership card / cashier (club page)
   -------------------------------------------------------------------------- */

.membership {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  background: linear-gradient(180deg, #001030, var(--abyss));
  border: 2px solid var(--gold);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0, 5, 18, 0.7), 0 24px 60px rgba(0, 5, 18, 0.55);
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}

.membership .price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0.04em 0.04em 0 var(--carmine-deep);
}

.membership .price small {
  font-size: 0.38em;
  letter-spacing: 0.22em;
  color: var(--mist);
  text-shadow: none;
}

.membership .renew {
  max-width: 52ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.6;
}

.membership .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.cashier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.cashier-table th,
.cashier-table td {
  padding: 0.9em 1em;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cashier-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.cashier-table td.pack {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--enamel);
}

.cashier-table td.credits {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}

.cashier-table td.price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--silver);
  text-align: right;
}

.cashier-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.4rem 1.1rem;
}

/* --------------------------------------------------------------------------
   Game Center band
   -------------------------------------------------------------------------- */

.gc-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.gc-tile {
  padding: 1.6rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.gc-tile .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-bright);
}

.gc-tile .big small {
  font-size: 0.55em;
  color: var(--enamel);
}

.gc-tile p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--mist);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  background:
    radial-gradient(50rem 26rem at 50% 0, rgba(9, 55, 158, 0.3), transparent 70%),
    var(--abyss);
  border-block: 1px solid var(--gold-faint);
}

.cta-band .wordmark {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
}

.cta-band .lede {
  margin: 1.2rem auto 2rem;
}

/* --------------------------------------------------------------------------
   FAQ (support page)
   -------------------------------------------------------------------------- */

.faq-group {
  max-width: 820px;
  margin-inline: auto;
}

.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group h2 {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 1.2rem;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

details.faq[open] {
  border-color: var(--gold-dim);
}

details.faq summary {
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--enamel);
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq .faq-body {
  padding: 0 1.25rem 1.2rem;
  color: var(--mist);
  font-size: 0.99rem;
}

details.faq .faq-body p + p {
  margin-top: 0.7em;
}

details.faq .faq-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--gold-faint);
  background: var(--abyss);
  padding-block: 3.2rem 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 2.5rem;
}

.footer-brand .wordmark {
  font-size: 1.7rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--mist);
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.badge-18 .roundel {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--silver);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--enamel);
}

.badge-18 span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-links h3 {
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--silver);
  font-size: 0.96rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-legal p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(199, 205, 217, 0.72);
}

.footer-legal p + p {
  margin-top: 0.8em;
}

.footer-bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(199, 205, 217, 0.72);
}

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--gold-faint);
  background:
    radial-gradient(80rem 36rem at 70% -10rem, rgba(9, 55, 158, 0.3), transparent 68%);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.page-hero h1 .accent {
  display: block;
  color: var(--gold-bright);
  text-shadow: 0.045em 0.045em 0 var(--carmine-deep);
}

.page-hero .lede {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--pad);
}

.notfound .code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  color: var(--carmine);
  text-shadow: 0.04em 0.04em 0 var(--carmine-deep);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cell.flash,
  .cab-banner .banner-card,
  .btn,
  .card,
  .style-card {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid,
  .styles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jackpot-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 0.8rem 1.2rem;
  }

  .nav-brand {
    font-size: 1.3rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
  }

  .card-grid,
  .styles-grid,
  .gc-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .club-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .pay-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .cab-read .value {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   LEGAL PROSE  —  /privacy/
   A long-form reading column. Deliberately plainer than the rest of the site:
   this is the page people read when they are trying to find out something
   specific, so legibility beats atmosphere.
   ========================================================================== */

.legal-dates {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim, rgba(255, 255, 255, 0.6));
}

.legal {
  max-width: 74ch;
}

.legal h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.25;
  scroll-margin-top: 5.5rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFC400;
}

.legal h3:first-child {
  margin-top: 0;
}

.legal p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.legal ul {
  margin: 0 0 1.3rem;
  padding-left: 1.15rem;
  list-style: none;
}

.legal ul li {
  position: relative;
  margin-bottom: 0.65rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.legal ul li::before {
  content: "◆";
  position: absolute;
  left: -1.15rem;
  font-size: 0.62em;
  top: 0.55em;
  color: #FFC400;
}

.legal a {
  color: #FFDD00;
  text-underline-offset: 0.18em;
}

.legal a:hover {
  color: #fff;
}

/* The at-a-glance box at the top. */
.legal-summary {
  margin-bottom: 3rem;
  padding: 1.6rem 1.6rem 1.1rem;
  border: 1px solid rgba(255, 196, 0, 0.28);
  border-radius: 14px;
  background: rgba(255, 196, 0, 0.05);
}

.legal-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFC400;
}

/* The App Store privacy-label amendment, held apart so it is obvious it is
   the operative disclosure and not marketing prose. */
.legal-callout {
  margin: 1.6rem 0 2rem;
  padding: 1.7rem 1.6rem 0.6rem;
  border-left: 3px solid #FFC400;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.04);
}

.legal-table-wrap {
  margin: 1.4rem 0 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th {
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid rgba(255, 196, 0, 0.35);
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFC400;
}

.legal-table td {
  padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.legal-table tbody tr td:first-child {
  color: #fff;
  font-weight: 600;
}

.legal-contact {
  margin: 1.2rem 0 1.6rem;
}

@media (max-width: 640px) {
  .legal-summary,
  .legal-callout {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .legal-table {
    min-width: 30rem;
  }
}

/* --------------------------------------------------------------------------
   .btn-soon — a button-shaped statement of fact, not a control.
   The App Store listing is not live yet, so the store CTAs are non-links.
   Styled to read as "not yet" rather than "broken".
   -------------------------------------------------------------------------- */

.btn-soon {
  cursor: default;
  opacity: 0.9;
  filter: saturate(0.82);
  box-shadow: none;
}

.btn-soon:hover,
.btn-soon:focus {
  transform: none;
  box-shadow: none;
  filter: saturate(0.82);
}
