/* ============================================================
   HOME — Ponke hero (intro), the "Army" two-column section for the
   wheel + right column, the "Token" two-column section for the pot.
   ============================================================ */

/* ---------- intro: Ponke hero ------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--intro-glow); color: var(--ink); overflow: hidden; cursor: pointer; }
.intro.is-leaving { opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease); }
.intro-hero { position: relative; z-index: 1; min-height: 100vh; max-width: 1400px; margin-inline: auto; }
.intro-machine { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: pointer; touch-action: manipulation; }
.intro-stage { position: relative; display: grid; place-items: center; margin-top: -4vh; }

.intro-tag { margin-top: 18px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.03em; text-align: center; }
.intro-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 72px; text-align: center; }
.intro-chev { position: absolute; z-index: 2; bottom: 24px; left: calc(50% - 20px); width: 40px; height: 40px; color: var(--ink); cursor: pointer; }
.intro-skip { position: absolute; z-index: 2; right: 20px; bottom: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); padding: 6px 10px; }
.intro-skip:hover { color: var(--ink); }

/* ---------- home: editorial directory (masthead · jackpot · destinations) ---------- */
.home-ed { display: grid; justify-items: center; text-align: center; gap: 18px; padding-top: 8px; }
.home-ed .eyebrow { color: var(--ink-50); }
.ed-title { margin: 0.18em 0 0; font-family: var(--font-display); font-weight: 400; color: #fff; line-height: 1.08; letter-spacing: 0.01em;
  font-size: clamp(32px, 5.4vw, 56px); -webkit-text-stroke: 1.5px var(--pop-line); paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 var(--pop-line); text-wrap: balance; }
.ed-lead { max-width: 56ch; }
.ed-hero { display: grid; justify-items: center; gap: 8px; }
.ed-pot { font-family: var(--font-display); font-weight: 400; line-height: 0.9; color: var(--ink); letter-spacing: 0.01em;
  font-size: clamp(40px, 6vw, 80px); font-variant-numeric: tabular-nums; }
.ed-pot-usd { font-family: var(--font-body); font-weight: 700; font-size: clamp(16px, 2.2vw, 26px); color: var(--ink-50);
  font-variant-numeric: tabular-nums; margin-top: -2px; }
.ed-hero .ed-chip { margin-top: 4px; }
.ed-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: #fff; border: 2px solid var(--line);
  border-radius: 9999px; padding: 8px 8px 8px 15px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ed-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-scale 2s var(--ease) infinite; }
.cd-tiles { display: inline-flex; align-items: center; gap: 5px; }
.cd-tiles .u { background: #111; color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1;
  padding: 6px 9px 4px; border-radius: 9px; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.cd-tiles .sep { font-family: var(--font-display); opacity: 0.55; color: #fff; }
.ed-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; max-width: 1000px; margin-top: 8px; }
.ed-card { display: grid; gap: 8px; padding: 22px 18px; text-align: left; text-decoration: none; color: var(--card-ink);
  box-shadow: 0 4px 0 var(--black); transition: transform 0.2s var(--ease), border-color 0.25s var(--ease); }
.ed-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.ed-card .ic { width: 26px; height: 26px; color: var(--orange); }
.ed-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 0.01em; }
.ed-card p { margin: 0; font-size: 13px; color: var(--card-ink-50); line-height: 1.45; }
.ed-card .go { font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); }
@media (max-width: 820px) { .ed-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ed-cards { grid-template-columns: 1fr; } .ed-card { text-align: center; justify-items: center; } }

/* ---------- section 1: wheel + right column (Ponke "Army" layout) ---------- */
.home { padding-top: 80px; }
.army { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }
.army > * { min-width: 0; }
.wheel-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 32px 24px 28px; }
.pot-strip { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pot-strip .eyebrow { color: var(--card-ink-50); }
.pot-strip-value { font-family: var(--font-display); font-size: clamp(38px, 3.8vw, 54px); line-height: 1; letter-spacing: 0.02em; }
.pot-strip-sub { font-size: 14px; font-weight: 600; color: var(--card-ink-50); }
.right-col { display: grid; grid-template-rows: auto 1fr; gap: 24px; min-width: 0; }

/* the wheel: flat Ponke colours, black outlines, no gradients */
.wheel { position: relative; width: min(100%, 420px); margin-top: 60px; aspect-ratio: 1; }
.wheel-disc-wrap { position: absolute; inset: 0; border-radius: 50%; }
.wheel-svg { width: 100%; height: 100%; overflow: visible; }
.wheel-disc { transform-origin: 300px 300px; transform-box: view-box; will-change: transform; }
.wheel-seg.is-win { stroke: var(--white); stroke-width: 8; }
.wheel-label { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; pointer-events: none; }
.wheel-label-sub { font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
.wheel-hub { position: absolute; left: 35%; top: 35%; width: 30%; height: 30%; border-radius: 50%; background: var(--wheel-hub); color: var(--card-ink); border: 4px solid var(--wheel-rim); display: grid; place-content: center; text-align: center; gap: 2px; padding: 8px; }
.wheel-hub-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--card-ink-50); }
.wheel-hub-value { font-size: clamp(16px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.wheel-hub-sub { font-size: 11px; font-weight: 500; color: var(--card-ink-50); }
.wheel-hub.is-winner { border-color: var(--black); background: var(--green); color: #fff; }
.wheel-hub.is-winner .wheel-hub-eyebrow, .wheel-hub.is-winner .wheel-hub-sub { color: rgba(255, 255, 255, 0.8); }
.wheel-hub.is-winner .wheel-hub-value { font-size: clamp(13px, 1.5vw, 18px); }
.wheel-pointer { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); width: 20%; display: grid; justify-items: center; z-index: 3; }
.wheel-cradle { position: absolute; bottom: 8%; width: 74%; height: 22%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: var(--wheel-rim); }
.wheel-ball { position: relative; width: 100%; will-change: transform; }
.wheel-ball svg { width: 100%; height: auto; }
.wheel-tip { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid var(--black); margin-top: -12px; }
.wheel.is-landed .wheel-tip { opacity: 0; }
.wheel-ping { position: absolute; left: 50%; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid var(--white); opacity: 0; pointer-events: none; z-index: 2; }
.wheel.is-landed .wheel-ping { opacity: 1; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }


/* what the wheel is showing right now: the live preview or a draw being replayed */
.wheel-status { display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 460px; }
.wheel-note { font-size: 13px; font-weight: 500; color: var(--card-ink-50); }
.wheel.is-final .wheel-seg { stroke-width: 6; }
/* the glow rides on the circular wrap as a box-shadow: a filter here would re-rasterize the spinning disc every frame */
.wheel.is-final .wheel-disc-wrap { box-shadow: 0 0 18px 6px color-mix(in srgb, var(--orange) 55%, transparent); }

/* the finalists as they are drawn, then the equal-odds final */
.finalists { width: 100%; max-width: 560px; display: grid; gap: 10px; }
.finalists[hidden] { display: none; }
.finalists-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.finalists-head .eyebrow { color: var(--card-ink-50); }
.final-count { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.final-count:not(:empty) { animation: pulse-scale 1s linear infinite; }
.finalists-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finalist { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card-soft, rgba(0, 0, 0, 0.04)); }
.finalist.is-in { animation: finalist-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.finalist .identicon { border-radius: 8px; }
.finalist-who { display: grid; min-width: 0; }
.finalist-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finalist-who small { font-size: 12px; color: var(--card-ink-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finalist-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-family: var(--font-display); font-size: 18px; }
.finalist.is-picked { background: var(--green); border-color: var(--black); color: #fff; }
.finalist.is-picked .finalist-who small { color: rgba(255, 255, 255, 0.8); }
.finalist.is-out { opacity: 0.45; text-decoration: line-through; }
@keyframes finalist-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* winner card: Ponke outlined card */
.winner { display: none; width: 100%; max-width: 560px; gap: 12px; }
.winner.is-open { display: grid; }
.winner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.winner-addr { font-size: 24px; font-weight: 600; letter-spacing: -0.05em; }
.winner-prize { display: flex; align-items: baseline; gap: 10px; }
.winner-prize b { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--green); }
.winner-meta { font-size: 14px; color: var(--card-ink-50); }

/* leaderboard: green solid card ("Helmet Tool") */
.lb .h-sm { margin-bottom: 4px; }
.lb .sub { font-size: 14px; opacity: 0.85; margin-bottom: 18px; }
.lb-rows { display: grid; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); transition: background-color 200ms var(--ease); }
.lb-row:hover { background: rgba(255, 255, 255, 0.2); }
.lb-row .rank { width: 22px; font-weight: 800; font-size: 14px; opacity: 0.8; }
.lb-row .identicon { border-radius: 8px; }
.lb-row .who { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .amt { font-weight: 800; font-size: 15px; color: #fff; white-space: nowrap; }
.lb-row.is-first .rank { color: var(--orange); }

/* chat: blue solid card ("Join the Headquarters") */
.chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.chat-head .h-sm { margin: 0; }
.chat-list { overflow-y: auto; display: grid; gap: 8px; align-content: start; padding-right: 4px; max-height: 320px; scrollbar-width: thin; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .identicon { border-radius: 8px; flex-shrink: 0; margin-top: 2px; }
.msg-body { min-width: 0; }
.msg-who { font-size: 11px; font-weight: 700; opacity: 0.8; }
.msg-time { font-size: 10px; opacity: 0.6; margin-left: 6px; font-weight: 500; }
.msg-text { margin-top: 2px; display: inline-block; padding: 7px 11px; border-radius: 12px; background: var(--card-ink-05); font-size: 14px; line-height: 1.4; word-break: break-word; }
.msg.is-mine .msg-text { background: var(--green); color: #fff; }
.chat-form { display: flex; gap: 8px; margin-top: 14px; }
.chat-input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--card-ink); font: inherit; font-size: 14px; outline: none; }
.chat-input::placeholder { color: var(--card-ink-50); }
.chat-send { width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; transition: transform 300ms var(--ease), background-color 300ms var(--ease); }
.chat-send:hover { background: var(--black); color: #fff; transform: scale(1.05); }
.chat-send svg { width: 18px; height: 18px; }
.chat-note { margin-top: 10px; font-size: 11px; color: var(--card-ink-50); }

/* ---------- section 2: the pot (Ponke "Token" layout) ------------------ */
.token { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; }
.token-art { border-radius: 24px; background: var(--orange); border: 3px solid var(--black); display: grid; place-items: center; min-height: 380px; position: relative; overflow: hidden; }
.token-art .sb { width: 68%; height: auto; }
.token-art .ground { position: absolute; bottom: 12%; width: 60%; height: 8%; border-radius: 50%; background: var(--orange-deep); }
.token-panel { display: grid; gap: 18px; align-content: start; }
.token-panel .big { font-family: var(--font-display); font-size: clamp(56px, 6.6vw, 96px); font-weight: 400; letter-spacing: 0.01em; line-height: 1; }
.token-panel .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.token-panel .h-md { margin-top: 8px; }
.token-panel .lead { font-size: 16px; }
.token-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.token-cta { display: grid; justify-items: center; margin-top: 40px; gap: 12px; }

@media (max-width: 1100px) {

  .army { grid-template-columns: minmax(0, 1fr); }
  .right-col { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .token { grid-template-columns: 1fr; }
  .token-art { min-height: 300px; }
}
@media (max-width: 760px) {
  .right-col { grid-template-columns: 1fr; }
  .wheel { margin-top: 64px; }
  .token-cards { grid-template-columns: 1fr; }
  .wheel-card { padding: 24px 14px 22px; }
}

/* ---------- intro: four hatted balls in a row spelling MEGA ---------- */
.intro-stage { position: relative; display: grid; place-items: center; margin-top: -4vh; overflow: visible; }
.intro-row { --w: clamp(96px, min(23vw, 26vh), 250px); position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; outline: none; padding: 0; }
.intro-row:focus-visible .intro-ball-art { outline: 4px solid var(--black); outline-offset: 8px; border-radius: 50%; }
.intro-row:hover .sb-hat { animation-duration: 1.2s; }
.intro-ball { position: relative; width: var(--w); flex-shrink: 0; }
.intro-ball + .intro-ball { margin-left: calc(var(--w) * -0.26); }   /* spheres almost touching */
.intro-ball-art { display: block; width: 100%; transform-origin: 50% 61.54%; }
.intro-ball-art svg { width: 100%; height: auto; }
.intro-ground { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 7%; border-radius: 50%; background: var(--orange-deep); z-index: 0; transition: opacity 500ms var(--ease); }
.intro-hat-loose { position: absolute; margin: 0; z-index: 1; pointer-events: none; transform-origin: 50% 50%; }
.intro-hat-loose svg { width: 100%; height: auto; display: block; }
.intro-trail { position: absolute; left: 30%; top: 60%; width: 60%; height: 16%; border-radius: 50%; z-index: -1; background: var(--orange-deep); opacity: 0; transform-origin: right center; pointer-events: none; }

/* ---------- opening-screen particles: two layers that drift with the cursor (js/particles.js) ---------- */
.pf { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pf-layer { position: absolute; inset: -48px; will-change: transform; }   /* bleed so a shift never shows an edge */
.pf-p { position: absolute; display: block; transform: translate(-50%, -50%); }
.pf-p > i { display: block; width: 100%; height: 100%; transform: rotate(var(--r, 0deg)); opacity: var(--o, 1); }
.pf-p.tw > i { animation: pf-twinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite alternate; }
.pf-p svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes pf-twinkle { from { opacity: 0.3; transform: rotate(var(--r, 0deg)) scale(0.8); } to { opacity: var(--o, 1); transform: rotate(var(--r, 0deg)) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .pf-p > i { animation: none; } }

/* ---------- home directory: four big bubbles under the countdown ---------- */
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; margin: 8px auto 0; }
.dir-item { display: grid; place-items: center; min-height: 150px; padding: 16px 24px; border-radius: 9999px; background: var(--green); border: 3px solid var(--line); text-decoration: none; transition: transform 300ms var(--ease), background-color 300ms var(--ease); }
.dir-item:hover { transform: translateY(-4px) scale(1.02); background: var(--green-deep); }
.dir-text { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.2vw, 72px); line-height: 1; letter-spacing: 0.01em; color: #fff; -webkit-text-stroke: 2px var(--green-deep); paint-order: stroke fill; text-shadow: 0.07em 0.07em 0 var(--green-deep); }   /* white on green with a deep-green shadow, no orange */
.wheel-solo { max-width: 640px; margin-inline: auto; }
.leaderboard-solo { max-width: 760px; margin-inline: auto; }
@media (max-width: 720px) { .dir { grid-template-columns: minmax(0, 1fr); gap: 14px; } .dir-item { min-height: 96px; } }

/* ---------- hourly countdown under the (smaller) heading ---------- */
.section-head-sm { margin-bottom: 32px; gap: 12px; }
.countdown { display: grid; justify-items: center; gap: 2px; margin-top: 6px; }
.countdown .eyebrow { color: var(--ink-50); }
.countdown-time { font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---------- ticket holders leaderboard (right column) ---------- */
.leaderboard { display: grid; gap: 16px; align-content: start; padding: 24px; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.lb-head .eyebrow { color: var(--card-ink-50); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-item { display: grid; grid-template-columns: 28px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-soft, rgba(0, 0, 0, 0.04)); }
.lb-item.is-first { background: var(--orange); }
.lb-rank { font-family: var(--font-display); font-size: 18px; text-align: center; color: var(--card-ink-50); }
.lb-item.is-first .lb-rank { color: var(--black); }
.lb-item .identicon { border-radius: 9px; }
.lb-who { display: grid; gap: 6px; min-width: 0; }
.lb-addr { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { display: block; height: 6px; border-radius: 9999px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.lb-item.is-first .lb-bar { background: rgba(0, 0, 0, 0.18); }
.lb-num { display: grid; justify-items: end; line-height: 1.1; }
.lb-num b { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.lb-num small { font-size: 11px; font-weight: 700; color: var(--card-ink-50); }
.lb-note { font-size: 13px; }

/* the wheel page: no card behind the wheel, it sits straight on the navy ground */
.card.wheel-solo { background: transparent; border-color: transparent; color: var(--ink); }
.card.wheel-solo:hover { border-color: transparent; }
.wheel-solo { --wheel-rim-2: rgba(255, 255, 255, 0.22); }
.wheel-solo .pot-strip .eyebrow,
.wheel-solo .pot-strip-sub,
.wheel-solo .wheel-note,
.wheel-solo .finalists-head .eyebrow,
.wheel-solo .finalist-who small { color: var(--ink-50); }
.wheel-solo .pill-black,
.wheel-solo .btn-black { background: var(--ink); color: var(--bg); }
.wheel-solo .wheel-tip { border-top-color: var(--ink); }
.wheel-solo .wheel-disc-wrap { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--orange) 30%, transparent); }
.wheel-solo .finalist { border-color: var(--ink-10); background: var(--ink-05); }
.wheel-solo .finalist.is-picked { border-color: var(--green); }
