/* =========================================================================
   HUB DE "LA ESCALADA" — CONSOLA 32-BIT PIXEL ART (ESTILO 3DS + BALATRO)
   ========================================================================= */
#view-escalada-hub.active {
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #140f0c;
  height: 100%;
  overflow: hidden;
}

/* CABECERA FISICA + CARPETAS + PANTALLAS LED */

.esc-hub-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* GRID PRINCIPAL 38% CAMINO DEL TIER / 62% DIORAMA + ACCION */

/* COLUMNA IZQUIERDA: CAMINO DEL TIER */

.esc-inline-skip-btn {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 5px 8px;
  background: #1d4ed8;
  color: #ffffff;
  border: 2px solid #0b0f1c;
  box-shadow: inset 0 2px 0 #60a5fa, 0 2px 0 #0b0f1c;
  cursor: pointer;
  text-shadow: 2px 2px 0 #0b0f1c;
}
.esc-inline-skip-btn:hover {
  background: #2563eb;
}

@keyframes escLedPulse {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

/* COLUMNA DERECHA (62%): 52% DIORAMA + META / 48% PANEL DE ACCION */

.esc-desk-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #1a1210;
}

/* MITAD INFERIOR (48%): PANEL DE ACCION */

.esc-risk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  background: #151d2e;
  border: 3px solid #0b0f1c;
  box-shadow: inset 0 2px 0 #4a5d82, 0 3px 0 #0b0f1c;
  cursor: pointer;
  text-align: center;
}
.esc-risk-card:hover {
  background: #2c3a59;
}
.esc-risk-card.active {
  background: #26385e;
  border-color: #ffd447;
  box-shadow: inset 0 2px 0 #ffe680, 0 3px 0 #0b0f1c;
}

#esc-desk-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

/* Estanteria de Reliquias */

/* Tubo de Cuota de Ascenso (apoyado en el escritorio) */

/* Intercomunicador CRT + ECG */

/* CUBIERTA INFERIOR DE CONTROLES MECANICOS */

/* BOTON MASIVO DE LANZAMIENTO CON TAPA DE SEGURIDAD */

@keyframes escLaunchGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.14); }
}

/* EVENTO ALEATORIO DIEGETICO (PORTAPAPELES DE EMERGENCIA) */
.esc-ev-backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(110, 24, 18, 0.55) 0%, rgba(10, 8, 12, 0.86) 100%);
}

.esc-ev-clipboard {
  width: min(560px, 94vw);
  background: linear-gradient(180deg, #3b4459 0%, #242a38 100%);
  border: 4px solid #191114;
  box-shadow: inset 0 2px 0 #6c7996, 0 12px 0 #191114;
  overflow: hidden;
}
.esc-ev-clipboard.slam-in {
  animation: escClipSlam 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes escClipSlam {
  0%   { transform: translateY(-60px) scale(1.04); opacity: 0; }
  70%  { transform: translateY(4px) translateX(-2px); opacity: 1; }
  85%  { transform: translateY(-2px) translateX(2px); }
  100% { transform: translateY(0) translateX(0); }
}

.esc-ev-siren-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px 10px;
  background: #1c1215;
  border-bottom: 3px solid #191114;
}
.esc-ev-siren-bulb {
  width: 12px;
  height: 12px;
  background: #ff3b4e;
  border: 2px solid #191114;
  box-shadow: 0 0 10px #ff3b4e;
  animation: escSirenBlink 0.6s infinite alternate;
}
.esc-ev-siren-tag {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #ff9c9c;
  text-shadow: 2px 2px 0 #000;
}
@keyframes escSirenBlink {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.esc-ev-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #1c2436;
  border-bottom: 3px solid #191114;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #ffd15c;
  text-shadow: 2px 2px 0 #000;
}

.esc-ev-body {
  padding: 14px;
  background: #e8dfc5;
  color: #191114;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.esc-ev-art-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.esc-ev-art-frame {
  border: 3px solid #191114;
  background: #141a29;
  box-shadow: 3px 3px 0 #000;
  flex-shrink: 0;
}
#esc-ev-art-canvas {
  width: 128px;
  height: 85px;
  image-rendering: pixelated;
  display: block;
}

.esc-ev-desc {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.2;
  color: #191114;
}

.esc-ev-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.esc-ev-plate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 3px solid #191114;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 #191114;
}
.esc-ev-plate:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #191114;
}
.esc-ev-plate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.esc-ev-plate.is-amber {
  background: linear-gradient(180deg, #ffd15c 0%, #e09f2d 100%);
  color: #191114;
}
.esc-ev-plate.is-steel {
  background: linear-gradient(180deg, #3b465e 0%, #242b3b 100%);
  color: #ffffff;
}
.esc-plate-tag {
  font-family: var(--font-pixel);
  font-size: 7.5px;
  opacity: 0.85;
}
.esc-ev-plate strong {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  line-height: 1.3;
}

.esc-sub-head {
  font-family: var(--font-pixel);
  font-size: 8.5px;
  color: var(--gold-hi);
}

.esc-sub-head.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.esc-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.esc-shop-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #1a2442;
  border: 2px solid var(--ink);
}

.esc-shop-card {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.esc-shop-card.owned {
  border-color: #2fb85b;
  background: #162e29;
}

.esc-shop-card strong {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #ffffff;
}

.esc-shop-card p {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #b8c3d4;
  line-height: 1.05;
  margin: 0;
}

.esc-shop-tag {
  font-family: var(--font-pixel);
  font-size: 6.5px;
  color: var(--gold-hi);
}

/* Animaciones & QoL de La Escalada */

@keyframes escDayPulse {
  from { box-shadow: inset 0 0 0 2px #4aff80, 0 3px 0 #0a0d11; }
  to   { box-shadow: inset 0 0 0 2px #9effb8, 0 3px 0 #0a0d11; }
}

@keyframes escBossAlert {
  from { box-shadow: inset 0 0 0 2px #ff4252, 0 4px 0 #0a0d11; }
  to   { box-shadow: inset 0 0 0 2px #ffd15c, 0 4px 0 #0a0d11; }
}

.risk-card {
  transition: transform 0.08s ease, filter 0.1s ease;
}
.risk-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.esc-shop-card button:disabled {
  background: #2b3345 !important;
  color: #94a3b8 !important;
  border-color: #141923 !important;
  opacity: 0.85;
}

.esc-ev-desc {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}

.esc-ev-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.esc-ev-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  text-align: left;
}

.esc-ev-btn strong {
  font-family: var(--font-pixel);
  font-size: 8.5px;
}

.esc-ev-btn span {
  font-family: var(--font-mono);
  font-size: 15px;
}

.esc-promo-memo {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink);
  background: #fff9e2;
  border: 2px solid var(--ink);
  padding: 8px 10px;
  margin-bottom: 10px;
}

@media (max-width: 850px) {
  .esc-shop-grid,
.esc-ev-btns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rpg-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #161e38;
  border: 3px solid var(--cream);
  box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink);
  flex-shrink: 0;
}

