/* FEEPOT
 *
 * Monochrome, matching the wordmark: white on black, one weight of grey for
 * secondary text, and nothing else. The lottery-ball banner supplies all the
 * texture, so the interface stays flat and out of its way.
 *
 * The jackpot number is the largest thing on the page by a wide margin — it is
 * the one figure anyone came to see.
 */

:root {
  --bg: #000;
  --panel: #0a0a0a;
  --line: #1e1e1e;
  --line-soft: #141414;
  --text: #fff;
  --dim: #8a8a8a;
  --faint: #545454;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding-inline: 20px;
}

.accent { color: #fff; }

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 62px;
}

.brand img { height: 26px; width: auto; }

.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--dim);
  flex: none;
  transition: color 0.15s, border-color 0.15s;
}

.social:hover { color: #fff; border-color: var(--dim); }

.ca {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 5px 5px 11px;
  min-width: 0;
}

.ca-label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-weight: 700;
}

.ca code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 30vw;
}

.ca-copy {
  border: 0;
  background: #fff;
  color: #000;
  font: 700 9.5px/1 ui-monospace, monospace;
  letter-spacing: 0.1em;
  padding: 7px 10px;
  cursor: pointer;
  flex: none;
}

.ca-copy:hover { background: var(--dim); }
.ca-copy.copied { background: var(--dim); color: #000; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

/* Plain black behind the jackpot. The lottery-ball image is kept in assets for
   social cards, but behind the number it competed with the one figure the page
   exists to show. */
.hero-bg { display: none; }

.hero-inner {
  position: relative;
  padding: 72px 20px 78px;
  text-align: center;
}

/* ------------------------------------------------------------ drawing pill */

.drawing-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 17px;
  margin-bottom: 26px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.pill-label { color: var(--dim); }
.pill-dot { color: var(--faint); }

.pill-clock {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- jackpot */

/* The number is the page. Everything else is caption. */
.jackpot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}

.jackpot .currency {
  font-size: clamp(36px, 9vw, 92px);
  font-weight: 800;
  color: #fff;
}

#jackpotValue {
  font-size: clamp(48px, 15vw, 152px);
  font-weight: 800;
}

.jackpot.stale #jackpotValue,
.jackpot.stale .currency { color: var(--faint); }

.jackpot-line {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--dim);
}

.jackpot-line .tickets { color: #fff; font-weight: 600; }
.jackpot-line .accent-line { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------- CTAs */

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 27px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

/* White on black is the accent here — the brand has no second colour. */
.cta-primary { background: #fff; color: #000; }
.cta-primary:hover { background: var(--dim); }
.cta-primary.disabled { background: var(--line); color: var(--faint); pointer-events: none; }

.cta-ghost { border: 1px solid var(--line); color: #fff; }
.cta-ghost:hover { border-color: var(--dim); }

.hero-foot {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--faint);
}

/* ------------------------------------------------------------- stats band */

/* Four live figures directly under the jackpot: what funds the tickets, how
   many we hold, what to expect from them, and what has been won. This is what
   gives the page something to say between draws. */
.stats-band { border-bottom: 1px solid var(--line-soft); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}

.stat { background: var(--bg); padding: 22px 18px; }

.stat-value {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-value.pending { color: var(--faint); }

.stat-label {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.stat-note { margin-top: 4px; font-size: 11.5px; color: var(--faint); }

/* ------------------------------------------------------------- win split */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
}

.split-part { background: var(--bg); padding: 24px 20px; }

.split-pct {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.split-name {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.split-part p { margin: 12px 0 0; font-size: 13px; color: var(--dim); line-height: 1.65; }

/* -------------------------------------------------------------------- main */

.main { padding: 58px 20px 70px; }

.main h2 {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin: 0 0 22px;
}

section + section { margin-top: 56px; }

/* ------------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.steps li {
  display: flex;
  gap: 13px;
  background: var(--bg);
  padding: 20px 18px;
}

.steps .n {
  flex: none;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
  padding-top: 2px;
}

.steps strong { font-size: 14px; font-weight: 700; display: block; }
.steps p { margin: 5px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.55; }

/* --------------------------------------------------------------------- win */

.win-lead { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; max-width: 640px; }

.example {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--panel);
}

.example-head {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 10px;
}

.example p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.7; }
.example strong { color: #fff; }

.win-note { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

/* ------------------------------------------------------------------- roles */

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.role { background: var(--bg); padding: 22px 18px; text-align: center; }
.role-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.role p { margin: 0; font-size: 12.5px; color: var(--dim); }
.role-us .role-name { color: #fff; }
.role-us { background: var(--panel); }

.roles-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 620px;
}

/* ------------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 calc(34px + env(safe-area-inset-bottom, 0px));
}

.foot p {
  margin: 0 0 9px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.65;
  max-width: 660px;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 560px) {
  .top-inner { height: 56px; }
  .ca code { max-width: 40vw; }
  .hero-inner { padding: 40px 20px 38px; }
  .jackpot-card { padding: 24px 18px 22px; }
  .countdown .seg { min-width: 52px; }
  .main { padding-top: 44px; }
}
