/* ══════════════════════════════════════════════════════════════════
   LOCKE SURVIVOR — ESTILOS DEL MINIJUEGO INTERACTIVO
   ══════════════════════════════════════════════════════════════════ */

#survivor-screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  animation: authFadeIn 0.3s ease;
}

.survivor-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.survivor-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.survivor-main-title {
  font-family: 'Airlock', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.survivor-subtitle {
  font-family: 'Airlock', sans-serif;
  font-size: 0.65rem;
  color: var(--primary);
  letter-spacing: 1px;
  margin-top: 3px;
}

.survivor-score-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Airlock', sans-serif;
  font-size: 0.72rem;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── METERS ROW (4 STATS: NATURE, PEOPLE, CORP, POWER) ── */
.survivor-meters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
  .survivor-meters-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.meter-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Airlock', sans-serif;
  font-size: 0.58rem;
}

.meter-name {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
}

.meter-impact-dot {
  font-size: 0.85rem;
  color: #fbbf24;
  animation: meterImpactPulse 0.6s ease-in-out infinite alternate;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.95);
  display: inline-block;
  line-height: 1;
}

@keyframes meterImpactPulse {
  0% { transform: scale(0.75); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 1; }
}

.meter-box.meter-active-impact {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25) !important;
}

.meter-val {
  color: #fff;
  font-weight: bold;
}

.meter-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-fill {
  height: 100%;
  transition: width 0.4s ease, background 0.3s ease;
  border-radius: 4px;
}

.fill-nature {
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.fill-people {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.fill-corp {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.fill-power {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

/* ── STAGE & CARD ── */
.survivor-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  padding: 6px 0;
}

.survivor-card {
  width: 100%;
  max-width: 440px;
  background: radial-gradient(circle at 50% 30%, rgba(var(--primary-rgb), 0.15) 0%, rgba(14, 18, 27, 0.98) 75%),
              linear-gradient(180deg, #181d2f 0%, #0e121d 100%);
  border: 2px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--primary-rgb), 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  user-select: none;
}

.card-type-tag {
  font-family: 'Airlock', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  border: 1px solid var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.card-sprite-wrap {
  width: 130px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}

.card-aura {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35) 0%, transparent 70%);
  animation: pulseAura 2s ease-in-out infinite;
}

.card-img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.card-title {
  font-family: 'Airlock', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 1.5px;
  margin: 6px 0;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.card-desc {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 4px 0 14px;
  max-width: 360px;
}

.card-preview-hints {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.hint-pill {
  font-family: 'Airlock', sans-serif;
  font-size: 0.58rem;
  color: #94a3b8;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── ACTION BUTTONS ── */
.survivor-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.btn-survivor-action {
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-survivor-action:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.action-left {
  border-left: 3px solid #38bdf8;
}

.action-right {
  border-right: 3px solid #f59e0b;
}

.btn-action-icon {
  font-size: 1.3rem;
  color: var(--primary);
}

.btn-action-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.text-right {
  text-align: right;
}

.btn-action-title {
  font-family: 'Airlock', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #fff;
  font-weight: bold;
}

.btn-action-sub {
  font-size: 0.6rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ── OUTCOME BOX ── */
.survivor-outcome {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.72rem;
  color: #38bdf8;
  text-align: center;
  font-family: 'Airlock', sans-serif;
  animation: fadeIn 0.3s ease;
}

/* ── GAME OVER OVERLAY ── */
.survivor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.gameover-card {
  background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.25) 0%, rgba(15, 18, 28, 0.98) 75%),
              linear-gradient(180deg, #181d2f 0%, #0c0e18 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gameover-skull {
  font-size: 2.8rem;
  color: #ef4444;
  animation: bounce 1.2s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.gameover-title {
  font-family: 'Airlock', sans-serif;
  font-size: 1.4rem;
  color: #ef4444;
  letter-spacing: 2px;
  margin: 8px 0 4px;
}

.gameover-reason {
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.4;
}

.gameover-stats-box {
  width: 100%;
  display: flex;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.go-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.go-stat-lbl {
  font-family: 'Airlock', sans-serif;
  font-size: 0.55rem;
  color: #94a3b8;
}

.go-stat-val {
  font-family: 'Airlock', sans-serif;
  font-size: 1.1rem;
  color: #fbbf24;
  font-weight: bold;
}

/* ── ACT PROGRESSION BANNER (ESTILO REIGNS) ── */
.survivor-act-banner {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act-banner-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.act-badge {
  background: #38bdf8;
  color: #0f172a;
  font-family: 'Airlock', sans-serif;
  font-size: 0.58rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.act-title {
  font-family: 'Airlock', sans-serif;
  font-size: 0.68rem;
  color: #e2e8f0;
  letter-spacing: 1px;
}

.act-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  overflow: hidden;
}

.act-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ── META ROW (SCORE & GALLERY PILL) ── */
.survivor-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  gap: 8px;
}

.btn-gallery-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  font-family: 'Airlock', sans-serif;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-gallery-pill:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

/* ── EPILOGUE OVERLAY (TRIUNFO O FINAL ESPECIAL) ── */
.epilogue-card {
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.25) 0%, rgba(15, 18, 28, 0.98) 75%),
              linear-gradient(180deg, #181d2f 0%, #0c0e18 100%);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.35s ease;
}

.epilogue-badge-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 8px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.epilogue-tag {
  font-family: 'Airlock', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #fbbf24;
  margin-bottom: 4px;
}

.epilogue-title {
  font-family: 'Airlock', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.epilogue-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.epilogue-lore-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  color: #e2e8f0;
  line-height: 1.5;
  text-align: left;
  border-left: 3px solid #38bdf8;
}

.epilogue-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

/* ── GALLERY MODAL ── */
.gallery-card {
  background: #0f1422;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: 12px;
  padding: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.gallery-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Airlock', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1px;
}

.gallery-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

.gallery-close-btn:hover {
  color: #fff;
}

.gallery-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  margin: 6px 0 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.gallery-item.unlocked {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}

.gallery-item.locked {
  opacity: 0.55;
  filter: grayscale(80%);
}

.gallery-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-item-icon {
  font-size: 1.1rem;
}

.gallery-item-title {
  font-family: 'Airlock', sans-serif;
  font-size: 0.72rem;
  color: #fff;
  font-weight: bold;
}

.gallery-item-desc {
  font-size: 0.62rem;
  color: #94a3b8;
  line-height: 1.3;
}

.gallery-item-date {
  font-family: 'Airlock', sans-serif;
  font-size: 0.5rem;
  color: #38bdf8;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   EASTER EGG KNEKRO: MODO GAME BOY CLÁSICA (FINAL 10 - SYDNEY 1900)
   ══════════════════════════════════════════════════════════════════ */
body.knekro-gameboy-mode {
  filter: grayscale(100%) sepia(100%) hue-rotate(50deg) !important;
  transition: filter 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════
   PODERES DEL CAMPEÓN (COMODINES INTERACTIVOS DE REIGNS)
   ══════════════════════════════════════════════════════════════════ */
.champion-powers-bar {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.powers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.powers-label {
  font-family: 'Airlock', sans-serif;
  font-size: 0.68rem;
  color: #fbbf24;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.powers-sub {
  font-size: 0.55rem;
  color: #94a3b8;
}

/* ── SURVIVOR BUTTON RESET ── */
#survivor-screen button,
.survivor-container button {
  font-family: 'Airlock', sans-serif;
  color: #fff;
  border-style: solid;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.powers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 580px) {
  .powers-grid {
    grid-template-columns: 1fr;
  }
}

.btn-champion-power {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  font-family: 'Airlock', sans-serif;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-champion-power:hover:not(.used) {
  transform: translateY(-2px);
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.btn-champion-power.armed {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
  animation: pulseArmed 1s infinite alternate;
}

@keyframes pulseArmed {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.btn-champion-power.used {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(100%);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.5);
  box-shadow: none;
}

.power-icon {
  font-size: 1.25rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-champion-power.armed .power-icon {
  color: #38bdf8;
}

.power-text {
  display: flex;
  flex-direction: column;
}

.power-name,
.power-title {
  font-family: 'Airlock', sans-serif;
  font-size: 0.72rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: block;
}

.power-desc,
.power-status {
  font-family: 'Airlock', sans-serif;
  font-size: 0.55rem;
  color: #4ade80;
  margin-top: 2px;
  display: block;
  letter-spacing: 0.3px;
}

.btn-champion-power.armed .power-desc,
.btn-champion-power.armed .power-status {
  color: #38bdf8;
  font-weight: bold;
}

.btn-champion-power.used .power-desc,
.btn-champion-power.used .power-status {
  color: #ef4444;
}

/* Indicador de Peligro Crítico en Barras (Crisis Warning) */
.meter-box.crisis-warning .meter-track {
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: meterCrisisPulse 0.8s infinite alternate;
}

@keyframes meterCrisisPulse {
  0% { border-color: rgba(239, 68, 68, 0.4); }
  100% { border-color: rgba(239, 68, 68, 1); filter: drop-shadow(0 0 4px #ef4444); }
}

