:root {
  --navy: #07173d;
  --ink: #0a1c4b;
  --blue: #02aef4;
  --red: #f91539;
  --yellow: #ffd23c;
  --green: #46c541;
  --panel: rgba(255, 255, 255, 0.92);
  --soft: #eef8ff;
  --shadow: 0 18px 42px rgba(7, 23, 61, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Fredoka, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  font-family: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 8px clamp(22px, 3vw, 54px);
  background: white;
  box-shadow: 0 3px 0 rgba(7, 23, 61, 0.06);
}

.logo {
  position: relative;
  display: block;
  width: clamp(150px, 15vw, 230px);
  padding: 0;
  filter: drop-shadow(0 5px 8px rgba(7, 23, 61, 0.14));
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.logo span,
.logo strong,
.hero-copy h1 span,
.hero-copy h1 strong,
.footer-brand h2 span,
.footer-brand h2 strong {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
}

.logo span,
.hero-copy h1 span,
.footer-brand h2 span {
  color: white;
}

.logo strong,
.hero-copy h1 strong,
.footer-brand h2 strong {
  color: var(--blue);
}

.logo small {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-align: center;
  -webkit-text-stroke: 0;
  filter: none;
  transform: rotate(7deg);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 40px);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

nav a {
  position: relative;
  white-space: nowrap;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icons button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 1.1rem;
}

.pill-cta,
.hero-copy a,
.anywhere a,
.footer-action > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 32px;
  color: white;
  background: var(--red);
  box-shadow: 0 9px 0 #bd0826, 0 16px 26px rgba(249, 21, 57, 0.26);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: clamp(600px, 49vw, 800px);
  overflow: hidden;
  background: #78cdf8;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 38%, rgba(255,255,255,0.36) 0 18%, rgba(255,255,255,0.18) 31%, rgba(255,255,255,0) 48%),
    linear-gradient(90deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.16) 22%, rgba(255,255,255,0) 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(540px, 41vw);
  padding: clamp(66px, 7.5vw, 118px) clamp(28px, 6.8vw, 118px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  line-height: 1;
  transform: rotate(-5deg);
  filter: drop-shadow(0 14px 14px rgba(7, 23, 61, 0.16));
}

.hero-logo {
  display: block;
  width: min(520px, 100%);
  height: auto;
}

.hero-copy h1 span,
.hero-copy h1 strong {
  font-size: clamp(5rem, 8.25vw, 9.4rem);
}

.hero-copy p,
.hero-copy b,
.hero-shout p,
.how h2,
.section-title h2,
.split-panels h2,
.anywhere h2,
.footer-copy h2 {
  font-family: Bangers, Fredoka, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 12px 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 3.75vw, 4.35rem);
  line-height: 0.92;
  transform: rotate(-4deg);
}

.hero-copy p::after,
.hero-shout p::after,
.footer-copy h2::after {
  content: "";
  display: block;
  width: min(430px, 78%);
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--red);
  transform: rotate(-4deg);
}

.hero-copy b {
  display: block;
  max-width: 390px;
  margin: 24px 0 28px;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.28vw, 2.75rem);
  line-height: 1.05;
  transform: rotate(-4deg);
}

.hero-shout {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 5vw, 92px);
  top: 21%;
  max-width: 250px;
  color: var(--navy);
  transform: rotate(-11deg);
}

.hero-shout p {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.92;
}

.how,
.crews,
.split-panels {
  padding: 22px clamp(22px, 3vw, 42px);
}

.how h2,
.section-title h2,
.split-panels h2,
.anywhere h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.65rem, 4.3vw, 4.8rem);
  line-height: 0.9;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.how-grid article {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(116px, 0.55fr) minmax(150px, 0.9fr);
  align-items: center;
  min-height: 205px;
  overflow: hidden;
  border: 2px solid rgba(7, 23, 61, 0.06);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #fbfdff, #eaf7ff);
  box-shadow: 0 14px 30px rgba(7, 23, 61, 0.1);
}

.step-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-right: 12px;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-size: 1.8rem;
  font-weight: 900;
}

.how h3 {
  margin: 0;
  color: var(--navy);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.how p {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.how-grid img {
  justify-self: center;
  width: 190px;
  height: 158px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 18px rgba(7, 23, 61, 0.18));
}

.how-grid article:nth-child(1) img {
  width: 160px;
}

.how-grid article:nth-child(2) img {
  width: 205px;
}

.how-grid article:nth-child(3) img {
  width: 170px;
}

.mini-stack {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.mini-stack i {
  color: var(--red);
  font-size: 2rem;
}

.toy {
  display: block;
  width: 116px;
  height: 58px;
  border: 4px solid var(--navy);
  border-radius: 999px 999px 28px 28px;
  box-shadow: inset 0 -12px rgba(0,0,0,0.12), 0 8px 0 rgba(7,23,61,0.18);
}

.tiger { background: #ff8b1a; }
.goblin, .frog { background: #6ad33c; }
.pirate { background: #1a89ff; }
.robot { background: #b9c1c9; }
.gold { background: #f4c51f; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title a {
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}

.crew-controls {
  display: flex;
  gap: 10px;
}

.crew-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  box-shadow: 0 7px 0 rgba(7, 23, 61, 0.18);
  cursor: pointer;
}

.crew-slider {
  overflow: hidden;
  border-radius: 18px;
}

.crew-track {
  display: grid;
  grid-template-columns: 1fr;
}

.crew-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(255px, 24vw, 360px);
  overflow: hidden;
  border: 2px solid rgba(7, 23, 61, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7, 23, 61, 0.09);
}

.crew-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.split-panels {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.split-panels > article {
  border: 2px solid rgba(7, 23, 61, 0.06);
  border-radius: 18px;
  padding: 26px;
  background: white;
  box-shadow: 0 14px 30px rgba(7, 23, 61, 0.09);
}

.split-panels p {
  margin: -6px 0 20px;
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
}

.rarity-grid,
.play-grid {
  display: grid;
  gap: 12px;
}

.rarity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rarity-grid div,
.play-grid div {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 145px;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbff, #edf6ff);
  text-align: center;
}

.rarity-grid img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(7, 23, 61, 0.16));
}

.rarity-grid strong,
.play-grid strong {
  color: var(--navy);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.play-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.play-grid i {
  color: var(--blue);
  font-size: 2.7rem;
}

.play-grid span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.play-grid div:nth-child(2) i { color: var(--red); }
.play-grid div:nth-child(3) i { color: #18a99b; }
.play-grid div:nth-child(4) i { color: #ff671c; }
.play-grid div:nth-child(5) i { color: #8736dc; }

.anywhere {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) 1fr minmax(190px, 0.28fr);
  gap: 20px;
  align-items: center;
  min-height: clamp(285px, 27vw, 410px);
  padding: 32px clamp(24px, 4vw, 62px);
  overflow: hidden;
  background: #dff6ff;
}

.anywhere > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.anywhere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.88), rgba(255,255,255,0.13) 38%, rgba(255,255,255,0.06) 68%, rgba(255,255,255,0.76));
}

.anywhere > div:first-child {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: start;
  border-radius: 16px;
  padding: 26px;
  background: rgba(255,255,255,0.93);
  box-shadow: var(--shadow);
}

.anywhere p {
  margin: 0 0 18px;
  font-weight: 800;
}

.anywhere aside {
  position: relative;
  z-index: 1;
  grid-column: 1;
  align-self: end;
  color: var(--navy);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 3.2rem);
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.footer-banner {
  position: relative;
  min-height: clamp(360px, 31vw, 520px);
  overflow: hidden;
  background: #6dd5ff;
}

.footer-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.88) 54%, rgba(255,255,255,0.94));
}

.footer-copy,
.footer-action {
  position: absolute;
  z-index: 1;
}

.footer-copy {
  left: 43%;
  bottom: 22%;
  color: var(--navy);
  text-align: center;
  transform: rotate(-4deg);
}

.footer-copy p {
  margin: 0;
  font-family: Bangers, Fredoka, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 3rem);
  line-height: 0.95;
}

.footer-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.9;
}

.footer-action {
  right: clamp(22px, 5vw, 84px);
  bottom: 38px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.legal-links {
  display: flex;
  gap: 16px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(22px, 4vw, 58px);
  background: white;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(7, 23, 61, 0.08);
}

.footer-mark {
  display: block;
  width: clamp(145px, 13vw, 220px);
}

.footer-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-page {
  min-height: 100vh;
  padding: clamp(30px, 6vw, 80px);
  background: #f7fbff;
}

.legal-card {
  max-width: 840px;
  margin: 0 auto;
  border-radius: 18px;
  padding: clamp(24px, 5vw, 54px);
  background: white;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: Bangers, Fredoka, sans-serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.legal-card p,
.legal-card li {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.legal-card a {
  color: var(--red);
  font-weight: 900;
}

.socials {
  display: flex;
  gap: 14px;
  color: var(--navy);
  font-size: 1.25rem;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 4px 0 6px;
  }

  .header-icons {
    display: none;
  }

  .hero-copy {
    width: min(680px, 68vw);
  }

  .how-grid,
  .split-panels,
  .anywhere {
    grid-template-columns: 1fr;
  }

  .play-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 14px;
    padding-inline: 14px;
  }

  .logo span,
  .logo strong {
    font-size: 2.1rem;
    -webkit-text-stroke-width: 3px;
  }

  .pill-cta {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 1rem;
  }

  nav {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 670px;
  }

  .hero > img {
    object-position: 61% center;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7) 42%, rgba(255,255,255,0.04) 70%);
  }

  .hero-copy {
    width: auto;
    padding: 44px 18px;
  }

  .hero-copy h1 span,
  .hero-copy h1 strong {
    font-size: clamp(4.4rem, 21vw, 7rem);
    -webkit-text-stroke-width: 4px;
  }

  .hero-copy p {
    max-width: 310px;
    font-size: 2.6rem;
  }

  .hero-copy b {
    max-width: 260px;
    font-size: 1.65rem;
  }

  .hero-shout {
    display: none;
  }

  .how-grid article {
    grid-template-columns: auto 1fr;
  }

  .how-grid img,
  .mini-stack {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .how-grid img,
  .how-grid article:nth-child(1) img,
  .how-grid article:nth-child(2) img,
  .how-grid article:nth-child(3) img {
    width: min(280px, 80%);
    height: 190px;
  }

  .crew-track {
    grid-template-columns: 1fr;
  }

  .crew-card {
    min-height: 230px;
  }

  .crew-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
  }

  .rarity-grid,
  .play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-banner {
    min-height: 560px;
  }

  .footer-banner img {
    object-position: 34% center;
  }

  .footer-banner::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.95) 58%);
  }

  .footer-copy {
    left: 22px;
    right: 22px;
    bottom: 170px;
  }

  .footer-action {
    left: 22px;
    right: 22px;
    bottom: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    text-align: center;
  }
}
