/* ============================================
   PACMON — Landing Page
   ============================================ */

:root {
  --bg: #05070f;
  --bg-2: #0a0f1d;
  --card: rgba(14, 20, 38, 0.72);
  --line: rgba(120, 160, 255, 0.16);
  --text: #eef1fb;
  --muted: #9aa5c4;
  --yellow: #ffd700;
  --red: #ff4d55;
  --cyan: #38d6ff;
  --radius: 16px;
  --px: 'Press Start 2P', monospace;
  --body: 'Pixelify Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--yellow); color: #1a1500; padding: 10px 16px; font-family: var(--px); font-size: 10px;
}
.skip-link:focus { top: 12px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--px); text-transform: uppercase; letter-spacing: .5px;
  border: 2px solid transparent; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-lg { padding: 18px 26px; font-size: 12px; }
.btn-sm { padding: 10px 16px; font-size: 10px; }
.btn-yellow {
  background: linear-gradient(180deg, #ffe44d, var(--yellow));
  color: #1a1500;
  box-shadow: 0 5px 0 #a88a00, 0 12px 28px rgba(255, 215, 0, .25);
}
.btn-yellow:hover { transform: translateY(2px); box-shadow: 0 3px 0 #a88a00, 0 8px 22px rgba(255, 215, 0, .3); }
.btn-yellow:active { transform: translateY(5px); box-shadow: 0 0 0 #a88a00; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: var(--red); background: rgba(255, 77, 85, .1); color: #fff; }

/* ----- Loader ----- */
body.loading { overflow: hidden; }
#loader, #launch-loader {
  position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(rgba(5, 7, 15, .9), rgba(5, 7, 15, .96)),
    url('assets/image/earn.jpeg') center/cover;
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
#loader.done { opacity: 0; transform: scale(1.06); visibility: hidden; }
#launch-loader { opacity: 0; visibility: hidden; transition: opacity .35s ease; }
#launch-loader.show { opacity: 1; visibility: visible; }
#launch-loader.ready .loader-pct { animation: ready .4s steps(2) 3; }
#launch-loader .loader-glow { background: radial-gradient(circle, rgba(255, 215, 0, .3), transparent 65%); }
.loader-glow { position: absolute; width: 520px; height: 520px; max-width: 120vw; border-radius: 50%; background: radial-gradient(circle, rgba(255, 77, 85, .28), transparent 65%); filter: blur(20px); animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes glowPulse { 50% { transform: scale(1.15); opacity: .7; } }
.loader-inner { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.loader-logo { width: min(260px, 70vw); height: auto; margin-bottom: 34px; filter: drop-shadow(0 0 24px rgba(255, 215, 0, .35)); animation: logoIn .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }

.loader-lane { position: relative; width: 100%; height: 56px; }
.loader-dots { position: absolute; inset: 0; background: radial-gradient(circle, var(--yellow) 3px, transparent 3.5px) 0 50% / 28px 100% repeat-x; opacity: .8; }
.loader-lane { --p: 0%; }
.loader-dots { -webkit-mask-image: linear-gradient(90deg, transparent var(--p), #000 var(--p)); mask-image: linear-gradient(90deg, transparent var(--p), #000 var(--p)); }
.loader-eaten { display: none; }
.loader-runner { position: absolute; top: 0; left: 0; height: 100%; width: 0; }
.loader-runner img { position: absolute; top: 6px; width: 44px; height: 44px; object-fit: contain; }
.loader-runner .lp { right: -22px; z-index: 3; width: 48px; height: 48px; top: 4px; }
.loader-runner .lg { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); animation: ghostHop .5s ease-in-out infinite; }
.loader-runner .lg1 { right: 38px; } .loader-runner .lg2 { right: 82px; animation-delay: -.12s; }
.loader-runner .lg3 { right: 126px; animation-delay: -.24s; } .loader-runner .lg4 { right: 170px; animation-delay: -.36s; }
@keyframes ghostHop { 50% { transform: translateY(-5px); } }

.loader-pct { margin-top: 26px; font-family: var(--px); font-size: clamp(34px, 9vw, 52px); color: var(--yellow); text-shadow: 0 4px 0 #7a6500, 0 0 28px rgba(255, 215, 0, .35); line-height: 1; }
.loader-pct small { font-size: .4em; margin-left: 4px; color: #fff; text-shadow: none; }
.loader-msg { margin-top: 18px; min-height: 1.6em; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.loader-bar { width: 100%; height: 8px; margin-top: 22px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
#progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--yellow)); box-shadow: 0 0 14px rgba(255, 215, 0, .6); }
#loader.ready .loader-pct { animation: ready .5s steps(2) 2; }
@keyframes ready { 50% { opacity: .2; } }

/* ----- Nav ----- */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
#site-nav.scrolled { background: rgba(5, 7, 15, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav-links { display: none; gap: 30px; }
.nav-link { position: relative; padding: 6px 0; color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; transition: color .2s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
#mobile-nav { display: flex; flex-direction: column; padding: 8px 24px 20px; background: rgba(5, 7, 15, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
#mobile-nav a:last-child { border: 0; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  #mobile-nav { display: none !important; }
}

/* ----- Hero ----- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(255, 77, 85, .18), transparent 55%),
    linear-gradient(180deg, rgba(5, 7, 15, .55), var(--bg) 96%),
    url('assets/image/earn.jpeg') center/cover no-repeat;
  opacity: .9;
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 85, 0); } }
.hero h1 { margin: 0 0 24px; font-family: var(--px); font-size: clamp(24px, 5.2vw, 46px); line-height: 1.35; text-transform: uppercase; }
.grad { background: linear-gradient(90deg, var(--yellow), #ff9d3d, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; line-height: 1.65; color: #d5dcf2; max-width: 520px; }
.sub { margin-top: 12px; font-size: 16px; letter-spacing: .5px; color: var(--yellow); opacity: .85; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.cta .btn { flex: 0 1 220px; min-height: 58px; }
@media (max-width: 520px) { .cta .btn { flex: 1 1 100%; } }

.hero-art { position: relative; max-width: 480px; width: 100%; margin: 0 auto; }
.art-glow { position: absolute; inset: -10%; background: radial-gradient(circle, rgba(255, 77, 85, .35), transparent 65%); filter: blur(30px); }
.art-frame {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(56, 214, 255, .08);
  transform: rotate(-2deg);
}
.art-frame img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); animation: bob 3.2s ease-in-out infinite; }
.f1 { top: -18px; left: -14px; }
.f2 { top: 18%; right: -20px; animation-delay: -.8s; }
.f3 { bottom: 14%; left: -22px; animation-delay: -1.6s; }
.f4 { bottom: -18px; right: 8%; animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 899px) { .hero-copy { text-align: center; } .lead { margin: 0 auto; } .cta, .chips { justify-content: center; } .hero { padding-top: 100px; } .scroll-cue { display: none; } }

/* ----- Marquee ----- */
.marquee { overflow: hidden; background: var(--yellow); color: #1a1500; transform: rotate(-1deg) scale(1.02); margin: -10px 0 10px; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; padding: 14px 0; width: max-content; font-family: var(--px); font-size: 14px; animation: scroll 28s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ----- Sections ----- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-maze {
  background:
    linear-gradient(var(--bg), rgba(5, 7, 15, .86) 20%, rgba(5, 7, 15, .86) 80%, var(--bg)),
    url('assets/image/earn.jpeg') center/cover fixed;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.row { max-width: none; margin: 0 0 40px; text-align: left; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-family: var(--px); font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
h2 { font-family: var(--px); font-size: clamp(18px, 3.4vw, 30px); line-height: 1.5; text-transform: uppercase; }
.body { margin-top: 16px; color: var(--muted); font-size: 18px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: rgba(255, 215, 0, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }

.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.media { border-radius: 20px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 0 0 8px rgba(56, 214, 255, .05), 0 30px 70px rgba(0, 0, 0, .5); }
.media img { width: 100%; }

.feature-grid { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature { padding: 24px; }
.feature .icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 215, 0, .12); color: var(--yellow); font-size: 22px; }
.feature h3, .step h3 { font-family: var(--px); font-size: 12px; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.feature p, .step p { color: var(--muted); font-size: 16px; }

/* ----- Roster ----- */
.roster { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .roster { grid-template-columns: repeat(4, 1fr); } }
.ghost { padding: 28px 16px 24px; text-align: center; position: relative; overflow: hidden; }
.ghost::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 65%); }
.ghost img { position: relative; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 16px; transition: transform .3s; }
.ghost:hover img { transform: scale(1.12) rotate(-6deg); }
.ghost h3 { position: relative; font-family: var(--px); font-size: 12px; color: var(--c); text-transform: uppercase; }
.ghost p { position: relative; margin-top: 12px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.ghost strong { position: relative; font-weight: 600; font-size: 16px; }

/* ----- Steps ----- */
.steps { display: grid; gap: 34px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 46px 26px 28px; }
.num { position: absolute; top: -20px; left: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--yellow); color: #1a1500; font-family: var(--px); font-size: 15px; box-shadow: 0 4px 0 #a88a00; }

/* ----- Rewards ----- */
.reward-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .reward-grid { grid-template-columns: 1fr 1fr; } }
.reward { padding: 30px; border-top: 3px solid var(--c); }
.reward header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.reward .tag { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--c); color: var(--c); font-family: var(--px); font-size: 12px; }
.reward h3 { font-family: var(--px); font-size: 13px; text-transform: uppercase; color: var(--c); }
.reward small { color: var(--muted); font-size: 13px; }
.reward > p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.rank-list { display: grid; gap: 10px; }
.rank-list li { display: grid; grid-template-columns: 46px 1fr 70px; align-items: center; gap: 12px; font-size: 15px; }
.rank-list span { color: var(--muted); }
.rank-list i { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.rank-list i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 40%, transparent), var(--c)); border-radius: 99px; transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.reveal.active .rank-list i::after { transform: scaleX(1); }
.rank-list b { text-align: right; font-weight: 600; }

/* ----- Stats ----- */
.stats { padding: 70px 0; background: linear-gradient(90deg, #8d1220, #c4162a 40%, #ff4d55); position: relative; }
.stats::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; background: #05070f; opacity: .0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stat-num { font-family: var(--px); font-size: clamp(16px, 4.2vw, 40px); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.stat-label { margin-top: 12px; font-size: clamp(11px, 1.6vw, 15px); text-transform: uppercase; letter-spacing: 1px; color: #ffe3e4; }

/* ----- Table ----- */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { padding: 18px 22px; text-align: left; font-family: var(--px); font-size: 10px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); font-weight: 400; }
td { padding: 18px 22px; border-bottom: 1px solid rgba(120, 160, 255, .08); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255, 215, 0, .05); }
.score { color: var(--yellow); font-weight: 600; }
.rank { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-family: var(--px); font-size: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.rank.gold { background: #ffd700; color: #1a1500; }
.rank.silver { background: #cfd4de; color: #151a22; }
.rank.bronze { background: #cd7f32; color: #1a0d00; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; background: rgba(255, 255, 255, .08); }
.pill.gold { background: rgba(255, 215, 0, .15); color: var(--yellow); }
.pill.silver { background: rgba(207, 212, 222, .15); color: #cfd4de; }
.pill.bronze { background: rgba(205, 127, 50, .18); color: #e59a52; }

.tabs { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.tab { padding: 10px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-family: var(--px); font-size: 10px; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { color: #fff; }
.tab.active { background: var(--yellow); color: #1a1500; }
.lb-note { padding: 14px 22px; font-size: 14px; color: var(--muted); text-align: center; border-top: 1px solid rgba(120, 160, 255, .08); }
.lb-note:empty { display: none; }

/* ----- Mission ----- */
.checks { margin-top: 28px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 38px; font-size: 18px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 215, 0, .15); color: var(--yellow); font-size: 14px; }
.vision { padding: 32px; border-right: 4px solid var(--yellow); border-bottom: 4px solid var(--yellow); }
.vision h3 { font-family: var(--px); font-size: 14px; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.vision p { color: var(--muted); }
.progress { height: 8px; margin: 26px 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--yellow)); }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ----- Timeline ----- */
.timeline { display: grid; gap: 20px; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); position: relative; } .timeline::before { content: ''; position: absolute; top: 44px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); } }
.phase { position: relative; padding: 28px 24px; }
.phase::before { content: ''; position: absolute; top: -7px; left: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--muted); }
.phase.done::before { background: var(--yellow); border-color: var(--yellow); }
.phase.now::before { background: var(--red); border-color: var(--red); animation: ping 1.8s infinite; }
.phase-n { font-family: var(--px); font-size: 10px; color: var(--muted); text-transform: uppercase; }
.phase h3 { margin: 12px 0; font-family: var(--px); font-size: 14px; text-transform: uppercase; }
.phase p { color: var(--muted); font-size: 16px; }
.phase em { display: inline-block; margin-top: 18px; font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.phase.done em { color: var(--yellow); }
.phase.now { border-color: rgba(255, 77, 85, .5); }
.phase.now em { color: var(--red); }

/* ----- Final CTA ----- */
.final { padding: 110px 0; text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(255, 77, 85, .22), transparent 60%), var(--bg); }
.final-img { max-width: 420px; width: 80%; margin: 0 auto 24px; border-radius: 20px; mix-blend-mode: lighten; filter: invert(1) hue-rotate(180deg); }
.final .body { margin: 16px 0 32px; }

/* ----- Footer ----- */
footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-family: var(--px); font-size: 12px; color: var(--yellow); }
.foot-brand img { height: 32px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--yellow); }
@media (min-width: 700px) { .foot { flex-direction: row; justify-content: space-between; } }
.foot-legal { margin: 22px auto 0; max-width: 900px; padding-top: 18px; border-top: 1px solid rgba(120, 160, 255, .1); text-align: center; font-size: 13px; line-height: 1.6; color: #6b7aa8; }
/* keep the footer clear of the sticky "Play now" bar on phones */
@media (max-width: 799px) { footer { padding-bottom: 96px; } }

/* ----- Modal ----- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: 100%; max-width: 420px; padding: 34px 28px 28px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.modal-box h3 { margin-bottom: 24px; text-align: center; font-family: var(--px); font-size: 13px; text-transform: uppercase; color: var(--yellow); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.wallet { width: 100%; display: flex; justify-content: space-between; margin-bottom: 12px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #fff; font-family: var(--px); font-size: 12px; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.wallet:hover { border-color: var(--yellow); background: rgba(255, 215, 0, .08); }
.wallet span { color: var(--yellow); }
.modal-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.modal-note a { color: var(--yellow); text-decoration: underline; }

.wallet-tag { margin-left: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 12px; }
.connected-addr { margin-bottom: 14px; padding: 14px; border-radius: 12px; background: rgba(74, 222, 203, .1); border: 1px solid rgba(74, 222, 203, .35); color: #4adecb; font-size: 14px; word-break: break-all; text-align: center; }

/* ----- Scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s ease-out, border-color .25s, box-shadow .25s; }
.reveal.active { opacity: 1; transform: translateY(0); }
.card.reveal.active:hover { transform: translateY(-4px); }

/* ----- Scrollbar / selection ----- */
::selection { background: var(--yellow); color: #1a1500; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3350; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ----- Scroll progress ----- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--red), var(--yellow)); box-shadow: 0 0 12px rgba(255, 215, 0, .6); }

/* ----- Chomp lane ----- */
.lane { position: relative; height: 64px; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); }
.lane-dots { position: absolute; inset: 0; background: radial-gradient(circle, var(--yellow) 3px, transparent 3.5px) 0 50% / 36px 100% repeat-x; opacity: .85; }
.lane-eaten { position: absolute; inset: 0; width: 0; background: var(--bg); animation: eat 9s linear infinite; }
.lane-pac { position: absolute; top: 8px; left: 0; width: 48px; height: 48px; object-fit: contain; animation: runpac 9s linear infinite; z-index: 2; }
.lane-ghost { position: absolute; top: 10px; left: 0; width: 44px; height: 44px; object-fit: contain; opacity: .95; animation: runghost 9s linear infinite; }
.lane-ghost.g1 { animation-delay: .9s; } .lane-ghost.g2 { animation-delay: 1.4s; } .lane-ghost.g3 { animation-delay: 1.9s; } .lane-ghost.g4 { animation-delay: 2.4s; }
@keyframes eat { from { width: 0; } to { width: 100%; } }
@keyframes runpac { from { transform: translateX(-24px); left: 0; } to { transform: translateX(-24px); left: 100%; } }
@keyframes runghost { from { left: -10%; } to { left: 112%; } }

/* ----- Stagger ----- */
.roster .reveal:nth-child(2), .steps .reveal:nth-child(2), .timeline .reveal:nth-child(2), .feature-grid .card:nth-child(2) { transition-delay: .12s; }
.roster .reveal:nth-child(3), .steps .reveal:nth-child(3), .timeline .reveal:nth-child(3) { transition-delay: .24s; }
.roster .reveal:nth-child(4), .timeline .reveal:nth-child(4) { transition-delay: .36s; }
.card.reveal.active:hover { transition-delay: 0s; }

/* ----- Hero art parallax ----- */
.art-frame { transition: transform .2s ease-out; will-change: transform; }
.hero-art { perspective: 900px; }

/* ----- FAQ ----- */
.faq-wrap { max-width: 800px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 215, 0, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 215, 0, .12); color: var(--yellow); transition: transform .25s; }
.faq details[open] summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* ----- Floating UI ----- */
#sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; padding: 16px; font-size: 12px; transform: translateY(140%); transition: transform .3s; }
#sticky-cta.show { transform: none; }
#to-top { position: fixed; right: 18px; bottom: 18px; z-index: 91; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 20, 38, .9); backdrop-filter: blur(8px); color: var(--yellow); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s, border-color .2s; }
#to-top.show { opacity: 1; pointer-events: auto; transform: none; }
#to-top:hover { border-color: var(--yellow); }
@media (max-width: 799px) { body.cta-on #to-top { bottom: 84px; } }
@media (min-width: 800px) { #sticky-cta { display: none; } }
#toast { position: fixed; left: 50%; top: 88px; z-index: 300; transform: translate(-50%, -20px); padding: 12px 20px; border-radius: 99px; background: var(--yellow); color: #1a1500; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----- Button shine ----- */
.btn-yellow { position: relative; overflow: hidden; }
.btn-yellow::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .5s; }
.btn-yellow:hover::after { left: 130%; }

/* ----- Legal / Terms page ----- */
.legal-bar { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 15, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.legal { max-width: 800px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { margin: 6px 0 10px; font-family: var(--px); font-size: clamp(22px, 5vw, 34px); line-height: 1.4; text-transform: uppercase; color: var(--yellow); }
.legal-meta { margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 38px 0 12px; font-family: var(--px); font-size: 13px; line-height: 1.6; text-transform: uppercase; color: #fff; }
.legal p, .legal li { color: #c8d0e8; font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--yellow); }
.legal a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: #fff; font-weight: 600; }

/* ----- X button ----- */
.x-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); transition: background .2s, border-color .2s, transform .15s; }
.x-btn svg { width: 16px; height: 16px; fill: #fff; }
.x-btn:hover { background: #fff; border-color: #fff; transform: translateY(-2px); }
.x-btn:hover svg { fill: #000; }

/* ----- Contract address ----- */
.ca { display: flex; align-items: center; gap: 12px; max-width: 460px; margin-top: 22px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.ca-label { flex: none; font-family: var(--px); font-size: 10px; color: var(--yellow); }
.ca code { flex: 1; min-width: 0; text-align: left; font-family: var(--body); font-size: 15px; color: #d5dcf2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ca-copy { flex: none; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--yellow); color: #1a1500; font-family: var(--px); font-size: 9px; text-transform: uppercase; cursor: pointer; }
.ca-copy:disabled { background: rgba(255, 255, 255, .1); color: var(--muted); cursor: default; }
@media (max-width: 899px) { .ca { margin-left: auto; margin-right: auto; } }

/* ----- Power-ups ----- */
.pills { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .pills { grid-template-columns: repeat(4, 1fr); } }
.pill-card { padding: 26px 16px 22px; text-align: center; position: relative; overflow: hidden; }
.pill-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, .16), transparent 65%); }
.pill-card img { position: relative; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 14px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.pill-card:nth-child(2) img { animation-delay: -.7s; } .pill-card:nth-child(3) img { animation-delay: -1.4s; } .pill-card:nth-child(4) img { animation-delay: -2.1s; }
.pill-card h3 { position: relative; font-family: var(--px); font-size: 12px; text-transform: uppercase; color: var(--yellow); }
.pill-card p { position: relative; margin-top: 10px; font-size: 14px; color: var(--muted); }

.rules { display: grid; gap: 16px; }
@media (min-width: 700px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rule { padding: 24px; }
.rule-icon { height: 52px; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.rule-icon svg { width: 48px; height: 48px; }
.rule-icon.power img { width: 40px; height: 40px; object-fit: contain; }
.rule-icon.combo { gap: 6px; flex-wrap: wrap; align-content: center; }
.rule-icon.combo span { padding: 3px 7px; border-radius: 8px; background: rgba(74, 222, 203, .12); border: 1px solid rgba(74, 222, 203, .4); color: #4adecb; font-family: var(--px); font-size: 8px; }
.rule-icon.hot { font-size: 30px; color: var(--red); }
.rule h3 { margin-bottom: 10px; font-family: var(--px); font-size: 11px; line-height: 1.6; text-transform: uppercase; color: #fff; }
.rule h3 b { color: var(--yellow); font-weight: 400; }
.rule p { color: var(--muted); font-size: 15px; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rank-list i::after { transform: scaleX(1); transition: none; }
}
