:root {
  --purple-950: #16003e;
  --purple-900: #24005d;
  --purple-800: #3a0791;
  --purple-700: #5c1ee0;
  --purple-500: #8b4dff;
  --gold-700: #d89200;
  --gold-500: #ffbf00;
  --gold-300: #ffe36a;
  --stock-700: #12733c;
  --stock-500: #27c66f;
  --stock-300: #9dffbe;
  --cream: #fff8dc;
  --ink: #1a063d;
  --white: #fffdf7;
  --border: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 226, 82, .2), transparent 24rem),
    radial-gradient(circle at 86% 30%, rgba(142, 74, 255, .5), transparent 30rem),
    linear-gradient(180deg, #4a0bb5 0%, #24005d 52%, #16003e 100%);
  font-family: Arial Rounded MT Bold, Trebuchet MS, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.sparkle {
  position: absolute; width: 9px; height: 9px; background: var(--gold-300);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: sparkleOut .8s ease-out forwards;
}
@keyframes sparkleOut { to { transform: translateY(-25px) rotate(120deg) scale(.2); opacity: 0; } }

.loader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-content: center; gap: 24px;
  background: radial-gradient(circle, #7c35ff 0%, #3a0791 42%, #16003e 100%);
  transition: opacity .45s ease, visibility .45s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader p { margin: 0; letter-spacing: .17em; font-weight: 1000; text-align: center; color: var(--gold-300); text-shadow: 3px 3px 0 var(--ink); }
.loader-orbit { position: relative; width: 150px; aspect-ratio: 1; margin: auto; }
.loader-orbit img { width: 100%; border-radius: 50%; animation: loaderBounce .9s ease-in-out infinite alternate; filter: drop-shadow(0 15px 8px rgba(13, 0, 38, .45)); }
.orbit-coin { position: absolute; color: var(--gold-300); font-size: 30px; animation: orbit 1.8s linear infinite; }
.orbit-coin-one { top: -15px; left: 50%; }
.orbit-coin-two { right: -20px; bottom: 20px; animation-delay: -.6s; }
.orbit-coin-three { left: -20px; bottom: 20px; animation-delay: -1.2s; }
@keyframes loaderBounce { to { transform: translateY(-12px) rotate(-4deg); } }
@keyframes orbit { to { transform: rotate(360deg) scale(1.25); } }

.site-header {
  position: fixed; top: 16px; left: 50%; z-index: 40; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px)); min-height: 68px; padding: 8px 10px 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 3px solid rgba(26, 6, 61, .9); border-radius: 22px;
  background: rgba(255, 248, 220, .93); color: var(--ink); box-shadow: 0 10px 30px rgba(12, 0, 35, .3);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 1000; letter-spacing: -.04em; font-size: 20px; white-space: nowrap; }
.brand img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; border: 2px solid var(--ink); }
.brand b { color: var(--purple-700); }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 1000; }
.site-header nav a { transition: transform .2s ease, color .2s ease; }
.site-header nav a:hover { color: var(--purple-700); transform: translateY(-2px) rotate(-1deg); }
.mini-button {
  padding: 12px 16px; border: 3px solid var(--ink); border-radius: 13px; background: var(--gold-500);
  box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 1000; transition: .18s ease;
}
.mini-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.section-shell { width: min(1180px, calc(100% - 34px)); margin-inline: auto; }
.hero { min-height: 100svh; padding-top: 126px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { font-size: 13px; letter-spacing: .16em; font-weight: 1000; color: var(--gold-300); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(22, 0, 62, .45); border: 2px solid var(--gold-300); border-radius: 999px; }
.hero h1, h2 { margin: 18px 0; line-height: .84; letter-spacing: -.07em; font-weight: 1000; text-transform: uppercase; }
.hero h1 { font-size: clamp(76px, 10vw, 144px); text-shadow: 7px 7px 0 var(--ink); }
.hero h1 em, h2 em { color: var(--gold-500); font-style: normal; -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--ink); }
.hero-copy > p { max-width: 650px; font-size: 19px; line-height: 1.55; color: #f2e8ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.comic-button {
  display: inline-flex; align-items: center; justify-content: center; padding: 0; border: var(--border); border-radius: 17px;
  box-shadow: var(--shadow); transform: rotate(-1deg); transition: transform .18s ease, box-shadow .18s ease; cursor: pointer;
}
.comic-button span { display: block; padding: 18px 24px; font-weight: 1000; font-size: 15px; letter-spacing: .04em; }
.comic-button.primary { color: var(--ink); background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.comic-button.secondary { color: var(--white); background: var(--purple-700); transform: rotate(1deg); }
.comic-button:hover { transform: translate(4px, 4px) rotate(0); box-shadow: 4px 4px 0 var(--ink); }
.contract-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; max-width: 610px; padding: 12px 14px;
  color: var(--ink); border: 3px solid var(--ink); border-radius: 15px; background: rgba(255, 248, 220, .95); box-shadow: 5px 5px 0 var(--ink);
}
.contract-card span { font-weight: 1000; font-size: 12px; }
.contract-card code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.contract-card button { border: 2px solid var(--ink); border-radius: 9px; padding: 8px 10px; background: #ddd3ef; font-size: 11px; font-weight: 1000; opacity: .6; }

.hero-art { position: relative; }
.art-frame { position: relative; border: 6px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: 16px 16px 0 var(--ink); transform: rotate(2deg); background: var(--purple-800); }
.art-frame picture img { width: 100%; min-height: 460px; object-fit: cover; }
.art-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(30, 0, 72, .3); pointer-events: none; }
.hero-sticker { position: absolute; z-index: 2; padding: 10px 14px; color: var(--ink); background: var(--gold-300); border: 3px solid var(--ink); border-radius: 12px; font-size: 13px; font-weight: 1000; box-shadow: 4px 4px 0 var(--ink); }
.sticker-one { left: 16px; bottom: 18px; transform: rotate(-6deg); }
.sticker-two { right: 15px; top: 18px; transform: rotate(6deg); }

.scroll-tape { position: absolute; left: 50%; bottom: 4px; width: 100vw; transform: translateX(-50%) rotate(-1.5deg); overflow: hidden; border-block: 4px solid var(--ink); background: var(--gold-500); color: var(--ink); }
.scroll-tape div { display: flex; width: max-content; gap: 26px; padding: 13px 0; animation: tape 18s linear infinite; font-weight: 1000; }
@keyframes tape { to { transform: translateX(-50%); } }

.story, .rewards, .vault, .faq, .final-cta { padding-block: 130px; }
.section-heading { max-width: 850px; }
h2 { font-size: clamp(52px, 8vw, 94px); text-shadow: 5px 5px 0 var(--ink); }
.section-heading > p, .reward-copy > p, .vault-copy > p { max-width: 720px; font-size: 19px; line-height: 1.55; color: #eadcff; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.comic-card { position: relative; min-height: 300px; padding: 30px; color: var(--ink); background: var(--cream); border: var(--border); border-radius: 26px; box-shadow: var(--shadow); transition: transform .2s ease; }
.comic-card:nth-child(2) { background: var(--stock-300); transform: translateY(28px) rotate(1deg); }
.comic-card:nth-child(3) { background: #caa8ff; }
.comic-card:hover { transform: translateY(-9px) rotate(-2deg); }
.comic-card:nth-child(2):hover { transform: translateY(19px) rotate(2deg); }
.panel-number { position: absolute; right: 18px; top: 13px; font-size: 40px; color: rgba(26, 6, 61, .15); font-weight: 1000; }
.panel-icon { font-size: 62px; filter: drop-shadow(4px 4px 0 rgba(26, 6, 61, .25)); }
.comic-card h3 { margin: 20px 0 8px; font-size: 28px; line-height: .95; }
.comic-card p { line-height: 1.5; font-family: Trebuchet MS, Arial, sans-serif; }

.reward-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px; border: var(--border); border-radius: 44px; background: linear-gradient(135deg, rgba(139, 77, 255, .35), rgba(22, 0, 62, .65)); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.reward-logo-wrap { position: relative; display: grid; place-items: center; min-height: 500px; }
.reward-logo-wrap img { position: relative; z-index: 2; width: min(420px, 90%); border-radius: 50%; box-shadow: 0 34px 40px rgba(11,0,30,.38); animation: float 3s ease-in-out infinite; }
.pulse-ring { position: absolute; width: 88%; aspect-ratio: 1; border: 5px dashed var(--gold-300); border-radius: 50%; animation: spin 14s linear infinite; opacity: .8; }
.floating-chip { position: absolute; z-index: 3; padding: 12px 15px; color: var(--ink); background: var(--stock-300); border: 3px solid var(--ink); border-radius: 11px; box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 1000; animation: bob 2.6s ease-in-out infinite alternate; }
.chip-a { top: 12%; right: 2%; transform: rotate(8deg); }
.chip-b { bottom: 15%; left: 0; transform: rotate(-8deg); animation-delay: -.7s; }
.chip-c { bottom: 3%; right: 12%; transform: rotate(4deg); animation-delay: -1.2s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { to { translate: 0 -12px; } }
.honesty-box { display: grid; gap: 5px; padding: 18px; color: var(--ink); background: var(--stock-300); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1deg); }
.honesty-box strong { font-size: 18px; }
.honesty-box span { font-size: 14px; line-height: 1.4; }

.vault { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.comic-button.giant span { padding: 24px 55px; font-size: 26px; }
.local-score { margin-top: 24px; font-weight: 1000; color: var(--gold-300); letter-spacing: .08em; }
.vault-machine { border: var(--border); border-radius: 36px; padding: 24px; color: var(--ink); background: linear-gradient(145deg, var(--stock-300), var(--stock-500)); box-shadow: 14px 14px 0 var(--ink); transform: rotate(1deg); }
.machine-top, .machine-label { text-align: center; font-weight: 1000; letter-spacing: .08em; }
.machine-top { font-size: 22px; padding: 6px 0 18px; }
.machine-window { position: relative; height: 420px; display: grid; place-items: center; overflow: hidden; border: 5px solid var(--ink); border-radius: 26px; background: radial-gradient(circle at center, #7e42ff, #2a006e 68%); box-shadow: inset 0 0 35px rgba(0,0,0,.35); }
.vault-door { width: min(290px, 70%); border-radius: 50%; box-shadow: 0 18px 24px rgba(17,0,48,.4); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.vault-machine.flapped .vault-door { transform: rotate(14deg) scale(.9); }
.machine-slot { width: 65%; height: 30px; margin: 18px auto; padding: 7px; border: 4px solid var(--ink); border-radius: 999px; background: #41109a; }
.machine-slot span { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.machine-label { padding: 8px; }
.coin-rain { position: absolute; inset: 0; pointer-events: none; }
.rain-coin { position: absolute; top: -60px; min-width: 36px; padding: 5px 7px; color: var(--ink); background: var(--stock-300); border: 2px solid var(--ink); border-radius: 8px; font-size: 22px; font-weight: 1000; line-height: 1; text-align: center; animation: rain 1.4s cubic-bezier(.16,.7,.29,1) forwards; filter: drop-shadow(3px 4px 0 var(--ink)); }
@keyframes rain { 75% { opacity: 1; } to { transform: translateY(490px) rotate(720deg); opacity: 0; } }

.manifesto { padding-block: 90px; text-align: center; }
.manifesto p { margin: 0; font-size: clamp(42px, 7vw, 92px); line-height: .96; font-weight: 1000; letter-spacing: -.06em; text-shadow: 5px 5px 0 var(--ink); }
.manifesto p:nth-child(2) { color: var(--stock-300); transform: rotate(-1deg); }
.manifesto em { color: var(--gold-500); font-style: normal; -webkit-text-stroke: 2px var(--ink); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-list { display: grid; gap: 16px; }
details { color: var(--ink); background: var(--cream); border: var(--border); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 22px 24px; font-size: 18px; font-weight: 1000; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 28px; line-height: 18px; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 24px 22px; line-height: 1.5; font-family: Trebuchet MS, Arial, sans-serif; }

.final-card { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 40px; padding: 60px; color: var(--ink); background: var(--cream); border: var(--border); border-radius: 38px; box-shadow: 14px 14px 0 var(--ink); transform: rotate(-1deg); }
.final-card img { width: min(370px, 100%); border-radius: 50%; transform: rotate(-6deg); box-shadow: 0 24px 30px rgba(26,6,61,.28); }
.final-card h2 { color: var(--purple-800); text-shadow: 4px 4px 0 #c9adff; }
.final-card .kicker { color: var(--purple-700); }

footer { width: min(1180px, calc(100% - 34px)); margin: 60px auto 0; padding: 28px 0 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; border-top: 2px solid rgba(255,255,255,.2); color: #cab9ee; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
footer p { text-align: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(72px, 18vw, 122px); }
  .art-frame picture img { min-height: 340px; }
  .story-grid { grid-template-columns: 1fr; }
  .comic-card:nth-child(2) { transform: none; }
  .reward-stage, .vault, .faq, .final-card { grid-template-columns: 1fr; }
  .reward-stage { padding: 42px 28px; }
  .reward-logo-wrap { min-height: 410px; }
  .faq { gap: 34px; }
}

@media (max-width: 640px) {
  .site-header { top: 9px; width: calc(100% - 16px); min-height: 60px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .mini-button { padding: 10px 12px; }
  .section-shell { width: min(100% - 22px, 1180px); }
  .hero { gap: 30px; }
  .hero h1 { text-shadow: 4px 4px 0 var(--ink); }
  .hero-copy > p, .section-heading > p, .reward-copy > p, .vault-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .comic-button { width: 100%; }
  .contract-card { grid-template-columns: 1fr; }
  .contract-card button { display: none; }
  .art-frame { border-width: 4px; border-radius: 24px; box-shadow: 8px 8px 0 var(--ink); }
  .art-frame picture img { min-height: 240px; }
  .story, .rewards, .vault, .faq, .final-cta { padding-block: 84px; }
  h2 { font-size: clamp(48px, 17vw, 76px); }
  .reward-stage { padding: 34px 18px; border-radius: 28px; }
  .reward-logo-wrap { min-height: 330px; }
  .vault { gap: 38px; }
  .machine-window { height: 330px; }
  .final-card { padding: 30px 20px; border-radius: 26px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p { text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
