/* ── Modal overlay ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ── Modal de bienvenida ─────────────────────────────────────────────────── */
.welcome-modal-box {
  background: var(--bg-panel, #fff);
  border: 1px solid var(--border, #e1e8f0);
  border-radius: 16px;
  padding: 2rem 2rem 1.6rem;
  max-width: 440px;
  width: 92%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modal-scale-in .25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.welcome-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: center;
  border: 1px solid #fde68a;
}

.welcome-modal-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #1e293b);
  line-height: 1.2;
  margin: 0;
}

.welcome-lead {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin: 0;
}

.welcome-divider {
  height: 1px;
  background: var(--border, #e1e8f0);
  margin: 2px 0;
}

.welcome-teaser {
  font-size: 14px;
  color: var(--text, #1e293b);
  line-height: 1.5;
  margin: 0;
}

.welcome-teaser strong {
  color: #2563eb;
}

.welcome-teaser-sub {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

.btn-welcome-start {
  margin-top: 4px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
}
.btn-welcome-start:hover  { background: #1d4ed8; }
.btn-welcome-start:active { transform: scale(0.97); }

.prestige-modal-box {
  background: #1c1408;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 2rem;
  max-width: 460px;
  width: 92%;
  text-align: center;
  box-shadow: 0 0 52px rgba(245, 158, 11, .35);
  animation: modal-scale-in .2s ease;
}

@keyframes modal-scale-in {
  from { transform: scale(.9) translateY(-14px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);     opacity: 1; }
}

.prestige-modal-box h2 {
  font-size: 1.6rem;
  color: #f59e0b;
  margin: 0 0 .4rem;
}

.prestige-modal-box > p {
  color: #c9a96e;
  font-size: .9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── Bloque de recompensa ──────────────────────────────────────────────────── */
.prestige-reward {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  font-size: 1rem;
  color: #c9a96e;
}

.prestige-reward strong {
  font-size: 2.6rem;
  color: #f59e0b;
  display: block;
  line-height: 1.15;
  margin: .15rem 0;
}

.prestige-after {
  color: #c9a96e;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

.prestige-after strong {
  color: #34d399;
  font-size: 1.1rem;
}

/* ── Advertencia de reset ─────────────────────────────────────────────────── */
.prestige-warning {
  border-radius: 8px;
  text-align: left;
  font-size: .83rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.prestige-warning .warn-reset {
  background: rgba(239, 68, 68, .12);
  border-left: 3px solid #ef4444;
  padding: .5rem .75rem;
  color: #fca5a5;
}

.prestige-warning .warn-keep {
  background: rgba(52, 211, 153, .1);
  border-left: 3px solid #34d399;
  padding: .5rem .75rem;
  color: #6ee7b7;
  margin-top: 2px;
}

/* ── Botones del modal ────────────────────────────────────────────────────── */
.modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-prestige-confirm {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .1s, box-shadow .1s;
}

.btn-prestige-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, .45);
}

/* ── Botón de prestige en el header ──────────────────────────────────────── */
#btn-prestige {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  border-radius: 6px;
  padding: .4rem .9rem;
  cursor: pointer;
  animation: prestige-pulse 2s ease-in-out infinite;
  white-space: nowrap;
  will-change: transform;
}

@keyframes prestige-pulse {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%       { transform: scale(1.06); filter: brightness(1.15); }
}

/* ── Stat de acciones en header (solo visible cuando > 0) ───────────────── */
#prestige-stat {
  display: none;
}

.stat-value.prestige-mult {
  color: #f59e0b;
  font-weight: 700;
}
