@font-face {
  font-family: "Grandstander";
  src: url("fonts/grandstander-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1f1a2e;
  --paper: #fbf6ec;
  --sun: #ffc53d;
  --tomato: #ff6b4a;
  --sky: #4ba8ff;
  --mint: #3ccb9f;
  --night: #151a3d;
  --night-2: #222a66;
  --display: "Grandstander", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  --body: "Lexend", ui-rounded, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- Cielo ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 64%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 32%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 54% 92%, #fff 50%, transparent 51%),
    radial-gradient(60% 40% at 85% 0%, rgb(183 156 255 / 0.25), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgb(75 168 255 / 0.2), transparent 70%),
    var(--night);
  background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px, 300px 300px, 520px 520px, 400px 400px, 360px 360px, 100% 100%, 100% 100%, 100% 100%;
  animation: drift 120s linear infinite;
}
@keyframes drift {
  to {
    background-position: 340px 0, -420px 0, 380px 0, -460px 0, 300px 0, -520px 0, 400px 0, -360px 0, 0 0, 0 0, 0 0;
  }
}

/* ---------- Pantallas ---------- */

.screen {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 4.5rem 1rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  animation: enter 0.45s cubic-bezier(0.25, 1.3, 0.5, 1) both;
}
body[data-screen="title"] #title,
body[data-screen="story"] #story,
body[data-screen="map"] #map,
body[data-screen="level"] #level,
body[data-screen="album"] #album,
body[data-screen="win"] #win {
  display: flex;
}
#title,
#story,
#win {
  justify-content: center;
  padding-top: 2rem;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------- Barra ---------- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  pointer-events: none;
}
.bar > * {
  pointer-events: auto;
}
body[data-screen="title"] .bar,
body[data-screen="story"] .bar {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.chip b {
  background: var(--sun);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.85em;
}
.chip.icon {
  padding: 0.45rem 0.65rem;
}
.chip[hidden] {
  display: none;
}
.chip:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
@media (max-width: 420px) {
  .chip span {
    display: none;
  }
}

/* ---------- Piezas ---------- */

.btn {
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink), 0 0 0 3px rgb(255 255 255 / 0.12);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover {
  transform: translate(-1px, -2px);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn.sun {
  background: var(--sun);
}
.btn.ghost {
  background: var(--night-2);
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.4);
}
.btn.small {
  padding: 0.7rem 0.95rem;
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.btn:focus-visible,
.chip:focus-visible,
.choice:focus-visible,
.stop:focus-visible,
.card:focus-visible {
  outline: 3px dashed var(--sun);
  outline-offset: 4px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 11vw, 5rem);
  line-height: 0.9;
  text-align: center;
  color: var(--sun);
  text-shadow: 4px 4px 0 var(--ink), 0 0 30px rgb(255 197 61 / 0.35);
}
.title small {
  display: block;
  font-size: 0.4em;
  color: var(--paper);
  margin: 0.25rem 0;
}
.title.small {
  font-size: clamp(2.2rem, 9vw, 3.6rem);
}
.screen-title {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--sun);
}
.hint {
  margin: 0;
  text-align: center;
  color: rgb(251 246 236 / 0.75);
}
.link {
  background: none;
  border: 0;
  color: rgb(251 246 236 / 0.55);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 1rem;
}

.bubble {
  position: relative;
  margin: 0;
  max-width: 34rem;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 1rem 1.3rem;
  font-size: 1.3rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 0.45);
}

.lumi-slot {
  width: 7rem;
  flex-shrink: 0;
}
.lumi-slot.big {
  width: min(70vw, 18rem);
}
.lumi {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.float {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotate(-4deg);
  }
}
.bounce {
  animation: bounce 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
@keyframes bounce {
  40% {
    transform: translateY(-22px) rotate(8deg) scale(1.08);
  }
}

/* ---------- Mapa ---------- */

.trail {
  position: relative;
  width: 100%;
}
.trail-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stop {
  position: absolute;
  width: 6.5rem;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.stop .planet {
  width: 5.5rem;
  height: 5.5rem;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.stop:hover .planet {
  transform: scale(1.08) rotate(-4deg);
}
.stop .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  text-shadow: 2px 2px 0 var(--ink);
}
.stop .stars {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.stop.locked {
  cursor: default;
  opacity: 0.45;
  filter: grayscale(0.6);
}
.stop.locked:hover .planet {
  transform: none;
}
.stop.current .planet {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px rgb(255 197 61 / 0.8));
  }
}
.stop .lumi-mini {
  position: absolute;
  width: 4.5rem;
  left: -3.6rem;
  top: -1.2rem;
  pointer-events: none;
  animation: float 3s ease-in-out infinite;
}
.stop.deco {
  cursor: default;
}

/* ---------- Nivel ---------- */

.step {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  color: var(--sun);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.talk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 40rem;
}
.talk .bubble {
  flex: 1;
  text-align: left;
  padding-right: 3.3rem;
  min-height: 6.5rem;
}
.talk .bubble::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  translate: 0 -50%;
  border: 12px solid transparent;
  border-right: 14px solid var(--ink);
  border-left: 0;
}
.clue-label {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 0.85rem;
  color: #8a5a00;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.clue {
  margin: 0;
  font-weight: 600;
}
.clue.fresh {
  animation: enter 0.4s ease both;
}
.speak {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--sun);
  cursor: pointer;
  font-size: 1.05rem;
}
.dots {
  display: flex;
  gap: 0.45rem;
}
.dots span {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--paper);
  opacity: 0.5;
}
.dots span.on {
  background: var(--sun);
  border-color: var(--sun);
  opacity: 1;
}
.ask {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: 1.7rem;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 34rem;
}
@media (min-width: 680px) {
  .choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 44rem;
  }
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.7rem 0.4rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--night-2);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.45), inset 0 0 0 2px rgb(255 255 255 / 0.12);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.choice:hover {
  transform: translateY(-4px) rotate(-1.5deg);
}
.choice .planet {
  width: 100%;
  max-width: 6.5rem;
  aspect-ratio: 1;
}
.choice .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
}
.choice.wrong {
  opacity: 0.35;
  cursor: default;
  animation: shake 0.45s ease;
  transform: none;
}
.choice.wrong .name::after {
  content: " ✗";
  color: var(--tomato);
}
.choice.right {
  background: var(--mint);
  color: var(--ink);
  animation: bounce 0.6s ease;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

/* ---------- Álbum ---------- */

.album {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 44rem;
}
@media (min-width: 620px) {
  .album {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  aspect-ratio: 3 / 4;
  padding: 0.8rem 0.5rem;
  border-radius: 18px;
  border: 3px solid var(--ink);
  background: linear-gradient(160deg, #fff6dc, #ffe1a1);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgb(0 0 0 / 0.45);
  cursor: pointer;
}
.card:nth-child(odd) {
  rotate: -1.5deg;
}
.card:nth-child(even) {
  rotate: 1.2deg;
}
.card .num {
  position: absolute;
  top: 0.4rem;
  left: 0.6rem;
  font-family: var(--display);
  font-size: 0.9rem;
  opacity: 0.6;
}
.card .planet {
  width: 85%;
  margin-top: auto;
}
.card .name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
}
.card .stars {
  margin-bottom: auto;
  font-size: 0.9rem;
}
.card.empty {
  background: transparent;
  border: 3px dashed rgb(251 246 236 / 0.35);
  box-shadow: none;
  color: rgb(251 246 236 / 0.5);
  cursor: default;
  justify-content: center;
}
.card.empty .q {
  font-family: var(--display);
  font-size: 3rem;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(10 12 32 / 0.72);
  backdrop-filter: blur(3px);
}
.modal[hidden] {
  display: none;
}
.modal-card {
  width: min(100%, 24rem);
  max-height: 92dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(160deg, #fff6dc, #ffd98a);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: center;
  animation: reveal 0.7s cubic-bezier(0.25, 1.4, 0.5, 1) both;
}
@keyframes reveal {
  from {
    transform: rotateY(90deg) scale(0.6);
    opacity: 0;
  }
}
.modal-card .tag {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  background: var(--tomato);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  rotate: -3deg;
}
.modal-card .planet {
  width: 9rem;
  animation: spin-in 0.9s 0.15s cubic-bezier(0.25, 1.4, 0.5, 1) both;
}
@keyframes spin-in {
  from {
    transform: rotate(-120deg) scale(0.3);
  }
}
.modal-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
}
.modal-card .stars {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}
.modal-card .stars .off {
  filter: grayscale(1);
  opacity: 0.3;
}
.modal-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.modal-card li {
  background: rgb(255 255 255 / 0.6);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  line-height: 1.35;
}
.modal-card li::before {
  content: "✨ ";
}
.modal-card .btn {
  margin-top: 0.4rem;
}
.modal-card .btn.ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Final ---------- */

.home-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, rgb(255 197 61 / 0.25), transparent 70%);
}

/* ---------- Confetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 12px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  animation: burst 1.4s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
.confetti i.star {
  width: auto;
  height: auto;
  border: 0;
  font-size: 1.4rem;
  font-style: normal;
}
@keyframes burst {
  to {
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
    opacity: 0;
  }
}

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

.off {
  filter: grayscale(1);
  opacity: 0.3;
}

/* ================= Mapa vivo ================= */

/* Parallax: tres capas de estrellas que se corren a distinto ritmo con el scroll (--sy lo pone fx.js). */
.parallax {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body[data-screen="map"] .parallax {
  display: block;
}
.parallax i {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.parallax .far {
  background-image: radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 90px, #c8d4ff 50%, transparent 51%);
  background-size: 170px 150px;
  background-position: 0 calc(var(--sy, 0) * -0.08px);
  opacity: 0.6;
}
.parallax .mid {
  background-image: radial-gradient(1.6px 1.6px at 60px 40px, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 200px 160px, #ffe9b0 50%, transparent 51%);
  background-size: 260px 230px;
  background-position: 0 calc(var(--sy, 0) * -0.22px);
}
.parallax .near {
  background-image: radial-gradient(2.4px 2.4px at 90px 70px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 300px 260px, #bfe8ff 50%, transparent 51%);
  background-size: 380px 340px;
  background-position: 0 calc(var(--sy, 0) * -0.45px);
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle {
  50% {
    opacity: 0.45;
  }
}

/* El cielo cambia con la distancia al Sol: cálido arriba, frío y oscuro abajo (todo el ancho de la pantalla). */
#map {
  position: relative;
}
#map::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(255 150 60 / 0.32) 0%,
    rgb(255 107 74 / 0.14) 12%,
    rgb(183 156 255 / 0.06) 30%,
    transparent 50%,
    rgb(40 80 200 / 0.12) 75%,
    rgb(4 6 24 / 0.55) 100%
  );
}

/* Barra de progreso del viaje */
.journey {
  width: 100%;
  max-width: 26rem;
  text-align: center;
}
.journey p {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
}
.journey-track {
  position: relative;
  height: 1.1rem;
  margin-right: 1.6rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--night-2);
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.4);
}
.journey-fill {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tomato), var(--sun));
  transition: width 1.2s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.journey-lumi {
  position: absolute;
  right: -0.8rem;
  top: 50%;
  translate: 0 -55%;
  font-size: 1.3rem;
}
.journey-home {
  position: absolute;
  right: -1.9rem;
  top: 50%;
  translate: 0 -55%;
  font-size: 1.4rem;
}

/* Planetas resueltos: flotan suave, cada uno a su ritmo */
.stop.done .planet,
.stop.home .planet {
  animation: bob 4.5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes bob {
  50% {
    transform: translateY(-6px) rotate(-3deg);
  }
}
.stop.done:hover .planet {
  animation-play-state: paused;
}

/* Sol con rayos girando */
.stop.sun .rays {
  transform-origin: 60px 60px;
  animation: spin 24s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* La Luna dando vueltas a la Tierra */
.orbit {
  position: absolute;
  left: 50%;
  top: 2.75rem;
  width: 0;
  height: 0;
  animation: spin 7s linear infinite;
  pointer-events: none;
}
.moon {
  position: absolute;
  left: 3.1rem;
  top: -0.55rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #e3ded3 19%);
  border: 2.5px solid var(--ink);
}

/* La casa de Lumi brilla más a medida que nos acercamos */
.stop.home .planet {
  filter: drop-shadow(0 0 calc(4px + var(--near, 0) * 26px) rgb(255 197 61 / calc(0.25 + var(--near, 0) * 0.6)));
}
.stop.home.locked {
  opacity: calc(0.45 + var(--near, 0) * 0.45);
  filter: none;
}
.twinkle {
  animation: twinkle 2.4s ease-in-out infinite;
}

/* Cinturón de asteroides */
.belt {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 4.2rem;
  translate: -50% -50%;
  overflow: hidden;
  pointer-events: none;
}
.belt-strip {
  display: flex;
  width: 200%;
  height: 100%;
  animation: belt 70s linear infinite;
}
.belt-half {
  position: relative;
  width: 50%;
  height: 100%;
}
@keyframes belt {
  to {
    transform: translateX(-50%);
  }
}
.rock {
  position: absolute;
  height: auto;
  animation: spin 9s linear infinite;
}
.rock:nth-child(even) {
  animation-direction: reverse;
}
.belt-label {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgb(21 26 61 / 0.85);
  border: 2px solid rgb(251 246 236 / 0.3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgb(251 246 236 / 0.85);
}

/* Lumi en el mapa: se puede tocar y viaja entre paradas */
.map-lumi {
  position: absolute;
  z-index: 3;
  width: 4.6rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  translate: -150% -112%;
  transition: translate 0.3s ease;
}
/* Si la parada está pegada al borde izquierdo, Lumi se pone del otro lado. */
.map-lumi.right {
  translate: 50% -112%;
}
.map-lumi .lumi {
  animation: float 3s ease-in-out infinite;
}
.map-lumi.flying .lumi {
  animation: none;
  transform: rotate(14deg) scale(1.1);
}
.map-lumi.poke .lumi {
  animation: poke 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
@keyframes poke {
  30% {
    transform: scale(1.25, 0.8);
  }
  60% {
    transform: translateY(-18px) rotate(-12deg) scale(0.95, 1.1);
  }
}
.map-lumi:focus-visible {
  outline: 3px dashed var(--sun);
  outline-offset: 2px;
}

/* ================= Cosas que vuelan ================= */

.flyers {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
.flyer {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
.flyer-art {
  display: block;
}
.flyer svg {
  display: block;
  overflow: visible;
}
.flyer-ufo .ufo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 14px rgb(183 156 255 / 0.6));
}
.flyer.tapped .flyer-art {
  animation: poke 0.6s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.flame {
  transform-origin: 22px 32px;
  animation: flame 0.15s ease-in-out infinite alternate;
}
@keyframes flame {
  to {
    transform: scaleX(1.35);
  }
}
.sat-spin {
  transform-origin: 55px 35px;
  animation: spin 12s linear infinite;
}
.blink {
  animation: blink 1.2s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.wave {
  transform-origin: 78px 34px;
  animation: wave 0.8s ease-in-out infinite alternate;
}
.flyer-astronaut .wave {
  transform-origin: 62px 50px;
}
@keyframes wave {
  to {
    transform: rotate(-22deg);
  }
}
.spark {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  rotate: 45deg;
  pointer-events: none;
  box-shadow: 0 0 6px rgb(255 243 176 / 0.9);
}

/* ================= Figurita secreta ================= */

.modal-card .ufo {
  width: 10rem;
  animation: spin-in 0.9s 0.15s cubic-bezier(0.25, 1.4, 0.5, 1) both;
}
.card.secret {
  background: linear-gradient(135deg, #d6c7ff, #bfeeff 45%, #c9ffe9 70%, #ffe1a1);
  background-size: 200% 200%;
  animation: holo 4s ease-in-out infinite alternate;
}
.card.secret .ufo {
  width: 92%;
  margin-top: auto;
}
.card.secret .name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.05;
}
@keyframes holo {
  to {
    background-position: 100% 100%;
  }
}
.card.secret-slot small {
  font-size: 0.75rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .flyers {
    display: none;
  }
}
