:root {
  /* palette sampled from the game (Rainbow mode trail, horn, mane, sky, ink outlines) */
  --red: #ff383f;
  --orange: #ff9527;
  --yellow: #ffed30;
  --green: #50ed61;
  --blue: #5095ff;
  --violet: #c459f9;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
  --rainbow-v: linear-gradient(180deg, var(--red) 0 16.66%, var(--orange) 0 33.33%, var(--yellow) 0 50%, var(--green) 0 66.66%, var(--blue) 0 83.33%, var(--violet) 0);

  --ink: #1c2140;
  --ink-soft: #4b5170;
  --paper: #f6f0e6;
  --sky-top: #357ce7;
  --sky-bottom: #e7f2fd;
  --grass: #5a8f3c;
  --lime: #8ee000;
  --blood: #d30019;
  --gold: #ffd759;
  --gold-deep: #f9bc30;
  --mane: #ff6fb5;
  --mane-deep: #ce3886;
  --hoof: #9950c8;
  --night: #1c2140;
  --night-deep: #10132a;

  --display: "Bungee", "Arial Black", Impact, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --block-shadow: 6px 6px 0 var(--ink);
  --section-gap: clamp(96px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .35em 1em;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 1.2rem;
}
.eyebrow-gold { background: var(--gold); color: var(--ink) !important; }

.section-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: -.4rem;
  margin-bottom: 2.5rem;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 75%);
  padding-bottom: 210px;
  isolation: isolate;
}

.sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

/* Blocky voxel clouds, like the in-game ones */
.cloud {
  position: absolute;
  width: 140px;
  height: 46px;
  background: #fff;
  box-shadow:
    30px -30px 0 0 #fff,
    70px -22px 0 0 #fff,
    100px 0 0 0 #fff,
    0 10px 0 0 #dcebfb;
  opacity: .95;
  animation: drift linear infinite;
}
.c1 { top: 18%; left: -10%; animation-duration: 70s; }
.c2 { top: 42%; left: -30%; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; }
.c3 { top: 10%; left: -20%; transform: scale(1.2); animation-duration: 120s; animation-delay: -80s; }

@keyframes drift {
  from { translate: 0 0; }
  to   { translate: 130vw 0; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 3;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-cta {
  font-weight: 900;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .45em 1.2em;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

.hero-inner {
  padding-top: 32px;
  padding-bottom: 24px;
}
.hero-head { position: relative; z-index: 2; }

.title {
  /* "RAINBOW" in Bungee is ~5.1em wide; size it to fit the left column */
  font-size: min(8rem, calc((min(100vw, 1160px) - 80px) * .615 / 5.3));
  margin: 0 0 .35em;
  letter-spacing: -.01em;
}
.title span { display: block; }

.title-rainbow {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(5px 5px 0 var(--ink));
}

/* "DEATH" drips once, then the drips stay put */
.title-death {
  position: relative;
  width: fit-content;
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(5px 5px 0 var(--blood));
  transform: rotate(-3deg);
  transform-origin: left center;
}
.title-death::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(100% - .2em);
  height: .5em;
  --drip: var(--blood);
  background:
    /* each drip = a stem + a round drop at the end */
    linear-gradient(var(--drip), var(--drip)) 30% 0 / .06em 55% no-repeat,
    radial-gradient(circle, var(--drip) 60%, transparent 64%) 29.9% 72% / .12em .12em no-repeat,
    linear-gradient(var(--drip), var(--drip)) 76% 0 / .06em 30% no-repeat;
  transform-origin: top;
  transform: scaleY(0);
  animation: drip 2.2s .6s cubic-bezier(.5, 0, .3, 1) forwards;
}
@keyframes drip {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ---- golden horn: pops up from behind the grass ---- */

.horn-rise {
  position: absolute;
  right: 12%;
  bottom: 14px;
  width: clamp(96px, 13vw, 176px);
  rotate: 10deg;
  transform-origin: bottom center;
  pointer-events: none;
}
.horn-pop {
  position: relative;
  translate: 0 115%;
  animation:
    horn-pop .9s .5s cubic-bezier(.3, 1.5, .5, 1) forwards,
    horn-sway 2.6s 1.4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
@keyframes horn-pop {
  to { translate: 0 0; }
}
@keyframes horn-sway {
  from { rotate: -3deg; }
  to   { rotate: 3deg; }
}
.horn {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(6px 6px 0 rgba(28, 33, 64, .25));
}
.sparkle {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 46px;
  translate: -50% 0;
  opacity: 0;
  filter: drop-shadow(0 0 6px #ffe7a2);
  animation: twinkle 1.6s 1.3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(.4) rotate(0deg); opacity: .5; }
  50% { transform: scale(1.1) rotate(45deg); opacity: 1; }
}

/* ---- skyline + grass ---- */

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  z-index: -1;
  pointer-events: none;
}
.bldg {
  flex: none;
  position: relative;
  background-color: var(--b, #4588c2);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 8px, var(--w, rgba(255, 230, 160, .75)) 8px 16px, transparent 16px 22px),
    repeating-linear-gradient(180deg, transparent 0 10px, var(--b, #4588c2) 10px 22px);
  box-shadow: inset -10px 0 0 rgba(0, 0, 0, .15);
}

.grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, var(--lime) 0 10px, var(--grass) 10px);
  border-top: 4px solid var(--ink);
  z-index: 1;
}

/* ================= TICKER ================= */

.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-block: 4px solid var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  padding: 12px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker span { padding: 0 2.5em; white-space: nowrap; }
.ticker span:nth-child(6n+1) { color: var(--yellow); }
.ticker span:nth-child(6n+4) { color: var(--mane); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */

/* .wrap sets its own margin/padding, so out-rank it */
main > section,
main > section.wrap { margin-top: var(--section-gap); }
main > section > h2,
main > section > .wrap > h2 { margin-bottom: .6em; }

/* ---- pitch ---- */

.pitch {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.pitch h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.mostly {
  display: inline-block;
  color: var(--blood);
  rotate: -4deg;
  font-size: .7em;
}
.pitch-body { font-size: 1.25rem; }
.pitch-body q { font-weight: 900; color: var(--mane-deep); }
.pitch-body strong {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* ---- screenshots ---- */

.shots { overflow: hidden; }
.shot-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 24px 24px;
}
.shot {
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 10px 10px 4px;
  box-shadow: var(--block-shadow);
  rotate: var(--r, 0deg);
  transition: rotate .25s, transform .25s;
}
.shot:hover { rotate: 0deg; transform: scale(1.03); }
.shot img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
.shot figcaption {
  font-family: var(--display);
  font-size: .95rem;
  padding: 10px 4px 6px;
}

/* ---- made for apple: compact card at the top of the content ---- */

main > section.apple-card {
  margin: 72px auto 0;
  width: calc(100% - 32px);
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  padding: 22px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(196, 89, 249, .45), transparent 55%),
    linear-gradient(160deg, var(--night), var(--night-deep));
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--block-shadow);
}
.apple-card .eyebrow { margin: 0; box-shadow: none; }
.apple-line { margin: 0; font-weight: 700; font-size: 1.05rem; }
.device-chips {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.device-chips li {
  font-family: var(--display);
  font-size: .8rem;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  padding: .15em .7em;
}

/* ---- reviews ---- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote {
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--block-shadow);
}
.quote:nth-child(2) { rotate: 1deg; }
.quote:nth-child(3) { rotate: -1deg; }
.stars { color: var(--gold-deep); font-size: 1.4rem; letter-spacing: .1em; -webkit-text-stroke: 1px var(--ink); }
.stars span { color: #e3e5ef; }
.quote p { font-size: 1.2rem; font-weight: 900; margin: .6rem 0 1rem; }
.quote cite { font-style: normal; color: var(--ink-soft); font-size: .95rem; }
.quote cite::before { content: "— "; }

/* ---- faq ---- */

.faq details {
  max-width: 820px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 22px;
  font-weight: 900;
  font-size: 1.15rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--display);
  font-size: 1.5rem;
  transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 45deg; color: var(--blood); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---- final call to action ---- */

main > section.cta {
  padding-block: clamp(80px, 10vw, 128px);
  text-align: center;
  background:
    linear-gradient(180deg, var(--paper), transparent 30%),
    var(--rainbow-v);
}
.cta .wrap {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 64px 24px 72px;
  box-shadow: 10px 10px 0 var(--ink);
  width: calc(100% - 32px);
  max-width: 1000px;
}
.cta h2 {
  font-size: clamp(1.9rem, 6.2vw, 4.2rem);
  margin-bottom: .9em;
}

/* the full stop bleeds once when it scrolls into view */
.bloody-stop {
  position: relative;
  display: inline-block;
  color: var(--blood);
}
.bloody-stop::before,
.bloody-stop::after {
  content: "";
  position: absolute;
  left: 50%;
  background: var(--blood);
}
.bloody-stop::before { /* stem */
  top: .78em;
  width: .11em;
  height: .5em;
  translate: -50% 0;
  transform-origin: top;
  transform: scaleY(0);
}
.bloody-stop::after { /* drop */
  top: 1.1em;
  width: .28em;
  height: .28em;
  translate: -50% 0;
  border-radius: 0 50% 50% 50%;
  rotate: 45deg;
  transform: scale(0);
}
.bloody-stop.bleed::before { animation: stem 1.4s .2s cubic-bezier(.5, 0, .3, 1) forwards; }
.bloody-stop.bleed::after { animation: drop 1.4s .2s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes stem {
  to { transform: scaleY(1); }
}
@keyframes drop {
  0% { transform: scale(0) translate(-.35em, -.35em); }
  100% { transform: scale(1) translate(0, 0); }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 10px 20px 10px 16px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--violet);
  transition: transform .15s, box-shadow .15s;
}
.store-badge:hover,
.store-badge:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red), 9px 9px 0 var(--yellow);
}
.store-badge svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store-badge span {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", var(--body);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.store-badge small { font-size: .62rem; font-weight: 500; letter-spacing: .02em; }

/* ================= FOOTER ================= */

.footer {
  background: var(--ink);
  color: #b9bdd6;
  padding: 48px 0 56px;
  font-size: .95rem;
  text-align: center;
}
.footer p { margin-bottom: .6em; }
.footer-rating {
  display: inline-block;
  color: #fff;
  font-weight: 900;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: .3em .8em;
}
.legal { font-size: .78rem; opacity: .7; max-width: 60ch; margin-inline: auto; }

/* ================= CARTOON CLICK FX ================= */

.fx {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  translate: -50% -50%;
}
.fx-burst { width: 140px; height: 140px; animation: burst .55s ease-out forwards; }
.fx-ring {
  width: 40px;
  height: 40px;
  border: 5px solid #ffe7a2;
  border-radius: 50%;
  animation: ring .6s ease-out forwards;
}
.fx-word {
  font-family: var(--display);
  font-size: 1.8rem;
  color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  white-space: nowrap;
  animation: word .8s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
@keyframes burst {
  0% { transform: scale(.2) rotate(0deg); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: scale(1.1) rotate(25deg); opacity: 0; }
}
@keyframes ring {
  to { transform: scale(6); opacity: 0; border-width: 1px; }
}
@keyframes word {
  0% { transform: scale(.3) rotate(-10deg); opacity: 0; }
  30% { transform: scale(1.15) rotate(-6deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-40px) scale(1) rotate(-6deg); opacity: 0; }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .pitch { grid-template-columns: 1fr; gap: 8px; }
  .title { font-size: calc((100vw - 48px) / 5.4); }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 230px; }
  .skyline { height: 150px; }
  .title { font-size: calc((100vw - 32px) / 5.4); }
  .title-rainbow, .title-death { -webkit-text-stroke-width: 2px; }
  .eyebrow { font-size: .68rem; letter-spacing: .08em; }
  .shot-strip { grid-template-columns: 1fr; }
  .shot-strip { padding-inline: 16px; }
  .store-badge { min-width: 0; flex: 1 1 200px; }
  .cta .wrap { padding: 48px 16px 56px; }
  .horn-rise { right: 12%; width: 84px; }
  main > section.apple-card { margin-top: 56px; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
