/* Landing layout — sunny light theme. Loads after base.css. */

/* staggered page-load reveals */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}.d4{animation-delay:.35s}.d5{animation-delay:.45s}.d6{animation-delay:.55s}
@media (prefers-reduced-motion: reduce){ .reveal{animation:none;opacity:1} }

/* shared sprite bob */
@keyframes bob3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ── HERO (full-bleed Route 1, free-floating logo) ──────────────────── */
.hero { position: relative; overflow: hidden; min-height: 720px; display: flex; align-items: center; padding: 30px 0 70px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 42%; }
/* gentle top→bottom lift so the sky reads brighter behind the logo and the
   grass darkens slightly where the data strip sits */
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 26%, transparent 60%, rgba(20,40,30,.18)); }
/* scattered animated Pokémon on the grass */
.hero-mons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-mons img { position: absolute; image-rendering: pixelated; filter: drop-shadow(0 5px 4px rgba(0,0,0,.3));
  animation: bob3 var(--b, 1.8s) ease-in-out infinite; }

/* centered, boxless column */
.hero-inner { position: relative; z-index: 3; width: 100%; text-align: center; }
.hero-logo { width: min(620px, 90%); height: auto; margin: 0 auto; display: block; image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.18)) drop-shadow(0 0 26px rgba(255,255,255,.65)); animation: bob3 4s ease-in-out infinite; }
.hero .tagline { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); color: #fff; margin: 6px 0 22px;
  text-shadow: 0 2px 0 var(--ink), 3px 3px 0 rgba(0,0,0,.25), 0 0 18px rgba(0,0,0,.35); }
.hero-cta-row { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 0 0 24px; flex-wrap: wrap; }

/* slim frosted strip — the ONLY paneled bit (lede + contract + stats) */
.hero-strip { display: inline-flex; flex-direction: column; gap: 14px; align-items: center; max-width: 680px;
  background: rgba(255,250,235,.78); backdrop-filter: blur(7px); border: 2px solid rgba(28,43,52,.5);
  border-radius: 18px; box-shadow: var(--shadow-soft); padding: 16px 22px; }
.hero-strip .lede { color: var(--ink); font-size: 15px; line-height: 1.5; margin: 0; text-align: center; }
.hero-strip .lede b { color: var(--red-deep); }
@media (max-width: 600px) {
  .hero { min-height: 600px; }
  .hero-mons img { width: 76px !important; }
  .hero-mons img:nth-child(2) { display: none; } /* drop the raised middle starter on phones */
}

/* contract pill */
.ca-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.ca-pill { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); font-family: var(--pixel); font-size: 9px; padding: 9px 12px; border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); }
.ca-pill .lbl { color: var(--red-deep); } .ca-pill.copied { color: var(--green-deep); }
.ca-link { font-family: var(--pixel); font-size: 8px; text-decoration: none; color: var(--ink-soft); background: var(--paper); border: 2px solid var(--ink); padding: 9px 11px; border-radius: 9px; box-shadow: 2px 2px 0 var(--ink); }
.ca-link:hover { background: var(--gold); }

/* stat chips */
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.hero-stats .stat { flex: 1; min-width: 116px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow-hard); }
.hero-stats .stat b { display: block; font-family: var(--display); font-size: 26px; color: var(--red-deep); }
.hero-stats .stat span { font-family: var(--pixel); font-size: 7px; color: var(--muted); letter-spacing: 1px; }

/* ── Running parade band ────────────────────────────────────────────── */
.runner-band { position: relative; height: 104px; overflow: hidden; margin: 6px 0; }
.runner-band .ground { position: absolute; left: 0; right: 0; bottom: 20px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 30px); opacity: .16; }
.runner { position: absolute; bottom: 20px; left: 0; will-change: transform;
  animation: dash var(--spd, 13s) linear infinite; animation-delay: var(--dly, 0s); }
.runner .mon { position: relative; display: inline-block; animation: runhop .42s ease-in-out infinite; transform-origin: center bottom; }
.runner .mon img { display: block; width: var(--sz, 50px); image-rendering: pixelated;
  transform: scaleX(-1); /* sprites face left by default; flip to face travel direction (right) */
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
.runner .mon::after { content: ""; position: absolute; bottom: -1px; left: -10px; width: 16px; height: 7px;
  border-radius: 50%; background: rgba(110,110,110,.4); animation: puff .42s ease-out infinite; }
@keyframes dash { from { transform: translateX(-100px); } to { transform: translateX(calc(100vw + 100px)); } }
@keyframes runhop { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-10px); } 60% { transform: translateY(0); } 80% { transform: translateY(-5px); } }
@keyframes puff { 0% { opacity: .55; transform: scale(.4) translateX(0); } 100% { opacity: 0; transform: scale(1.4) translateX(12px); } }
@media (prefers-reduced-motion: reduce) { .runner { animation: none; left: 5%; } .runner .mon, .runner .mon::after { animation: none; } }

/* ── Pale background Pokémon (ambient life) ─────────────────────────── */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-decor img { position: absolute; image-rendering: pixelated; opacity: .07;
  filter: grayscale(.35); animation: drift var(--dur, 9s) ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .bg-decor img { animation: none; } }

/* ── 3-step ─────────────────────────────────────────────────────────── */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.glance .step { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 24px 22px; position: relative; box-shadow: var(--shadow-hard); transition: transform .12s, box-shadow .12s; }
.glance .step:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.glance .step .n { font-family: var(--display); font-size: 13px; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 8px; border: 2px solid var(--ink); position: absolute; top: -15px; left: 20px; }
.glance .step h3 { font-family: var(--display); font-size: 17px; margin: 8px 0 10px; color: var(--ink); }
.glance .step p { margin: 0; color: var(--muted); line-height: 1.55; }

/* ── Launch cards ───────────────────────────────────────────────────── */
.cards { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.cards.lineup { grid-template-columns: repeat(3, 1fr); }
.launch-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 13px 15px; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.launch-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.launch-card .sprite { width: 58px; height: 58px; image-rendering: pixelated; flex: none; border-radius: 12px; background: radial-gradient(circle at 40% 35%, #fff, #eee3c2); border: 2px solid var(--ink); padding: 4px; }
.launch-card .body { flex: 1; min-width: 0; }
.launch-card .title { display: flex; gap: 9px; align-items: baseline; }
.launch-card .title .tk { font-family: var(--display); font-size: 15px; color: var(--red-deep); }
.launch-card .title .dex { font-family: var(--pixel); font-size: 8px; color: var(--muted); }
.launch-card .stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 6px; color: var(--muted); }
.launch-card .stats b { color: var(--ink); }
.launch-card .stats .share { color: var(--green-deep); font-weight: 700; }
.launch-card .buy { font-family: var(--pixel); font-size: 9px; background: linear-gradient(180deg,#ffd95e,var(--gold)); color: #3a2a00; padding: 9px 11px; border-radius: 9px; border: 2px solid var(--ink); flex: none; }
.empty { text-align: center; padding: 32px; color: var(--muted); font-family: var(--pixel); font-size: 10px; }

/* ── Bounties ───────────────────────────────────────────────────────── */
.bounty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bounty-card { background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; padding: 20px 16px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-hard); transition: transform .12s, box-shadow .12s; }
.bounty-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.bounty-card.claimed { background: repeating-linear-gradient(135deg,#fff 0 10px,#f4f7ea 10px 20px); }
.bounty-card.claimed::before { content: "EARNED"; position: absolute; top: 14px; left: -34px; transform: rotate(-45deg); background: var(--green); color: #fff; font-family: var(--pixel); font-size: 7px; padding: 4px 40px; border: 2px solid var(--ink); }
.bounty-card .prize { position: absolute; top: 12px; right: 12px; font-family: var(--pixel); font-size: 8px; background: var(--gold); color: #3a2a00; border: 2px solid var(--ink); padding: 5px 8px; border-radius: 7px; }
.bounty-card .medallion { height: 112px; display: grid; place-items: center; margin: 4px auto 8px; }
.bounty-card .medallion img { height: 108px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); transition: transform .25s ease; }
.bounty-card:hover .medallion img { transform: translateY(-3px) scale(1.05) rotate(-2deg); }
.bounty-card .badge { font-size: 40px; line-height: 112px; }
.bounty-card h3 { font-family: var(--display); font-size: 15px; margin: 6px 0; color: var(--ink); }
.bounty-card .desc { font-size: 13px; color: var(--muted); min-height: 36px; }
.bounty-card .bar { height: 10px; background: #eef1e6; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; margin: 12px 0 7px; }
.bounty-card .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.bounty-card .meta { font-family: var(--pixel); font-size: 7px; color: var(--muted); letter-spacing: .5px; }
.bounty-card .meta .who { color: var(--green-deep); }

/* ── Gym badge showcase ─────────────────────────────────────────────── */
.badge-showcase { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.bshow { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 16px 10px 12px; text-align: center; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.bshow:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.bshow img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.2)); transition: transform .25s; }
.bshow:hover img { transform: rotate(-4deg) scale(1.08); }
.bshow.locked img { filter: grayscale(.85) brightness(1.05) opacity(.5); }
.bshow .tk { font-family: var(--pixel); font-size: 7px; color: var(--red-deep); margin-top: 8px; }
.bshow .ld { font-size: 11px; color: var(--muted); }
@media (max-width: 900px){ .badge-showcase{grid-template-columns:repeat(4,1fr)} }
@media (max-width: 460px){ .badge-showcase{grid-template-columns:repeat(2,1fr)} }

/* ── Leaderboard ────────────────────────────────────────────────────── */
.lb { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; }
.lb-row { display: flex; align-items: center; gap: 15px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 11px 16px; margin-bottom: 11px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s; }
.lb-row:hover { transform: translateX(4px); }
.lb-row .rank { font-family: var(--display); font-size: 18px; width: 34px; text-align: center; color: var(--muted); }
.lb-row.is-1 .rank { color: var(--gold-deep); } .lb-row.is-2 .rank { color: #8b97a6; } .lb-row.is-3 .rank { color: #c77b3a; }
.lb-row .av { width: 44px; height: 44px; image-rendering: pixelated; border-radius: 10px; background: radial-gradient(circle,#fff,#eee3c2); border: 2px solid var(--ink); padding: 3px; }
.lb-row .nm { font-family: var(--display); font-size: 15px; color: var(--ink); }
.lb-row .mt { font-size: 11px; color: var(--muted); }
.lb-row .sc { margin-left: auto; text-align: right; }
.lb-row .sc .f { font-family: var(--display); font-size: 15px; color: var(--green-deep); }
.lb-row .sc .t { font-size: 11px; color: var(--muted); }

/* ── How it works ───────────────────────────────────────────────────── */
.how { max-width: 800px; margin: 0 auto; }
.how .row { display: flex; gap: 18px; padding: 20px; border-bottom: 2px dashed var(--glass-line); }
.how .row:last-child { border-bottom: none; }
.how .row .n { font-family: var(--display); font-size: 17px; color: #fff; background: linear-gradient(180deg,var(--red),var(--red-deep)); width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 12px; border: 2px solid var(--ink); }
.how .row.reward .n { background: linear-gradient(180deg,var(--green),var(--green-deep)); }
.how .row.bounty .n { background: linear-gradient(180deg,#ffd95e,var(--gold)); color: #3a2a00; }
.how .row b { display: block; margin-bottom: 5px; font-family: var(--display); font-size: 16px; color: var(--ink); }
.how .row p { margin: 0; color: var(--muted); line-height: 1.55; }
.how .row .g { color: var(--green-deep); } .how .row .y { color: var(--gold-deep); }

/* little animated mascot beside section headers */
.head-mascot { width: 46px; image-rendering: pixelated; vertical-align: middle; margin-left: 8px; animation: bob3 1.5s ease-in-out infinite; }

@media (max-width: 900px) {
  .glance, .bounty-grid { grid-template-columns: 1fr 1fr; }
  .cards.lineup { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .glance, .bounty-grid { grid-template-columns: 1fr; } }
