/* Escenarios maestros + Escudo + cast (Fase 8 — CSS hasta PNG) */

.gp-stage {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--gp-radius-lg);
  isolation: isolate;
}

.gp-stage-sky,
.gp-stage-mid,
.gp-stage-ground,
.gp-stage-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gp-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Follaje / props delante del cast (p. ej. plantas de reserva) */
.gp-stage-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 9;
  pointer-events: none;
  user-select: none;
}
}

.gp-stage-bg.is-missing {
  display: none;
}

/* Con PNG de fondo: capas CSS decorativas se atenúan */
.gp-stage.has-stage-bg .gp-stage-sky,
.gp-stage.has-stage-bg .gp-stage-mid,
.gp-stage.has-stage-bg .gp-stage-motif {
  opacity: 0;
}

.gp-stage.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 55%, rgba(20, 35, 50, 0.28) 100%);
  z-index: 2;
}

.gp-stage-sky {
  background:
    linear-gradient(180deg, #c8d9ea 0%, #e8eef4 45%, transparent 70%);
  z-index: 0;
  animation: gp-sky-drift 18s ease-in-out infinite alternate;
}

.gp-stage-mid {
  z-index: 1;
  opacity: 0.9;
}

/* Portada S2 — key art PNG */
/* Panel flotante sobre el escenario */
.gp-overlay-panel {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: min(92%, 560px);
  max-height: 78%;
  overflow: auto;
  padding: 1rem 1.1rem;
  background: var(--gp-panel);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift);
  backdrop-filter: blur(6px);
}

.gp-overlay-panel.is-title {
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 430px);
  max-height: 92%;
  text-align: center;
}

/* S2 — Portada: cast en capas sobre el key art (patrón English Travel) */
.is-s2-portada .gp-stage-cast {
  position: absolute;
  inset: 0;
  display: block;
  gap: 0;
  pointer-events: none;
}

.is-s2-portada .gp-char {
  position: absolute;
  bottom: 3%;
  margin: 0;
  z-index: 4;
  align-items: stretch;
}

.is-s2-portada .gp-char.has-sprite .gp-char-figure,
.is-s2-portada .gp-char.has-sprite.is-hero .gp-char-figure {
  width: 100%;
  height: 100%;
}

/* Portada: personaje al doble del tamaño medio (solo esta escena). */
.is-s2-portada .gp-char.is-s2-cast {
  --gp-char-h: min(48%, 320px);
  --gp-char-w: calc(var(--gp-char-h) * 1.12);
  left: 50%;
  right: auto;
  width: var(--gp-char-w) !important;
  height: var(--gp-char-h) !important;
  max-width: none;
  bottom: 1%;
  z-index: 4;
  margin-left: calc(var(--gp-char-w) * -0.5);
}

.is-s2-portada .gp-char.is-s2-cast.is-entering {
  animation: s2-cast-in 0.35s ease;
}

@keyframes s2-cast-in {
  from { opacity: 0; transform: translateX(12%); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-s2-portada .gp-char.is-s2-cast.is-entering { animation: none; }
}

.is-s2-portada .gp-char.is-s2-caty,
.is-s2-portada .gp-char.is-s2-inti {
  width: var(--gp-char-w);
  height: var(--gp-char-h);
  bottom: 2%;
}

.is-s2-portada .gp-char.is-s2-caty {
  left: 1%;
  z-index: 5;
}

.is-s2-portada .gp-char.is-s2-max {
  left: 15%;
  width: var(--gp-char-w);
  height: var(--gp-char-h);
  bottom: 2%;
  z-index: 4;
}

.is-s2-portada .gp-char.is-s2-inti {
  right: 1%;
  z-index: 5;
}

.is-s2-portada .gp-overlay-panel.is-s2-title {
  top: 7%;
  transform: translateX(-50%);
  width: min(74%, 390px);
  max-height: min(62%, 340px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.9rem 1rem;
  text-align: center;
}

.is-s2-portada .title-mark .placeholder-eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.is-s2-portada .title-mark h1 {
  font-size: clamp(1.3rem, 4.6cqw, 1.9rem);
  line-height: 1.15;
  margin: 0 0 0.35rem;
  overflow-wrap: normal;
  word-break: normal;
}

.is-s2-portada .title-hint {
  margin: 0 0 0.5rem;
  color: var(--gp-ink-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.is-s2-portada .title-escudo-strip {
  margin-top: 0.4rem;
  padding: 0.45rem 0.5rem 0.4rem;
  border-radius: var(--gp-radius-md);
  background: var(--gp-surface-pale);
  border: var(--gp-stroke) dashed rgba(42, 74, 107, 0.22);
}

.is-s2-portada .title-escudo-strip .escudo-emblem {
  margin: 0 auto 0.3rem;
  gap: 0.35rem;
}

.is-s2-portada .title-escudo-strip .escudo-emblem.size-sm .escudo-emblem-svg {
  width: 68px;
  height: 68px;
}

.is-s2-portada .title-escudo-strip .escudo-stamps {
  gap: 0.3rem;
}

.is-s2-portada .title-escudo-strip .escudo-emblem-legend {
  gap: 0.3rem;
}

.is-s2-portada .title-escudo-strip .escudo-emblem-legend .leg {
  font-size: 0.7rem;
  padding: 0.14rem 0.42rem;
}

.is-s2-portada .title-escudo-hint {
  margin: 0.15rem 0 0;
  color: var(--gp-ink-muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

/* iPhone SE / 375×667 — portada legible */
@media (max-width: 400px), (max-height: 720px) {
  .is-s2-portada .gp-overlay-panel.is-s2-title {
    top: 1.5%;
    width: min(86%, 330px);
    max-height: min(40%, 190px);
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .is-s2-portada .gp-char.is-s2-cast {
    --gp-char-h: min(24%, 118px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w) !important;
    height: var(--gp-char-h) !important;
    bottom: 0;
  }

  .is-s2-portada .title-mark .placeholder-eyebrow {
    font-size: 0.64rem;
    margin-bottom: 0.15rem;
  }

  .is-s2-portada .title-mark h1 {
    font-size: clamp(1.15rem, 5.4vw, 1.35rem);
    margin-bottom: 0.25rem;
  }

  .is-s2-portada .title-hint {
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
  }

  .is-s2-portada .title-escudo-strip {
    margin-top: 0.25rem;
    padding: 0.35rem 0.4rem;
  }

  .is-s2-portada .title-escudo-strip .escudo-emblem.size-sm .escudo-emblem-svg {
    width: 56px;
    height: 56px;
  }

  .is-s2-portada .title-escudo-strip .escudo-emblem-legend .leg {
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
  }

  .is-s2-portada .title-escudo-hint {
    font-size: 0.68rem;
  }

  .is-s2-portada .gp-stage-cast {
    display: block;
  }

  .is-s2-portada .gp-char.is-s2-max {
    display: none;
  }
}

@media (max-width: 640px) and (min-width: 401px) {
  .is-s2-portada .gp-overlay-panel.is-s2-title {
    top: 2.5%;
    width: min(82%, 350px);
    max-height: min(42%, 210px);
    padding: 0.6rem 0.7rem;
  }

  .is-s2-portada .gp-char.is-s2-cast {
    --gp-char-h: min(26%, 130px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w) !important;
    height: var(--gp-char-h) !important;
  }

  .is-s2-portada .gp-char.is-s2-max {
    display: none;
  }

  .is-s2-portada .gp-char.is-s2-caty,
  .is-s2-portada .gp-char.is-s2-inti {
    bottom: 1%;
    width: var(--gp-char-w);
    height: var(--gp-char-h);
    opacity: 1;
  }

  .is-s2-portada .gp-char.is-s2-caty {
    left: 0;
  }

  .is-s2-portada .gp-char.is-s2-inti {
    right: 0;
  }
}

.gp-stage-ground {
  z-index: 2;
  background: linear-gradient(180deg, transparent 42%, rgba(26, 43, 60, 0.12) 100%);
}

.gp-stage-motif {
  z-index: 3;
}

.gp-stage-cast {
  position: absolute;
  inset: auto 2% 2% 2%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  gap: 0.75rem;
}

.gp-stage-panel {
  position: relative;
  z-index: 5;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow-y: auto;
}

.gp-stage-panel .intro-panel-card,
.gp-stage-panel .placeholder-card,
.gp-stage-panel .final-result-panel {
  backdrop-filter: blur(6px);
  background: rgba(250, 248, 244, 0.88);
}

/* S3 — instrucciones sobre el key art de portada */
.is-s3-instrucciones .gp-stage-panel {
  align-items: flex-start;
  padding-top: clamp(0.75rem, 4cqh, 1.5rem);
  padding-bottom: clamp(6rem, 18cqh, 9rem);
}

.is-s3-instrucciones .intro-panel-card {
  width: min(560px, 94%);
  max-height: min(72cqh, 100%);
  overflow-y: auto;
}

/* N1-S1 — el pueblo es el escenario; diálogo abajo, no una tarjeta que lo tape */
.is-n1s1-llegada .gp-stage-bg {
  object-fit: cover;
  object-position: center 38%;
}

.is-n1s1-llegada.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.1) 100%);
}

.is-n1s1-llegada .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n1s1-llegada .gp-char {
  position: absolute;
  bottom: 2%;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n1s1-llegada .gp-char.is-n1s1-habitante {
  left: 1%;
  z-index: 6;
}

.is-n1s1-llegada .gp-char.is-n1s1-caty {
  right: 22%;
  z-index: 5;
}

.is-n1s1-llegada .gp-char.is-n1s1-inti {
  right: 1%;
  z-index: 5;
}

.is-n1s1-llegada .n1s1-scene-tag {
  position: relative;
  top: auto;
  left: auto;
  max-width: min(52%, 260px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.78);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n1s1-llegada .n1s1-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s1-llegada .n1s1-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n1s1-llegada .n1s1-chrome .btn {
  flex-shrink: 0;
  background: rgba(250, 248, 244, 0.88);
}

.is-n1s1-llegada .n1s1-memoria-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gp-memoria);
}

.is-n1s1-llegada .n1s1-objective-card {
  position: absolute;
  top: 3.1rem;
  right: 0.65rem;
  z-index: 7;
  width: min(280px, 86%);
  padding: 0.75rem 0.85rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(196, 92, 38, 0.35);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n1s1-llegada .n1s1-objective-card[hidden] {
  display: none !important;
}

.is-n1s1-llegada .n1s1-objective-text {
  font-size: 0.9rem;
  line-height: 1.35;
}

.is-n1s1-llegada .n1s1-banco-list {
  margin: 0 0 0.65rem;
  padding-left: 1.05rem;
  font-size: 0.82rem;
}

.is-n1s1-llegada .n1s1-banco-list li[data-type="patrimonio"] {
  color: var(--gp-ink);
}

.is-n1s1-llegada .n1s1-banco-list li[data-type="referencia"] {
  color: var(--gp-ink-muted);
}


/* Feedback de mesa/chrome: siempre en flujo (no flotar sobre botones) */
.gp-stage [class*="-table"] > [class$="-feedback"],
.gp-stage [class*="-table-scroll"] > [class$="-feedback"],
.gp-stage [class*="-chrome"] > [class$="-feedback"] {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: none;
  z-index: auto !important;
  flex-shrink: 0;
  margin-top: 0.45rem;
  box-shadow: none;
}



.gp-stage [class$="-table-actions"]:empty {
  display: none;
}

/* Cabecera de mesa: título + Ver pista (patrón N2-S3) */
.gp-stage [class*="-table-head"] {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.gp-stage [class*="-table-head"] > [class*="-scene-tag"] {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.gp-stage [class*="-table-head"] > .btn {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
}

.gp-stage [class*="-table-head"] .placeholder-eyebrow {
  font-size: 0.68rem;
}

.gp-stage [class*="-table-head"] [class*="-scene-title"] {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.gp-stage [class*="-table-head"] [class*="-count"] {
  font-size: 0.72rem;
  font-weight: 700;
}

/* N1-S2 — mapa patrimonial sobre el pueblo */
.is-n1s2-mapa .gp-stage-bg {
  object-fit: cover;
  object-position: center 48%;
}

.is-n1s2-mapa.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 78%, rgba(26, 43, 60, 0.12) 100%);
}

.is-n1s2-mapa .gp-stage-cast {
  inset: auto auto 0 0;
  display: block;
  width: min(28%, 260px);
  max-width: 260px;
  z-index: 3;
  pointer-events: none;
}

.is-n1s2-mapa .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 3;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n1s2-mapa .gp-char.has-sprite[data-char="max"],
.is-n1s2-mapa .gp-char.is-n1s2-max {
  left: 0;
  z-index: 3;
  width: min(var(--gp-char-w), 260px);
  height: auto;
  max-height: 64%;
  --gp-char-h: min(56%, 270px);
  --gp-char-w: calc(var(--gp-char-h) * 1.12);
  width: var(--gp-char-w);
  height: var(--gp-char-h);
  pointer-events: none;
}

.is-n1s2-mapa .n1s2-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n1s2-mapa .n1s2-chrome-actions,
.is-n1s2-mapa .n1s2-chrome-actions .btn {
  pointer-events: auto;
}

.is-n1s2-mapa .n1s2-scene-tag {
  max-width: min(52%, 280px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.82);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n1s2-mapa .n1s2-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s2-mapa .n1s2-count {
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}

.is-n1s2-mapa .n1s2-count-line {
  display: block;
}

.is-n1s2-mapa .n1s2-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.is-n1s2-mapa .n1s2-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n1s2-mapa .hotspots-map.is-scene {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 6;
  pointer-events: none;
  background: none;
  gap: 0;
}

.is-n1s2-mapa .hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 9;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  max-width: 6.8rem;
  padding: 0.28rem 0.4rem 0.32rem;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.9);
  box-shadow: 0 6px 16px rgba(20, 40, 60, 0.18);
  overflow: visible;
}

.is-n1s2-mapa .hotspot-label {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.is-n1s2-mapa .hotspot-pin.is-open {
  z-index: 11;
  border-color: var(--gp-memoria);
}

.is-n1s2-mapa .hotspot-pin.is-patrimonio {
  box-shadow:
    0 0 0 3px rgba(212, 160, 23, 0.45),
    0 0 14px rgba(212, 160, 23, 0.55),
    0 6px 16px rgba(20, 40, 60, 0.16);
}

.is-n1s2-mapa .hotspot-pin.is-patrimonio .hotspot-dot {
  background: var(--gp-memoria-gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.4), 0 0 12px rgba(212, 160, 23, 0.8);
  animation: n1s2-halo 1.8s ease-in-out infinite;
}

.is-n1s2-mapa .hotspot-pin.is-referencia {
  opacity: 0.88;
  background: rgba(244, 246, 248, 0.82);
}

.is-n1s2-mapa .hotspot-pin.is-referencia .hotspot-dot {
  background: #8a9aaa;
  box-shadow: none;
}

.is-n1s2-mapa .hotspot-pin.is-done {
  opacity: 0.92;
  border-color: var(--gp-equilibrio);
  background: rgba(232, 245, 236, 0.94);
  animation: none;
  box-shadow: 0 4px 10px rgba(20, 40, 60, 0.12);
  cursor: pointer;
}

.is-n1s2-mapa .hotspot-pin.is-done .hotspot-dot {
  animation: none;
  background: var(--gp-equilibrio);
  box-shadow: none;
}

.is-n1s2-mapa .hotspot-card-done {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--gp-equilibrio);
}

.is-n1s2-mapa .hotspot-card {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(340px, 78%);
  max-height: min(72%, calc(100% - 1rem));
  margin-top: 0;
  padding: 0.75rem 0.85rem 0.7rem;
  box-shadow: var(--gp-shadow-lift);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
  pointer-events: auto;
}

.is-n1s2-mapa .hotspot-card.d-none,
.is-n1s2-mapa .hotspot-card[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.is-n1s2-mapa .hotspot-card-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  flex-shrink: 0;
}

.is-n1s2-mapa .hotspot-card-text {
  margin: 0;
  line-height: 1.35;
  color: var(--gp-ink-muted, #5a6a7a);
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.is-n1s2-mapa .hotspot-card-text.is-hint {
  color: var(--gp-ink, #1a2b3c);
  font-weight: 700;
  background: rgba(212, 160, 23, 0.16);
  border-radius: var(--gp-radius-md);
  padding: 0.45rem 0.55rem;
}

.is-n1s2-mapa .hotspot-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #fff;
  padding-top: 0.2rem;
}

.is-n1s2-mapa .hotspot-card-actions .btn {
  min-height: 2.15rem;
  width: 100%;
  justify-content: center;
}

.is-n1s2-mapa .hotspot-card-actions .btn-link {
  grid-column: 1 / -1;
  min-height: 1.85rem;
  text-decoration: none;
}

.is-n1s2-mapa .n1s2-feedback {
  flex: 1 1 100%;
  order: 5;
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  min-height: 1.2em;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: var(--gp-radius-md);
  font-size: 0.85rem;
  text-align: left;
  background: rgba(250, 248, 244, 0.88);
  flex-shrink: 0;
}

.is-n1s2-mapa .n1s2-feedback:empty {
  display: none;
}

.is-n1s2-mapa .n1s2-feedback.is-ok {
  background: rgba(31, 138, 91, 0.16);
  color: #145c3a;
}

.is-n1s2-mapa .n1s2-feedback.is-err {
  background: var(--gp-coral-light);
  color: #8a2a22;
}

.is-n1s2-mapa .n1s2-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

@keyframes n1s2-halo {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.35), 0 0 10px rgba(212, 160, 23, 0.7);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(212, 160, 23, 0.18), 0 0 16px rgba(212, 160, 23, 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-n1s2-mapa .hotspot-pin.is-patrimonio .hotspot-dot {
    animation: none;
  }
}

/* N1-S2 — compacto en móvil */
@media (max-width: 640px) {
  .is-n1s2-mapa .n1s2-chrome {
    top: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
    gap: 0.35rem;
  }

  .is-n1s2-mapa .n1s2-scene-tag {
    max-width: min(68%, 210px);
    padding: 0.3rem 0.5rem;
  }

  .is-n1s2-mapa .n1s2-scene-tag .placeholder-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .is-n1s2-mapa .n1s2-scene-title {
    font-size: 0.92rem;
    margin-bottom: 0.1rem !important;
  }

  .is-n1s2-mapa .n1s2-count {
    font-size: 0.7rem;
  }

  .is-n1s2-mapa .n1s2-chrome-actions .btn {
    min-height: 30px;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
  }

  .is-n1s2-mapa .n1s2-feedback {
    font-size: 0.75rem;
    padding: 0.28rem 0.5rem;
    margin-top: 0.3rem;
  }

  .is-n1s2-mapa .hotspot-pin {
    max-width: 5.4rem;
    padding: 0.2rem 0.28rem 0.22rem;
    gap: 0.1rem;
  }

  .is-n1s2-mapa .hotspot-label {
    font-size: 0.64rem;
  }

  .is-n1s2-mapa .hotspot-dot {
    width: 0.55rem;
    height: 0.55rem;
  }

  .is-n1s2-mapa .gp-stage-cast {
    width: min(42%, 280px);
    max-width: 280px;
  }

  .is-n1s2-mapa .gp-char.has-sprite[data-char="max"],
  .is-n1s2-mapa .gp-char.is-n1s2-max {
    --gp-char-h: min(58cqw, 280px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w);
    height: var(--gp-char-h);
    left: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
  }

  .is-n1s2-mapa .hotspot-card {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 22rem);
    max-width: calc(100% - 1.1rem);
    max-height: min(68%, calc(100% - 1rem));
    padding: 0.65rem 0.7rem 0.65rem;
    overflow: hidden;
    gap: 0.35rem;
    z-index: 9;
  }

  .is-n1s2-mapa .hotspot-card-title {
    font-size: 0.9rem;
  }

  .is-n1s2-mapa .hotspot-card-text {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .is-n1s2-mapa .hotspot-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .is-n1s2-mapa .hotspot-card-actions .btn {
    min-height: 2.35rem;
    font-size: 0.78rem;
    padding: 0.35rem 0.45rem;
    white-space: nowrap;
  }

  .is-n1s2-mapa .hotspot-card-actions .btn-link {
    min-height: 2rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px), (max-height: 850px) {
  .is-n1s2-mapa .n1s2-scene-tag {
    max-width: min(72%, 190px);
    padding: 0.25rem 0.42rem;
  }

  .is-n1s2-mapa .n1s2-scene-title {
    font-size: 0.86rem;
  }

  .is-n1s2-mapa .n1s2-hint-label {
    display: none;
  }

  .is-n1s2-mapa .hotspot-pin {
    max-width: 4.9rem;
  }

  .is-n1s2-mapa .hotspot-label {
    font-size: 0.6rem;
  }

  .is-n1s2-mapa .gp-stage-cast {
    width: min(44%, 270px);
    max-width: 270px;
  }

  .is-n1s2-mapa .gp-char.has-sprite[data-char="max"],
  .is-n1s2-mapa .gp-char.is-n1s2-max {
    --gp-char-h: min(56cqw, 260px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w);
    height: var(--gp-char-h);
    pointer-events: none;
  }

  .is-n1s2-mapa .hotspot-card {
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(94vw, 20.5rem);
    max-height: min(74%, calc(100% - 0.75rem));
    padding: 0.55rem 0.6rem 0.55rem;
    overflow: hidden;
  }

  .is-n1s2-mapa .hotspot-card-actions .btn {
    min-height: 2rem;
    font-size: 0.76rem;
    padding: 0.28rem 0.4rem;
  }

  .is-n1s2-mapa .hotspot-card-actions .btn-link {
    min-height: 1.75rem;
  }

  .game-shell:has(.is-n1s2-mapa) .stage {
    min-height: min(300px, 44dvh);
  }
}

/* N1-S3 — mesa de clasificación sobre el pueblo */
.is-n1s3-cazadores .gp-stage-bg {
  object-fit: cover;
  object-position: center 48%;
}

.is-n1s3-cazadores.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 70%, rgba(26, 43, 60, 0.16) 100%);
}

.is-n1s3-cazadores .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 4;
  pointer-events: none;
}

.is-n1s3-cazadores .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  --gp-char-h: min(22cqw, 240px);
  --gp-char-w: calc(var(--gp-char-h) * 1.12);
  width: var(--gp-char-w);
  height: var(--gp-char-h);
  pointer-events: none;
}

/* Flancos libres: Caty izquierda, Inti derecha (fuera de la mesa) */
.is-n1s3-cazadores .gp-char.is-n1s3-caty {
  left: 0;
  right: auto;
  z-index: 4;
}

.is-n1s3-cazadores .gp-char.is-n1s3-inti {
  left: auto;
  right: 0;
  z-index: 4;
}

.is-n1s3-cazadores .n1s3-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 14;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n1s3-cazadores .n1s3-scene-tag {
  max-width: min(78%, 380px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
  pointer-events: auto;
}

.is-n1s3-cazadores .n1s3-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s3-cazadores .n1s3-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n1s3-cazadores .n1s3-table {
  position: absolute;
  left: 0;
  right: 0;
  top: 2%;
  bottom: 0.5rem;
  margin-inline: auto;
  transform: none;
  z-index: 6;
  width: min(520px, 52%);
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.55rem 0.65rem 0.5rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
  pointer-events: auto;
}

.is-n1s3-cazadores #classify-host {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.is-n1s3-cazadores #classify-host .classify-board {
  display: grid;
  gap: 0.55rem;
  overflow: visible;
}

.is-n1s3-cazadores #classify-host .classify-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 2.5rem;
  max-height: none;
  overflow: visible;
}

.is-n1s3-cazadores #classify-host .classify-bins {
  overflow: visible;
}

.is-n1s3-cazadores .n1s3-table-lead {
  font-size: 0.78rem;
  color: var(--gp-ink-soft);
  flex-shrink: 0;
  margin-bottom: 0.35rem !important;
}

.is-n1s3-cazadores .classify-card {
  font-size: 0.74rem;
  padding: 0.28rem 0.5rem;
  gap: 0.35rem;
}

.is-n1s3-cazadores .classify-card-image {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 1.75rem;
  border-radius: 0.35rem;
}

.is-n1s3-cazadores .n1s3-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.15rem;
  padding-top: 0.35rem;
  flex-shrink: 0;
  position: static;
  background: transparent;
}

.is-n1s3-cazadores .n1s3-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0.55rem;
  border-radius: var(--gp-radius-md);
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  background: rgba(250, 248, 244, 0.88);
  flex-shrink: 0;
  max-height: none;
  overflow: visible;
}

.is-n1s3-cazadores .n1s3-feedback:empty {
  display: none;
}

.is-n1s3-cazadores .n1s3-feedback.is-ok {
  background: rgba(31, 138, 91, 0.16);
  color: #145c3a;
}

.is-n1s3-cazadores .n1s3-feedback.is-err {
  background: var(--gp-coral-light);
  color: #8a2a22;
}

.is-n1s3-cazadores .n1s3-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n1s3-cazadores .classify-bin.is-material {
  border-color: rgba(196, 92, 38, 0.45);
  background: rgba(245, 224, 212, 0.55);
}

.is-n1s3-cazadores .classify-bin.is-vivo {
  border-color: rgba(26, 154, 154, 0.45);
  background: rgba(212, 242, 242, 0.55);
}

.is-n1s3-cazadores .classify-bin.is-referencia {
  border-color: rgba(42, 74, 107, 0.28);
  background: rgba(214, 226, 238, 0.5);
}

.is-n1s3-cazadores .classify-bin.is-selected {
  box-shadow: 0 0 0 2px var(--gp-memoria);
}

.is-n1s3-cazadores .classify-card.is-placed {
  pointer-events: none;
  opacity: 0.9;
  font-size: 0.75rem;
}

/* N1-S4 — adivina la historia junto al monumento */
.is-n1s4-historia .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n1s4-historia.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 70%, rgba(26, 43, 60, 0.16) 100%);
}

.is-n1s4-historia .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 5;
  pointer-events: none;
}

.is-n1s4-historia .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 5;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n1s4-historia .gp-char.is-n1s4-inti {
  left: 0;
  z-index: 5;
}

.is-n1s4-historia .gp-char.is-n1s4-habitante {
  left: auto;
  right: 0;
  z-index: 8;
}

.is-n1s4-historia .n1s4-table-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.is-n1s4-historia .n1s4-scene-tag {
  max-width: none;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.is-n1s4-historia .n1s4-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s4-historia .n1s4-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n1s4-historia .n1s4-chrome-actions {
  display: none;
}

.is-n1s4-historia .n1s4-clues {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  width: auto;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.is-n1s4-historia .n1s4-clue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: var(--gp-radius-pill);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.45);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 40, 60, 0.12);
}

.is-n1s4-historia .n1s4-clue.is-open {
  border-color: var(--gp-memoria-gold);
  box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35);
}

.is-n1s4-historia .n1s4-table {
  position: absolute;
  left: 0;
  right: 0;
  top: 2%;
  bottom: 0.5rem;
  margin-inline: auto;
  transform: none;
  z-index: 6;
  width: min(560px, 94%);
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.55rem 0.65rem 0.5rem;
  background: rgba(250, 248, 244, 0.95);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
  pointer-events: auto;
}

.is-n1s4-historia .n1s4-table-scroll {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0.25rem;
}

.is-n1s4-historia #decision-step {
  min-height: 0;
  flex: none;
  overflow: visible;
}

.is-n1s4-historia #btn-decision-confirm {
  position: static;
  bottom: auto;
  z-index: auto;
  background: rgba(42, 74, 107, 0.96);
}

.is-n1s4-historia .n1s4-clue-readout {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--gp-radius-md);
  background: rgba(247, 235, 200, 0.7);
  font-size: 0.82rem;
}

.is-n1s4-historia .n1s4-clue-readout[hidden] {
  display: none !important;
}

.is-n1s4-historia .n1s4-table .decision-prompt {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.is-n1s4-historia .n1s4-table .decision-option {
  padding: 0.55rem 0.7rem;
}

.is-n1s4-historia .n1s4-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  flex-shrink: 0;
  position: static;
  z-index: 2;
  padding: 0.45rem 0 0.25rem;
  background: transparent;
  border-top: 1px solid rgba(42, 74, 107, 0.1);
}

.is-n1s4-historia .n1s4-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.55rem;
  border-radius: var(--gp-radius-md);
  font-size: 0.82rem;
  text-align: left;
  background: rgba(247, 235, 200, 0.55);
}

.is-n1s4-historia .n1s4-feedback:empty {
  display: none;
}

.is-n1s4-historia .n1s4-feedback.is-ok {
  background: rgba(31, 138, 91, 0.16);
  color: #145c3a;
}

.is-n1s4-historia .n1s4-feedback.is-err {
  background: var(--gp-coral-light);
  color: #8a2a22;
}

.is-n1s4-historia .n1s4-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* N1-S5 — ruta del recuerdo sobre el pueblo */
.is-n1s5-ruta .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n1s5-ruta.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 70%, rgba(26, 43, 60, 0.16) 100%);
}

.is-n1s5-ruta .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 12;
}

.is-n1s5-ruta .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 12;
  width: var(--gp-char-w);
  pointer-events: none;
}

/* Max a la izquierda, Caty a la derecha */
.is-n1s5-ruta .gp-char.is-n1s5-max {
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 13;
  transition: left 0.55s ease, right 0.55s ease, transform 0.55s ease;
}

.is-n1s5-ruta .gp-char.is-n1s5-max.is-touring {
  right: auto;
  bottom: 0;
  z-index: 14;
}

.is-n1s5-ruta.is-touring .n1s5-table {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.is-n1s5-ruta .n1s5-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 14;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n1s5-ruta .n1s5-scene-tag {
  max-width: min(78%, 380px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
  pointer-events: auto;
}

.is-n1s5-ruta .n1s5-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s5-ruta .n1s5-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n1s5-ruta .n1s5-table {
  position: absolute;
  left: 0;
  right: 0;
  top: 2%;
  bottom: 0.5rem;
  margin-inline: auto;
  transform: none;
  z-index: 6;
  width: min(520px, 74%);
  max-height: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.95);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
  pointer-events: auto;
}

.is-n1s5-ruta .n1s5-table-head {
  flex-shrink: 0;
}

.is-n1s5-ruta #ordering-host {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.is-n1s5-ruta .n1s5-table-lead {
  font-size: 0.78rem;
  color: var(--gp-ink-soft);
  flex-shrink: 0;
}

.is-n1s5-ruta .n1s5-table .ordering-list {
  gap: 0.32rem;
}

.is-n1s5-ruta .n1s5-table .ordering-row {
  padding: 0.42rem 0.55rem;
  background: #fff;
}

.is-n1s5-ruta .n1s5-table .ordering-row.is-correct {
  background: rgba(31, 138, 91, 0.12);
}

.is-n1s5-ruta .n1s5-table .ordering-row.is-wrong {
  background: rgba(245, 224, 212, 0.55);
}

.is-n1s5-ruta .n1s5-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.is-n1s5-ruta .n1s5-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.55rem;
  border-radius: var(--gp-radius-md);
  font-size: 0.82rem;
  text-align: left;
  flex-shrink: 0;
  background: rgba(42, 74, 107, 0.06);
}

.is-n1s5-ruta .n1s5-feedback:empty {
  display: none;
}

.is-n1s5-ruta .n1s5-feedback.is-ok {
  background: rgba(31, 138, 91, 0.16);
  color: #145c3a;
}

.is-n1s5-ruta .n1s5-feedback.is-err {
  background: var(--gp-coral-light);
  color: #8a2a22;
}

.is-n1s5-ruta .n1s5-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* N1-S6 — decisión patrimonial junto al monumento */
.is-n1s6-decision .gp-stage-bg {
  object-fit: cover;
  object-position: center 58%;
}

.is-n1s6-decision.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 70%, rgba(26, 43, 60, 0.18) 100%);
}

.is-n1s6-decision.is-monument-danado .gp-stage-bg {
  filter: saturate(0.86) brightness(0.92);
}

.is-n1s6-decision.is-monument-protegido .gp-stage-bg {
  filter: saturate(1.05) brightness(1.03);
}

.is-n1s6-decision .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n1s6-decision .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n1s6-decision .gp-char.is-n1s6-visitante {
  left: 0;
  z-index: 6;
}

.is-n1s6-decision .gp-char.is-n1s6-habitante {
  right: calc(var(--gp-char-w) * 0.52);
  z-index: 5;
}

.is-n1s6-decision .gp-char.is-n1s6-inti {
  right: 0;
  z-index: 5;
}

.is-n1s6-decision .n1s6-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n1s6-decision .n1s6-scene-tag {
  max-width: min(88%, 520px);
  padding: 0.35rem 0.65rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
  pointer-events: auto;
}

.is-n1s6-decision .n1s6-scene-tag .placeholder-eyebrow {
  font-size: 0.68rem;
}

.is-n1s6-decision .n1s6-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n1s6-decision .n1s6-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.is-n1s6-decision.is-monument-protegido .n1s6-count {
  color: #145c3a;
}

.is-n1s6-decision.is-monument-danado .n1s6-count {
  color: #8a2a22;
}

.is-n1s6-decision.is-monument-riesgo .n1s6-count {
  color: #6b4e00;
}

.is-n1s6-decision .n1s6-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(400px, 48%);
  max-height: calc(100% - 7rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.95);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n1s6-decision #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.25rem;
}

.is-n1s6-decision .n1s6-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(42, 74, 107, 0.1);
}

.is-n1s6-decision .n1s6-table-actions #btn-n1s6-hint {
  background: rgba(255, 255, 255, 0.92);
  margin-right: auto;
}

.is-n1s6-decision #btn-decision-confirm {
  position: static;
  bottom: auto;
  z-index: auto;
  margin-top: 0;
  background: var(--accent, #2a4a6b);
  color: #fff;
  border-color: var(--accent, #2a4a6b);
}

.is-n1s6-decision #btn-decision-confirm:disabled {
  background: rgba(42, 74, 107, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n1s6-decision .n1s6-table .decision-prompt {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.is-n1s6-decision .n1s6-table .decision-option {
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}

.is-n1s6-decision .n1s6-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.7rem;
  border-radius: var(--gp-radius-md);
  font-size: 0.85rem;
  text-align: left;
  background: rgba(250, 248, 244, 0.88);
  flex-shrink: 0;
}

.is-n1s6-decision .n1s6-feedback:empty {
  display: none;
}

.is-n1s6-decision .n1s6-feedback.is-ok {
  background: rgba(31, 138, 91, 0.16);
  color: #145c3a;
}

.is-n1s6-decision .n1s6-feedback.is-err {
  background: var(--gp-coral-light);
  color: #8a2a22;
}

.is-n1s6-decision .n1s6-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* N1-S7 — sello Memoria Cultural (cierre ceremonial) */
.is-n1s7-sello .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) brightness(0.78);
}

.is-n1s7-sello.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 55%, rgba(14, 24, 38, 0.55) 100%);
}

.is-n1s7-sello .n1s7-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 42%, rgba(212, 160, 23, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.55) 0%, rgba(18, 28, 42, 0.28) 48%, rgba(18, 28, 42, 0.62) 100%);
}

.is-n1s7-sello.is-stamp-full .n1s7-veil {
  background:
    radial-gradient(ellipse 58% 50% at 50% 40%, rgba(212, 160, 23, 0.34), transparent 72%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.48) 0%, rgba(18, 28, 42, 0.2) 48%, rgba(18, 28, 42, 0.55) 100%);
}

.is-n1s7-sello .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 7;
}

.is-n1s7-sello .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 7;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n1s7-sello .gp-char.is-n1s7-caty {
  left: 0;
}

.is-n1s7-sello .gp-char.is-n1s7-inti {
  right: 0;
}

.is-n1s7-sello .n1s7-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n1s7-sello .n1s7-scene-tag {
  max-width: min(58%, 320px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.88);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.14);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n1s7-sello .n1s7-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n1s7-sello .n1s7-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-n1s7-sello .n1s7-rite {
  position: absolute;
  left: 50%;
  top: 4.75rem;
  transform: translateX(-50%);
  z-index: 6;
  width: min(420px, 62%);
  max-height: min(46%, calc(100% - 15rem));
  overflow: auto;
  padding: 1rem 1.1rem 1.15rem;
  text-align: center;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.35);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.is-n1s7-sello .n1s7-rite .escudo-emblem {
  margin: 0 auto 0.65rem;
}

.is-n1s7-sello .n1s7-rite .escudo-emblem.focus-memoria .escudo-seg.memoria,
.is-n1s7-sello .n1s7-rite .escudo-emblem .escudo-seg.memoria.is-focus {
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.75));
}

.is-n1s7-sello .n1s7-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-memoria);
}

.is-n1s7-sello.is-stamp-learning .n1s7-kicker {
  color: #6b4e00;
}

.is-n1s7-sello .n1s7-stamp-title {
  font-size: clamp(1.15rem, 3cqw, 1.55rem);
  line-height: 1.15;
  margin: 0;
  color: var(--gp-ink);
}

.is-n1s7-sello .n1s7-score {
  font-size: 0.9rem;
  font-weight: 700;
}

.is-n1s7-sello .n1s7-advice {
  margin-top: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--gp-radius-md);
  background: rgba(212, 160, 23, 0.18);
  color: #6b4e00;
  font-size: 0.82rem;
}

.is-n1s7-sello .n1s7-summary {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 9;
  width: min(280px, 72%);
  padding: 0.7rem 0.8rem 0.85rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.16);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n1s7-sello .n1s7-summary[hidden] {
  display: none !important;
}

.is-n1s7-sello .n1s7-beats {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.is-n1s7-sello .n1s7-beats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.is-n1s7-sello .n1s7-beats li.is-ok {
  color: #145c3a;
}

.is-n1s7-sello .n1s7-beats li.is-pending {
  color: var(--gp-ink-muted);
}

.is-n1s7-sello .n1s7-summary-memoria {
  font-size: 0.82rem;
}

/* N2-S1 — llegada a Reserva Esmeralda */
.is-n2s1-llegada .gp-stage-bg {
  object-fit: cover;
  object-position: center 45%;
}

.is-n2s1-llegada.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(20, 50, 36, 0.18) 100%);
}

.is-n2s1-llegada .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 4;
}

.is-n2s1-llegada .gp-char {
  position: absolute;
  bottom: 2%;
  left: 50%;
  right: auto;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.is-n2s1-llegada .gp-char.is-speaker {
  opacity: 1;
  visibility: visible;
  z-index: 6;
  pointer-events: none;
}

.is-n2s1-llegada .gp-char[hidden] {
  display: none !important;
}

.is-n2s1-llegada .n2s1-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n2s1-llegada .n2s1-scene-tag {
  max-width: min(52%, 280px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n2s1-llegada .n2s1-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n2s1-llegada .n2s1-equilibrio-chip {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gp-equilibrio);
}

.is-n2s1-llegada .n2s1-chrome .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-n2s1-llegada .n2s1-objective-card {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 12;
  width: min(300px, 72%);
  padding: 0.7rem 0.85rem 0.9rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s1-llegada .n2s1-objective-card[hidden] {
  display: none !important;
}

.is-n2s1-llegada .n2s1-objective-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.is-n2s1-llegada .n2s1-banco-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.is-n2s1-llegada .n2s1-banco-list li {
  font-size: 0.82rem;
  font-weight: 700;
  padding-left: 0.15rem;
}

.is-n2s1-llegada .n2s1-banco-list li[data-type="cuidado"] {
  color: #145c3a;
}

.is-n2s1-llegada .n2s1-banco-list li[data-type="riesgo"] {
  color: #8a2a22;
}

/* N2-S2 — EcoClasificador en área de descanso */
.is-n2s2-ecoclasificador .gp-stage-bg {
  object-fit: cover;
  object-position: center 55%;
}

.is-n2s2-ecoclasificador.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(20, 50, 36, 0.2) 100%);
}

.is-n2s2-ecoclasificador .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n2s2-ecoclasificador .gp-char {
  position: absolute !important;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n2s2-ecoclasificador .gp-char.is-n2s2-caty {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 5;
  --gp-char-h: min(26%, 158px);
  --gp-char-w: calc(var(--gp-char-h) * 1.12);
  width: var(--gp-char-w) !important;
  height: var(--gp-char-h) !important;
  max-width: none !important;
  flex: none !important;
  animation: none;
}

.is-n2s2-ecoclasificador .n2s2-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n2s2-ecoclasificador .n2s2-scene-tag {
  max-width: min(78%, 380px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n2s2-ecoclasificador .n2s2-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n2s2-ecoclasificador .n2s2-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n2s2-ecoclasificador .n2s2-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n2s2-ecoclasificador .n2s2-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(660px, 72%);
  max-height: 68%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s2-ecoclasificador #classify-host {
  min-height: 0;
  overflow: auto;
}

.is-n2s2-ecoclasificador .classify-bins {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-n2s2-ecoclasificador .n2s2-table-lead {
  font-size: 0.82rem;
  color: var(--gp-ink-soft);
}

.is-n2s2-ecoclasificador .n2s2-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.is-n2s2-ecoclasificador .n2s2-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n2s2-ecoclasificador .n2s2-feedback:empty {
  display: none;
}

.is-n2s2-ecoclasificador .n2s2-feedback.is-ok {
  background: rgba(31, 138, 91, 0.18);
  color: #145c3a;
}

.is-n2s2-ecoclasificador .n2s2-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n2s2-ecoclasificador .n2s2-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n2s2-ecoclasificador .classify-bin.is-aprovechable {
  border-color: rgba(42, 122, 186, 0.4);
  background: rgba(214, 232, 246, 0.55);
}

.is-n2s2-ecoclasificador .classify-bin.is-organico {
  border-color: rgba(31, 138, 91, 0.4);
  background: rgba(214, 242, 226, 0.55);
}

.is-n2s2-ecoclasificador .classify-bin.is-especial {
  border-color: rgba(176, 48, 48, 0.35);
  background: rgba(246, 220, 218, 0.55);
}

.is-n2s2-ecoclasificador .classify-bin.is-no_residuo {
  border-color: rgba(120, 96, 64, 0.35);
  background: rgba(240, 232, 216, 0.55);
}

.is-n2s2-ecoclasificador .classify-bin.is-selected {
  box-shadow: 0 0 0 2px var(--gp-equilibrio);
}

.is-n2s2-ecoclasificador .classify-card.is-placed {
  pointer-events: none;
  opacity: 0.9;
  font-size: 0.75rem;
}

.is-n2s2-ecoclasificador .classify-pool .classify-card {
  cursor: grab;
}

.is-n2s2-ecoclasificador .classify-pool .classify-card:active,
.is-n2s2-ecoclasificador .classify-pool .classify-card.is-dragging {
  cursor: grabbing;
  opacity: 0.65;
}

/* N2-S3 — Guardianes de la Vida */
.is-n2s3-vida .gp-stage-bg {
  object-fit: cover;
  /* Anclar abajo para ver fauna del primer plano (perro, mono) */
  object-position: center bottom;
}

.is-n2s3-vida.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(20, 50, 36, 0.2) 100%);
}

.is-n2s3-vida .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n2s3-vida .gp-char {
  position: absolute;
  /* Franja inferior libre para no pisar el follaje del fondo */
  bottom: 6%;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n2s3-vida .gp-char.is-n2s3-inti {
  left: 4%;
  z-index: 5;
}

.is-n2s3-vida .gp-char.is-n2s3-guia {
  right: 4%;
  z-index: 5;
}

.is-n2s3-vida .n2s3-table {
  position: absolute;
  left: 50%;
  top: 4.5%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(560px, 78%);
  max-height: min(68%, calc(100% - 7.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s3-vida .n2s3-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

.is-n2s3-vida .n2s3-scene-tag {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.is-n2s3-vida .n2s3-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n2s3-vida .n2s3-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n2s3-vida .n2s3-table-head #btn-n2s3-hint {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
}

.is-n2s3-vida #decision-step {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-n2s3-vida .n2s3-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
  border-radius: var(--gp-radius-md);
  background: rgba(42, 74, 107, 0.06);
  box-shadow: none;
}

.is-n2s3-vida .n2s3-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.is-n2s3-vida .n2s3-feedback:empty {
  display: none;
}

.is-n2s3-vida .n2s3-feedback.is-ok {
  background: rgba(31, 138, 91, 0.18);
  color: #145c3a;
}

.is-n2s3-vida .n2s3-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n2s3-vida .n2s3-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n2s3-vida .decision-option.is-correct {
  border-color: rgba(31, 138, 91, 0.55);
  background: rgba(214, 242, 226, 0.75);
}

.is-n2s3-vida .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N2-S4 — Sendero Seguro */
.is-n2s4-sendero .gp-stage-bg {
  object-fit: cover;
  object-position: center 45%;
}

.is-n2s4-sendero.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(20, 50, 36, 0.2) 100%);
}

.is-n2s4-sendero .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n2s4-sendero .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n2s4-sendero .gp-char.is-n2s4-max {
  left: 28%;
  z-index: 5;
}

.is-n2s4-sendero .gp-char.is-n2s4-habitante {
  left: auto;
  right: 28%;
  z-index: 5;
}

.is-n2s4-sendero .n2s4-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n2s4-sendero .n2s4-scene-tag {
  max-width: min(88%, 520px);
  padding: 0.35rem 0.65rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
  pointer-events: auto;
}

.is-n2s4-sendero .n2s4-scene-tag .placeholder-eyebrow {
  font-size: 0.68rem;
}

.is-n2s4-sendero .n2s4-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n2s4-sendero .n2s4-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.is-n2s4-sendero .n2s4-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(560px, 72%);
  max-height: calc(100% - 7rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s4-sendero #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.25rem;
}

.is-n2s4-sendero .n2s4-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(31, 138, 91, 0.12);
}

.is-n2s4-sendero .n2s4-table-actions #btn-n2s4-hint {
  background: rgba(255, 255, 255, 0.92);
  margin-right: auto;
}

.is-n2s4-sendero #btn-decision-confirm {
  position: static;
  margin-top: 0;
  background: var(--accent, #1f8a5b);
  color: #fff;
  border-color: var(--accent, #1f8a5b);
}

.is-n2s4-sendero #btn-decision-confirm:disabled {
  background: rgba(31, 138, 91, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n2s4-sendero .n2s4-table .decision-prompt {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.is-n2s4-sendero .n2s4-table .decision-option {
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}

.is-n2s4-sendero .n2s4-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n2s4-sendero .n2s4-feedback:empty {
  display: none;
}

.is-n2s4-sendero .n2s4-feedback.is-ok {
  background: rgba(31, 138, 91, 0.18);
  color: #145c3a;
}

.is-n2s4-sendero .n2s4-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n2s4-sendero .n2s4-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n2s4-sendero .decision-option.is-correct {
  border-color: rgba(31, 138, 91, 0.55);
  background: rgba(214, 242, 226, 0.75);
}

.is-n2s4-sendero .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N2-S5 — Decisión Verde */
.is-n2s5-verde .gp-stage-bg {
  object-fit: cover;
  object-position: center bottom;
}

.is-n2s5-verde.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(20, 50, 36, 0.2) 100%);
}

.is-n2s5-verde .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n2s5-verde .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n2s5-verde .gp-char.is-n2s5-visitante {
  left: 0;
  z-index: 6;
}

.is-n2s5-verde .gp-char.is-n2s5-guia {
  right: calc(var(--gp-char-w) * 1.15);
  z-index: 5;
}

.is-n2s5-verde .gp-char.is-n2s5-habitante {
  right: calc(var(--gp-char-w) * 0.52);
  z-index: 5;
}

.is-n2s5-verde .gp-char.is-n2s5-inti {
  right: 0;
  z-index: 5;
}

.is-n2s5-verde .n2s5-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

.is-n2s5-verde .n2s5-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.is-n2s5-verde .n2s5-table-head .n2s5-scene-tag {
  flex: 1 1 auto;
  min-width: 0;
}

.is-n2s5-verde .n2s5-scene-tag {
  max-width: min(88%, 520px);
  padding: 0.35rem 0.65rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
  pointer-events: auto;
}

.is-n2s5-verde .n2s5-scene-tag .placeholder-eyebrow {
  font-size: 0.68rem;
}

.is-n2s5-verde .n2s5-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n2s5-verde .n2s5-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.is-n2s5-verde .n2s5-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(560px, 72%);
  max-height: calc(100% - 7rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s5-verde #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.25rem;
}

.is-n2s5-verde .n2s5-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(31, 138, 91, 0.12);
}

.is-n2s5-verde .n2s5-table-actions #btn-n2s5-hint {
  background: rgba(255, 255, 255, 0.92);
  margin-right: auto;
}

.is-n2s5-verde #btn-decision-confirm {
  position: static;
  margin-top: 0;
  background: var(--accent, #1f8a5b);
  color: #fff;
  border-color: var(--accent, #1f8a5b);
}

.is-n2s5-verde #btn-decision-confirm:disabled {
  background: rgba(31, 138, 91, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n2s5-verde .n2s5-table .decision-prompt {
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.is-n2s5-verde .n2s5-table .decision-option {
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}

.is-n2s5-verde .n2s5-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n2s5-verde .n2s5-feedback:empty {
  display: none;
}

.is-n2s5-verde .n2s5-feedback.is-ok {
  background: rgba(31, 138, 91, 0.18);
  color: #145c3a;
}

.is-n2s5-verde .n2s5-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n2s5-verde .n2s5-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n2s5-verde .decision-option.is-correct {
  border-color: rgba(31, 138, 91, 0.55);
  background: rgba(214, 242, 226, 0.75);
}

.is-n2s5-verde .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N2-S6 — Alerta de Zona Erosionada */
.is-n2s6-alerta .gp-stage-bg {
  object-fit: cover;
  object-position: center 48%;
}

.is-n2s6-alerta.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(24, 40, 52, 0.22) 100%);
}

.is-n2s6-alerta .gp-stage-cast {
  display: none !important;
}

.is-n2s6-alerta .n2s6-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n2s6-alerta .n2s6-scene-tag {
  max-width: min(62%, 340px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n2s6-alerta .n2s6-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n2s6-alerta .n2s6-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n2s6-alerta .n2s6-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n2s6-alerta .n2s6-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(560px, 72%);
  max-height: min(62%, calc(100% - 8.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s6-alerta #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-n2s6-alerta .n2s6-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(31, 138, 91, 0.12);
}

.is-n2s6-alerta #btn-decision-confirm {
  position: static;
  margin-top: 0;
  background: var(--accent, #1f8a5b);
  color: #fff;
  border-color: var(--accent, #1f8a5b);
}

.is-n2s6-alerta #btn-decision-confirm:disabled {
  background: rgba(31, 138, 91, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n2s6-alerta .n2s6-table .decision-prompt {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.is-n2s6-alerta .n2s6-table .decision-option {
  padding: 0.4rem 0.55rem;
  font-size: 0.86rem;
}

.is-n2s6-alerta .n2s6-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n2s6-alerta .n2s6-feedback:empty {
  display: none;
}

.is-n2s6-alerta .n2s6-feedback.is-ok {
  background: rgba(31, 138, 91, 0.18);
  color: #145c3a;
}

.is-n2s6-alerta .n2s6-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n2s6-alerta .n2s6-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n2s6-alerta .decision-option.is-correct {
  border-color: rgba(31, 138, 91, 0.55);
  background: rgba(214, 242, 226, 0.75);
}

.is-n2s6-alerta .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N2-S7 — Sello Equilibrio Natural */
.is-n2s7-sello .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n2s7-sello .n2s7-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 50% at 50% 40%, rgba(31, 138, 91, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(18, 36, 28, 0.42) 0%, rgba(18, 36, 28, 0.16) 48%, rgba(18, 36, 28, 0.52) 100%);
}

.is-n2s7-sello.is-stamp-full .n2s7-veil {
  background:
    radial-gradient(ellipse 58% 50% at 50% 40%, rgba(31, 138, 91, 0.38), transparent 72%),
    linear-gradient(180deg, rgba(18, 36, 28, 0.48) 0%, rgba(18, 36, 28, 0.2) 48%, rgba(18, 36, 28, 0.55) 100%);
}

.is-n2s7-sello .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 7;
}

.is-n2s7-sello .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 7;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n2s7-sello .gp-char.is-n2s7-caty {
  left: 0;
}

.is-n2s7-sello .gp-char.is-n2s7-inti {
  right: 0;
}

.is-n2s7-sello .n2s7-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n2s7-sello .n2s7-scene-tag {
  max-width: min(58%, 320px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.88);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n2s7-sello .n2s7-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n2s7-sello .n2s7-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-n2s7-sello .n2s7-rite {
  position: absolute;
  left: 50%;
  top: 4.75rem;
  transform: translateX(-50%);
  z-index: 6;
  width: min(420px, 62%);
  max-height: min(46%, calc(100% - 15rem));
  overflow: auto;
  padding: 1rem 1.1rem 1.15rem;
  text-align: center;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.35);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.is-n2s7-sello .n2s7-rite .escudo-emblem {
  margin: 0 auto 0.65rem;
}

.is-n2s7-sello .n2s7-rite .escudo-emblem.focus-equilibrio .escudo-seg.equilibrio,
.is-n2s7-sello .n2s7-rite .escudo-emblem .escudo-seg.equilibrio.is-focus {
  filter: drop-shadow(0 0 10px rgba(31, 138, 91, 0.75));
}

.is-n2s7-sello .n2s7-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-equilibrio);
}

.is-n2s7-sello.is-stamp-learning .n2s7-kicker {
  color: #6b4e00;
}

.is-n2s7-sello .n2s7-stamp-title {
  font-size: clamp(1.15rem, 3cqw, 1.55rem);
  line-height: 1.15;
  margin: 0;
  color: var(--gp-ink);
}

.is-n2s7-sello .n2s7-score {
  font-size: 0.9rem;
  font-weight: 700;
}

.is-n2s7-sello .n2s7-advice {
  margin-top: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--gp-radius-md);
  background: rgba(212, 160, 23, 0.18);
  color: #6b4e00;
  font-size: 0.82rem;
}

.is-n2s7-sello .n2s7-summary {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 9;
  width: min(300px, 72%);
  padding: 0.7rem 0.8rem 0.85rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(31, 138, 91, 0.2);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n2s7-sello .n2s7-summary[hidden] {
  display: none !important;
}

.is-n2s7-sello .n2s7-beats {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.is-n2s7-sello .n2s7-beats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.is-n2s7-sello .n2s7-beats li.is-ok {
  color: #145c3a;
}

.is-n2s7-sello .n2s7-beats li.is-pending {
  color: #6b4e00;
}

.is-n2s7-sello .n2s7-summary-equilibrio {
  font-size: 0.82rem;
}

/* N3-S1 — llegada a Ciudad de Mil Viajeros */
.is-n3s1-llegada .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n3s1-llegada.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.2) 100%);
}

.is-n3s1-llegada .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n3s1-llegada .gp-char {
  position: absolute;
  bottom: 2%;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n3s1-llegada .gp-char.is-n3s1-gestora {
  left: 1%;
  z-index: 6;
}

.is-n3s1-llegada .gp-char.is-n3s1-caty {
  right: 22%;
  z-index: 5;
}

.is-n3s1-llegada .gp-char.is-n3s1-max {
  right: 1%;
  z-index: 5;
}

.is-n3s1-llegada .n3s1-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s1-llegada .n3s1-scene-tag {
  max-width: min(58%, 300px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s1-llegada .n3s1-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n3s1-llegada .n3s1-convivencia-chip {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gp-convivencia);
}

.is-n3s1-llegada .n3s1-chrome .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-n3s1-llegada .n3s1-objective-card {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 9;
  width: min(300px, 72%);
  padding: 0.7rem 0.85rem 0.9rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s1-llegada .n3s1-objective-card[hidden] {
  display: none !important;
}

.is-n3s1-llegada .n3s1-objective-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.is-n3s1-llegada .n3s1-banco-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.is-n3s1-llegada .n3s1-banco-list li {
  font-size: 0.82rem;
  font-weight: 700;
  padding-left: 0.15rem;
}

.is-n3s1-llegada .n3s1-banco-list li[data-type="cuidado"] {
  color: #145c3a;
}

.is-n3s1-llegada .n3s1-banco-list li[data-type="servicio"] {
  color: #1a6a8a;
}

.is-n3s1-llegada .n3s1-banco-list li[data-type="riesgo"] {
  color: #8a2a22;
}

/* N3-S2 — Centro de Información Activo */
.is-n3s2-info .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n3s2-info.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.22) 100%);
}

.is-n3s2-info .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 7;
}

.is-n3s2-info .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 7;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n3s2-info .gp-char.is-n3s2-caty {
  left: 0;
}

.is-n3s2-info .gp-char.is-n3s2-gestora {
  right: 0;
}

.is-n3s2-info .n3s2-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(560px, 78%);
  max-height: min(68%, calc(100% - 7.5rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s2-info .n3s2-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n3s2-info .n3s2-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.is-n3s2-info #decision-step {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-n3s2-info .n3s2-table .decision-lead {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.is-n3s2-info .n3s2-table .decision-prompt {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.is-n3s2-info .n3s2-feedback {
  position: static;
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
  border-radius: var(--gp-radius-md);
  background: rgba(42, 74, 107, 0.06);
}

.is-n3s2-info .n3s2-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.is-n3s2-info .n3s2-table-actions #btn-decision-confirm {
  margin-top: 0;
}

.is-n3s2-info .n3s2-feedback:empty {
  display: none;
}

.is-n3s2-info .n3s2-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-n3s2-info .n3s2-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n3s2-info .n3s2-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n3s2-info .decision-option.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.75);
}

.is-n3s2-info .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N3-S3 — Emergencia Turística */
.is-n3s3-emergencia .gp-stage-bg {
  object-fit: cover;
  object-position: center 48%;
}

.is-n3s3-emergencia.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.22) 100%);
}

.is-n3s3-emergencia .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n3s3-emergencia .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n3s3-emergencia .gp-char.is-n3s3-sistema {
  left: 0;
  z-index: 6;
}

.is-n3s3-emergencia .gp-char.is-n3s3-max {
  right: 22%;
  z-index: 5;
}

.is-n3s3-emergencia .gp-char.is-n3s3-gestora {
  right: 0;
  z-index: 5;
}

.is-n3s3-emergencia .n3s3-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s3-emergencia .n3s3-scene-tag {
  max-width: min(62%, 340px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s3-emergencia .n3s3-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n3s3-emergencia .n3s3-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a2a22;
}

.is-n3s3-emergencia .n3s3-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n3s3-emergencia .n3s3-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(580px, 72%);
  max-height: min(72%, calc(100% - 8rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s3-emergencia #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-n3s3-emergencia .n3s3-table .decision-lead {
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.is-n3s3-emergencia .n3s3-table .decision-prompt {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.is-n3s3-emergencia .n3s3-table .decision-option {
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  gap: 0.5rem;
}

.is-n3s3-emergencia .n3s3-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(26, 154, 154, 0.14);
}

.is-n3s3-emergencia .n3s3-table-actions #btn-decision-confirm {
  margin-top: 0;
  background: var(--accent, #1a9a9a);
  color: #fff;
  border-color: var(--accent, #1a9a9a);
}

.is-n3s3-emergencia .n3s3-table-actions #btn-decision-confirm:disabled {
  background: rgba(26, 154, 154, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n3s3-emergencia .n3s3-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n3s3-emergencia .n3s3-feedback:empty {
  display: none;
}

.is-n3s3-emergencia .n3s3-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-n3s3-emergencia .n3s3-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n3s3-emergencia .n3s3-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n3s3-emergencia .decision-option.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.75);
}

.is-n3s3-emergencia .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N3-S4 — Experiencias Innovadoras */
.is-n3s4-experiencias .gp-stage-bg {
  object-fit: cover;
  object-position: center 45%;
}

.is-n3s4-experiencias.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.2) 100%);
}

.is-n3s4-experiencias .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n3s4-experiencias .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n3s4-experiencias .gp-char.is-n3s4-habitante {
  left: 0;
  z-index: 5;
}

.is-n3s4-experiencias .gp-char.is-n3s4-caty {
  right: 0;
  z-index: 5;
}

.is-n3s4-experiencias .n3s4-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s4-experiencias .n3s4-scene-tag {
  max-width: min(78%, 380px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s4-experiencias .n3s4-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n3s4-experiencias .n3s4-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n3s4-experiencias .n3s4-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n3s4-experiencias .n3s4-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(620px, 74%);
  max-height: calc(100% - 7rem);
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s4-experiencias .n3s4-table-lead {
  font-size: 0.82rem;
  color: var(--gp-ink-soft);
}

.is-n3s4-experiencias .n3s4-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.is-n3s4-experiencias .multi-select-item.is-selected {
  border-color: var(--gp-convivencia);
  background: rgba(214, 242, 238, 0.75);
}

.is-n3s4-experiencias .multi-select-item {
  cursor: grab;
}

.is-n3s4-experiencias .multi-select-item:active,
.is-n3s4-experiencias .multi-select-item.is-dragging {
  cursor: grabbing;
  opacity: 0.65;
}

.is-n3s4-experiencias .multi-select-dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px dashed rgba(26, 154, 154, 0.5);
  border-radius: var(--gp-radius-md);
  background: rgba(214, 242, 238, 0.28);
  color: var(--gp-ink-soft);
}

.is-n3s4-experiencias .multi-select-dropzone.is-drag-over {
  border-color: var(--gp-convivencia);
  background: rgba(214, 242, 238, 0.7);
}

.is-n3s4-experiencias .multi-select-selection-chip {
  padding: 0.2rem 0.45rem;
  border-radius: var(--gp-radius-pill);
  background: rgba(26, 154, 154, 0.16);
  color: var(--gp-ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.is-n3s4-experiencias .multi-select-item.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.85);
  pointer-events: none;
}

.is-n3s4-experiencias .n3s4-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n3s4-experiencias .n3s4-feedback:empty {
  display: none;
}

.is-n3s4-experiencias .n3s4-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-n3s4-experiencias .n3s4-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n3s4-experiencias .n3s4-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* N3-S5 — Equilibrio Ciudadano */
.is-n3s5-equilibrio .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n3s5-equilibrio.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.22) 100%);
}

.is-n3s5-equilibrio .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-n3s5-equilibrio .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-n3s5-equilibrio .gp-char.is-n3s5-visitante {
  left: 0;
  z-index: 7;
}

.is-n3s5-equilibrio .gp-char.is-n3s5-habitante {
  left: calc(var(--gp-char-w) * 0.58);
  right: auto;
  z-index: 7;
}

.is-n3s5-equilibrio .gp-char.is-n3s5-gestora {
  right: 0;
  z-index: 7;
}

.is-n3s5-equilibrio .n3s5-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s5-equilibrio .n3s5-scene-tag {
  max-width: min(62%, 340px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s5-equilibrio .n3s5-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-n3s5-equilibrio .n3s5-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a2a22;
}

.is-n3s5-equilibrio .n3s5-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n3s5-equilibrio .n3s5-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(580px, 72%);
  max-height: min(72%, calc(100% - 8rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s5-equilibrio #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-n3s5-equilibrio .n3s5-table .decision-prompt {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.is-n3s5-equilibrio .n3s5-table .decision-option {
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  gap: 0.5rem;
}

.is-n3s5-equilibrio .n3s5-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(26, 154, 154, 0.14);
}

.is-n3s5-equilibrio .n3s5-table-actions #btn-decision-confirm {
  margin-top: 0;
  background: var(--accent, #1a9a9a);
  color: #fff;
  border-color: var(--accent, #1a9a9a);
}

.is-n3s5-equilibrio .n3s5-table-actions #btn-decision-confirm:disabled {
  background: rgba(26, 154, 154, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-n3s5-equilibrio .n3s5-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n3s5-equilibrio .n3s5-feedback:empty {
  display: none;
}

.is-n3s5-equilibrio .n3s5-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-n3s5-equilibrio .n3s5-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n3s5-equilibrio .n3s5-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-n3s5-equilibrio .decision-option.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.85);
}

.is-n3s5-equilibrio .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* N3-S6 — Asamblea de Voces */
.is-n3s6-asamblea .gp-stage-bg {
  object-fit: cover;
  object-position: center 45%;
}

.is-n3s6-asamblea.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(26, 43, 60, 0.2) 100%);
}

.is-n3s6-asamblea .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 5;
}

.is-n3s6-asamblea .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 5;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n3s6-asamblea .gp-char.is-n3s6-visitante {
  left: 0;
  z-index: 5;
}

.is-n3s6-asamblea .gp-char.is-n3s6-inti {
  left: calc(var(--gp-char-w) * 0.55);
  z-index: 5;
}

.is-n3s6-asamblea .gp-char.is-n3s6-habitante {
  right: calc(var(--gp-char-w) * 0.55);
  z-index: 5;
}

.is-n3s6-asamblea .gp-char.is-n3s6-gestora {
  right: 0;
  z-index: 5;
}

.is-n3s6-asamblea .n3s6-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s6-asamblea .n3s6-scene-tag {
  max-width: min(78%, 380px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.86);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s6-asamblea .n3s6-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n3s6-asamblea .n3s6-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-n3s6-asamblea .n3s6-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.88);
}

.is-n3s6-asamblea .n3s6-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(620px, 70%);
  max-height: min(68%, calc(100% - 8rem));
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 0.75rem 0.85rem 0.85rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s6-asamblea .n3s6-table-lead {
  font-size: 0.82rem;
  color: var(--gp-ink-soft);
}

.is-n3s6-asamblea .n3s6-replies {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.is-n3s6-asamblea .n3s6-replies:empty {
  display: none;
}

.is-n3s6-asamblea .n3s6-reply {
  padding: 0.45rem 0.55rem;
  border-radius: var(--gp-radius-md);
  border: 1px solid rgba(26, 154, 154, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.is-n3s6-asamblea .n3s6-reply.is-correct {
  border-color: rgba(26, 154, 154, 0.4);
  background: rgba(214, 242, 238, 0.7);
}

.is-n3s6-asamblea .n3s6-reply.is-partial {
  border-color: rgba(212, 160, 23, 0.45);
  background: rgba(255, 244, 214, 0.75);
}

.is-n3s6-asamblea .n3s6-reply.is-incorrect {
  border-color: rgba(176, 48, 48, 0.35);
  background: rgba(246, 220, 218, 0.7);
}

.is-n3s6-asamblea .n3s6-reply-voice {
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

.is-n3s6-asamblea .n3s6-reply-note {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gp-ink-soft);
}

.is-n3s6-asamblea .n3s6-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.is-n3s6-asamblea .multi-select-item.is-selected {
  border-color: var(--gp-convivencia);
  background: rgba(214, 242, 238, 0.75);
}

.is-n3s6-asamblea .multi-select-item.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.85);
  pointer-events: none;
}

.is-n3s6-asamblea .n3s6-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-n3s6-asamblea .n3s6-feedback:empty {
  display: none;
}

.is-n3s6-asamblea .n3s6-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-n3s6-asamblea .n3s6-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-n3s6-asamblea .n3s6-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* N3-S7 — Sello Convivencia Turística */
.is-n3s7-sello .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-n3s7-sello .n3s7-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 50% at 50% 40%, rgba(26, 154, 154, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(20, 36, 48, 0.42) 0%, rgba(20, 36, 48, 0.16) 48%, rgba(20, 36, 48, 0.52) 100%);
}

.is-n3s7-sello.is-stamp-full .n3s7-veil {
  background:
    radial-gradient(ellipse 58% 50% at 50% 40%, rgba(26, 154, 154, 0.4), transparent 72%),
    linear-gradient(180deg, rgba(20, 36, 48, 0.48) 0%, rgba(20, 36, 48, 0.2) 48%, rgba(20, 36, 48, 0.55) 100%);
}

.is-n3s7-sello .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 7;
}

.is-n3s7-sello .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 7;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-n3s7-sello .gp-char.is-n3s7-caty {
  left: 0;
}

.is-n3s7-sello .gp-char.is-n3s7-max {
  left: 15%;
}

.is-n3s7-sello .gp-char.is-n3s7-inti {
  right: 0;
}

.is-n3s7-sello .n3s7-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-n3s7-sello .n3s7-scene-tag {
  max-width: min(58%, 340px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.88);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-n3s7-sello .n3s7-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-n3s7-sello .n3s7-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-n3s7-sello .n3s7-rite {
  position: absolute;
  left: 50%;
  top: 4.75rem;
  transform: translateX(-50%);
  z-index: 6;
  width: min(420px, 58%);
  max-height: min(46%, calc(100% - 15rem));
  overflow: auto;
  padding: 1rem 1.1rem 1.15rem;
  text-align: center;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.35);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.is-n3s7-sello .n3s7-rite .escudo-emblem {
  margin: 0 auto 0.65rem;
}

.is-n3s7-sello .n3s7-rite .escudo-emblem.focus-convivencia .escudo-seg.convivencia,
.is-n3s7-sello .n3s7-rite .escudo-emblem .escudo-seg.convivencia.is-focus {
  filter: drop-shadow(0 0 10px rgba(26, 154, 154, 0.75));
}

.is-n3s7-sello .n3s7-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-convivencia);
}

.is-n3s7-sello.is-stamp-learning .n3s7-kicker {
  color: #6b4e00;
}

.is-n3s7-sello .n3s7-stamp-title {
  font-size: clamp(1.15rem, 3cqw, 1.55rem);
  line-height: 1.15;
  margin: 0;
  color: var(--gp-ink);
}

.is-n3s7-sello .n3s7-score {
  font-size: 0.9rem;
  font-weight: 700;
}

.is-n3s7-sello .n3s7-advice {
  margin-top: 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--gp-radius-md);
  background: rgba(212, 160, 23, 0.18);
  color: #6b4e00;
  font-size: 0.82rem;
}

.is-n3s7-sello .n3s7-summary {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 9;
  width: min(300px, 72%);
  padding: 0.7rem 0.8rem 0.85rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(26, 154, 154, 0.22);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-n3s7-sello .n3s7-summary[hidden] {
  display: none !important;
}

.is-n3s7-sello .n3s7-beats {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.is-n3s7-sello .n3s7-beats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.is-n3s7-sello .n3s7-beats li.is-ok {
  color: #0f5c5c;
}

.is-n3s7-sello .n3s7-beats li.is-pending {
  color: #6b4e00;
}

.is-n3s7-sello .n3s7-summary-convivencia,
.is-n3s7-sello .n3s7-summary-note {
  font-size: 0.82rem;
}

/* CF-S1 — Consejo del Escudo */
.is-cfs1-consejo .gp-stage-bg {
  object-fit: cover;
  object-position: center 40%;
}

.is-cfs1-consejo .cfs1-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 50% 38%, rgba(212, 160, 23, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.4) 0%, rgba(18, 28, 42, 0.14) 48%, rgba(18, 28, 42, 0.5) 100%);
}

.is-cfs1-consejo.is-ready .cfs1-veil {
  background:
    radial-gradient(ellipse 55% 48% at 50% 38%, rgba(212, 160, 23, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.45) 0%, rgba(18, 28, 42, 0.16) 48%, rgba(18, 28, 42, 0.52) 100%);
}

.is-cfs1-consejo .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 5;
}

.is-cfs1-consejo .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 5;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-cfs1-consejo .gp-char.is-cfs1-inti {
  left: 0;
  z-index: 5;
}

.is-cfs1-consejo .gp-char.is-cfs1-max {
  /* Junto a Caty, a la derecha de la tarjeta central */
  right: calc(var(--gp-char-w) * 0.78);
  z-index: 5;
}

.is-cfs1-consejo .gp-char.is-cfs1-caty {
  right: 0.25rem;
  z-index: 5;
}

.is-cfs1-consejo .cfs1-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-cfs1-consejo .cfs1-scene-tag {
  max-width: min(58%, 340px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.88);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-cfs1-consejo .cfs1-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-cfs1-consejo .cfs1-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-cfs1-consejo .cfs1-table {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(340px, 46%);
  max-height: min(64%, calc(100% - 7rem));
  overflow: auto;
  padding: 0.7rem 0.85rem 0.75rem;
  text-align: center;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.32);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.is-cfs1-consejo .cfs1-table-emblem {
  margin: 0 auto 0.35rem;
}

.is-cfs1-consejo .cfs1-table .escudo-emblem {
  margin: 0 auto;
  gap: 0.3rem;
}

.is-cfs1-consejo .cfs1-table .escudo-emblem.size-md .escudo-emblem-svg {
  width: 104px;
  height: 104px;
}

.is-cfs1-consejo .cfs1-table .escudo-emblem-legend {
  gap: 0.28rem;
}

.is-cfs1-consejo .cfs1-table .escudo-emblem-legend .leg {
  font-size: 0.7rem;
  padding: 0.12rem 0.4rem;
}

.is-cfs1-consejo .cfs1-table .escudo-stamps {
  gap: 0.28rem;
  margin-top: 0.1rem;
}

.is-cfs1-consejo .cfs1-table .escudo-stamp {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.78rem;
}

.is-cfs1-consejo .cfs1-lead {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-deep-blue);
  margin-bottom: 0.4rem !important;
}

.is-cfs1-consejo .cfs1-checklist {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.5rem;
  display: grid;
  gap: 0.28rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(212, 160, 23, 0.16);
  border-radius: var(--gp-radius-md);
}

.is-cfs1-consejo .cfs1-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.is-cfs1-consejo .cfs1-checklist li span {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}

.is-cfs1-consejo .cfs1-checklist li small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gp-ink-soft);
}

.is-cfs1-consejo .cfs1-checklist li.is-ok {
  color: #145c3a;
}

.is-cfs1-consejo .cfs1-checklist li.is-pending {
  color: #6b4e00;
}

.is-cfs1-consejo .cfs1-ready,
.is-cfs1-consejo .cfs1-blocked {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.35rem 0.45rem;
  border-radius: var(--gp-radius-md);
}

.is-cfs1-consejo .cfs1-ready {
  color: #0f5c5c;
  background: rgba(26, 154, 154, 0.12);
}

.is-cfs1-consejo .cfs1-blocked {
  color: #8a2a22;
  background: rgba(176, 48, 48, 0.1);
}

.is-cfs1-consejo .cfs1-escudo-panel {
  position: absolute;
  top: 4.6rem;
  right: 0.65rem;
  z-index: 9;
  width: min(320px, 78%);
  max-height: min(72%, calc(100% - 5.75rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.7rem 0.8rem 0.85rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.25);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-cfs1-consejo .cfs1-escudo-panel .escudo-meters {
  gap: 0.45rem;
}

.is-cfs1-consejo .cfs1-escudo-panel[hidden] {
  display: none !important;
}

/* CF-S2 — Evidencias de Protección */
.is-cfs2-evidencias .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-cfs2-evidencias.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(18, 28, 42, 0.22) 100%);
}

.is-cfs2-evidencias .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 5;
}

.is-cfs2-evidencias .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 5;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-cfs2-evidencias .gp-char.is-cfs2-gestora {
  left: 0;
  z-index: 5;
}

.is-cfs2-evidencias .gp-char.is-cfs2-max {
  right: 0;
  z-index: 5;
}

.is-cfs2-evidencias .cfs2-table {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  z-index: 8;
  width: min(640px, 78%);
  max-height: min(72%, calc(100% - 8rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.7rem 0.8rem 0.65rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-cfs2-evidencias .cfs2-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.is-cfs2-evidencias .cfs2-scene-tag {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.is-cfs2-evidencias .cfs2-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-cfs2-evidencias .cfs2-count {
  font-size: 0.8rem;
  font-weight: 700;
}

.is-cfs2-evidencias .cfs2-table-head #btn-cfs2-hint {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
}

.is-cfs2-evidencias .cfs2-table-lead {
  font-size: 0.82rem;
  color: var(--gp-ink-soft);
  flex-shrink: 0;
  margin-bottom: 0.45rem !important;
}

.is-cfs2-evidencias #ev-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.25rem;
}

.is-cfs2-evidencias .cfs2-group {
  margin-bottom: 0.65rem;
}

.is-cfs2-evidencias .cfs2-group:last-of-type {
  margin-bottom: 0.15rem;
}

.is-cfs2-evidencias .cfs2-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gp-deep-blue);
}

.is-cfs2-evidencias .cfs2-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.35rem 0 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
  border-radius: var(--gp-radius-md);
  background: rgba(42, 74, 107, 0.06);
  box-shadow: none;
}

.is-cfs2-evidencias .cfs2-table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(212, 160, 23, 0.18);
  flex-shrink: 0;
  background: rgba(250, 248, 244, 0.98);
}

.is-cfs2-evidencias .multi-select-item.is-selected {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(255, 244, 214, 0.8);
}

.is-cfs2-evidencias .multi-select-item.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.85);
  pointer-events: none;
}

.is-cfs2-evidencias .multi-select-item.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
}

.is-cfs2-evidencias .multi-select-item.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

.is-cfs2-evidencias .cfs2-feedback:empty {
  display: none;
}

.is-cfs2-evidencias .cfs2-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-cfs2-evidencias .cfs2-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-cfs2-evidencias .cfs2-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

/* CF-S3 — Plan Integral del Guardián */
.is-cfs3-plan .gp-stage-bg {
  object-fit: cover;
  object-position: center 42%;
}

.is-cfs3-plan.has-stage-bg .gp-stage-ground {
  background: linear-gradient(180deg, transparent 72%, rgba(18, 28, 42, 0.22) 100%);
}

.is-cfs3-plan .gp-stage-cast {
  inset: 0;
  display: block;
}

.is-cfs3-plan .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 4;
  width: var(--gp-char-w);
}

.is-cfs3-plan .gp-char.is-cfs3-caty {
  left: 0;
  z-index: 5;
}

.is-cfs3-plan .gp-char.is-cfs3-inti {
  right: 0;
  z-index: 5;
}

.is-cfs3-plan .cfs3-chrome {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.is-cfs3-plan .cfs3-scene-tag {
  max-width: min(62%, 360px);
  padding: 0.4rem 0.7rem;
  background: rgba(250, 248, 244, 0.88);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-cfs3-plan .cfs3-scene-title {
  font-size: clamp(0.88rem, 2.1cqw, 1.05rem);
  line-height: 1.2;
  margin-bottom: 0.15rem !important;
}

.is-cfs3-plan .cfs3-count {
  font-size: 0.72rem;
  font-weight: 700;
}

.is-cfs3-plan .cfs3-chrome-actions .btn {
  background: rgba(250, 248, 244, 0.9);
}

.is-cfs3-plan .cfs3-table {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(600px, 72%);
  max-height: min(72%, calc(100% - 8rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.65rem 0.75rem 0.55rem;
  background: rgba(250, 248, 244, 0.94);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-lift);
}

.is-cfs3-plan #decision-step {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0.2rem;
}

.is-cfs3-plan .cfs3-table .decision-prompt {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.is-cfs3-plan .cfs3-table .decision-option {
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  gap: 0.5rem;
}

.is-cfs3-plan .cfs3-table-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(212, 160, 23, 0.18);
}

.is-cfs3-plan .cfs3-table-actions #btn-decision-confirm {
  margin-top: 0;
  background: var(--accent, #1a9a9a);
  color: #fff;
  border-color: var(--accent, #1a9a9a);
}

.is-cfs3-plan .cfs3-table-actions #btn-decision-confirm:disabled {
  background: rgba(26, 154, 154, 0.42);
  color: #fff;
  border-color: transparent;
  opacity: 1;
}

.is-cfs3-plan .cfs3-feedback {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: auto;
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  border-radius: var(--gp-radius-md);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: none;
  flex-shrink: 0;
}

.is-cfs3-plan .cfs3-feedback:empty {
  display: none;
}

.is-cfs3-plan .cfs3-feedback.is-ok {
  background: rgba(26, 154, 154, 0.18);
  color: #0f5c5c;
}

.is-cfs3-plan .cfs3-feedback.is-err {
  background: rgba(176, 48, 48, 0.16);
  color: #8a2a22;
}

.is-cfs3-plan .cfs3-feedback.is-warn {
  background: rgba(212, 160, 23, 0.2);
  color: #6b4e00;
}

.is-cfs3-plan .decision-option.is-correct {
  border-color: rgba(26, 154, 154, 0.55);
  background: rgba(214, 242, 238, 0.85);
}

.is-cfs3-plan .decision-option.is-partial {
  border-color: rgba(212, 160, 23, 0.5);
  background: rgba(255, 244, 214, 0.8);
}

.is-cfs3-plan .decision-option.is-wrong {
  border-color: rgba(176, 48, 48, 0.45);
  background: rgba(246, 220, 218, 0.75);
}

/* SF — Resultado final */
.is-sf-resultado .gp-stage-bg {
  object-fit: cover;
  object-position: center 40%;
}

.is-sf-resultado .sf-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 50% at 50% 38%, rgba(212, 160, 23, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.42) 0%, rgba(18, 28, 42, 0.14) 48%, rgba(18, 28, 42, 0.52) 100%);
}

.is-sf-resultado.is-band-destacado .sf-veil {
  background:
    radial-gradient(ellipse 58% 50% at 50% 38%, rgba(212, 160, 23, 0.36), transparent 72%),
    linear-gradient(180deg, rgba(18, 28, 42, 0.48) 0%, rgba(18, 28, 42, 0.18) 48%, rgba(18, 28, 42, 0.55) 100%);
}

.is-sf-resultado .gp-stage-cast {
  inset: 0;
  display: block;
  z-index: 12;
}

.is-sf-resultado .gp-char {
  position: absolute;
  bottom: 0;
  margin: 0;
  z-index: 12;
  width: var(--gp-char-w);
  pointer-events: none;
}

.is-sf-resultado .gp-char.is-sf-caty {
  left: 0;
  z-index: 12;
}

.is-sf-resultado .gp-char.is-sf-max {
  left: 15%;
  z-index: 12;
}

.is-sf-resultado .gp-char.is-sf-inti {
  right: 0;
  z-index: 12;
}

.is-sf-resultado .sf-rite-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  text-align: left;
}

.is-sf-resultado .sf-scene-tag {
  max-width: none;
  width: 100%;
  padding: 0.35rem 0.55rem;
  background: rgba(250, 248, 244, 0.96);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.28);
  border-radius: var(--gp-radius-md);
  box-shadow: var(--gp-shadow-soft);
}

.is-sf-resultado .sf-scene-title {
  font-size: clamp(0.95rem, 2.4cqw, 1.2rem);
  line-height: 1.2;
}

.is-sf-resultado .sf-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}

.is-sf-resultado .sf-chrome-actions .btn {
  background: rgba(255, 255, 255, 0.92);
}

.is-sf-resultado .sf-rite {
  position: absolute;
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(460px, 72%);
  max-height: calc(100% - 5% - 18%);
  overflow: auto;
  padding: 0.85rem 1rem 3.5rem;
  text-align: center;
  background: rgba(250, 248, 244, 0.95);
  border: var(--gp-stroke) solid rgba(212, 160, 23, 0.32);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.is-sf-resultado .sf-rite .escudo-emblem {
  margin: 0 auto 0.55rem;
}

.is-sf-resultado .sf-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gp-deep-blue);
}

.is-sf-resultado.is-band-destacado .sf-kicker {
  color: #8a6a00;
}

.is-sf-resultado.is-band-formacion .sf-kicker {
  color: #6b4e00;
}

.is-sf-resultado .sf-band-title {
  font-size: clamp(1.15rem, 3cqw, 1.55rem);
  line-height: 1.15;
  margin: 0;
}

.is-sf-resultado .sf-quiz-invite {
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--gp-deep-blue);
  max-width: 36ch;
  margin-inline: auto;
}

.is-sf-resultado .sf-medals {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.is-sf-resultado .sf-medals li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--gp-radius-md);
  background: rgba(214, 242, 238, 0.75);
  color: #0f5c5c;
}

.is-sf-resultado .sf-stats {
  text-align: left;
  margin: 0 auto 0.65rem;
  max-width: 20rem;
}

.is-sf-resultado .sf-stat {
  font-size: 0.84rem;
}

.is-sf-resultado .sf-message {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gp-ink-soft);
  margin-bottom: 0.65rem !important;
}

.is-sf-resultado .sf-meters {
  text-align: left;
}

.is-sf-resultado .sf-meters .escudo-meters {
  margin: 0;
}

/* Escenarios */
.scenario-intro .gp-stage-mid {
  background:
    radial-gradient(ellipse 70% 50% at 50% 70%, rgba(42, 74, 107, 0.18), transparent),
    linear-gradient(135deg, rgba(196, 92, 38, 0.08), rgba(26, 154, 154, 0.08));
}

.scenario-intro .gp-stage-motif::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 7rem;
  height: 7rem;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 3px solid rgba(42, 74, 107, 0.25);
  box-shadow: inset 0 0 0 12px rgba(42, 74, 107, 0.06);
}

.scenario-pueblo .gp-stage-sky {
  background: linear-gradient(180deg, #f0d9c0 0%, #f7ebe0 40%, transparent 72%);
}

.scenario-pueblo .gp-stage-mid {
  background:
    linear-gradient(180deg, transparent 55%, rgba(196, 92, 38, 0.22) 100%),
    radial-gradient(circle at 18% 68%, rgba(212, 160, 23, 0.35) 0 4%, transparent 5%),
    radial-gradient(circle at 78% 62%, rgba(196, 92, 38, 0.28) 0 6%, transparent 7%);
}

.scenario-reserva .gp-stage-sky {
  background: linear-gradient(180deg, #b8dfc9 0%, #e4f3ea 42%, transparent 72%);
}

.scenario-reserva .gp-stage-mid {
  background:
    linear-gradient(180deg, transparent 50%, rgba(31, 138, 91, 0.28) 100%),
    radial-gradient(ellipse at 30% 75%, rgba(31, 138, 91, 0.35), transparent 40%),
    radial-gradient(ellipse at 70% 70%, rgba(26, 154, 154, 0.2), transparent 35%);
}

.scenario-ciudad .gp-stage-sky {
  background: linear-gradient(180deg, #9ecad4 0%, #e0eef1 45%, transparent 72%);
}

.scenario-ciudad .gp-stage-mid {
  background:
    linear-gradient(180deg, transparent 48%, rgba(26, 154, 154, 0.25) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(42, 74, 107, 0.06) 28px,
      rgba(42, 74, 107, 0.06) 30px
    );
}

.scenario-consejo .gp-stage-sky {
  background: linear-gradient(180deg, #1e3a5f 0%, #2a4a6b 35%, #d6e2ee 70%);
}

.scenario-consejo .gp-stage-mid {
  background: radial-gradient(circle at 50% 40%, rgba(212, 160, 23, 0.25), transparent 45%);
}

.scenario-cierre .gp-stage-sky {
  background: linear-gradient(180deg, #2a4a6b 0%, #c45c26 35%, #1f8a5b 70%, #faf8f4 100%);
  opacity: 0.55;
}

.scenario-cierre .gp-stage-mid {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.35), transparent 50%);
}

.gp-char.is-talking .gp-char-figure {
  animation: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), var(--gp-shadow-soft);
}

.gp-char.has-sprite.is-talking .gp-char-figure {
  box-shadow: none;
  animation: none;
}

@keyframes gp-sky-drift {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

/* Personajes — misma caja visual en todas las escenas (alto normalizado) */
.gp-char {
  /* Caja más ancha que alta: object-fit contain escala todos por la misma altura */
  --gp-char-h: min(30cqw, 290px);
  --gp-char-w: calc(var(--gp-char-h) * 1.12);
  --gp-char-w-max: var(--gp-char-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  animation: gp-char-in 0.55s ease both;
}

.gp-char.is-right { margin-left: auto; }
.gp-char.is-left { margin-right: auto; }
.gp-char.is-hero .gp-char-figure {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.75rem;
}

.gp-char.has-sprite {
  width: var(--gp-char-w);
  height: var(--gp-char-h);
  align-items: stretch;
  overflow: hidden;
}

.gp-char.has-sprite[data-char="max"] {
  width: var(--gp-char-w);
  height: var(--gp-char-h);
}

.gp-char.has-sprite .gp-char-figure,
.gp-char.has-sprite.is-hero .gp-char-figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  font-size: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gp-char-sprite {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 12px rgba(20, 40, 60, 0.3));
  pointer-events: none;
  user-select: none;
}

.gp-char.is-hero .gp-char-sprite {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.gp-char-figure {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50% 50% 42% 42%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--gp-shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.gp-char-label {
  display: none;
}

.char-caty .gp-char-figure { background: linear-gradient(145deg, #2a4a6b, #1a9a9a); }
.char-max .gp-char-figure { background: linear-gradient(145deg, #c45c26, #d4a017); }
.char-inti .gp-char-figure { background: linear-gradient(145deg, #d4a017, #1e3a5f); }
.char-habitante .gp-char-figure { background: linear-gradient(145deg, #c45c26, #8b4513); }
.char-guia .gp-char-figure { background: linear-gradient(145deg, #1f8a5b, #145c3a); }
.char-visitante .gp-char-figure { background: linear-gradient(145deg, #e05a4e, #c45c26); }
.char-gestora .gp-char-figure { background: linear-gradient(145deg, #1a9a9a, #2a4a6b); }

@keyframes gp-char-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Escudo emblema */
.escudo-emblem {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0 auto 1rem;
}

.escudo-emblem.size-sm .escudo-emblem-svg { width: 72px; height: 72px; }
.escudo-emblem.size-md .escudo-emblem-svg { width: 120px; height: 120px; }
.escudo-emblem.size-lg .escudo-emblem-svg { width: 160px; height: 160px; }

.escudo-emblem-disk {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
}

.escudo-seg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.escudo-seg-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--gp-deep-blue);
  box-shadow: 0 2px 6px rgba(26, 43, 60, 0.18);
  font-size: 0.78em;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.escudo-emblem.size-sm .escudo-seg-icon { font-size: 0.62em; width: 1.2em; height: 1.2em; }
.escudo-emblem.size-md .escudo-seg-icon { font-size: 0.95em; }
.escudo-emblem.size-lg .escudo-seg-icon { font-size: 1.15em; width: 1.45em; height: 1.45em; }

/* Centroides de cada sector (120°) */
.escudo-seg-icon.memoria {
  left: 70%;
  top: 36%;
  color: var(--gp-memoria);
}

.escudo-seg-icon.equilibrio {
  left: 50%;
  top: 76%;
  color: var(--gp-equilibrio);
}

.escudo-seg-icon.convivencia {
  left: 30%;
  top: 36%;
  color: var(--gp-convivencia);
}

.escudo-emblem.is-dim { opacity: 0.78; filter: saturate(0.35) brightness(0.92); }
.escudo-emblem.is-active { animation: gp-escudo-awake 0.8s ease; }
.escudo-emblem.is-celebrate .escudo-emblem-svg {
  animation: gp-escudo-pulse 1.4s ease infinite;
}

.escudo-ring {
  fill: var(--gp-surface-pale);
  stroke: var(--gp-deep-blue);
  stroke-width: 3;
}

.escudo-core {
  fill: var(--gp-deep-blue);
}

.escudo-core-mark {
  fill: #fff;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
}

.escudo-seg {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.5;
  transition: fill 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

.escudo-seg.is-off,
.escudo-seg.band-off {
  fill: #b8c2ce !important;
  opacity: 0.38;
  filter: grayscale(0.85);
}

.escudo-seg.memoria.band-bajo { fill: #e8b89a; opacity: 0.55; }
.escudo-seg.memoria.band-medio { fill: var(--gp-memoria); opacity: 0.85; }
.escudo-seg.memoria.band-alto { fill: var(--gp-memoria); opacity: 1; }

.escudo-seg.equilibrio.band-bajo { fill: #9ad4b8; opacity: 0.55; }
.escudo-seg.equilibrio.band-medio { fill: var(--gp-equilibrio); opacity: 0.85; }
.escudo-seg.equilibrio.band-alto { fill: var(--gp-equilibrio); opacity: 1; }

.escudo-seg.convivencia.band-bajo { fill: #9ad4d4; opacity: 0.55; }
.escudo-seg.convivencia.band-medio { fill: var(--gp-convivencia); opacity: 0.85; }
.escudo-seg.convivencia.band-alto { fill: var(--gp-convivencia); opacity: 1; }

.escudo-seg-icon.is-off {
  opacity: 0.4;
  filter: grayscale(1);
  color: #6b7a8a !important;
  background: rgba(255, 255, 255, 0.7);
}

.escudo-emblem-legend .leg.is-off,
.escudo-emblem-legend .leg.band-off {
  opacity: 0.48;
  filter: grayscale(0.9);
  color: #6b7a8a !important;
  border-color: rgba(42, 74, 107, 0.12);
}

.escudo-meter.is-off {
  opacity: 0.55;
  filter: grayscale(0.75);
}

.escudo-meter.is-off .progress-bar {
  background: #b8c2ce !important;
}

.escudo-emblem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.escudo-emblem-legend .leg {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--gp-radius-pill);
  background: var(--gp-surface-pale);
  border: 1px solid rgba(42, 74, 107, 0.15);
}

.escudo-emblem-legend .leg.memoria { color: var(--gp-memoria); }
.escudo-emblem-legend .leg.equilibrio { color: var(--gp-equilibrio); }
.escudo-emblem-legend .leg.convivencia { color: var(--gp-convivencia); }

.escudo-emblem-legend .leg.is-focus {
  box-shadow: 0 0 0 2px currentColor;
}

.escudo-seg.is-focus {
  filter: drop-shadow(0 0 6px rgba(212, 160, 23, 0.7));
}

.escudo-stamps {
  display: flex;
  gap: 0.4rem;
}

.escudo-stamp {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gp-surface-deep);
  color: var(--gp-ink-muted);
  opacity: 0.4;
  border: 2px dashed rgba(42, 74, 107, 0.25);
}

.escudo-stamp.is-on {
  opacity: 1;
  border-style: solid;
  color: #fff;
}

.escudo-stamp:nth-child(1).is-on { background: var(--gp-memoria); border-color: var(--gp-memoria); }
.escudo-stamp:nth-child(2).is-on { background: var(--gp-equilibrio); border-color: var(--gp-equilibrio); }
.escudo-stamp:nth-child(3).is-on { background: var(--gp-convivencia); border-color: var(--gp-convivencia); }

@keyframes gp-escudo-awake {
  0% { transform: scale(0.92); filter: grayscale(0.4); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); filter: none; }
}

@keyframes gp-escudo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.escudo-meters {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .escudo-meters.is-active {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .escudo-meters.is-active .escudo-emblem {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .is-n2s2-ecoclasificador .n2s2-table {
    width: min(820px, 86%);
  }

  .is-n2s2-ecoclasificador .classify-pool {
    gap: 0.35rem;
  }

  .is-n2s2-ecoclasificador .classify-card {
    font-size: 0.74rem;
    padding: 0.28rem 0.5rem;
    gap: 0.35rem;
  }

  .is-n2s2-ecoclasificador .classify-card-image {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    border-radius: 0.35rem;
  }
}

/* Escritorio / alto reducido: mismas mesas scrolleables que en móvil */
.is-n1s6-decision .n1s6-table,
.is-n2s2-ecoclasificador .n2s2-table,
.is-n2s3-vida .n2s3-table,
.is-n2s4-sendero .n2s4-table,
.is-n2s5-verde .n2s5-table,
.is-n2s6-alerta .n2s6-table,
.is-n3s2-info .n3s2-table,
.is-n3s3-emergencia .n3s3-table,
.is-n3s4-experiencias .n3s4-table,
.is-n3s5-equilibrio .n3s5-table,
.is-n3s6-asamblea .n3s6-table,
.is-cfs2-evidencias .cfs2-table,
.is-cfs3-plan .cfs3-table {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.is-n1s6-decision #decision-step,
.is-n2s3-vida #decision-step,
.is-n2s4-sendero #decision-step,
.is-n2s5-verde #decision-step,
.is-n2s6-alerta #decision-step,
.is-n3s2-info #decision-step,
.is-n3s3-emergencia #decision-step,
.is-n3s5-equilibrio #decision-step,
.is-cfs3-plan #decision-step,
.is-n2s2-ecoclasificador #classify-host,
.is-cfs2-evidencias #ev-host {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

@media (max-width: 640px) {
  .gp-char {
    --gp-char-h: min(36cqw, 220px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    --gp-char-w-max: var(--gp-char-w);
  }

  .gp-stage-cast {
    inset: auto 1% 1% 1%;
  }

  .is-s2-portada .gp-char.is-s2-max {
    left: 22%;
  }

  /* Portada S2: un poco más de alto de escena para Caty */
  .game-shell:has(.is-s2-portada) .stage {
    min-height: min(300px, 44dvh);
  }

  .is-n1s1-llegada .gp-char.is-n1s1-caty {
    right: 22%;
  }

  .is-n1s3-cazadores .n1s3-scene-tag {
    max-width: min(94%, 420px);
    width: min(94%, 420px);
    padding: 0.28rem 0.55rem;
  }

  .is-n1s3-cazadores .n1s3-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-n1s3-cazadores .n1s3-scene-title {
    font-size: 0.82rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-n1s3-cazadores .n1s3-count {
    font-size: 0.68rem;
  }

  .is-n1s3-cazadores .n1s3-table {
    width: min(640px, 96%);
    top: 1.5%;
    bottom: 0.35rem;
    left: 0;
    right: 0;
    margin-inline: auto;
    transform: none;
    max-height: none;
    min-height: 0;
    padding: 0.4rem 0.45rem 0.4rem;
    overflow-y: auto;
  }

  .is-n1s3-cazadores #classify-host {
    flex: 0 0 auto;
    overflow: visible;
  }

  .is-n1s3-cazadores #classify-host .classify-pool {
    max-height: none;
    flex-wrap: wrap;
    overflow: visible;
  }

  .is-n1s3-cazadores .n1s3-feedback {
    font-size: 0.72rem;
    padding: 0.22rem 0.45rem;
    margin-top: 0.28rem;
    max-height: none;
  }

  .is-n1s3-cazadores .n1s3-table-lead {
    font-size: 0.66rem;
    margin-bottom: 0.3rem !important;
  }

  .is-n1s3-cazadores .gp-stage-cast {
    z-index: 4;
    pointer-events: none;
  }


  .is-n1s3-cazadores .classify-card {
    font-size: 0.7rem;
    padding: 0.22rem 0.42rem;
    gap: 0.3rem;
  }

  .is-n1s3-cazadores .classify-card-image {
    width: 1.65rem;
    height: 1.65rem;
    flex: 0 0 1.65rem;
    border-radius: 0.35rem;
  }

  .is-n1s3-cazadores .classify-bin-title {
    font-size: 0.7rem;
    margin-bottom: 0.35rem !important;
  }

  .is-n1s3-cazadores .classify-bin {
    padding: 0.4rem 0.45rem;
  }

  .is-n1s3-cazadores .n1s3-table-actions {
    margin-top: 0.3rem;
    gap: 0.3rem;
  }

  .is-n1s3-cazadores .n1s3-table-actions .btn {
    min-height: 2rem;
    font-size: 0.75rem;
    padding-inline: 0.75rem;
  }

  .is-n1s3-cazadores .gp-char.is-n1s3-caty {
    left: 0;
    right: auto;
    --gp-char-h: min(28cqw, 150px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w);
    height: var(--gp-char-h);
  }

  .is-n1s3-cazadores .gp-char.is-n1s3-inti {
    left: auto;
    right: 0;
    --gp-char-h: min(28cqw, 150px);
    --gp-char-w: calc(var(--gp-char-h) * 1.12);
    width: var(--gp-char-w);
    height: var(--gp-char-h);
  }

  .is-n1s4-historia .n1s4-table {
    width: min(560px, 96%);
    left: 0;
    right: 0;
    margin-inline: auto;
    transform: none;
    top: 1.5%;
    bottom: 0.35rem;
    max-height: none;
    padding: 0.45rem 0.5rem 0.4rem;
    overflow-y: auto;
  }

  .is-n1s4-historia .n1s4-table-scroll {
    flex: 0 0 auto;
    overflow: visible;
  }

  .is-n1s4-historia .n1s4-table-actions {
    padding: 0.4rem 0 0.2rem;
  }

  .is-n1s4-historia .n1s4-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-n1s4-historia .n1s4-scene-title {
    font-size: 0.85rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-n1s4-historia .n1s4-count {
    font-size: 0.68rem;
  }

  .is-n1s4-historia .n1s4-table-actions .btn {
    min-height: 2rem;
    font-size: 0.75rem;
    padding-inline: 0.65rem;
  }

  .is-n1s4-historia .n1s4-clue {
    font-size: 0.68rem;
    padding: 0.22rem 0.45rem;
  }

  .is-n1s4-historia .n1s4-table .decision-prompt {
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
  }

  .is-n1s4-historia .n1s4-table .decision-option {
    padding: 0.35rem 0.5rem;
    font-size: 0.76rem;
    gap: 0.45rem;
  }

  .is-n1s4-historia .n1s4-feedback {
    margin-top: 0.35rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .is-n1s4-historia .gp-stage-cast {
    z-index: 5;
    pointer-events: none;
  }


  .is-n1s4-historia .gp-char.is-n1s4-inti {
    left: 0;
  }

  .is-n1s4-historia .gp-char.is-n1s4-habitante {
    left: auto;
    right: 0;
  }

  .is-n1s5-ruta .n1s5-scene-tag {
    max-width: min(94%, 420px);
    width: min(94%, 420px);
    padding: 0.28rem 0.55rem;
  }

  .is-n1s5-ruta .n1s5-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-n1s5-ruta .n1s5-scene-title {
    font-size: 0.82rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-n1s5-ruta .n1s5-count {
    font-size: 0.68rem;
  }

  .is-n1s5-ruta .n1s5-table {
    width: min(520px, 94%);
    top: 1%;
    bottom: 0.35rem;
    max-height: none;
    min-height: 0;
    padding: 0.4rem 0.45rem 0.4rem;
  }

  .is-n1s5-ruta .n1s5-table-lead {
    font-size: 0.68rem;
    line-height: 1.25;
    margin-bottom: 0.35rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .is-n1s5-ruta #ordering-host {
    flex: 0 0 auto;
    overflow: visible;
    min-height: auto;
  }

  .is-n1s5-ruta .n1s5-table .ordering-row {
    padding: 0.32rem 0.45rem;
    font-size: 0.78rem;
  }

  .is-n1s5-ruta .n1s5-feedback {
    margin-top: 0.35rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .is-n1s5-ruta .n1s5-table-actions {
    margin-top: 0.4rem;
    gap: 0.3rem;
  }

  .is-n1s5-ruta .n1s5-table-actions .btn {
    min-height: 2rem;
    font-size: 0.75rem;
    padding-inline: 0.75rem;
  }

  .is-n1s5-ruta .gp-stage-cast {
    z-index: 12;
  }


  .is-n1s5-ruta .gp-char.is-n1s5-max {
    left: 0;
    right: auto;
  }

  .is-n1s6-decision .n1s6-chrome {
    top: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
  }

  .is-n1s6-decision .n1s6-scene-tag {
    max-width: min(94%, 420px);
    padding: 0.28rem 0.5rem;
  }

  .is-n1s6-decision .n1s6-scene-title {
    font-size: 0.88rem;
  }

  .is-n1s6-decision .n1s6-count {
    font-size: 0.68rem;
  }

  .is-n1s6-decision .n1s6-table {
    width: min(520px, 92%);
    top: 2.5%;
    max-height: min(62%, calc(100% - 8.5rem));
    padding: 0.42rem 0.5rem 0.4rem;
  }

  .is-n1s6-decision .n1s6-table .decision-prompt {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .is-n1s6-decision .n1s6-table .decision-option {
    padding: 0.32rem 0.45rem;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .is-n1s6-decision .n1s6-table-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(250, 248, 244, 0.96);
  }

  .is-n1s6-decision .gp-char {
    width: var(--gp-char-w);
  }

  .is-n1s6-decision .gp-char.is-n1s6-habitante {
    right: calc(var(--gp-char-w) * 0.55);
  }

  .is-n1s6-decision .n1s6-feedback {
    margin-top: 0.3rem;
    font-size: 0.74rem;
    padding: 0.32rem 0.5rem;
    line-height: 1.25;
  }

  .is-n1s7-sello .gp-stage-cast {
    inset: 0;
    z-index: 9;
  }

  .is-n1s7-sello .gp-char {
    z-index: 9;
  }

  .is-n1s7-sello .n1s7-rite {
    z-index: 6;
    width: min(300px, 70%);
    top: 4.25rem;
    transform: translateX(-50%);
    max-height: min(40%, calc(100% - 14rem));
    overflow: auto;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .is-phase-close .phase-close-stack > .n1s7-rite {
    width: 100%;
    top: auto;
    transform: none;
    max-height: none;
    overflow: visible;
  }

  .is-n1s7-sello .n1s7-rite .escudo-emblem.size-lg .escudo-emblem-svg {
    width: 108px;
    height: 108px;
  }

  .is-n1s7-sello .n1s7-summary {
    top: 4.4rem;
    width: min(260px, 78%);
    z-index: 10;
  }

  .is-n2s1-llegada .n2s1-scene-tag {
    max-width: min(58%, 200px);
    padding: 0.3rem 0.5rem;
  }

  .is-n2s1-llegada .n2s1-objective-card {
    top: 4.4rem;
    width: min(280px, 78%);
  }

  .is-n2s2-ecoclasificador .n2s2-table {
    width: calc(100% - 0.7rem);
    left: 50%;
    top: 1.6%;
    max-height: min(64%, calc(100% - 8.2rem));
    padding: 0.42rem 0.5rem 0.45rem;
    border-radius: 0.9rem;
    gap: 0.28rem;
  }

  .is-n2s2-ecoclasificador .n2s2-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .is-n2s2-ecoclasificador .n2s2-scene-tag {
    max-width: none;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .is-n2s2-ecoclasificador .n2s2-scene-tag .placeholder-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.05rem !important;
  }

  .is-n2s2-ecoclasificador .n2s2-scene-title {
    font-size: 0.92rem;
    margin-bottom: 0.05rem !important;
    line-height: 1.15;
  }

  .is-n2s2-ecoclasificador .n2s2-count {
    font-size: 0.68rem;
  }

  .is-n2s2-ecoclasificador .n2s2-table-head .btn {
    font-size: 0.68rem;
    padding: 0.22rem 0.45rem;
    min-height: 1.85rem;
    white-space: nowrap;
  }

  .is-n2s2-ecoclasificador .n2s2-table-lead {
    font-size: 0.7rem;
    line-height: 1.28;
    margin-bottom: 0.2rem !important;
    flex-shrink: 0;
  }

  .is-n2s2-ecoclasificador #classify-host {
    flex: 1 1 auto;
    min-height: 8.5rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .is-n2s2-ecoclasificador .classify-board {
    gap: 0.4rem;
  }

  .is-n2s2-ecoclasificador .classify-pool {
    gap: 0.28rem;
    min-height: 0;
  }

  .is-n2s2-ecoclasificador .classify-card {
    font-size: 0.68rem;
    padding: 0.22rem 0.42rem;
    gap: 0.3rem;
    border-radius: 0.65rem;
  }

  .is-n2s2-ecoclasificador .classify-card-image {
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    border-radius: 0.35rem;
  }

  .is-n2s2-ecoclasificador .classify-bins {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
  }

  .is-n2s2-ecoclasificador .classify-bin {
    min-height: 3.1rem;
    padding: 0.35rem 0.4rem;
  }

  .is-n2s2-ecoclasificador .classify-bin-title {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .is-n2s2-ecoclasificador .n2s2-feedback {
    margin-top: 0.25rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .is-n2s2-ecoclasificador .n2s2-table-actions {
    margin-top: 0.25rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .is-n2s2-ecoclasificador .n2s2-table-actions .btn {
    flex: 1 1 auto;
    min-height: 2.15rem;
    font-size: 0.78rem;
  }

  .is-n2s3-vida .n2s3-table {
    width: calc(100% - 0.7rem);
    top: 1.6%;
    max-height: min(64%, calc(100% - 8.2rem));
    padding: 0.42rem 0.5rem 0.45rem;
    border-radius: 0.9rem;
    gap: 0.28rem;
  }

  .is-n2s3-vida .n2s3-table-head {
    margin-bottom: 0;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .is-n2s3-vida .n2s3-scene-tag .placeholder-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.05rem !important;
  }

  .is-n2s3-vida .n2s3-scene-title {
    font-size: 0.92rem;
    margin-bottom: 0.05rem !important;
    line-height: 1.15;
  }

  .is-n2s3-vida .n2s3-count {
    font-size: 0.68rem;
  }

  .is-n2s3-vida .n2s3-table-head .btn,
  .is-n2s3-vida .n2s3-table-head #btn-n2s3-hint {
    font-size: 0.68rem;
    padding: 0.22rem 0.45rem;
    min-height: 1.85rem;
    white-space: nowrap;
  }

  .is-n2s3-vida #decision-step {
    flex: 1 1 auto;
    min-height: 7.5rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .is-n2s3-vida .n2s3-table .decision-prompt {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .is-n2s3-vida .n2s3-table .decision-options {
    gap: 0.32rem;
  }

  .is-n2s3-vida .n2s3-table .decision-option {
    padding: 0.42rem 0.55rem;
    font-size: 0.76rem;
    line-height: 1.3;
    min-height: 2.35rem;
    border-radius: 0.7rem;
  }

  .is-n2s3-vida .n2s3-feedback {
    margin-top: 0.2rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .is-n2s3-vida .n2s3-table-actions {
    margin-top: 0.2rem;
    gap: 0.3rem;
  }

  .is-n2s3-vida .n2s3-table-actions .btn {
    flex: 1 1 auto;
    min-width: 30%;
    min-height: 2.15rem;
    font-size: 0.74rem;
    padding: 0.28rem 0.45rem;
  }

  .is-n2s4-sendero .n2s4-chrome {
    top: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
  }

  .is-n2s4-sendero .n2s4-scene-tag {
    max-width: min(94%, 420px);
    padding: 0.28rem 0.5rem;
  }

  .is-n2s4-sendero .n2s4-scene-title {
    font-size: 0.88rem;
  }

  .is-n2s4-sendero .n2s4-count {
    font-size: 0.68rem;
  }

  .is-n2s4-sendero .n2s4-table {
    width: min(560px, 92%);
    top: 2.5%;
    max-height: min(58%, calc(100% - 9.25rem));
    padding: 0.42rem 0.5rem 0.4rem;
  }

  .is-n2s4-sendero .n2s4-table .decision-prompt {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .is-n2s4-sendero .n2s4-table .decision-option {
    padding: 0.32rem 0.45rem;
    font-size: 0.78rem;
  }

  .is-n2s4-sendero .n2s4-feedback {
    margin-top: 0.3rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .is-n2s5-verde .n2s5-chrome {
    top: 0.35rem;
    left: 0.4rem;
    right: 0.4rem;
  }

  .is-n2s5-verde .n2s5-scene-tag {
    max-width: min(94%, 420px);
    padding: 0.28rem 0.5rem;
  }

  .is-n2s5-verde .n2s5-scene-title {
    font-size: 0.88rem;
  }

  .is-n2s5-verde .n2s5-count {
    font-size: 0.68rem;
  }

  .is-n2s5-verde .n2s5-table {
    width: min(560px, 92%);
    top: 2.5%;
    max-height: min(58%, calc(100% - 9.25rem));
    padding: 0.42rem 0.5rem 0.4rem;
  }

  .is-n2s5-verde .n2s5-table .decision-prompt {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .is-n2s5-verde .n2s5-table .decision-option {
    padding: 0.32rem 0.45rem;
    font-size: 0.78rem;
  }

  .is-n2s5-verde .n2s5-feedback {
    margin-top: 0.3rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .is-n2s6-alerta .n2s6-table {
    width: min(560px, 94%);
    top: 2%;
    max-height: min(48%, calc(100% - 10rem));
    padding: 0.4rem 0.48rem 0.35rem;
  }

  .is-n2s6-alerta .n2s6-table .decision-prompt {
    font-size: 0.78rem;
    margin-bottom: 0.28rem;
  }

  .is-n2s6-alerta .n2s6-table .decision-option {
    padding: 0.28rem 0.42rem;
    font-size: 0.76rem;
  }

  .is-n2s6-alerta .n2s6-feedback {
    margin-top: 0.28rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .is-n2s7-sello .gp-stage-cast {
    inset: 0;
    z-index: 9;
  }

  .is-n2s7-sello .gp-char {
    z-index: 9;
  }

  .is-n2s7-sello .n2s7-rite {
    z-index: 6;
    width: min(300px, 70%);
    top: 4.25rem;
    transform: translateX(-50%);
    max-height: min(40%, calc(100% - 14rem));
    overflow: auto;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .is-phase-close .phase-close-stack > .n2s7-rite {
    width: 100%;
    top: auto;
    transform: none;
    max-height: none;
    overflow: visible;
  }

  .is-n2s7-sello .n2s7-rite .escudo-emblem.size-lg .escudo-emblem-svg {
    width: 108px;
    height: 108px;
  }

  .is-n2s7-sello .n2s7-summary {
    top: 4.4rem;
    width: min(280px, 78%);
    z-index: 10;
  }

  .is-n3s1-llegada .n3s1-scene-tag {
    max-width: min(58%, 220px);
    padding: 0.3rem 0.5rem;
  }

  .is-n3s1-llegada .n3s1-objective-card {
    top: 4.4rem;
    width: min(280px, 78%);
  }

  .is-n3s2-info .n3s2-table {
    width: min(560px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
    padding: 0.45rem 0.5rem 0.4rem;
  }

  .is-n3s2-info .n3s2-scene-title {
    font-size: 0.88rem;
    margin-bottom: 0.1rem !important;
  }

  .is-n3s2-info .n3s2-count {
    font-size: 0.7rem;
  }

  .is-n3s2-info .n3s2-table .decision-lead {
    font-size: 0.72rem;
    margin-bottom: 0.28rem;
  }

  .is-n3s2-info .n3s2-table .decision-prompt {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  .is-n3s2-info .n3s2-table .decision-option {
    padding: 0.32rem 0.45rem;
    font-size: 0.78rem;
  }

  .is-n3s2-info .n3s2-feedback {
    margin-top: 0.3rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .is-n3s2-info .n3s2-table-actions .btn {
    min-height: 2rem;
    font-size: 0.75rem;
  }

  .is-n3s3-emergencia .n3s3-table {
    width: min(580px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
  }

  .is-n3s4-experiencias .n3s4-scene-tag {
    max-width: min(94%, 420px);
    width: min(94%, 420px);
    padding: 0.28rem 0.55rem;
  }

  .is-n3s4-experiencias .n3s4-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-n3s4-experiencias .n3s4-scene-title {
    font-size: 0.82rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-n3s4-experiencias .n3s4-count {
    font-size: 0.68rem;
  }

  .is-n3s4-experiencias .n3s4-table {
    width: min(620px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
  }

  .is-n3s5-equilibrio .n3s5-table {
    width: min(580px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
  }

  .is-n3s6-asamblea .n3s6-scene-tag {
    max-width: min(94%, 420px);
    width: min(94%, 420px);
    padding: 0.28rem 0.55rem;
  }

  .is-n3s6-asamblea .n3s6-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-n3s6-asamblea .n3s6-scene-title {
    font-size: 0.82rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-n3s6-asamblea .n3s6-count {
    font-size: 0.68rem;
  }

  .is-n3s6-asamblea .n3s6-table {
    width: min(620px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
    padding: 0.45rem 0.5rem 0.4rem;
  }

  .is-n3s6-asamblea .gp-stage-cast {
    z-index: 5;
  }

  .is-n3s6-asamblea .gp-char {
    width: var(--gp-char-w);
  }

  .is-n3s6-asamblea .gp-char.is-n3s6-inti {
    left: calc(var(--gp-char-w) * 0.52);
  }

  .is-n3s6-asamblea .gp-char.is-n3s6-habitante {
    right: calc(var(--gp-char-w) * 0.52);
  }

  .is-n3s7-sello .gp-stage-cast {
    inset: 0;
    z-index: 9;
  }

  .is-n3s7-sello .gp-char {
    z-index: 9;
    width: var(--gp-char-w);
  }

  .is-n3s7-sello .n3s7-rite {
    z-index: 6;
    width: min(300px, 70%);
    top: 4.25rem;
    transform: translateX(-50%);
    max-height: min(40%, calc(100% - 14rem));
    overflow: auto;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .is-phase-close .phase-close-stack > .n3s7-rite {
    width: 100%;
    top: auto;
    transform: none;
    max-height: none;
    overflow: visible;
  }

  .is-n3s7-sello .n3s7-rite .escudo-emblem.size-lg .escudo-emblem-svg {
    width: 108px;
    height: 108px;
  }

  .is-n3s7-sello .n3s7-rite .escudo-emblem-legend {
    gap: 0.25rem;
    margin-top: 0.25rem;
  }

  .is-n3s7-sello .n3s7-rite .escudo-emblem-legend .leg {
    font-size: 0.68rem;
  }

  .is-n3s7-sello .n3s7-kicker {
    font-size: 0.68rem;
  }

  .is-n3s7-sello .n3s7-stamp-title {
    font-size: 1rem;
    margin-bottom: 0.35rem !important;
  }

  .is-n3s7-sello .n3s7-score {
    font-size: 0.78rem;
  }

  .is-n3s7-sello .n3s7-summary {
    top: 4.4rem;
    width: min(280px, 78%);
    z-index: 10;
  }

  .is-n3s7-sello .gp-char.is-n3s7-caty {
    left: 0;
  }

  .is-n3s7-sello .gp-char.is-n3s7-max {
    left: calc(var(--gp-char-w) * 0.5);
  }

  .is-n3s7-sello .gp-char.is-n3s7-inti {
    right: 0;
  }

  .is-cfs1-consejo .gp-stage-cast {
    inset: 0;
    z-index: 5;
  }

  .is-cfs1-consejo .gp-char {
    z-index: 5;
    width: var(--gp-char-w);
  }

  .is-cfs1-consejo .cfs1-table {
    z-index: 8;
    width: min(280px, 68%);
    top: 40%;
    max-height: min(52%, calc(100% - 8rem));
    padding: 0.55rem 0.6rem 0.55rem;
  }

  .is-cfs1-consejo .cfs1-table .escudo-emblem.size-md .escudo-emblem-svg {
    width: 88px;
    height: 88px;
  }

  .is-cfs1-consejo .cfs1-checklist {
    padding: 0.3rem 0.4rem;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
  }

  .is-cfs1-consejo .cfs1-checklist li {
    font-size: 0.72rem;
  }

  .is-cfs1-consejo .cfs1-checklist li small {
    font-size: 0.62rem;
  }

  .is-cfs1-consejo .cfs1-ready,
  .is-cfs1-consejo .cfs1-blocked {
    font-size: 0.7rem;
    padding: 0.28rem 0.35rem;
  }

  .is-cfs1-consejo .cfs1-escudo-panel {
    top: 4.4rem;
    width: min(300px, 88%);
    max-height: min(68%, calc(100% - 5.5rem));
    z-index: 10;
  }

  .is-cfs1-consejo .gp-char.is-cfs1-max {
    right: calc(var(--gp-char-w) * 0.72);
  }

  .is-cfs2-evidencias .cfs2-table {
    width: min(640px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
    padding: 0.5rem 0.55rem 0.45rem;
  }

  .is-cfs2-evidencias .cfs2-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
  }

  .is-cfs2-evidencias .cfs2-scene-title {
    font-size: 0.85rem;
    margin-bottom: 0.1rem !important;
    line-height: 1.15;
  }

  .is-cfs2-evidencias .cfs2-count {
    font-size: 0.68rem;
  }

  .is-cfs2-evidencias .cfs2-table-lead {
    font-size: 0.72rem;
    margin-bottom: 0.35rem !important;
  }

  .is-cfs2-evidencias .cfs2-feedback {
    margin-top: 0.3rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
  }

  .is-cfs2-evidencias .cfs2-table-actions {
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
  }

  .is-cfs2-evidencias .gp-stage-cast {
    z-index: 5;
  }

  .is-cfs2-evidencias .gp-char {
    z-index: 5;
  }

  .is-cfs3-plan .cfs3-table {
    width: min(600px, 94%);
    top: 2.5%;
    max-height: min(56%, calc(100% - 9.25rem));
  }

  .is-sf-resultado .sf-rite {
    width: min(440px, 92%);
    top: 3%;
    max-height: calc(100% - 4% - 16%);
    padding: 0.65rem 0.75rem 3.25rem;
  }

  .is-sf-resultado .sf-scene-tag {
    max-width: min(100%, 420px);
    width: 100%;
    padding: 0.28rem 0.55rem;
  }

  .is-sf-resultado .sf-scene-tag .placeholder-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .is-sf-resultado .sf-scene-title {
    font-size: 0.85rem;
    line-height: 1.15;
  }

  .is-sf-resultado .sf-chrome-actions {
    max-width: none;
  }

  .is-sf-resultado .sf-chrome-actions .btn {
    font-size: 0.75rem;
    min-height: 2rem;
    padding-inline: 0.65rem;
  }

  .is-sf-resultado .gp-stage-cast {
    z-index: 12;
  }


  .is-sf-resultado .gp-char.is-sf-max {
    left: 12%;
  }

  .is-n1s1-llegada .n1s1-scene-tag {
    max-width: min(58%, 200px);
    padding: 0.3rem 0.5rem;
  }

  /* Compactas en móvil, pero siempre scrolleables (si no, overflow:hidden deja el juego inaccesible) */
  .gp-stage [class$="-table"] {
    max-height: min(58%, calc(100% - 8.5rem)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .gp-stage [class$="-table"] #decision-step,
  .gp-stage [class$="-table"] #classify-host,
  .gp-stage [class$="-table"] #ordering-host,
  .gp-stage [class$="-table"] #ev-host {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  /* N2-S2 móvil: sin Caty en escena; el panel de diálogo se mantiene intacto */
  .is-n2s2-ecoclasificador .gp-stage-cast,
  .is-n2s2-ecoclasificador .gp-char.is-n2s2-caty {
    display: none !important;
  }

  .is-n2s2-ecoclasificador .n2s2-table {
    top: 2% !important;
    max-height: min(62%, calc(100% - 8.5rem)) !important;
  }
}

/* —— S4 Mapa de territorios (estilo Lumi: nodos + niebla) —— */
.is-s4-mapa .gp-stage-sky,
.is-s4-mapa .gp-stage-mid,
.is-s4-mapa .gp-stage-motif,
.is-s4-mapa .gp-stage-ground {
  display: none;
}

.is-s4-mapa.has-stage-bg .gp-stage-bg {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.is-s4-mapa.has-bg-fallback .map-land,
.is-s4-mapa.has-bg-fallback .map-region,
.is-s4-mapa.has-bg-fallback .map-paths {
  display: block;
}

.is-s4-mapa.has-stage-bg .map-land,
.is-s4-mapa.has-stage-bg .map-region,
.is-s4-mapa.has-stage-bg .map-paths {
  display: none;
}

.is-s4-mapa .gp-stage-cast {
  inset: auto auto 2% 1%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: var(--gp-char-w);
  z-index: 6;
  pointer-events: none;
}

.is-s4-mapa .gp-char.is-s4-max {
  position: relative;
  left: auto;
  top: auto;
  margin: 0;
  width: var(--gp-char-w);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
}

.intro-s4 {
  --map-ink: #1f2a24;
  --map-paper: #f7f1e4;
  --map-memoria: var(--gp-memoria, #c9a227);
  --map-equilibrio: var(--gp-equilibrio, #2e7d32);
  --map-convivencia: var(--gp-convivencia, #1565c0);
}

.map-territory {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.is-s4-mapa.has-bg-fallback .map-territory {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, #d8e6f2 0%, transparent 58%),
    linear-gradient(180deg, #b9d4ea 0%, #e7eef5 38%, #d7e4b8 100%);
}

.map-land {
  position: absolute;
  inset: 12% 6% 10% 6%;
  border-radius: 46% 40% 36% 42% / 26% 30% 46% 40%;
  background:
    radial-gradient(ellipse 55% 45% at 28% 42%, rgba(201, 162, 39, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 72% 38%, rgba(46, 125, 50, 0.24), transparent 55%),
    radial-gradient(ellipse 48% 38% at 50% 72%, rgba(21, 101, 192, 0.2), transparent 52%),
    linear-gradient(155deg, #c5d6a4 0%, #b4c68e 45%, #a5bb7a 100%);
  box-shadow:
    inset 0 -16px 36px rgba(74, 103, 65, 0.22),
    0 10px 26px rgba(45, 74, 62, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.42);
}

.map-region {
  position: absolute;
  border-radius: 42% 38% 44% 40% / 36% 42% 34% 40%;
  opacity: 0.55;
  pointer-events: none;
}

.map-region-pueblo {
  left: 6%;
  top: 16%;
  width: 36%;
  height: 44%;
  background: radial-gradient(ellipse at 45% 50%, rgba(201, 162, 39, 0.45), transparent 70%);
}

.map-region-reserva {
  right: 4%;
  top: 18%;
  width: 38%;
  height: 48%;
  background: radial-gradient(ellipse at 50% 45%, rgba(46, 125, 50, 0.42), transparent 70%);
}

.map-region-ciudad {
  left: 30%;
  bottom: 6%;
  width: 40%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 55%, rgba(21, 101, 192, 0.4), transparent 70%);
}

.map-paths {
  position: absolute;
  inset: 18% 18% 22% 18%;
  border-radius: 40%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  opacity: 0.55;
  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);
  z-index: 2;
}

.map-fog-reserva {
  right: 0%;
  top: 12%;
  width: 44%;
  height: 58%;
}

.map-fog-ciudad {
  left: 26%;
  bottom: 0%;
  width: 46%;
  height: 48%;
}

.map-territory.fog-reserva .map-fog-reserva,
.map-territory.fog-ciudad .map-fog-ciudad {
  opacity: 1;
}

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

.map-node {
  --node-accent: var(--map-memoria);
  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;
  color: var(--map-ink);
}

.map-node.zone-n1 {
  left: 24%;
  top: 40%;
  --node-accent: var(--map-memoria);
}

.map-node.zone-n2 {
  left: 76%;
  top: 46%;
  --node-accent: var(--map-equilibrio);
}

.map-node.zone-n3 {
  left: 50%;
  top: 74%;
  --node-accent: var(--map-convivencia);
}

.map-node.zone-consejo {
  left: 50%;
  top: 34%;
  --node-accent: #2a6f97;
}

.map-node.is-just-unlocked .map-node-marker {
  animation: map-unlock-pop 0.85s ease;
  box-shadow: 0 0 0 4px rgba(255, 214, 102, 0.55), 0 8px 18px rgba(26, 43, 60, 0.28);
}

@keyframes map-unlock-pop {
  0% {
    transform: scale(0.72);
  }
  55% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

/* Cierre de fase · sello + mapa apilados (sin solape) */
.is-phase-close .phase-close-stack {
  position: absolute;
  left: 50%;
  top: 4.25rem;
  bottom: max(6.75rem, 20%);
  transform: translateX(-50%);
  z-index: 8;
  width: min(420px, 86%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.is-phase-close .phase-close-stack > .n1s7-rite,
.is-phase-close .phase-close-stack > .n2s7-rite,
.is-phase-close .phase-close-stack > .n3s7-rite {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  flex: 0 1 auto;
  pointer-events: auto;
}

.is-phase-close .phase-close-stack .phase-close-map {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  width: 100%;
  flex: 0 0 auto;
  pointer-events: none;
}

.is-phase-close .phase-close-map-frame {
  position: relative;
  height: min(28vh, 200px);
  border-radius: var(--gp-radius-md);
  overflow: hidden;
  border: var(--gp-stroke) solid rgba(42, 74, 107, 0.2);
  box-shadow: var(--gp-shadow-lift);
  background: rgba(250, 248, 244, 0.2);
}

.is-phase-close .phase-close-map-frame .map-territory {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.is-phase-close .phase-close-map-frame .map-node {
  pointer-events: none;
  transform: translate(-50%, -70%) scale(0.82);
}

.is-phase-close .phase-close-map-frame.is-unlock-revealed {
  outline: 2px solid rgba(255, 196, 72, 0.75);
}

.is-phase-close .phase-close-caption {
  margin-top: 0.4rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--gp-ink);
  background: rgba(250, 248, 244, 0.9);
  border-radius: var(--gp-radius-md);
  border: 1px solid rgba(42, 74, 107, 0.14);
}

.is-s4-mapa.is-map-reveal .map-node.is-just-unlocked .map-node-marker {
  animation: map-unlock-pop 0.95s ease;
}

.map-node-marker {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--node-accent) 92%, #fff),
    color-mix(in srgb, var(--node-accent) 72%, #000)
  );
  border: 3px solid rgba(255, 252, 245, 0.96);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--node-accent) 22%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.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 color-mix(in srgb, var(--node-accent) 35%, transparent);
  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: color-mix(in srgb, var(--node-accent) 70%, #1f2a24);
  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 color-mix(in srgb, var(--node-accent) 35%, transparent),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.map-node.is-available .map-node-label {
  border-color: var(--node-accent);
  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;
  background: linear-gradient(145deg, #90a4ae, #546e7a);
}

.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(--node-accent);
  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.4rem 0.75rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 0.85rem;
  background: rgba(247, 243, 235, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  backdrop-filter: blur(4px);
  color: var(--map-ink);
}

.map-hud-title {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--map-memoria);
  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;
}

.progress-mini,
.map-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(45, 74, 62, 0.12);
  overflow: hidden;
}

.progress-mini > span,
.map-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--map-memoria), var(--map-equilibrio));
}

@keyframes mapPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--node-accent) 22%, transparent),
      0 8px 18px rgba(0, 0, 0, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--node-accent) 38%, transparent),
      0 8px 18px rgba(0, 0, 0, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-node.is-available .map-node-marker {
    animation: none !important;
  }

  .map-fog {
    transition: none;
  }
}

@media (max-width: 720px) {
  .map-node {
    max-width: 7rem;
  }

  .map-node-title {
    font-size: 0.66rem;
  }

  .map-node.zone-n1 {
    left: 22%;
    top: 42%;
  }

  .map-node.zone-n2 {
    left: 78%;
    top: 46%;
  }

  .map-node.zone-n3 {
    left: 50%;
    top: 76%;
  }

  .map-node.zone-consejo {
    left: 50%;
    top: 32%;
  }

  .is-phase-close .phase-close-stack {
    width: min(94%, 360px);
    top: 3.85rem;
    bottom: max(6.25rem, 22%);
    gap: 0.35rem;
  }

  .is-phase-close .phase-close-map-frame {
    height: min(24vh, 150px);
  }

  .is-phase-close .phase-close-caption {
    font-size: 0.7rem;
  }

  .is-s4-mapa .gp-stage-cast {
    width: var(--gp-char-w);
  }
}

/* Teléfonos y iPad Mini: el elenco se reparte y no se pisa. La tarjeta queda en la mitad superior. */
@container stage (max-width: 860px) {
  .gp-stage-cast {
    display: flex !important;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-end;
    inset: auto 1% 0 1% !important;
    gap: 0.15rem;
    pointer-events: none;
  }

  .is-n2s2-ecoclasificador .gp-stage-cast,
  .is-n2s2-ecoclasificador .gp-char.is-n2s2-caty {
    display: none !important;
  }

  /* N1-S3 tablet: flancos fuera de la mesa (no space-evenly sobre Confirmar) */
  .is-n1s3-cazadores .gp-stage-cast {
    display: block !important;
    inset: 0 !important;
    z-index: 4;
  }

  .is-n1s3-cazadores .gp-stage-cast > .gp-char,
  .is-n1s3-cazadores .gp-stage-cast > .gp-char.has-sprite {
    position: absolute !important;
    inset: auto !important;
    top: auto !important;
    bottom: 0 !important;
    flex: none !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
    --gp-char-h: min(16cqw, 118px) !important;
    --gp-char-w: calc(var(--gp-char-h) * 1.12) !important;
    width: var(--gp-char-w) !important;
    height: var(--gp-char-h) !important;
    z-index: 4;
  }

  .is-n1s3-cazadores .gp-stage-cast > .gp-char.is-n1s3-caty {
    left: 0 !important;
    right: auto !important;
  }

  .is-n1s3-cazadores .gp-stage-cast > .gp-char.is-n1s3-inti {
    left: auto !important;
    right: 0 !important;
  }

  .gp-stage-cast > .gp-char {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    flex: 1 1 0;
    min-width: 0;
    max-width: 46%;
    width: auto !important;
    margin: 0 !important;
  }

  .gp-stage-cast > .gp-char.has-sprite {
    --gp-char-h: min(26cqw, 148px);
    height: min(26cqw, 148px) !important;
    width: auto !important;
    max-width: 46%;
    overflow: hidden;
  }

  /* Portada S2: el personaje que habla queda centrado (solo esta escena). */
  .is-s2-portada .gp-stage-cast {
    display: block !important;
    inset: 0 !important;
  }

  .is-s2-portada .gp-stage-cast > .gp-char.is-s2-cast,
  .is-s2-portada .gp-stage-cast > .gp-char.is-s2-cast.has-sprite {
    /* Caty / Max / Inti: cabezas por debajo de la tarjeta de título */
    --gp-char-h: min(26cqw, 128px) !important;
    --gp-char-w: calc(var(--gp-char-h) * 1.12) !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    top: auto !important;
    flex: none;
    width: var(--gp-char-w) !important;
    height: var(--gp-char-h) !important;
    max-width: none !important;
    margin: 0 0 0 calc(var(--gp-char-w) * -0.5) !important;
  }

  .is-s2-portada .gp-overlay-panel.is-s2-title {
    top: 1.5% !important;
    max-height: min(40%, 190px) !important;
    padding: 0.55rem 0.65rem 0.6rem;
  }

  /* N2-S4 Sendero Seguro: personajes hacia el centro (solo esta escena). */
  .is-n2s4-sendero .gp-stage-cast {
    display: block !important;
    inset: 0 !important;
  }

  .is-n2s4-sendero .gp-stage-cast > .gp-char {
    position: absolute !important;
    flex: none;
    width: var(--gp-char-w) !important;
    max-width: none;
    margin: 0 !important;
    bottom: 0 !important;
    top: auto !important;
  }

  .is-n2s4-sendero .gp-stage-cast > .gp-char.has-sprite {
    width: var(--gp-char-w) !important;
    height: var(--gp-char-h) !important;
    max-width: none;
  }

  .is-n2s4-sendero .gp-stage-cast > .gp-char.is-n2s4-max {
    left: 26% !important;
    right: auto !important;
  }

  .is-n2s4-sendero .gp-stage-cast > .gp-char.is-n2s4-habitante {
    left: auto !important;
    right: 26% !important;
  }

  .gp-overlay-panel {
    max-height: 52%;
  }

  .gp-overlay-panel.is-title {
    top: 3%;
    transform: translateX(-50%);
    max-height: 56%;
  }
}
