/* Cha Ching — site styles. White ground, sharp corners, Poppins.
   Palette: ground #000, card #0C0C0E, border #232329, label purple #A45CFF,
   Dean purple #3B1178 (fills only), Key Green #6FC85E (buttons, dark text on it),
   Win Neon #3DF5A0 (win moments only). */

:root {
  --ground: #FFFFFF;
  --band: #F4F4F6;
  --card: #FFFFFF;
  --line: #E4E4EA;
  --line-soft: #ECECF0;
  --text: #111114;
  --muted: #5C5C66;
  --dim: #8A8A94;
  --faint: #A0A0A8;
  --purple: #6E2BC4;
  --purple-deep: #3B1178;
  --purple-ink: #F1ECFA;
  --purple-edge: #8B3FE8;
  --purple-line: #CDB9F2;
  --lilac: #E8DFF7; --taken: #D8CCEF; --green-text: #3C7A2F;
  --green: #6FC85E;
  --green-ink: #06140A;
  --green-edge: #2F7A2F;
  --neon: #3DF5A0;
  --neon-soft: #BFE8CB;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Archivo Black', 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
.wrap { width: min(1344px, 100% - 48px); margin: 0 auto; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.eyebrow .g { color: var(--green); }
.h-hero { font-size: clamp(38px, 5.2vw, 74px); text-align: center; max-width: 22ch; margin: 0 auto; }
.h-section { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.028em; text-align: center; }
.h-panel { font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -0.032em; }
.h-page { font-size: clamp(34px, 4vw, 56px); }
.lede { font-size: 17.5px; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }
.rule { width: 92px; height: 1px; background: var(--purple-deep); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 26px; font-weight: 600; font-size: 15px; border-radius: 0; transition: transform .08s ease, background .15s ease, color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: #7FD66E; color: var(--green-ink); }
.btn-ghost { border: 1px solid var(--purple-deep); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple-edge); color: var(--text); }
.btn-purple { background: var(--purple-deep); color: var(--lilac); }
.btn-purple:hover { background: #4A1696; color: #fff; }
.btn-neon { background: var(--neon); color: var(--green-ink); }
.btn-lg { min-height: 56px; padding: 17px 36px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--purple-deep); height: 38px; display: flex; align-items: center; font-size: 12.5px; color: var(--lilac); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { color: var(--lilac); }
.topbar a:hover { color: #fff; }
.topbar .links { display: flex; gap: 26px; }
.topbar .mail { display: flex; align-items: center; gap: 9px; }
.header { height: 82px; border-bottom: 1px solid var(--line-soft); background: var(--ground); position: sticky; top: 0; z-index: 40; }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); }
.brand img { width: 42px; height: 42px; }
.brand .word { white-space: nowrap; font-family: var(--display); font-size: 22px; color: var(--green); letter-spacing: 0.005em; transform: skewX(-12deg); display: inline-block; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; font-weight: 500; color: #4A4A55; }
.nav a { color: #4A4A55; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.header .actions { display: flex; align-items: center; gap: 16px; }
.header .actions .signin { font-size: 14.5px; color: #4A4A55; }
.header .actions .signin:hover { color: var(--text); }
.basket-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 10px 14px; font-size: 13.5px; color: var(--text); min-height: 44px; }
.basket-pill .n { font-family: var(--mono); color: var(--green-text); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.burger span { display: block; width: 18px; height: 2px; background: #111114; box-shadow: 0 -6px 0 #111114, 0 6px 0 #111114; }
.mobile-nav { display: none; background: var(--band); border-bottom: 1px solid var(--line-soft); padding: 12px 24px 20px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 16px; color: #111114; border-bottom: 1px solid var(--line-soft); }
.mobile-nav.is-open { display: block; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(ellipse 900px 520px at 50% 108%, rgba(139,63,232,0.22) 0%, rgba(59,17,120,0.08) 42%, rgba(255,255,255,0) 78%), var(--ground); padding: 84px 0 76px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.hero .lede { margin: 0 auto; text-align: center; }
.hero .cta { display: flex; gap: 14px; padding-top: 10px; flex-wrap: wrap; justify-content: center; }
.page-hero { background: radial-gradient(ellipse 800px 420px at 50% 120%, rgba(139,63,232,0.16) 0%, rgba(255,255,255,0) 72%), var(--ground); padding: 64px 0 52px; border-bottom: 1px solid var(--line-soft); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }
.page-hero .lede { max-width: 70ch; }

/* ---------- marquee ---------- */
.marquee { background: linear-gradient(90deg, rgba(164,92,255,0.85) 0%, rgba(59,17,120,0.85) 34%, rgba(139,63,232,0.85) 66%, rgba(59,17,120,0.85) 100%); padding: 15px 0; overflow: hidden; }
.marquee .track { display: flex; gap: 30px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; white-space: nowrap; animation: slide 38s linear infinite; width: max-content; }
.marquee .track span.dot { color: var(--green); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.band { background: var(--band); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 44px; text-align: center; }
.section-head .lede { font-size: 16px; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- room cards ---------- */
.room-card { background: var(--card); border: 1px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 20px; color: var(--text); position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.room-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(17,17,20,.08); }
.room-card:hover { border-color: #C9C9D2; color: var(--text); }
.room-card.is-hot { background: linear-gradient(160deg, #3B1178 0%, #16061F 100%); border-color: var(--purple-edge); color: #fff; }
.room-card.is-hot .stake, .room-card.is-hot:hover { color: #fff; }
.room-card .stake { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.room-card .top { display: flex; align-items: baseline; justify-content: space-between; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--green-ink); background: var(--green); padding: 4px 8px; text-transform: uppercase; }
.tag.purple { background: var(--purple); color: #fff; }
.tag.neon { background: var(--neon); }
.cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.cell { height: 20px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #9FD08F; }
.cell.taken { background: var(--taken); box-shadow: none; }
.is-hot .cell.taken { background: #6B37B8; }
.is-hot .cell { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--green); }
.cell.mine { background: var(--green); box-shadow: none; }
.room-card .meta { display: flex; flex-direction: column; gap: 6px; }
.room-card .taken-count { font-family: var(--mono); font-size: 12px; color: var(--green-text); font-weight: 600; }
.is-hot .taken-count { color: var(--green); }
.room-card .prize { font-size: 13px; color: var(--muted); }
.room-card .prize b { color: var(--green-text); font-family: var(--mono); font-weight: 500; }
.is-hot .prize b { color: var(--green); }
.is-hot .prize { color: var(--lilac); }

/* ---------- counters ---------- */
.counters { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 56px 0; }
.counters .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.counter { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.counter .n { font-size: 46px; font-weight: 700; letter-spacing: -0.03em; color: var(--green-text); line-height: 1; }
.counter .l { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }

/* ---------- panels ---------- */
.panel { background: linear-gradient(112deg, #F1ECFA 0%, #F8F5FD 62%, #FFFFFF 100%); border: 1px solid var(--purple-line); padding: 52px 56px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.panel .copy { display: flex; flex-direction: column; gap: 20px; }
.panel .copy p { color: #4A4A55; font-size: 16.5px; max-width: 44ch; }
.panel .photo { height: 340px; overflow: hidden; border: 1px solid var(--purple-line); }
.panel .photo img { width: 100%; height: 100%; object-fit: cover; }
.progress { display: flex; flex-direction: column; gap: 9px; max-width: 460px; }
.progress .row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 13px; }
.progress .row .a { color: var(--green-text); font-weight: 600; }
.progress .row .b { color: #4A4A55; }
.progress .bar { height: 10px; background: #E4DAF6; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--green); transition: width .6s ease; }
.progress .note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }

.feature { background: var(--ground); border: 1px solid var(--line); padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; }
.feature svg { width: 30px; height: 30px; stroke: var(--purple); }
.feature h3 { font-size: 17px; letter-spacing: 0; font-weight: 600; }
.feature p { font-size: 14px; color: var(--muted); }
.band .feature { background: var(--ground); }

.win-panel { background: var(--green-ink); border: 1px solid var(--neon); padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 52px; box-shadow: 0 0 60px rgba(61,245,160,0.14); }
.win-panel .copy { display: flex; flex-direction: column; gap: 14px; }
.win-panel .eyebrow { color: var(--neon); }
.win-panel h2 { font-size: clamp(30px, 3.2vw, 44px); color: var(--neon); }
.win-panel p { color: var(--neon-soft); max-width: 46ch; }
.win-number { width: 150px; height: 150px; background: var(--neon); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-size: 76px; font-weight: 700; flex-shrink: 0; }

/* ---------- footer ---------- */
.footer { background: var(--band); border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
.footer .col { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--muted); }
.footer .col a { color: var(--muted); }
.footer .col a:hover { color: var(--text); }
.footer .col .t { font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--purple); }
.footer .about { font-size: 13.5px; color: var(--dim); line-height: 1.7; max-width: 34ch; }
.footer .legal { border-top: 1px solid var(--line-soft); margin-top: 36px; padding-top: 28px; font-size: 12.5px; color: var(--faint); line-height: 1.7; }
.footer .brand img { width: 36px; height: 36px; }
.footer .brand .word { font-size: 18px; }
.footer .legal { color: var(--dim); }

/* ---------- room page ---------- */
.room-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.board { background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.board .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.board .head .stake { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.slot { aspect-ratio: 1; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #9FD08F; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--text); transition: background .15s, box-shadow .15s, transform .08s; }
.slot small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-text); font-weight: 600; }
.slot:hover:not(.taken):not(.mine) { box-shadow: inset 0 0 0 2px var(--green); transform: translateY(-1px); }
.slot.taken { background: var(--taken); box-shadow: none; color: #6E2BC4; cursor: default; }
.slot.taken small { color: #8A5FCF; }
.slot.mine { background: var(--green); color: var(--green-ink); box-shadow: none; }
.slot.mine small { color: var(--green-ink); }
.slot.picked { box-shadow: inset 0 0 0 3px var(--green); background: #EAF7E6; }
.slot.won { background: var(--neon); color: var(--green-ink); box-shadow: 0 0 40px rgba(61,245,160,.5); }
.slot.won small { color: var(--green-ink); }
.side { display: flex; flex-direction: column; gap: 16px; }
.buy { background: var(--card); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.buy h3 { font-size: 20px; letter-spacing: -0.02em; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.kv b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.kv:last-of-type { border-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.field input, .field select, .field textarea { background: #FFFFFF; border: 1px solid #C9C9D2; color: var(--text); padding: 13px 14px; min-height: 48px; outline: none; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field .hint { font-size: 12.5px; color: var(--dim); }
.field.is-error input { border-color: #FF6B6B; }
.field .err { font-size: 12.5px; color: #FF8A8A; display: none; }
.field.is-error .err { display: block; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 7px; }

/* ---------- results table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
.table td b { color: var(--text); font-weight: 600; }
.table .mono { font-size: 12.5px; }
.table .win { color: var(--green-text); font-family: var(--mono); font-weight: 600; }
.table tr:hover td { background: var(--band); }
.hash { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-all; background: var(--band); border: 1px solid var(--line); padding: 10px 12px; }
.hash.ok { border-color: var(--green); color: var(--green-text); }
.hash.bad { border-color: #FF6B6B; color: #FF8A8A; }

/* ---------- misc ---------- */
.card { background: var(--card); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 18px; }
.prose h3 { font-size: 18px; letter-spacing: -0.01em; font-weight: 600; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .ph { color: var(--purple); font-family: var(--mono); font-size: 13px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--green-text); letter-spacing: 0.12em; }
.step h3 { font-size: 17px; letter-spacing: 0; font-weight: 600; }
.step p { font-size: 14px; color: var(--muted); }
.notice { border: 1px solid var(--purple-line); background: var(--purple-ink); padding: 16px 18px; font-size: 14px; color: #3B1178; }
.notice.green { border-color: #9FD08F; background: #EAF7E6; color: #1E4A22; }
.empty { padding: 48px; text-align: center; color: var(--dim); border: 1px dashed var(--line); }
.qty { display: flex; align-items: stretch; border: 1px solid var(--line); }
.qty button { width: 48px; font-size: 20px; color: var(--green-text); }
.qty input { width: 72px; text-align: center; background: #fff; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--text); font-family: var(--mono); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--green); color: var(--green-ink); font-weight: 600; font-size: 14.5px; padding: 14px 22px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 90; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.basket-line { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.basket-line .t { font-weight: 600; }
.basket-line .s { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.basket-line .p { font-family: var(--mono); color: var(--green-text); }
.basket-line .x { color: var(--dim); font-size: 13px; }
.basket-line .x:hover { color: #FF8A8A; }
.totals { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.totals .kv { border: 0; padding: 4px 0; }
.totals .kv.total b { font-size: 22px; color: var(--green-text); }
.stripe-box { border: 1px solid var(--line); background: var(--band); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.stripe-box .row { display: flex; gap: 12px; }
.stripe-box input { flex: 1; background: #fff; border: 1px solid var(--line); color: var(--dim); padding: 12px; min-height: 46px; }
.stripe-box .lock { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); padding: 9px 14px; font-size: 13.5px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.pill.is-on { border-color: var(--green); color: var(--green-text); }
.stat { background: var(--card); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.stat .l { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.stat .n { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: var(--green-text); line-height: 1; }
.stat .s { font-size: 13px; color: var(--muted); }
.code-box { display: flex; gap: 10px; }
.code-box input { flex: 1; background: var(--band); border: 1px solid var(--line); color: var(--green-text); font-family: var(--mono); padding: 12px 14px; min-height: 48px; }

/* ---------- wheel overlay ---------- */
.spin-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: none; overflow: auto; align-items: center; justify-content: center; flex-direction: column; gap: 28px; padding: 24px; text-align: center; }
.spin-overlay.is-on { display: flex; }
.spin-overlay .eyebrow { color: var(--neon); }
.spin-overlay h2 { font-size: clamp(30px, 4vw, 48px); color: #fff; }
.spin-overlay .sub { color: var(--neon-soft); max-width: 50ch; }
.wheel-wrap { position: relative; width: min(360px, 80vw); aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--neon); box-shadow: 0 0 80px rgba(61,245,160,.25); transition: transform 5.2s cubic-bezier(.12,.72,.08,1); }
.pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--green); }
.spin-result { display: none; flex-direction: column; align-items: center; gap: 10px; }
.spin-result.is-on { display: flex; }
.spin-result .big { font-size: 96px; font-weight: 700; color: var(--neon); line-height: 1; letter-spacing: -0.04em; }
.spin-overlay .hash { max-width: 640px; text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header .actions .signin { display: none; }
  .burger { display: inline-flex; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { grid-template-columns: 1fr; padding: 40px 32px; }
  .panel .photo { height: 260px; }
  .room-layout { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: min(1344px, 100% - 32px); }
  .topbar { font-size: 12px; white-space: nowrap; }
  .topbar .links { gap: 16px; }
  .topbar .links a:nth-child(2) { display: none; }
  .header { height: 68px; }
  .header .actions { gap: 10px; }
  .header .actions .btn { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand .word { font-size: 18px; }
  .basket-pill { padding: 8px 10px; }
  .nav, .header .actions .signin { display: none; }
  .burger { display: inline-flex; }
  .topbar .links span:not(:last-child) { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .grid-5, .grid-4, .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .counters .wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
  .counter .n { font-size: 36px; }
  .win-panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .win-number { width: 110px; height: 110px; font-size: 56px; }
  .footer .cols { grid-template-columns: 1fr; }
  .board { padding: 20px; }
  .slot { font-size: 22px; min-height: 56px; }
  .slots { gap: 8px; }
  .basket-line { grid-template-columns: 1fr auto; }
  .basket-line .x { grid-column: 1 / -1; }
  .panel .photo { height: 200px; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { display: block; border: 0; padding: 6px 0; }
}

/* ---------- homepage: split hero, wheel, motion ---------- */
.hero-split { display: block; text-align: left; padding: 72px 0 84px; }
.hero-split .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .h-hero { max-width: 14ch; font-size: clamp(40px, 5vw, 72px); }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-top: 8px; }
.hero-proof b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }
.wheel-idle { position: absolute; inset: 8%; border-radius: 50%; }
.wheel-face { width: 100%; height: 100%; border-radius: 50%; border: 8px solid #FFFFFF; box-shadow: 0 30px 80px rgba(59,17,120,.22), 0 0 0 1px var(--purple-line); background: conic-gradient(#3B1178 0 24deg, #6E2BC4 24deg 48deg, #3B1178 48deg 72deg, #6E2BC4 72deg 96deg, #3B1178 96deg 120deg, #6E2BC4 120deg 144deg, #3B1178 144deg 168deg, #6E2BC4 168deg 192deg, #3B1178 192deg 216deg, #6E2BC4 216deg 240deg, #3B1178 240deg 264deg, #6E2BC4 264deg 288deg, #3B1178 288deg 312deg, #6E2BC4 312deg 336deg, #6FC85E 336deg 360deg); animation: idle-spin 28s linear infinite; }
.wheel-face::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.35); }
@keyframes idle-spin { to { transform: rotate(360deg); } }
.wheel-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 28%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(17,17,20,.12); font-weight: 700; font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.03em; color: var(--purple-deep); }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--green); filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.float-tile { position: absolute; background: #fff; border: 1px solid var(--line); padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 16px 40px rgba(17,17,20,.10); animation: float 6s ease-in-out infinite; }
.float-tile .n { font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.float-tile small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-text); }
.float-tile.taken { background: var(--taken); border-color: transparent; }
.float-tile.taken .n { color: var(--purple-deep); } .float-tile.taken small { color: var(--purple); }
.float-tile.win { background: var(--green-ink); border-color: var(--neon); } .float-tile.win .n, .float-tile.win small { color: var(--neon); }
.float-tile.t1 { left: -2%; top: 14%; } .float-tile.t2 { right: -4%; top: 30%; animation-delay: -2s; } .float-tile.t3 { left: 6%; bottom: 8%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.how-card { background: var(--card); border: 1px solid var(--line); padding: 22px 22px 28px; display: flex; flex-direction: column; gap: 12px; }
.how-card h3 { font-size: 17px; letter-spacing: 0; font-weight: 600; }
.how-card p { font-size: 14px; color: var(--muted); }
.how-card .step-n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--green-text); font-weight: 600; margin-top: 8px; }
.how-art { height: 150px; background: var(--band); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mini-board { display: grid; grid-template-columns: repeat(5, 30px); gap: 5px; }
.mini-board i { display: block; height: 30px; background: #fff; box-shadow: inset 0 0 0 1px #9FD08F; transition: background .3s, box-shadow .3s; }
.mini-board i.on { background: var(--taken); box-shadow: none; }
.mini-board i.me { background: var(--green); box-shadow: none; }
.q-art { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.q-art .q { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.q-art .a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; color: var(--green-text); background: #fff; border: 1px solid #9FD08F; padding: 8px 16px; }
.wheel-mini { position: relative; width: 110px; height: 110px; }
.wheel-mini .wheel-face { border-width: 4px; box-shadow: 0 10px 30px rgba(59,17,120,.18); animation-duration: 3.2s; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-iteration-count: infinite; animation-name: mini-spin; }
@keyframes mini-spin { 0% { transform: rotate(0); } 70% { transform: rotate(1440deg); } 100% { transform: rotate(1440deg); } }
.wheel-mini .wheel-pin { border-left-width: 9px; border-right-width: 9px; border-top-width: 16px; top: -4px; }
.pay-art { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-art .amt { font-weight: 700; font-size: 44px; letter-spacing: -0.04em; color: var(--green-text); line-height: 1; }
.pay-art .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

.latest { background: var(--card); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text); transition: transform .15s ease, box-shadow .15s ease; }
.latest:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(17,17,20,.08); color: var(--text); }
.latest .r { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.latest .w { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.latest .p { font-family: var(--mono); font-weight: 600; color: var(--green-text); }
.latest .s { font-family: var(--mono); font-size: 11px; color: var(--dim); word-break: break-all; }

.host-panel { background: linear-gradient(112deg, #F1ECFA 0%, #FFFFFF 100%); }
.ref-art { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.ref-node { background: #fff; border: 1px solid var(--purple-line); padding: 14px 16px; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; box-shadow: 0 10px 30px rgba(59,17,120,.08); }
.ref-node small { font-family: var(--mono); font-size: 10.5px; color: var(--purple); font-weight: 500; }
.ref-node.host { background: var(--purple-deep); color: #fff; border-color: transparent; } .ref-node.host small { color: var(--lilac); }
.ref-node.pay { background: var(--green); color: var(--green-ink); border-color: transparent; font-size: 22px; } .ref-node.pay small { color: var(--green-ink); font-size: 10.5px; }
.ref-players { display: flex; flex-direction: column; gap: 12px; }
.ref-lines { display: flex; flex-direction: column; gap: 42px; padding: 0 6px; }
.ref-lines i { display: block; height: 2px; background: repeating-linear-gradient(90deg, var(--purple) 0 8px, transparent 8px 14px); background-size: 200% 100%; animation: dash 1.6s linear infinite; }
.ref-lines.back i { background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 14px); }
@keyframes dash { to { background-position: -28px 0; } }

.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--purple); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 64ch; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .wheel-face, .float-tile, .ref-lines i { animation: none !important; } .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 1100px) { .hero-split .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } .ref-art { grid-template-columns: 1fr; gap: 12px; } .ref-lines { display: none; } .ref-players { flex-direction: row; flex-wrap: wrap; justify-content: center; } }
@media (max-width: 760px) { .hero-split { padding: 40px 0 56px; } .hero-copy .h-hero { font-size: 38px; } .hero-art { max-width: 320px; } .float-tile .n { font-size: 20px; } .float-tile { padding: 10px 12px; } }

/* ---------- soft corners ---------- */
:root { --r-sm: 8px; --r: 14px; --r-lg: 20px; }
.btn, .basket-pill, .burger, .tag, .pill, .field input, .field select, .field textarea, .qty, .qty input, .code-box input, .stripe-box input, .hash, .toast, .cell, .mini-board i, .q-art .a { border-radius: var(--r-sm); }
.tag { border-radius: 999px; }
.pill { border-radius: 999px; }
.room-card, .feature, .card, .step, .how-card, .how-art, .latest, .stat, .buy, .board, .win-panel, .notice, .empty, .stripe-box, .faq details, .float-tile, .ref-node, .counter, .slot, .win-number { border-radius: var(--r); }
.panel, .panel .photo, .hero-art .photo, .spin-result .hash, .board .photo { border-radius: var(--r-lg); }
.marquee { border-radius: 0; }
.mobile-nav { border-radius: 0 0 var(--r) var(--r); }
.progress .bar, .progress .bar i { border-radius: 999px; }
.slot { border-radius: 12px; }
.room-card .cells .cell { border-radius: 4px; }
.mini-board i { border-radius: 6px; }
.room-card, .how-card, .latest, .feature, .card { box-shadow: 0 1px 0 rgba(17,17,20,.02), 0 8px 24px rgba(17,17,20,.04); }
.room-card:hover, .latest:hover { box-shadow: 0 18px 44px rgba(17,17,20,.10); }
.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.table td, .table th { border-bottom: 1px solid var(--line-soft); }
.table tr:last-child td { border-bottom: 0; }
