/* Colors and type follow the game's UI kit (docs/03-art/ui-kit/ui-kit-tokens.md):
   Nunito, ink outline #070836, green only on actions, coin yellow, kit blue. */
/* Nunito lives next to the site (site/fonts/), the same subsets and ranges Google Fonts served. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/nunito-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #070836;
  --white: #fff;
  --coin: #ffc41d;
  --pri: #39b742;
  --pri-l: #60d961;
  --pri-d: #00893b;
  --sec: #f2f4f5;
  --sec-d: #c7cbce;
  --info: #33a8ff;
  --pink: #ff8fc8;
  --lilac: #d3adff;
  --red: #f94a65;
  --muted: #4a4c6e;
  --sky: #2f8ff0;
  --bg: #eaf5ff;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  color-scheme: only light; /* no forced dark from the browser */
}

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

html {
  overflow-x: clip; /* the tilted ticker pokes past the edges */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1,
h2,
h3,
.lead,
.join__lead {
  text-wrap: balance;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* White letters with the ink outline — the game's label style. */
.outlined {
  color: var(--white);
  -webkit-text-stroke: 0.22em var(--ink);
  paint-order: stroke fill;
}

.wordmark {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, min(7.5vw, 11svh), 128px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  -webkit-text-stroke: 0.14em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--ink);
  text-decoration: none;
}

.wordmark span {
  display: block;
  color: var(--coin);
  font-size: 1.32em;
}

.wordmark--small {
  font-size: 20px;
  line-height: 0.85;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
}

.title--sm {
  font-size: clamp(28px, 3vw, 40px);
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
}

/* Buttons: the kit's 3D pill — gradient face, dark thickness under it, one ink outline. */
.btn {
  --face: var(--sec);
  --face-l: var(--white);
  --thick: var(--sec-d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(var(--face-l), var(--face));
  box-shadow: 0 4px 0 var(--thick), 0 7px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--thick), 0 8px 0 var(--ink);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--thick), 0 4px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn:focus-visible,
input:focus-visible,
.nav__links a:focus-visible {
  outline: 3px solid var(--coin);
  outline-offset: 4px;
}

.btn--primary {
  --face: var(--pri);
  --face-l: var(--pri-l);
  --thick: var(--pri-d);
  color: var(--white);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

/* The main Play button: one size up. */
.btn--big {
  min-height: 64px;
  padding: 0 40px;
  font-size: 24px;
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 16px;
}

.chip {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip--coin { background: var(--coin); }
.chip--pink { background: var(--pink); }
.chip--blue { background: var(--info); color: var(--white); }
.chip--lilac { background: var(--lilac); }

/* Picture card with the ink outline and a hard ink shadow, like a sticker. */
.sticker {
  width: 100%;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--ink);
  background: var(--white);
}

/* Nav */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgb(7 8 54 / 0.35);
  backdrop-filter: blur(8px);
}

.nav__links a {
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.nav__links a:hover {
  background: rgb(255 255 255 / 0.18);
}

/* Hero: one full-screen picture. The friends stand on the right half, the sea on the left
   is free for the wordmark, the calendar and the main button. */
.hero {
  position: relative;
  height: min(100svh, 56.25vw); /* never taller than the 16:9 art, so its sides are not cropped */
  min-height: 640px;
  display: flex;
  overflow: hidden;
  background: var(--sky);
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgb(7 8 54 / 0.3), transparent 30%),
    linear-gradient(90deg, rgb(7 8 54 / 0.18), transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(46%, 640px);
  padding: 72px 0 40px var(--gutter);
  text-align: center;
}

/* Open beta ribbon over the wordmark: shown by main.js until config.js betaUntil. */
.beta {
  display: grid;
  margin-bottom: 18px;
  padding: 8px 22px 10px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--coin);
  box-shadow: 0 5px 0 var(--ink);
  text-decoration: none;
  transform: rotate(-2deg);
  transition: transform 0.12s;
}

.beta:hover {
  transform: rotate(0) scale(1.04);
}

.beta b {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.beta b::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--ink);
}

.beta span {
  font-weight: 800;
  font-size: 15px;
}

.beta:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.hero__tagline {
  margin: 14px 0 22px;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 28px);
}

/* The calendar: red binding with two rings and the label, sheets stacked under it. */
.cal {
  position: relative;
  width: clamp(230px, 22vw, 280px);
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 4px 0 #d5d9ea, 0 8px 0 #fff, 0 8px 0 3px var(--ink);
  text-align: center;
  transform: rotate(-2deg);
}

.cal__head {
  margin: 0;
  padding: 9px 34px;
  border-bottom: 3px solid var(--ink);
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(circle at 20px 50%, var(--white) 0 5px, var(--ink) 5px 8px, transparent 8.5px),
    radial-gradient(circle at calc(100% - 20px) 50%, var(--white) 0 5px, var(--ink) 5px 8px, transparent 8.5px),
    var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cal__count {
  display: grid;
  justify-items: center;
  padding: 6px 14px 16px;
}

.cal__days {
  font-weight: 900;
  font-size: clamp(76px, 8vw, 104px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cal__unit {
  margin-top: -4px;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cal__time {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.cal__time div {
  display: grid;
  min-width: 58px;
  padding: 4px 6px;
  border-radius: 12px;
  background: var(--bg);
}

.cal__time b {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cal__time span {
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}

.cal__text {
  display: none;
  padding: 26px 18px 30px;
  font-weight: 900;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1;
}

/* The sheet torn off when the day changes (fx.js). */
.cal__torn {
  position: absolute;
  inset: 41px 0 0;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 6px;
  border-radius: 0 0 18px 18px;
  background: var(--white);
  pointer-events: none;
}

[data-launch="soon"] .cal__count,
[data-launch="live"] .cal__count {
  display: none;
}

[data-launch="soon"] .cal__text,
[data-launch="live"] .cal__text {
  display: block;
}

.launch__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

/* About */
.about {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) 48px;
  text-align: center;
}

.about .title {
  margin-bottom: 16px;
}

/* Content blocks: a centered heading over a row of picture cards. */
.block,
.moments {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
}

.block__head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}

.block__head .lead {
  margin: 14px 0 0;
}

/* Picture card: art on top, text under it, the kit's ink outline and hard shadow. */
.card {
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 0 var(--ink);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.card__body {
  position: relative;
  padding: 18px 22px 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.15;
}

.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* A step number in a coin circle riding the card's picture edge. */
.card__num {
  position: absolute;
  top: -26px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--coin);
  font-weight: 900;
  font-size: 22px;
}

/* A card without a picture keeps its number inside, above the heading. */
.card__body:first-child .card__num {
  position: static;
  margin-bottom: 12px;
}

.steps,
.hall__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.chip--white { background: var(--white); }

/* The twist: a blue band with the real-players story. */
.band {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: var(--info);
  border-block: 4px solid var(--ink);
}

.band__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}

.band .sticker {
  transform: rotate(-1.5deg);
}

.band__lead {
  margin: 16px 0 0;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 0 var(--ink);
}

/* City Hall: elections, decrees and the Complaint book. */
.hall {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: #f4ecff;
  border-bottom: 4px solid var(--ink);
}

.hall__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hall__hero {
  max-width: 980px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.hall__hero .sticker {
  transform: rotate(1deg);
}

.hall__hero figcaption {
  margin-top: 22px;
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 20px);
  text-align: center;
  color: var(--muted);
}

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

.idea {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  max-width: 900px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 40px);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--coin);
  box-shadow: 0 8px 0 var(--ink);
}

.idea__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-size: 34px;
  transform: rotate(-8deg);
}

.idea p {
  margin: 8px 0 0;
  font-size: clamp(17px, 1.5vw, 19px);
}

/* The rest of the event rotation, as pills under the cards. */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
}

.tags li:last-child {
  background: var(--lilac);
}

.moments__more {
  max-width: 680px;
  margin: 36px auto 0;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
}

/* Fame */
.fame {
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  background: var(--white);
  border-radius: 56px 56px 0 0;
}

.fame__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}

.sticker--tilt {
  transform: rotate(2deg);
}

.ladder {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ladder li {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  padding: 6px 20px 6px 6px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 900;
  font-size: 18px;
}

.ladder li:nth-child(2) { margin-left: 16px; }
.ladder li:nth-child(3) { margin-left: 32px; }
.ladder li:nth-child(4) { margin-left: 48px; }

.ladder li:nth-child(5) {
  margin-left: 64px;
  background: var(--coin);
}

/* A star with the step number inside. */
.ladder span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-top: 3px;
  background: url("img/fx-star.webp") center / contain no-repeat;
  font-size: 14px;
}

/* Zero to legend */
.legend {
  padding: 0 var(--gutter) clamp(72px, 10vw, 128px);
  background: var(--white);
  text-align: center;
}

.legend__art {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--ink);
}

.legend__caption {
  margin: 36px 0 0;
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.15;
}

/* Join: the sign-up on the sky color, the art beside it. */
.join {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: linear-gradient(var(--sky), var(--info));
}

.join__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}

.join__art {
  transform: rotate(2deg);
}

.join__content {
  text-align: center;
}

.join__lead {
  margin: 12px 0 24px;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  text-shadow: 0 2px 0 var(--ink);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  background: var(--ink);
  color: #c9cbe8;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

/* Ticker strip on the bottom edge of the hero */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: -30px; /* rides the bottom edge of the hero */
  padding: 12px 0;
  border-block: 3px solid var(--ink);
  background: var(--coin);
  transform: rotate(-2deg) scale(1.03);
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker span {
  padding-right: 28px;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 30px);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::before {
  content: "★";
  margin-right: 28px;
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.confetti {
  position: fixed;
  z-index: 100;
  width: 12px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  pointer-events: none;
}

/* Motion. Everything below runs only when the visitor allows motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero: art and money rain drift against each other with the pointer (fx.js sets --px, --py). */
  .hero__art {
    transform: translate(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px)) scale(1.04);
    transition: transform 0.4s ease-out;
  }

  .hero__float {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translate(calc(var(--px, 0) * 36px), calc(var(--py, 0) * 24px));
    transition: transform 0.4s ease-out;
  }

  .floater {
    position: absolute;
    top: -12%;
    left: var(--x);
    width: var(--size);
    filter: drop-shadow(0 4px 6px rgb(7 8 54 / 0.25));
    animation: rain var(--dur) linear var(--delay) infinite;
  }

  .hero .wordmark {
    animation: pop 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }

  .hero .wordmark span {
    animation:
      pop 0.9s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s both,
      bob 3s ease-in-out 1.2s infinite;
  }

  .hero__tagline {
    animation: rise 0.6s ease-out 0.5s both;
  }

  .hero .cal,
  .hero .launch__actions {
    animation: rise 0.6s ease-out 0.7s both;
  }

  /* A light sweep runs across the main buttons. */
  .btn--primary {
    position: relative;
    overflow: hidden;
  }

  .btn--primary::after {
    content: "";
    position: absolute;
    inset: -4px auto -4px -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.6), transparent);
    transform: skewX(-20deg);
    animation: shine 3.2s ease-in-out infinite;
    pointer-events: none;
  }

  .ticker__track {
    animation: ticker 24s linear infinite;
  }

  .cal .flip {
    animation: flip 0.4s ease-out;
  }

  /* Scroll reveals (fx.js adds .fx to <html> and .is-visible on entry). */
  [data-reveal] {
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1);
  }

  .fx [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(40px);
  }

  .fx .sticker[data-reveal]:not(.is-visible),
  .fx .legend__art[data-reveal]:not(.is-visible) {
    transform: translateY(60px) rotate(-6deg) scale(0.85);
  }

  /* Cards in a row come in one after another. */
  .card[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
  .card[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
  .card[data-reveal]:nth-child(4) { transition-delay: 0.24s; }

  .card img {
    transition: transform 0.4s ease;
  }

  @media (hover: hover) {
    .card:hover img {
      transform: scale(1.05);
    }
  }

  .sticker--tilt.is-visible {
    animation: floaty 5s ease-in-out 1s infinite;
  }

  .fx .ladder:not(.is-visible) li {
    opacity: 0;
    transform: translateX(-40px);
  }

  .ladder li {
    transition:
      opacity 0.5s ease calc(var(--i) * 0.15s),
      transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--i) * 0.15s);
  }

  .ladder.is-visible span {
    animation: spin-in 0.8s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--i) * 0.15s + 0.2s) both;
  }

  .ladder.is-visible li:nth-child(5) {
    animation: glow 2s ease-in-out 1.5s infinite;
  }

  @keyframes rain {
    50% { transform: translate(var(--sway), 60vh) rotate(calc(var(--spin) / 2)); }
    to { transform: translate(0, 120vh) rotate(var(--spin)); }
  }

  @keyframes pop {
    from { opacity: 0; transform: scale(0.3) rotate(-6deg); }
  }

  @keyframes bob {
    50% { transform: translateY(-6px) rotate(-1.5deg); }
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
  }

  @keyframes shine {
    0%, 60% { left: -40%; }
    to { left: 130%; }
  }

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

  @keyframes flip {
    from { opacity: 0.2; transform: rotateX(90deg); }
  }

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

  @keyframes spin-in {
    from { transform: scale(0) rotate(-180deg); }
  }

  @keyframes glow {
    50% { box-shadow: 0 0 0 6px rgb(255 196 29 / 0.45); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .hero__float {
    display: none;
  }
}

@media (min-width: 1700px) and (min-height: 950px) {
  .hero .cal,
  .hero .launch__actions {
    zoom: 1.25;
  }
}

@media (max-width: 1000px) {
  .steps,
  .quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .band__inner,
  .fame__inner,
  .join__inner {
    grid-template-columns: 1fr;
  }

  .trio,
  .hall__steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

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

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  /* Phones: the text sits on the sky color, the art under it is cropped to the friends
     and fades into the sky at its top. */
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 0;
    background: linear-gradient(var(--sky), #8fd0ff 70%);
  }

  .hero::after {
    display: none;
  }

  .hero__content {
    width: auto;
    padding: 80px var(--gutter) 0;
  }

  .hero__art {
    order: 1;
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: -40px;
    object-position: 72% 60%;
    -webkit-mask-image: linear-gradient(transparent, #000 22%);
    mask-image: linear-gradient(transparent, #000 22%);
  }

  .beta b {
    font-size: 17px;
  }

  .beta span {
    font-size: 14px;
  }

  .steps,
  .quad {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero__tagline {
    margin: 10px 0 14px;
  }

  .cal {
    width: 240px;
  }

  .cal__head {
    padding-inline: 30px;
  }

  .cal__count {
    padding: 4px 12px 12px;
  }

  .cal__days {
    font-size: 56px;
  }

  .cal__unit {
    margin-top: -2px;
    font-size: 15px;
  }

  .cal__time {
    margin-top: 8px;
  }

  .cal__time b {
    font-size: 20px;
  }

  .cal__text {
    padding: 16px 14px 20px;
    font-size: 36px;
  }

  .launch__actions {
    margin-top: 16px;
  }

  .ladder li:nth-child(n) {
    margin-left: 0;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}
