/* Cheat Code — simple white page, bold type, big pictures. */
:root {
  color-scheme: light;
  --ground: #ffffff;
  --ink: #0b0b0c;
  --soft: #55555c;
  --tone: #f3f3f1;
  --accent: #e5007d;
  --accent-strong: #c2006a;

  --face: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);
  --step-display: clamp(3.5rem, 1rem + 6.4vw, 7.5rem);

  --margin: max(clamp(16px, 3vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(96px, 10vw, 168px);
  --radius: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--face);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(229, 0, 125, .15);
}
[hidden] { display: none !important; }
.preview-notice { position: sticky; top: 0; z-index: 30; padding: 10px var(--margin); background: #fff0a8; color: #202020; font-size: var(--step-small); font-weight: 800; text-align: center; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 88px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: absolute; left: var(--margin); top: -80px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.display, .head { font-weight: 800; letter-spacing: -0.04em; line-height: .95; text-wrap: balance; }
.display { font-size: var(--step-display); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.35; text-wrap: pretty; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: var(--step-small); font-weight: 500; }

.link {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: .2em; text-decoration-thickness: .08em;
  transition: text-decoration-color 180ms ease;
}
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; gap: .28em; cursor: pointer;
  background: var(--ink); color: #fff;
  font: 500 var(--step-body)/1 var(--face); text-decoration: none;
  transition: transform 120ms var(--ease-out), background-color 180ms ease;
}
.button:active { transform: scale(.97); }
.button-small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { background: var(--accent); }
}

/* header */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--margin); background: var(--ground);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 var(--step-lead)/1 var(--face); letter-spacing: -.03em; text-decoration: none; }
.bar-links { display: flex; gap: 28px; margin-left: auto; font-size: var(--step-small); font-weight: 500; }
.bar-links a { padding: 10px 0; }

/* hero */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center; padding: 24px var(--margin) 0;
  min-height: calc(100svh - 76px);
}
.hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; padding: 24px 0 48px; }
.hero h1 { max-width: 9ch; }
.hero .lead { max-width: 30ch; }
.hero-pic {
  grid-column: 7 / -1; justify-self: center; align-self: center;
  width: min(100%, 48svh); aspect-ratio: 9 / 16;
}
.shot { overflow: hidden; border-radius: var(--radius); background: var(--tone); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic img { object-fit: contain; }

.progress { max-width: 460px; background: var(--tone); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.progress-title { font: 500 var(--step-body)/1 var(--face); }
.progress-value { font-variant-numeric: tabular-nums; }
.progress-value strong { font-weight: 800; }
.track { height: 14px; border-radius: 999px; background: #e2e2de; overflow: hidden; }
.fill { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 999px; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.progress-foot { color: var(--soft); font-size: var(--step-small); font-variant-numeric: tabular-nums; }

/* live draw */
.live {
  margin: clamp(32px, 5vw, 64px) var(--margin) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}
.live[hidden] { display: none; }
.live-clock { display: grid; gap: 10px; align-content: start; }
.live-title { display: flex; align-items: center; gap: 10px; font: 500 var(--step-body)/1 var(--face); }
.live-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); flex: none; }
.live-label { color: #b9b9c0; margin-top: 14px; }
.live-time {
  font: 800 clamp(4.5rem, 2rem + 8vw, 9rem)/.9 var(--face); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.live-time--status { font-size: clamp(2.8rem, 4vw, 5rem); line-height: 1; overflow-wrap: anywhere; }
.live.is-drawing .live-time { color: #fff; }
.live-note { color: #b9b9c0; max-width: 34ch; }
.live-board { display: grid; gap: 16px; align-content: start; }
.live-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.live-board h3 { font: 800 var(--step-lead)/1.15 var(--face); letter-spacing: -.02em; }
.live-when { color: #b9b9c0; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.live-list { display: grid; gap: 10px; }
.live-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #1c1c1f; border-radius: 16px; padding: 16px 20px;
}
.live-wallet { font: 800 var(--step-lead)/1.1 var(--face); letter-spacing: -.01em; text-decoration: none; font-variant-numeric: tabular-nums; }
.live-prize { color: var(--accent); font-weight: 500; white-space: nowrap; }
.live-empty { background: #1c1c1f; border-radius: 16px; padding: 20px; color: #d4d4da; }
.live-verify { color: #b9b9c0; font-size: var(--step-small); }
.live-verify .link { color: #fff; }
.live-recent { display: grid; gap: 8px; margin-top: 8px; }
.live-recent h3 { font: 500 var(--step-body)/1.2 var(--face); color: #b9b9c0; }
.live-recent ol { display: grid; gap: 6px; }
.live-recent li { display: flex; gap: 16px; align-items: baseline; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.live-recent-time { color: #b9b9c0; min-width: 5.5em; }
.live-recent-wallets { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.live-recent a, .live-wallet { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .live-recent a:hover, .live-wallet:hover { color: var(--accent); }
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 1.4s ease-in-out infinite; }
  .live-list li.is-new { animation: arrive 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
  .live.is-drawing .live-time { animation: blink 900ms ease-in-out infinite; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.98); background: var(--accent); } 60% { background: #3a1029; } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }
@media (max-width: 960px) {
  .live { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .live-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .live-recent li { flex-direction: column; gap: 2px; }
}

/* how it works */
.how { padding: var(--gap) var(--margin) 0; }
.how h2 { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step .shot { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.step h3 { font: 800 var(--step-lead)/1.15 var(--face); letter-spacing: -.02em; margin-bottom: 8px; }
.step p { max-width: 36ch; }
@media (hover: hover) and (pointer: fine) {
  .step .shot img { transition: transform 600ms var(--ease-out); }
  .step:hover .shot img { transform: scale(1.04); }
}

/* where codes work */
.where { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.where[hidden] { display: none; }
.where-head { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.where-head p { max-width: 36ch; }
.where-cols { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.where-col { background: var(--tone); border-radius: var(--radius); padding: 24px; align-self: start; }
.where-col h3 { font: 800 var(--step-lead)/1.15 var(--face); letter-spacing: -.02em; margin-bottom: 12px; }
.where-col h3 span { color: var(--soft); font-weight: 500; }
.where-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.where-col li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.where-code, .where-checked { color: var(--soft); font-size: var(--step-small); }
.where-code { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .where-head, .where-cols { grid-column: 1 / -1; } }
@media (max-width: 640px) { .where-cols { grid-template-columns: 1fr; } }

/* wide picture */
.band { margin: var(--gap) var(--margin) 0; aspect-ratio: 12 / 5; }

/* winners */
.winners { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.winners-head { grid-column: 1 / span 5; display: grid; gap: 16px; align-content: start; }
.winners-head p { max-width: 34ch; }
.rows, .empty { grid-column: 7 / -1; }
.rows li a { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; padding: 16px 20px; border-radius: 16px; text-decoration: none; font-variant-numeric: tabular-nums; }
.rows li:nth-child(odd) a { background: var(--tone); }
.rows .when { color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .rows li a:hover .who { text-decoration: underline; text-underline-offset: .2em; } }
.empty { background: var(--tone); border-radius: var(--radius); padding: 28px; align-self: start; }
.empty-title { font: 800 var(--step-lead)/1.2 var(--face); letter-spacing: -.02em; margin-bottom: 6px; }

/* faq */
.faq { padding: var(--gap) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq h2 { grid-column: 1 / span 5; align-self: start; }
.faq-list { grid-column: 7 / -1; display: grid; gap: 8px; }
.faq details { border-radius: 16px; padding: 6px 20px; transition: background-color 180ms ease; }
.faq details[open] { background: var(--tone); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 52px; cursor: pointer; list-style: none;
  font: 500 var(--step-lead)/1.3 var(--face); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { max-width: 52ch; padding: 4px 0 16px; }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: var(--tone); } }

/* footer */
.foot { margin-top: var(--gap); padding: 0 var(--margin) calc(28px + env(safe-area-inset-bottom)); }
.foot-word { font: 800 clamp(3.25rem, 15.5vw, 22rem)/.8 var(--face); letter-spacing: -.06em; margin-left: -.04em; white-space: nowrap; }
.foot-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 32px; font-size: var(--step-small); }
.foot-row [data-contract] { overflow-wrap: anywhere; }
.foot-row p:nth-child(2) { text-align: center; }
.foot-row p:last-child { text-align: right; }
.foot-social { margin-top: 16px; font-size: var(--step-small); font-weight: 500; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .rise:nth-child(2) { transition-delay: 80ms; }
  .js .rise:nth-child(3) { transition-delay: 160ms; }
  .js .rise:nth-child(4) { transition-delay: 240ms; }
  .js.is-loaded .rise { opacity: 1; transform: none; }
  .js .hero-pic img { transform: scale(1.08); transition: transform 1600ms var(--ease-out); }
  .js.is-loaded .hero-pic img { transform: none; }
  .fill { transition: transform 1400ms var(--ease-out) 500ms; }
  .js:not(.is-loaded) .fill { transform: scaleX(0); }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  @supports (animation-timeline: view()) {
    .band img { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.02) translateY(4%); } }

/* tablet */
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-copy { grid-column: 1 / -1; padding-bottom: 40px; }
  .hero-pic { grid-column: 1 / -1; width: min(100%, 480px); aspect-ratio: 9 / 16; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step .shot { aspect-ratio: 16 / 9; }
  .winners-head, .rows, .empty, .faq h2, .faq-list { grid-column: 1 / -1; }
  .faq-list { margin-top: 32px; }
}

/* phone */
@media (max-width: 640px) {
  .bar { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .bar-links { display: none; }
  .bar .button { margin-left: auto; }
  .hero-copy { gap: 22px; }
  .hero .button { width: 100%; }
  .progress { max-width: none; }
  .band { aspect-ratio: 4 / 3; }
  .rows li a { grid-template-columns: 1fr auto; }
  .rows .when { grid-column: 1 / -1; }
  .faq details { padding: 4px 16px; margin: 0 -16px; }
  .foot-row { grid-template-columns: 1fr; gap: 8px; }
  .foot-row p:nth-child(2), .foot-row p:last-child { text-align: left; }
}

/* ---------- claim page ---------- */
.claim {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: start; padding: 48px var(--margin) var(--gap);
  min-height: calc(100svh - 76px);
}
.claim-intro { grid-column: 1 / span 5; display: grid; gap: 24px; position: sticky; top: 100px; }
.claim-intro h1 { max-width: 7ch; }
.claim-steps { display: grid; gap: 6px; counter-reset: step; margin-top: 8px; }
.claim-steps li { display: flex; align-items: center; gap: 12px; color: var(--soft); font-weight: 500; }
.claim-steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--tone); color: var(--soft); font-size: var(--step-small); font-variant-numeric: tabular-nums;
}
.claim-steps li[aria-current] { color: var(--ink); }
.claim-steps li[aria-current]::before { background: var(--accent); color: #fff; }
.claim-steps li.is-done { color: var(--ink); }
.claim-steps li.is-done::before { background: var(--ink); color: #fff; }

.claim-panel { grid-column: 7 / -1; display: grid; gap: 16px; }
.claim-alert { background: #fde7f2; color: #8a0049; border-radius: 16px; padding: 14px 18px; font-weight: 500; }
.step-panel { background: var(--tone); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; }
.step-panel[hidden] { display: none; }
.sub-head { font: 800 var(--step-lead)/1.15 var(--face); letter-spacing: -.02em; }
.sub-head:focus { outline: none; }
.step-panel label, .platforms legend { font-weight: 500; }
.step-panel input[type="text"], .step-panel select {
  width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px;
  background: #fff; color: var(--ink); font: 500 var(--step-body)/1.2 var(--face);
}
.step-panel select { appearance: none; background: #fff; cursor: pointer; }
.step-panel input:focus-visible, .step-panel select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.step-panel .button { justify-self: start; }
.step-panel .button:disabled { opacity: .6; cursor: progress; }
.hint { color: var(--soft); font-size: var(--step-small); }

.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.pay-facts { display: grid; gap: 10px; margin: 0; }
.pay-facts div { background: #fff; border-radius: 16px; padding: 12px 16px; }
.pay-facts dt { color: var(--soft); font-size: var(--step-small); }
.pay-facts dd { margin: 4px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-value { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 0; }
.pay-address { font-weight: 500; overflow-wrap: anywhere; font-size: var(--step-small); }
.pay-qr { display: grid; gap: 12px; justify-items: center; }
.qr { background: #fff; padding: 12px; border-radius: 16px; }
.qr img, .qr canvas { display: block; width: 184px; height: 184px; }
.button-quiet { background: #fff; color: var(--ink); min-height: 48px; padding: 0 20px; font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) { .button-quiet:hover { background: var(--ink); color: #fff; } }
.copy, .text-button {
  flex: none; border: 0; background: var(--tone); color: var(--ink); cursor: pointer;
  min-height: 36px; padding: 0 14px; border-radius: 999px; font: 500 var(--step-small)/1 var(--face);
  transition: background-color 180ms ease;
}
.text-button { background: none; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: #e2e2de; } .text-button:hover { color: var(--ink); } }

.pay-status { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); flex: none; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.platforms { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platforms legend { margin-bottom: 10px; padding: 0; }
.platform { position: relative; cursor: pointer; }
.platform input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.platform span { display: grid; gap: 2px; background: #fff; border-radius: 16px; padding: 18px; transition: background-color 180ms ease, color 180ms ease; }
.platform b { font-size: var(--step-body); }
.platform small { color: var(--soft); font-size: var(--step-small); }
.platform input:checked + span { background: var(--ink); color: #fff; }
.platform input:checked + span small { color: #c9c9cf; }
.platform input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.paid-line { color: var(--soft); }

.code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border-radius: 16px; padding: 18px 20px;
  font: 800 var(--step-lead)/1.2 var(--face); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.code-box span { overflow-wrap: anywhere; user-select: all; }
.code-list { display: grid; gap: 14px; margin-bottom: 8px; }
.code-item { display: grid; gap: 6px; }

@media (max-width: 960px) {
  .claim-intro { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .claim-panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pay-grid { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .claim-steps { grid-template-columns: 1fr 1fr; }
}
