:root {
  --sky: #7ec8f0;
  --sky-deep: #5bb5e8;
  --ink: #111111;
  --pill: #0d0d0d;
  --yellow: #f6d02f;
  --red: #e52521;
  --blue: #049cd8;
  --green: #43b047;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  --section-gap: clamp(28px, 5vw, 42px);
  --font-mario: "SuperMario256", "Bangers", "Nunito", system-ui, sans-serif;
  --font-display: var(--font-mario);
  --font-body: "Nunito", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", monospace;
}

@font-face {
  font-family: "SuperMario256";
  src: url("../src/fonts/SuperMario256.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  padding-bottom: 88px;
}

.sky-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, #9ad7f5 0%, var(--sky) 45%, #6bbcE8 100%);
}

.sky-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(40, 110, 160, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 110, 160, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pixel-star,
.pixel-heart,
.pixel-coin,
.pixel-cursor {
  display: inline-block;
  image-rendering: pixelated;
}

.pixel-star {
  width: 18px;
  height: 18px;
  position: absolute;
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 6px 18px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 18px 6px no-repeat;
  filter: drop-shadow(0 0 0 #000);
  animation: twinkle 2.4s ease-in-out infinite;
}

.pixel-star::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #ffe56a;
}

.star-1 { top: 8%; left: 8%; animation-delay: 0s; }
.star-2 { top: 14%; right: 10%; animation-delay: 0.4s; }
.star-3 { top: 42%; left: 6%; animation-delay: 0.8s; }
.star-4 { top: 58%; right: 8%; animation-delay: 1.2s; }

.pixel-heart {
  width: 16px;
  height: 14px;
  position: relative;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 2px #8b0000;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.pixel-heart::before,
.pixel-heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
}

.pixel-heart::before { top: -8px; left: 0; }
.pixel-heart::after { top: 0; left: -8px; }

.heart-1 {
  position: absolute;
  top: 26%;
  right: 14%;
}

.inline-heart {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  transform: rotate(45deg) scale(0.9);
}

.pixel-coin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe76a, #f0b400 55%, #c98600);
  border: 3px solid #8a5a00;
  box-shadow: inset 0 0 0 2px #fff3a8;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pixel-coin:hover,
.pixel-coin:focus-visible {
  transform: scale(1.2) rotate(12deg);
}

.coin-1 { top: 34%; left: 12%; animation: floaty 3s ease-in-out infinite; }
.coin-2 { top: 68%; right: 12%; animation: floaty 3.6s ease-in-out infinite reverse; }

.invite-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 18px 24px;
  text-align: center;
}

.invite-shell > .date-block,
.invite-shell > .cast-row,
.invite-shell > .place-block,
.invite-shell > .fun-messages,
.invite-shell > .joy-game,
.invite-shell > .rsvp-block,
.invite-shell > .closing,
.invite-shell > .finale-art {
  margin-bottom: var(--section-gap);
}

.invite-shell > .closing {
  margin-bottom: 18px;
}

.invite-shell > .finale-art {
  margin-bottom: 8px;
}

.cast-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(100px, 24vw, 130px);
  padding: 0 4px;
  pointer-events: none;
}

.cast-row--solo {
  justify-content: center;
  align-items: center;
}

.cast-char {
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateX(var(--slide-x, 0)) translateY(24px) scale(0.82);
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.35));
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cast-char[data-side="left"] {
  --slide-x: -36px;
}

.cast-char[data-side="right"] {
  --slide-x: 36px;
}

.cast-char[data-side="center"] {
  --slide-x: 0;
}

.cast-row.is-visible .cast-char {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.cast-char img {
  width: clamp(76px, 24vw, 112px);
  height: auto;
  max-height: 118px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  animation: charBob 3s ease-in-out infinite;
}

.cast-row .cast-char:nth-child(2) img {
  animation-delay: 0.35s;
}

.intro-scroll-zone {
  height: 108vh;
  position: relative;
  z-index: 2;
}

.intro-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.hero-splash {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 36px) 18px clamp(12px, 3vw, 20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  will-change: opacity;
  overflow: hidden;
}

/* NUEVO: wrapper que agrupa kicker + nombre + edad + arte + guirnalda
   y se escala completo por JS (ver fitHeroSplash en functions.js) para
   que siempre quepa dentro de hero-splash, sin importar el dispositivo. */
.hero-fit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  transform-origin: center center;
  will-change: transform;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  will-change: transform, opacity;
  transition:
    transform 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.28s ease-out,
    filter 0.28s ease-out;
}

.hero-stage.is-exiting {
  pointer-events: none;
}

.hero-stage.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-bunting {
  display: block;
  width: min(88vw, 320px);
  max-width: 100%;
  height: auto;
  margin: 4px auto 0;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.18));
  object-fit: contain;
  pointer-events: none;
}

.hero-art {
  margin: clamp(10px, 3vw, 18px) 0 0;
  width: min(88vw, 340px);
  flex-shrink: 0;
  filter: drop-shadow(4px 8px 0 rgba(0, 0, 0, 0.22));
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-cue {
  margin-top: auto;
  padding: 8px 0 4px;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.65);
  animation: bounceCue 1.6s ease-in-out infinite;
}

.intro-scroll-zone.is-complete .scroll-cue {
  opacity: 0;
  visibility: hidden;
}

.intro-scroll-zone.is-releasing .intro-sticky {
  pointer-events: none;
}

.intro-scroll-zone.is-complete .intro-sticky {
  pointer-events: none;
  visibility: hidden;
}

.invite-content {
  position: relative;
  z-index: 1;
  margin-top: -16vh;
  padding-top: 0;
}

.joy-game {
  margin: 0;
  padding: 20px 16px 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid #000;
  border-radius: 20px;
  box-shadow: 5px 5px 0 #000;
}

.joy-heart-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease;
}

.joy-heart-btn:hover,
.joy-heart-btn:focus-visible {
  transform: scale(1.05);
}

.joy-heart-btn.is-bump {
  animation: heartBump 0.45s ease;
}

.joy-heart-btn.is-max .joy-heart {
  animation: heartPulse 1s ease-in-out infinite;
}

.joy-heart-stage {
  width: clamp(110px, 28vw, 140px);
  height: clamp(110px, 28vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  pointer-events: none;
}

.joy-heart {
  width: 58%;
  height: auto;
  transform: scale(var(--heart-scale, 0.42));
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.2));
}

.joy-heart-stage[data-joy="0"] { --heart-scale: 0.42; }
.joy-heart-stage[data-joy="1"] { --heart-scale: 0.55; }
.joy-heart-stage[data-joy="2"] { --heart-scale: 0.68; }
.joy-heart-stage[data-joy="3"] { --heart-scale: 0.81; }
.joy-heart-stage[data-joy="4"] { --heart-scale: 0.93; }
.joy-heart-stage[data-joy="5"] { --heart-scale: 1.08; }

.joy-label {
  margin: 12px 0 10px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.joy-meter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.joy-segment {
  width: 42px;
  height: 18px;
  border: 3px solid #000;
  border-radius: 6px;
  background: #ddd;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
}

.joy-segment.is-on {
  background: linear-gradient(180deg, #ffe76a 0%, #f0b400 100%);
  transform: translateY(-2px);
  box-shadow: 0 2px 0 #8a5a00, inset 0 2px 0 #fff3a8;
}

.joy-level-text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-pixel);
}

.joy-level-text strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.map-section {
  margin-top: 20px;
  padding: 16px 14px;
  background: #eef8ff;
  border: 4px solid #000;
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  text-align: center;
}

.map-section-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  letter-spacing: 0.04em;
}

.map-section-lead {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.place-block .btn-map {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: riseIn 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.55s; }
.delay-6 { animation-delay: 0.7s; }

.hero-kicker {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-name {
  margin: 0;
  line-height: 0.95;
  font-family: var(--font-mario);
  font-size: clamp(3.8rem, 19vw, 6.2rem);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.04em;
}

.letter {
  display: inline-block;
  color: var(--white);
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  transform-origin: center bottom;
  animation: letterPop 0.55s ease both;
  transition: transform 0.2s ease;
}

.letter:hover {
  transform: translateY(-6px) scale(1.08);
}

.letter:nth-child(1) { animation-delay: 0.05s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.15s; }
.letter:nth-child(4) { animation-delay: 0.2s; }
.letter:nth-child(5) { animation-delay: 0.25s; }
.letter:nth-child(6) { animation-delay: 0.3s; }
.letter:nth-child(7) { animation-delay: 0.35s; }

.c-blue { color: #2f8fe8; }
.c-yellow { color: #f5d12e; }
.c-green { color: #3faf45; }
.c-red { color: #e53d2f; }

.hero-age {
  margin: 10px 0 0;
  font-family: var(--font-mario);
  font-size: clamp(2rem, 10vw, 3.2rem);
  letter-spacing: 0.03em;
  color: var(--white);
  -webkit-text-stroke: 5px #000;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  white-space: nowrap;
}

.date-block {
  margin-top: 0;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: var(--shadow);
  min-width: min(100%, 280px);
}

.date-pill-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.pill-day,
.pill-time {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.pill-date {
  font-family: var(--font-mario);
  font-size: clamp(1.5rem, 7vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 2px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.date-part {
  text-transform: lowercase;
}

.date-mushroom {
  width: auto;
  height: 0.92em;
  min-height: 18px;
  max-height: 28px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  flex-shrink: 0;
  transform: translateY(-0.06em);
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.15));
}

.place-block {
  margin-top: 0;
}

.stars-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stars-row span {
  width: 10px;
  height: 10px;
  background: #d9dde3;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.place-info {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.place-info strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  background: linear-gradient(180deg, #4f9df0 0%, #2f7fd4 100%);
  color: #fff;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 12px 20px;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 0 #134a86;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-map:hover,
.btn-map:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #134a86;
}

.btn-map:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #134a86;
}

.btn-map-icon {
  font-size: 1.2rem;
  filter: drop-shadow(1px 1px 0 #000);
}

.place-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.75;
}

.scroll-section {
  position: relative;
}

.fun-messages {
  margin-top: 0;
  display: grid;
  gap: 14px;
}

.fun-card {
  background: var(--card);
  border: 3px solid #000;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 4px 4px 0 #000;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.fun-card:hover,
.fun-card:focus-visible,
.fun-card.is-active {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 6px 8px 0 #000;
}

.fun-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--red);
}

.fun-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.rsvp-block {
  margin-top: 0;
}

.btn-confirm {
  background: linear-gradient(180deg, #ff4b3e 0%, var(--red) 100%);
  color: #fff;
  border: 3px solid #000;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 0 #7a100d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-confirm:hover,
.btn-confirm:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #7a100d;
}

.btn-confirm:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #7a100d;
}

.rsvp-note {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.closing {
  margin-top: 0;
  margin-bottom: 20px;
}

.closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000;
}

.closing p {
  margin: 8px 0 0;
  font-weight: 800;
}

.finale-art {
  margin: 0 -8px;
  padding: 0;
  text-align: center;
}

.finale-art img {
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(4px 8px 0 rgba(0, 0, 0, 0.18));
}

.upper-case {
  text-transform: uppercase;
}

.ground-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 72px;
  pointer-events: none;
}

.grass {
  height: 18px;
  background:
    linear-gradient(#5ecf3c, #5ecf3c) top / 100% 8px no-repeat,
    repeating-linear-gradient(
      90deg,
      #3aa824 0 14px,
      #4fbf2f 14px 28px
    );
  box-shadow: inset 0 -3px 0 #2f7d1a;
}

.dirt {
  height: 54px;
  background:
    repeating-linear-gradient(
      90deg,
      #b56a2d 0 36px,
      #9a5521 36px 72px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 24px,
      rgba(0, 0, 0, 0.12) 24px 26px
    );
  border-top: 3px solid #6e3a12;
}

.mario-modal {
  border: 4px solid #000;
  border-radius: 18px;
  overflow: hidden;
}

.mario-modal .modal-header,
.mario-modal .modal-footer {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff8e8;
}

.mario-modal .modal-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1.6rem;
}

.modal-lead {
  font-weight: 700;
  margin-bottom: 14px;
}

.mario-modal .form-control {
  border: 2px solid #000;
  border-radius: 10px;
  font-weight: 700;
}

.btn-modal-primary {
  background: var(--green);
  border: 2px solid #000;
  color: #fff;
  font-weight: 800;
}

.btn-modal-secondary {
  background: #ececec;
  border: 2px solid #000;
  font-weight: 800;
}

.btn-gps {
  text-decoration: none;
}

.btn-gps:hover,
.btn-gps:focus-visible {
  color: #fff;
}

.pixel-label {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.party-select {
  margin-top: 8px;
  padding: 14px;
  border: 3px solid #000;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffef5 0%, #fff4c9 100%);
  box-shadow: 4px 4px 0 #000;
}

.party-title {
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--red);
}

.party-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
}

.party-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 4px;
}

.party-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.party-info strong {
  display: block;
  font-size: 0.95rem;
}

.party-info small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  font-weight: 700;
}

.party-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0 #000;
}

.party-icon-adult {
  background: #dbeafe;
}

.party-icon-kid {
  background: #fef08a;
}

.party-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border-radius: 999px;
  padding: 4px;
  border: 2px solid #000;
}

.counter-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.counter-btn:hover,
.counter-btn:focus-visible {
  transform: scale(1.08);
}

.counter-btn:active {
  transform: scale(0.95);
}

.counter-value {
  width: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.party-total {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.party-total strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.party-total-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.map-modal .modal-body {
  background: #eef8ff;
}

.game-map {
  position: relative;
  border: 4px solid #000;
  border-radius: 16px;
  overflow: hidden;
  background: #8fd0f5;
  box-shadow: 5px 5px 0 #000;
}

.game-map-sky {
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0 12px,
    transparent 12px 24px
  );
}

.game-map-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 18px 12px 12px;
  flex-wrap: wrap;
}

.map-node {
  position: relative;
  min-width: 72px;
  text-align: center;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #000;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #000;
}

.map-node-icon {
  display: block;
  font-size: 1.5rem;
}

.map-node-label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  line-height: 1.4;
}

.map-goal {
  background: #ffe08a;
}

.map-goal.is-pulse {
  animation: goalPulse 1.4s ease-in-out infinite;
}

.map-flag {
  position: absolute;
  top: -10px;
  right: -8px;
  font-size: 1rem;
  animation: flagWave 1s ease-in-out infinite;
}

.map-track,
.map-track-2 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
}

.map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
}

.map-coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe76a, #f0b400 55%, #c98600);
  border: 2px solid #8a5a00;
  cursor: pointer;
  animation: floaty 2.5s ease-in-out infinite;
}

.game-map-ground {
  height: 28px;
}

.game-map-ground .grass {
  height: 10px;
}

.game-map-ground .dirt {
  height: 18px;
}

.map-address {
  margin-top: 14px;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}

.lista-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #000;
  border-radius: 14px;
  padding: 10px 8px;
  box-shadow: 3px 3px 0 #000;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  margin: 4px 0;
}

.stat-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.8;
}

.stat-icon {
  font-size: 1.2rem;
}

.stat-card-total {
  background: #fff4c9;
}

.player-card {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #000;
  border-radius: 14px;
  padding: 12px;
  margin: 10px auto;
  max-width: 420px;
  box-shadow: 4px 4px 0 #000;
  text-align: left;
}

.player-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.player-rank {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--red);
}

.player-name {
  font-size: 1rem;
  text-transform: uppercase;
}

.player-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #000;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-adult {
  background: #dbeafe;
}

.badge-kid {
  background: #fef08a;
}

.badge-total {
  background: #dcfce7;
}

.body_page {
  background: var(--sky);
}

.body_lista_asistentes {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0 16px 100px;
}

/* Header fijo: título + subtítulo + tarjetas de stats se quedan
   pegados arriba mientras solo las player-card hacen scroll debajo. */
.lista-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(126, 200, 240, 0.72); /* var(--sky) con alpha */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 0 14px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 10px 14px -8px rgba(0, 0, 0, 0.22);
}

.lista-scroll-area {
  padding-top: 18px;
}

.confirmation_title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--white);
  -webkit-text-stroke: 3px #000;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000;
}

.elemento_lista {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 8px auto !important;
  max-width: 360px;
  box-shadow: 3px 3px 0 #000;
  font-weight: 800;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes letterPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes heartbeat {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.18); }
}

@keyframes cursorTap {
  0%, 100% { transform: rotate(35deg) translateY(0); }
  50% { transform: rotate(35deg) translateY(6px); }
}

@keyframes goalPulse {
  0%, 100% { transform: scale(1); box-shadow: 3px 3px 0 #000; }
  50% { transform: scale(1.05); box-shadow: 5px 5px 0 #000; }
}

@keyframes flagWave {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes charBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(var(--heart-scale, 1)); }
  50% { transform: scale(calc(var(--heart-scale, 1) * 1.1)); }
}

@media (max-height: 680px) {
  .hero-art {
    width: min(76vw, 260px);
    margin-top: 6px;
  }

  .scroll-cue {
    padding-top: 4px;
  }
}

@media (min-width: 768px) {
  .intro-scroll-zone {
    height: 112vh;
  }

  .invite-content {
    margin-top: -14vh;
  }

  .hero-art {
    width: min(72vw, 380px);
  }
}

@media (min-width: 768px) {
  .cast-row .cast-char img {
    width: clamp(88px, 12vw, 120px);
    max-height: 130px;
  }
}

@media (max-width: 575px) {
  .game-map-path {
    flex-direction: column;
    align-items: stretch;
  }

  .map-track,
  .map-track-2 {
    flex-direction: row;
    min-height: 24px;
  }

  .map-node {
    width: 100%;
  }

  .lista-stats {
    grid-template-columns: 1fr;
  }
}

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

  .reveal,
  .cast-row .cast-char {
    opacity: 1;
    transform: none;
  }
}