.panel-overlay {
  position: absolute;
  inset: auto 3% 3% 3%;
  z-index: 5;
  background: rgba(247, 243, 235, 0.92);
  border-radius: 1rem;
  padding: 0.85rem;
  max-height: 55%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.scene-hint {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(247, 243, 235, 0.9);
  border: 1px solid rgba(47, 93, 74, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Se?al de misi?n: no tapa el escenario */
.mission-banner {
  position: absolute;
  top: 2.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(92%, 420px);
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.88);
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.mission-banner-zone {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
}

.mission-banner-label {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.62);
}

.mission-banner-question {
  margin-top: 0.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.25;
}

/* N1-S1: tarjeta a la derecha para no tapar el nido (centro-izquierda) */
.intro-n1-s1 .mission-banner--corner {
  top: 2%;
  left: auto;
  right: 2%;
  transform: none;
  width: min(42%, 280px);
  text-align: left;
  padding: 0.4rem 0.6rem;
}

.intro-n1-s1 .mission-banner--corner .mission-banner-zone {
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
}

.intro-n1-s1 .mission-banner--corner .mission-banner-question {
  font-size: 0.78rem;
}

/* N1-S1 ? Guardiana claramente m?s grande que Lumi.
   Compensa el margen transparente distinto de cada PNG. */
.intro-n1-s1 .character-layer.is-n1s1-lumi {
  top: 40%;
  bottom: 6%;
  max-width: 32%;
  z-index: 4;
}

.intro-n1-s1 .character-layer.is-n1s1-guardiana {
  top: 22%;
  bottom: 4%;
  max-width: 46%;
  z-index: 4;
}

@media (min-height: 501px) and (max-height: 700px) and (orientation: landscape) {
  .intro-n1-s1 .character-layer.is-n1s1-lumi {
    top: 42%;
    max-width: 26%;
  }
  .intro-n1-s1 .character-layer.is-n1s1-guardiana {
    top: 26%;
    max-width: 38%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro-n1-s1 .character-layer.is-n1s1-lumi {
    top: 46%;
    max-width: 22%;
  }
  .intro-n1-s1 .character-layer.is-n1s1-guardiana {
    top: 30%;
    max-width: 34%;
  }
}

/* N2-S1 ? llegada al r?o: zonas claras sin solapes */
.intro-n2-s1 .character-layer.is-breathe img,
.intro-n2-s1 .character-layer.is-talk img,
.intro-n2-s1 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n2-s1 .character-layer.is-n2s1-lumi {
  left: 2%;
  right: auto;
  top: auto;
  bottom: 16%;
  width: min(18vw, 150px);
  max-width: 160px;
  height: min(36vh, 230px);
  z-index: 5;
}

/* Cuidador al lado de Lumi, claramente m?s grande */
.intro-n2-s1 .character-layer.is-n2s1-cuidador {
  left: 16%;
  right: auto;
  top: auto;
  bottom: 14%;
  width: min(36vw, 340px);
  max-width: 360px;
  height: min(62vh, 420px);
  z-index: 4;
}

.intro-n2-s1 .character-layer.is-n2s1-lumi img,
.intro-n2-s1 .character-layer.is-n2s1-cuidador img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n2-s1 .n2s1-mission.mission-banner--corner {
  top: 2%;
  left: auto;
  right: 2%;
  transform: none;
  width: min(40%, 300px);
  text-align: left;
  padding: 0.45rem 0.65rem;
  z-index: 6;
  pointer-events: none;
}

.n2s1-workspace {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 1.5%;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  gap: 0.55rem;
  align-items: end;
  pointer-events: none;
}

.n2s1-feedback-zone,
.n2s1-action-bar {
  pointer-events: auto;
}

.n2s1-feedback-zone {
  padding: 0.5rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(58, 111, 143, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  min-height: 3.4rem;
}

.n2s1-feedback-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(42, 36, 28, 0.6);
}

.n2s1-feedback-text {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.n2s1-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.96);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.n2s1-action-bar .btn {
  min-height: 40px;
  white-space: nowrap;
}

/* El di?logo global queda libre de botones de misi?n en esta escena */
.intro-n2-s1 ~ #dialog-panel .dialog-actions:empty,
body:has(.intro-n2-s1) #dialog-panel .dialog-actions:empty {
  display: none;
}

@media (max-width: 767.98px) {
  .intro-n2-s1 .bg-cover {
    object-fit: fill;
    object-position: center;
  }

  .intro-n2-s1 .n2s1-mission.mission-banner--corner {
    width: min(92%, 320px);
    right: 2%;
    left: 2%;
  }
  .n2s1-workspace {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    bottom: 1%;
  }
  .n2s1-action-bar {
    justify-content: stretch;
  }
  .n2s1-action-bar .btn {
    flex: 1 1 auto;
  }
  .intro-n2-s1 .character-layer.is-n2s1-lumi {
    left: 1%;
    right: auto;
    bottom: 30%;
    width: min(20vw, 90px);
    max-width: 100px;
    height: min(24vh, 130px);
  }
  .intro-n2-s1 .character-layer.is-n2s1-cuidador {
    left: 18%;
    right: auto;
    bottom: 28%;
    width: min(42vw, 190px);
    max-width: 200px;
    height: min(40vh, 220px);
  }
}

/* N3-S1 ? llegada a la Plaza de la Memoria Fragmentada */
.intro-n3-s1 .character-layer.is-breathe img,
.intro-n3-s1 .character-layer.is-talk img,
.intro-n3-s1 .character-layer.is-soft-breathe img {
  animation: none !important;
}

/* N3 Plaza ? Lumi mismo tama?o en todas las escenas */
.intro-n3-s1 .character-layer.is-plaza-lumi,
.intro-n3-s2 .character-layer.is-plaza-lumi,
.intro-n3-s3 .character-layer.is-plaza-lumi,
.intro-n3-s8 .character-layer.is-plaza-lumi {
  top: auto;
  width: min(18vw, 150px);
  max-width: 160px;
  height: min(34vh, 220px);
  z-index: 6;
  align-items: flex-end;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.intro-n3-s1 .character-layer.is-plaza-lumi img,
.intro-n3-s2 .character-layer.is-plaza-lumi img,
.intro-n3-s3 .character-layer.is-plaza-lumi img,
.intro-n3-s5 .character-layer.is-plaza-lumi img,
.intro-n3-s8 .character-layer.is-plaza-lumi img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n3-s1 .character-layer.is-plaza-lumi.is-conversing img,
.intro-n3-s2 .character-layer.is-plaza-lumi.is-conversing img,
.intro-n3-s3 .character-layer.is-plaza-lumi.is-conversing img,
.intro-n3-s5 .character-layer.is-plaza-lumi.is-conversing img,
.intro-n3-s8 .character-layer.is-plaza-lumi.is-conversing img {
  animation: none !important;
}

.intro-n3-s1 .character-layer.is-plaza-lumi {
  left: auto;
  /* Carril derecho con la Abuela; por encima de la tarjeta */
  right: 11%;
  bottom: 4%;
  z-index: 8;
  max-width: 16% !important;
  pointer-events: none;
}

.intro-n3-s2 .character-layer.is-plaza-lumi {
  left: 1.5%;
  right: auto;
  bottom: 2%;
  z-index: 4;
}

.n3s2-photos {
  position: absolute;
  left: 20%;
  right: 8%;
  top: 12%;
  bottom: 34%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2%;
  pointer-events: none;
}

.n3s2-photo {
  pointer-events: auto;
  flex: 1 1 0;
  max-width: 32%;
  aspect-ratio: 4 / 3;
  padding: 0.28rem;
  border: 0;
  border-radius: 0.7rem;
  background: #fffaf3;
  box-shadow: 0 8px 16px rgba(42, 36, 28, 0.28);
  cursor: pointer;
  overflow: hidden;
}

.n3s2-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.45rem;
  display: block;
}

.n3s2-photo.is-done {
  outline: 3px solid #2f5d4a;
  outline-offset: 2px;
}

.n3s2-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3%;
  background: rgba(42, 36, 28, 0.45);
}

.n3s2-modal[hidden] {
  display: none;
}

.n3s2-modal-card {
  width: min(92%, 440px);
  max-height: 100%;
  overflow: auto;
  background: rgba(247, 243, 235, 0.98);
  border-radius: 1rem;
  padding: 0.55rem 0.65rem 0.7rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.n3s2-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.n3s2-modal-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.n3s2-modal-card img {
  width: 100%;
  max-height: min(28vh, 180px);
  object-fit: cover;
  border-radius: 0.55rem;
  display: block;
}

.n3s2-modal-q {
  margin: 0.4rem 0 0.15rem;
  font-weight: 700;
}

.n3s2-choice {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  text-align: left;
  line-height: 1.25;
}

.n3s2-modal-note {
  margin: 0.4rem 0 0;
  font-weight: 700;
  color: #8a3d2f;
}

/* N3-S7 ? hip?tesis: personajes detr?s del panel central */
.intro-n3-s7 .panel-center {
  z-index: 10;
}

.intro-n3-s7 .character-layer.is-plaza-lumi {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: min(16vw, 120px);
  max-width: 130px;
  height: min(28vh, 150px);
  z-index: 2;
  opacity: 0.95;
}

.intro-n3-s7 .character-layer[data-char="maestro_rastro"] {
  left: 1%;
  right: auto;
  top: auto;
  bottom: 2%;
  width: min(18vw, 130px);
  max-width: 140px;
  height: min(32vh, 180px);
  z-index: 2;
  opacity: 0.92;
}

.intro-n3-s7 .character-layer.is-plaza-lumi img,
.intro-n3-s7 .character-layer[data-char="maestro_rastro"] img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n3-s7 .character-layer.is-plaza-lumi.is-conversing img {
  animation: none !important;
}

/* N3-S5 ? comparar memoria: personajes detr?s del panel central */
.intro-n3-s5 .character-layer.is-plaza-lumi {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: min(16vw, 120px);
  max-width: 130px;
  height: min(28vh, 150px);
  z-index: 2;
  opacity: 0.95;
}

.intro-n3-s5 .character-layer[data-char="abuela_memoria"] {
  left: 1%;
  right: auto;
  top: auto;
  bottom: 2%;
  width: min(18vw, 130px);
  max-width: 140px;
  height: min(32vh, 180px);
  z-index: 2;
  opacity: 0.92;
}

.intro-n3-s3 .character-layer.is-plaza-lumi {
  left: auto;
  /* Carril derecho con la Abuela; fuera del panel de preguntas */
  right: 12%;
  bottom: 4%;
  z-index: 8;
  max-width: 16% !important;
  pointer-events: none;
}

.intro-n3-s6 .character-layer.is-n3dec-lumi {
  /* Justo a la derecha del panel, sin invadir opciones ni pie de di?logo */
  left: calc(min(40%, 380px) + 1.25%);
  right: auto;
  top: auto;
  bottom: 4%;
  width: min(14vw, 110px);
  max-width: 120px;
  height: min(26vh, 160px);
  z-index: 4;
  align-items: flex-end;
}

.intro-n3-s6 .character-layer.is-n3dec-lumi.is-conversing img,
.intro-n3-s6 .character-layer.is-n3dec-lumi img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  animation: none !important;
}

.intro-n3-s8 .character-layer.is-plaza-lumi {
  left: 1%;
  right: auto;
  bottom: 2%;
}

.intro-n3-s1 .character-layer.is-n3s1-abuela {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 4%;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
}

.intro-n3-s1 .character-layer.is-n3s1-abuela img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n3-s1 .n3s1-mission.mission-banner--corner {
  top: 2%;
  left: 2%;
  right: auto;
  transform: none;
  width: min(42%, 320px);
  text-align: left;
  padding: 0.45rem 0.65rem;
  z-index: 7;
  pointer-events: none;
}

.n3s1-workspace {
  position: absolute;
  left: 2%;
  /* Mitad izquierda: el carril derecho queda para Lumi + Abuela */
  right: 50%;
  bottom: 2%;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 360px;
  pointer-events: none;
}

.n3s1-action-bar {
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(138, 90, 60, 0.22);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.n3s1-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
}

.n3s1-action-bar .btn {
  flex: 1 1 auto;
  min-width: 7rem;
}

.intro-n3-s1 ~ #dialog-panel .dialog-actions:empty,
body:has(.intro-n3-s1) #dialog-panel .dialog-actions:empty {
  display: none;
}

.n3s1-plaza-stage {
  display: none;
}

.n3s1-plaza-ground {
  position: absolute;
  left: 0;
  right: 28%;
  bottom: 0;
  height: 42%;
  background:
    radial-gradient(ellipse at 38% 30%, rgba(212, 180, 120, 0.28), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(90, 60, 40, 0.22) 45%, rgba(70, 48, 32, 0.45) 100%);
}

.n3s1-monument {
  position: absolute;
  left: 28%;
  bottom: 28%;
  width: 7.5rem;
  height: 11rem;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.n3s1-monument-base {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5.2rem;
  height: 1.2rem;
  transform: translateX(-50%);
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #9a7a58, #6e5338);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.n3s1-monument-column {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: 2.2rem;
  height: 7.2rem;
  transform: translateX(-50%);
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent 35%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, #c4a878, #8d6d48);
}

.n3s1-monument-top {
  position: absolute;
  left: 50%;
  bottom: 8rem;
  width: 4.4rem;
  height: 2.4rem;
  transform: translateX(-50%);
  border-radius: 50% 50% 0.4rem 0.4rem;
  background: radial-gradient(circle at 50% 35%, #e8d5a8, #a88458 70%);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.n3s1-bench {
  position: absolute;
  width: 5.5rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  background: linear-gradient(180deg, #8b623f, #5c3f28);
  box-shadow:
    0 0.55rem 0 -0.15rem #4a3220,
    0 8px 10px rgba(0, 0, 0, 0.2);
}

.n3s1-bench::before,
.n3s1-bench::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  width: 0.35rem;
  height: 0.7rem;
  background: #4a3220;
  border-radius: 0.1rem;
}

.n3s1-bench::before { left: 0.55rem; }
.n3s1-bench::after { right: 0.55rem; }

.n3s1-bench--left {
  left: 8%;
  bottom: 24%;
  transform: rotate(-4deg);
}

.n3s1-bench--mid {
  left: 42%;
  bottom: 22%;
  transform: rotate(3deg);
  width: 4.8rem;
}

.n3s1-photo {
  position: absolute;
  left: 8%;
  top: 18%;
  width: min(28%, 220px);
  height: auto;
  opacity: 0.58;
  mix-blend-mode: multiply;
  transform: rotate(-6deg);
  filter: sepia(0.35) contrast(0.95);
  animation: n3s1PhotoDrift 6s ease-in-out infinite;
}

.n3s1-plaque {
  position: absolute;
  left: 36%;
  bottom: 34%;
  width: min(14%, 110px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transform: rotate(4deg);
}

.n3s1-song {
  position: absolute;
  width: min(12%, 90px);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

.n3s1-song--a {
  left: 48%;
  top: 16%;
  animation: n3s1FloatA 4.5s ease-in-out infinite;
}

.n3s1-note {
  position: absolute;
  color: rgba(138, 90, 60, 0.72);
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(255, 248, 230, 0.65);
  animation: n3s1NoteFloat 5s ease-in-out infinite;
}

.n3s1-note--1 { left: 18%; top: 42%; animation-delay: 0s; }
.n3s1-note--2 { left: 52%; top: 28%; animation-delay: 0.7s; font-size: clamp(0.9rem, 2vw, 1.3rem); }
.n3s1-note--3 { left: 12%; top: 58%; animation-delay: 1.3s; }
.n3s1-note--4 { left: 44%; top: 48%; animation-delay: 1.9s; opacity: 0.65; }

@keyframes n3s1PhotoDrift {
  0%, 100% { transform: rotate(-6deg) translateY(0); opacity: 0.52; }
  50% { transform: rotate(-4deg) translateY(-6px); opacity: 0.68; }
}

@keyframes n3s1FloatA {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes n3s1NoteFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.55; }
  50% { transform: translateY(-14px) scale(1.08); opacity: 0.9; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .n3s1-workspace {
    right: 52%;
    max-width: 320px;
  }
  .intro-n3-s1 .character-layer.is-plaza-lumi {
    right: 12%;
    bottom: 3%;
  }
  .intro-n3-s1 .character-layer.is-n3s1-abuela {
    right: 1%;
    bottom: 3%;
  }
}

@media (max-width: 767.98px) {
  /* Pregunta arriba; idea debajo: sin solaparse */
  .intro-n3-s1 .n3s1-mission.mission-banner--corner {
    top: 2%;
    left: 2%;
    right: 2%;
    width: auto;
    max-width: none;
    padding: 0.35rem 0.5rem;
    z-index: 8;
  }
  .intro-n3-s1 .n3s1-mission .mission-banner-zone,
  .intro-n3-s1 .n3s1-mission .mission-banner-label {
    font-size: 0.62rem;
  }
  .intro-n3-s1 .n3s1-mission .mission-banner-question {
    font-size: 0.72rem;
    line-height: 1.25;
  }
  .n3s1-workspace {
    left: 2%;
    right: auto;
    top: 22%;
    bottom: auto;
    width: min(64%, 270px);
    max-width: 270px;
    max-height: 50%;
    overflow: auto;
    gap: 0.3rem;
  }
  .intro-n3-s1 .n3s1-workspace .mision-hypo-panel {
    margin: 0;
    padding: 0.35rem 0.45rem;
  }
  .intro-n3-s1 .mision-hypo-title {
    font-size: 0.8rem;
  }
  .intro-n3-s1 .mision-hypo-panel .small {
    font-size: 0.62rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
  }
  .intro-n3-s1 .mision-hypo-options {
    gap: 0.18rem;
    max-height: none;
  }
  .intro-n3-s1 .mision-hypo-option {
    padding: 0.15rem 0.3rem;
    font-size: 0.66rem;
    line-height: 1.2;
    gap: 0.25rem;
  }
  .intro-n3-s1 .mision-hypo-option input {
    width: 0.75rem;
    height: 0.75rem;
  }
  .intro-n3-s1 .n3s1-action-bar {
    padding: 0.3rem;
    gap: 0.3rem;
  }
  .intro-n3-s1 .n3s1-action-bar .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }
  /* Abuela a la derecha; Lumi abajo a la izquierda */
  .intro-n3-s1 .character-layer.is-n3s1-abuela {
    right: 1%;
    bottom: 2%;
    max-width: 36% !important;
  }
  .intro-n3-s1 .character-layer.is-plaza-lumi {
    left: 3%;
    right: auto;
    bottom: 2%;
    z-index: 9;
    max-width: 18% !important;
  }
  .n3s1-monument {
    left: 26%;
    bottom: 36%;
    width: 5rem;
    height: 7.5rem;
  }
  .n3s1-photo {
    width: min(34%, 150px);
    top: 14%;
  }
  .n3s1-plaque {
    width: min(18%, 78px);
    bottom: 40%;
  }
  .n3s1-bench--mid {
    display: none;
  }
}

/* N1-S1 / N1-S2: sin rebote; el habla va por frames del sprite */
.intro-n1-s1 .character-layer.is-breathe img,
.intro-n1-s1 .character-layer.is-breathe .sprite-buf,
.intro-n1-s1 .character-layer.is-talk img,
.intro-n1-s1 .character-layer.is-soft-breathe img,
.intro-n1-s1 .character-layer.is-soft-breathe .sprite-buf,
.intro-n1-s2 .character-layer.is-breathe img,
.intro-n1-s2 .character-layer.is-breathe .sprite-buf,
.intro-n1-s2 .character-layer.is-talk img,
.intro-n1-s2 .character-layer.is-soft-breathe img,
.intro-n1-s2 .character-layer.is-soft-breathe .sprite-buf,
.intro-n1-s2 .character-layer.is-pop img,
.intro-n1-s2 .character-layer.is-shake img {
  animation: none !important;
}

/* N1-S2 en PC: pistas pequeñas y menos inmediatas para favorecer la exploración. */
@media (min-width: 992px) {
  .intro-n1-s2 .hotspot[data-id="E-BOS-03"] {
    left: 62% !important;
    top: 55% !important;
    width: 4cqi;
    height: 4cqi;
  }

  .intro-n1-s2 .hotspot[data-id="E-BOS-05"] {
    left: 77% !important;
    top: 69% !important;
    width: 3.5cqi;
    height: 3.5cqi;
  }

  .intro-n1-s2 .hotspot[data-id="E-BOS-06"] {
    width: 3.4cqi;
    height: 3.4cqi;
  }
}

/* Móvil y tablet vertical: el cover recorta los lados; la pluma en 20% queda fuera. */
@media (max-width: 991.98px) {
  .intro-n1-s2 .hotspot[data-id="E-BOS-01"] {
    left: 38% !important;
    top: 66% !important;
    width: 5.2cqi;
    height: 5.2cqi;
    min-width: 28px;
    min-height: 28px;
  }

  /* N2-S2: señal/bolsa/flor salen del recorte en portrait. */
  .intro-n2-s2 .hotspot[data-id="E-RIO-01"] {
    left: 38% !important;
    top: 61% !important;
  }

  .intro-n2-s2 .hotspot[data-id="E-RIO-02"] {
    left: 58% !important;
    top: 76% !important;
  }

  .intro-n2-s2 .hotspot[data-id="E-RIO-03"] {
    left: 50% !important;
    top: 74% !important;
  }

  .intro-n2-s2 .hotspot[data-id="E-RIO-05"] {
    left: 46% !important;
    top: 54% !important;
  }

  .intro-n2-s2 .hotspot[data-id="E-RIO-06"] {
    left: 60% !important;
    top: 48% !important;
  }
}

.panel-center {
  position: absolute;
  inset: 4% 4%;
  z-index: 5;
  background: rgba(247, 243, 235, 0.96);
  border-radius: 1rem;
  padding: 0.85rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.panel-center > .btn#btn-confirm,
.panel-center > #btn-confirm,
.panel-center > #btn-present,
.panel-center > .btn-row {
  /* Flujo normal + scroll del panel: el pie no tapa texto ni evidencias */
  margin-top: 0.65rem;
  flex-shrink: 0;
  position: static;
  padding-top: 0;
  box-shadow: none;
}

.panel-center > .btn#btn-confirm:disabled,
.panel-center > #btn-confirm:disabled,
.panel-center > #btn-present:disabled {
  opacity: 1;
  color: #fff;
  background-color: var(--forest);
  border-color: var(--forest);
  filter: grayscale(0.15) brightness(0.92);
}

.panel-center > .small,
.panel-center > p {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* N2-S5: la entrevista no tapa el río */
.intro-n2-s5 .n2s5-card {
  inset: auto;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 440px);
  height: auto;
  max-height: calc(100% - 6%);
  padding: 0.45rem 0.6rem;
  gap: 0.28rem;
}

.intro-n2-s5 .n2s5-card .h5 {
  margin: 0;
  font-size: 1.05rem;
}

.intro-n2-s5 .n2s5-card .card-choice {
  display: block;
  height: auto;
  min-height: 0;
  padding: 0.28rem 0.55rem;
  line-height: 1.25;
  font-size: 0.92rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.choice-grid--stack {
  grid-template-columns: 1fr;
  /* Altura natural: evita que A/B/C se compriman y solapen el texto */
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

.choice-grid .card-choice {
  min-height: 100%;
}

.choice-grid--stack .card-choice {
  height: auto;
  min-height: 0;
  align-self: stretch;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  flex-shrink: 0;
}

.hypo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: auto;
  align-content: start;
  overflow: visible;
}

.hypo-grid .hypo-chip {
  margin: 0 !important;
  white-space: normal;
  text-align: left;
  max-width: 100%;
  border-radius: 999px;
  height: auto;
  align-self: flex-start;
}

.title-hero {
  position: absolute;
  top: 8%;
  left: 5%;
  right: 5%;
  z-index: 5;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.title-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 0.25rem;
}

.loading-card {
  width: min(460px, 100%);
  background: var(--panel);
  border-radius: 22px;
  padding: 1.5rem;
  text-align: center;
  border: 3px solid rgba(43, 33, 24, 0.12);
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.12);
}

.object-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.65rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  margin-bottom: 0 !important;
}

.object-card {
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.55rem;
  text-align: center;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.object-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-inline: auto;
  flex-shrink: 0;
}

.object-card .fw-bold {
  font-size: 0.82rem;
  line-height: 1.2;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.object-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.object-card-actions .btn {
  width: 100%;
  min-height: 34px;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
  border-radius: 999px;
}

.object-card.is-saved { border-color: var(--leaf); }
.object-card.is-discarded { opacity: 0.5; }
.object-card.is-selected { border-color: var(--amber); }

.match-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0 !important;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.match-board > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.match-item {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-align: left;
  width: 100%;
  margin-bottom: 0 !important;
}

.match-item img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.match-item.is-picked { border-color: var(--amber); }
.match-item.is-matched { border-color: var(--leaf); opacity: 0.85; }

.sort-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0 !important;
}

.sort-item {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: grab;
  border: 1px solid rgba(0,0,0,0.08);
}

.sort-item .handle {
  color: var(--forest);
  font-weight: 800;
}

.final-card {
  background: rgba(247, 243, 235, 0.96);
  border-radius: 1rem;
  padding: 1rem;
  max-height: 100%;
  overflow: auto;
}

.present-preview {
  background: #fff;
  border-radius: 0.85rem;
  padding: 1rem;
  border: 2px dashed rgba(47, 93, 74, 0.35);
}

/* Tablet */
@media (max-width: 991.98px) {
  .panel-center {
    inset: 3% 3%;
    padding: 0.75rem;
  }
  .object-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-grid--stack {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile portrait */
@media (max-width: 575.98px) {
  .panel-center {
    inset: 1.5%;
    padding: 0.5rem;
    gap: 0.4rem;
    border-radius: 0.75rem;
  }
  .panel-center > .small,
  .panel-center > p {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .object-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .object-card {
    padding: 0.35rem;
  }
  .object-card img {
    width: 40px;
    height: 40px;
  }
  .object-card .fw-bold {
    font-size: 0.7rem;
  }
  .object-card-actions {
    gap: 0.22rem;
    padding-top: 0.3rem;
  }
  .object-card-actions .btn {
    min-height: 28px;
    font-size: 0.68rem;
    padding: 0.12rem 0.25rem;
  }
  .choice-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .choice-grid--stack {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hypo-grid {
    gap: 0.45rem;
    padding-bottom: 0.15rem;
  }
  .hypo-grid .hypo-chip {
    flex: 1 1 100%;
    font-size: 0.82rem;
    min-height: 40px;
    line-height: 1.25;
  }
  .card-choice {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.88rem;
    line-height: 1.3;
  }
  .choice-grid--stack .card-choice {
    height: auto !important;
    min-height: 0 !important;
  }
  /* Pie en flujo normal: no tapa evidencias ni opciones al hacer scroll */
  .panel-center > .btn#btn-confirm,
  .panel-center > #btn-confirm,
  .panel-center > #btn-present,
  .panel-center > .btn-row {
    position: static;
    margin-top: 0.55rem;
    box-shadow: none;
    padding-top: 0;
  }
  .match-board {
    /* 2 columnas en móvil: evita lista larga sobre Borrar/Cuaderno */
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .match-board > div {
    gap: 0.28rem;
  }
  .match-item {
    padding: 0.32rem 0.4rem;
    font-size: 0.72rem;
    line-height: 1.25;
    border-radius: 0.55rem;
    gap: 0.28rem;
  }
  .match-item img {
    width: 26px;
    height: 26px;
  }
  .match-item .small {
    display: none;
  }
  .sort-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
  }
  .sort-item .btn {
    min-height: 32px;
    padding-inline: 0.45rem;
  }
  .scene-hint {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
  .title-hero h1 {
    font-size: 1.25rem;
  }
  .panel-overlay {
    inset: auto 2% 2% 2%;
    max-height: 30%;
    padding: 0.45rem;
  }
  .present-preview {
    padding: 0.65rem;
    font-size: 0.88rem;
  }
}

/* ---- Extra-small phones ---- */
@media (max-width: 389px) {
  .panel-center {
    inset: 0;
    border-radius: 0.5rem;
    padding: 0.35rem;
    gap: 0.3rem;
  }
  .panel-center > .small,
  .panel-center > p {
    font-size: 0.7rem;
    line-height: 1.25;
  }
  .panel-center > .btn#btn-confirm,
  .panel-center > #btn-confirm,
  .panel-center > #btn-present,
  .panel-center > .btn-row {
    padding-top: 0.25rem;
  }
  .object-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
  }
  .object-card {
    padding: 0.25rem;
  }
  .object-card img {
    width: 30px;
    height: 30px;
  }
  .object-card .fw-bold {
    font-size: 0.6rem;
  }
  .object-card-actions {
    gap: 0.15rem;
    padding-top: 0.2rem;
  }
  .object-card-actions .btn {
    min-height: 24px;
    font-size: 0.6rem;
    padding: 0.08rem 0.18rem;
  }
  .choice-grid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .choice-grid--stack {
    gap: 0.35rem;
  }
  .card-choice {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .choice-grid--stack .card-choice {
    height: auto !important;
    min-height: 0 !important;
  }
  .hypo-grid .hypo-chip {
    font-size: 0.75rem;
    min-height: 34px;
    line-height: 1.25;
  }
  .match-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.22rem;
  }
  .match-board > div {
    gap: 0.2rem;
  }
  .match-item {
    padding: 0.26rem 0.32rem;
    font-size: 0.66rem;
    line-height: 1.2;
  }
  .match-item img {
    width: 22px;
    height: 22px;
  }
  .sort-item {
    padding: 0.3rem 0.4rem;
    font-size: 0.78rem;
  }
  .sort-item .btn {
    min-height: 26px;
    padding-inline: 0.3rem;
    font-size: 0.68rem;
  }
  .title-hero {
    top: 3%;
    left: 3%;
    right: 50%;
  }
  .title-hero h1 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
  }
  .scene-hint {
    font-size: 0.62rem;
    padding: 0.18rem 0.4rem;
  }
  .panel-overlay {
    inset: auto 1% 1% 1%;
    max-height: 40%;
    padding: 0.35rem;
    border-radius: 0.7rem;
  }
  .loading-card {
    padding: 0.85rem;
    border-radius: 0.85rem;
  }
  .present-preview {
    padding: 0.45rem;
    font-size: 0.8rem;
  }
  .form-grid {
    gap: 0.35rem;
  }
  .final-card {
    padding: 0.65rem;
    border-radius: 0.75rem;
  }
  .indicator-bar {
    height: 8px;
  }
}

/* Landscape phones / short height */
@media (max-height: 500px) and (orientation: landscape) {
  .panel-center {
    inset: 1.5%;
    padding: 0.4rem;
    gap: 0.35rem;
  }
  .object-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .object-card {
    padding: 0.3rem;
  }
  .object-card img {
    width: 32px;
    height: 32px;
  }
  .object-card .fw-bold {
    font-size: 0.65rem;
  }
  .object-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .object-card-actions .btn {
    flex: 1 1 calc(50% - 0.15rem);
    min-height: 26px;
    font-size: 0.62rem;
    padding: 0.1rem 0.2rem;
  }
  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .choice-grid--stack {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-choice {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.78rem;
  }
  .match-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .scene-hint {
    top: 2%;
    font-size: 0.68rem;
  }
  .character-layer {
    top: 48%;
    max-width: 22%;
    opacity: 1;
  }
  .character-layer.is-hero {
    top: 18%;
    max-width: 28%;
    opacity: 1;
  }
  .sort-item {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* ---- Tablet landscape (medium height) ---- */
@media (min-height: 501px) and (max-height: 700px) and (orientation: landscape) {
  .panel-center {
    inset: 2%;
    padding: 0.6rem;
    gap: 0.4rem;
  }
  .object-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .object-card img {
    width: 48px;
    height: 48px;
  }
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-grid--stack {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .match-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .sort-item {
    padding: 0.45rem 0.6rem;
    font-size: 0.88rem;
  }
  .title-hero h1 {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }
  .panel-overlay {
    max-height: 45%;
  }
}

/* Narrow phones: keep action buttons stacked even in landscape cards */
@media (max-width: 400px) {
  .object-card-actions {
    flex-direction: column !important;
  }
}

/* ---- Mapa V2 (M0) - mapa de nodos con niebla ---- */
.intro-m0 .bg-cover {
  filter: none;
  z-index: 0;
}

.intro-m0 .zone-atmosphere {
  z-index: 1;
  opacity: 0.2;
}

.map-territory {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Niebla espesa por zona bloqueada */
.map-fog {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(236, 232, 220, 0.92) 0%,
      rgba(210, 214, 218, 0.78) 42%,
      rgba(190, 198, 205, 0.35) 68%,
      transparent 78%);
  filter: blur(2px);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.35);
}

.map-fog-rio {
  left: 28%;
  top: 28%;
  width: 36%;
  height: 52%;
}

.map-fog-plaza {
  left: 48%;
  top: 22%;
  width: 34%;
  height: 50%;
}

.map-fog-camara {
  left: 68%;
  top: 16%;
  width: 34%;
  height: 54%;
}

.map-territory.fog-rio .map-fog-rio,
.map-territory.fog-plaza .map-fog-plaza,
.map-territory.fog-camara .map-fog-camara {
  opacity: 1;
}

.map-nodes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.map-node {
  position: absolute;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: auto;
  max-width: 9.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -70%);
  z-index: 4;
}

/* Nodos alineados a las 4 regiones del mapa cartografico */
.map-node.zone-bosque { left: 18%; top: 52%; }
.map-node.zone-rio { left: 42%; top: 55%; }
.map-node.zone-plaza { left: 64%; top: 48%; }
.map-node.zone-camara { left: 84%; top: 42%; }

.map-node-marker {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--forest);
  border: 3px solid rgba(255, 252, 245, 0.96);
  box-shadow:
    0 0 0 3px rgba(47, 93, 74, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-node.zone-bosque .map-node-marker { background: #3d6b4f; }
.map-node.zone-rio .map-node-marker { background: #3a6f8f; }
.map-node.zone-plaza .map-node-marker { background: #8a5a3c; }
.map-node.zone-camara .map-node-marker { background: #6b5a8a; }

.map-node-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  max-width: 9.5rem;
  padding: 0.22rem 0.5rem;
  border-radius: 0.55rem;
  background: rgba(247, 243, 235, 0.92);
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.map-node-status {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--forest);
  line-height: 1;
}

.map-node-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  color: #2a241c;
}

.map-node-check,
.map-node-lock {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
}

.map-node-check {
  background: #4d8b6f;
  color: #fff;
}

.map-node-lock {
  background: rgba(60, 60, 70, 0.92);
  color: #fff;
  font-size: 0.68rem;
}

.map-node.is-available .map-node-marker {
  animation: mapPulse 2.2s ease-in-out infinite;
  box-shadow:
    0 0 0 5px rgba(77, 139, 111, 0.32),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.map-node.is-available .map-node-label {
  border-color: var(--leaf);
  background: rgba(255, 252, 245, 0.96);
}

.map-node.is-guide-target .map-node-marker {
  transform: scale(1.12);
}

.map-node.is-complete .map-node-label {
  border-color: rgba(212, 160, 23, 0.55);
}

.map-node.is-locked {
  cursor: not-allowed;
}

.map-node.is-locked .map-node-marker {
  filter: grayscale(0.4);
  opacity: 0.9;
}

.map-node.is-locked .map-node-label {
  opacity: 0.85;
}

.map-node:hover:not(.is-locked) .map-node-marker {
  transform: translateY(-3px) scale(1.06);
}

.map-node:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 4px;
}

.map-hud {
  position: absolute;
  top: 1.5%;
  left: 1.5%;
  right: 1.5%;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.35rem 0.65rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.84);
  border: 1px solid rgba(47, 93, 74, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  backdrop-filter: blur(4px);
  max-height: 22%;
  overflow: hidden;
}

.map-hud .btn,
.map-hud details,
.map-hud button {
  pointer-events: auto;
}

.map-hud-title {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--forest);
  line-height: 1.2;
}

.map-dynamic {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a241c;
}

.map-next-hint {
  margin: 0.05rem 0 0;
  font-size: 0.7rem;
  color: rgba(42, 36, 28, 0.68);
}

.map-hud-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.map-progress {
  min-width: 7.5rem;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.map-progress-bar {
  width: 100%;
  height: 8px;
}

.intro-m0 .character-layer.is-map-flying {
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  width: min(15vw, 115px);
  max-width: 120px;
  height: min(15vh, 105px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  animation: mapLumiBob 2.8s ease-in-out infinite;
}

.intro-m0 .character-layer.is-map-flying img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: scaleX(-1);
}

.intro-m0 .character-layer.is-over-bosque {
  left: 11%;
  top: 30%;
}

.intro-m0 .character-layer.is-over-rio {
  left: 34%;
  top: 34%;
}

.intro-m0 .character-layer.is-over-plaza {
  left: 56%;
  top: 26%;
}

.intro-m0 .character-layer.is-over-camara {
  left: 76%;
  top: 20%;
}

@keyframes mapPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(77, 139, 111, 0.22), 0 8px 18px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(77, 139, 111, 0.38), 0 8px 18px rgba(0, 0, 0, 0.28); }
}

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

@media (prefers-reduced-motion: reduce) {
  .map-node.is-available .map-node-marker,
  .intro-m0 .character-layer.is-map-flying {
    animation: none !important;
  }
  .map-fog { transition: none; }
}

@media (max-width: 767.98px) {
  .map-node { max-width: 7rem; }
  .map-node-title { font-size: 0.66rem; }
  .map-node.zone-bosque { left: 20%; top: 54%; }
  .map-node.zone-rio { left: 44%; top: 58%; }
  .map-node.zone-plaza { left: 66%; top: 50%; }
  .map-node.zone-camara { left: 84%; top: 42%; }
  .intro-m0 .character-layer.is-map-flying {
    width: min(18vw, 72px);
    height: min(12vh, 64px);
  }
  .map-hud {
    top: 1%;
    padding: 0.3rem 0.45rem;
    max-height: 24%;
  }
  .map-next-hint { display: none; }
  .map-mision-panel {
    left: 2%;
    right: auto;
    bottom: 2%;
    width: min(58%, 240px);
    max-height: 24%;
  }
  .map-mision-q { font-size: 0.78rem; }
  .map-mision-zonas { font-size: 0.68rem; }
  .intro-m0 .character-layer.is-over-bosque { top: 34%; }
  .intro-m0 .character-layer.is-over-rio { top: 36%; }
  .intro-m0 .character-layer.is-over-plaza { top: 32%; }
  .intro-m0 .character-layer.is-over-camara { top: 30%; }
}

.bitacora-ev-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.bitacora-ev {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.55rem;
  align-items: start;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(42, 36, 28, 0.08);
}

.bitacora-ev.is-confirmada { border-left: 4px solid var(--leaf); }
.bitacora-ev.is-dudosa { border-left: 4px solid var(--amber); }
.bitacora-ev.is-distractora,
.bitacora-ev.is-descartada { border-left: 4px solid var(--coral); opacity: 0.85; }

.bitacora-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bitacora-badge {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.4rem 0.45rem 0.55rem;
  border: 1px solid rgba(42, 36, 28, 0.08);
  text-align: center;
}

.bitacora-badge img {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 0.15rem;
}

.bitacora-badge strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.bitacora-badge .small {
  display: block;
  line-height: 1.25;
}

.bitacora-stamp {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
  color: var(--forest);
}

/* ---- Intro V2 (P0?P4) ---- */
.intro-p0 {
  display: flex !important;
  align-items: center;
  justify-content: center;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 102, 0.45) 0%, transparent 42%),
    linear-gradient(165deg, #dff3ff 0%, #eafbe7 46%, #fff3d1 100%);
}

.institutional-card {
  width: min(760px, 94%);
  background: rgba(255, 250, 240, 0.96);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.12);
  border: 3px solid rgba(43, 33, 24, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.institutional-logos {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
  padding: 0.85rem 0.5rem 1.35rem;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid rgba(47, 93, 74, 0.12);
}

.institutional-logo {
  display: block;
  object-fit: contain;
  flex: 0 1 auto;
}

.institutional-logo--fontur {
  width: min(420px, 58vw);
  max-width: 100%;
  height: auto;
  max-height: 110px;
}

.institutional-logo--cat {
  width: auto;
  max-width: min(160px, 36vw);
  height: auto;
  max-height: 118px;
}

.logo-placeholder {
  min-width: 7.5rem;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  border: 2px dashed rgba(47, 93, 74, 0.35);
  font-weight: 800;
  color: var(--forest);
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(47, 93, 74, 0.04),
      rgba(47, 93, 74, 0.04) 6px,
      transparent 6px,
      transparent 12px
    ),
    #fff;
}

.institutional-copy {
  width: min(560px, 100%);
  padding: 1.35rem 0.5rem 1.5rem;
}

.institutional-main {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.85rem;
  color: #2a241c;
}

.institutional-sub {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--forest);
  margin: 0;
  line-height: 1.4;
}

.institutional-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding-top: 1.15rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(47, 93, 74, 0.1);
}

.p0-line-actions {
  display: contents;
}

.institutional-actions .btn {
  min-height: 2.5rem;
}

.institutional-actions .btn-outline-secondary {
  opacity: 0.92;
}

/* ---- P1 Bienvenida explicativa ---- */
.intro-p1 {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.intro-p1 .bg-cover {
  filter: brightness(0.72) saturate(0.9);
}

.intro-p1 .zone-atmosphere {
  background: linear-gradient(
    135deg,
    rgba(15, 35, 28, 0.55) 0%,
    rgba(15, 35, 28, 0.25) 45%,
    rgba(247, 243, 235, 0.15) 100%
  );
}

.intro-welcome-shell {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.65rem, 2vw, 1.25rem);
  pointer-events: none;
  overflow: hidden;
}

.intro-welcome-panel {
  pointer-events: auto;
  width: min(920px, 100%);
  max-height: calc(100% - 0.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  background: rgba(255, 250, 240, 0.97);
  border-radius: 22px;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.14);
  border: 3px solid rgba(43, 33, 24, 0.14);
}

.intro-welcome-hero {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.1rem);
  margin-bottom: 0.75rem;
}

.intro-welcome-lumi-wrap {
  flex: 0 0 auto;
  margin: 0;
  width: clamp(3.25rem, 11vw, 5rem);
  line-height: 0;
}

.intro-welcome-lumi-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(47, 93, 74, 0.18));
  pointer-events: none;
  user-select: none;
}

.intro-welcome-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.intro-welcome-title {
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  color: var(--forest, #2f5d4a);
  margin-bottom: 0.45rem;
  line-height: 1.2;
}

.intro-welcome-objective {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: #fff8e2;
  border: 3px dashed var(--sun-deep, #e09500);
}

.intro-welcome-objective-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a4e00;
}

.intro-welcome-objective-lead {
  margin: 0 0 0.35rem;
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.45;
  color: #2a3d34;
}

.intro-welcome-objective-text {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.4;
  color: #2a3d34;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.intro-welcome-objective-text:last-child {
  margin-bottom: 0;
}

.intro-welcome-body {
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.55;
  color: #2a3d34;
  margin-bottom: 0.85rem;
}

.intro-welcome-body p {
  margin-bottom: 0.55rem;
}

.intro-welcome-body p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--forest, #2f5d4a);
}

.intro-welcome-systems {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.intro-welcome-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 3.35rem;
  padding: 0.3rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(47, 93, 74, 0.08);
  border: 1px solid rgba(47, 93, 74, 0.15);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--forest, #2f5d4a);
}

.intro-welcome-icon .bi {
  font-size: 1rem;
}

.intro-welcome-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.intro-welcome-list-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest, #2f5d4a);
  margin-bottom: 0.35rem;
}

.intro-welcome-list-block ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #3a4a42;
}

.intro-welcome-list-block li + li {
  margin-top: 0.25rem;
}

.intro-player-block {
  margin-bottom: 0.85rem;
}

.intro-player-form {
  margin-bottom: 0;
  padding: 0.85rem 0.95rem 0.65rem;
  border-radius: 0.85rem 0.85rem 0 0;
  background: rgba(247, 243, 235, 0.98);
  border: 2px solid rgba(47, 93, 74, 0.28);
  border-bottom: 0;
  box-shadow: none;
}

.intro-player-form-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest, #2f5d4a);
  margin-bottom: 0.65rem;
}

.intro-player-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.65rem 0.85rem;
}

.intro-player-field .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #2a3d34;
}

.intro-player-field .form-control {
  font-size: 0.9rem;
  min-height: 2.5rem;
  border-color: rgba(47, 93, 74, 0.25);
}

.intro-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(47, 93, 74, 0.12);
}

.intro-welcome-actions--form {
  padding: 0.65rem 0.95rem 0.85rem;
  border-top: 0;
  border-radius: 0 0 0.85rem 0.85rem;
  background: rgba(247, 243, 235, 0.98);
  border: 2px solid rgba(47, 93, 74, 0.28);
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  box-shadow: 0 6px 18px rgba(47, 93, 74, 0.12);
}

.intro-welcome-actions .btn {
  min-width: 8.5rem;
  min-height: 2.75rem;
}

@media (max-width: 767.98px) {
  .intro-welcome-hero {
    flex-direction: column;
    text-align: center;
  }

  .intro-welcome-lumi-wrap {
    width: clamp(3.75rem, 24vw, 5.25rem);
  }

  .intro-welcome-lists {
    grid-template-columns: 1fr;
  }

  .intro-player-form-grid {
    grid-template-columns: 1fr;
  }

  .intro-welcome-actions {
    flex-direction: column;
  }

  .intro-welcome-actions .btn {
    width: 100%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro-welcome-hero {
    gap: 0.4rem;
  }
  .intro-welcome-lumi-wrap {
    width: 3.2rem;
  }
  .intro-welcome-objective {
    margin-top: 0.15rem;
  }
  .intro-player-form,
  .intro-welcome-actions--form {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .intro-player-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .intro-welcome-actions {
    flex-direction: row;
  }
  .intro-welcome-actions .btn {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-welcome-panel {
    scroll-behavior: auto;
  }
}

.intro-title h1 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

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

.control-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(47, 93, 74, 0.18);
  color: #2a241c;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.control-chip i:first-child {
  color: var(--forest);
  font-size: 1.2rem;
  transition: color 0.18s ease, transform 0.18s ease;
}

.control-chip-label {
  flex: 1;
}

.control-chip-check {
  font-size: 1rem;
  color: var(--leaf, #5a9a6a);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.control-chip:hover,
.control-chip.is-hover {
  background: #eef6f0;
  border-color: rgba(47, 93, 74, 0.45);
  box-shadow: 0 4px 14px rgba(47, 93, 74, 0.12);
}

.control-chip:hover i:first-child,
.control-chip.is-hover i:first-child {
  color: #1f6b4a;
  transform: scale(1.08);
}

.control-chip:focus-visible {
  outline: 3px solid rgba(47, 93, 74, 0.45);
  outline-offset: 2px;
}

.control-chip.is-selected {
  background: linear-gradient(180deg, #dff0e4 0%, #cfe6d6 100%);
  border-color: var(--forest);
  box-shadow: 0 0 0 1px rgba(47, 93, 74, 0.2);
  color: #1a3d2e;
}

.control-chip.is-selected i:first-child {
  color: #165c3d;
}

.control-chip.is-active,
.control-chip:active {
  background: #b9dcc6;
  border-color: #1f6b4a;
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(20, 60, 40, 0.18);
}

.control-chip.is-confirmed {
  border-color: var(--leaf, #4f8f5e);
}

.control-chip.is-confirmed .control-chip-check {
  opacity: 1;
  transform: scale(1);
}

.control-explain {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: rgba(255, 252, 245, 0.95);
  border: 1px solid rgba(47, 93, 74, 0.16);
  color: #2a241c;
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 3.4rem;
  text-align: left;
}

.control-explain.is-confirmed {
  border-color: rgba(79, 143, 94, 0.45);
  background: rgba(232, 245, 234, 0.95);
}

.control-explain.is-pulse {
  animation: controlExplainPulse 0.35s ease;
}

@keyframes controlExplainPulse {
  0% { transform: translateY(2px); opacity: 0.55; }
  100% { transform: translateY(0); opacity: 1; }
}

.intro-controls-lead {
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .control-chip,
  .control-chip-check {
    transition: none;
  }
  .control-explain.is-pulse {
    animation: none;
  }
}

.tutorial-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.5rem 0 0.25rem;
}

.tutorial-card,
.tutorial-drop {
  border-radius: 0.85rem;
  padding: 0.75rem;
  text-align: center;
  background: #fff;
  border: 2px solid transparent;
}

.tutorial-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-inline: auto;
}

.tutorial-card.is-glow {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.2);
  animation: pulseSoft 1.6s ease-in-out infinite;
}

.tutorial-card.is-picked {
  border-color: var(--leaf);
}

.tutorial-card.is-registered {
  border-color: var(--leaf);
  opacity: 0.85;
  animation: none;
}

.tutorial-card.is-placed {
  opacity: 0.45;
  pointer-events: none;
}

.tutorial-card.is-dragging {
  opacity: 0.6;
}

.tutorial-drop {
  border: 2px dashed rgba(47, 93, 74, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 120px;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.88rem;
}

.tutorial-drop.is-over {
  background: rgba(77, 139, 111, 0.12);
  border-color: var(--leaf);
}

.tutorial-drop.is-filled {
  border-style: solid;
  border-color: var(--leaf);
  background: rgba(232, 245, 234, 0.95);
  color: var(--forest);
}

.tutorial-drop.is-filled img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-inline: auto;
}

.tutorial-drop i {
  font-size: 1.6rem;
}

@media (max-width: 575.98px) {
  .tutorial-stage {
    grid-template-columns: 1fr;
  }
  .controls-icons {
    grid-template-columns: 1fr;
  }
  .institutional-card {
    padding: 1.25rem 1rem 1.1rem;
    width: min(94vw, 760px);
  }
  .institutional-logos {
    gap: 0.85rem;
    padding: 0.5rem 0 1rem;
  }
  .institutional-logo--fontur {
    width: min(100%, 320px);
    max-height: 78px;
  }
  .institutional-logo--cat {
    max-width: 112px;
    max-height: 90px;
  }
  .institutional-copy {
    padding: 1rem 0.25rem 1.15rem;
  }
  .institutional-actions {
    padding-top: 0.95rem;
  }
}

/* ---- Nivel 1 Bosque ---- */
.n1-explore-bar {
  inset: auto 2% 2% 2%;
  max-height: none;
  z-index: 7;
}


.lupa-panel { gap: 0.45rem; }

.intro-n1-s3 .character-layer.is-lupa-lumi {
  left: 1.5%;
  top: auto;
  bottom: 2%;
  width: min(16vw, 120px);
  max-width: 130px;
  height: min(28vh, 150px);
  z-index: 4;
  opacity: 0.95;
}

.intro-n1-s3 .character-layer.is-lupa-lumi.is-conversing img,
.intro-n1-s3 .character-layer.is-lupa-lumi.is-breathe img,
.intro-n1-s3 .character-layer.is-lupa-lumi.is-talk img,
.intro-n1-s3 .character-layer.is-lupa-lumi.is-soft-breathe img {
  animation: none !important;
}

.lupa-instructions {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(255, 252, 235, 0.96);
  border: 1px solid rgba(120, 98, 40, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lupa-instructions-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5718;
}

.lupa-instructions-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #2f3618;
}

.lupa-stage {
  position: relative;
  min-height: min(42vh, 280px);
  border-radius: 0.85rem;
  background: #2a3a28;
  overflow: hidden;
  touch-action: none;
  cursor: none;
  user-select: none;
}

.lupa-scene-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  pointer-events: none;
  z-index: 0;
}

.lupa-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Brillo gu?a: a la izquierda del tronco, debajo del nido (no encima) */
.lupa-glow {
  position: absolute;
  top: 52%;
  left: 28%;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 230, 120, 0.55) 0%, rgba(255, 200, 80, 0.22) 45%, transparent 72%);
  box-shadow: 0 0 22px rgba(255, 220, 100, 0.45);
  animation: lupaHotPulse 1.8s ease-in-out infinite;
  z-index: 1;
}

.lupa-stage:has(.lupa-hot.is-revealed) .lupa-glow,
.lupa-stage:has(.lupa-hot.is-found) .lupa-glow {
  opacity: 0.35;
}

.lupa-hot {
  position: absolute;
  top: 54%;
  left: 30%;
  bottom: auto;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  min-width: 4.25rem;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  animation: none;
  z-index: 5;
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}

.lupa-hot-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.55;
  filter: saturate(0.65) brightness(0.92) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.2s ease;
}

.lupa-hot.is-focus {
  border: 0;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(255, 230, 120, 0.55);
  z-index: 4; /* por encima de la lupa para ver el color real */
}

.lupa-hot.is-focus .lupa-hot-thumb,
.lupa-hot.is-revealed .lupa-hot-thumb,
.lupa-hot.is-found .lupa-hot-thumb {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.75));
  transform: scale(1.12);
}

.lupa-hot.is-revealed,
.lupa-hot.is-found {
  border: 0;
  background: transparent;
  animation: none;
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.85);
  z-index: 4;
}

.lupa-hot.is-found .lupa-hot-thumb {
  filter: drop-shadow(0 0 10px rgba(77, 139, 111, 0.8));
}

.lupa-glass {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 70%);
  z-index: 3;
  transition: opacity 0.12s ease;
}

.lupa-glass.is-on { opacity: 1; }

.lupa-glass::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: 10px;
  height: 36px;
  background: linear-gradient(180deg, #c9a227, #8a6a18);
  border-radius: 4px;
  transform: rotate(35deg);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

@keyframes lupaHotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 230, 120, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 230, 120, 0.12); }
}

#btn-reg-key.is-pulse {
  animation: lupaHotPulse 1s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.35);
}

.classify-panel { gap: 0.4rem; }

/* N1-S4: mesa de clasificaci?n sin superposiciones */
.intro-n1-s4 .character-layer.is-classify-guide {
  width: min(18vw, 120px);
  max-width: 130px;
  top: auto;
  bottom: 2%;
  left: 1%;
  z-index: 2;
  opacity: 0.92;
}

.intro-n1-s4 .character-layer.is-classify-lumi {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: min(16vw, 120px);
  max-width: 130px;
  height: min(28vh, 150px);
  z-index: 2;
  opacity: 0.95;
}

.intro-n1-s4 .character-layer.is-classify-lumi.is-conversing img,
.intro-n1-s4 .character-layer.is-classify-lumi.is-breathe img,
.intro-n1-s4 .character-layer.is-classify-lumi.is-talk img,
.intro-n1-s4 .character-layer.is-classify-lumi.is-soft-breathe img {
  animation: none !important;
  transform: scaleX(-1);
}

.intro-n1-s4 .character-layer.is-classify-lumi img {
  transform: scaleX(-1);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.classify-workspace {
  position: absolute;
  inset: 2% 2% 2% 2%;
  z-index: 5;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.96);
  border: 1px solid rgba(47, 93, 74, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  pointer-events: auto;
}

.classify-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.classify-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.classify-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--forest);
  line-height: 1.2;
}

.classify-hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(42, 36, 28, 0.8);
  line-height: 1.4;
  max-width: none;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(47, 93, 74, 0.08);
  border: 1px solid rgba(47, 93, 74, 0.14);
}

.classify-legend {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(42, 36, 28, 0.92);
}

.classify-score {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
  color: var(--forest);
}

.classify-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.6);
  margin-bottom: 0.3rem;
}

.classify-pool-wrap {
  min-height: 0;
}

.classify-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 3.25rem;
  max-height: 5.5rem;
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(47, 93, 74, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

.classify-board {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.classify-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.classify-cols.classify-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cf-ev-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.match-item.is-discarded {
  opacity: 0.55;
  border-color: var(--amber, #d9a441);
  text-decoration: line-through;
}

.classify-col {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0.75rem;
  border: 1px solid rgba(47, 93, 74, 0.22);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.classify-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--forest);
  flex-shrink: 0;
}

.classify-drop {
  flex: 1;
  border-radius: 0.55rem;
  border: 1px dashed rgba(47, 93, 74, 0.32);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 4.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.classify-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 2px solid rgba(47, 93, 74, 0.12);
  border-radius: 0.55rem;
  padding: 0.35rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: grab;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.classify-pool .classify-card {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.classify-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.classify-card.is-selected {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.25);
}

.classify-card.is-correct {
  border-color: #2f7d4a;
  background: rgba(214, 242, 222, 0.95);
  box-shadow: 0 0 0 2px rgba(47, 125, 74, 0.22);
}

.classify-card.is-incorrect {
  border-color: #b42318;
  background: rgba(254, 228, 226, 0.95);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.2);
}

.classify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  background: rgba(247, 243, 235, 0.98);
  flex-shrink: 0;
  z-index: 3;
}

.classify-actions .btn {
  min-height: 40px;
}

/* N1-S4: clasificación directa con tres botones por pista */
.intro-n1-s4 .classify-workspace {
  inset: 3.5% 3% 3.5% 3%;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  padding: 0.85rem 1rem 0.75rem;
  min-width: 0;
}

.intro-n1-s4 .classify-header,
.intro-n1-s4 .classify-pool-wrap,
.intro-n1-s4 .classify-board,
.intro-n1-s4 .classify-actions {
  min-width: 0;
  max-width: 100%;
}

.intro-n1-s4 .classify-header {
  align-items: stretch;
}

.intro-n1-s4 .classify-title {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.intro-n1-s4 .classify-hint {
  margin-top: 0;
  font-size: 0.86rem;
}

.intro-n1-s4 .classify-section-label {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
}

.intro-n1-s4 .classify-pool-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.intro-n1-s4 .classify-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem;
  flex: 1 1 auto;
}

.intro-n1-s4 .classify-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 2px solid rgba(47, 93, 74, 0.12);
  border-radius: 0.65rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.intro-n1-s4 .classify-item-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.intro-n1-s4 .classify-item-info span {
  min-width: 0;
}

.intro-n1-s4 .classify-item-info img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.intro-n1-s4 .classify-item-options {
  display: flex;
  flex: 0 0 auto;
  gap: 0.28rem;
}

.intro-n1-s4 .classify-choice-btn {
  min-height: 34px;
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(47, 93, 74, 0.3);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.intro-n1-s4 .classify-choice-btn:hover,
.intro-n1-s4 .classify-choice-btn:focus-visible {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(47, 93, 74, 0.14);
}

.intro-n1-s4 .classify-choice-btn.is-selected {
  border-color: var(--amber);
  background: rgba(255, 235, 175, 0.7);
  color: #5b4312;
}

.intro-n1-s4 .classify-item.is-correct {
  border-color: #2f7d4a;
  background: rgba(214, 242, 222, 0.95);
  box-shadow: 0 0 0 2px rgba(47, 125, 74, 0.22);
}

.intro-n1-s4 .classify-item.is-incorrect {
  border-color: #b42318;
  background: rgba(254, 228, 226, 0.95);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.2);
}

.intro-n1-s4 .classify-item.is-correct .classify-choice-btn.is-selected {
  border-color: #2f7d4a;
  background: #d6f2de;
  color: #215d35;
}

.intro-n1-s4 .classify-item.is-incorrect .classify-choice-btn.is-selected {
  border-color: #b42318;
  background: #fee4e2;
  color: #8a1c14;
}

.intro-n1-s4 .classify-feedback {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(47, 125, 74, 0.28);
  background: rgba(214, 242, 222, 0.72);
  color: rgba(42, 36, 28, 0.9);
  font-size: 0.75rem;
  line-height: 1.35;
}

.intro-n1-s4 .classify-feedback ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 1rem;
  margin-top: 0.25rem;
  padding-left: 1rem;
}

.intro-n1-s4 .classify-feedback li::marker {
  color: var(--forest);
}

.intro-n1-s4 .classify-actions {
  padding-top: 0.55rem;
  gap: 0.55rem;
}

.decision-panel.is-calm #mood-badge,
.screen.is-calm #mood-badge {
  background: var(--leaf) !important;
}

/* N1-S6 ? decisi?n visual: visitante cerca del nido */
.intro-n1-s6 .character-layer.is-breathe img,
.intro-n1-s6 .character-layer.is-talk img,
.intro-n1-s6 .character-layer.is-soft-breathe img {
  animation: none !important;
}

/* Carriles separados: visitante (nido/izq) ? Lumi (antes del panel) */
.intro-n1-s6 .character-layer.is-decision-visitor {
  left: 3%;
  right: auto;
  top: auto;
  bottom: 5%;
  width: min(24vw, 220px);
  max-width: min(28%, 230px);
  height: min(48vh, 340px);
  z-index: 5;
  transition: left 0.55s ease, bottom 0.55s ease, transform 0.55s ease, filter 0.35s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
  align-items: flex-end;
  justify-content: center;
}

.intro-n1-s6 .character-layer.is-decision-visitor img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Debajo del nido, de espalda apuntando hacia arriba ? siempre en mitad izquierda */
.intro-n1-s6.is-visitor-near .character-layer.is-decision-visitor {
  right: auto;
  left: 8%;
  bottom: 9%;
  transform: scale(1.05);
}

.intro-n1-s6.is-visitor-path .character-layer.is-decision-visitor {
  right: auto;
  left: 18%;
  bottom: 0%;
  transform: scale(0.92);
}

.intro-n1-s6.is-birds-flee .character-layer.is-decision-visitor {
  right: auto;
  left: 4%;
  bottom: 11%;
  transform: scale(1.08);
}

.intro-n1-s6 .character-layer.is-decision-lumi {
  left: auto;
  /* Un poco a la izquierda para no tapar «Sendero seguro» */
  right: calc(min(38%, 360px) + 7%);
  top: auto;
  bottom: 1%;
  width: min(20vw, 190px);
  max-width: min(22%, 200px);
  height: min(42vh, 290px);
  z-index: 5;
}

.intro-n1-s6 .character-layer.is-decision-lumi img {
  transform: scaleX(-1);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.intro-n1-s6 .character-layer.is-decision-lumi.is-conversing img,
.intro-n1-s6 .character-layer.is-decision-lumi.is-breathe img,
.intro-n1-s6 .character-layer.is-decision-lumi.is-talk img,
.intro-n1-s6 .character-layer.is-decision-lumi.is-soft-breathe img {
  animation: none !important;
  transform: scaleX(-1);
}

.decision-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.decision-nest-zone {
  /* Sobre el nido del ?rbol en Y (izquierda del sendero) */
  position: absolute;
  left: 22%;
  top: 7%;
  width: min(26vw, 240px);
  height: min(30vh, 240px);
}

.decision-nest-glow {
  position: absolute;
  inset: 18% 10% 22% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 70, 0.28), transparent 70%);
  animation: nestPulse 1.6s ease-in-out infinite;
}

.intro-n1-s6.is-calm .decision-nest-glow {
  background: radial-gradient(circle, rgba(120, 190, 130, 0.24), transparent 70%);
  animation: none;
}

.decision-birds {
  position: absolute;
  inset: 0;
}

.decision-bird {
  position: absolute;
  width: auto;
  height: clamp(2.4rem, 6.5vw, 3.6rem);
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.decision-bird--a {
  left: 8%;
  top: 8%;
  height: clamp(2.6rem, 7vw, 3.8rem);
}

.decision-bird--b {
  left: 52%;
  top: 0%;
  height: clamp(2.3rem, 6vw, 3.4rem);
}

.decision-bird--c {
  left: 38%;
  top: 22%;
  height: clamp(2.2rem, 5.8vw, 3.2rem);
}

.intro-n1-s6.is-alert-scene .decision-bird--a { animation: birdFlutter 0.7s ease-in-out infinite; }
.intro-n1-s6.is-alert-scene .decision-bird--b { animation: birdFlutter 0.8s ease-in-out infinite 0.12s; }
.intro-n1-s6.is-alert-scene .decision-bird--c { animation: birdFlutter 0.65s ease-in-out infinite 0.2s; }

.intro-n1-s6.is-calm .decision-bird {
  animation: none !important;
  transform: translateY(3px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.intro-n1-s6.is-birds-flee .decision-bird--a {
  animation: birdFlee 0.9s ease-out forwards;
}
.intro-n1-s6.is-birds-flee .decision-bird--b {
  animation: birdFlee 1s ease-out 0.05s forwards;
}
.intro-n1-s6.is-birds-flee .decision-bird--c {
  animation: birdFlee 0.85s ease-out 0.1s forwards;
}

.decision-path-mark {
  position: absolute;
  right: 22%;
  bottom: 14%;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(240, 226, 196, 0.92);
  border: 2px solid #8a6238;
  color: #2a241c;
  font-size: 0.7rem;
  font-weight: 800;
  transform: rotate(-3deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.decision-panel-side {
  position: absolute;
  top: 3%;
  right: 1.5%;
  bottom: 3%;
  width: min(38%, 360px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.95);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.decision-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}

.decision-title {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--forest);
  line-height: 1.2;
}

.decision-sub {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: rgba(42, 36, 28, 0.72);
  line-height: 1.35;
}

.decision-opts {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.decision-q {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  gap: 0.5rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.decision-q:hover {
  border-color: rgba(77, 139, 111, 0.55);
  transform: translateY(-1px);
}

.decision-q.is-selected {
  border-color: var(--leaf);
  background: rgba(232, 245, 236, 0.95);
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.14);
}

.decision-q-key {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.82rem;
}

.decision-q-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  flex-shrink: 0;
}

.intro-n1-s6.is-calm #mood-badge {
  background: var(--leaf) !important;
}

@keyframes nestPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes birdFlutter {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -5px); }
}

@keyframes birdFlee {
  to {
    transform: translate(36px, -64px) scale(0.75);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decision-nest-glow,
  .decision-bird {
    animation: none !important;
  }
  .intro-n1-s6 .character-layer.is-decision-visitor {
    transition: none;
  }
}

/* iPad / tablet: panel lateral m?s estrecho y personajes en carriles fijos */
@media (max-width: 1024px) and (min-width: 768px) {
  .intro-n1-s6 .decision-panel-side {
    width: min(34%, 300px);
  }
  .intro-n1-s6 .character-layer.is-decision-visitor {
    left: 2%;
    bottom: 6%;
    width: min(22vw, 180px);
    max-width: min(26%, 190px);
    height: min(42vh, 280px);
  }
  .intro-n1-s6.is-visitor-near .character-layer.is-decision-visitor {
    left: 6%;
    bottom: 8%;
  }
  .intro-n1-s6.is-visitor-path .character-layer.is-decision-visitor {
    left: 14%;
    bottom: 1%;
  }
  .intro-n1-s6.is-birds-flee .character-layer.is-decision-visitor {
    left: 2%;
    bottom: 9%;
  }
  .intro-n1-s6 .character-layer.is-decision-lumi {
    right: calc(min(34%, 300px) + 8%);
    width: min(18vw, 150px);
    max-width: min(20%, 160px);
    height: min(36vh, 240px);
    bottom: 2%;
  }
  .intro-n1-s6 .decision-nest-zone {
    left: 14%;
    top: 6%;
    width: min(22vw, 180px);
    height: min(26vh, 200px);
  }
  .intro-n1-s6 .decision-path-mark {
    right: calc(min(34%, 300px) + 4%);
    bottom: 16%;
    font-size: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  .intro-n1-s6 .decision-panel-side {
    top: auto;
    left: auto;
    right: 2%;
    bottom: 6%;
    width: 56%;
    height: 46%;
    max-height: 48%;
  }
  .intro-n1-s6 .character-layer.is-decision-visitor {
    left: 14%;
    right: auto;
    top: auto;
    bottom: max(44%, calc(42% + 0.5rem));
    width: min(28vw, 115px);
    max-width: 30%;
    height: min(32vh, 180px);
    transform: none;
  }
  .intro-n1-s6.is-visitor-near .character-layer.is-decision-visitor,
  .intro-n1-s6.is-visitor-path .character-layer.is-decision-visitor,
  .intro-n1-s6.is-birds-flee .character-layer.is-decision-visitor {
    left: 14%;
    right: auto;
    bottom: max(44%, calc(42% + 0.5rem));
    transform: none;
  }
  .intro-n1-s6.is-visitor-near .character-layer.is-decision-visitor {
    left: 14%;
  }
  .intro-n1-s6.is-visitor-path .character-layer.is-decision-visitor {
    left: 18%;
  }
  .intro-n1-s6 .character-layer.is-decision-lumi {
    left: 3%;
    right: auto;
    top: auto;
    bottom: max(44%, calc(42% + 0.5rem));
    width: min(20vw, 82px);
    max-width: 22%;
    height: min(26vh, 140px);
  }
  .intro-n1-s6 .decision-nest-zone {
    left: 10%;
    top: 3%;
    width: 34vw;
    height: 22vh;
  }
  .intro-n1-s6 .decision-path-mark {
    right: 4%;
    bottom: 46%;
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
  }
  .decision-bird {
    height: clamp(1.9rem, 9vw, 2.8rem);
  }
  .intro-n1-s6 .decision-panel-side {
    gap: 0.28rem;
    padding: 0.4rem 0.45rem 0.4rem;
    max-height: 48%;
  }
  .intro-n1-s6 .decision-title {
    font-size: 0.86rem;
  }
  .intro-n1-s6 .decision-sub {
    margin-top: 0.08rem;
    font-size: 0.64rem;
    line-height: 1.2;
  }
  .intro-n1-s6 #mood-badge {
    font-size: 0.6rem;
    padding: 0.12rem 0.35rem;
  }
  .intro-n1-s6 .decision-opts {
    gap: 0.22rem;
    flex: 0 1 auto;
  }
  .intro-n1-s6 .decision-q {
    grid-template-columns: 1.25rem 1fr;
    gap: 0.28rem;
    padding: 0.24rem 0.35rem;
    border-radius: 0.5rem;
    border-width: 1px;
  }
  .intro-n1-s6 .decision-q-key {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.62rem;
  }
  .intro-n1-s6 .decision-q-text {
    font-size: 0.64rem;
    line-height: 1.2;
  }
  .intro-n1-s6 .decision-actions {
    gap: 0.25rem;
    padding-top: 0.22rem;
  }
  .intro-n1-s6 .decision-actions .btn {
    min-height: 30px;
    font-size: 0.7rem;
    padding-inline: 0.55rem;
  }
}

/* Tel?fonos muy estrechos: Lumi a?n m?s peque?a para no montar */
@media (max-width: 389px) {
  .intro-n1-s6 .character-layer.is-decision-visitor {
    width: min(30vw, 100px);
    height: min(28vh, 150px);
  }
  .intro-n1-s6 .character-layer.is-decision-lumi {
    width: min(22vw, 82px);
    height: min(22vh, 115px);
  }
}

.n1-close-panel.is-recovered {
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.25);
}

/* N1-S8 ? cierre visual sobre el mapa de nodos */
.intro-n1-s8 .character-layer.is-breathe img,
.intro-n1-s8 .character-layer.is-talk img,
.intro-n1-s8 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n1-s8 .character-layer.is-close-lumi {
  left: 2%;
  top: auto;
  bottom: 2%;
  width: min(18vw, 150px);
  max-width: 160px;
  height: min(34vh, 200px);
  z-index: 6;
}

.intro-n1-s8 .character-layer.is-close-guardiana {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 1%;
  width: min(38vw, 360px);
  max-width: 380px;
  height: min(72vh, 480px);
  z-index: 6;
}

.intro-n1-s8 .character-layer.is-close-lumi img,
.intro-n1-s8 .character-layer.is-close-guardiana img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n1-s8 .character-layer.is-close-lumi.is-conversing img {
  animation: none !important;
}

/* Fondo del bosque recuperado: el mapa de nodos queda oculto */
.intro-n1-s8.is-forest-recovered .map-territory {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.intro-n1-s8.is-forest-recovered .bg-cover {
  transition: opacity 0.45s ease;
}

.close-map-hud {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: min(92%, 520px);
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.close-map-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--forest);
}

.close-map-caption {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.close-map-meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(42, 36, 28, 0.7);
}

.close-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.55rem;
}

.intro-n1-s8 .map-nodes .map-node {
  pointer-events: none;
  cursor: default;
}

.intro-n1-s8 .map-nodes .map-node.zone-rio.is-available {
  pointer-events: auto;
  cursor: pointer;
  z-index: 8;
}

.map-territory.is-bosque-recovered::before {
  content: "";
  position: absolute;
  left: 4%;
  top: 28%;
  width: 28%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 110, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: bosqueRecoverPulse 2.4s ease-in-out infinite;
}

.map-bosque-birds {
  position: absolute;
  left: 10%;
  top: 36%;
  width: 16%;
  height: 18%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.intro-n1-s8 .map-territory.is-bosque-recovered .map-bosque-birds {
  opacity: 0.95;
}

.map-bosque-birds img {
  position: absolute;
  height: clamp(1.6rem, 4vw, 2.4rem);
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.map-bosque-birds img:first-child {
  left: 10%;
  top: 20%;
  animation: birdFlutter 1.1s ease-in-out infinite;
}

.map-bosque-birds img:last-child {
  right: 8%;
  top: 45%;
  animation: birdFlutter 1.25s ease-in-out infinite 0.15s;
}

.map-node.is-recovering .map-node-marker {
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.35), 0 6px 14px rgba(0, 0, 0, 0.25);
  animation: nestPulse 1.5s ease-in-out infinite;
}

.map-node.is-recovering .map-node-status {
  color: #8a6238;
  font-weight: 800;
}

.map-path-rio {
  position: absolute;
  left: 20%;
  top: 52%;
  width: 24%;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.15), rgba(212, 160, 23, 0.05));
  transform: rotate(-4deg);
  transform-origin: left center;
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.7s ease, box-shadow 0.7s ease, background 0.7s ease;
}

.intro-n1-s8 .map-territory.is-path-rio-open .map-path-rio {
  opacity: 1;
  background: linear-gradient(90deg, rgba(77, 139, 111, 0.95), rgba(212, 160, 23, 0.95), rgba(58, 111, 143, 0.95));
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.7), 0 0 28px rgba(77, 139, 111, 0.35);
  animation: pathReveal 1.2s ease-out;
}

.intro-n1-s8 .map-territory.is-path-rio-open .map-fog-rio {
  opacity: 0 !important;
  transition: opacity 1s ease;
}

.intro-n1-s8.is-unlock-revealed .map-node.zone-rio.is-available .map-node-marker {
  animation: nestPulse 1.2s ease-in-out infinite;
}

@keyframes bosqueRecoverPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes pathReveal {
  from { opacity: 0.2; filter: brightness(0.8); }
  to { opacity: 1; filter: brightness(1); }
}

@media (max-width: 767.98px) {
  .close-map-hud {
    top: 2%;
    width: min(96%, 420px);
    padding: 0.5rem 0.65rem;
  }
  .intro-n1-s8 .character-layer.is-close-lumi {
    width: min(20vw, 90px);
    height: min(22vh, 120px);
  }
  .intro-n1-s8 .character-layer.is-close-guardiana {
    width: min(44vw, 200px);
    max-width: 210px;
    height: min(48vh, 260px);
  }
  .map-bosque-birds {
    left: 8%;
    top: 40%;
    width: 22%;
  }
}

/* N2-S8 ? cierre del r?o y desbloqueo de la plaza */
.intro-n2-s8 .character-layer.is-breathe img,
.intro-n2-s8 .character-layer.is-talk img,
.intro-n2-s8 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n2-s8 .character-layer.is-close-lumi {
  left: 1%;
  top: auto;
  bottom: 2%;
  width: min(18vw, 140px);
  max-width: 150px;
  height: min(32vh, 180px);
  z-index: 6;
}

.intro-n2-s8 .character-layer.is-close-cuidador {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 1%;
  width: min(22vw, 170px);
  max-width: 180px;
  height: min(40vh, 240px);
  z-index: 6;
}

.intro-n2-s8 .character-layer.is-close-lumi img,
.intro-n2-s8 .character-layer.is-close-cuidador img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.intro-n2-s8 .character-layer.is-close-lumi.is-conversing img {
  animation: none !important;
}

.intro-n2-s8 .map-nodes .map-node {
  pointer-events: none;
  cursor: default;
}

.close-map-achieve {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2f5d4a;
}

.map-path-rio.is-done {
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(77, 139, 111, 0.9), rgba(58, 111, 143, 0.85));
  box-shadow: 0 0 10px rgba(77, 139, 111, 0.35);
}

.map-path-plaza {
  position: absolute;
  left: 42%;
  top: 50%;
  width: 22%;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58, 111, 143, 0.12), rgba(138, 90, 60, 0.08));
  transform: rotate(-12deg);
  transform-origin: left center;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.7s ease, box-shadow 0.7s ease, background 0.7s ease;
}

.intro-n2-s8 .map-territory.is-path-plaza-open .map-path-plaza {
  opacity: 1;
  background: linear-gradient(90deg, rgba(58, 111, 143, 0.95), rgba(212, 160, 23, 0.95), rgba(138, 90, 60, 0.95));
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.7), 0 0 28px rgba(58, 111, 143, 0.35);
  animation: pathReveal 1.2s ease-out;
}

.intro-n2-s8 .map-territory.is-path-plaza-open .map-fog-plaza {
  opacity: 0 !important;
  transition: opacity 1s ease;
}

.map-rio-glow {
  position: absolute;
  left: 30%;
  top: 42%;
  width: 26%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 180, 210, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.intro-n2-s8 .map-territory.is-rio-recovered .map-rio-glow {
  opacity: 1;
  animation: rioClearPulse 2.6s ease-in-out infinite;
}

.intro-n2-s8.is-unlock-revealed .map-node.zone-plaza.is-available .map-node-marker {
  animation: nestPulse 1.2s ease-in-out infinite;
}

/* Se?al levantada junto al nodo del r?o (sobre el mapa, no tarjeta) */
.map-rio-sign {
  position: absolute;
  left: 36%;
  top: 48%;
  width: 2.8rem;
  height: 3.6rem;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: rotate(22deg) translateY(10px);
  transform-origin: bottom center;
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.intro-n2-s8 .map-territory.is-rio-recovered .map-rio-sign,
.intro-n2-s8.is-sign-up .map-rio-sign {
  opacity: 1;
  transform: rotate(0deg) translateY(0);
}

.map-rio-sign-post {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.22rem;
  height: 100%;
  transform: translateX(-50%);
  background: #6b4a2e;
  border-radius: 2px;
}

.map-rio-sign-board {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2.7rem;
  padding: 0.15rem 0.12rem;
  border-radius: 0.2rem;
  background: #f3e7c8;
  border: 2px solid #6b4a2e;
  color: #2f5d4a;
  font-size: 0.42rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes rioClearPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 767.98px) {
  .intro-n2-s8 .character-layer.is-close-lumi,
  .intro-n2-s8 .character-layer.is-close-cuidador {
    width: min(22vw, 100px);
    height: min(22vh, 120px);
  }
  .map-rio-sign {
    left: 34%;
    top: 50%;
  }
}

/* N3-S8 ? cierre de plaza y desbloqueo de c?mara */
.intro-n3-s8 .character-layer.is-breathe img,
.intro-n3-s8 .character-layer.is-talk img,
.intro-n3-s8 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n3-s8 .character-layer.is-close-abuela {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 1%;
  width: min(22vw, 180px);
  max-width: 190px;
  height: min(40vh, 240px);
  z-index: 6;
}

.intro-n3-s8 .character-layer.is-close-abuela img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.intro-n3-s8 .map-nodes .map-node {
  pointer-events: none;
  cursor: default;
}

.intro-n3-s8 .close-map-title {
  color: #8a5a3c;
}

.map-path-plaza.is-done {
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(58, 111, 143, 0.9), rgba(138, 90, 60, 0.85));
  box-shadow: 0 0 10px rgba(138, 90, 60, 0.35);
}

.map-path-camara {
  position: absolute;
  left: 64%;
  top: 44%;
  width: 18%;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(138, 90, 60, 0.12), rgba(90, 70, 110, 0.08));
  transform: rotate(-18deg);
  transform-origin: left center;
  opacity: 0.3;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.7s ease, box-shadow 0.7s ease, background 0.7s ease;
}

.intro-n3-s8 .map-territory.is-path-camara-open .map-path-camara {
  opacity: 1;
  background: linear-gradient(90deg, rgba(138, 90, 60, 0.95), rgba(212, 160, 23, 0.95), rgba(110, 85, 150, 0.95));
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.7), 0 0 28px rgba(138, 90, 60, 0.35);
  animation: pathReveal 1.2s ease-out;
}

.intro-n3-s8 .map-territory.is-path-camara-open .map-fog-camara {
  opacity: 0 !important;
  transition: opacity 1s ease;
}

.map-plaza-glow {
  position: absolute;
  left: 52%;
  top: 36%;
  width: 26%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 170, 90, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.intro-n3-s8 .map-territory.is-plaza-recovered .map-plaza-glow,
.intro-n3-s8.is-plaza-color .map-plaza-glow {
  opacity: 1;
  animation: plazaColorPulse 2.6s ease-in-out infinite;
}

.map-plaza-plaque {
  position: absolute;
  left: 58%;
  top: 42%;
  width: clamp(2.4rem, 4.5vw, 3.4rem);
  height: auto;
  z-index: 3;
  opacity: 0.45;
  filter: grayscale(0.5) brightness(0.9);
  transform: rotate(4deg) scale(0.92);
  pointer-events: none;
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

.intro-n3-s8.is-plaque-lit .map-plaza-plaque,
.intro-n3-s8 .map-territory.is-plaza-recovered .map-plaza-plaque {
  opacity: 1;
  filter: grayscale(0) brightness(1.15) drop-shadow(0 0 12px rgba(255, 210, 120, 0.85));
  transform: rotate(0deg) scale(1);
  animation: plaqueGlow 2s ease-in-out infinite;
}

.map-plaza-song {
  position: absolute;
  left: 66%;
  top: 36%;
  width: clamp(2.2rem, 4vw, 3.1rem);
  height: auto;
  z-index: 3;
  opacity: 0.3;
  transform: rotate(-8deg) translateY(-6px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.intro-n3-s8.is-song-integrated .map-plaza-song,
.intro-n3-s8 .map-territory.is-plaza-recovered .map-plaza-song {
  opacity: 0.95;
  transform: rotate(-2deg) translateY(0);
  animation: songSettle 2.4s ease-in-out infinite;
}

.map-plaza-note {
  position: absolute;
  z-index: 3;
  color: rgba(138, 90, 60, 0.35);
  font-size: clamp(0.85rem, 1.6vw, 1.2rem);
  font-weight: 700;
  pointer-events: none;
  transition: color 0.6s ease, transform 0.8s ease, opacity 0.6s ease;
}

.map-plaza-note--1 { left: 54%; top: 34%; }
.map-plaza-note--2 { left: 70%; top: 48%; }
.map-plaza-note--3 { left: 62%; top: 30%; font-size: 0.9rem; }

.intro-n3-s8.is-song-integrated .map-plaza-note,
.intro-n3-s8 .map-territory.is-plaza-recovered .map-plaza-note {
  color: rgba(138, 90, 60, 0.85);
  animation: noteIntegrate 2.8s ease-in-out infinite;
}

.intro-n3-s8.is-song-integrated .map-plaza-note--1 { transform: translate(18px, 10px); }
.intro-n3-s8.is-song-integrated .map-plaza-note--2 { transform: translate(-14px, -8px); }
.intro-n3-s8.is-song-integrated .map-plaza-note--3 { transform: translate(6px, 14px); }

.intro-n3-s8.is-unlock-revealed .map-node.zone-camara.is-available .map-node-marker {
  animation: nestPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.4), 0 6px 14px rgba(0, 0, 0, 0.25);
}

@keyframes plazaColorPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes plaqueGlow {
  0%, 100% { filter: grayscale(0) brightness(1.1) drop-shadow(0 0 8px rgba(255, 210, 120, 0.6)); }
  50% { filter: grayscale(0) brightness(1.25) drop-shadow(0 0 16px rgba(255, 220, 140, 0.95)); }
}

@keyframes songSettle {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-3px); }
}

@keyframes noteIntegrate {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (max-width: 767.98px) {
  .intro-n3-s1 .character-layer.is-plaza-lumi,
  .intro-n3-s2 .character-layer.is-plaza-lumi,
  .intro-n3-s3 .character-layer.is-plaza-lumi,
  .intro-n3-s8 .character-layer.is-plaza-lumi {
    width: min(22vw, 100px);
    max-width: 110px;
    height: min(26vh, 140px);
  }

  .intro-n3-s2 .character-layer.is-plaza-lumi {
    left: 1%;
    bottom: max(4.25rem, 12%);
    z-index: 4;
  }

  .intro-n3-s7 .character-layer.is-plaza-lumi {
    width: min(20vw, 90px);
    max-width: 100px;
    height: min(22vh, 110px);
    right: 1%;
    bottom: 1%;
  }

  .intro-n3-s7 .character-layer[data-char="maestro_rastro"] {
    width: min(22vw, 95px);
    max-width: 105px;
    height: min(24vh, 120px);
    left: 1%;
    bottom: 1%;
  }

  .intro-n3-s5 .character-layer.is-plaza-lumi {
    width: min(20vw, 90px);
    max-width: 100px;
    height: min(22vh, 110px);
    right: 1%;
    bottom: 1%;
  }

  .intro-n3-s5 .character-layer[data-char="abuela_memoria"] {
    width: min(22vw, 95px);
    max-width: 105px;
    height: min(24vh, 120px);
    left: 1%;
    bottom: 1%;
  }

  .intro-n3-s8 .character-layer.is-close-abuela {
    width: min(22vw, 100px);
    height: min(22vh, 120px);
  }

  .map-plaza-plaque {
    left: 56%;
    top: 44%;
  }
  .map-plaza-song {
    left: 68%;
    top: 38%;
  }
}

/* N2-S6 — cruce: panel a la izquierda; elenco en carriles a la derecha */
.intro-n2-s6 .character-layer.is-breathe img,
.intro-n2-s6 .character-layer.is-talk img,
.intro-n2-s6 .character-layer.is-soft-breathe img {
  animation: none !important;
}

/* Orden en el suelo: Lumi · Visitante · Cuidador (sin montarse) */
.intro-n2-s6 .character-layer.is-n2dec-lumi {
  left: 42%;
  right: auto;
  z-index: 7;
  align-items: flex-end;
  transition: left 0.45s ease;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
}

.intro-n2-s6 .character-layer.is-n2dec-visitor {
  left: auto;
  right: 26%;
  z-index: 6;
  align-items: flex-end;
  transition: right 0.45s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.26));
}

.intro-n2-s6 .character-layer.is-n2dec-cuidador {
  left: auto;
  right: 1%;
  z-index: 5;
  align-items: flex-end;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.24));
}

/* Toasts arriba para no tapar el elenco ni el diálogo */
.intro-n2-s6 ~ .toast-host,
body:has(.intro-n2-s6) .toast-host {
  top: 4.5rem;
  bottom: auto;
  right: 0.75rem;
  left: auto;
}

.intro-n2-s6 .character-layer.is-n2dec-visitor img,
.intro-n2-s6 .character-layer.is-n2dec-cuidador img,
.intro-n2-s6 .character-layer.is-n2dec-lumi img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform: none;
}

/* Estados: solo un paso lateral, sin agrandar */
.intro-n2-s6.is-cross-risk .character-layer.is-n2dec-visitor {
  right: 28%;
}

.intro-n2-s6.is-cross-rush .character-layer.is-n2dec-visitor {
  right: 30%;
}

.intro-n2-s6.is-cross-alone .character-layer.is-n2dec-visitor {
  right: 32%;
}

.intro-n2-s6.is-cross-safe .character-layer.is-n2dec-visitor {
  right: 24%;
}

.intro-n2-s6.is-cross-rush .character-layer.is-n2dec-lumi,
.intro-n2-s6.is-cross-alone .character-layer.is-n2dec-lumi {
  left: 40%;
}

.intro-n2-s6.is-cross-safe .character-layer.is-n2dec-lumi {
  left: 44%;
}

.n2dec-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.n2dec-river-warn {
  position: absolute;
  left: 8%;
  top: 42%;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(160, 60, 40, 0.9);
  color: #fff8f0;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-n2-s6.is-cross-risk .n2dec-river-warn,
.intro-n2-s6.is-cross-rush .n2dec-river-warn,
.intro-n2-s6.is-cross-alone .n2dec-river-warn {
  opacity: 1;
  animation: nestPulse 1.2s ease-in-out infinite;
}

.intro-n2-s6.is-cross-safe .n2dec-river-warn {
  opacity: 0.2;
}

.n2dec-safe-sign {
  position: absolute;
  left: 48%;
  right: auto;
  bottom: 36%;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: linear-gradient(165deg, #f0e2c4, #d9c39a);
  border: 2px solid #8a6238;
  color: #2a241c;
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(-2deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  opacity: 0.55;
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
  z-index: 4;
}

.intro-n2-s6.is-cross-safe .n2dec-safe-sign {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(77, 139, 111, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.n2dec-ripple {
  position: absolute;
  left: 6%;
  bottom: 22%;
  width: 22%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 60, 40, 0.28), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intro-n2-s6.is-cross-risk .n2dec-ripple,
.intro-n2-s6.is-cross-rush .n2dec-ripple,
.intro-n2-s6.is-cross-alone .n2dec-ripple {
  opacity: 1;
  animation: bosqueRecoverPulse 1.6s ease-in-out infinite;
}

.intro-n2-s6 .n2dec-panel.decision-panel-side {
  left: 2%;
  right: auto;
  top: 3%;
  bottom: 3%;
  width: min(36%, 340px);
}

.intro-n2-s6.is-calm #mood-badge {
  background: var(--leaf) !important;
}

/* iPad Mini vertical: más aire entre carriles */
@media (max-width: 1024px) and (min-width: 768px) {
  .intro-n2-s6 .n2dec-panel.decision-panel-side {
    width: min(34%, 280px);
  }
  .intro-n2-s6 .character-layer.is-n2dec-lumi {
    left: 38%;
  }
  .intro-n2-s6 .character-layer.is-n2dec-visitor {
    right: 24%;
  }
  .intro-n2-s6 .character-layer.is-n2dec-cuidador {
    right: 1%;
  }
  .intro-n2-s6.is-cross-risk .character-layer.is-n2dec-visitor,
  .intro-n2-s6.is-cross-rush .character-layer.is-n2dec-visitor,
  .intro-n2-s6.is-cross-alone .character-layer.is-n2dec-visitor {
    right: 26%;
  }
  .intro-n2-s6.is-cross-safe .character-layer.is-n2dec-visitor {
    right: 22%;
  }
  .intro-n2-s6.is-cross-safe .character-layer.is-n2dec-lumi {
    left: 40%;
  }
}

@media (max-width: 767.98px) {
  .intro-n2-s6 .n2dec-panel.decision-panel-side {
    top: auto;
    left: 2%;
    right: 2%;
    bottom: 2%;
    width: auto;
    max-height: 46%;
  }
  /* En móvil el panel llena el espacio: sin Lumi encima de los botones */
  .intro-n2-s6 .character-layer.is-n2dec-lumi {
    display: none;
  }
  .intro-n2-s6 .character-layer.is-n2dec-visitor {
    left: auto;
    right: 34%;
  }
  .intro-n2-s6 .character-layer.is-n2dec-cuidador {
    left: auto;
    right: 2%;
  }
  .intro-n2-s6.is-cross-risk .character-layer.is-n2dec-visitor,
  .intro-n2-s6.is-cross-rush .character-layer.is-n2dec-visitor,
  .intro-n2-s6.is-cross-alone .character-layer.is-n2dec-visitor {
    right: 36%;
  }
  .intro-n2-s6.is-cross-safe .character-layer.is-n2dec-visitor {
    right: 30%;
  }
  .n2dec-safe-sign {
    right: 8%;
    bottom: 48%;
  }
}

/* Horizontal corto: diálogo al lado; elenco en el escenario */
@media (max-width: 767.98px) and (max-height: 420px) {
  .intro-n2-s6 .n2dec-panel.decision-panel-side {
    top: 2%;
    left: auto;
    right: 1%;
    bottom: 2%;
    width: min(42%, 260px);
    max-height: none;
  }
  .intro-n2-s6 .character-layer.is-n2dec-lumi {
    display: none;
  }
  .intro-n2-s6 .character-layer.is-n2dec-visitor {
    right: 48%;
  }
  .intro-n2-s6 .character-layer.is-n2dec-cuidador {
    right: 28%;
  }
}

/* N3-S6 ? decisi?n: comunicar la historia del lugar */
.intro-n3-s6 .character-layer.is-breathe img,
.intro-n3-s6 .character-layer.is-talk img,
.intro-n3-s6 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n3-s6 .character-layer.is-n3dec-visitor {
  left: auto;
  right: 22%;
  top: auto;
  bottom: 4%;
  width: min(20vw, 170px);
  max-width: 180px;
  height: min(38vh, 260px);
  z-index: 4;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
  transition: right 0.5s ease, bottom 0.5s ease, transform 0.45s ease;
  align-items: flex-end;
}

.intro-n3-s6 .character-layer.is-n3dec-abuela {
  left: auto;
  right: 1.5%;
  top: auto;
  bottom: 3%;
  width: min(20vw, 180px);
  max-width: 190px;
  height: min(42vh, 280px);
  z-index: 4;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.26));
  align-items: flex-end;
}

.intro-n3-s6 .character-layer.is-n3dec-visitor img,
.intro-n3-s6 .character-layer.is-n3dec-abuela img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n3-s6.is-mem-photos-only .character-layer.is-n3dec-visitor {
  right: 30%;
  bottom: 10%;
  transform: scale(0.92);
}

.intro-n3-s6.is-mem-recovered .character-layer.is-n3dec-visitor {
  right: 24%;
  bottom: 4%;
}

.intro-n3-s6 .n3dec-panel.decision-panel-side {
  left: 2%;
  right: auto;
  top: 3%;
  bottom: 3%;
  width: min(40%, 380px);
  z-index: 10;
  border-color: rgba(138, 90, 60, 0.28);
}

.intro-n3-s6 .decision-title {
  color: #8a5a3c;
}

.intro-n3-s6.is-calm #mood-badge {
  background: #4d8b6f !important;
  color: #fff !important;
}

.n3dec-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.n3dec-memory-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 62% 55%, rgba(160, 120, 80, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(40, 30, 20, 0.12), transparent 45%);
  opacity: 0.85;
  transition: opacity 0.7s ease, filter 0.7s ease, background 0.7s ease;
  filter: grayscale(0.45) saturate(0.7);
}

.intro-n3-s6.is-mem-partial .n3dec-memory-wash {
  filter: grayscale(0.2) saturate(0.9);
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 62% 55%, rgba(200, 160, 90, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(40, 30, 20, 0.08), transparent 45%);
}

.intro-n3-s6.is-mem-recovered .n3dec-memory-wash {
  filter: grayscale(0) saturate(1.15);
  opacity: 1;
  background:
    radial-gradient(ellipse at 58% 50%, rgba(230, 190, 110, 0.35), transparent 58%),
    radial-gradient(ellipse at 70% 70%, rgba(120, 170, 120, 0.2), transparent 50%);
  animation: n3decMemoryGlow 2.8s ease-in-out infinite;
}

.intro-n3-s6.is-mem-photos-only .n3dec-memory-wash {
  filter: grayscale(0.7) saturate(0.45);
  opacity: 0.95;
}

.n3dec-visitor-group {
  position: absolute;
  right: 34%;
  bottom: 10%;
  width: min(28%, 240px);
  height: min(34vh, 220px);
  z-index: 4;
}

.n3dec-crowd {
  position: absolute;
  bottom: 0;
  height: 85%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  opacity: 0.88;
}

.n3dec-crowd--a {
  left: 0;
  height: 78%;
  opacity: 0.75;
  transform: scaleX(-1);
}

.n3dec-crowd--b {
  left: 28%;
  height: 92%;
  z-index: 2;
}

.n3dec-crowd--c {
  right: 0;
  height: 70%;
  opacity: 0.7;
}

.intro-n3-s6.is-mem-recovered .n3dec-crowd {
  opacity: 1;
  animation: n3decCrowdListen 2.4s ease-in-out infinite;
}

.intro-n3-s6.is-mem-photos-only .n3dec-crowd--b {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 220, 140, 0.55));
}

.n3dec-photo {
  position: absolute;
  width: min(12%, 96px);
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) sepia(0.25);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.n3dec-photo--a {
  left: 48%;
  top: 18%;
  transform: rotate(-8deg);
}

.n3dec-photo--b {
  left: 58%;
  top: 28%;
  width: min(10%, 80px);
  transform: rotate(7deg);
  opacity: 0.4;
}

.intro-n3-s6.is-mem-photos-only .n3dec-photo {
  opacity: 0.95;
  animation: n3decPhotoFlash 1.1s ease-in-out infinite;
}

.intro-n3-s6.is-mem-recovered .n3dec-photo {
  opacity: 0.35;
}

.n3dec-songbook {
  position: absolute;
  left: 52%;
  bottom: 36%;
  width: min(11%, 88px);
  height: auto;
  opacity: 0.35;
  transform: rotate(-4deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.intro-n3-s6.is-mem-recovered .n3dec-songbook {
  opacity: 0.95;
  animation: n3decBookRise 2.2s ease-in-out infinite;
}

.intro-n3-s6.is-mem-partial .n3dec-songbook {
  opacity: 0.6;
}

.n3dec-plaque {
  position: absolute;
  left: 46%;
  bottom: 28%;
  width: min(9%, 72px);
  height: auto;
  opacity: 0.45;
  transform: rotate(3deg);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
  transition: opacity 0.55s ease, filter 0.55s ease;
}

.intro-n3-s6.is-mem-recovered .n3dec-plaque {
  opacity: 0.92;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)) saturate(1.15);
}

.intro-n3-s6.is-mem-photos-only .n3dec-plaque,
.intro-n3-s6.is-mem-photos-only .n3dec-songbook {
  opacity: 0.2;
  filter: grayscale(1);
}

.n3dec-caption {
  position: absolute;
  /* Zona libre entre panel y personajes, arriba ? no lo tapan */
  left: calc(min(40%, 380px) + 2.5%);
  right: 3%;
  top: 3.5%;
  bottom: auto;
  max-width: none;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(138, 90, 60, 0.22);
  color: #2a241c;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 8;
  text-align: center;
}

@keyframes n3decMemoryGlow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

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

@keyframes n3decPhotoFlash {
  0%, 100% { opacity: 0.75; transform: rotate(-8deg) scale(1); }
  50% { opacity: 1; transform: rotate(-4deg) scale(1.06); }
}

@keyframes n3decBookRise {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-6px); }
}

@media (max-width: 767.98px) {
  .intro-n3-s6 .n3dec-panel.decision-panel-side {
    top: auto;
    left: 2%;
    right: 2%;
    bottom: 2%;
    width: auto;
    max-height: 42%;
    z-index: 10;
  }
  .intro-n3-s6 .character-layer.is-n3dec-visitor,
  .intro-n3-s6 .character-layer.is-n3dec-abuela {
    width: min(22vw, 100px);
    height: min(24vh, 130px);
    bottom: max(44%, calc(42% + 0.75rem));
    z-index: 4;
  }
  .intro-n3-s6 .character-layer.is-n3dec-abuela {
    right: 1%;
  }
  .intro-n3-s6 .character-layer.is-n3dec-visitor {
    right: 26%;
  }
  .intro-n3-s6 .character-layer.is-n3dec-lumi {
    left: 1%;
    right: auto;
    bottom: max(44%, calc(42% + 0.75rem));
    width: min(18vw, 80px);
    height: min(20vh, 110px);
    z-index: 4;
  }
  .intro-n3-s6.is-mem-photos-only .character-layer.is-n3dec-visitor,
  .intro-n3-s6.is-mem-recovered .character-layer.is-n3dec-visitor {
    right: 26%;
    bottom: max(44%, calc(42% + 0.75rem));
  }
  .n3dec-caption {
    left: 2%;
    right: 2%;
    top: 2.5%;
    bottom: auto;
    max-width: none;
    font-size: 0.68rem;
    z-index: 8;
  }
  .n3dec-photo--b {
    display: none;
  }
}

/* N1-S7 ? composici?n fija: panel izq. / personajes der. (sin solapes) */
.intro-n1-s7 {
  /* Reserva slots desde el primer paint; evita salto al cargar */
  --hypo-panel-w: min(34%, 330px);
  --hypo-char-left: calc(var(--hypo-panel-w) + 2%);
}

.intro-n1-s7 .bg-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.intro-n1-s7 .character-layer.is-breathe img,
.intro-n1-s7 .character-layer.is-talk img,
.intro-n1-s7 .character-layer.is-soft-breathe img {
  animation: none !important;
}

/* Maestro: anclado a la derecha; caja fija speak_* (542×964) para que solo mueva la boca */
.intro-n1-s7 .character-layer.is-hypo-maestro {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: auto;
  height: min(72%, calc(var(--cast-adult-h, 50%) * 0.82));
  max-height: calc(var(--cast-adult-h, 50%) * 0.82);
  aspect-ratio: 542 / 964;
  max-width: min(28%, 300px);
  z-index: 4;
  justify-content: flex-end;
  align-items: flex-end;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
  transform: none !important;
  transform-origin: bottom right;
}

.intro-n1-s7 .character-layer.is-hypo-maestro img,
.intro-n1-s7 .character-layer.is-hypo-maestro .sprite-buf,
.intro-n1-s7 .character-layer.is-hypo-maestro.is-breathe img,
.intro-n1-s7 .character-layer.is-hypo-maestro.is-talk img,
.intro-n1-s7 .character-layer.is-hypo-maestro.is-soft-breathe img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  transform: none !important;
  animation: none !important;
}

/* Lumi: a la izquierda del Maestro, siempre dentro de la zona de personajes */
.intro-n1-s7 .character-layer.is-hypo-lumi {
  left: auto;
  right: calc(1% + min(28%, 300px) + 1%);
  top: auto;
  bottom: 1%;
  width: min(20vw, 190px);
  max-width: min(22%, 200px);
  height: min(42vh, 290px);
  z-index: 5;
  opacity: 1;
}

.intro-n1-s7 .character-layer.is-hypo-lumi img,
.intro-n1-s7 .character-layer.is-hypo-lumi .sprite-buf {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-n1-s7 .character-layer.is-hypo-lumi.is-conversing img,
.intro-n1-s7 .character-layer.is-hypo-lumi.is-conversing .sprite-buf {
  animation: none !important;
}

/* Sin micro-salto al hablar: misma caja que en reposo */
.intro-n1-s7.is-maestro-speaking .character-layer.is-hypo-maestro {
  transform: none !important;
  transform-origin: bottom right;
}

.hypo-panel {
  position: absolute;
  top: 3%;
  left: 2%;
  bottom: 3%;
  width: var(--hypo-panel-w, min(48%, 480px));
  max-width: 330px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.95);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  /* Altura y ancho reservados desde el primer frame */
  contain: layout;
}

.hypo-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--forest);
  line-height: 1.2;
}

.hypo-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(42, 36, 28, 0.7);
  line-height: 1.35;
}

.hypo-status {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}

.hypo-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
}

.hypo-section-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(47, 93, 74, 0.8);
}

.hypo-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  max-height: min(34vh, 260px);
}

.hypo-option {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  gap: 0.5rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.hypo-option:hover {
  border-color: rgba(77, 139, 111, 0.55);
  transform: translateY(-1px);
}

.hypo-option.is-selected {
  border-color: var(--leaf);
  background: rgba(232, 245, 236, 0.95);
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.14);
}

.hypo-option-key {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.82rem;
}

.hypo-option-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.hypo-ev-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 7.5rem;
  overflow-y: auto;
}

.hypo-ev {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.7rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  color: #2a241c;
  cursor: pointer;
}

.hypo-ev img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.hypo-ev.is-selected {
  border-color: var(--leaf);
  background: rgba(232, 245, 236, 0.96);
  box-shadow: 0 0 0 2px rgba(77, 139, 111, 0.14);
}

.hypo-ev.is-static {
  cursor: default;
  pointer-events: none;
}

.intro-n1-s7 #support-section {
  padding: 0.35rem;
  border: 2px solid rgba(77, 139, 111, 0.35);
  border-radius: 0.65rem;
  background: rgba(232, 245, 236, 0.45);
}

@keyframes hypoEvidenceHint {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.08); }
  50% { box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.28); }
}

.hypo-empty {
  font-size: 0.78rem;
  color: rgba(42, 36, 28, 0.7);
  line-height: 1.35;
}

.intro-n1-s7 .hypo-panel {
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
}
.intro-n1-s7 .hypo-title {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
}
.intro-n1-s7 .hypo-sub {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  line-height: 1.25;
}
.intro-n1-s7 .hypo-status {
  margin-top: 0.15rem;
  font-size: 0.66rem;
}
.intro-n1-s7 .hypo-section {
  gap: 0.25rem;
}
.intro-n1-s7 .hypo-section-label {
  font-size: 0.64rem;
}
.intro-n1-s7 .hypo-options {
  gap: 0.25rem;
  max-height: min(26vh, 168px);
}
.intro-n1-s7 .hypo-option {
  grid-template-columns: 1.3rem 1fr;
  gap: 0.32rem;
  padding: 0.28rem 0.4rem;
  border-radius: 0.5rem;
  border-width: 1px;
}
.intro-n1-s7 .hypo-option-key {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.66rem;
}
.intro-n1-s7 .hypo-option-text {
  font-size: 0.68rem;
  line-height: 1.2;
}
.intro-n1-s7 .hypo-ev-grid {
  gap: 0.25rem;
  max-height: 4.6rem;
}
.intro-n1-s7 .hypo-ev {
  gap: 0.25rem;
  padding: 0.16rem 0.35rem;
  border-radius: 0.45rem;
  border-width: 1px;
  font-size: 0.64rem;
}
.intro-n1-s7 .hypo-ev img {
  width: 1rem;
  height: 1rem;
}
.intro-n1-s7 .hypo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  flex-shrink: 0;
}
.intro-n1-s7 .hypo-actions .btn {
  min-height: 32px;
  font-size: 0.75rem;
  padding-inline: 0.7rem;
}

@media (max-width: 767.98px) {
  .intro-n1-s7 {
    --hypo-panel-w: auto;
  }

  /*
   * M?vil: el panel hace scroll completo (sin flex anidado que colapsa las opciones).
   * As? A/B/C siempre ocupan altura natural y se pueden elegir.
   */
  .intro-n1-s7 .hypo-panel {
    top: 1%;
    left: 1.5%;
    right: auto;
    bottom: auto;
    width: min(68%, 260px);
    max-width: 260px;
    height: auto;
    max-height: min(62%, calc(100% - 4.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: 0.28rem;
    padding: 0.4rem 0.45rem;
    contain: none;
  }

  .intro-n1-s7 .hypo-panel-head,
  .intro-n1-s7 .hypo-section,
  .intro-n1-s7 .hypo-actions {
    flex: 0 0 auto;
  }

  .intro-n1-s7 .hypo-sub {
    font-size: 0.64rem;
  }

  .intro-n1-s7 .hypo-status {
    font-size: 0.62rem;
    margin-top: 0.15rem;
  }

  .intro-n1-s7 .hypo-options {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    gap: 0.22rem;
  }

  .intro-n1-s7 .hypo-option {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    padding: 0.22rem 0.32rem;
    min-height: 0;
    gap: 0.28rem;
    border-radius: 0.45rem;
    flex: 0 0 auto;
  }

  .intro-n1-s7 .hypo-option-text {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .intro-n1-s7 .hypo-option-key {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.62rem;
  }

  .intro-n1-s7 .hypo-ev-grid {
    max-height: none;
    overflow: visible;
  }

  .intro-n1-s7 .hypo-ev {
    padding: 0.14rem 0.3rem;
    min-height: 0;
    font-size: 0.62rem;
  }

  .intro-n1-s7 .hypo-actions {
    position: sticky;
    bottom: 0;
    margin-top: 0.15rem;
    padding-top: 0.28rem;
    padding-bottom: 0.05rem;
    background: rgba(247, 243, 235, 0.97);
    z-index: 1;
  }

  .intro-n1-s7 .hypo-actions .btn {
    min-height: 28px;
    font-size: 0.68rem;
    flex: 1 1 auto;
  }

  /* Personajes más bajos — no compiten con el panel */
  .intro-n1-s7 .character-layer.is-hypo-maestro {
    left: auto;
    right: 2%;
    top: auto;
    bottom: 0.5%;
    width: auto;
    height: min(28%, 150px);
    max-height: 150px;
    max-width: min(36vw, 150px);
    aspect-ratio: 542 / 964;
    z-index: 4;
  }

  .intro-n1-s7 .character-layer.is-hypo-lumi {
    left: auto;
    right: calc(2% + min(36vw, 150px) + 2%);
    top: auto;
    bottom: 1%;
    width: min(16vw, 68px);
    max-width: 18%;
    height: min(14vh, 88px);
    z-index: 5;
  }
}

@media (max-width: 575.98px) {
  .intro-n1-s7 .hypo-panel {
    max-height: min(74%, calc(100% - 4.25rem));
    padding: 0.55rem 0.6rem;
  }

  .intro-n1-s7 .hypo-title {
    font-size: 0.9rem;
  }

  .intro-n1-s7 .hypo-option {
    min-height: 0;
    padding: 0.2rem 0.3rem;
  }

  .intro-n1-s7 .hypo-option-text {
    font-size: 0.62rem;
  }
}

/* Tablets / landscape bajo: mantener zona de personajes libre */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-n1-s7 .hypo-panel {
    top: 2%;
    bottom: 2%;
    left: 2%;
    right: auto;
    height: auto;
    max-height: none;
    width: min(42%, 360px);
    max-width: 360px;
  }

  .intro-n1-s7 .hypo-options {
    max-height: min(34vh, 180px);
  }

  .intro-n1-s7 .character-layer.is-hypo-maestro {
    top: auto;
    bottom: 1%;
    width: auto;
    height: min(70%, 180px);
    max-height: 180px;
    max-width: min(24%, 180px);
    aspect-ratio: 542 / 964;
  }

  .intro-n1-s7 .character-layer.is-hypo-lumi {
    right: calc(1% + min(24%, 180px) + 1%);
    width: min(14vw, 72px);
    max-width: 72px;
    height: min(28vh, 96px);
  }
}

/* N1-S5 ? entrevista conversacional con Guardiana */
.intro-n1-s5 .character-layer.is-interview-guardiana {
  left: auto;
  right: 1%;
  top: 8%;
  bottom: 1%;
  width: min(42vw, 360px);
  max-width: 380px;
  z-index: 4;
  justify-content: flex-end;
  align-items: flex-end;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.intro-n1-s5 .character-layer.is-interview-guardiana img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.intro-n1-s5 .character-layer.is-interview-lumi {
  left: auto;
  right: calc(1% + min(42vw, 360px) + 1.2%);
  top: auto;
  bottom: 2%;
  width: min(16vw, 120px);
  max-width: 130px;
  height: min(28vh, 150px);
  z-index: 4;
  opacity: 0.95;
}

.intro-n1-s5 .character-layer.is-interview-lumi.is-conversing img,
.intro-n1-s5 .character-layer.is-interview-lumi.is-breathe img,
.intro-n1-s5 .character-layer.is-interview-lumi.is-talk img,
.intro-n1-s5 .character-layer.is-interview-lumi.is-soft-breathe img {
  animation: none !important;
}

.intro-n1-s5 .character-layer.is-breathe img,
.intro-n1-s5 .character-layer.is-talk img,
.intro-n1-s5 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.interview-trail {
  position: absolute;
  right: 18%;
  bottom: 4%;
  z-index: 3;
  pointer-events: none;
}

.interview-sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.interview-sign-post {
  width: 0.45rem;
  height: 4.2rem;
  background: linear-gradient(180deg, #8a6238, #5c3f22);
  border-radius: 0.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.interview-sign-board {
  position: absolute;
  bottom: 2.6rem;
  right: -0.2rem;
  min-width: 7.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  background: linear-gradient(165deg, #f0e2c4, #d9c39a);
  border: 2px solid #8a6238;
  color: #2a241c;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
}

.interview-panel {
  position: absolute;
  top: 3%;
  left: 2%;
  bottom: 3%;
  width: min(46%, 420px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.interview-panel-head {
  flex-shrink: 0;
}

.interview-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--forest);
  line-height: 1.2;
}

.interview-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(42, 36, 28, 0.7);
  line-height: 1.35;
}

.interview-status {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}

.interview-opts {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow-y: auto;
}

.interview-q {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.7rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.interview-q:hover:not(:disabled) {
  border-color: rgba(77, 139, 111, 0.55);
  transform: translateY(-1px);
}

.interview-q:disabled {
  cursor: wait;
  opacity: 0.72;
}

.interview-q.is-selected {
  border-color: var(--leaf);
  background: rgba(232, 245, 236, 0.95);
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.15);
}

.interview-q.is-correct {
  border-color: var(--forest);
}

.interview-q-key {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
  color: var(--forest);
  font-weight: 800;
  font-size: 0.85rem;
}

.interview-q-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.interview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .interview-panel {
    top: 2%;
    left: 2%;
    right: 2%;
    bottom: auto;
    width: auto;
    max-height: 48%;
  }
  .intro-n1-s5 .character-layer.is-interview-guardiana {
    width: min(48vw, 220px);
    top: 42%;
    right: 1%;
  }
  .intro-n1-s5 .character-layer.is-interview-lumi {
    left: auto;
    right: calc(1% + min(48vw, 220px) + 1.5%);
    width: min(22vw, 90px);
    height: min(18vh, 100px);
  }
  .interview-trail {
    right: 8%;
    bottom: 8%;
    transform: scale(0.85);
  }
  .interview-q-text {
    font-size: 0.8rem;
  }
  .intro-n1-s5 .interview-panel {
    top: 2%;
    left: 2%;
    right: auto;
    bottom: auto;
    width: min(72%, 260px);
    max-height: 58%;
    gap: 0.32rem;
    padding: 0.4rem 0.45rem 0.45rem;
  }
  .intro-n1-s5 .interview-title {
    font-size: 0.88rem;
  }
  .intro-n1-s5 .interview-sub,
  .intro-n1-s5 .interview-status {
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .intro-n1-s5 .interview-opts {
    gap: 0.28rem;
  }
  .intro-n1-s5 .interview-q {
    grid-template-columns: 1.35rem 1fr;
    gap: 0.32rem;
    padding: 0.28rem 0.38rem;
    border-radius: 0.55rem;
    border-width: 1px;
  }
  .intro-n1-s5 .interview-q-key {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.66rem;
  }
  .intro-n1-s5 .interview-q-text {
    font-size: 0.66rem;
    line-height: 1.2;
  }
  .intro-n1-s5 .interview-actions {
    gap: 0.3rem;
    padding-top: 0.28rem;
  }
  .intro-n1-s5 .interview-actions .btn {
    min-height: 30px;
    font-size: 0.72rem;
    padding-inline: 0.6rem;
  }
}

/* N3-S3 ? entrevista a Abuela Memoria (sentada, fotos y cuaderno) */
.intro-n3-s3 .character-layer.is-breathe img,
.intro-n3-s3 .character-layer.is-talk img,
.intro-n3-s3 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-n3-s3 .character-layer.is-interview-abuela {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 4%;
  width: min(34vw, 280px);
  max-width: 300px;
  height: min(62vh, 420px);
  z-index: 8;
  pointer-events: none;
  justify-content: flex-end;
  align-items: flex-end;
  overflow: visible;
  clip-path: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.intro-n3-s3 .character-layer.is-interview-abuela img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
}

.intro-n3-s3.is-interview-speaking .character-layer.is-interview-abuela img {
  animation: none !important;
}

.intro-n3-s3.is-reply-warm .character-layer.is-interview-abuela {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(212, 160, 23, 0.35));
}

.intro-n3-s3 .n3s3-panel.interview-panel {
  border-color: rgba(138, 90, 60, 0.28);
  /* Mitad izquierda: deja hueco para Lumi + Abuela */
  width: min(40%, 360px);
  right: auto;
  bottom: 3%;
}

.intro-n3-s3 .interview-title {
  color: #8a5a3c;
}

/* Props entre el panel y el elenco, sin tapar a Lumi */
.n3s3-memory-props {
  position: absolute;
  right: 26%;
  bottom: 10%;
  width: min(22%, 200px);
  height: min(36vh, 240px);
  z-index: 5;
  pointer-events: none;
}

.n3s3-seat {
  display: none;
}

.n3s3-photo {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28)) sepia(0.15);
}

.n3s3-photo--a {
  left: 0;
  top: 8%;
  width: 58%;
  opacity: 0.92;
  transform: rotate(-7deg);
}

.n3s3-photo--b {
  left: 38%;
  top: 28%;
  width: 48%;
  opacity: 0.88;
  transform: rotate(6deg);
}

.n3s3-songbook {
  position: absolute;
  left: 8%;
  bottom: 4%;
  width: 62%;
  height: auto;
  opacity: 0.95;
  transform: rotate(-3deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  animation: n3s3BookIdle 4.5s ease-in-out infinite;
}

.intro-n3-s3.is-interview-speaking .n3s3-songbook {
  animation: n3s3BookSpeak 1.1s ease-in-out infinite;
}

.n3s3-note {
  position: absolute;
  color: rgba(138, 90, 60, 0.7);
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(255, 248, 230, 0.7);
  animation: n3s3NoteFloat 4.2s ease-in-out infinite;
}

.n3s3-note--1 {
  right: 6%;
  bottom: 42%;
}

.n3s3-note--2 {
  right: 18%;
  top: 4%;
  animation-delay: 0.8s;
  font-size: 0.9rem;
}

@keyframes n3s3AbuelaGesture {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-0.6deg); }
}

@keyframes n3s3BookIdle {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-3px); }
}

@keyframes n3s3BookSpeak {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(1deg) scale(1.04); }
}

@keyframes n3s3NoteFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 0.95; }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .intro-n3-s3 .n3s3-panel.interview-panel {
    width: min(38%, 320px);
  }
  .intro-n3-s3 .character-layer.is-plaza-lumi {
    right: 13%;
  }
  .n3s3-memory-props {
    right: 28%;
    width: min(20%, 170px);
  }
}

@media (max-width: 767.98px) {
  .intro-n3-s3 .character-layer.is-interview-abuela {
    width: min(42vw, 180px);
    height: min(40vh, 220px);
    bottom: 2%;
    right: 1%;
  }
  /* Lumi abajo a la izquierda, fuera de la tarjeta y de la Abuela */
  .intro-n3-s3 .character-layer.is-plaza-lumi {
    left: 3%;
    right: auto;
    bottom: 2%;
    z-index: 9;
    max-width: 20% !important;
  }
  .intro-n3-s3 .n3s3-panel.interview-panel {
    top: 2%;
    left: 2%;
    right: auto;
    bottom: auto;
    width: min(70%, 290px);
    max-height: 50%;
    gap: 0.32rem;
    padding: 0.4rem 0.45rem 0.45rem;
  }
  .intro-n3-s3 .interview-title {
    font-size: 0.88rem;
  }
  .intro-n3-s3 .interview-sub,
  .intro-n3-s3 .interview-status {
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .intro-n3-s3 .interview-opts {
    gap: 0.28rem;
  }
  .intro-n3-s3 .interview-q {
    grid-template-columns: 1.35rem 1fr;
    gap: 0.32rem;
    padding: 0.28rem 0.38rem;
    border-radius: 0.55rem;
    border-width: 1px;
  }
  .intro-n3-s3 .interview-q-key {
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.66rem;
  }
  .intro-n3-s3 .interview-q-text {
    font-size: 0.66rem;
    line-height: 1.2;
  }
  .intro-n3-s3 .interview-actions {
    flex-wrap: nowrap;
    gap: 0.3rem;
    justify-content: stretch;
    padding-top: 0.28rem;
  }
  .intro-n3-s3 .interview-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 30px;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
  }
  /* Sin foto ni libro en móvil: más hueco para el elenco */
  .intro-n3-s3 .n3s3-memory-props {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .classify-cols.classify-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro-n1-s4 .character-layer.is-classify-guide {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .classify-workspace {
    inset: 1% 1% 1% 1%;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem 0.45rem;
  }
  .intro-n1-s4 .classify-workspace {
    inset: 2.5%;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem 0.55rem;
  }
  .intro-n1-s4 .classify-hint {
    font-size: 0.75rem;
  }
  .intro-n1-s4 .classify-pool {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: auto;
  }
  .intro-n1-s4 .classify-item {
    gap: 0.35rem;
    padding: 0.35rem;
  }
  .intro-n1-s4 .classify-item-info {
    font-size: 0.7rem;
  }
  .intro-n1-s4 .classify-item-info img {
    width: 30px;
    height: 30px;
  }
  .intro-n1-s4 .classify-item-options {
    gap: 0.18rem;
  }
  .intro-n1-s4 .classify-choice-btn {
    min-height: 30px;
    padding-inline: 0.3rem;
    font-size: 0.6rem;
  }
  .intro-n1-s4 .classify-feedback ul {
    grid-template-columns: 1fr;
  }
  .classify-pool {
    max-height: 4.5rem;
  }
  .classify-cols,
  .classify-cols.classify-cols-4 {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    overflow-y: auto;
  }
  .classify-col {
    min-height: 5.5rem;
    height: auto;
  }
  .classify-drop {
    min-height: 3.5rem;
    max-height: 7rem;
  }
  .classify-actions {
    position: sticky;
    bottom: 0;
    justify-content: stretch;
    gap: 0.35rem;
  }
  .classify-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
    padding-inline: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .lupa-stage { min-height: 150px; }
}

/* ??? Fase 8: atm?sferas por zona ??? */
.zone-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.screen.theme-bosque .zone-atmosphere,
#game-shell.theme-bosque .screen .zone-atmosphere {
  opacity: 1;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(61, 107, 79, 0.45), transparent 55%),
    linear-gradient(180deg, rgba(30, 60, 40, 0.15), transparent 40%);
}

.screen.theme-rio .zone-atmosphere,
#game-shell.theme-rio .screen .zone-atmosphere {
  opacity: 1;
  background:
    radial-gradient(ellipse at 70% 70%, rgba(58, 111, 143, 0.42), transparent 55%),
    linear-gradient(200deg, rgba(40, 80, 110, 0.18), transparent 45%);
}

.screen.theme-plaza .zone-atmosphere,
#game-shell.theme-plaza .screen .zone-atmosphere {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(138, 90, 60, 0.38), transparent 55%),
    linear-gradient(160deg, rgba(120, 70, 40, 0.16), transparent 45%);
}

.screen.theme-camara .zone-atmosphere,
#game-shell.theme-camara .screen .zone-atmosphere {
  opacity: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(107, 90, 138, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(60, 50, 90, 0.14), transparent 50%);
}

/* CF-S1 ? entrada simb?lica a la C?mara de la Bit?cora */
.intro-cf-s1 .character-layer.is-breathe img,
.intro-cf-s1 .character-layer.is-talk img,
.intro-cf-s1 .character-layer.is-soft-breathe img {
  animation: none !important;
}

/* Solo posición y sombra. Alto/ancho: variables --cast-* del escenario. */
.intro-cf-s1 .character-layer.is-cfs1-lumi {
  left: 1%;
  right: auto;
  z-index: 6;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.intro-cf-s1 .character-layer.is-cfs1-maestro {
  left: auto;
  right: 1%;
  z-index: 6;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
}

.cfs1-chamber {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.cfs1-links {
  position: absolute;
  inset: 10% 10% 22% 10%;
  width: auto;
  height: auto;
  z-index: 1;
  overflow: visible;
}

.cfs1-link {
  stroke: rgba(212, 160, 23, 0.55);
  stroke-width: 0.45;
  stroke-dasharray: 2 1.2;
  animation: cfs1PulseLink 2.4s ease-in-out infinite;
}

.intro-cf-s1.is-ready .cfs1-link {
  stroke: rgba(120, 170, 130, 0.85);
  stroke-dasharray: none;
}

.cfs1-zone {
  position: absolute;
  z-index: 4;
  width: min(18%, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.88);
  border: 2px solid rgba(107, 90, 138, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.cfs1-zone--bosque { left: 12%; top: 18%; }
.cfs1-zone--rio { right: 12%; top: 18%; }
.cfs1-zone--plaza {
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
}

.cfs1-zone.is-complete {
  border-color: rgba(77, 139, 111, 0.65);
  box-shadow: 0 0 0 3px rgba(77, 139, 111, 0.18), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.cfs1-zone.is-pending {
  opacity: 0.82;
  filter: grayscale(0.25);
}

.cfs1-zone-art {
  width: 72%;
  height: auto;
  border-radius: 0.45rem;
  display: block;
}

.cfs1-zone-icon {
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #6b5a8a;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.cfs1-zone--bosque .cfs1-zone-icon { background: #3d6b4f; }
.cfs1-zone--rio .cfs1-zone-icon { background: #3a6f8f; }
.cfs1-zone--plaza .cfs1-zone-icon { background: #8a5a3c; }

.cfs1-zone-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2a241c;
}

.cfs1-zone-count {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(42, 36, 28, 0.65);
}

.cfs1-bitacora {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: auto;
  width: min(86%, 640px);
  text-align: center;
}

.cfs1-bitacora-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, rgba(90, 60, 40, 0.92), rgba(60, 40, 28, 0.95));
  box-shadow:
    0 0 0 3px rgba(212, 160, 23, 0.35),
    0 16px 36px rgba(0, 0, 0, 0.35);
  animation: cfs1BookGlow 3s ease-in-out infinite;
}

.cfs1-pages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  max-height: min(22vh, 190px);
  overflow: auto;
  text-align: left;
}

.cfs1-ev-group {
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #f7f0de 0%, #efe3c4 100%);
}

.cfs1-ev-group h3 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5a3d22;
}

.cfs1-ev-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfs1-ev {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0.28rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  color: #3a2a1a;
}

.cfs1-ev img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 0.2rem;
  flex: none;
  background: #fff;
}

.cfs1-ev span {
  min-width: 0;
}

.cfs1-ev--empty {
  font-weight: 650;
  color: rgba(58, 42, 26, 0.7);
}

.cfs1-page {
  min-height: 7.5rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.25rem;
  background: linear-gradient(180deg, #f7f0de 0%, #efe3c4 100%);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 50, 0.18);
}

.cfs1-page--left {
  border-right: 1px dashed rgba(120, 90, 50, 0.25);
}

.cfs1-page-title {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #5a3d22;
}

.cfs1-page-line {
  margin: 0 0 0.28rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #3a2a1a;
  padding-left: 0.7rem;
  position: relative;
}

.cfs1-page-line::before {
  content: "?";
  position: absolute;
  left: 0;
  color: #8a5a3c;
}

.cfs1-page-note {
  margin: 0.55rem 0 0;
  font-size: 0.66rem;
  font-weight: 650;
  color: rgba(58, 42, 26, 0.75);
  line-height: 1.35;
}

.cfs1-bitacora-caption {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  display: block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.92);
  border: 1px solid rgba(107, 90, 138, 0.25);
  color: #4a3a66;
  font-size: 0.66rem;
  font-weight: 800;
}

.cfs1-hud {
  position: absolute;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  width: min(88%, 480px);
  max-height: none;
  overflow: visible;
  padding: 0.4rem 0.65rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(107, 90, 138, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  text-align: center;
  pointer-events: auto;
}

.cfs1-title {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #6b5a8a;
}

.cfs1-sub {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #2a241c;
}

.cfs1-meta {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: rgba(42, 36, 28, 0.7);
}

.cfs1-feedback {
  margin-top: 0.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8a6238;
  line-height: 1.3;
}

.cfs1-feedback.is-ok {
  color: #2f5d4a;
}

.cfs1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.45rem;
}

@keyframes cfs1BookGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.3), 0 16px 36px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.5), 0 18px 40px rgba(0, 0, 0, 0.38); }
}

@keyframes cfs1PulseLink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-width: 767.98px) {
  /* En móvil el tablero llena el escenario: sin personajes detrás */
  .intro-cf-s1 .character-layer.is-cfs1-lumi,
  .intro-cf-s1 .character-layer.is-cfs1-maestro {
    display: none;
  }
  .cfs1-hud {
    top: 1%;
    width: min(96%, 420px);
    padding: 0.35rem 0.5rem;
  }
  .cfs1-bitacora {
    width: min(92%, 420px);
    top: 52%;
  }
  .cfs1-pages {
    max-height: min(28vh, 180px);
  }
  .cfs1-page {
    min-height: 5.5rem;
    padding: 0.4rem;
  }
  .cfs1-zone {
    width: min(28%, 110px);
  }
  .cfs1-zone--bosque { left: 4%; top: 30%; }
  .cfs1-zone--rio { right: 4%; top: 30%; }
  .cfs1-zone--plaza { bottom: 14%; }
  .cfs1-links {
    inset: 24% 4% 16% 4%;
  }
}

.cfs1-board {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(90%, 680px);
  max-height: 90%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: auto;
}

.cfs1-board .cfs1-bitacora {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
}

.cfs1-board .cfs1-pages {
  max-height: min(16vh, 120px);
}

.cfs1-ask {
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 0.9rem;
  background: rgba(247, 243, 235, 0.96);
  border: 1px solid rgba(107, 90, 138, 0.22);
}

.cfs1-ask-title {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: #5a3d22;
  text-align: center;
}

.cfs1-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.cfs1-opt {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.4rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(90, 61, 34, 0.18);
  background: #fffdf8;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2a241c;
}

.cfs1-opt-key {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(90, 61, 34, 0.12);
}

.cfs1-opt.is-selected {
  border-color: #2f5d4a;
  background: #e8f5ec;
}

.cfrec-board,
.cfquiz-board,
.cffin-board {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(88%, 640px);
  max-height: 88%;
  overflow: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.95);
  border: 1px solid rgba(47, 93, 74, 0.2);
  pointer-events: auto;
}

/* CF-REC: tablero más arriba; Lumi visible abajo a la izquierda */
.intro-cf-rec .cfrec-board {
  top: 4%;
  bottom: 30%;
  transform: translateX(-50%);
  max-height: none;
  width: min(86%, 600px);
  padding: 0.55rem 0.65rem;
}

.intro-cf-rec .character-layer.is-cfrec-lumi {
  left: 2%;
  right: auto;
  bottom: 2%;
  z-index: 9;
  max-width: 18% !important;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.intro-cf-rec .cfrec-card img {
  height: 72px;
}

.intro-cf-rec .cfrec-badge img {
  height: 52px;
}

.intro-cf-rec .cfrec-badges {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.cfrec-title,
.cfquiz-title,
.cffin-title {
  text-align: center;
  color: #2f5d4a;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.cfrec-subtitle,
.cfquiz-count {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #5a3d22;
}

.cfrec-places,
.cfrec-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cfrec-card,
.cfrec-badge {
  min-width: 0;
  padding: 0.35rem;
  border-radius: 0.7rem;
  background: #fffdf8;
  border: 1px solid rgba(90, 61, 34, 0.16);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #3a2a1a;
}

.cfrec-card img,
.cfrec-badge img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.45rem;
  background: #efe3c4;
}

.cfrec-badge img {
  object-fit: contain;
  height: 64px;
  background: transparent;
}

.cfrec-empty {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.cfquiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.cfquiz-opt {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.4rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}

.cfquiz-key {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.12);
}

.cfquiz-opt.is-ok {
  border-color: #2f5d4a;
  background: #e8f5ec;
}

.cfquiz-opt.is-bad {
  border-color: #8a6238;
  background: #fff4e8;
}

.cffin-score {
  margin-top: 0.35rem;
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #2f5d4a;
  line-height: 1;
}

.cffin-quiz {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.cffin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

@media (max-height: 430px) {
  .cfs1-board .cfs1-bitacora {
    display: none;
  }

  .cfs1-ask {
    padding: 0.4rem 0.5rem;
  }

  .cfs1-opt {
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .intro-cf-rec .cfrec-board {
    bottom: 28%;
    width: min(84%, 560px);
  }
  .intro-cf-rec .cfrec-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .intro-cf-rec .character-layer.is-cfrec-lumi {
    left: 2%;
    bottom: 2%;
  }
}

@media (max-width: 767.98px) {
  .cfrec-card img {
    height: 58px;
  }
  .cfrec-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro-cf-rec .cfrec-board {
    top: 3%;
    bottom: 32%;
    width: min(92%, 420px);
    padding: 0.45rem 0.5rem;
  }
  .intro-cf-rec .cfrec-card img {
    height: 48px;
  }
  .intro-cf-rec .cfrec-badge img {
    height: 44px;
  }
  .intro-cf-rec .cfrec-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .intro-cf-rec .character-layer.is-cfrec-lumi {
    left: 1%;
    bottom: 1%;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro-cf-rec .cfrec-board {
    top: 2%;
    bottom: 8%;
    left: 2%;
    right: auto;
    transform: none;
    width: min(58%, 420px);
    max-height: none;
  }
  .intro-cf-rec .character-layer.is-cfrec-lumi {
    left: auto;
    right: 2%;
    bottom: 2%;
  }
}

/* CF-S2 ? hip?tesis final con resumen de bit?cora */
.intro-cf-s2 .character-layer.is-breathe img,
.intro-cf-s2 .character-layer.is-talk img,
.intro-cf-s2 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-cf-s2 .character-layer.is-cfs2-lumi {
  left: 1%;
  top: auto;
  bottom: 2%;
  width: min(14vw, 110px);
  max-width: 120px;
  height: min(24vh, 140px);
  z-index: 3;
}

.intro-cf-s2 .character-layer.is-cfs2-maestro {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: min(18vw, 150px);
  max-width: 160px;
  height: min(34vh, 200px);
  z-index: 3;
}

.intro-cf-s2 .character-layer.is-cfs2-lumi img,
.intro-cf-s2 .character-layer.is-cfs2-maestro img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.cfs2-workspace {
  position: absolute;
  inset: 2% 10% 12% 10%;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  min-height: 0;
  pointer-events: none;
}

.cfs2-summary,
.cfs2-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.95);
  border: 1px solid rgba(107, 90, 138, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.cfs2-summary-title,
.cfs2-panel-title {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #6b5a8a;
  line-height: 1.2;
}

.cfs2-summary-sub,
.cfs2-panel-sub {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: rgba(42, 36, 28, 0.75);
}

.cfs2-hint {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a5a3c;
  line-height: 1.3;
}

.cfs2-zones {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.cfs2-zone {
  padding: 0.4rem 0.45rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 90, 138, 0.14);
}

.cfs2-zone-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.cfs2-zone-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cfs2-zone--bosque .cfs2-zone-icon { background: #3d6b4f; }
.cfs2-zone--rio .cfs2-zone-icon { background: #3a6f8f; }
.cfs2-zone--plaza .cfs2-zone-icon { background: #8a5a3c; }

.cfs2-zone-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #2a241c;
}

.cfs2-zone-meta {
  font-size: 0.62rem;
  font-weight: 650;
  color: rgba(42, 36, 28, 0.65);
}

.cfs2-ev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cfs2-ev-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0.45rem;
  background: rgba(247, 243, 235, 0.9);
  border-left: 3px solid rgba(107, 90, 138, 0.25);
  font-size: 0.66rem;
  font-weight: 700;
  color: #2a241c;
}

.cfs2-ev-chip.is-util {
  border-left-color: #4d8b6f;
}

.cfs2-ev-chip img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.cfs2-ev-empty {
  font-size: 0.66rem;
  color: rgba(42, 36, 28, 0.55);
  font-weight: 650;
}

.cfs2-status {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a6238;
  line-height: 1.3;
}

.cfs2-hypo-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
}

.cfs2-hypo {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  gap: 0.5rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 0.85rem;
  border: 2px solid rgba(107, 90, 138, 0.18);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.cfs2-hypo:hover {
  border-color: rgba(107, 90, 138, 0.5);
  transform: translateY(-1px);
}

.cfs2-hypo.is-selected {
  border-color: #6b5a8a;
  background: rgba(235, 230, 245, 0.95);
  box-shadow: 0 0 0 3px rgba(107, 90, 138, 0.14);
}

.cfs2-hypo-key {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(107, 90, 138, 0.14);
  color: #6b5a8a;
  font-weight: 800;
  font-size: 0.82rem;
}

.cfs2-hypo-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.cfs2-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(107, 90, 138, 0.14);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .cfs2-workspace {
    inset: 2% 2% 18% 2%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .intro-cf-s2 .character-layer.is-cfs2-lumi,
  .intro-cf-s2 .character-layer.is-cfs2-maestro {
    width: min(18vw, 80px);
    height: min(18vh, 100px);
  }
}

/* CF-S5 ? tres rutas de acci?n sobre el mapa */
.intro-cf-s5 .character-layer.is-breathe img,
.intro-cf-s5 .character-layer.is-talk img,
.intro-cf-s5 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-cf-s5 .character-layer.is-cfs5-lumi {
  left: 0.5%;
  top: auto;
  bottom: 1%;
  width: min(12vw, 95px);
  max-width: 100px;
  height: min(22vh, 130px);
  z-index: 3;
}

.intro-cf-s5 .character-layer.is-cfs5-guardiana {
  left: auto;
  right: 22%;
  top: auto;
  bottom: 1%;
  width: min(11vw, 90px);
  max-width: 95px;
  height: min(22vh, 125px);
  z-index: 3;
}

.intro-cf-s5 .character-layer.is-cfs5-cuidador {
  left: auto;
  right: 11%;
  top: auto;
  bottom: 1%;
  width: min(11vw, 90px);
  max-width: 95px;
  height: min(22vh, 125px);
  z-index: 3;
}

.intro-cf-s5 .character-layer.is-cfs5-abuela {
  left: auto;
  right: 0.5%;
  top: auto;
  bottom: 1%;
  width: min(12vw, 95px);
  max-width: 100px;
  height: min(22vh, 130px);
  z-index: 3;
}

.intro-cf-s5 .character-layer.is-cfs5-lumi img,
.intro-cf-s5 .character-layer.is-cfs5-guardiana img,
.intro-cf-s5 .character-layer.is-cfs5-cuidador img,
.intro-cf-s5 .character-layer.is-cfs5-abuela img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-cf-s5 .character-layer.is-cfs5-lumi.is-conversing img {
  animation: none !important;
}

.cfs5-map.map-territory {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.intro-cf-s5 .cfs5-zone-node {
  pointer-events: none;
  cursor: default;
}

.cfs5-routes {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  top: 5%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 1vw, 0.65rem);
  z-index: 6;
  pointer-events: none;
}

.cfs5-route {
  position: relative;
  left: auto;
  top: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  width: auto;
  max-width: none;
  padding: 0.45rem 0.5rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.94);
  border: 2px solid rgba(42, 36, 28, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.cfs5-route--cuidado {
  border-color: rgba(61, 107, 79, 0.45);
}

.cfs5-route--rutas {
  border-color: rgba(58, 111, 143, 0.45);
}

.cfs5-route--memoria {
  border-color: rgba(138, 90, 60, 0.45);
}

.cfs5-route-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cfs5-route--cuidado .cfs5-route-icon { background: #3d6b4f; }
.cfs5-route--rutas .cfs5-route-icon { background: #3a6f8f; }
.cfs5-route--memoria .cfs5-route-icon { background: #8a5a3c; }

.cfs5-route-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2a241c;
  line-height: 1.2;
}

.cfs5-route-sub {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(42, 36, 28, 0.65);
}

.cfs5-route-detail {
  margin-top: 0.12rem;
  font-size: 0.58rem;
  font-weight: 650;
  color: rgba(42, 36, 28, 0.8);
  line-height: 1.25;
}

.cfs5-route.is-active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.28), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.cfs5-route.is-linked {
  border-width: 2px;
}

.cfs5-route--cuidado.is-linked { border-color: #3d6b4f; }
.cfs5-route--rutas.is-linked { border-color: #3a6f8f; }
.cfs5-route--memoria.is-linked { border-color: #8a5a3c; }

.cfs5-route.is-dim {
  opacity: 0.55;
  filter: grayscale(0.25);
}

.cfs5-link {
  position: absolute;
  z-index: 3;
  height: 3px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.cfs5-link--bosque-rio {
  left: 24%;
  top: 50%;
  width: 18%;
  transform: rotate(-4deg);
}

.cfs5-link--rio-plaza {
  left: 48%;
  top: 48%;
  width: 16%;
  transform: rotate(-8deg);
}

.cfs5-link--all {
  left: 22%;
  top: 36%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, #3d6b4f, #3a6f8f, #8a5a3c);
  transform: rotate(-3deg);
}

.cfs5-map.is-integral .cfs5-link {
  opacity: 1;
  background: linear-gradient(90deg, #3d6b4f, #d4a017, #8a5a3c);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.45);
}

.cfs5-map.is-partial .cfs5-link--rio-plaza,
.cfs5-map.is-partial .cfs5-link--bosque-rio {
  opacity: 0.35;
}

.cfs5-map.is-integral::after {
  content: "";
  position: absolute;
  inset: 18% 12% 28% 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 160, 23, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: cfs5RecoverGlow 2.2s ease-in-out infinite;
}

@keyframes cfs5RecoverGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.cfs5-hud {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 9;
  width: min(92%, 580px);
  max-height: min(34vh, 260px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.96);
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  overflow: hidden;
}

.cfs5-title {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--forest, #2f5d4a);
  line-height: 1.2;
}

.cfs5-caption {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(42, 36, 28, 0.75);
}

.cfs5-hypo {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: #6b5a8a;
  line-height: 1.3;
}

.cfs5-status {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 750;
  color: #8a6238;
  line-height: 1.3;
}

.cfs5-acts {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  overflow-y: auto;
}

.cfs5-act {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.4rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 0.7rem;
  border: 2px solid rgba(47, 93, 74, 0.16);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.cfs5-act:hover {
  border-color: rgba(47, 93, 74, 0.45);
  transform: translateY(-1px);
}

.cfs5-act.is-selected {
  border-color: #2f5d4a;
  background: rgba(232, 242, 234, 0.95);
  box-shadow: 0 0 0 3px rgba(47, 93, 74, 0.12);
}

.cfs5-act-key {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.14);
  color: #2f5d4a;
  font-weight: 800;
  font-size: 0.78rem;
}

.cfs5-act-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.cfs5-act-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8a6238;
}

.cfs5-act[data-quality="responsable"] .cfs5-act-tag { color: #2f5d4a; }
.cfs5-act[data-quality="incorrecta"] .cfs5-act-tag { color: #9a4a3c; }

.cfs5-act-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.3;
}

.cfs5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(47, 93, 74, 0.14);
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .cfs5-routes {
    left: 2%;
    right: 2%;
    top: 4%;
    gap: 0.35rem;
  }
  .cfs5-route {
    padding: 0.35rem 0.4rem;
  }
  .cfs5-route-detail { display: none; }
  .cfs5-hud {
    bottom: 13%;
    max-height: min(38vh, 240px);
    width: min(94%, 520px);
  }
  .intro-cf-s5 .character-layer.is-cfs5-lumi,
  .intro-cf-s5 .character-layer.is-cfs5-guardiana,
  .intro-cf-s5 .character-layer.is-cfs5-cuidador,
  .intro-cf-s5 .character-layer.is-cfs5-abuela {
    width: min(14vw, 70px);
    height: min(16vh, 90px);
  }
  .intro-cf-s5 .character-layer.is-cfs5-guardiana { right: 28%; }
  .intro-cf-s5 .character-layer.is-cfs5-cuidador { right: 14%; }
}

@media (max-width: 575.98px) {
  .cfs5-routes {
    grid-template-columns: 1fr;
    max-width: min(52%, 220px);
    top: 3%;
  }
  .cfs5-hud {
    bottom: 11%;
    max-height: min(42vh, 220px);
  }
}

/* CF-S6 ? territorio recuperado + bit?cora final */
.intro-cf-s6 .character-layer.is-breathe img,
.intro-cf-s6 .character-layer.is-talk img,
.intro-cf-s6 .character-layer.is-soft-breathe img {
  animation: none !important;
}

.intro-cf-s6 .character-layer.is-cfs6-lumi {
  left: 1%;
  top: auto;
  bottom: 1%;
  width: min(14vw, 110px);
  max-width: 115px;
  height: min(24vh, 145px);
  z-index: 8;
}

.intro-cf-s6 .character-layer.is-cfs6-maestro {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 1%;
  width: min(16vw, 130px);
  max-width: 140px;
  height: min(28vh, 170px);
  z-index: 8;
}

.intro-cf-s6 .character-layer.is-cfs6-lumi img,
.intro-cf-s6 .character-layer.is-cfs6-maestro img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.intro-cf-s6 .character-layer.is-cfs6-lumi.is-conversing img {
  animation: none !important;
}

.cfs6-shell {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 1.5%;
  bottom: 18%;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  pointer-events: none;
}

.cfs6-shell > * {
  pointer-events: auto;
}

.cfs6-workspace {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.5rem;
}

.cfs6-result,
.cfs6-bitacora {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem;
  border-radius: 0.95rem;
  background: rgba(247, 243, 235, 0.96);
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.cfs6-result {
  text-align: center;
  align-items: center;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top, rgba(212, 160, 23, 0.16), transparent 55%),
    rgba(247, 243, 235, 0.97);
}

.cfs6-badge {
  width: 56px;
  height: 56px;
  margin-bottom: 0.25rem;
}

.cfs6-band {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
}

.cfs6-band--alto { background: #2f5d4a; }
.cfs6-band--medio { background: #8a6238; }
.cfs6-band--bajo { background: #6b6b6b; }

.cfs6-result-title {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--forest, #2f5d4a);
  line-height: 1.2;
}

.cfs6-result-msg {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2a241c;
  line-height: 1.35;
}

.cfs6-meta {
  margin-top: 0.25rem;
  font-size: 0.66rem;
  color: rgba(42, 36, 28, 0.7);
}

.cfs6-stats {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  width: 100%;
  font-size: 0.66rem;
  font-weight: 650;
  color: #2a241c;
  line-height: 1.35;
}

.cfs6-stats li + li { margin-top: 0.15rem; }

.cfs6-stat-action {
  line-height: 1.35;
}

.cfs6-bit-head {
  flex-shrink: 0;
}

.cfs6-bit-title {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: #6b5a8a;
  line-height: 1.2;
}

.cfs6-bit-sub {
  margin-top: 0.1rem;
  font-size: 0.66rem;
  font-weight: 650;
  color: rgba(42, 36, 28, 0.65);
}

.cfs6-bit-body {
  flex: 1;
  min-height: 0;
  margin-top: 0.35rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cfs6-bit-zone {
  padding: 0.35rem 0.4rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(107, 90, 138, 0.12);
}

.cfs6-bit-zone-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2a241c;
  margin-bottom: 0.25rem !important;
}

.cfs6-bit-zone--bosque .cfs6-bit-zone-title { color: #3d6b4f; }
.cfs6-bit-zone--rio .cfs6-bit-zone-title { color: #3a6f8f; }
.cfs6-bit-zone--plaza .cfs6-bit-zone-title { color: #8a5a3c; }

.cfs6-ev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cfs6-ev {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #2a241c;
  padding: 0.15rem 0.25rem;
  border-radius: 0.35rem;
  border-left: 3px solid rgba(107, 90, 138, 0.25);
  background: rgba(247, 243, 235, 0.85);
}

.cfs6-ev.is-util { border-left-color: #4d8b6f; }
.cfs6-ev.is-discarded { opacity: 0.55; text-decoration: line-through; }

.cfs6-ev img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: cover;
  border-radius: 0.2rem;
  flex-shrink: 0;
}

.cfs6-ev-empty {
  font-size: 0.62rem;
  color: rgba(42, 36, 28, 0.55);
  font-weight: 650;
}

/* Barra de acciones ? siempre debajo del workspace, sin solaparse */
.cfs6-toolbar {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  flex-shrink: 0;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 1rem;
  background: rgba(247, 243, 235, 0.97);
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.cfs6-toolbar .btn {
  min-height: 2.4rem;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: normal;
  line-height: 1.15;
  padding: 0.4rem 0.35rem;
}

.intro-cf-s6.is-finished .cfs6-bitacora {
  opacity: 0.85;
}

@media (max-width: 991.98px) {
  .cfs6-shell {
    left: 2%;
    right: 2%;
    bottom: 16%;
  }
  .cfs6-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }
  .cfs6-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .intro-cf-s6 .character-layer.is-cfs6-lumi,
  .intro-cf-s6 .character-layer.is-cfs6-maestro {
    width: min(14vw, 80px);
    height: min(18vh, 100px);
  }
}

@media (max-width: 575.98px) {
  .cfs6-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .cfs6-badge { width: 44px; height: 44px; }
}

@media print {
  .cfs6-shell {
    position: static;
    inset: auto;
  }
  .cfs6-toolbar,
  .intro-cf-s6 .character-layer,
  #dialog-panel {
    display: none !important;
  }
  .cfs6-workspace {
    max-height: none;
    width: 100%;
  }
}

.screen.theme-mapa .zone-atmosphere,
#game-shell.theme-mapa .screen .zone-atmosphere {
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(212, 160, 23, 0.2), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(47, 93, 74, 0.22), transparent 55%);
}

.cf-badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.5rem;
  display: block;
}

.final-card.is-certificate {
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(212, 160, 23, 0.18), transparent 55%),
    rgba(247, 243, 235, 0.97);
  border: 2px solid rgba(47, 93, 74, 0.28);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.12);
}

.final-card.is-certificate ul {
  text-align: left;
  display: inline-block;
}

.art-placeholder-note {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .zone-atmosphere { transition: none; }
}

/* P3: el ave es la más baja, el joven queda en medio y los adultos un poco más altos. */
.intro-p3 {
  /* Más margen a la derecha = el elenco se corre un poco a la izquierda. */
  --p3-side: 11%;
  --p3-adult-w: var(--cast-adult-w);
}

/* Encuadre desde el suelo, sin tanto zoom. */
.intro-p3 .bg-cover {
  object-fit: cover;
  object-position: center 72%;
  transform: perspective(900px) rotateX(-4deg) scale(1.08);
  transform-origin: center bottom;
}

.intro-p3 .character-layer.is-large,
.intro-p3 .character-layer.is-flying {
  top: 10%;
  bottom: auto;
  left: 6%;
  width: min(14%, 110px);
  max-width: min(16%, 120px);
  height: 24%;
  z-index: 5;
  align-items: center;
  justify-content: center;
}

/* Vuelo: llega al lado del Maestro (derecha) */
.intro-p3 .character-layer.is-flying {
  animation: p3FlyToMaestro 1.7s ease-in-out forwards;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.intro-p3 .character-layer.is-flying img {
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  transform: scaleX(-1);
}

.intro-p3 .character-layer.is-guide-large {
  top: auto;
  bottom: 1%;
  right: var(--p3-side);
  left: auto;
  height: 50%;
  width: var(--p3-adult-w);
  max-width: var(--p3-adult-w);
  z-index: 4;
  align-items: flex-end;
  justify-content: flex-end;
}

.intro-p3 .character-layer.is-guide-large.is-youth {
  height: 38%;
  width: min(17%, 145px);
  max-width: min(17%, 145px);
}

.intro-p3 .character-layer.is-guide-large img {
  height: 100%;
  max-height: none;
}

.intro-p3 .character-layer.is-cast {
  visibility: hidden;
}

.intro-p3 .character-layer.is-cast.is-onstage {
  visibility: visible;
}

.intro-p3 .character-layer.is-guide-large.is-breathe img,
.intro-p3 .character-layer.is-guide-large.is-talk img {
  animation: none !important;
}

/* Lumi de pie justo a la izquierda del Maestro */
.intro-p3 .character-layer.is-conversing {
  top: auto;
  bottom: 1%;
  left: auto;
  right: calc(var(--p3-side) + var(--p3-adult-w) + 0.4rem);
  width: min(13%, 105px);
  max-width: min(14%, 110px);
  height: var(--cast-bird-h);
  animation: none !important;
  transform: none !important;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 5;
}

.intro-p3 .character-layer.is-conversing img,
.intro-p3 .character-layer.is-conversing.is-breathe img,
.intro-p3 .character-layer.is-conversing.is-talk img,
.intro-p3 .character-layer.is-conversing.is-soft-breathe img {
  height: 100%;
  max-height: 100%;
  object-position: bottom right;
  transform-origin: bottom center;
  animation: none !important;
}

@keyframes p3FlyToMaestro {
  0% {
    transform: translate(0, 0) rotate(5deg);
  }
  55% {
    transform: translate(38vw, 12vh) rotate(2deg);
  }
  100% {
    transform: translate(48vw, 22vh) rotate(0deg);
  }
}

@media (max-width: 767.98px) {
  @keyframes p3FlyToMaestro {
    0% { transform: translate(0, 0) rotate(5deg); }
    100% { transform: translate(36vw, 20vh) rotate(0deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-p3 .character-layer.is-flying {
    animation: none !important;
    left: auto;
    right: calc(var(--p3-side) + var(--p3-adult-w));
    bottom: 8%;
    top: auto;
  }
  #dialog-panel.is-speaking .dialog-avatar {
    animation: none !important;
  }
}






/* ?? MinCIT: misi?n investigativa ?? */
.mision-card {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(247, 243, 235, 0.96), rgba(232, 242, 236, 0.92));
  border: 1px solid rgba(47, 93, 74, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.mision-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(42, 36, 28, 0.62);
}
.mision-card-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--forest, #2f5d4a);
}
.mision-card-grid {
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem 0 0.75rem;
}
.mision-card-grid dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(42, 36, 28, 0.55);
}
.mision-card-grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.mision-metodo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mision-metodo-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 93, 74, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
}
.mision-metodo-icon .bi { color: var(--forest, #2f5d4a); }

.mision-s1-dock,
.mision-hypo-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 520px);
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(247, 243, 235, 0.94);
  border: 1px solid rgba(47, 93, 74, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.intro-n1-s1 .mision-s1-dock {
  top: 2%;
  left: 2%;
  right: auto;
  bottom: auto;
  transform: none;
  width: min(36%, 240px);
  max-height: 52%;
  overflow: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-panel {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  margin: 0;
  padding: 0.3rem 0.4rem;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-title {
  font-size: 0.72rem;
  margin-bottom: 0.1rem;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-panel .small {
  font-size: 0.62rem;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-options {
  max-height: none;
  overflow: visible;
  gap: 0.12rem;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-option {
  padding: 0.1rem 0.25rem;
  font-size: 0.64rem;
  line-height: 1.15;
  gap: 0.22rem;
}
.intro-n1-s1 .mision-s1-dock .mision-hypo-option input {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.08rem;
  flex: 0 0 auto;
}
@media (max-width: 767.98px) {
  .intro-n1-s1 .mision-s1-dock {
    width: min(54%, 220px);
  }
}

/* 375×812, letra 115 %: «Aceptar misión» no queda bajo el borde del diálogo. */
@media (max-width: 430px) and (orientation: portrait) {
  html[data-font-scale-level="4"] body:has(.intro-n1-s1) #dialog-panel {
    max-height: min(46dvh, 18rem);
  }
}
.mision-hypo-title { font-weight: 700; font-size: 0.95rem; }
.mision-hypo-options { display: grid; gap: 0.35rem; max-height: 38vh; overflow: auto; }
.mision-hypo-option {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(47, 93, 74, 0.18);
  background: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.3;
}
.mision-hypo-option.is-selected {
  border-color: var(--forest, #2f5d4a);
  background: rgba(47, 93, 74, 0.08);
}
.n2s1-workspace .mision-hypo-panel,
.n3s1-workspace .mision-hypo-panel {
  position: relative;
  left: auto;
  transform: none;
  width: 100%;
  margin: 0.5rem 0;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-panel {
  justify-self: end;
  width: min(100%, 280px);
  margin: 0;
  padding: 0.35rem 0.45rem;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-title {
  font-size: 0.78rem;
  margin-bottom: 0.05rem;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-panel .small {
  font-size: 0.66rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-options {
  gap: 0.18rem;
  max-height: none;
  overflow: visible;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-option {
  padding: 0.16rem 0.32rem;
  font-size: 0.7rem;
  line-height: 1.2;
  gap: 0.28rem;
  border-radius: 0.4rem;
}

.intro-n2-s1 .n2s1-workspace .mision-hypo-option input {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

/* N2-S2: herramientas de exploración del río */
.intro-n2-s2 .n2-toolkit {
  position: absolute;
  top: 10%;
  left: 2%;
  z-index: 7;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-width: min(64%, 430px);
  padding: 0.3rem 0.4rem;
  border-radius: 0.7rem;
  background: rgba(247, 243, 235, 0.92);
  border: 1px solid rgba(58, 111, 143, 0.28);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.intro-n2-s2 .n2-tool {
  min-height: 30px;
  padding: 0.22rem 0.45rem;
  border: 1px solid rgba(58, 111, 143, 0.3);
  border-radius: 0.5rem;
  background: #fff;
  color: #24536b;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.intro-n2-s2 .n2-tool.is-selected,
.intro-n2-s2 .n2-tool:hover,
.intro-n2-s2 .n2-tool:focus-visible {
  color: #fff;
  background: #3a6f8f;
  border-color: #24536b;
}

.intro-n2-s2 .n2-tool-hint {
  flex: 1 1 100%;
  color: rgba(42, 36, 28, 0.74);
  font-size: 0.68rem;
  line-height: 1.2;
}

.intro-n2-s2 .hotspot.is-tool-dimmed:not(.is-found):not(.is-saved) {
  opacity: 0.18;
  filter: grayscale(0.7);
}

.intro-n2-s2 .hotspot.is-tool-target:not(.is-found):not(.is-saved) {
  outline: 2px dashed rgba(212, 160, 23, 0.55);
}

.intro-n2-s2 .n2-loupe {
  position: absolute;
  z-index: 6;
  display: none;
  width: 84px;
  height: 84px;
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: rgba(185, 229, 245, 0.2);
  box-shadow: 0 0 0 3px rgba(58, 111, 143, 0.45), 0 5px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.intro-n2-s2 .n2-loupe.is-visible {
  display: block;
}

/* N2-S3: cajas Ensucia el río / No ensucia el río */
.intro-n2-s3 .classify-workspace {
  inset: 2.5% 2% 2.5% 2%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.intro-n2-s3 .character-layer.is-classify-guide,
.intro-n2-s4 .character-layer.is-classify-guide {
  width: min(18vw, 110px);
  max-width: 120px;
  top: auto;
  bottom: 2%;
  left: 1%;
  z-index: 2;
  opacity: 0.9;
}

.intro-n2-s3 .character-layer.is-classify-lumi,
.intro-n2-s4 .character-layer.is-classify-lumi {
  left: auto;
  right: 1%;
  top: auto;
  bottom: 2%;
  width: min(16vw, 110px);
  max-width: 120px;
  height: min(26vh, 140px);
  z-index: 2;
  opacity: 0.95;
}

.intro-n2-s3 .character-layer.is-classify-lumi img,
.intro-n2-s4 .character-layer.is-classify-lumi img {
  transform: scaleX(-1);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.classify-cols.classify-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-n2-s3 .classify-drop {
  min-height: 5.5rem;
  cursor: pointer;
}

.intro-n2-s3 .classify-col[data-col="ensucia"] .classify-col-title {
  color: #1f6b38;
}

.intro-n2-s3 .classify-col[data-col="no_ensucia"] .classify-col-title {
  color: #8a5a12;
}

.intro-n2-s3 .classify-col[data-col="ensucia"] {
  border-color: rgba(47, 125, 74, 0.35);
  background: rgba(231, 246, 234, 0.75);
}

.intro-n2-s3 .classify-col[data-col="no_ensucia"] {
  border-color: rgba(212, 160, 23, 0.4);
  background: rgba(255, 248, 220, 0.75);
}

/* N2-S4: elige la pista del camino */
.intro-n2-s4 .n2-pick-workspace {
  inset: 2.5% 2% 2.5% 2%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.n2-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  min-height: 0;
  align-content: center;
}

.n2-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.7rem 0.45rem;
  border: 3px solid rgba(47, 93, 74, 0.2);
  border-radius: 0.9rem;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #2a241c;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.n2-pick-card img {
  width: min(5.5rem, 28vw);
  height: min(5.5rem, 28vw);
  object-fit: contain;
}

.n2-pick-card.is-selected {
  border-color: var(--amber, #d4a017);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.22);
}

.n2-pick-card.is-correct {
  border-color: #2f7d4a;
  background: #e7f6ea;
}

.n2-pick-card.is-wrong {
  border-color: #b42318;
  background: #fdecea;
}

@media (max-width: 575.98px) {
  .n2-pick-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .n2-pick-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.45rem 0.6rem;
    text-align: left;
    font-size: 0.8rem;
  }

  .n2-pick-card img {
    width: 3.2rem;
    height: 3.2rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .intro-n2-s3 .classify-workspace,
  .intro-n2-s4 .n2-pick-workspace {
    inset: 1.5% 1% 1.5% 1%;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
  }

  .intro-n2-s3 .classify-hint,
  .intro-n2-s4 .classify-hint {
    font-size: 0.72rem;
    padding: 0.3rem 0.45rem;
  }

  .intro-n2-s3 .classify-drop {
    min-height: 3.2rem;
  }

  .n2-pick-card {
    padding: 0.35rem;
    font-size: 0.72rem;
  }

  .n2-pick-card img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .intro-n2-s3 .character-layer.is-classify-guide,
  .intro-n2-s3 .character-layer.is-classify-lumi,
  .intro-n2-s4 .character-layer.is-classify-guide,
  .intro-n2-s4 .character-layer.is-classify-lumi {
    display: none;
  }

  /* Plaza fotos + cuarto: en horizontal corto las tarjetas ganan el espacio */
  .intro-n3-s2 .character-layer.is-plaza-lumi,
  .intro-cf-s2 .character-layer.is-cfs2-lumi,
  .intro-cf-s2 .character-layer.is-cfs2-maestro,
  .intro-cf-s5 .character-layer.is-cfs5-guardiana,
  .intro-cf-s5 .character-layer.is-cfs5-cuidador,
  .intro-cf-s5 .character-layer.is-cfs5-abuela {
    display: none;
  }

  .intro-n3-s2 .n3s2-photos {
    left: 4%;
    right: 4%;
    top: 6%;
    bottom: 28%;
  }

  .intro-cf-s2 .cfs2-workspace {
    inset: 1.5% 2% 10% 2%;
  }

  .intro-cf-s5 .cfs5-routes {
    top: 2%;
    left: 1.5%;
    right: 1.5%;
  }
}

.intro-n2-s1 .n2-toolkit,
.intro-n2-s1 .n2-loupe {
  display: none;
}

@media (max-width: 767.98px) {
  .intro-n2-s2 .n2-toolkit {
    top: 11%;
    left: 2%;
    max-width: 78%;
  }

  .intro-n2-s2 .n2-tool {
    min-height: 28px;
    font-size: 0.64rem;
  }

  .intro-n2-s2 .n2-tool-hint {
    font-size: 0.6rem;
  }
}

@media (max-width: 767.98px) {
  .intro-n2-s1 .n2s1-workspace .mision-hypo-panel {
    width: min(72%, 210px);
    min-height: min(44vh, 280px);
  }

  .intro-n2-s1 .n2s1-workspace .mision-hypo-title {
    font-size: 0.72rem;
  }

  .intro-n2-s1 .n2s1-workspace .mision-hypo-panel .small {
    font-size: 0.6rem;
  }

  .intro-n2-s1 .n2s1-workspace .mision-hypo-option {
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .intro-n2-s1 .character-layer.is-n2s1-lumi {
    left: 5%;
    width: min(18vw, 82px);
    max-width: 90px;
  }

  .intro-n2-s1 .character-layer.is-n2s1-cuidador {
    left: 15%;
    width: min(35vw, 160px);
    max-width: 170px;
  }
}

/* 360×640: con letra grande el panel no puede tapar la pregunta. */
@media (max-width: 420px) {
  .screen.intro-n2-s1.is-active {
    display: flex;
    flex-direction: column;
  }

  .intro-n2-s1 .n2s1-mission.mission-banner--corner {
    position: relative;
    flex: 0 0 auto;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    margin: 0.35rem 0.4rem 0;
    z-index: 8;
  }

  .intro-n2-s1 .n2s1-workspace {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0.3rem 0.4rem 0.35rem;
    overflow: auto;
    justify-items: stretch;
    align-items: start;
    z-index: 7;
    pointer-events: auto;
  }

  .intro-n2-s1 .n2s1-workspace .mision-hypo-panel {
    width: 100%;
    min-height: 0;
  }
}

.map-mision-panel {
  position: absolute;
  left: 1.5%;
  bottom: 2%;
  z-index: 6;
  width: min(38%, 320px);
  max-height: 28%;
  overflow: auto;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(47, 93, 74, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}
.map-mision-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.55);
}
.map-mision-q {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forest, #2f5d4a);
  line-height: 1.3;
}
.map-mision-zonas {
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bitacora-mision,
.bitacora-conclusiones {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(47, 93, 74, 0.06);
  border: 1px solid rgba(47, 93, 74, 0.14);
}
.bitacora-mision-zonas { padding-left: 1.1rem; }
.hud-mision-chip {
  border: 0;
  cursor: pointer;
}
.mission-banner-hypo {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
}
.mission-banner-hypo span { font-weight: 700; }
.hypo-work {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--forest, #2f5d4a);
}
.cfs2-zone-hypos {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.1rem;
}

/* Escala única en todas las escenas. El porcentaje es del escenario, así crece y baja con cada pantalla. */
.stage .character-layer {
  top: auto !important;
  bottom: var(--cast-bottom) !important;
  height: var(--cast-adult-h) !important;
  max-height: var(--cast-adult-h) !important;
  width: auto !important;
  max-width: 42% !important;
  opacity: 1;
}

.stage .character-layer[data-char="visitante_apurado"] {
  height: var(--cast-youth-h) !important;
  max-height: var(--cast-youth-h) !important;
  max-width: 34% !important;
}

/* Sus láminas son más altas que la de la Guardiana.
   Con el 50% se ven más grandes. 0.82 los deja a su mismo tamaño. */
.stage .character-layer[data-char="cuidador_rio"],
.stage .character-layer[data-char="abuela_memoria"],
.stage .character-layer[data-char="maestro_pregunta"],
.stage .character-layer[data-char="maestro_rastro"] {
  height: calc(var(--cast-adult-h) * 0.82) !important;
  max-height: calc(var(--cast-adult-h) * 0.82) !important;
  max-width: 42% !important;
}

/* Maestro: misma altura que Abuela; aspect de speak_* para que la boca no mueva el cuerpo. */
.stage .character-layer[data-char="maestro_pregunta"],
.stage .character-layer[data-char="maestro_rastro"] {
  width: auto !important;
  aspect-ratio: 542 / 964;
}

.stage .character-layer[data-char="maestro_pregunta"] img,
.stage .character-layer[data-char="maestro_pregunta"].is-breathe img,
.stage .character-layer[data-char="maestro_pregunta"].is-talk img,
.stage .character-layer[data-char="maestro_pregunta"].is-soft-breathe img,
.stage .character-layer[data-char="maestro_rastro"] img,
.stage .character-layer[data-char="maestro_rastro"].is-breathe img,
.stage .character-layer[data-char="maestro_rastro"].is-talk img,
.stage .character-layer[data-char="maestro_rastro"].is-soft-breathe img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  transform: none !important;
  animation: none !important;
}

.stage .character-layer[data-char="lumi"] {
  height: var(--cast-bird-h) !important;
  max-height: var(--cast-bird-h) !important;
  max-width: 24% !important;
}

.stage .character-layer img {
  height: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
}

.stage .intro-p3 .character-layer.is-flying {
  top: 10% !important;
  bottom: auto !important;
  height: var(--cast-bird-h) !important;
  max-height: var(--cast-bird-h) !important;
}

.stage .intro-m0 .character-layer.is-map-flying {
  bottom: auto !important;
  height: var(--cast-bird-h) !important;
  max-height: var(--cast-bird-h) !important;
  max-width: 18% !important;
}

.stage .intro-m0 .character-layer.is-map-flying.is-over-bosque {
  top: 22% !important;
  left: 0.6% !important;
  right: auto !important;
}
.stage .intro-m0 .character-layer.is-map-flying.is-over-rio {
  top: 34% !important;
  left: 30% !important;
  right: auto !important;
}
.stage .intro-m0 .character-layer.is-map-flying.is-over-plaza {
  top: 26% !important;
  left: 50% !important;
  right: auto !important;
}
.stage .intro-m0 .character-layer.is-map-flying.is-over-camara {
  top: 18% !important;
  left: 68% !important;
  right: auto !important;
}
