/* ── Survival overlays (shop + death screen) ─────────────────────────────── */

.survival-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 14, 0.82);
  /* Above the #blackout view-transition overlay (z-9000) so the shop / death
     screen render on top of the darken, not behind it. */
  z-index: 9100;
  backdrop-filter: blur(4px);
}
.survival-overlay.hidden { display: none; }

/* ── Shop ────────────────────────────────────────────────────────────────── */

.survival-shop-box {
  background: #0d1220;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  width: min(96%, 480px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.survival-shop-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #06b6d4;
  margin-bottom: 0.3rem;
}
.survival-shop-credits { color: #fbbf24; font-size: 0.75rem; }

.survival-shop-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.survival-shop-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shop-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.shop-card:hover:not(:disabled) {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
}
.shop-card:disabled, .shop-card--broke {
  opacity: 0.42;
  cursor: not-allowed;
}
.shop-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
}
.shop-card-desc {
  grid-column: 1;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}
.shop-card-cost {
  grid-row: 1 / 3;
  grid-column: 3;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

.survival-shop-skip {
  margin-top: 1rem;
  width: 100%;
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  color: #475569;
  border-color: rgba(255,255,255,0.08);
}
.survival-shop-skip:hover { color: #94a3b8; }

/* ── Death screen ────────────────────────────────────────────────────────── */

.survival-death-box {
  background: #0d1220;
  border: 1px solid rgba(220, 50, 50, 0.35);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  width: min(96%, 360px);
  text-align: center;
  box-shadow: 0 0 40px rgba(220, 50, 50, 0.12);
}
.survival-death-box h2 {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: #ef4444;
  margin: 0 0 1.4rem;
}

.death-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-bottom: 1.6rem;
}
.death-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.death-stat span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
}
.death-stat b {
  font-size: 1.1rem;
  color: #e2e8f0;
}

.death-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}
