/*
 * Puffy Planet site: sticker UI on a lavender sky, like the game.
 * Plain CSS, no build step. Mobile first (375 px), wider layouts from 640 / 960 px.
 * Baloo 2 (OFL, assets/fonts/Baloo2-OFL.txt) for headings and buttons; body text uses the system UI font.
 */
@font-face {
  font-family: 'Baloo 2';
  font-weight: 700;
  src: url('/assets/fonts/baloo2-bold.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Baloo 2';
  font-weight: 800;
  src: url('/assets/fonts/baloo2-extrabold.woff') format('woff');
  font-display: swap;
}

:root {
  --sky: #e6ddfb;
  --sky-hi: #f6f1ff;
  --blush: #fbe4f2;
  --cream: #fffaf3;
  --plum: #5b4a86;
  --ink: #45366c;
  --muted: #63548e;
  --link: #a8336c;
  --pink: #ff9cc8;
  --pink-hi: #ffc6df;
  --pink-deep: #d9558f;
  --mint: #b4efd9;
  --mint-deep: #2f8f71;
  --butter: #ffeaa0;
  --butter-deep: #e3a72f;
  --lilac: #cdbcf8;
  --night: #3b3170;
  --ring: rgba(91, 74, 134, 0.16);
  --shadow: 0 6px 0 rgba(91, 74, 134, 0.1), 0 16px 34px rgba(91, 74, 134, 0.16);
  --radius: 28px;
  --display: 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  color-scheme: light;
}

/* One page holds both languages; the inline script in <head> sets <html lang> before the first paint. */
html[lang='pl'] [data-lang='en'],
html[lang='en'] [data-lang='pl'] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

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

html {
  background: var(--sky);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  background:
    radial-gradient(60vw 40vw at 100% 0%, rgba(255, 198, 223, 0.55), transparent 70%),
    radial-gradient(70vw 50vw at 0% 30%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #e6ddfb 0%, #efe3fb 35%, #f8e6f4 70%, #e9e0fc 100%);
  background-color: var(--sky);
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--plum);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 10px;
}

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

/* Floating stickers may poke into the side gutters but never widen the page. */
main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- stickers */

/* Card: cream fill, thick white outline, faint plum ring, soft drop shadow. */
.sticker {
  position: relative;
  background: var(--cream);
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 2px var(--ring),
    var(--shadow);
}

.deco {
  position: absolute;
  z-index: 0;
  width: var(--s, 44px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 4px 6px rgba(91, 74, 134, 0.18));
}

.float {
  animation: float 6s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}

.bob {
  animation: bob 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes float {
  from {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  to {
    transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 8deg));
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--r, 0deg));
  }
}

/* ---------------------------------------------------------------- header / language switch */

header.site {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--plum);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ring), 0 4px 10px rgba(91, 74, 134, 0.18);
}

.brand span {
  white-space: nowrap;
}

.header__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__link {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 6px 4px;
}

.header__link:hover {
  color: var(--pink-deep);
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ring), 0 4px 10px rgba(91, 74, 134, 0.12);
}

.lang button {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  color: var(--ink);
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
  box-shadow: inset 0 -2px 0 rgba(217, 85, 143, 0.35);
}

@media (max-width: 359px) {
  .brand span {
    display: none;
  }
}

/* ---------------------------------------------------------------- store buttons */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 198px;
  padding: 9px 18px 9px 12px;
  border: 4px solid #fff;
  border-radius: 20px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
  box-shadow:
    0 0 0 2px var(--ring),
    0 5px 0 var(--pink-deep),
    0 12px 22px rgba(91, 74, 134, 0.2);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.store__glyph {
  width: 30px;
  height: 30px;
  flex: none;
}

.store__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store small {
  font-size: 12.5px;
  font-weight: 700;
}

.store b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.05;
}

.store.is-live:hover {
  transform: translateY(-2px);
}

.store.is-live:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 2px var(--ring),
    0 2px 0 var(--pink-deep),
    0 6px 12px rgba(91, 74, 134, 0.2);
}

/* Not published yet: a quiet, clearly inactive pill (site.js turns it into a link when data-live="true"). */
.store.is-soon {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 2px var(--ring),
    0 4px 0 rgba(91, 74, 134, 0.1);
  cursor: default;
}

.store.is-soon .store__glyph {
  opacity: 0.6;
}

.platforms {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-block: 8px 40px;
  text-align: center;
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
}

.hero__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 10px 16px rgba(91, 74, 134, 0.22));
}

.hero__tagline {
  margin: 12px auto 10px;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(25px, 6.6vw, 38px);
  line-height: 1.15;
  color: var(--plum);
  text-wrap: balance;
}

.hero__lead {
  margin: 0 auto;
  max-width: 46ch;
}

.hero .stores {
  justify-content: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 2px #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.chips img {
  width: 26px;
  height: 26px;
}

/* The trailer in a sticker phone. */
.hero__media {
  position: relative;
  justify-self: center;
  width: min(74vw, 300px);
}

.phone {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 9px;
  border-radius: 46px;
  background: #fff;
  box-shadow:
    0 0 0 3px var(--ring),
    0 8px 0 rgba(91, 74, 134, 0.12),
    0 30px 60px rgba(91, 74, 134, 0.28);
  transform: rotate(2deg);
}

.phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 50%;
  width: 30%;
  height: 15px;
  border-radius: 999px;
  background: rgba(46, 36, 80, 0.88);
  transform: translateX(-50%);
}

.phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
  border-radius: 37px;
  background: var(--sky) url('/assets/trailer-poster.webp') center / cover no-repeat;
}

/* Sound and play buttons appear only once the trailer file actually loaded (site.js adds .has-video). */
.sound,
.play {
  display: none;
  font-family: var(--display);
  cursor: pointer;
}

.phone.has-video .sound {
  display: inline-flex;
}

.phone.has-video.is-paused .play {
  display: grid;
}

.sound {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 0 2px var(--ring), 0 6px 14px rgba(46, 36, 80, 0.25);
  backdrop-filter: blur(6px);
}

.sound svg {
  width: 20px;
  height: 20px;
}

.sound .sound__on,
.sound[aria-pressed='true'] .sound__off {
  display: none;
}

.sound[aria-pressed='true'] .sound__on {
  display: inline;
}

.play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--ring), 0 10px 24px rgba(46, 36, 80, 0.3);
  transform: translate(-50%, -50%);
}

.play svg {
  width: 30px;
  height: 30px;
  margin-left: 5px;
}

.hero__mascot {
  position: absolute;
  z-index: 2;
  left: -16%;
  bottom: -6%;
  width: 40%;
  --r: -8deg;
}

.bubble {
  position: absolute;
  z-index: 3;
  left: -12%;
  top: 6%;
  max-width: 150px;
  padding: 8px 14px;
  border: 4px solid #fff;
  border-radius: 20px 20px 20px 6px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  box-shadow: 0 0 0 2px var(--ring), 0 8px 16px rgba(91, 74, 134, 0.18);
  transform: rotate(-4deg);
}

.hero__sun {
  position: absolute;
  z-index: 0;
  right: -12%;
  top: -9%;
  width: 40%;
}

/* Puffy clouds closing the hero. */
.cloud-band {
  position: relative;
  background: var(--sky-hi);
}

.cloud-band::before,
.cloud-band::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  background:
    radial-gradient(circle at 50% 100%, var(--sky-hi) 0 38px, transparent 39px) 0 0 / 120px 46px repeat-x,
    radial-gradient(circle at 50% 100%, var(--sky-hi) 0 30px, transparent 31px) 60px 10px / 120px 46px repeat-x;
  pointer-events: none;
}

.cloud-band::before {
  bottom: 100%;
}

.cloud-band::after {
  top: 100%;
  transform: scaleY(-1);
}

/* ---------------------------------------------------------------- parade */

.parade {
  display: grid;
  gap: 14px;
  padding-block: 18px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.parade__row {
  overflow: hidden;
}

.parade__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-block: 6px 10px;
  animation: parade 80s linear infinite;
}

.parade__row--back .parade__track {
  animation-direction: reverse;
  animation-duration: 95s;
}

.parade img {
  width: 84px;
  height: 84px;
  padding: 10px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--pal, #fde6f2);
  box-shadow: 0 0 0 2px var(--ring), 0 6px 12px rgba(91, 74, 134, 0.14);
  object-fit: contain;
}

.parade img:nth-child(4n + 2) {
  --pal: #e3f8ef;
}
.parade img:nth-child(4n + 3) {
  --pal: #fff4cf;
}
.parade img:nth-child(4n + 4) {
  --pal: #ece4ff;
}

.parade__row--back img {
  border-radius: 26px;
}

@keyframes parade {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  position: relative;
  padding-block: 56px 24px;
}

.section-title {
  position: relative;
  margin: 0 auto 26px;
  max-width: 22ch;
  font-size: clamp(30px, 7.4vw, 46px);
  text-align: center;
}

.section-lead {
  margin: -12px auto 28px;
  max-width: 52ch;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

/* Ribbon headings (art from the game UI). */
.ribbon {
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 640 / 177;
  margin: 0 auto 28px;
  padding: 0 60px 12px; /* px, not %: percentage padding follows the parent's width */
  background: url('/assets/art/ribbon-pink.webp') center / 100% 100% no-repeat;
  font-size: clamp(22px, 6.4vw, 30px);
  color: var(--ink);
  text-align: center;
  filter: drop-shadow(0 6px 10px rgba(91, 74, 134, 0.18));
}

.ribbon--lavender {
  background-image: url('/assets/art/ribbon-lavender.webp');
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  gap: 26px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 18px 24px;
  overflow: hidden;
}

.feature--pink {
  background: linear-gradient(160deg, #fff6fa, #ffe3ef);
}
.feature--mint {
  background: linear-gradient(160deg, #f6fffb, #dff7ec);
}
.feature--butter {
  background: linear-gradient(160deg, #fffdf2, #fff0c4);
}
.feature--lilac {
  background: linear-gradient(160deg, #fbf8ff, #ebe2ff);
}

.feature__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
}

.feature__text {
  position: relative;
  z-index: 1;
}

.feature__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ring);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.feature__kicker img {
  width: 30px;
  height: 30px;
}

.feature h3 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 6.6vw, 36px);
}

.feature p {
  margin: 0 0 10px;
  max-width: 52ch;
}

.big-number {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 84px;
  padding: 6px 14px;
  border: 5px solid #fff;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--ring), 0 8px 14px rgba(91, 74, 134, 0.18);
  transform: rotate(-6deg);
}

.big-number small {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}

/* 1. Build: decorations standing on a mini planet. */
.mini-planet {
  position: relative;
  width: 284px;
  height: 256px;
}

.mini-planet__ground {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  border-radius: 50%;
  border: 5px solid #fff;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.55) 0 12%, transparent 13%),
    radial-gradient(circle at 40% 30%, #c9f5ac, #8fdb83 55%, #6cc37b);
  box-shadow: 0 0 0 2px var(--ring), 0 14px 26px rgba(91, 74, 134, 0.2);
}

/* A zero-size pivot at the planet centre; each decoration is turned by --a and pushed out to the surface. */
.mini-planet__items {
  position: absolute;
  left: 50%;
  top: 160px;
  width: 0;
  height: 0;
  animation: wobble 7s ease-in-out infinite alternate;
}

.mini-planet__items img {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  max-width: none;
  height: 72px;
  transform-origin: 0 0;
  transform: rotate(var(--a)) translate(-50%, calc(-100% - 82px));
}

@keyframes wobble {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}

.art-build .big-number {
  right: 2%;
  bottom: 4%;
}

/* 2. Animals: a sticker grid with friendship hearts. */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.animal-grid li {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ring), 0 6px 10px rgba(91, 74, 134, 0.12);
}

.animal-grid li:nth-child(odd) {
  background: #e7f9f1;
}

.animal-grid li:nth-child(3n) {
  background: #fdeaf3;
}

.animal-grid img {
  width: 58px;
  height: 58px;
}

.hearts {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
}

.hearts img {
  width: 30px;
  height: 26px;
}

.art-animals {
  padding-top: 64px;
}

.art-animals .big-number {
  top: 0;
  left: 50%;
  background: var(--pink-hi);
  transform: translateX(-50%) rotate(-4deg);
}

.art-animals .deco {
  left: 2%;
  bottom: 2%;
}

/* 3. Stars: Puffy naps while the animals gather stars; bubbles to pop. */
.art-stars {
  min-height: 260px;
}

.art-stars > img:first-child {
  width: min(78%, 250px);
}

.star-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--b, 64px);
  height: var(--b, 64px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25) 55%, rgba(205, 188, 248, 0.75));
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 6px 14px rgba(91, 74, 134, 0.16);
}

.star-bubble img {
  width: 56%;
  height: 56%;
}

.combo {
  position: absolute;
  right: 2%;
  bottom: 6%;
  padding: 4px 14px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--pink-hi);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 0 2px var(--ring), 0 6px 12px rgba(91, 74, 134, 0.16);
  transform: rotate(5deg);
}

/* 4. Living sky: a night card with a constellation to light up. */
.feature--night {
  color: #f4efff;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 234, 160, 0.18), transparent 40%),
    linear-gradient(165deg, #5b4a9e 0%, #3b3170 60%, #2e2759 100%);
}

.feature--night h3 {
  color: #fff;
}

.feature--night .feature__kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #f4efff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.constellation {
  position: relative;
  width: min(100%, 300px);
}

.constellation svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.constellation .moon {
  position: absolute;
  right: -6%;
  top: -10%;
  width: 34%;
  --r: 6deg;
}

.c-line {
  stroke: #ffe39a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.8;
}

.c-star {
  fill: #ffe39a;
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.c-star--off {
  fill: #8f83c9;
  animation: none;
}

.c-dust {
  fill: #fff;
  opacity: 0.6;
}

.c-label {
  fill: #ffe39a;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.65;
  }
}

.phases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 0;
  list-style: none;
}

.phases li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 4px 5px;
  border: 3px solid #fff;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.phases img {
  width: 26px;
  height: 26px;
}

.phase--day {
  background: linear-gradient(90deg, #cdeeff, #fff5c2);
}
.phase--golden {
  background: linear-gradient(90deg, #ffd9a0, #ffbfd6);
}
.phase--night {
  background: linear-gradient(90deg, #8a7ad6, #5b4a9e);
  color: #fff !important;
}

.feature--night .note {
  color: #ddd5ff;
  font-size: 15px;
}

/* 5. Daily surprises + photos: two cards side by side on wide screens. */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.pair .feature__art {
  min-height: 210px;
}

.art-daily > img:first-child {
  width: min(70%, 220px);
}

.art-daily .gift {
  position: absolute;
  left: 8%;
  bottom: 8%;
  width: 64px;
  --r: -10deg;
}

.art-daily .book {
  position: absolute;
  right: 8%;
  top: 6%;
  width: 58px;
  --r: 8deg;
}

.polaroid {
  position: relative;
  margin: 0;
  width: min(86%, 280px);
  padding: 10px 10px 8px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--ring), 0 12px 24px rgba(91, 74, 134, 0.2);
  transform: rotate(-4deg);
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 60%;
  border-radius: 4px;
}

.polaroid figcaption {
  padding-top: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--plum);
  text-align: center;
}

.art-photo .camera {
  position: absolute;
  right: 4%;
  bottom: 2%;
  width: 66px;
  --r: 10deg;
}

/* ---------------------------------------------------------------- pace + packs */

.pace {
  padding: 26px 18px;
  text-align: center;
  background: linear-gradient(170deg, #ffffff, #f4eeff);
}

.pace h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 6.6vw, 38px);
}

.pace > p {
  margin: 0 auto 18px;
  max-width: 50ch;
}

.promises {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ring);
  font-weight: 700;
  line-height: 1.35;
}

.promises img {
  width: 44px;
  height: 44px;
  flex: none;
}

.packs__title {
  margin: 0 0 14px;
  font-size: 22px;
}

.packs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.pack {
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ring), 0 8px 16px rgba(91, 74, 134, 0.12);
}

.pack img {
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 448;
  object-fit: cover;
}

.pack div {
  padding: 8px 14px 12px;
}

.pack h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  color: var(--plum);
}

.pack p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------------------------------------------------------------- gallery */

.shots {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 6px max(16px, calc((100% - 1120px) / 2)) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100% - 1120px) / 2));
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac) transparent;
}

.shot {
  flex: 0 0 auto;
  width: clamp(190px, 58vw, 250px);
  margin: 0;
  scroll-snap-align: start;
}

.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sky-hi);
  box-shadow: 0 0 0 2px var(--ring), var(--shadow);
  cursor: zoom-in;
}

.shot__open img {
  display: block;
  width: 100%;
  aspect-ratio: 886 / 1920;
  object-fit: cover;
}

.shot figcaption {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  color: var(--plum);
}

.shots__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, var(--sky-hi));
  color: var(--plum);
  box-shadow: 0 0 0 2px var(--ring), 0 6px 12px rgba(91, 74, 134, 0.14);
  cursor: pointer;
}

.round-btn svg {
  width: 22px;
  height: 22px;
}

.round-btn:hover {
  background: linear-gradient(180deg, #fff, var(--pink-hi));
}

.viewer {
  max-width: min(92vw, 480px);
  max-height: 94vh;
  padding: 0;
  border: 5px solid #fff;
  border-radius: 30px;
  background: var(--sky-hi);
  overflow: visible;
  box-shadow: 0 30px 60px rgba(46, 36, 80, 0.45);
}

.viewer::backdrop {
  background: rgba(59, 49, 112, 0.72);
}

.viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(94vh - 10px);
  border-radius: 25px;
}

.viewer form {
  position: absolute;
  top: -14px;
  right: -14px;
  margin: 0;
}

.viewer .round-btn {
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
}

/* ---------------------------------------------------------------- help / FAQ */

.help {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 4px solid #fff;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 0 0 2px var(--ring), 0 6px 14px rgba(91, 74, 134, 0.1);
}

.faq summary {
  position: relative;
  padding: 14px 52px 14px 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--plum);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--pink-hi);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 18px 14px;
}

.faq p {
  margin: 0 0 8px;
}

.contact {
  padding: 22px 18px 24px;
  text-align: center;
  background: linear-gradient(170deg, #fffdf4, #fff1c9);
}

.contact__mascot {
  width: 120px;
  margin: -6px auto 4px;
  display: block;
  --r: -4deg;
}

.contact h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.contact p {
  margin: 0 0 10px;
}

.contact__address {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 8px 18px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 5.2vw, 24px);
  text-decoration: none;
  overflow-wrap: anywhere;
  box-shadow: 0 0 0 2px var(--ring), 0 5px 0 var(--pink-deep);
}

.contact__address:hover {
  filter: brightness(1.03);
}

.contact .hint {
  font-size: 15px;
  color: var(--muted);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

/* ---------------------------------------------------------------- finale */

.finale {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-block: 40px 30px;
  text-align: center;
}

.finale__mascot {
  width: 170px;
}

.finale__title {
  margin: 6px 0 0;
  max-width: 20ch;
  font-size: clamp(28px, 7vw, 42px);
}

.finale .stores {
  justify-content: center;
}

/* ---------------------------------------------------------------- footer */

footer.site {
  position: relative;
  margin-top: 60px;
  padding: 26px 0 40px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
}

footer.site::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 40px;
  background:
    radial-gradient(circle at 50% 100%, #fff 0 34px, transparent 35px) 0 0 / 110px 40px repeat-x,
    radial-gradient(circle at 50% 100%, #fff 0 26px, transparent 27px) 55px 8px / 110px 40px repeat-x;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

footer.site a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

footer.site a:hover {
  color: var(--pink-deep);
  text-decoration: underline;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__brand img {
  width: 120px;
  height: auto;
}

.legal-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- documents (privacy) */

.doc {
  padding: 26px 18px 30px;
  margin-bottom: 20px;
}

.doc__mascot {
  position: absolute;
  right: 10px;
  top: -34px;
  width: 92px;
}

.doc h1 {
  margin: 0 0 6px;
  padding-right: 70px;
  font-size: clamp(28px, 7vw, 42px);
}

.doc h2 {
  margin: 30px 0 8px;
  font-size: clamp(21px, 5vw, 26px);
}

.doc p,
.doc li {
  max-width: 72ch;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--pink-deep);
}

.doc .meta {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.doc a {
  overflow-wrap: anywhere;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--plum);
  text-decoration: none;
}

.back:hover {
  color: var(--pink-deep);
}

/* ---------------------------------------------------------------- 404 */

.lost {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 26px 20px 30px;
  text-align: center;
}

.lost__art {
  width: 200px;
  margin: -70px auto 0;
  display: block;
  --r: -3deg;
}

.lost h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 8vw, 44px);
}

.lost p {
  margin: 0 auto 18px;
  max-width: 36ch;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink-hi), var(--pink));
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 0 0 2px var(--ring), 0 5px 0 var(--pink-deep);
}

.button:hover {
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 640px) {
  .feature {
    padding: 28px 30px 30px;
  }

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

  .pace {
    padding: 34px 30px;
  }

  .parade img {
    width: 100px;
    height: 100px;
  }

  .doc {
    padding: 34px 40px 40px;
  }

  .doc__mascot {
    width: 120px;
    top: -46px;
    right: 24px;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 48px;
    padding-block: 18px 70px;
    text-align: left;
  }

  .hero__logo {
    width: min(100%, 440px);
    margin-inline: 0;
  }

  .hero__tagline {
    margin-inline: 0;
  }

  .hero__lead {
    margin-inline: 0;
  }

  .hero .stores,
  .hero .chips {
    justify-content: flex-start;
  }

  .hero__media {
    width: 320px;
  }

  .feature {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
    padding: 34px 44px;
  }

  .feature--flip .feature__art {
    order: 2;
  }

  .feature__art {
    min-height: 300px;
  }

  .mini-planet {
    transform: scale(1.18);
  }

  .animal-grid {
    grid-template-columns: repeat(3, 92px);
    gap: 14px;
  }

  .animal-grid li {
    width: 92px;
    height: 92px;
  }

  .animal-grid img {
    width: 70px;
    height: 70px;
  }

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

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

  .pair .feature {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 30px 34px;
  }

  .help {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 30px;
  }

  .contact {
    position: sticky;
    top: 20px;
  }

  .finale {
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 30px;
    text-align: left;
  }

  .finale__mascot {
    grid-row: span 2;
    width: 200px;
  }

  .finale .stores {
    justify-content: flex-start;
  }
}

/* ---------------------------------------------------------------- reduced motion */

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

  .parade__row {
    overflow-x: auto;
  }
}
