/* =========================================================================
   LA ESCALADA — ROGUELIKE BALATRO + HISTORIA / DIALOGOS
   ========================================================================= */

/* Modal de Historia / Dialogos RPG */
.esc-story-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #0d1630;
  border: 3px solid #3b82f6;
  padding: 12px;
}

.esc-story-portrait {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.esc-story-portrait canvas {
  width: 72px;
  height: 94px;
  image-rendering: pixelated;
  background: #17274d;
  border: 3px solid #ffd447;
}

.esc-story-portrait canvas.is-don-croak {
  width: 84px;
  height: 84px;
}

.esc-story-role {
  font-size: 9.5px;
  font-weight: 700;
  color: #93c5fd;
  text-align: center;
}

.esc-story-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esc-story-speaker {
  font-size: 14px;
  font-weight: 700;
  color: #ffd447;
}

.esc-story-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #f8fafc;
  min-height: 54px;
}

.esc-story-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* =========================================================================
   DON CROAK · PRESENTACION BOLSA PASS & ANFITRION REACTIVO (32-BIT 3DS)
   ========================================================================= */
.host-px-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.hc-kw-gold { color: #ffd859; font-weight: 700; }
.hc-kw-green { color: #39e68a; font-weight: 700; }
.hc-kw-red { color: #ff5b6e; font-weight: 700; }

.host-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9500;
  background: #060912;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  transition: opacity 0.22s ease;
}

.host-intro-overlay.closing {
  opacity: 0;
  pointer-events: none;
}

.host-intro-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #0d1324;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.host-firm-label {
  font-family: 'Silkscreen', monospace;
  font-size: 9px;
  color: #fde68a;
  margin-top: 4px;
  letter-spacing: 0.4px;
}
.host-firm-input {
  width: 100%;
  background: #090e1c;
  border: 2px solid #475569;
  color: #ffffff;
  font-family: 'Silkscreen', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 8px;
  text-align: center;
  outline: none;
}
.host-firm-input:focus {
  border-color: #f2be38;
}

.host-intro-topright {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
}

.host-skip-btn {
  opacity: 0.88;
}

.lang-switch-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-flag-btn {
  padding: 4px 5px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-flag-btn.lang-flag-mini {
  padding: 2px 3px !important;
}

.lang-flag-btn.active {
  border-color: #ffd859 !important;
  background: #273c6e !important;
}

.lang-flag-canvas {
  width: 24px;
  height: 16px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.lang-flag-mini .lang-flag-canvas {
  width: 16px;
  height: 11px;
}

.chart-terminal-wrap.grand-spike-up,
#view-game.grand-spike-up .chart-terminal-wrap {
  box-shadow: 0 0 32px rgba(140, 245, 122, 0.95), inset 0 0 28px rgba(254, 231, 97, 0.55) !important;
  border-color: #fee761 !important;
  animation: grandFlashUp 1.05s ease-out;
}

.chart-terminal-wrap.grand-spike-down,
#view-game.grand-spike-down .chart-terminal-wrap {
  box-shadow: 0 0 32px rgba(255, 91, 110, 0.95), inset 0 0 28px rgba(255, 133, 141, 0.55) !important;
  border-color: #ff5b6e !important;
  animation: grandFlashDown 1.05s ease-out;
}

@keyframes grandFlashUp {
  0% { filter: brightness(1.65); }
  100% { filter: brightness(1); }
}

@keyframes grandFlashDown {
  0% { filter: brightness(1.55) saturate(1.4); }
  100% { filter: brightness(1) saturate(1); }
}

