:root {
  --navy: #10233b;
  --cream: #fff8e9;
  --teal: #18c9c6;
  --orange: #ff8b24;
  --purple: #9b70e8;
  --ink: #17243a;
  --muted: #667286;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
}

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

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* NAVIGATION */

header {
  height: 82px;
  background: #fffdf7;
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font: 700 31px 'Fredoka', sans-serif;
  letter-spacing: -1.5px;
}

.logo span { color: var(--orange); }

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 900;
}

.navlinks a:hover { color: #078f93; }

.nav-button {
  background: var(--orange);
  padding: 12px 17px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 3px 3px 0 var(--ink);
}

/* HERO */

.hero {
  background: var(--teal);
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#10233b20 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}

.hero-inner {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  position: relative;
}

.sticker {
  display: inline-block;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 30px;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero h1 {
  font: 700 clamp(65px, 8vw, 102px)/.9 'Fredoka', sans-serif;
  letter-spacing: -4px;
  margin: 28px 0;
  color: var(--navy);
}

.hero h1 span {
  color: white;
  text-shadow: 4px 4px 0 var(--navy);
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 700;
  max-width: 470px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 14px 19px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
  transition: .2s;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-dark {
  background: var(--navy);
  color: white;
}

.button-light {
  background: var(--cream);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-art img {
  width: 100%;
  max-width: 440px;
  border: 3px solid var(--ink);
  border-radius: 25px;
  background: white;
  box-shadow: 12px 12px 0 var(--navy);
  transform: rotate(2deg);
}

.hero-bubble {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 15px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 17px;
  font: 600 16px 'Fredoka', sans-serif;
  transform: rotate(7deg);
  box-shadow: 3px 3px 0 var(--ink);
}

/* MOVING STRIP */

.marquee {
  background: var(--navy);
  color: white;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.marquee-inner {
  width: max-content;
  display: flex;
  gap: 35px;
  padding: 17px 0;
  animation: scroll 30s linear infinite;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.marquee b { color: var(--orange); }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* SECTION HEADINGS */

.intro {
  padding: 90px 0 35px;
  text-align: center;
}

.kicker {
  color: #07878b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.intro h2 {
  font: 700 clamp(43px, 5vw, 65px)/1 'Fredoka', sans-serif;
  margin: 15px 0;
  color: var(--navy);
}

.intro p {
  max-width: 570px;
  margin: auto;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

/* GAME CARDS */

.games {
  padding: 30px 0 100px;
}

.game-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 35px;
  padding: 35px;
  margin-bottom: 30px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 var(--ink);
}

.donny { background: #e7fbf8; }
.moji { background: #fff0db; }
.tzu { background: #eee8dc; }

.game-tag {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.game-copy h3 {
  font: 700 clamp(38px, 4vw, 55px)/1 'Fredoka', sans-serif;
  margin: 18px 0 12px;
  color: var(--navy);
}

.game-copy p {
  color: #526075;
  font-weight: 700;
  line-height: 1.8;
  font-size: 15px;
  max-width: 430px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 25px;
}

.features span {
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
}

.store-link {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 13px 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 white;
}

.store-link:hover {
  background: #244565;
}

/* APP STORE SCREENSHOTS */

.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}

.shot {
  width: 31%;
  max-width: 185px;
  padding: 6px;
  background: #101d2d;
  border: 2px solid #101d2d;
  border-radius: 19px;
  box-shadow: 0 8px 15px #10233b22;
  transition: .25s;
}

.shot:nth-child(1) { transform: rotate(-3deg); }
.shot:nth-child(2) { transform: translateY(-15px); }
.shot:nth-child(3) { transform: rotate(3deg); }

.shot:hover {
  transform: translateY(-12px) scale(1.04);
  z-index: 2;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 436 / 950;
  object-fit: cover;
  border-radius: 13px;
  background: white;
}

/* FUTURE GAMES */

.more {
  background: var(--orange);
  border-block: 3px solid var(--ink);
  padding: 75px 0;
  text-align: center;
}

.more h2 {
  font: 700 clamp(38px, 5vw, 57px)/1 'Fredoka', sans-serif;
  color: var(--navy);
  margin: 0 0 15px;
}

.more p {
  max-width: 540px;
  margin: 0 auto 25px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 800;
}

/* FOOTER */

footer {
  background: var(--navy);
  color: white;
  padding: 32px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer .logo { color: white; }

.footer p {
  font-size: 11px;
  color: #a6b5c8;
}

.footer a:last-child {
  font-size: 12px;
  font-weight: 900;
  color: var(--teal);
}

/* MOBILE */

@media(max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p { margin: auto; }

  .actions { justify-content: center; }

  .hero-art img { max-width: 360px; }

  .game-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .game-copy { text-align: center; }

  .game-copy p { margin: auto; }

  .features { justify-content: center; }

  .gallery { padding: 15px 0; }
}

@media(max-width: 550px) {
  .wrap { width: calc(100% - 34px); }

  header { height: 70px; }

  .logo { font-size: 25px; }

  .navlinks { gap: 12px; font-size: 12px; }

  .navlinks a:first-child,
  .navlinks a:nth-child(2) { display: none; }

  .nav-button { padding: 10px; }

  .hero h1 { font-size: 65px; }

  .hero p { font-size: 16px; }

  .hero-art img { max-width: 310px; }

  .game-card {
    padding: 22px 15px;
    gap: 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .game-copy h3 { font-size: 39px; }

  .gallery { gap: 8px; }

  .shot { padding: 4px; border-radius: 13px; }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

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

/* INTERACTION ENHANCEMENTS */
:root { scroll-padding-top: 90px; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  background: var(--orange);
  z-index: 100;
  transform-origin: left;
  pointer-events: none;
}

.hero-art img {
  animation: hero-float 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}

.game-card {
  transition: transform .28s ease, box-shadow .28s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 13px 0 var(--ink);
}

.marquee:hover .marquee-inner,
.marquee:focus-within .marquee-inner { animation-play-state: paused; }

/* Sections reveal as they enter the viewport. */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shot { cursor: zoom-in; }
.shot:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

/* Screenshot preview */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(9 20 35 / 88%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(92vw, 520px);
  max-height: 92vh;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px #0008;
}
.lightbox-store {
  display: inline-block;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .game-card { transition: none; }
}



/* FOOTER LINKS */
.footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: #078f93; }
@media (max-width: 550px) { .footer-links { justify-content: center; } }
