:root {
  --sky: #3ec6ff;
  --sky-deep: #1496e6;
  --hill: #5bd63a;
  --hill-dark: #34b423;
  --ink: #1b1b1b;
  --card: #fffdf6;
  --line: #1b1b1b;
  --shadow: 0 8px 0 #1b1b1b;
  --rainbow: linear-gradient(90deg, #ff3b3b, #ff8a00, #ffe14a, #3dcc3a, #3ec6ff, #7a5cff, #ff4fd8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: #7fd8ff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, .btn { font-family: "Fredoka", sans-serif; }

.sky {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, #fff 0 70px, transparent 72px),
    radial-gradient(circle at 78% 12%, #fff 0 90px, transparent 92px),
    linear-gradient(#5fd4ff, #8fe3ff 55%, #b6f0a4 100%);
  min-height: 100vh;
  overflow: hidden;
}
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  height: 46px;
  opacity: 0.95;
  animation: drift linear infinite;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.04));
}
.cloud:before, .cloud:after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud:before { width: 42px; height: 42px; top: -20px; left: 16px; }
.cloud:after { width: 58px; height: 58px; top: -30px; left: 46px; }
.c1 { width: 140px; top: 90px; left: -10%; animation-duration: 38s; }
.c2 { width: 180px; top: 180px; left: -20%; animation-duration: 52s; animation-delay: -12s; }
.c3 { width: 110px; top: 46px; left: -15%; animation-duration: 44s; animation-delay: -20s; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(130vw); }
}

.sky-notes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.note {
  position: absolute;
  bottom: -40px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 3px 0 rgba(0,0,0,0.12);
  animation: rise linear infinite;
}
@keyframes rise {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-110vh) rotate(20deg); }
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 6vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-size: 28px;
  letter-spacing: 0.5px;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  object-fit: cover;
  background: #fff;
}
.brand span {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #1b1b1b;
  paint-order: stroke fill;
}
.nav-links { display: flex; gap: 18px; align-items: center; font-weight: 800; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #fff; }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 20px 6vw 80px;
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 14px 0 #ffb703, 28px 0 #3dcc3a;
}
.kicker span { margin-left: 28px; }
h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  margin: 16px 0 8px;
  letter-spacing: -1px;
}
.rainbow {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px #1b1b1b;
  paint-order: stroke fill;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.12));
}
.lede {
  font-size: 22px;
  font-weight: 750;
  max-width: 560px;
  margin: 0 0 22px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 18px;
  font-weight: 700;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn.primary { background: #ffe14a; }
.btn.green { background: #7dff57; }
.btn.pink { background: #ff8ad8; }
.btn.blue { background: #8fd8ff; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.stat {
  background: #fffdf6;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  min-width: 120px;
  box-shadow: 0 4px 0 var(--ink);
}
.stat b { display: block; font-family: "Fredoka", sans-serif; font-size: 22px; }
.stat small { font-weight: 800; color: #444; }

.logo-card {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 12px 0 var(--ink);
  overflow: hidden;
  animation: bob 3.4s ease-in-out infinite;
}
.logo-card img { width: 100%; height: auto; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hills {
  position: relative;
  height: 90px;
  margin-top: -2px;
  background: var(--hill);
  border-top: 4px solid var(--ink);
}
.hills:before, .hills:after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  height: 80px;
  background: var(--hill-dark);
  border-radius: 50% 50% 0 0;
  border-top: 4px solid var(--ink);
  bottom: 40px;
}
.hills:after { background: #8be86a; bottom: 70px; height: 70px; opacity: 0.9; }

.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid #111;
}
.ticker-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  padding: 12px 0;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  animation: marquee 18s linear infinite;
}
.ticker b { color: #ffe14a; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 72px 6vw; }
.section-title {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  margin: 0 0 10px;
}
.section-sub { font-size: 18px; font-weight: 700; max-width: 720px; margin: 0 0 28px; }

.story {
  background: #fff8dc;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
.panel {
  background: var(--card);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 0 var(--ink);
}
.panel h3 { font-family: "Fredoka", sans-serif; font-size: 28px; margin: 0 0 8px; }
.panel p { font-weight: 700; line-height: 1.5; margin: 0 0 12px; }
.steps { display: grid; gap: 12px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px;
}
.num {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  background: #ffe14a;
}

.cast { background: linear-gradient(#fff8dc, #e8fff0); }
.banner-wrap {
  border: 4px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 0 var(--ink);
  background: #7ecbff;
}
.banner-wrap img { width: 100%; height: auto; animation: pan 22s ease-in-out infinite alternate; }
@keyframes pan {
  from { transform: scale(1.04) translateX(0); }
  to { transform: scale(1.08) translateX(-2%); }
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.cast-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 5px 0 var(--ink);
  min-height: 140px;
}
.cast-card strong { display: block; font-family: "Fredoka", sans-serif; font-size: 20px; }
.swatch {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--ink);
  margin-bottom: 8px;
  animation: wobble 2.8s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}

.token { background: #e7f8ff; }
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.token-card {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 7px 0 var(--ink);
}
.token-card span { font-weight: 800; color: #555; }
.token-card b {
  display: block;
  margin-top: 6px;
  font-family: "Fredoka", sans-serif;
  font-size: 28px;
}
.ca-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #1b1b1b;
  color: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 4px solid #111;
}
.ca-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.ca-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
  background: #ffe14a;
  color: #1b1b1b;
  border: 3px solid #1b1b1b;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 8px 0 #1b1b1b;
  flex-shrink: 0;
}
.ca-box code {
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 700;
  word-break: break-all;
  min-width: 0;
}
.ca-box .btn {
  margin-left: auto;
  flex-shrink: 0;
  background: #ffe14a;
  color: #1b1b1b;
}

.buy { background: #fff4f8; }
.buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.buy-card {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 7px 0 var(--ink);
}
.buy-card em {
  font-style: normal;
  font-family: "Fredoka", sans-serif;
  font-size: 28px;
  display: block;
}

.play { background: #10141c; color: #fff; }
.play .section-sub { color: #d7e7ff; }
.game-stage {
  position: relative;
  border: 4px solid #fff;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  min-height: 560px;
  box-shadow: 0 0 0 6px #1b1b1b, 0 16px 0 #000;
}
.game-stage iframe {
  width: 100%;
  height: 680px;
  border: 0;
  display: none;
  background: #000;
}
.game-stage.is-live iframe { display: block; }
.game-stage.is-live .poster { display: none; }
.poster {
  min-height: 560px;
  background:
    linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.45)),
    url("../assets/game-preview.png") center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.poster h3 { font-family: "Fredoka", sans-serif; font-size: 42px; margin: 0 0 8px; }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.game-note { margin-top: 12px; font-weight: 700; color: #c9d7ea; }

.footer {
  background: #143016;
  color: #e9ffe8;
  padding: 28px 6vw 40px;
}
.footer-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer .btn { color: #1b1b1b; }
.fine { max-width: 760px; font-size: 13px; opacity: 0.85; }

.reveal { opacity: 0; transform: translateY(18px); animation: none; }
.reveal.in { animation: pop 0.6s ease forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }

.parade {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 78px;
  pointer-events: none;
  z-index: 3;
}
.walker {
  position: absolute;
  bottom: 0;
  width: 46px;
  height: 72px;
  animation: walk 16s linear infinite;
}
.walker i {
  display: block;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid #1b1b1b;
  background: #8d8d8d;
  position: relative;
}
.walker i:before, .walker i:after {
  content: "";
  position: absolute;
  top: 14px;
  width: 10px; height: 6px;
  background: #2b2b2b;
  border-radius: 6px;
}
.walker i:before { left: 8px; }
.walker i:after { right: 8px; }
.walker b {
  display: block;
  width: 16px; height: 28px;
  margin: -2px auto 0;
  background: #7a7a7a;
  border: 3px solid #1b1b1b;
  border-radius: 8px;
}
@keyframes walk {
  from { transform: translateX(-60px); }
  to { transform: translateX(110vw); }
}

.menu-btn {
  display: none;
  border: 3px solid var(--ink);
  background: #ffe14a;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero, .story-grid, .cast-grid, .buy-grid { grid-template-columns: 1fr 1fr; }
  .token-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-btn { display: inline-flex; position: relative; z-index: 7; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    right: 5vw;
    left: 5vw;
    flex-direction: column;
    gap: 12px;
    background: #fffdf6;
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 0 var(--ink);
    z-index: 6;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .game-stage, .poster { min-height: 420px; }
  .game-stage iframe { height: 70vh; min-height: 480px; }
  .banner-wrap img { animation: none; transform: none; }
}
@media (max-width: 680px) {
  section { padding: 48px 5vw; }
  .nav { padding: 14px 5vw; }
  .hero { grid-template-columns: 1fr; padding: 12px 5vw 70px; gap: 18px; }
  .story-grid, .cast-grid, .token-grid, .buy-grid { grid-template-columns: 1fr; }
  h1 { font-size: 52px; -webkit-text-stroke: 2px #1b1b1b; }
  .lede { font-size: 17px; }
  .kicker { font-size: 13px; max-width: 100%; }
  .kicker span { margin-left: 22px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .actions .btn { width: 100%; padding: 12px 10px; font-size: 16px; }
  .logo-card { animation: none; }
  .section-title { font-size: 34px; }
  .panel, .token-card, .buy-card, .cast-card { box-shadow: 0 5px 0 var(--ink); }
  .ca-box { flex-wrap: wrap; }
  .ca-main { flex-basis: 100%; }
  .ca-box .btn { margin-left: auto; width: auto; }
  .buy-grid { gap: 12px; }
  .game-stage { box-shadow: 0 0 0 4px #1b1b1b; border-radius: 16px; }
  .game-stage, .poster { min-height: 280px; }
  .game-stage iframe { height: 78vh; min-height: 520px; }
  .poster h3 { font-size: 32px; }
  .play-actions { display: grid; }
  .play-actions .btn { width: 100%; }
  .footer { padding: 24px 5vw 36px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .parade { display: none; }
  .hills { height: 54px; }
}
