/* Roll the Pot — shared styles.
   No external fonts or scripts: the whole site is three files and loads instantly
   on a bad connection, which matters when someone is reading the rules to decide
   whether to trust you. */

:root {
  --ink: #0a0718;
  --surface: #140f2a;
  --surface-2: #1c1638;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2eefb;
  --muted: #a79fc4;
  --gold: #ffcc52;
  --gold-deep: #d1851a;
  --win: #5cf09e;
  --flag-bg: rgba(255, 204, 82, 0.10);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #f7f5fb;
    --surface: #ffffff;
    --surface-2: #f1edf9;
    --line: rgba(26, 12, 54, 0.12);
    --text: #1a1030;
    --muted: #5c527a;
    --gold: #9a6608;
    --gold-deep: #7a4f06;
    --win: #0f7a44;
    --flag-bg: rgba(154, 102, 8, 0.08);
    --shadow: 0 14px 36px rgba(40, 20, 80, 0.10);
  }
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.68 ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
        system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
}
nav a:hover, nav a[aria-current="page"] { color: var(--gold); }

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

.hero { padding: 74px 0 56px; text-align: center; }
.hero .mark { font-size: 3.6rem; line-height: 1; }
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  line-height: 1.1;
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto;
  max-width: 30rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- documents ---------- */

main { padding: 46px 0 84px; }

h1, h2, h3 { line-height: 1.18; }

h1.doc-title {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 34px; }

h2 {
  font-size: 1.22rem;
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: 1.03rem; margin: 26px 0 8px; }

p, li { color: var(--text); }
ul { padding-left: 1.25rem; }
li { margin: 7px 0; }

/* The all-caps sweepstakes disclosure. Legally load-bearing, so it gets to
   look like it matters rather than hiding in the body copy. */
.banner {
  background: var(--flag-bg);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 13px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0 0 34px;
}

.note {
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 11px 11px 0;
  padding: 15px 18px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.note strong { color: var(--text); }

/* Unfilled legal values. Deliberately loud — shipping one of these by accident
   is the kind of mistake that is obvious only after it is public. */
.placeholder {
  background: rgba(255, 90, 90, 0.16);
  border-bottom: 2px dotted #ff5a5a;
  color: inherit;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.95rem;
}
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 10px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 11px 0;
}
details[open] { background: var(--surface-2); }
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}
details[open] summary::after { content: "\2013"; }
details > p:last-child { margin-bottom: 18px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 52px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer nav { margin-bottom: 16px; gap: 18px; }
.site-footer p { color: var(--muted); margin: 7px 0; }

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

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 34px 0 34px; }
  .site-header { position: static; }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-top: 10px;
    padding-bottom: 6px;
  }
  nav { gap: 16px; }
  nav a { font-size: 0.85rem; min-height: 38px; }
  .live { padding: 24px 18px; border-radius: 18px; }
}

/* ---------- iOS / iPadOS ---------- */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  /* Notch and home-indicator safe areas; pages use viewport-fit=cover. */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: rgba(255, 204, 82, 0.2);
}
.site-footer { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

/* Comfortable touch targets everywhere, per Apple's 44pt guidance. */
nav a, summary { min-height: 44px; display: flex; align-items: center; }
.btn { min-height: 44px; }
nav a { padding: 4px 0; }

/* iPad and up: the prose column stays narrow for readability, but the live
   panel and cards get to use the width. */
@media (min-width: 900px) {
  .wide { max-width: 1000px; }
}

/* ---------- live panel ---------- */

.live {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.live .label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.live .pot {
  font-size: clamp(3rem, 13vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.live .odds { color: var(--muted); font-size: 0.95rem; margin: 4px 0 0; }
.live .cherries { font-size: 1.1rem; letter-spacing: 0.1em; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat .value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .name { color: var(--muted); font-size: 0.84rem; }

/* Shown until a real stats endpoint answers. Never a fabricated number: an app
   whose whole positioning is honesty cannot open with invented figures. */
.pending { color: var(--muted); opacity: 0.55; }

.winners-list { list-style: none; padding: 0; margin: 18px 0 0; }
.winners-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.winners-list li:last-child { border-bottom: 0; }
.winners-list .amount { color: var(--win); font-weight: 700; font-variant-numeric: tabular-nums; }
.winners-list .code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1a1030;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { color: #1a1030; filter: brightness(1.06); transform: translateY(-1px); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 34px 0 10px; }
.disclaimer { text-align: center; color: var(--muted); font-size: 0.84rem; margin-top: 14px; }

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

/* ---------- studio additions ---------- */

.hero .mark-icon {
  width: 112px; height: 112px; border-radius: 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}
.studio-credit { font-size: 0.86rem; }
