/* Flurry Fray — palette taken from the logo, library hero and the dusk screenshots. */
:root {
  --ink: #2a406b;          /* logo letters */
  --ink-2: #3a5182;
  --ink-deep: #1c2a4a;
  --snow: #fff6ef;         /* warm snow, logo rim */
  --blush: #efd0d6;
  --lilac: #bca8c5;
  --periwinkle: #838abf;   /* hero sky */
  --rose: #e8a9b0;
  --peach: #fbdabf;
  --dusk: #4a4275;
  --night: #241e3c;
  --ember: #ff9248;        /* campfire */
  --ember-hi: #ffc477;
  --ember-lo: #e8642c;

  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 14px 34px rgba(28, 24, 60, .28);
  --font: "Nunito", "Flurry Sans", ui-rounded, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.55;
  color: var(--snow);
  /* Sunset at the top, night by the footer: the page gets darker as you scroll. */
  background: linear-gradient(180deg, #8a82bd 0, #8a82bd 900px, #6c63a0 1700px, var(--dusk) 2500px, var(--night) 100%) var(--night);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 900; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Headings: white with a thick navy rim, like the logo. */
.title, .press h2 {
  margin: 0 0 28px;
  font-weight: 900;
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1.08;
  text-align: center;
  color: #fff;
  -webkit-text-stroke: 9px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink-deep), 0 10px 22px rgba(20, 16, 50, .35);
  letter-spacing: .005em;
  text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 30px;
  border-radius: 999px;
  font: 900 21px/1.1 var(--font);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn small { font-weight: 700; font-size: .72em; opacity: .8; }
.btn__icon { width: 24px; height: 24px; flex: none; fill: currentColor; }
.btn--wishlist {
  color: var(--ink-deep);
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 55%, var(--ember-lo));
  box-shadow: 0 6px 0 #a8431d, 0 14px 28px rgba(232, 100, 44, .45), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn--wishlist:hover { filter: brightness(1.06); transform: translateY(-2px); }
.btn--wishlist:active { transform: translateY(3px); box-shadow: 0 3px 0 #a8431d, 0 8px 18px rgba(232, 100, 44, .4); }
.btn--plain {
  color: var(--snow);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  box-shadow: 0 5px 0 var(--ink-deep), 0 12px 24px rgba(28, 42, 74, .35), inset 0 2px 0 rgba(255, 255, 255, .18);
}
.btn--plain:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 4px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 9px var(--ink);
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- hero ----------
   The library hero is 3:1 and has no title on it. It is shown whole, under a
   sky that continues its own colours; the logo sits in that sky. */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(28px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(58, 62, 128, .55) 0, rgba(58, 62, 128, 0) 75%),
    linear-gradient(90deg, #6f7cb6 0, #6a7bbf 20%, #8380c2 40%, #a391c7 60%, #c8a2be 80%, #a791c0 100%);
}
.hero::after {            /* melt into the page colour */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1;
  background: linear-gradient(180deg, rgba(138, 130, 189, 0), #8a82bd);
  pointer-events: none;
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero__inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 16px;
}
.hero__logo { margin: 0; width: min(500px, 88vw); filter: drop-shadow(0 12px 22px rgba(28, 24, 60, .35)); }
.hero__logo img { width: 100%; }
.hero__tagline {
  margin: 4px 0 22px;
  max-width: 30ch;
  font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink), 0 3px 14px rgba(28, 24, 60, .55);
  text-wrap: balance;
}
.hero .btn--wishlist { font-size: 24px; min-height: 64px; padding: 16px 38px; }
.hero .btn--wishlist .btn__icon { width: 28px; height: 28px; }
.hero__note {
  margin: 16px 0 0; padding: 4px 14px;
  font-weight: 800; font-size: 15px; color: var(--ink-deep);
  background: rgba(255, 246, 239, .72); border-radius: 999px;
}
.hero__art {
  position: relative; z-index: 0;
  display: block; width: 100%;
  margin-top: calc(-1 * clamp(70px, 10vw, 200px));
}
.hero__art img {
  width: 100%; max-height: 78vh; object-fit: cover; object-position: 45% 75%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
          mask-image: linear-gradient(180deg, transparent 0, #000 26%);
}

/* ---------- intro loop ---------- */
.intro { padding: 40px 0 70px; }
.loop {
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--snow);
  box-shadow: var(--shadow);
  background: var(--lilac);
}
.loop--big { max-width: 1060px; aspect-ratio: 1170 / 476; }
.loop video { width: 100%; height: 100%; object-fit: cover; }
.lead {
  max-width: 760px; margin: 32px auto 0;
  font-size: 20px; text-align: center; color: #fff;
  text-shadow: 0 1px 2px rgba(28, 24, 60, .35);
}

/* ---------- scroll scene (SS-496, js/scene.js) ----------
   The section is tall; the stage sticks to the screen while you scroll
   through it, and scroll progress drives the throw, the hit and the fall. */
.scene { position: relative; margin: 10px 0 30px; }
.scene__stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 196, 140, .55), transparent 70%),
    linear-gradient(180deg, #5d5a9c 0, #8a82bd 35%, #c9a3c4 62%, #f1c6c0 80%);
}
.scene--live { height: 280vh; }
.scene--live .scene__stage { position: sticky; top: 0; }
.scene--still .scene__stage { height: min(80vh, 720px); }
.scene:not(.scene--live):not(.scene--still) .scene__stage { height: 300px; }
.scene__world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene__world div { position: absolute; left: 0; top: 0; }
.scene__caption {
  position: absolute; left: 0; right: 0; top: clamp(18px, 5vh, 56px); margin: 0; padding: 0 16px;
  text-align: center; font-weight: 900; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.1;
  color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink-deep);
}
.scene__hint {
  position: absolute; left: 50%; bottom: 18px; margin: 0; transform: translateX(-50%);
  font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-deep);
  background: rgba(255, 246, 239, .75); padding: 4px 16px; border-radius: 999px;
}
.scene--still .scene__hint { display: none; }

/* SS-497: a frame of the game (snow, drifts, forest, dusk sky) under the kids;
   it is wider than the world on every side, so it covers any stage shape. */
.backdrop img { display: block; width: 100%; height: 100%; max-width: none; }
.snow-base { width: 6000px; height: 3000px; background: linear-gradient(180deg, #fbeff3 0, #e9d3e3 400px, #d6bfd9 1200px); }
.snow-mound { border-radius: 50%; background: radial-gradient(ellipse at 45% 20%, #fff8f6 0, #f3e2ec 45%, #dcc4dc 100%); }
.shadow { width: 220px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 50, 110, .35), transparent); }
.sprite { overflow: hidden; transform-origin: 0 0; }
.sprite img { display: block; max-width: none; will-change: transform; }
.actor, .ball, .splash { will-change: transform; }

/* placeholder kids: feet at the actor's (0,0), 400 world units tall */
.ph-body { width: 150px; height: 200px; transform: translate(-75px, -200px); border-radius: 70px 70px 34px 34px; background: var(--c); }
.ph-head { width: 150px; height: 150px; transform: translate(-75px, -330px); transform-origin: 75px 150px; }
.ph-head::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f6d2bd; }
.ph-hat { width: 160px; height: 90px; left: -5px !important; top: -20px !important; border-radius: 80px 80px 20px 20px; background: var(--c); }
.ph-arm { width: 40px; height: 130px; transform: translate(10px, -300px); transform-origin: 20px 130px; border-radius: 20px; background: var(--c); }
.actor--red { --c: #d8383a; }
.actor--blue { --c: #3d6fd1; }
.actor--blue .ph-arm { display: none; }
.ph-ball { width: 56px; height: 56px; transform: translate(-28px, -28px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #e8e4f4 60%, #b9b3d6); box-shadow: 0 4px 10px rgba(40, 30, 80, .25); }
.ph-ball--hand { transform: translate(-8px, -30px); }
.ph-bit { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.ball, .splash { visibility: hidden; }
/* SS-499: the spray carries its own lilac underside now; the old blue rim
   (made for the white CSS snow) turned clumps into bubbles. Sprites are
   rendered at 600 px/m and drawn smaller: smooth scaling, not pixelated. */
.sprite img, .backdrop img { image-rendering: auto; }

/* ---------- feature cards ---------- */
.features { padding: 40px 0 70px; }
.cards {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--snow); color: var(--ink-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 -5px 0 var(--blush);
}
.card__media { aspect-ratio: 1170 / 488; background: var(--lilac); }
.card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 24px 26px; }
.card h3 { margin: 0 0 6px; font-weight: 900; font-size: 24px; line-height: 1.15; color: var(--ink); }
.card p { margin: 0; font-size: 17px; line-height: 1.5; }

/* ---------- gallery ---------- */
.gallery { padding: 40px 0 70px; }
.shots {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.shots a {
  display: block; border-radius: var(--radius-sm); overflow: hidden;
  border: 4px solid var(--snow); box-shadow: 0 10px 24px rgba(20, 16, 50, .3);
  aspect-ratio: 16 / 9; background: var(--lilac);
  transition: transform .18s ease;
}
.shots a:hover { transform: translateY(-3px) rotate(-.4deg); }
.shots img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .shots a { transition: none; } .shots a:hover { transform: none; } }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.lightbox::backdrop { background: rgba(20, 16, 40, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
  max-width: min(94vw, 1600px); max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius-sm); border: 4px solid var(--snow);
}
.lightbox__btn {
  position: fixed; width: 56px; height: 56px; border-radius: 50%;
  border: 0; cursor: pointer;
  font: 900 34px/1 var(--font); color: var(--ink-deep);
  background: var(--snow); box-shadow: 0 5px 0 var(--blush), 0 10px 20px rgba(0, 0, 0, .3);
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- facts ---------- */
.facts { padding: 40px 0 70px; }
.factlist {
  margin: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.fact {
  background: var(--snow); color: var(--ink-deep);
  border-radius: var(--radius-sm); padding: 18px 20px 20px; text-align: center;
  box-shadow: var(--shadow), inset 0 -4px 0 var(--blush);
}
.fact dt { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dusk); }
.fact dd { margin: 4px 0 0; font-weight: 900; font-size: 24px; line-height: 1.2; color: var(--ink); }
.cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.steam-widget { width: 100%; max-width: 646px; border-radius: 12px; overflow: hidden; }
.steam-widget iframe { display: block; width: 100%; height: 190px; border: 0; }

/* ---------- press kit ---------- */
.press { padding: 40px 0 80px; }
.plate {
  background: var(--snow); color: var(--ink-deep);
  border-radius: var(--radius); box-shadow: var(--shadow), inset 0 -6px 0 var(--blush);
}
.press__plate {
  display: grid; gap: 28px 40px; align-items: center;
  grid-template-columns: minmax(0, 360px) 1fr;
  padding: 36px 40px 40px;
}
.press__logo { width: 100%; }
.press h2 { text-align: left; font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.press p { margin: 0 0 14px; font-size: 17px; }
.press__meta { font-weight: 800; color: var(--dusk); }
.press .btn { margin: 8px 0 12px; }
.press__contents { font-size: 15px !important; color: var(--dusk); }
.press__contact a { font-weight: 900; color: var(--ink); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { padding: 34px 0 110px; background: rgba(12, 10, 28, .35); font-size: 16px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; justify-content: center; text-align: center; }
.footer p { margin: 0; }
.footer a { font-weight: 800; text-underline-offset: 3px; }
.footer__small { flex-basis: 100%; font-size: 13px; opacity: .6; }

/* ---------- floating Wishlist ---------- */
.float-wish {
  position: fixed; right: 20px; bottom: 20px; z-index: 10;
  min-height: 52px; padding: 12px 24px; font-size: 19px;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.float-wish.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .float-wish { transition: none; } }

/* ---------- phones ---------- */
@media (max-width: 699px) {
  body { font-size: 17px; }
  .hero__logo { width: min(400px, 86vw); }
  .hero__tagline { font-size: 19px; margin-bottom: 18px; }
  .hero .btn--wishlist { font-size: 21px; padding: 14px 28px; }
  .hero__art { margin-top: -56px; }
  .hero__art img { max-height: none; }
  .title { -webkit-text-stroke-width: 7px; text-shadow: 0 4px 0 var(--ink-deep); }
  .loop { border-width: 4px; border-radius: 20px; }
  .lead { font-size: 18px; }
  .intro, .features, .gallery, .facts { padding: 28px 0 44px; }
  .card__body { padding: 16px 18px 22px; }
  .card h3 { font-size: 22px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shots a { border-width: 3px; border-radius: 12px; }
  .factlist { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact:last-child { grid-column: 1 / -1; }
  .fact dd { font-size: 20px; }
  .press__plate { grid-template-columns: 1fr; padding: 24px 20px 28px; }
  .press__logo { max-width: 260px; margin: 0 auto; }
  .press h2 { text-align: center; }
  .press .btn { width: 100%; flex-wrap: wrap; font-size: 19px; }
  .float-wish { left: 16px; right: 16px; bottom: 14px; }
  .lightbox__btn { width: 48px; height: 48px; font-size: 30px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}
