/* src/ui-downed-overlay.css
 * L1.22 (#L1-22-DOWNED-STATE-01) — Downed-state overlay modal.
 * Same centered-band template as ui-death-overlay.css, amber-tinted (not
 * red) to read as distinct from — and less severe than — the death overlay:
 * this is a grace state, not the final outcome. Amber matches the existing
 * party-frames.js DOWN treatment (#f59e0b) so the color language is
 * consistent across both surfaces a player might see this state on.
 */

#ui-downed-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998; /* one below ui-death-overlay (9999) — death always wins a race */
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent; /* world stays fully visible — no grey/black-out */
  pointer-events: auto;
}

#ui-downed-overlay.is-open {
  display: flex;
}

.downed-overlay__band {
  width: 420px;
  max-width: calc(100vw - 48px);
  background: rgba(10, 10, 20, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.16);
}

.downed-overlay__headline {
  font-size: 26px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

.downed-overlay__note {
  font-size: 13px;
  color: #c4ccd8;
  margin: 0;
}

.downed-overlay__cta-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 4px;
}

.downed-overlay__btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: opacity 0.1s;
}

.downed-overlay__btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.downed-overlay__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.downed-overlay__btn--respawn {
  background: rgba(74, 222, 128, 0.20);
  border-color: rgba(74, 222, 128, 0.60);
  color: #bbf7d0;
  font-weight: 700;
}
.downed-overlay__btn--respawn:hover:not(:disabled) {
  background: rgba(74, 222, 128, 0.32);
}
