/* ==========================================================
   Diseño "Plataformas" · Infantil (videojuego retro en pixel art)
   mini juego → 3 bloques de estrella → ¡nivel completado! → montaje
   Solo paleta y motivos genéricos; personaje y piezas ORIGINALES.
   ========================================================== */

/* Fuente pixel (OFL) auto-alojada */
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/press-start-2p-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Press Start 2P"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/press-start-2p-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --rojo: #e52521;
  --rojo-osc: #a3160f;
  --azul: #049cd8;
  --amarillo: #fbd000;
  --verde: #43b047;
  --verde-osc: #2d7d30;
  --ladrillo: #b4502a;
  --cielo: #5c94fc;
  --tinta: #22140c;
  --pixel: "Press Start 2P", ui-monospace, monospace;

  /* Piezas pixel (SVG con rectángulos, shape-rendering crispEdges) */
  --img-nube: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='11' width='8' height='2'/%3E%3Crect x='8' y='2' width='14' height='2'/%3E%3Crect x='6' y='4' width='22' height='2'/%3E%3Crect x='2' y='6' width='28' height='2'/%3E%3Crect y='8' width='32' height='4'/%3E%3C/g%3E%3Crect y='12' width='32' height='2' fill='%23b9d1ff'/%3E%3C/svg%3E");
  --img-colina: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' shape-rendering='crispEdges'%3E%3Cg fill='%2343b047'%3E%3Crect x='20' width='24' height='4'/%3E%3Crect x='12' y='4' width='40' height='4'/%3E%3Crect x='8' y='8' width='48' height='4'/%3E%3Crect x='4' y='12' width='56' height='8'/%3E%3Crect x='2' y='20' width='60' height='4'/%3E%3Crect y='24' width='64' height='8'/%3E%3C/g%3E%3C/svg%3E");
  --img-colina-clara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' shape-rendering='crispEdges'%3E%3Cg fill='%238fd16a'%3E%3Crect x='20' width='24' height='4'/%3E%3Crect x='12' y='4' width='40' height='4'/%3E%3Crect x='8' y='8' width='48' height='4'/%3E%3Crect x='4' y='12' width='56' height='8'/%3E%3Crect x='2' y='20' width='60' height='4'/%3E%3Crect y='24' width='64' height='8'/%3E%3C/g%3E%3C/svg%3E");
  --img-ladrillo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' shape-rendering='crispEdges'%3E%3Crect width='24' height='12' fill='%23b4502a'/%3E%3Cg fill='%237a3018'%3E%3Crect y='5' width='24' height='1'/%3E%3Crect y='11' width='24' height='1'/%3E%3Crect x='11' width='1' height='5'/%3E%3Crect x='5' y='6' width='1' height='5'/%3E%3Crect x='17' y='6' width='1' height='5'/%3E%3C/g%3E%3Cg fill='%23d9845a'%3E%3Crect width='11' height='1'/%3E%3Crect x='12' width='12' height='1'/%3E%3Crect y='6' width='5' height='1'/%3E%3Crect x='6' y='6' width='11' height='1'/%3E%3Crect x='18' y='6' width='6' height='1'/%3E%3C/g%3E%3C/svg%3E");
  --img-moneda: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' shape-rendering='crispEdges'%3E%3Cg fill='%2322140c'%3E%3Crect x='1' width='6' height='10'/%3E%3Crect y='1' width='8' height='8'/%3E%3C/g%3E%3Crect x='1' y='1' width='6' height='8' fill='%23fbd000'/%3E%3Crect x='5' y='2' width='1' height='6' fill='%23c99400'/%3E%3Crect x='2' y='2' width='1' height='5' fill='%23fff'/%3E%3C/svg%3E");

  /* Borde pixel con esquinas escalonadas (sombras en los 4 ejes) */
  --borde-pix: 0 -4px var(--tinta), 0 4px var(--tinta), -4px 0 var(--tinta), 4px 0 var(--tinta);
  --sombra-pix: 4px 8px 0 rgba(34, 20, 12, .28), 8px 4px 0 rgba(34, 20, 12, .28);

  --s-fondo: var(--cielo);
  --s-tinta: #ffffff;
  --s-suave: #eef3ff;
  --s-acento: var(--amarillo);
  --s-acento-tinta: var(--tinta);
  --s-tarjeta: #ffffff;
  --s-borde: transparent;
  --s-radio: 0;
  --s-sombra: var(--borde-pix), var(--sombra-pix);
  --s-fuente: "Fredoka", system-ui, sans-serif;
  --s-titulo: var(--pixel);
  --s-titulo-tam: clamp(1rem, 5.4vw, 1.45rem);
  --s-etiqueta: var(--pixel);
  --s-num: var(--pixel);
  --s-num-color: var(--rojo);
  --s-btn-linea-color: var(--tinta);
}

body {
  background:
    var(--img-nube) 8% 120px / 96px 42px no-repeat,
    var(--img-nube) 88% 420px / 128px 56px no-repeat,
    var(--img-nube) 30% 900px / 80px 35px no-repeat,
    var(--cielo);
  image-rendering: auto;
  color: #fff;
  font-family: var(--s-fuente);
}

/* Solo lectores de pantalla */
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Esquinas escalonadas por recorte (cada elemento define --p) */
.marco-pix, .marco-pix__borde, .marco-pix__foto, .rsvp-foto img {
  --p2: calc(var(--p) * 2);
  clip-path: polygon(var(--p2) 0, calc(100% - var(--p2)) 0, calc(100% - var(--p2)) var(--p), calc(100% - var(--p)) var(--p),
    calc(100% - var(--p)) var(--p2), 100% var(--p2), 100% calc(100% - var(--p2)), calc(100% - var(--p)) calc(100% - var(--p2)),
    calc(100% - var(--p)) calc(100% - var(--p)), calc(100% - var(--p2)) calc(100% - var(--p)), calc(100% - var(--p2)) 100%,
    var(--p2) 100%, var(--p2) calc(100% - var(--p)), var(--p) calc(100% - var(--p)), var(--p) calc(100% - var(--p2)),
    0 calc(100% - var(--p2)), 0 var(--p2), var(--p) var(--p2), var(--p) var(--p), var(--p2) var(--p));
}

/* ==========================================================
   INTRO · mini juego
   ========================================================== */
.juego {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: var(--cielo);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
  clip-path: circle(150% at 50% 55%);
  transition: clip-path 1.1s steps(12, end);
}
.juego.fuera { clip-path: circle(0% at 50% 55%); pointer-events: none; }
.juego__lienzo {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.hud {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--pixel);
  font-size: .56rem;
  line-height: 1.3;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--tinta);
  pointer-events: none;
}
.hud__caja { display: flex; flex-direction: column; gap: 7px; }
.hud__caja--der { align-items: flex-end; text-align: right; }
.hud__val { display: flex; align-items: center; gap: 5px; font-size: .78rem; }
.hud__moneda {
  width: 12px;
  height: 15px;
  background: var(--img-moneda) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  animation: moneda-gira .9s steps(1, end) infinite;
}
@keyframes moneda-gira { 0% { transform: scaleX(1); } 25% { transform: scaleX(.7); } 50% { transform: scaleX(.2); } 75% { transform: scaleX(.7); } }
.hud__fichas { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 62vw; }
.ficha {
  position: relative;
  min-width: 3.6em;
  padding: 5px 6px 4px;
  background: rgba(34, 20, 12, .35);
  font-weight: 400;
  font-size: .6rem;
  text-align: center;
}
.ficha span { visibility: hidden; }
.ficha::before { content: "..."; position: absolute; inset: 0; display: grid; place-items: center; }
.ficha.lleno { background: var(--amarillo); color: var(--tinta); text-shadow: none; box-shadow: 0 -2px var(--tinta), 0 2px var(--tinta), -2px 0 var(--tinta), 2px 0 var(--tinta); animation: ficha-pop .5s steps(5, end); }
.ficha.lleno span { visibility: visible; }
.ficha.lleno::before { content: none; }
@keyframes ficha-pop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }

.juego__objetivo {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top) + 78px);
  z-index: 2;
  margin: 0;
  padding: 0 18px;
  font-family: var(--pixel);
  font-size: .56rem;
  line-height: 1.6;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 0 var(--tinta);
  animation: parpadeo 1.2s steps(1, end) infinite;
  pointer-events: none;
}
.juego.completado .juego__objetivo { display: none; }
@keyframes parpadeo { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }

.pops { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pop {
  position: absolute;
  font-family: var(--pixel);
  font-size: clamp(.72rem, 3.8vw, 1.05rem);
  color: #fff;
  white-space: nowrap;
  text-shadow: 2px 0 var(--tinta), -2px 0 var(--tinta), 0 2px var(--tinta), 0 -2px var(--tinta), 3px 3px 0 var(--tinta);
  animation: pop-sube 1.5s steps(15, end) forwards;
}
@keyframes pop-sube {
  0% { transform: translate(-50%, -40%); opacity: 1; }
  60% { transform: translate(-50%, -230%); opacity: 1; }
  100% { transform: translate(-50%, -270%); opacity: 0; }
}

.cartel {
  position: absolute;
  left: 50%;
  top: 24%;
  z-index: 4;
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  padding: 18px 20px 15px;
  background: var(--rojo);
  color: var(--amarillo);
  font-family: var(--pixel);
  font-size: clamp(.82rem, 4.6vw, 1.5rem);
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--tinta);
  box-shadow: 0 -4px #fff, 0 4px #fff, -4px 0 #fff, 4px 0 #fff,
    0 -8px var(--tinta), 0 8px var(--tinta), -8px 0 var(--tinta), 8px 0 var(--tinta),
    4px 4px var(--tinta), -4px 4px var(--tinta), 4px -4px var(--tinta), -4px -4px var(--tinta),
    10px 14px 0 rgba(34, 20, 12, .3);
  transform: translateX(-50%);
  animation: cartel-entra .7s steps(7, end) both;
}
@keyframes cartel-entra {
  0% { transform: translateX(-50%) scale(0); }
  60% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

.mando {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity .4s steps(4, end), transform .4s steps(4, end);
}
.juego.completado .mando { opacity: 0; transform: translateY(30px); pointer-events: none; }
.pix-btn {
  all: unset;
  box-sizing: border-box;
  min-width: 190px;
  min-height: 60px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rojo);
  color: #fff;
  font-family: var(--pixel);
  font-size: .9rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #7a0f0b;
  cursor: pointer;
  box-shadow: inset -4px -4px 0 var(--rojo-osc), inset 4px 4px 0 #ff7a6e, var(--borde-pix), 6px 10px 0 rgba(34, 20, 12, .35);
  transition: transform .06s steps(1, end);
}
.pix-btn:active, .pix-btn.pulsado { transform: translateY(4px); box-shadow: inset 4px 4px 0 var(--rojo-osc), var(--borde-pix), 2px 4px 0 rgba(34, 20, 12, .35); }
.pix-btn:focus-visible { outline: 4px dashed var(--amarillo); outline-offset: 9px; }
.mando__pista {
  margin: 0;
  padding: 0 16px;
  font-family: var(--pixel);
  font-size: .5rem;
  line-height: 1.6;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 0 var(--tinta);
}

/* ==========================================================
   HERO · montaje en marco pixelado
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: calc(env(safe-area-inset-top) + 26px) 16px calc(env(safe-area-inset-bottom) + 118px);
  overflow: hidden;
  background: var(--cielo);
  text-align: center;
  color: #fff;
}
.hero__eyebrow, .hero__nombre, .hero__cumple, .hero__fecha { position: relative; z-index: 2; }
.hero__nubes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__nubes i {
  position: absolute;
  width: 112px;
  height: 49px;
  background: var(--img-nube) center / 100% 100% no-repeat;
  image-rendering: pixelated;
  animation: nube-va 26s steps(52, end) infinite alternate;
}
.hero__nubes i:nth-child(1) { top: 7%; left: 4%; }
.hero__nubes i:nth-child(2) { top: 18%; right: 2%; width: 80px; height: 35px; animation-duration: 34s; }
.hero__nubes i:nth-child(3) { top: 46%; left: -4%; width: 64px; height: 28px; animation-duration: 22s; }
@keyframes nube-va { from { transform: translateX(-10px); } to { transform: translateX(40px); } }

.hero__colinas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 1;
  height: 112px;
  background:
    var(--img-colina) 6% 100% / 224px 112px no-repeat,
    var(--img-colina-clara) 96% 100% / 160px 80px no-repeat,
    var(--img-colina-clara) 40% 100% / 96px 48px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}
.hero__suelo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 64px;
  background:
    linear-gradient(180deg, #7fd36a 0 4px, var(--verde) 4px 14px, var(--verde-osc) 14px 18px, transparent 18px),
    var(--img-ladrillo) 0 18px / 48px 24px repeat;
  image-rendering: pixelated;
}
.hero .desliza-c { z-index: 3; color: #fff; font-family: var(--pixel); font-size: .5rem; letter-spacing: .1em; text-shadow: 2px 2px 0 var(--tinta); }
.hero .desliza-c i { background: #fff; width: 4px; }

.hero__eyebrow {
  margin: 0 0 10px;
  max-width: 22em;
  font-family: var(--pixel);
  font-size: .62rem;
  line-height: 1.6;
  color: var(--amarillo);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--tinta);
}
.hero__escenario { position: relative; z-index: 2; }
.marco-pix {
  --p: 6px;
  position: relative;
  width: min(72vw, 330px, 44svh);
  aspect-ratio: 9 / 11;
  margin: 0;
  padding: 6px;
  background: var(--tinta);
}
.marco-pix__borde {
  --p: 6px;
  height: 100%;
  padding: 10px;
  background: var(--amarillo);
  box-shadow: inset -6px -6px 0 #c99400, inset 6px 6px 0 #fff3a0;
}
.marco-pix__foto {
  --p: 4px;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--azul);
}
.pix-estrella {
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  animation: estrella-salta 1s steps(4, end) infinite alternate;
}
.pix-estrella--1 { top: -16px; left: -18px; }
.pix-estrella--2 { right: -18px; bottom: 18%; width: 28px; height: 28px; animation-delay: -.5s; }
@keyframes estrella-salta { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* Personaje opcional (PNG del cliente) */
.personaje {
  position: absolute;
  right: -14%;
  bottom: -6%;
  z-index: 4;
  width: 46%;
  max-width: 190px;
  height: auto;
  opacity: 0;
  filter: drop-shadow(4px 6px 0 rgba(34, 20, 12, .35));
  pointer-events: none;
}

.hero__nombre {
  margin: 18px 0 0;
  max-width: 100%;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(1.4rem, 8.4vw, 2.6rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: #fff;
  text-shadow: 3px 0 var(--tinta), -3px 0 var(--tinta), 0 3px var(--tinta), 0 -3px var(--tinta),
    3px 3px var(--tinta), -3px 3px var(--tinta), 3px -3px var(--tinta), -3px -3px var(--tinta), 6px 7px 0 var(--rojo);
}
.hero__cumple {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: .72rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--tinta);
}
.hero__edad {
  min-width: 54px;
  padding: 10px 8px 8px;
  background: var(--amarillo);
  color: var(--tinta);
  font-weight: 400;
  font-size: 1.6rem;
  text-shadow: 2px 2px 0 #fff3a0;
  box-shadow: inset -4px -4px 0 #c99400, var(--borde-pix), 4px 8px 0 rgba(34, 20, 12, .3);
}
.hero__fecha {
  margin: 12px 0 0;
  font-family: var(--pixel);
  font-size: .56rem;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--tinta);
}

/* Entrada del hero (la activa la clase .listo al terminar el juego) */
.hero__eyebrow, .hero__escenario, .hero__nombre, .hero__cumple, .hero__fecha { opacity: 0; }
.hero.listo .hero__eyebrow { animation: parpadea-entra .6s steps(6, end) forwards; }
.hero.listo .hero__escenario { animation: bloque-cae .9s cubic-bezier(.3, 1.5, .5, 1) .1s forwards; }
.hero.listo .hero__nombre { animation: sube-pix .5s steps(5, end) .7s forwards; }
.hero.listo .hero__cumple { animation: sube-pix .5s steps(5, end) .9s forwards; }
.hero.listo .hero__fecha { animation: sube-pix .5s steps(5, end) 1.1s forwards; }
.hero.listo .personaje { animation: personaje-salta .9s steps(9, end) 1.2s forwards; }
@keyframes parpadea-entra { 0%, 33%, 66% { opacity: 0; } 17%, 50%, 100% { opacity: 1; } }
@keyframes bloque-cae { from { opacity: 1; transform: translateY(-110vh); } to { opacity: 1; transform: none; } }
@keyframes sube-pix { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes personaje-salta {
  0% { opacity: 0; transform: translate(40%, 60%) scale(.5); }
  50% { opacity: 1; transform: translate(0, -22%) scale(1.06); }
  75% { opacity: 1; transform: translate(0, 4%) scale(.98); }
  100% { opacity: 1; transform: none; }
}

/* ==========================================================
   Secciones
   ========================================================== */
.mision-sec { padding-top: 84px; }
.panel-pix {
  width: min(100%, 360px);
  padding: 22px 20px 20px;
  background: #fff;
  color: var(--tinta);
  box-shadow: var(--borde-pix), var(--sombra-pix);
}
.panel-pix__t {
  margin: -22px -20px 16px;
  padding: 14px 10px 12px;
  background: var(--azul);
  color: #fff;
  font-family: var(--pixel);
  font-size: .66rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--tinta);
  box-shadow: inset 0 -4px 0 #037ab0;
}
.panel-pix__txt { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.stats { margin: 18px 0 0; display: grid; gap: 8px; text-align: left; }
.stats div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 6px; border-top: 4px dotted rgba(34, 20, 12, .2); }
.stats dt { font-family: var(--pixel); font-size: .55rem; line-height: 1.8; text-transform: uppercase; color: #6a5a50; }
.stats dd { margin: 0; font-weight: 700; color: var(--rojo); }

.s-titulo { line-height: 1.5; text-transform: uppercase; text-shadow: 3px 3px 0 var(--tinta); }
.s-cuenta__caja { padding: 16px 0 12px; }
.s-cuenta__num { font-size: clamp(1.1rem, 5.6vw, 1.5rem); line-height: 1.3; }
.s-cuenta__lbl { margin-top: 6px; font-size: .48rem; letter-spacing: 0; color: #6a5a50; }
.s-cuenta__fin { font-size: 1.1rem; line-height: 1.5; color: var(--amarillo); text-shadow: 3px 3px 0 var(--tinta); }
.s-cuenta__fecha { color: #fff; font-weight: 600; text-shadow: 0 2px 0 rgba(34, 20, 12, .35); }
.s-evento { color: var(--tinta); }
.s-evento__icono { border-radius: 0; border: 0; background: var(--amarillo); color: var(--tinta); box-shadow: var(--borde-pix); }
.s-evento__titulo { font-weight: 400; font-size: .62rem; letter-spacing: 0; line-height: 1.6; }
.s-evento__hora { margin: 10px 0 8px; font-size: 1.3rem; color: var(--rojo); }
.s-evento__dir { color: #6a5a50; }
.s-vestimenta__tipo { max-width: 18em; font-size: .82rem; line-height: 1.7; color: var(--amarillo); text-shadow: 2px 2px 0 var(--tinta); }
.s-vestimenta__nota { color: #fff; }
.s-rsvp__saludo { font-size: .7rem; line-height: 1.7; color: var(--amarillo); text-shadow: 2px 2px 0 var(--tinta); }
.s-rsvp__texto { color: #fff; }
.s-rsvp__antes { color: #eef3ff; }

.s-btn { border-radius: 0; font-weight: 400; font-size: .56rem; letter-spacing: 0; line-height: 1.6; }
.s-btn--linea, .s-btn--mini { border: 0; background: #fff; color: var(--tinta); box-shadow: var(--borde-pix), 4px 6px 0 rgba(34, 20, 12, .25); }
.s-btn--lleno {
  min-height: 60px;
  background: var(--rojo);
  color: #fff;
  text-shadow: 2px 2px 0 #7a0f0b;
  box-shadow: inset -4px -4px 0 var(--rojo-osc), inset 4px 4px 0 #ff7a6e, var(--borde-pix), 6px 10px 0 rgba(34, 20, 12, .3);
}
.s-btn--lleno:active { transform: translateY(4px); }
.s-btn:focus-visible { outline: 4px dashed var(--amarillo); outline-offset: 8px; }

.rsvp-foto {
  --p: 6px;
  width: min(60%, 220px);
  margin: 40px auto -30px;
  padding: 8px;
  background: #fff;
  box-shadow: var(--borde-pix), var(--sombra-pix);
  transform: rotate(-3deg);
}
.rsvp-foto img { display: block; width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.rsvp-foto.aparece.visible { transform: rotate(-3deg); }

.suelo-pie {
  height: 96px;
  margin-top: 40px;
  background:
    var(--img-colina) 10% 100% / 160px 80px no-repeat,
    var(--img-colina-clara) 90% 100% / 112px 56px no-repeat;
  image-rendering: pixelated;
}
.s-pie {
  background:
    linear-gradient(180deg, #7fd36a 0 4px, var(--verde) 4px 14px, var(--verde-osc) 14px 18px, transparent 18px),
    var(--img-ladrillo) 0 18px / 48px 24px repeat;
  image-rendering: pixelated;
  color: #fff;
  padding-top: 52px;
}
.s-pie__t { font-family: var(--pixel); font-weight: 400; font-size: .5rem; letter-spacing: 0; color: #fff; text-shadow: 2px 2px 0 var(--tinta); }
.s-pie__n { margin-top: 12px; font-size: 1.6rem; color: var(--amarillo); text-shadow: 3px 3px 0 var(--tinta); }
.s-pie__credito { color: #fff; text-shadow: 1px 1px 0 var(--tinta); }

.btn-musica { background: var(--rojo); color: #fff; border-radius: 0; box-shadow: var(--borde-pix); }

@media (max-height: 460px) {
  .mando__pista, .juego__objetivo { display: none; }
  .pix-btn { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .juego { transition: opacity .4s ease; clip-path: none; }
  .juego.fuera { clip-path: none; opacity: 0; }
  .hud__moneda, .juego__objetivo, .pix-estrella, .hero__nubes i { animation: none !important; }
  .hero.listo .hero__eyebrow, .hero.listo .hero__escenario, .hero.listo .hero__nombre,
  .hero.listo .hero__cumple, .hero.listo .hero__fecha, .hero.listo .personaje { animation: aparece-suave .4s ease forwards; }
  @keyframes aparece-suave { from { opacity: 0; } to { opacity: 1; transform: none; } }
}
