:root {
  --bg: #fff8ea;
  --bg-2: #fff1d6;
  --paper: #ffffff;
  --ink: #0b1b3f;
  --muted: #5a6685;
  --line: #eadfc8;
  --blue: #0f6df2;
  --blue-soft: #e3f1ff;
  --orange: #ff5a1f;
  --yellow: #ffc61a;
  --green: #12995f;
  --sun: linear-gradient(135deg, #ff4d2e 0%, #ff8a1f 48%, #ffc61a 100%);
  --shadow: 0 1px 0 rgba(11, 27, 63, .04), 0 18px 40px -18px rgba(11, 27, 63, .22);
  --r: 22px;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; max-width: 20ch; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(255, 248, 234, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; }
.nav { display: flex; justify-content: center; gap: 28px; font-weight: 500; font-size: 15px; }
.bar-acts { justify-self: end; display: flex; align-items: center; gap: 8px; }
.btn.icon { width: 40px; height: 40px; padding: 0; }
.btn svg { flex: none; width: 16px; height: 16px; }
.brand { justify-self: start; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--body); padding: 16px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn.sm { padding: 11px 18px; font-size: 14.5px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.sun { background: var(--sun); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 90, 31, .7); text-shadow: 0 1px 0 rgba(120, 40, 0, .25); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* hero */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 198, 26, .38), rgba(255, 138, 31, .12) 55%, transparent 72%); pointer-events: none;
}
.hero-grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 153, 95, .18); }
h1 { font-size: clamp(42px, 7.2vw, 88px); font-weight: 800; margin: 18px 0 18px; }
h1 em { font-style: normal; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; }
.facts dt { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; }

.balls { position: absolute; inset: 0; pointer-events: none; }
.ball {
  position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font: 800 20px/1 var(--display); font-style: normal; color: var(--ink);
  background: radial-gradient(circle at 32% 28%, #fff 0 22%, #fff7 23% 30%, transparent 31%), var(--c, #ffd84d);
  box-shadow: inset -6px -8px 0 rgba(11, 27, 63, .09), 0 14px 24px -12px rgba(11, 27, 63, .35);
  animation: bob 7s ease-in-out infinite; opacity: .9;
}
.b1 { --c: #ffd84d; left: 3%; top: 12%; }
.b2 { --c: #8fd0ff; left: 46%; top: 6%; animation-delay: -2s; width: 48px; height: 48px; font-size: 15px; }
.b3 { --c: #ffa07a; right: 4%; top: 9%; animation-delay: -4s; }
.b4 { --c: #9be7c0; left: 40%; bottom: 4%; animation-delay: -1s; width: 54px; height: 54px; font-size: 17px; }
.b5 { --c: #ffc0d9; right: 1.5%; bottom: 14%; animation-delay: -3s; width: 44px; height: 44px; font-size: 14px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* pot card */
.pot {
  position: relative; background: var(--paper); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.pot::before, .pot::after { /* ticket notches */
  content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line);
}
.pot::before { left: -14px; clip-path: inset(0 0 0 50%); }
.pot::after { right: -14px; clip-path: inset(0 50% 0 0); }
.pot-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.pot-tag { background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; }
.pot-draw { color: var(--muted); }
.pot-main { display: flex; align-items: center; gap: 18px; margin: 18px 0 10px; }
.ring {
  flex: none; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--bg-2) 0); padding: 9px; position: relative;
}
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.ring img { position: relative; width: 122px; height: 122px; object-fit: contain; }
.pot-amount { font: 800 clamp(34px, 4.6vw, 52px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pot-amount small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.pot-usd { color: var(--muted); font-size: 15px; margin-top: 6px; }
.clock { border-top: 2px dashed var(--line); margin-top: 18px; padding-top: 16px; text-align: center; }
.clock-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.clock-time { font: 800 clamp(52px, 7vw, 76px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 4px 0; }
.clock-sub { font-size: 14.5px; color: var(--muted); }
.pot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.pot-stats div { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.pot-stats dt { font-size: 12.5px; color: var(--muted); }
.pot-stats dd { margin: 0; font: 800 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }

.reveal { border-top: 2px dashed var(--line); margin-top: 18px; padding-top: 16px; text-align: center; }
.reveal-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.tumbler { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.tumbler i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 800 17px/1 var(--display); font-style: normal;
  background: radial-gradient(circle at 32% 28%, #fff 0 22%, transparent 23%), #ffd84d; box-shadow: inset -4px -6px 0 rgba(11, 27, 63, .1);
  animation: hop .6s ease-in-out infinite;
}
.tumbler i:nth-child(2) { animation-delay: .1s; background-color: #8fd0ff; }
.tumbler i:nth-child(3) { animation-delay: .2s; background-color: #ffa07a; }
.tumbler i:nth-child(4) { animation-delay: .3s; background-color: #9be7c0; }
.tumbler i:nth-child(5) { animation-delay: .4s; background-color: #ffc0d9; }
.tumbler.done i { animation: none; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.reveal-wallet { font: 800 20px/1.2 var(--display); word-break: break-all; }
.reveal-sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.reveal-sub a { color: var(--blue); font-weight: 700; }

/* strip */
.strip {
  max-width: 1180px; margin: 8px auto 0; padding: 0 clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.strip div { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px 18px; min-width: 0; }
.strip .k { font-size: 13px; opacity: .7; }
.strip .v { font: 800 clamp(19px, 2.2vw, 26px)/1.2 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip div:nth-child(1) { background: var(--sun); }
.strip div:nth-child(1) .k { opacity: .92; }

/* sections */
.sec { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px) 0; }
.eyebrow { font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.sub { color: var(--muted); max-width: 62ch; margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin-top: 8px; }
.num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px; font: 800 22px/1 var(--display);
  background: radial-gradient(circle at 32% 28%, #fff 0 20%, transparent 21%), #ffd84d; box-shadow: inset -5px -7px 0 rgba(11, 27, 63, .1);
}
.step:nth-child(2) .num { background-color: #8fd0ff; }
.step:nth-child(3) .num { background-color: #ffa07a; }

.check { margin-top: 24px; background: var(--blue-soft); border-radius: var(--r); padding: 18px; }
.check label { font-weight: 700; font-size: 14.5px; }
.check-row { display: flex; gap: 10px; margin-top: 8px; }
.check input { flex: 1; min-width: 0; font: 500 16px var(--body); padding: 14px 16px; border-radius: 14px; border: 1.5px solid transparent; background: #fff; color: var(--ink); }
.check-out { margin-top: 10px; font-weight: 500; min-height: 1.5em; }
.check-out b { font-family: var(--display); }

.table-wrap { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f4ecdb; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table .empty { text-align: center; color: var(--muted); padding: 34px 16px; white-space: normal; }
.table a { color: var(--blue); font-weight: 700; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .rolled td { color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: 700 15.5px var(--body); color: var(--blue); cursor: pointer; }
.won { font-weight: 700; color: var(--green); }
.more { margin-top: 14px; }
.rankball { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--bg-2); font-weight: 700; font-size: 13.5px; }
tr:nth-child(1) .rankball { background: #ffd84d; } tr:nth-child(2) .rankball { background: #d9e2ef; } tr:nth-child(3) .rankball { background: #ffc79e; }

.proof-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 28px; align-items: start; }
.proof-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.proof-steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 20px 76px; position: relative; }
.proof-steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 18px/1 var(--display); }
.proof-steps p { color: var(--muted); margin-top: 6px; }
.formula { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px; }
.formula-title { font: 800 20px/1.2 var(--display); }
.formula pre { margin: 14px 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 13px; line-height: 1.7; overflow-x: auto; color: #ffe9a8; }
.formula p:last-child { opacity: .78; font-size: 15px; }

.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 800 18px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: .9; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); padding: 0 0 18px; max-width: 64ch; }

.buy-card {
  display: flex; gap: 28px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.buy-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: var(--sun); opacity: .16; }
.buy-card > img { flex: none; width: 120px; height: 120px; object-fit: contain; }
.buy-main { position: relative; min-width: 0; flex: 1; }
.ca-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 16px; }
.ca { display: flex; align-items: center; gap: 10px; margin-top: 6px; background: var(--bg); border: 1px dashed #d9c9a3; border-radius: 14px; padding: 12px 14px; }
.ca code { flex: 1; min-width: 0; font-size: 14.5px; word-break: break-all; }
.ca-note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.foot { max-width: 1180px; margin: 80px auto 0; padding: 28px clamp(16px, 4vw, 40px) 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 800 18px var(--display); color: var(--ink); }

.modal { border: 0; border-radius: 24px; padding: 26px; max-width: min(620px, calc(100vw - 32px)); width: 100%; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(11, 27, 63, .5); }
.modal::backdrop { background: rgba(11, 27, 63, .45); }
.modal-x { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.proof-list { margin: 16px 0; display: grid; gap: 10px; }
.proof-list dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.proof-list dd { margin: 2px 0 0; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; word-break: break-all; }
.proof-list a { color: var(--blue); font-weight: 700; }
.proof-how { font-size: 14px; color: var(--muted); }
.proof-how code { font-size: 12.5px; background: var(--bg); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 920px) {
  .nav { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .b2, .b4 { display: none; }
  .ball { opacity: .5; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pot-main { flex-direction: column; text-align: center; }
  .check-row { flex-direction: column; }
  .buy-card { flex-direction: column; align-items: flex-start; }
  .buy-card > img { width: 84px; height: 84px; }
  .cta .btn { flex: 1; }
  .balls { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }
