/* HotPot — clean lotto UI */

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

:root {
  color-scheme: dark;

  /* Hoodball palette (source: hoodball.net app/globals.css) */
  --bg: #15161b;
  --lime: #c8ff00;
  --lime-hover: #d9ff4d;
  --lime-soft: #c8ff0029;
  --on-lime: #0b0c0f;

  /* POTLUCK token names remapped onto that palette */
  --surface: rgba(0, 0, 0, 0.4);
  --surface-2: rgba(0, 0, 0, 0.5);
  --border: rgba(255, 255, 255, 0.2);
  --border-soft: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --dim: rgba(255, 255, 255, 0.4);
  --brand: var(--lime);
  --brand-dim: var(--lime-soft);
  --on-brand: var(--on-lime);
  --accent: #fff;
  --accent-dim: rgba(255, 255, 255, 0.08);

  --max: 1040px;
  --ring: 327;
  --radius: 1rem;
  --radius-sm: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hoodball ambient glow (replaces POTLUCK film grain) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 70%);
}

h1, h2, h3 { font-family: var(--font-sans); letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }

.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  width: min(190px, 48vw);
  height: 32px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.35));
  background: transparent;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover { color: var(--text); }

.header-actions { display: flex; gap: 0.5rem; align-items: center; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .header-actions .btn-outline { display: inline-flex; }
}

@media (max-width: 767px) {
  .header-actions .btn-outline { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
  border: 1px solid var(--lime);
}

.btn:hover { transform: none; }
.btn-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }

.btn-outline {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

.btn-lg {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

/* Main */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 4rem;
}

/* Status */
.announcement {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.8125rem;
}

.announcement p { flex: 1; }
.announcement strong { color: #fff; font-weight: 600; }
.announcement a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.announcement-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(200, 255, 0, .13); }
.announcement-ca {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand);
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  cursor: pointer;
  word-break: break-all;
  text-align: left;
  transition: background 0.15s ease;
}
.announcement-ca:hover { background: rgba(200, 255, 0, 0.2); }
.announcement-ca::after { content: " ⧉"; opacity: 0.65; }

/* Hero */
.hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
  }
}

.hero-main {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 88% 45%, rgba(200, 255, 0, 0.1), transparent 65%),
    linear-gradient(135deg, rgba(48, 37, 15, 0.5), var(--surface) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-art {
  position: absolute;
  z-index: 0;
  right: -1.5rem;
  top: 50%;
  width: min(46%, 400px);
  transform: translateY(-46%) rotate(4deg);
  opacity: 0.8;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(200, 255, 0, 0.22));
  -webkit-mask-image: linear-gradient(100deg, transparent 2%, rgba(0, 0, 0, 0.55) 30%, #000 60%);
  mask-image: linear-gradient(100deg, transparent 2%, rgba(0, 0, 0, 0.55) 30%, #000 60%);
  pointer-events: none;
  animation: heroFloat 7s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  from { transform: translateY(-48%) rotate(3deg); }
  to { transform: translateY(-43%) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}

.hero-main > :not(.hero-art) { position: relative; z-index: 1; }

.hero-main::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  bottom: -180px;
  border: 1px solid rgba(200, 255, 0, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(200, 255, 0, 0.025), 0 0 0 72px rgba(200, 255, 0, 0.018);
  pointer-events: none;
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--lime-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--brand);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.meta { font-size: 0.8125rem; color: var(--muted); }

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--on-brand) 8%, var(--lime) 45%, var(--lime) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-rules {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-rules > span {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  padding: 0.38rem 0.55rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-rules b { color: var(--brand); font-family: var(--font-mono); font-size: 0.65rem; }

.label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.jackpot {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.jackpot-currency {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.jackpot-value {
  font-family: var(--font-sans);
  font-size: clamp(3.25rem, 8vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease;
  background: linear-gradient(180deg, var(--on-brand) 8%, var(--lime) 45%, var(--lime) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(200, 255, 0, 0.28));
}

.jackpot-value.tick { transform: scale(1.02); }

.jackpot-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Balls */
.balls-wrap { position: relative; z-index: 1; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.balls-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.balls-heading span { color: var(--brand); font-family: var(--font-mono); font-size: 0.65rem; }

.balls-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.ball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-brand);
  background: radial-gradient(circle at 35% 30%, var(--lime), var(--brand) 55%, var(--lime-hover));
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 5px 14px rgba(200, 255, 0, 0.18);
  animation: ballIn 0.35s ease backwards;
}

.ball:nth-child(1) { animation-delay: 0ms; }
.ball:nth-child(2) { animation-delay: 40ms; }
.ball:nth-child(3) { animation-delay: 80ms; }
.ball:nth-child(4) { animation-delay: 120ms; }
.ball:nth-child(5) { animation-delay: 160ms; }

@keyframes ballIn {
  from { transform: scale(0.6); opacity: 0; }
}

.ball--bonus {
  background: radial-gradient(circle at 35% 30%, var(--lime), var(--accent) 55%, var(--lime-hover));
  color: var(--on-lime);
  width: 56px;
  height: 56px;
}

.balls.shuffling .ball { animation: ballShuffle 0.4s ease; }

@keyframes ballShuffle {
  50% { transform: translateY(-6px) scale(0.95); opacity: 0.7; }
}

/* Hero side */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.timer-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  text-align: center;
}

.timer-card.urgent { border-color: rgba(255, 255, 255, 0.35); }

.timer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.timer-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.5rem;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 4; }

.ring-fill {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: var(--ring);
  stroke-dashoffset: var(--ring);
  transition: stroke-dashoffset 0.9s linear;
}

.timer-card.urgent .ring-fill { stroke: var(--accent); }
.timer-card.urgent .timer-value { color: var(--accent); }

.timer-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timer-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.stat-highlight { background: var(--accent-dim); border-color: rgba(255, 255, 255, 0.2); }
.stat-highlight .stat-value { color: var(--accent); }

.hero-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.entry-note { padding: 0 0.25rem; color: var(--muted); font-size: 0.7rem; line-height: 1.45; text-align: center; }

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.metric {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0.875rem;
  text-align: center;
  transition: border-color 0.25s;
}

.metric:hover { border-color: rgba(200, 255, 0, 0.22); }

.metric span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.metric strong {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Scroll reveal (class added by JS; no-JS users see everything) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 540px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Grid */
.grid-2 {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* A grid-2 holding a single card spans the full width rather than half. */
.grid-2 > :only-child { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.25s;
}

.card:hover { border-color: rgba(200, 255, 0, 0.22); }

.card h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.5rem; }

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card > p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime-hover), var(--brand));
  border-radius: 999px;
  transition: width 0.8s ease;
}

.progress-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tags > span {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-dim);
  color: var(--brand);
}

/* Sections */
.section { margin-bottom: 2.5rem; }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin-bottom: 1rem;
}

.section-heading { max-width: 520px; margin-bottom: 1.1rem; }
.section-heading h2 { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin: -0.25rem 0 1rem; max-width: 760px; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.step {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.step:hover {
  border-color: rgba(200, 255, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(200, 255, 0, 0.08);
}

/* Connector arrows between steps on desktop */
@media (min-width: 640px) {
  .step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -1.05rem;
    transform: translateY(-50%);
    color: rgba(200, 255, 0, 0.45);
    font-size: 1rem;
    pointer-events: none;
  }
}

.step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--lime), var(--brand) 55%, var(--lime-hover));
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.28), 0 6px 16px rgba(200, 255, 0, 0.25);
  color: var(--on-brand);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.step p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.step code, details code { color: var(--brand); font-family: var(--font-mono); font-size: 0.74rem; }

.proof-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(200, 255, 0, .08), rgba(255, 255, 255, .04));
}

.proof-card > div, .proof-link { position: relative; z-index: 1; }
.proof-logo {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 8%;
  width: 280px;
  transform: translateY(-50%) rotate(-8deg);
  opacity: 0.32;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.4));
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 55%);
  mask-image: linear-gradient(100deg, transparent 4%, #000 55%);
  pointer-events: none;
}

.proof-card h2 { margin-bottom: 0.5rem; font-size: 1.25rem; letter-spacing: -0.035em; }
.proof-card p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.proof-link { display: grid; gap: .35rem; padding: 1rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-sm); }
.proof-link span { color: var(--muted); font-size: .7rem; }
.proof-link code { color: #fff; font-family: var(--font-mono); font-size: .82rem; }
.proof-link b { color: var(--brand); font-size: .75rem; margin-top: .25rem; }

@media (min-width: 720px) {
  .proof-card { grid-template-columns: 1.4fr .9fr; padding: 1.75rem; }
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-2);
}

td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }
tbody tr:not(.empty):hover { background: rgba(200, 255, 0, 0.03); }
.empty td { text-align: center; color: var(--muted); padding: 2rem; }
.winner-wallet { color: var(--brand); font-family: var(--font-mono); font-size: 0.78rem; }
.winner-prize { color: var(--accent); font-weight: 700; white-space: nowrap; }
.winner-dev { color: var(--muted); font-weight: 500; font-size: 0.78rem; }

.section details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.section summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

.section summary::after { content: "+"; float: right; color: var(--brand); font-family: var(--font-mono); }
.section details[open] summary::after { content: "–"; }

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

.section details p {
  padding: 0 1rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-logo {
  width: min(220px, 70vw);
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 18px rgba(200, 255, 0, 0.3));
  background: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-links a:hover { color: var(--text); }
.footer p { font-size: 0.75rem; color: var(--dim); }

@media (max-width: 540px) {
  .announcement { align-items: flex-start; flex-wrap: wrap; }
  .announcement a { width: 100%; margin-left: 13px; }
  .hero-main { padding: 1.35rem; }
  .hero-rules { gap: .35rem; }
  .hero-rules span { font-size: .66rem; }
  .balls-heading span { display: none; }
  .brand-logo { width: 128px; height: 32px; }
  .hero-art { right: -4rem; width: 72%; opacity: .3; }
  .proof-logo { right: -4rem; width: 220px; opacity: .18; }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.modal-card .balls { justify-content: center; }

/* Winner receipt */
.winner-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(1, 4, 1, 0.82);
  backdrop-filter: blur(10px);
}

.winner-modal-card {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  padding: 2.25rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.45) 70%);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.winner-modal-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  pointer-events: none;
}

.winner-modal-close {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  right: 0.9rem;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.winner-kicker {
  position: relative;
  z-index: 1;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.winner-burst {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  margin: 1rem auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: var(--on-brand);
  background: radial-gradient(circle at 35% 28%, var(--on-brand), var(--accent) 65%, #a47904);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.4);
  font-size: 1.9rem;
}

.winner-modal h2 { position: relative; z-index: 1; font-size: 1.8rem; letter-spacing: -0.055em; }
.winner-wallet-label, .winner-prize-label { position: relative; z-index: 1; color: var(--muted); font-size: 0.7rem; margin-top: 1.15rem; text-transform: uppercase; letter-spacing: 0.07em; }
.winner-modal-wallet { position: relative; z-index: 1; margin-top: 0.2rem; color: var(--brand); font: 500 1rem var(--font-mono); }
.winner-modal-prize { position: relative; z-index: 1; margin-top: 0.1rem; color: var(--accent); font-size: 1.65rem; font-weight: 800; letter-spacing: -0.05em; }
.winner-modal-link { position: relative; z-index: 1; width: 100%; margin-top: 1.5rem; }
.winner-modal-link + .winner-modal-link { margin-top: 0.5rem; }
.winner-receipt { position: relative; z-index: 1; margin-top: 0.75rem; color: var(--dim); font-size: 0.68rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  z-index: 300;
}


/* ---------- Hoodball numeric + link treatment ---------- */
.jackpot-value,
.stat-value,
.metric strong,
.timer-value,
.winner-prize,
.winner-modal-prize,
.modal-sub,
table.data td.num,
td {
  font-variant-numeric: tabular-nums;
}

a.text-brand,
.announcement a,
.proof-link b,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement a:hover,
.proof-link:hover b {
  color: var(--lime-hover);
}

/* keep page content above the ambient glow */
main,
.header,
.footer {
  position: relative;
  z-index: 1;
}


/* The hidden attribute must win over component display rules. */
[hidden] { display: none !important; }


/* Contract-address chips in the top banner */
.announcement-addrs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.announcement-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 720px) {
  .announcement-ca { font-size: 0.66rem; }
}
