:root {
  --sky: #72c9ff;
  --sky-deep: #2f8bd4;
  --yellow: #ffd24d;
  --gold: #e8a82e;
  --red: #d8392f;
  --blue: #1467b3;
  --denim: #0d4f92;
  --wood: #9b5527;
  --wood-dark: #5a2f18;
  --cream: #fff2c7;
  --paper: #fff7dd;
  --ink: #2b170d;
  --green: #1f8b56;
  --shadow: 0 18px 42px rgba(82, 43, 12, 0.24);
  --radius: 18px;
  --western: "Rye", Georgia, serif;
  --round: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.8), transparent 12rem),
    linear-gradient(180deg, var(--sky), #b9ebff 34%, #f6c85c 34%, #d98835 100%);
  font-family: var(--round);
}

body.is-locked {
  overflow: hidden;
}

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

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

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

.cloud {
  position: absolute;
  width: 8rem;
  height: 3rem;
  border-radius: 999px;
  background: #fff;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.05));
  opacity: 0.8;
  animation: drift 22s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0.6rem;
  border-radius: 50%;
  background: #fff;
}

.cloud::before {
  left: 1rem;
  width: 3rem;
  height: 3rem;
}

.cloud::after {
  right: 1.2rem;
  width: 3.7rem;
  height: 3.7rem;
}

.c1 {
  top: 10%;
  left: -9rem;
}

.c2 {
  top: 25%;
  left: -13rem;
  animation-duration: 29s;
  animation-delay: -8s;
}

.c3 {
  top: 6%;
  left: -12rem;
  transform: scale(0.7);
  animation-duration: 34s;
  animation-delay: -16s;
}

@keyframes drift {
  to {
    transform: translateX(calc(100vw + 18rem));
  }
}

.intro-scene {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(85, 186, 250, 0.96), rgba(187, 235, 255, 0.92) 55%, rgba(222, 142, 58, 0.96) 56%),
    var(--sky);
  transition: opacity 700ms ease, visibility 700ms ease, transform 700ms ease;
}

.intro-scene.is-open {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-sun {
  position: absolute;
  top: 7%;
  right: 11%;
  width: clamp(6rem, 20vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff2a5 0 28%, var(--yellow) 29% 100%);
  box-shadow: 0 0 70px rgba(255, 210, 77, 0.8);
}

.intro-cloud {
  position: absolute;
  width: clamp(7rem, 24vw, 14rem);
  opacity: 0.9;
}

.intro-cloud-one {
  top: 8%;
  left: 12%;
  animation: bob 5s ease-in-out infinite;
}

.intro-cloud-two {
  top: 20%;
  right: 5%;
  animation: bob 5s ease-in-out infinite reverse;
}

.intro-ground {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 28svh;
  display: flex;
  align-items: end;
  justify-content: space-around;
  padding-inline: 1rem;
  background:
    radial-gradient(circle at 22% 0, rgba(255, 226, 125, 0.35), transparent 16rem),
    linear-gradient(180deg, #df8d39, #a85621);
}

.intro-ground img {
  width: clamp(4.5rem, 18vw, 10rem);
  max-height: 70%;
  object-fit: contain;
}

.character-img {
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(72, 35, 10, 0.24));
}

.intro-woody {
  position: absolute;
  z-index: 2;
  left: clamp(0.75rem, 4vw, 3.25rem);
  bottom: 20svh;
  width: clamp(6.4rem, 16vw, 12rem);
  animation: bob 3.4s ease-in-out infinite;
}

.intro-bullseye {
  position: absolute;
  z-index: 2;
  right: clamp(0.75rem, 4vw, 3.25rem);
  bottom: 20svh;
  width: clamp(6.2rem, 15vw, 11.5rem);
  animation: bob 3.8s ease-in-out 0.45s infinite reverse;
}

@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}

.wood-sign {
  position: relative;
  width: min(92vw, 560px);
  padding: clamp(1.3rem, 5vw, 2.4rem);
  text-align: center;
  border: 8px solid var(--wood-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 35%, rgba(0, 0, 0, 0.1)),
    repeating-linear-gradient(90deg, #b86b32 0 42px, #a95d2b 43px 84px);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 236, 169, 0.4);
  color: var(--cream);
}

.wood-sign::before,
.wood-sign::after {
  content: "";
  position: absolute;
  top: -1.2rem;
  width: 1rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--wood-dark);
}

.wood-sign::before {
  left: 14%;
}

.wood-sign::after {
  right: 14%;
}

.intro-sign {
  z-index: 3;
  transform: rotate(-1deg);
  animation: signSettle 900ms ease-out both;
}

@keyframes signSettle {
  0% {
    transform: rotate(-2deg) translateY(-6px);
  }
  60% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-1deg);
  }
}

.intro-line {
  margin: 0.25rem 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.snake-line {
  color: var(--yellow);
  animation: popIn 500ms ease 450ms both;
}

.invite-line {
  font-size: clamp(1.3rem, 7vw, 2.5rem);
  animation: popIn 500ms ease 650ms both;
}

@keyframes popIn {
  from {
    transform: scale(0.86);
    opacity: 0;
  }
}

.wood-sign h1,
.section-title h2,
.hero-copy h2,
.mission-copy h2,
.map-board h2,
.wood-sign h2,
.final-scene h2 {
  margin: 0;
  font-family: var(--western);
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 2px 3px 0 rgba(90, 47, 24, 0.14);
}

.wood-sign h1 {
  font-size: clamp(2.5rem, 14vw, 5.8rem);
  color: #fff;
}

.wood-sign strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.2rem, 5vw, 2rem);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border: 3px solid rgba(43, 23, 13, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 0 rgba(43, 23, 13, 0.18), 0 16px 22px rgba(43, 23, 13, 0.16);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(43, 23, 13, 0.2);
}

.btn-primary {
  background: linear-gradient(180deg, #ffe174, var(--gold));
}

.btn-secondary {
  background: linear-gradient(180deg, #fbfcff, #a9d8ff);
  color: var(--denim);
}

.btn-whatsapp {
  background: linear-gradient(180deg, #61e292, #1fb766);
  color: #fff;
}

.open-btn {
  margin-top: 1.2rem;
}

.page {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.page.is-visible {
  opacity: 1;
  transform: none;
}

.section-panel {
  position: relative;
  width: min(100%, 1180px);
  min-height: min(900px, 100svh);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 4vw, 2rem);
  overflow: hidden;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  text-align: center;
}

.hero::after,
.section-panel::after {
  content: "";
  position: absolute;
  inset: auto -2rem 0;
  height: 8rem;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0, #e8a448 0 18%, transparent 19%),
    linear-gradient(180deg, #db8b37, #bb6427);
}

.hero-cloud {
  position: absolute;
  width: clamp(7rem, 28vw, 18rem);
}

.hcloud-1 {
  top: 9%;
  left: 3%;
}

.hcloud-2 {
  top: 19%;
  right: 4%;
}

.hero-woody,
.hero-jessie,
.hero-bullseye {
  position: absolute;
  pointer-events: none;
}

.hero-woody {
  left: -0.5rem;
  bottom: 14%;
  width: clamp(7rem, 24vw, 15rem);
}

.hero-jessie {
  right: -0.5rem;
  bottom: 14%;
  width: clamp(7rem, 24vw, 15rem);
}

.hero-bullseye {
  left: 50%;
  bottom: 5%;
  width: clamp(7rem, 22vw, 14rem);
  transform: translateX(-50%);
}

.floaty {
  animation: bob 3.2s ease-in-out infinite;
}

.delay {
  animation-delay: -1.1s;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 620px);
  padding: clamp(1.4rem, 6vw, 3rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 221, 0.96), rgba(255, 230, 142, 0.94)),
    var(--paper);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 4px 0 rgba(77, 23, 17, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin-top: 0.9rem;
  color: var(--blue);
  font-size: clamp(3.6rem, 18vw, 8rem);
}

.hero-title {
  margin: 0;
  color: var(--red);
  font-family: var(--western);
  font-size: clamp(1.5rem, 8vw, 3.2rem);
}

.hero-subtitle {
  margin: 0.75rem auto 1.2rem;
  max-width: 32rem;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  font-weight: 900;
}

.toy-floor {
  position: absolute;
  inset: auto 0 1rem;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 7vw, 5rem);
  pointer-events: none;
}

.toy-floor img {
  width: clamp(3.5rem, 14vw, 7rem);
  object-fit: contain;
}

.section-title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-title h2 {
  margin-top: 0.75rem;
  color: var(--denim);
  font-size: clamp(2.2rem, 10vw, 5rem);
}

.photo-section {
  display: grid;
  align-content: center;
}

.sheriff-frame {
  position: relative;
  width: min(88vw, 520px);
  margin: 0 auto;
  padding: clamp(0.85rem, 3vw, 1.2rem);
  transform: rotate(-1.5deg);
  border: 10px solid var(--wood-dark);
  border-radius: 26px;
  background: repeating-linear-gradient(90deg, #b76b32 0 38px, #965121 39px 76px);
  box-shadow: var(--shadow);
}

.kid-photo {
  aspect-ratio: 4 / 5;
  border: 8px solid var(--cream);
  border-radius: 16px;
  object-fit: cover;
}

.frame-rope,
.frame-star,
.frame-boots {
  position: absolute;
  object-fit: contain;
}

.frame-rope {
  top: -2rem;
  left: -1.5rem;
  width: 7rem;
  animation: spinSlow 8s linear infinite;
}

.frame-star {
  right: -1rem;
  top: -1.5rem;
  width: 5.5rem;
  animation: spinSlow 6s linear infinite;
}

.frame-boots {
  right: -1.2rem;
  bottom: -1.4rem;
  width: 6rem;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.wood-card {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  padding: 1.2rem;
  text-align: center;
  border: 7px solid var(--wood-dark);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, #be7236 0 46px, #a65d2d 47px 92px);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.wood-card span {
  color: var(--yellow);
  font-family: var(--western);
  font-size: 1.35rem;
}

.wood-card strong {
  font-size: clamp(1rem, 4.4vw, 1.6rem);
}

.countdown-section {
  display: grid;
  align-content: center;
  border-block: 8px dashed rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.5), transparent 20rem),
    linear-gradient(180deg, #57bbf3, #f5bf43);
}

.lasso {
  position: absolute;
  top: 2rem;
  right: -3rem;
  width: clamp(8rem, 30vw, 16rem);
  animation: lasso 4s ease-in-out infinite;
}

@keyframes lasso {
  50% {
    transform: rotate(12deg) scale(1.05);
  }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.countdown div {
  min-height: clamp(112px, 23vw, 190px);
  display: grid;
  place-items: center;
  align-content: center;
  border: 6px solid #fff;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #fff8df, #ffe083);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, -1deg));
}

.countdown div:nth-child(even) {
  --tilt: 1deg;
}

.countdown strong {
  color: var(--red);
  font-family: var(--western);
  font-size: clamp(2.2rem, 10vw, 5rem);
  line-height: 0.9;
}

.countdown span {
  color: var(--denim);
  font-weight: 900;
  text-transform: uppercase;
}

.today-message {
  text-align: center;
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 900;
}

.mission-section {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.72fr);
  gap: 1rem;
  align-items: center;
}

.jessie-section {
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
}

.mission-copy {
  padding: clamp(1.2rem, 5vw, 2.6rem);
  border-radius: 28px;
  background: rgba(255, 247, 221, 0.92);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}

.mission-copy h2 {
  margin-top: 0.8rem;
  color: var(--red);
  font-size: clamp(2rem, 9vw, 4.8rem);
}

.mission-copy p,
.wood-sign p,
.map-board p {
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  font-weight: 900;
}

.mission-character {
  width: min(62vw, 330px);
  margin: 0 auto;
}

.bullseye-section {
  display: grid;
  place-items: center;
  min-height: 70svh;
}

.run-bullseye {
  width: min(64vw, 380px);
  animation: runAcross 4.5s ease-in-out infinite;
}

@keyframes runAcross {
  0%,
  100% {
    transform: translateX(-20px);
  }
  50% {
    transform: translateX(20px) rotate(2deg);
  }
}

.map-section {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.35), transparent 12rem),
    linear-gradient(180deg, rgba(113, 201, 255, 0.5), rgba(247, 182, 71, 0.8));
}

.map-board {
  width: min(92vw, 680px);
  padding: clamp(1.3rem, 6vw, 3rem);
  text-align: center;
  border: 8px solid var(--wood-dark);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent),
    repeating-linear-gradient(90deg, #f2d18d 0 42px, #e5bc73 43px 84px);
  box-shadow: var(--shadow);
}

.map-board h2 {
  color: var(--denim);
  font-size: clamp(2rem, 9vw, 4.5rem);
}

.place {
  color: var(--red);
}

.dress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dress-grid article {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 247, 221, 0.92);
  border: 6px solid #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.dress-grid img {
  height: 96px;
  margin: 0 auto;
  object-fit: contain;
}

.dress-grid span {
  font-weight: 900;
  color: var(--denim);
}

.gifts-section,
.confirm-section {
  display: grid;
  place-items: center;
}

.gift-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.gallery-grid button {
  padding: 0.5rem;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(var(--photo-tilt, -1.5deg));
  cursor: zoom-in;
}

.gallery-grid button:nth-child(even) {
  --photo-tilt: 1.5deg;
}

.gallery-grid img {
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.confirm-friends {
  width: min(76vw, 420px);
  margin-bottom: -1rem;
}

.copied {
  margin: 0.8rem 0 0;
  color: var(--yellow);
  font-weight: 900;
}

.final-scene {
  display: grid;
  place-items: center;
  min-height: 80svh;
  text-align: center;
}

.final-scene img {
  width: min(70vw, 360px);
}

.final-scene img + img {
  width: min(55vw, 260px);
  margin-top: -2rem;
}

.final-scene h2 {
  margin-top: 1rem;
  color: var(--red);
  font-size: clamp(2.2rem, 10vw, 5rem);
}

.final-scene p {
  margin: 0;
  color: var(--blue);
  font-family: var(--western);
  font-size: clamp(2rem, 10vw, 4rem);
}

.final-scene strong {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 54px;
  height: 54px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.lightbox {
  width: min(94vw, 760px);
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(22, 11, 5, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 82svh;
  border: 10px solid #fff;
  border-radius: 22px;
  object-fit: contain;
  background: #fff;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
}

.prev {
  left: 0.7rem;
}

.next {
  right: 0.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 760px) {
  .intro-sign {
    width: min(92vw, 420px);
    margin-top: -18svh;
  }

  .intro-woody,
  .intro-bullseye {
    bottom: 16svh;
    width: clamp(4.6rem, 20vw, 7rem);
  }

  .intro-woody {
    left: 0.35rem;
  }

  .intro-bullseye {
    right: 0.35rem;
  }

  .intro-cloud-one {
    top: 3%;
    left: 3%;
    width: 6.4rem;
  }

  .intro-cloud-two {
    top: 10%;
    right: 3%;
    width: 7rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-woody {
    left: -2rem;
    bottom: 13%;
  }

  .hero-jessie {
    right: -2rem;
    bottom: 13%;
  }

  .hero-bullseye {
    bottom: 2%;
  }

  .poster-grid,
  .countdown,
  .dress-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-section,
  .jessie-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jessie-section .mission-character {
    order: 2;
  }
}

@media (max-width: 430px) {
  .section-panel {
    min-height: 100svh;
    padding-inline: 0.85rem;
  }

  .intro-ground {
    height: 24svh;
  }

  .intro-sign {
    margin-top: -21svh;
    padding: 1rem 0.75rem;
  }

  .intro-woody,
  .intro-bullseye {
    bottom: 12svh;
    width: clamp(4rem, 19vw, 5.6rem);
  }

  .hero-woody,
  .hero-jessie {
    width: clamp(4.8rem, 20vw, 6.2rem);
    bottom: 10%;
  }

  .hero-bullseye {
    width: clamp(5rem, 22vw, 6.5rem);
  }

  .snake-line {
    font-size: 0.72rem;
  }

  .invite-line {
    font-size: 1.1rem;
  }

  .wood-sign {
    border-width: 6px;
  }

  .countdown {
    gap: 0.55rem;
  }

  .countdown div {
    min-height: 118px;
    border-width: 4px;
    border-radius: 18px;
  }

  .dress-grid article {
    min-height: 150px;
    padding: 0.7rem;
  }

  .dress-grid img {
    height: 74px;
  }
}

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