:root {
  --night: #FFFFFF;
  --night-2: #F3F8F5;
  --night-3: #E2EDE6;
  --line: rgba(16, 24, 20, .1);
  --snow: #101814;
  --mist: rgba(16, 24, 20, .64);
  --candy: #2CDB72;
  --candy-deep: #0A8A44;
  --gold: #E0303D;
  --gold-deep: #B21E2B;
  --pine: #1F8A57;
  --ink: #101814;
  --paper: #FFFFFF;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: linear-gradient(180deg, #E9F4FC 0, #F7FBFE 520px, #FFFFFF 900px) no-repeat, #FFFFFF;
  color: var(--snow);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.025em; font-optical-sizing: auto; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; }
h3 { font-size: 23px; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 var(--display); }
.brand img { border-radius: 10px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; color: var(--mist); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--snow); }
.bar-actions { display: flex; gap: 10px; align-items: center; }

.btn-buy, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
}
.btn-buy { background: var(--candy); color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--candy-deep); transition: background .15s ease, transform .15s ease; }
.btn-buy:hover { background: #45E585; }
.btn-buy:active { transform: translateY(1px); }
.btn-buy.big { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-ghost { border: 1px solid rgba(16, 24, 20, .28); color: var(--snow); }
.btn-ghost:hover { border-color: var(--snow); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 6vw, 84px) var(--gutter) clamp(40px, 5vw, 64px);
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-copy, .stage { position: relative; z-index: 1; }
.kicker { color: var(--candy-deep); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: .96; max-width: 10ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: var(--mist); }
.lede strong { color: var(--snow); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.ca {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 20px; max-width: 100%;
  background: var(--night-2); color: var(--snow);
  border: 1px solid rgba(16, 24, 20, .18); border-radius: 999px;
  font: 500 15px/1.3 var(--body); cursor: pointer; text-align: left;
}
.ca:hover { border-color: rgba(16, 24, 20, .45); }
.ca-label { color: var(--gold); font-weight: 700; }
.ca-val { font-size: 14px; overflow-wrap: anywhere; }
.hold-note { margin-top: 18px; font-size: 15px; color: var(--mist); max-width: 34em; }

/* ---------- the drop ---------- */
.stage { display: flex; flex-direction: column; align-items: center; }
.sky { position: relative; width: min(100%, 420px); height: 440px; }
.drop {
  position: absolute; left: 50%; top: 0; width: 230px; margin-left: -115px;
  transform: translateY(var(--y, 0px));
  will-change: transform;
}
.drop .chute { width: 100%; height: auto; animation: sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
.box { position: relative; width: 52%; margin: -52px auto 0; aspect-ratio: 156 / 152; }
.box .pill, .box .hat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.box .hat { transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 80% 30%; }
.drop.open .hat { transform: translate(22%, -70px) rotate(30deg); }
.lid {
  position: absolute; left: -9%; right: -9%; top: 0; height: 26%;
  background: #C9952E; border-radius: 6px; z-index: 2;
  background-image: linear-gradient(90deg, transparent 43%, var(--candy) 43% 57%, transparent 57%);
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.bow { position: absolute; left: 50%; top: -15px; width: 44px; height: 20px; margin-left: -22px; }
.bow::before, .bow::after {
  content: ""; position: absolute; top: 0; width: 22px; height: 18px; background: var(--candy); border-radius: 60% 40% 50% 50%;
}
.bow::before { left: 0; transform: rotate(-18deg); }
.bow::after { right: 0; transform: rotate(18deg) scaleX(-1); }
.body {
  position: absolute; left: 0; right: 0; top: 18%; bottom: 0; border-radius: 6px;
  background: var(--gold);
  background-image: linear-gradient(90deg, transparent 43%, var(--candy) 43% 57%, transparent 57%);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08);
}
.ground {
  position: absolute; left: -12%; right: -12%; bottom: 0; height: 64px;
  background: radial-gradient(120% 100% at 50% 100%, #E4EEF6 60%, transparent 61%);
}
.drop.landed .chute { animation: none; opacity: 0; transform: scale(.9) translateY(-20px); transition: opacity .6s ease, transform .6s ease; }
.drop.open .lid { transform: translate(-30%, -70px) rotate(-28deg); }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.tag {
  position: relative; margin-top: -26px; z-index: 3;
  display: flex; align-items: baseline; gap: 10px;
  background: var(--paper); color: var(--ink);
  padding: 12px 22px 12px 34px; border-radius: 8px 22px 22px 8px;
  box-shadow: 0 10px 26px rgba(16, 24, 20, .14); border: 1.5px solid #101814;
  transform: rotate(-2deg);
}
.tag::before { content: ""; position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--night-3); box-shadow: inset 0 0 0 1.5px #101814; }
.tag-label { font-weight: 600; font-size: 15px; color: #4D5B52; }
.tag-time { font: 800 38px/1 var(--display); color: var(--candy-deep); min-width: 3ch; }

.reveal {
  position: absolute; left: 50%; top: 70px; z-index: 5; width: min(92%, 320px); transform: translateX(-50%);
  background: var(--paper); color: var(--ink); border-radius: 22px; padding: 22px 22px 20px; text-align: center;
  box-shadow: 0 20px 50px rgba(16, 24, 20, .18); border: 1.5px solid #101814;
  animation: pop .55s cubic-bezier(.3, 1.5, .5, 1);
}
.reveal[hidden] { display: none; }
.reveal-coin { width: 96px; height: 96px; margin: -70px auto 12px; border-radius: 50%; overflow: hidden; background: var(--candy); border: 5px solid var(--paper); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); display: grid; place-items: center; }
.reveal-coin img { width: 100%; height: 100%; object-fit: cover; }
.reveal-coin span { font: 800 30px/1 var(--display); color: var(--ink); }
.reveal-title { font-weight: 600; color: #4D5B52; }
.reveal-title b { display: block; font: 800 40px/1.05 var(--display); color: var(--candy-deep); overflow-wrap: anywhere; }
.reveal-sub { margin-top: 6px; font-size: 15px; color: #4D5B52; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.7); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.stage-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--mist); max-width: 32ch; }

/* ---------- numbers ---------- */
.numbers {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 56px;
}
.stat { padding: 4px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 800 clamp(34px, 3.8vw, 48px)/1.05 var(--display); color: var(--gold); }
.stat span { font-size: 15px; color: var(--mist); }

/* ---------- sections ---------- */
.gifts, .pool, .rules { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head p { color: var(--mist); max-width: 44ch; }

.gift-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gift-empty { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: var(--mist); border: 1.5px dashed rgba(16, 24, 20, .22); border-radius: 22px; }
.gift-card {
  position: relative; background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 6px 18px rgba(16, 24, 20, .06); color: var(--ink); border-radius: 20px; padding: 18px;
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: center;
}
.gift-card::after { content: ""; position: absolute; top: 0; bottom: 0; right: 26px; width: 10px; background: var(--candy); opacity: .9; border-radius: 0; }
.gift-card .coin { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--candy); display: grid; place-items: center; font: 800 20px/1 var(--display); }
.gift-card .coin img { width: 100%; height: 100%; object-fit: cover; }
.gift-card .sym { font: 800 24px/1.05 var(--display); color: var(--candy-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 30px; }
.gift-card .meta { font-size: 14px; color: #4D5B52; padding-right: 30px; }
.gift-card .row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #DCD1BC; font-size: 14px; padding-right: 30px; }
.gift-card .row a { display: inline-flex; align-items: center; gap: 5px; color: #4D5B52; text-decoration: none; font-weight: 600; }
.gift-card .row a:hover { color: var(--candy-deep); }
.gift-card .test { font-size: 12px; font-weight: 700; color: #77541A; background: rgba(227, 176, 75, .3); padding: 2px 8px; border-radius: 999px; }
.gift-card.fresh { animation: fresh 1.4s ease-out; }
@keyframes fresh { 0% { transform: scale(.92); box-shadow: 0 0 0 6px var(--gold); } 100% { transform: none; box-shadow: none; } }

.pool-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pool-grid li {
  background: var(--night-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0;
}
.pool-grid a { display: contents; text-decoration: none; }
.pool-grid .pc { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--night-3); display: grid; place-items: center; font: 800 15px/1 var(--display); color: var(--mist); }
.pool-grid .pc img { width: 100%; height: 100%; object-fit: cover; }
.pool-grid .ps { font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-grid .pm { font-size: 12px; color: var(--mist); }
.pool-grid li.was { border-color: var(--candy); box-shadow: 0 0 0 2px var(--candy); }

.how { position: relative; z-index: 1; background: #EEFBF3; color: var(--ink); padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(56px, 8vw, 104px); }
.how::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(135deg, var(--candy) 0 12px, #fff 12px 24px, var(--gold) 24px 36px, #fff 36px 48px); }
.how h2, .steps { max-width: var(--max); margin-left: auto; margin-right: auto; }
.steps { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: 22px; padding: 28px; border: 1.5px solid rgba(16, 24, 20, .1); }
.num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--candy); color: var(--ink); font: 800 24px/1 var(--display); margin-bottom: 20px; border: 1.5px solid #101814; transform: rotate(-4deg); }
.steps p { margin-top: 10px; color: #4D5B52; max-width: 34ch; }

.rules dl { margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 64px); }
.rules dl div { padding: 22px 0; border-top: 1px solid var(--line); }
.rules dt { font: 800 22px/1.2 var(--display); color: var(--gold); }
.rules dd { margin: 6px 0 0; color: var(--mist); max-width: 46ch; }

.foot { position: relative; z-index: 1; background: var(--night-2); border-top: 1px solid var(--line); }
.foot-row { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 44px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-x { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-x:hover { color: var(--snow); }
.foot-row p { font-size: 14px; color: var(--mist); max-width: 62ch; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .bar-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .sky { height: 360px; }
  .drop { width: 190px; margin-left: -95px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .rules dl { grid-template-columns: 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .btn-ghost span { display: none; }
  .btn-ghost { padding: 0 13px; }
  .bar { gap: 12px; }
  .brand span { font-size: 23px; }
  .cta .btn-buy.big, .ca { width: 100%; justify-content: center; }
  .ca { border-radius: 18px; }
  .ca-val { font-size: 13px; }
  .stat { padding: 4px 14px; }
  .steps li { padding: 24px; }
  .gift-grid { grid-template-columns: 1fr; }
  .pool-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .drop .chute { animation: none; }
  .reveal { animation: none; }
  html { scroll-behavior: auto; }
}
