/* WREATH. A red hero carrying the wheel, then plain white sections. One typeface, flat colour. */
:root {
  --red: #d7192a;
  --red-deep: #b01221;
  --ink: #111714;
  --green: #0b4d33;
  --paper: #ffffff;
  --mist: #f3f4f1;
  --line: #e3e6e1;
  --muted: #5d6862;
  --gold: #f2b630;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
canvas, svg, img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.035em; }

.notice { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 12px; border: 0; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, opacity .15s, background .15s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn.white { background: #fff; color: var(--red); }
.btn.white:hover { background: #fff3f3; }
.btn.line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #26302b; }
.btn.line-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.link-btn { background: none; border: 0; padding: 4px; color: var(--muted); font: 500 14px/1.2 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }

/* hero */
.hero { background: var(--red); color: #fff; padding-bottom: 56px; overflow-x: clip; }
.nav { display: flex; align-items: center; gap: 12px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.brand canvas { width: 30px; height: 30px; }
.links { display: flex; gap: 26px; margin-right: 14px; }
.links a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.links a:hover { opacity: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 28px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: .98; font-weight: 800; margin-bottom: 22px; }
.lede { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 0 0 30px; opacity: .92; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.stage { display: flex; justify-content: center; min-width: 0; }
.wheel-wrap { position: relative; width: min(500px, 100%); aspect-ratio: 1; max-width: 100%; }
#wheel { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 30px 60px -24px rgba(60,0,6,.55); }
#burst { position: absolute; inset: -10%; width: 120%; height: 120%; pointer-events: none; max-width: none; }
.pin { position: absolute; left: 50%; top: -3%; width: 9%; transform: translateX(-50%); transform-origin: 50% 30%; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.hub { position: absolute; inset: 35%; border-radius: 50%; background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--green); }
.hub-time { font: 500 clamp(22px, 4.4vw, 34px)/1 var(--mono); letter-spacing: -0.02em; }
.hub-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.wheel-wrap.shake { animation: shake .45s; }
@keyframes shake { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

/* spin bar */
.spin-bar { border-bottom: 1px solid var(--line); }
.spin-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; padding-block: 32px; align-items: center; }
.panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; min-width: 0; }
.panel-msg { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.panel-msg b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.panel-msg span { color: var(--muted); font-size: 15px; }
.panel-act { display: grid; justify-items: center; gap: 4px; }
.panel-act .btn { min-width: 190px; }
.result { grid-column: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--mist); }
.result .sw { width: 34px; height: 34px; border-radius: 50%; grid-row: span 2; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); }
.result b { font-size: 17px; }
.result .sub { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.result .sub a { color: var(--red); font-weight: 600; }
.result .sig { grid-column: 1 / -1; font: 500 12px/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; margin-top: 6px; }
.stats { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font: 600 22px/1.2 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* sections */
.sec { padding-block: 88px 0; }
.band { background: var(--mist); padding-block: 80px; margin-top: 88px; }
.band + .sec { padding-top: 80px; }
.head { max-width: 620px; margin-bottom: 32px; }
.head h2, .draw h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; line-height: 1.02; }
.head p, .draw p { color: var(--muted); margin: 12px 0 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.odds { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 16px; }
.odds th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 14px 20px; border-bottom: 1px solid var(--line); }
.odds td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.odds tr:last-child td { border-bottom: 0; }
.odds .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds .slice { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.odds .slice i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.14); flex: none; }
.odds tr.hit td { background: #fff6d8; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border-radius: 16px; padding: 26px; min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.fair { margin-top: 16px; background: #fff; border-radius: 16px; padding: 0 26px; }
.fair summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fair summary::-webkit-details-marker { display: none; }
.fair summary::after, .faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
.fair[open] summary::after, .faq details[open] summary::after { content: "–"; }
.fair > p { margin: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 70ch; }
.fair code { font: 500 12px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.verify { display: grid; gap: 8px; padding-bottom: 24px; }
.verify .row { display: flex; gap: 8px; flex-wrap: wrap; }
.in { flex: 1 1 240px; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 13px var(--mono); }
.in:focus { border-color: var(--ink); outline: none; }
.verify-out { padding: 12px 14px; border-radius: 10px; background: var(--mist); font: 500 12px/1.7 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.verify-out b { color: var(--ink); font: 700 15px var(--font); }
.verify-out .bad { color: var(--red); }

.draw { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: 20px; background: var(--green); color: #fff; }
.draw p { color: rgba(255,255,255,.78); max-width: 52ch; }
.draw p a { color: #fff; font-weight: 600; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.countdown div { display: grid; justify-items: center; gap: 4px; padding: 16px 4px; border-radius: 12px; background: rgba(255,255,255,.1); }
.countdown b { font: 500 clamp(26px, 3.4vw, 38px)/1 var(--mono); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; opacity: .7; }

.ca-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 14px 14px 20px; border: 1.5px solid var(--ink); border-radius: 14px; margin-bottom: 24px; }
.ca-label { font-size: 13px; color: var(--muted); }
.ca-box .mono { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.facts dd a { color: var(--red); margin-right: 14px; }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

.foot { margin-top: 96px; background: var(--ink); color: rgba(255,255,255,.6); }
.foot-in { display: flex; gap: 32px; justify-content: space-between; align-items: flex-start; padding-block: 36px 44px; }
.foot .brand { color: #fff; margin: 0; }
.foot p { margin: 0; max-width: 56ch; font-size: 13px; }

.sheet-bg { position: fixed; inset: 0; background: rgba(17,23,20,.5); z-index: 40; }
.sheet { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, calc(100% - 32px)); background: #fff; border-radius: 20px; padding: 24px; display: grid; gap: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.sheet h3 { font-size: 22px; font-weight: 800; }
.wallets { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; width: 100%; }
.wallet-opt:hover { border-color: var(--ink); }
.wallet-opt span { font-weight: 400; font-size: 13px; color: var(--muted); }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.sheet .link-btn { justify-self: center; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.toast.bad { background: var(--red); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 8px; }
  .hero { padding-bottom: 44px; }
  .links { display: none; }
  .spin-grid { grid-template-columns: minmax(0, 1fr); }
  .result { grid-column: auto; }
  .stats { grid-column: auto; grid-row: auto; padding-top: 20px; border-top: 1px solid var(--line); }
  .draw { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  #mute { display: none; }
  .panel-act, .panel-act .btn { width: 100%; }
  .odds { min-width: 0; font-size: 15px; }
  .odds th, .odds td { padding: 12px 10px; }
  .odds th:first-child, .odds td:first-child { padding-left: 14px; }
  .odds th:last-child, .odds td:last-child { padding-right: 14px; }
  .odds .slice { white-space: normal; }
  .sec { padding-top: 64px; }
  .band { margin-top: 64px; padding-block: 56px; }
  .band + .sec { padding-top: 56px; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wheel-wrap.shake { animation: none; } }
