/* Theft event overlay — mirrors bankruptcy-overlay pattern.
   Three variants share the same shell: .variant-stolen and
   .variant-vandalized use the "bad" accent; .variant-blocked uses
   the "good" accent. */
/* The `display: flex` here overrode the [hidden] attribute's default
   `display: none`, so an overlay with hidden=true was still showing
   visually as an empty flex container after the player clicked
   New Game / Continue. The `[hidden]` rule forces the modal back
   to display:none when JS sets the attribute. */
.theft-overlay[hidden] { display: none !important; }
.theft-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.theft-modal {
  background: var(--bg-card);
  border: 2px solid var(--bad);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 480px;
  width: 92%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  animation: theftAppear 360ms var(--ease-bounce, cubic-bezier(.34,1.56,.64,1)) both;
}
.theft-overlay.variant-blocked .theft-modal {
  border-color: var(--good);
}
@keyframes theftAppear {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .theft-modal { animation: none; }
}
.theft-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.theft-icon {
  font-size: 36px;
  flex: 0 0 auto;
}
.theft-headline {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--bad);
  font-weight: var(--fw-bold);
}
.theft-overlay.variant-blocked .theft-headline {
  color: var(--good);
}
.theft-modal-body {
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  font-style: italic;
}
.theft-modal-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
}
.theft-modal-stats .stat-label {
  color: var(--text-dim);
}
.theft-modal-stats .stat-value {
  color: var(--text);
  font-weight: var(--fw-semi);
  text-align: right;
}
.theft-modal-actions {
  display: flex;
  justify-content: flex-end;
}
.theft-dismiss-btn {
  appearance: none;
  background: var(--bad);
  color: white;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 24px;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.theft-overlay.variant-blocked .theft-dismiss-btn {
  background: var(--good);
}
.theft-dismiss-btn:hover {
  filter: brightness(1.1);
}
.theft-dismiss-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Belt-and-suspenders: never show the theft overlay during pre-game.
   The JS renderTheftOverlay() also guards on body.pre-game, but this
   prevents the modal from flashing visible during the initial DOM
   parse + before UI.init() runs. */
body.pre-game .theft-overlay { display: none !important; }
