:root {
  /* Paleta principal: cambia estos valores para personalizar toda la historia. */
  --sunset-orange: #d98768;
  --sunset-peach: #e8a083;
  --dusty-rose: #b96f82;
  --twilight-violet: #62527d;
  --night-blue: #17162f;
  --deep-night: #0d1026;
  --soft-green: #6f8f6b;
  --grass-dark: #263f3c;
  --grass-deep: #172f31;
  --warm-yellow: #f6d58b;
  --firefly: #ffe59a;
  --cream: #fff6e8;
  --cream-muted: #e9ddcf;
  --coral: #d96c72;
  --carrot: #e9824d;
  --carrot-light: #f1a05d;
  --leaf: #79a56a;
  --ink: #211c30;
  --panel: rgba(25, 24, 48, 0.76);
  --panel-light: rgba(255, 246, 232, 0.09);
  --line: rgba(255, 246, 232, 0.2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --pixel: "Space Mono", "Courier New", monospace;
  --content: 1120px;
  --night-progress: 0;
  --motion-speed: 1;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--dusty-rose) var(--deep-night);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background: var(--deep-night);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--warm-yellow);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 6px;
  font: 700 0.72rem/1.2 var(--pixel);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.world-sky {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(111, 101, 157, 0.35), transparent 26%),
    linear-gradient(180deg, var(--night-blue), var(--deep-night) 62%);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: calc(0.12 + (var(--night-progress) * 0.88));
  transition: opacity 1.5s ease;
  background-image:
    radial-gradient(circle, var(--cream) 0 1px, transparent 1.4px),
    radial-gradient(circle, var(--warm-yellow) 0 1px, transparent 1.5px);
  background-position: 7% 12%, 31% 8%;
  background-size: 83px 89px, 137px 129px;
}

.stars--near {
  inset: -10%;
  opacity: calc(var(--night-progress) * 0.72);
  filter: drop-shadow(0 0 4px rgba(255, 229, 154, 0.75));
  background-size: 193px 173px, 251px 223px;
  animation: starDrift calc(35s * var(--motion-speed)) linear infinite;
}

.moon {
  position: absolute;
  top: 9vh;
  right: 10vw;
  width: clamp(52px, 7vw, 90px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: calc(var(--night-progress) * 0.85);
  background: var(--cream);
  box-shadow: 0 0 45px rgba(246, 213, 139, 0.33);
  transform: translateY(calc((1 - var(--night-progress)) * 45px));
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 56px 20px 170px;
  background:
    linear-gradient(180deg,
      rgba(23, 22, 47, calc(var(--night-progress) * 0.93)) 0%,
      rgba(98, 82, 125, calc(var(--night-progress) * 0.68)) 45%,
      rgba(217, 135, 104, calc((1 - var(--night-progress)) * 0.28)) 72%,
      transparent 100%),
    linear-gradient(180deg, #45567d 0%, var(--twilight-violet) 31%, var(--dusty-rose) 61%, var(--sunset-peach) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: calc(var(--night-progress) * 0.72);
  background-image:
    radial-gradient(circle, var(--cream) 0 1px, transparent 1.6px),
    radial-gradient(circle, var(--warm-yellow) 0 1px, transparent 1.5px);
  background-size: 109px 97px, 173px 151px;
  transition: opacity 1.5s ease;
}

.hero__sun {
  position: absolute;
  z-index: -2;
  top: 17%;
  right: 16%;
  width: clamp(68px, 10vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: calc(1 - (var(--night-progress) * 0.94));
  background: #ffd49b;
  box-shadow: 0 0 55px rgba(255, 196, 135, 0.53);
  transform: translateY(calc(var(--night-progress) * 120px));
}

.hero__cloud {
  position: absolute;
  z-index: -2;
  width: 170px;
  height: 28px;
  border-radius: 50%;
  opacity: 0.22;
  background: var(--cream);
  filter: blur(4px);
  animation: cloudFloat calc(26s * var(--motion-speed)) ease-in-out infinite alternate;
}

.hero__cloud--one { top: 18%; left: 8%; }
.hero__cloud--two { top: 32%; right: 3%; width: 220px; animation-delay: -8s; }

.hero__content {
  position: relative;
  z-index: 5;
  width: min(760px, 100%);
  text-align: center;
  text-shadow: 0 2px 22px rgba(21, 17, 38, 0.34);
}

.eyebrow,
.chapter-label,
.memory-card__tag {
  margin: 0 0 16px;
  color: var(--warm-yellow);
  font: 700 clamp(0.65rem, 2vw, 0.78rem)/1.5 var(--pixel);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: none;
}

.hero h1 {
  max-width: 760px;
  margin: 22px auto 10px;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 20px auto 8px;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.sound-hint {
  margin: 8px auto 0;
  color: var(--cream-muted);
  font: 400 0.68rem/1.5 var(--pixel);
}

.sound-hint span { color: var(--warm-yellow); }

.origin-symbol {
  position: relative;
  width: 122px;
  height: 140px;
  margin: 10px auto 2px;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  animation: originFloat calc(3.6s * var(--motion-speed)) ease-in-out infinite;
}

.origin-symbol__glow {
  position: absolute;
  inset: 18px 6px 2px;
  border-radius: 50%;
  background: rgba(255, 222, 151, 0.2);
  filter: blur(15px);
  animation: gentlePulse calc(2.4s * var(--motion-speed)) ease-in-out infinite;
}

.pixel-carrot,
.pixel-heart {
  position: absolute;
  inset: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}

.pixel-carrot__leaf {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 22px;
  height: 48px;
  border-radius: 70% 12% 70% 18%;
  background: var(--leaf);
  box-shadow: inset -6px -5px rgba(23, 47, 49, 0.24);
  transform-origin: bottom;
}

.pixel-carrot__leaf--left { transform: translateX(-15px) rotate(-38deg); }
.pixel-carrot__leaf--middle { transform: translateX(-9px) rotate(-4deg); height: 52px; }
.pixel-carrot__leaf--right { transform: translateX(2px) rotate(32deg); }

.pixel-carrot__body {
  position: absolute;
  top: 49px;
  left: 50%;
  width: 66px;
  height: 83px;
  background:
    linear-gradient(90deg, transparent 0 60%, rgba(255,255,255,.17) 60% 68%, transparent 68%) 0 18px / 100% 8px no-repeat,
    linear-gradient(90deg, rgba(130, 65, 44, .22) 0 25%, transparent 25%) 0 43px / 100% 7px no-repeat,
    var(--carrot);
  clip-path: polygon(10% 0, 90% 0, 78% 36%, 65% 36%, 63% 62%, 50% 62%, 50% 82%, 38% 82%, 38% 100%, 25% 82%, 25% 62%, 14% 62%);
  transform: translateX(-50%);
  filter: drop-shadow(0 9px 2px rgba(18, 23, 40, 0.2));
}

.pixel-heart {
  top: 32px;
  left: 17px;
  width: 88px;
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  opacity: 0;
  transform: scale(0.25) rotate(-20deg);
  filter: drop-shadow(0 8px 8px rgba(95, 31, 55, 0.3));
}

.pixel-heart span { background: var(--coral); }
.pixel-heart span:nth-child(1),
.pixel-heart span:nth-child(3),
.pixel-heart span:nth-child(5),
.pixel-heart span:nth-child(16),
.pixel-heart span:nth-child(17),
.pixel-heart span:nth-child(19),
.pixel-heart span:nth-child(20) { background: transparent; }

.origin-symbol.is-heart .pixel-carrot { opacity: 0; transform: scale(0.25) rotate(20deg); }
.origin-symbol.is-heart .pixel-heart { opacity: 1; transform: scale(1) rotate(0); }

.distant-land {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 118px;
  left: 0;
  height: 26%;
  opacity: 0.85;
  background: linear-gradient(155deg, transparent 0 22%, #40564e 23% 100%);
  clip-path: polygon(0 52%, 18% 30%, 39% 47%, 60% 18%, 80% 45%, 100% 25%, 100% 100%, 0 100%);
}

.cabin {
  position: absolute;
  right: 18%;
  bottom: 43%;
  width: 64px;
  height: 42px;
  background: #4b3941;
  box-shadow: inset 0 -7px rgba(21, 26, 39, 0.22);
}

.cabin::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -7px;
  border-right: 39px solid transparent;
  border-bottom: 29px solid #352e3b;
  border-left: 39px solid transparent;
}

.cabin span {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 14px;
  height: 14px;
  background: var(--warm-yellow);
  box-shadow: 0 0 15px var(--warm-yellow);
}

.crop-lines {
  position: absolute;
  right: 7%;
  bottom: 4%;
  width: 35%;
  height: 42%;
  border-top: 4px solid rgba(35, 60, 50, 0.7);
  border-radius: 50%;
  background: repeating-linear-gradient(169deg, transparent 0 13px, rgba(32, 63, 50, 0.55) 14px 17px);
  transform: skewX(-8deg);
}

.hero__foreground {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 175px;
  background: linear-gradient(180deg, var(--grass-dark), var(--grass-deep));
  clip-path: polygon(0 19%, 8% 12%, 20% 22%, 33% 9%, 47% 18%, 60% 8%, 77% 18%, 89% 10%, 100% 20%, 100% 100%, 0 100%);
}

.grass {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  opacity: 0.85;
  background:
    repeating-linear-gradient(83deg, transparent 0 12px, rgba(111,143,107,.55) 13px 15px, transparent 16px 23px);
  transform-origin: bottom;
  animation: grassSway calc(5s * var(--motion-speed)) ease-in-out infinite alternate;
}

.grass--back { bottom: 34px; opacity: 0.38; animation-delay: -2s; }

.sitters,
.final-sitters {
  position: absolute;
  left: 50%;
  bottom: 61px;
  width: 94px;
  height: 63px;
  transform: translateX(-50%);
}

.sitter,
.final-sitters span {
  position: absolute;
  bottom: 0;
  width: 36px;
  height: 43px;
  border-radius: 18px 18px 5px 5px;
  background: #151b2a;
}

.sitter::before,
.final-sitters span::before {
  content: "";
  position: absolute;
  top: -23px;
  left: 7px;
  width: 24px;
  height: 25px;
  border-radius: 50%;
  background: #151b2a;
}

.sitter--one,
.final-sitters span:first-child { left: 12px; transform: rotate(3deg); }
.sitter--two,
.final-sitters span:last-child { right: 11px; transform: rotate(-4deg); }
.sitter--one::after,
.final-sitters span:first-child::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -18px;
  width: 30px;
  height: 8px;
  border-radius: 8px;
  background: #151b2a;
  transform: rotate(19deg);
}

.fireflies {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.story-started .fireflies { opacity: 1; }

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--firefly);
  box-shadow: 0 0 7px 2px rgba(255, 229, 154, 0.62);
  animation: fireflyWander calc(var(--duration) * var(--motion-speed)) ease-in-out var(--delay) infinite alternate;
}

.story-section {
  position: relative;
  padding: clamp(90px, 13vw, 180px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.section-shell {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.section-shell--narrow { width: min(860px, 100%); }

.section-shell--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.section-copy { max-width: 535px; }

.section-heading {
  max-width: 710px;
  margin-bottom: 58px;
}

.story-section h2,
.finale h2 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.story-section p { color: var(--cream-muted); }

blockquote {
  margin: 34px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--warm-yellow);
  color: var(--cream);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  font-style: italic;
  line-height: 1.25;
}

.beginning {
  background:
    radial-gradient(circle at 18% 50%, rgba(217, 108, 114, 0.12), transparent 31%),
    linear-gradient(180deg, #172c32, var(--night-blue));
}

.pixel-picnic {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 8px solid #33283e;
  border-radius: 3px 3px 18px 18px;
  background: linear-gradient(180deg, #6f617c 0 53%, #53674f 53% 100%);
  box-shadow: 0 30px 80px rgba(4, 7, 19, 0.35), inset 0 0 70px rgba(17, 12, 28, 0.28);
}

.pixel-picnic::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -64px;
  left: -8%;
  height: 190px;
  border-radius: 50% 50% 0 0;
  background: #697354;
  box-shadow: inset 0 12px rgba(255, 246, 232, 0.035);
}

.pixel-picnic::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 34%;
  bottom: -12px;
  left: 34%;
  height: 170px;
  background: #8b795c;
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.48;
}

.pixel-picnic__sky {
  position: absolute;
  inset: 0 0 47%;
  background: linear-gradient(180deg, #4b587b, #9b6c78 68%, #d59073);
}

.pixel-picnic__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 246, 232, .86) 0 1px, transparent 1.5px);
  background-size: 61px 55px;
  opacity: .55;
}

.pixel-picnic__moon {
  position: absolute;
  top: 27px;
  right: 13%;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--warm-yellow);
  box-shadow: 0 0 22px rgba(246, 213, 139, .38);
}

.pixel-picnic__cloud {
  position: absolute;
  top: 74px;
  left: 10%;
  width: 92px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 246, 232, .24);
  box-shadow: 26px -7px 0 rgba(255, 246, 232, .14);
}

.pixel-picnic__lights {
  position: absolute;
  z-index: 6;
  top: 24px;
  left: 50%;
  width: 82%;
  height: 76px;
  border-top: 3px solid rgba(48, 41, 54, .78);
  border-radius: 50%;
  transform: translateX(-50%);
}

.pixel-picnic__lights i {
  position: absolute;
  top: 3px;
  width: 7px;
  height: 9px;
  border-radius: 2px 2px 5px 5px;
  background: var(--warm-yellow);
  box-shadow: 0 0 9px rgba(246, 213, 139, .9);
}

.pixel-picnic__lights i:nth-child(1) { left: 7%; top: 15px; }
.pixel-picnic__lights i:nth-child(2) { left: 21%; top: 29px; }
.pixel-picnic__lights i:nth-child(3) { left: 35%; top: 39px; }
.pixel-picnic__lights i:nth-child(4) { left: 50%; top: 43px; }
.pixel-picnic__lights i:nth-child(5) { left: 65%; top: 39px; }
.pixel-picnic__lights i:nth-child(6) { left: 79%; top: 29px; }
.pixel-picnic__lights i:nth-child(7) { left: 93%; top: 15px; }

.pixel-picnic__tree {
  position: absolute;
  z-index: 4;
  top: 111px;
  width: 25px;
  height: 170px;
  background: #58443b;
  box-shadow: inset -7px 0 rgba(43, 35, 43, .25);
}

.pixel-picnic__tree span {
  position: absolute;
  top: -54px;
  left: 50%;
  width: 112px;
  height: 103px;
  border-radius: 45% 55% 42% 48%;
  background: #536d57;
  box-shadow: inset -17px -12px rgba(28, 49, 46, .28), 0 26px 0 -11px #61795e;
  transform: translateX(-50%);
}

.pixel-picnic__tree--left { left: 12%; }
.pixel-picnic__tree--right { right: 12%; transform: scale(.86); transform-origin: bottom; }

.pixel-picnic__table {
  position: absolute;
  z-index: 5;
  top: 244px;
  width: 112px;
  height: 16px;
  background: #664a43;
  box-shadow: 0 7px rgba(42, 35, 41, .22);
}

.pixel-picnic__table::before,
.pixel-picnic__table::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 8px;
  height: 49px;
  background: #47383a;
}

.pixel-picnic__table::before { left: 18px; }
.pixel-picnic__table::after { right: 18px; }
.pixel-picnic__table--left { left: 5%; }
.pixel-picnic__table--right { right: 5%; }

.pixel-picnic__table span {
  position: absolute;
  top: -29px;
  left: 50%;
  width: 20px;
  height: 29px;
  border-radius: 10px 10px 3px 3px;
  background: #28333c;
  transform: translateX(-50%);
}

.pixel-picnic__table span::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #28333c;
}

.pixel-picnic__blanket {
  position: absolute;
  z-index: 6;
  bottom: 26px;
  left: 50%;
  width: 176px;
  height: 107px;
  border: 5px solid #6e4852;
  background-color: #c2767d;
  background-image: conic-gradient(rgba(255, 246, 232, .2) 25%, transparent 0 50%, rgba(255, 246, 232, .2) 0 75%, transparent 0);
  background-size: 34px 34px;
  box-shadow: 0 12px 25px rgba(25, 28, 34, .23);
  transform: translateX(-50%) perspective(220px) rotateX(18deg) rotate(2deg);
}

.pixel-picnic__guest {
  position: absolute;
  top: -40px;
  width: 31px;
  height: 54px;
  border-radius: 15px 15px 5px 5px;
  background: #303544;
}

.pixel-picnic__guest::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 6px;
  width: 20px;
  height: 21px;
  border-radius: 50%;
  background: #303544;
}

.pixel-picnic__guest--one { left: 42px; transform: rotate(7deg); }
.pixel-picnic__guest--two { right: 42px; background: #493b4b; transform: rotate(-6deg); }
.pixel-picnic__guest--two::before { background: #493b4b; }

.pixel-picnic__basket {
  position: absolute;
  right: 17px;
  bottom: 12px;
  width: 38px;
  height: 27px;
  border: 5px solid #6a4a3d;
  border-top: 0;
  background: #a7754f;
}

.pixel-picnic__basket::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 4px;
  width: 20px;
  height: 19px;
  border: 4px solid #6a4a3d;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.pixel-picnic__blanket .tiny-carrot { bottom: 29px; left: 48%; }

.tiny-carrot {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 18px;
  height: 28px;
  background: var(--carrot);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.tiny-carrot::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 6px;
  width: 7px;
  height: 15px;
  background: var(--leaf);
  transform: rotate(-24deg);
  box-shadow: 6px 1px var(--leaf);
}

.shared-worlds {
  background:
    radial-gradient(circle at 86% 25%, rgba(111, 143, 107, 0.12), transparent 30%),
    var(--night-blue);
}

.memory-constellation {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.memory-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 210px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 55px rgba(2, 5, 17, 0.17);
  transition: transform 400ms ease, border-color 400ms ease, background 400ms ease;
}

.memory-card:hover,
.memory-card:focus-within {
  z-index: 2;
  border-color: rgba(246, 213, 139, 0.42);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  transform: translateY(-7px);
}

.memory-card:nth-child(1),
.memory-card:nth-child(2) { grid-column: span 6; }
.memory-card:nth-child(n+3) { grid-column: span 3; }

.memory-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.08;
}

.memory-card p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.memory-card .memory-card__tag { margin-bottom: 11px; font-size: 0.61rem; }

.memory-art,
.artifact-button {
  position: absolute;
  top: 28px;
  right: 28px;
  left: 28px;
  height: 150px;
}

.artifact-button {
  border: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
}

.wall-art {
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(180deg, #6f5875, #9d6671 52%, #463e4c 53%);
}

.wall-art::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: 0;
  left: -6%;
  height: 65%;
  background: repeating-linear-gradient(90deg, #4d4651 0 38px, #403b48 39px 42px);
  clip-path: polygon(0 40%, 7% 31%, 12% 44%, 18% 20%, 25% 38%, 32% 12%, 39% 36%, 48% 20%, 57% 39%, 67% 13%, 77% 41%, 88% 17%, 100% 38%, 100% 100%, 0 100%);
}

.wall-art span {
  position: absolute;
  z-index: 2;
  right: 29%;
  bottom: 9px;
  width: 12px;
  height: 60px;
  border-radius: 8px 8px 0 0;
  background: #1c2030;
}

.wall-art i {
  position: absolute;
  z-index: 3;
  right: calc(29% - 28px);
  bottom: 33px;
  width: 51px;
  height: 7px;
  background: var(--coral);
  transform: rotate(-8deg);
  animation: scarfWave calc(3s * var(--motion-speed)) ease-in-out infinite alternate;
}

.door-art {
  overflow: hidden;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 55%, rgba(156, 106, 140, 0.4), transparent 29%), #222334;
}

.door-art::before,
.door-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(193, 189, 185, 0.17);
  filter: blur(12px);
  animation: smokeRise calc(5s * var(--motion-speed)) ease-in-out infinite;
}

.door-art::before { left: 8%; bottom: -4%; width: 90px; height: 110px; }
.door-art::after { right: 2%; bottom: 1%; width: 120px; height: 85px; animation-delay: -2s; }
.door-art span { position: absolute; top: 22px; bottom: 0; left: 50%; width: 76px; border: 9px solid #5d4a5e; border-bottom: 0; background: #171827; transform: translateX(-50%); }
.door-art span::before { content: ""; position: absolute; top: 49%; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--warm-yellow); }
.door-art i,
.door-art b { position: absolute; width: 9px; height: 9px; border: 2px solid rgba(246,213,139,.5); transform: rotate(45deg); animation: chaosFloat calc(4s * var(--motion-speed)) ease-in-out infinite alternate; }
.door-art i { top: 25px; left: 15%; }
.door-art b { right: 17%; bottom: 34px; width: 15px; height: 15px; animation-delay: -1.6s; }

.hourglass { top: 22px; left: 50%; width: 115px; height: 160px; transform: translateX(-50%); }
.hourglass::before,
.hourglass::after { content: ""; position: absolute; right: 4px; left: 4px; height: 10px; border-radius: 3px; background: #9c7457; box-shadow: inset 0 -3px rgba(47, 30, 39, 0.3); }
.hourglass::before { top: 7px; }
.hourglass::after { bottom: 7px; }
.hourglass__top,
.hourglass__bottom { position: absolute; left: 28px; width: 59px; height: 61px; border: 4px solid #bea789; background: rgba(246, 213, 139, 0.06); }
.hourglass__top { top: 17px; clip-path: polygon(0 0, 100% 0, 63% 100%, 37% 100%); }
.hourglass__bottom { bottom: 17px; clip-path: polygon(37% 0, 63% 0, 100% 100%, 0 100%); }
.hourglass__sand { position: absolute; z-index: 3; top: 63px; left: 54px; width: 7px; height: 40px; background: var(--warm-yellow); clip-path: polygon(0 0, 100% 0, 72% 100%, 28% 100%); animation: sandFall calc(2.8s * var(--motion-speed)) linear infinite; }
.hourglass.rewinding { animation: hourglassReverse 1.2s ease-in-out 2; }

.time-particles { position: absolute; top: 20px; right: 15px; left: 15px; height: 150px; pointer-events: none; }
.time-particle { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--warm-yellow); animation: timeFloat calc(var(--duration) * var(--motion-speed)) linear var(--delay) infinite; }
.time-particles.is-reversing .time-particle { animation-direction: reverse; filter: drop-shadow(0 0 4px var(--warm-yellow)); }

.night-wing { top: 38px; left: 50%; width: 164px; height: 120px; transform: translateX(-50%); }
.night-wing span { position: absolute; inset: 18px 5px 5px; background: #0b0e1c; clip-path: polygon(0 42%, 18% 26%, 32% 32%, 42% 9%, 50% 30%, 58% 9%, 68% 32%, 82% 26%, 100% 42%, 82% 58%, 70% 53%, 60% 80%, 50% 60%, 40% 80%, 30% 53%, 18% 58%); filter: drop-shadow(0 8px 15px rgba(4, 6, 14, .6)); transition: transform 350ms ease; }
.night-wing:hover span,
.night-wing:focus-visible span { transform: scale(1.08); }

.star-friend { top: 16px; left: 50%; width: 170px; height: 170px; transform: translateX(-50%); }
.star-friend__head { position: absolute; top: 49px; left: 50%; width: 60px; height: 47px; border-radius: 50% 50% 44% 44%; background: #83a57a; transform: translateX(-50%); }
.star-friend__head::before,
.star-friend__head::after { content: ""; position: absolute; top: 10px; width: 38px; height: 17px; background: #83a57a; }
.star-friend__head::before { left: -28px; clip-path: polygon(100% 0, 100% 100%, 0 38%); }
.star-friend__head::after { right: -28px; clip-path: polygon(0 0, 0 100%, 100% 38%); }
.star-friend__head i,
.star-friend__head b { position: absolute; top: 21px; width: 6px; height: 7px; border-radius: 50%; background: #171827; }
.star-friend__head i { left: 16px; }
.star-friend__head b { right: 16px; }
.star-friend__body { position: absolute; top: 88px; left: 50%; width: 76px; height: 57px; border-radius: 26px 26px 9px 9px; background: #8d745f; transform: translateX(-50%); }
.star-friend__star { position: absolute; top: 15px; right: 21px; color: var(--warm-yellow); font-size: 1.6rem; filter: drop-shadow(0 0 7px var(--warm-yellow)); animation: gentlePulse calc(2s * var(--motion-speed)) ease-in-out infinite; }

.mini-farm { border-radius: 11px; overflow: hidden; background: linear-gradient(180deg, #7c6588 0 54%, #526950 55%); }
.mini-farm__sun { position: absolute; top: 16px; right: 24px; width: 35px; height: 35px; border-radius: 50%; background: var(--warm-yellow); box-shadow: 0 0 18px rgba(246,213,139,.4); }
.mini-farm__tree { position: absolute; z-index: 2; bottom: 34px; left: 28px; width: 20px; height: 49px; background: #60483d; }
.mini-farm__tree::before { content: ""; position: absolute; top: -43px; left: -30px; width: 80px; height: 67px; border-radius: 50% 50% 42% 42%; background: var(--soft-green); box-shadow: inset -12px -9px rgba(28,55,49,.2); }
.mini-farm__rows { position: absolute; right: 12px; bottom: 0; left: 76px; height: 70px; background: repeating-linear-gradient(166deg, #3c4c3d 0 8px, #7d7652 9px 15px); transform: skewX(-5deg); }

.distance {
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 65%, rgba(98, 82, 125, 0.32), transparent 48%);
}

.distance blockquote { margin-inline: auto; padding: 0; border: 0; max-width: 720px; }

.distance-bridge {
  position: relative;
  height: 360px;
  margin: 45px 0 25px;
}

.country-point {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 120px;
  color: var(--cream);
  font-family: var(--pixel);
}

.country-point--chile { left: 4%; }
.country-point--mexico { right: 4%; }
.country-point strong { font-size: 0.85rem; }
.country-point small { color: var(--cream-muted); font-size: 0.65rem; }

.country-point__light {
  display: block;
  width: 15px;
  height: 15px;
  margin-bottom: 12px;
  border: 3px solid var(--cream);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(217, 108, 114, .12), 0 0 30px 8px rgba(246,213,139,.42);
  animation: gentlePulse calc(2.5s * var(--motion-speed)) ease-in-out infinite;
}

.country-point--mexico .country-point__light { background: var(--soft-green); animation-delay: -1s; }

.star-path {
  position: absolute;
  right: 13%;
  bottom: 70px;
  left: 13%;
  height: 230px;
  border-top: 2px dashed rgba(246, 213, 139, 0.44);
  border-radius: 50% 50% 0 0;
  transform: translateY(43px);
}

.star-path::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warm-yellow);
  box-shadow: 0 0 12px var(--warm-yellow);
  offset-path: path("M 0 0 Q 310 -205 620 0");
  animation: connectCountries calc(5s * var(--motion-speed)) ease-in-out infinite;
}

.star-path span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm-yellow);
  box-shadow: 0 0 7px rgba(246, 213, 139, .8);
  animation: gentlePulse calc(2s * var(--motion-speed)) ease-in-out infinite;
}

.star-path span:nth-child(1) { top: 18%; left: 8%; }
.star-path span:nth-child(2) { top: -5%; left: 22%; animation-delay: -.3s; }
.star-path span:nth-child(3) { top: -23%; left: 37%; animation-delay: -.8s; }
.star-path span:nth-child(4) { top: -28%; left: 50%; animation-delay: -1.1s; }
.star-path span:nth-child(5) { top: -22%; left: 63%; animation-delay: -.5s; }
.star-path span:nth-child(6) { top: -4%; left: 78%; animation-delay: -1.6s; }
.star-path span:nth-child(7) { top: 18%; left: 91%; animation-delay: -.9s; }

.timeline-star {
  position: absolute;
  z-index: 5;
  top: 46px;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--warm-yellow);
  background: rgba(246, 213, 139, 0.08);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(246,213,139,.8));
  transform: translateX(-50%);
  animation: gentlePulse calc(2.2s * var(--motion-speed)) ease-in-out infinite;
}

.rating-section { background: linear-gradient(180deg, rgba(42, 34, 66, .55), rgba(18, 18, 42, .4)); }
.rating-layout { display: grid; grid-template-columns: 1fr 0.7fr; align-items: center; gap: 42px 80px; }

.rating-card {
  position: relative;
  min-height: 275px;
  padding: 32px;
  border: 1px solid rgba(246,213,139,.35);
  border-radius: 18px;
  cursor: pointer;
  color: var(--cream);
  background: linear-gradient(145deg, rgba(217,108,114,.17), rgba(255,255,255,.04));
  box-shadow: 0 25px 70px rgba(5, 6, 18, .28), inset 0 1px rgba(255,255,255,.1);
  transition: transform 350ms ease, background 350ms ease;
}

.rating-card:hover { transform: rotate(-1.2deg) translateY(-4px); }
.rating-card.is-correcting { animation: ratingError 500ms ease; }
.rating-card.is-corrected { background: linear-gradient(145deg, rgba(111,143,107,.21), rgba(255,255,255,.05)); }
.rating-card__status,
.rating-card__action { display: block; color: var(--cream-muted); font: 400 0.65rem/1.5 var(--pixel); }
.rating-card__score { position: relative; display: block; margin: 18px 0; font: 700 clamp(3.4rem, 8vw, 5rem)/1 var(--pixel); }
.rating-card__score span { position: relative; }
.rating-card.is-corrected .rating-card__score { font-size: clamp(1.65rem, 4vw, 2.4rem); color: var(--warm-yellow); }
.rating-card.is-corrected .rating-card__score span::after { content: ""; position: absolute; right: 0; top: 50%; left: 0; height: 3px; background: var(--coral); transform: rotate(-8deg) scaleX(0); transform-origin: left; animation: strikeScore 450ms ease forwards; }
.rating-confession { grid-column: 1 / -1; max-width: 700px; margin: 0 auto; text-align: center; font-size: clamp(1.25rem, 3vw, 1.65rem); opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.rating-confession.is-visible { opacity: 1; transform: none; }

.farm-section { background: linear-gradient(180deg, rgba(13,16,38,.25), #1b2e35 93%); }
.season-caption { margin-top: -6px; color: var(--warm-yellow) !important; font: 400 0.72rem/1.5 var(--pixel); }

.farm-world {
  --season-sky-top: #647391;
  --season-sky-bottom: #d18a83;
  --season-ground: #536c50;
  --season-leaf: #719567;
  position: relative;
  height: min(610px, 70vw);
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: var(--season-ground);
  box-shadow: 0 35px 90px rgba(2, 8, 18, .28);
  transition: background 1.8s ease;
}

.farm-world[data-season="summer"] { --season-sky-top: #4f708a; --season-sky-bottom: #d5a16f; --season-ground: #56724e; --season-leaf: #5e8957; }
.farm-world[data-season="autumn"] { --season-sky-top: #5c607b; --season-sky-bottom: #c77867; --season-ground: #67573e; --season-leaf: #b56c43; }
.farm-world[data-season="winter"] { --season-sky-top: #414d6b; --season-sky-bottom: #8b8198; --season-ground: #b9c1c7; --season-leaf: #77838a; }

.farm-world__sky { position: absolute; inset: 0 0 46%; background: linear-gradient(180deg, var(--season-sky-top), var(--season-sky-bottom)); transition: background 1.8s ease; }
.farm-world__orb { position: absolute; top: 12%; right: 14%; width: clamp(48px, 7vw, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--warm-yellow); box-shadow: 0 0 35px rgba(246,213,139,.38); }
.farm-world__cloud { position: absolute; top: 24%; left: 13%; width: 120px; height: 16px; border-radius: 50%; background: rgba(255,246,232,.35); filter: blur(2px); animation: cloudFloat calc(22s * var(--motion-speed)) ease-in-out infinite alternate; }
.farm-world__hill { position: absolute; top: 35%; right: -5%; left: -5%; height: 31%; border-radius: 50% 50% 0 0; background: #41594d; background: color-mix(in srgb, var(--season-ground), #182c31 22%); transition: background 1.8s ease; }

.farm-house { position: absolute; z-index: 2; top: 36%; left: 13%; width: 170px; height: 125px; background: #9c6e5d; box-shadow: inset -15px -10px rgba(55,36,45,.18); }
.farm-house__roof { position: absolute; top: -69px; left: -20px; width: 210px; height: 75px; background: #4f3b4b; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.farm-house__door { position: absolute; bottom: 0; left: 26px; width: 48px; height: 76px; background: #57404a; }
.farm-house__window { position: absolute; top: 30px; right: 28px; width: 43px; height: 39px; border: 6px solid #57404a; background: var(--warm-yellow); box-shadow: 0 0 19px rgba(246,213,139,.54); }
.farm-house i { position: absolute; top: -110px; right: 20px; width: 20px; height: 51px; background: #4f3b4b; }
.farm-house i::after { content: ""; position: absolute; top: -12px; left: -8px; width: 32px; height: 30px; border-radius: 50%; background: rgba(224,215,203,.2); filter: blur(7px); animation: smokeRise calc(4s * var(--motion-speed)) ease-in-out infinite; }

.farm-tree { position: absolute; z-index: 3; top: 40%; right: 13%; width: 34px; height: 160px; background: #594538; }
.farm-tree span { position: absolute; top: -86px; left: 50%; width: 176px; height: 150px; border-radius: 48% 52% 42% 45%; background: var(--season-leaf); box-shadow: inset -25px -18px rgba(22,45,42,.18); transform: translateX(-50%); transition: background 1.8s ease; animation: treeSway calc(5.5s * var(--motion-speed)) ease-in-out infinite alternate; }
.farm-tree i { position: absolute; top: -31px; left: 2px; width: 70px; height: 13px; background: #594538; transform: rotate(-35deg); }

.farm-crops { position: absolute; z-index: 2; right: 34%; bottom: 8%; left: 31%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px 19px; padding: 20px; border-radius: 50% 50% 8px 8px; background: repeating-linear-gradient(0deg, #453b32 0 17px, #5a4937 18px 34px); transform: perspective(430px) rotateX(30deg); }
.farm-crops span { height: 20px; background: var(--season-leaf); clip-path: polygon(46% 100%, 43% 46%, 0 25%, 44% 29%, 50% 0, 57% 29%, 100% 25%, 61% 48%, 55% 100%); transform-origin: bottom; animation: cropSway calc(3s * var(--motion-speed)) ease-in-out infinite alternate; }
.farm-crops span:nth-child(even) { animation-delay: -1.5s; }

.farm-pond { position: absolute; z-index: 2; right: 3%; bottom: 4%; width: 27%; height: 16%; border: 8px solid rgba(57,73,61,.65); border-radius: 50%; background: #54798a; box-shadow: inset 0 12px 20px rgba(25,47,61,.3); transform: rotate(-4deg); }
.farm-pond span { position: absolute; top: 35%; left: 20%; width: 48%; height: 2px; background: rgba(255,255,255,.35); box-shadow: 27px 16px rgba(255,255,255,.22), -8px 30px rgba(255,255,255,.15); animation: pondRipple calc(3s * var(--motion-speed)) ease-in-out infinite; }

.farm-bench { position: absolute; z-index: 4; bottom: 13%; left: 8%; width: 135px; height: 56px; border-top: 15px solid #5b4037; border-bottom: 12px solid #5b4037; }
.farm-bench::before,
.farm-bench::after { content: ""; position: absolute; bottom: -33px; width: 11px; height: 25px; background: #3d3030; }
.farm-bench::before { left: 18px; }
.farm-bench::after { right: 18px; }
.farm-bench span,
.farm-bench i { position: absolute; bottom: 4px; width: 31px; height: 36px; border-radius: 50% 50% 7px 7px; background: #26313a; }
.farm-bench span { left: 32px; }
.farm-bench i { right: 32px; }
.farm-bench span::before,
.farm-bench i::before { content: ""; position: absolute; top: -16px; left: 6px; width: 19px; height: 19px; border-radius: 50%; background: #26313a; }

.month-seeds { position: absolute; z-index: 4; top: 19px; left: 24px; display: flex; gap: 10px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(13,16,38,.28); }
.month-seeds span { color: var(--warm-yellow); font-size: .75rem; filter: drop-shadow(0 0 5px rgba(246,213,139,.6)); animation: gentlePulse calc(2.6s * var(--motion-speed)) ease-in-out infinite; }
.month-seeds span:nth-child(2) { animation-delay: -.4s; }
.month-seeds span:nth-child(3) { animation-delay: -.8s; }
.month-seeds span:nth-child(4) { animation-delay: -1.2s; }
.month-seeds span:nth-child(5) { animation-delay: -1.6s; }

.season-particles { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.season-particle { position: absolute; top: -25px; width: 8px; height: 8px; border-radius: 70% 0 70% 30%; background: var(--particle-color, #e9a0a8); opacity: .7; animation: seasonFall calc(var(--duration) * var(--motion-speed)) linear var(--delay) infinite; }
.farm-quote { width: min(800px, 92%); margin: 58px auto 0; padding: 0; border: 0; text-align: center; }

.poem-section {
  padding-bottom: clamp(130px, 18vw, 250px);
  background: linear-gradient(180deg, #1b2e35, rgba(13,16,38,.95) 12%, var(--deep-night));
}

.poem-shell { width: min(780px, 100%); margin: 0 auto; }
.poem-shell > .chapter-label,
.poem-shell > h2 { text-align: center; }
.poem-shell > h2 { margin-bottom: 90px; }

.poem {
  position: relative;
  padding: 0 clamp(3px, 5vw, 58px);
}

.poem::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  opacity: .45;
  background: linear-gradient(180deg, transparent, var(--warm-yellow) 8% 92%, transparent);
}

.poem-stanza {
  margin: 0 0 clamp(58px, 9vw, 100px);
  color: var(--cream) !important;
  font-size: clamp(1.25rem, 3.1vw, 1.72rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.js .poem-stanza {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
}

.js .poem-stanza.is-visible { opacity: 1; transform: none; }
.poem-stanza--declaration { color: var(--warm-yellow) !important; font-size: clamp(2rem, 5vw, 3.1rem); font-style: italic; line-height: 1.2; }

.finale {
  position: relative;
  min-height: 115svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 120px 22px 250px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 70%, rgba(98,82,125,.35), transparent 34%),
    linear-gradient(180deg, var(--deep-night), #141b35 62%, #273943);
}

.finale__stars { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--cream) 0 1px, transparent 1.5px), radial-gradient(circle, var(--warm-yellow) 0 1.4px, transparent 1.8px); background-size: 77px 91px, 173px 157px; opacity: .75; animation: starDrift calc(40s * var(--motion-speed)) linear infinite; }
.finale__content { position: relative; z-index: 8; width: min(900px, 100%); }
.final-line { margin: 0 0 24px; color: var(--cream-muted); font-size: clamp(1.3rem, 3vw, 2rem); }
.final-line--strong { color: var(--cream); font-size: clamp(1.7rem, 4vw, 3rem); }
.finale h2.final-line--title { margin: 18px 0 36px; color: var(--warm-yellow); font-size: clamp(3rem, 9vw, 6.5rem); }
.js .final-line { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .final-line:nth-child(2) { transition-delay: 500ms; }
.js .final-line:nth-child(3) { transition-delay: 1s; }
.js .finale.is-visible .final-line { opacity: 1; transform: none; }

.final-heart {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(246,213,139,.3);
  border-radius: 17px;
  cursor: pointer;
  color: var(--coral);
  background: rgba(217,108,114,.08);
  font: 700 2.8rem/1 var(--pixel);
  box-shadow: 0 0 30px rgba(217,108,114,.13);
  transform: rotate(45deg);
  transition: transform 300ms ease, background 300ms ease;
  animation: gentlePulse calc(2.2s * var(--motion-speed)) ease-in-out infinite;
}
.final-heart span { display: block; transform: rotate(-45deg); }
.final-heart:hover { background: rgba(217,108,114,.16); transform: rotate(45deg) scale(1.06); }
.final-whisper { margin-top: 30px; color: var(--cream-muted); font-style: italic; }

.finale__land { position: absolute; z-index: 5; right: -4%; bottom: -45px; left: -4%; height: 230px; border-radius: 50% 50% 0 0; background: #101f29; }
.final-sitters { bottom: 138px; }
.hidden-carrot { position: absolute; right: 8%; top: 54px; width: 44px; height: 44px; border: 0; cursor: pointer; color: var(--carrot); background: transparent; font-size: 1.2rem; transform: rotate(45deg); opacity: .62; }
.hidden-carrot::before { content: ""; position: absolute; top: -8px; left: 14px; width: 7px; height: 15px; background: var(--leaf); transform: rotate(-45deg); }

.meteor-shower { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s ease 1.2s; }
.finale.is-visible .meteor-shower { opacity: 1; }
.meteor { position: absolute; top: -10%; width: 2px; height: 110px; opacity: 0; background: linear-gradient(180deg, var(--cream), transparent); transform: rotate(45deg); animation: meteorFall calc(var(--duration) * var(--motion-speed)) linear var(--delay) infinite; }
.fireflies--final { opacity: .8 !important; }

.music-panel {
  position: fixed;
  z-index: 100;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(340px, calc(100vw - 28px));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: var(--cream);
  background: rgba(17, 18, 40, .92);
  box-shadow: 0 14px 45px rgba(4, 5, 15, .36);
  backdrop-filter: blur(14px);
}

.music-panel__toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font: 700 .68rem/1.3 var(--pixel);
  text-align: left;
}

.music-note { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--ink); background: var(--warm-yellow); font-size: 1rem; }
.music-waves { display: flex; align-items: center; gap: 3px; height: 20px; }
.music-waves i { width: 2px; height: 6px; border-radius: 3px; background: var(--warm-yellow); }
.music-panel.is-playing .music-waves i { animation: audioWave calc(.8s * var(--motion-speed)) ease-in-out infinite alternate; }
.music-panel.is-playing .music-waves i:nth-child(2) { animation-delay: -.2s; }
.music-panel.is-playing .music-waves i:nth-child(3) { animation-delay: -.4s; }
.music-panel__state { flex: 1; }
.music-panel__toggle::after { content: "+"; color: var(--cream-muted); font-size: 1rem; }
.music-panel.is-open .music-panel__toggle::after { content: "−"; }

.music-panel__body { display: none; padding: 0 15px 16px; }
.music-panel.is-open .music-panel__body { display: block; }
.music-panel__title { margin: 4px 0 10px; color: var(--cream-muted); font-size: .85rem; }
.youtube-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #0b0d1e; }
.youtube-frame iframe { width: 100%; height: 100%; border: 0; }
.youtube-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 16px; text-align: center; background: linear-gradient(145deg, #1c1d3c, #101326); }
.youtube-fallback span { color: var(--warm-yellow); font-size: 1.4rem; }
.youtube-fallback p { margin: 6px 0 0; color: var(--cream-muted); font: 400 .58rem/1.5 var(--pixel); }
.youtube-frame.is-ready .youtube-fallback { display: none; }
.music-controls { display: grid; grid-template-columns: auto 1fr; gap: 11px 14px; align-items: center; margin-top: 14px; }
.music-controls button { grid-row: span 2; min-height: 44px; padding: 7px 12px; border: 1px solid rgba(246,213,139,.4); border-radius: 8px; cursor: pointer; color: var(--cream); background: rgba(246,213,139,.08); font: 700 .6rem/1.2 var(--pixel); }
.music-controls button:disabled { cursor: not-allowed; opacity: .45; }
.music-controls label { display: flex; justify-content: space-between; color: var(--cream-muted); font: 400 .57rem/1.2 var(--pixel); }
.music-controls input { width: 100%; accent-color: var(--warm-yellow); }
.youtube-link { display: inline-block; margin-top: 13px; color: var(--warm-yellow); font: 400 .57rem/1.4 var(--pixel); }

.toast {
  position: fixed;
  z-index: 200;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(520px, calc(100vw - 30px));
  padding: 14px 18px;
  border: 1px solid rgba(246,213,139,.36);
  border-radius: 12px;
  color: var(--cream);
  background: rgba(20, 19, 42, .95);
  box-shadow: 0 18px 50px rgba(2,4,13,.35);
  font: 400 .72rem/1.5 var(--pixel);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { position: fixed; z-index: 300; right: 12px; bottom: 12px; left: 12px; padding: 14px; border-radius: 9px; color: var(--ink); background: var(--warm-yellow); font: 700 .7rem/1.4 var(--pixel); text-align: center; }

.js .reveal-section .section-shell > * { opacity: 0; transform: translateY(26px); transition: opacity 800ms ease, transform 800ms ease; }
.js .reveal-section.is-visible .section-shell > * { opacity: 1; transform: none; }
.js .reveal-section.is-visible .section-shell > *:nth-child(2) { transition-delay: 140ms; }
.js .reveal-section.is-visible .section-shell > *:nth-child(3) { transition-delay: 240ms; }

@keyframes originFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gentlePulse { 0%,100% { opacity: .62; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes cloudFloat { from { transform: translateX(-18px); } to { transform: translateX(50px); } }
@keyframes grassSway { from { transform: skewX(-2deg); } to { transform: skewX(2deg); } }
@keyframes cropSway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes treeSway { from { transform: translateX(-50%) rotate(-1deg); } to { transform: translateX(-50%) rotate(1.5deg); } }
@keyframes starDrift { to { transform: translate3d(25px, 15px, 0); } }
@keyframes fireflyWander { 0% { transform: translate3d(-10px, 14px, 0); opacity: .15; } 35% { opacity: 1; } 70% { transform: translate3d(36px, -24px, 0); opacity: .45; } 100% { transform: translate3d(-19px, -48px, 0); opacity: .9; } }
@keyframes scarfWave { to { transform: rotate(6deg) scaleX(1.15); } }
@keyframes smokeRise { 0% { transform: translateY(15px) scale(.8); opacity: .1; } 50% { opacity: .42; } 100% { transform: translateY(-28px) scale(1.25); opacity: 0; } }
@keyframes chaosFloat { to { transform: rotate(145deg) translateY(-20px); } }
@keyframes sandFall { 0% { transform: scaleY(.2); transform-origin: top; } 100% { transform: scaleY(1); transform-origin: top; } }
@keyframes hourglassReverse { 0%,100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(180deg); } }
@keyframes timeFloat { from { transform: translateY(100px) scale(.5); opacity: 0; } 30% { opacity: .8; } to { transform: translateY(-20px) scale(1); opacity: 0; } }
@keyframes connectCountries { 0% { offset-distance: 0%; opacity: 0; } 15%,85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes ratingError { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px) rotate(-1deg); } 40% { transform: translateX(8px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes strikeScore { to { transform: rotate(-8deg) scaleX(1); } }
@keyframes pondRipple { 0%,100% { transform: scaleX(.75); opacity: .25; } 50% { transform: scaleX(1.2); opacity: .65; } }
@keyframes seasonFall { 0% { transform: translate3d(0,-15px,0) rotate(0); opacity: 0; } 12% { opacity: .75; } 100% { transform: translate3d(var(--drift),650px,0) rotate(400deg); opacity: .1; } }
@keyframes meteorFall { 0%,62% { transform: translate3d(0,0,0) rotate(45deg); opacity: 0; } 65% { opacity: 1; } 100% { transform: translate3d(55vw,90vh,0) rotate(45deg); opacity: 0; } }
@keyframes audioWave { to { height: 18px; } }

@media (max-width: 900px) {
  .section-shell--split { grid-template-columns: 1fr; }
  .section-copy { max-width: 680px; }
  .pixel-picnic { width: min(600px, 100%); margin: 0 auto; }
  .memory-card:nth-child(n) { grid-column: span 6; }
  .rating-layout { grid-template-columns: 1fr; }
  .rating-card { width: min(440px, 100%); justify-self: center; }
  .farm-world { height: 590px; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { padding: 45px 16px 160px; }
  .hero h1 br { display: none; }
  .origin-symbol { width: 105px; height: 124px; }
  .pixel-carrot { transform: scale(.86); transform-origin: center; }
  .pixel-heart { left: 9px; }
  .story-section { padding-inline: 18px; }
  .memory-constellation { grid-template-columns: 1fr; }
  .memory-card:nth-child(n) { grid-column: 1; min-height: 345px; }
  .distance-bridge { height: 300px; margin-inline: -12px; }
  .country-point { min-width: 86px; }
  .country-point--chile { left: 0; }
  .country-point--mexico { right: 0; }
  .star-path { right: 16%; left: 16%; height: 165px; }
  .star-path::after { display: none; }
  .timeline-star { top: 48px; }
  .rating-card { min-height: 230px; padding: 25px; }
  .farm-world { height: 570px; min-height: 570px; border-radius: 19px; }
  .farm-house { top: 36%; left: 8%; width: 128px; height: 104px; }
  .farm-house__roof { top: -54px; left: -14px; width: 156px; height: 58px; }
  .farm-house__door { width: 39px; height: 62px; }
  .farm-house__window { right: 17px; width: 37px; }
  .farm-tree { top: 42%; right: 14%; height: 136px; }
  .farm-tree span { width: 126px; height: 115px; }
  .farm-crops { right: 9%; bottom: 6%; left: 34%; grid-template-columns: repeat(5, 1fr); gap: 11px 8px; padding: 15px 10px; }
  .farm-pond { right: 2%; bottom: 25%; width: 31%; height: 11%; }
  .farm-bench { bottom: 15%; left: 5%; transform: scale(.83); transform-origin: left bottom; }
  .month-seeds { left: 12px; gap: 6px; }
  .poem { padding-left: 17px; padding-right: 0; }
  .poem-shell > h2 { margin-bottom: 65px; }
  .poem-stanza br { display: initial; }
  .finale { padding-inline: 18px; }
  .music-panel { right: 10px; bottom: 10px; width: min(315px, calc(100vw - 20px)); }
  .music-panel:not(.is-open) { width: 205px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 2.65rem; }
  .pixel-picnic { min-height: 350px; }
  .pixel-picnic__tree { top: 104px; transform: scale(.78); transform-origin: bottom; }
  .pixel-picnic__tree--left { left: 10%; }
  .pixel-picnic__tree--right { right: 10%; transform: scale(.7); }
  .pixel-picnic__table { top: 216px; width: 88px; }
  .pixel-picnic__blanket { width: 154px; height: 92px; }
  .farm-world { margin-inline: -5px; }
  .farm-tree { right: 10%; }
  .farm-crops { left: 37%; }
  .farm-pond { width: 34%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-speed: 0; }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .firefly,
  .meteor,
  .season-particle,
  .time-particle { display: none; }
  .js .poem-stanza,
  .js .final-line,
  .js .reveal-section .section-shell > * { opacity: 1; transform: none; }
}
