/* confirm-modal.css — 遊戲內通用確認/提示視窗(2026-05-26) */

.hd-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 40, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: hdModalFade 120ms ease-out;
}

.hd-modal {
  background: var(--hd-paper, #f6f1e7);
  border: 1px solid var(--hd-ink-soft, rgba(60, 50, 35, .25));
  border-radius: 16px;
  padding: 24px 28px;
  width: min(440px, 86vw);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  animation: hdModalRise 160ms ease-out;
}

.hd-modal--warn {
  border-color: var(--hd-danger, #d23a55);
}

.hd-modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--hd-ink, #2b2520);
}

.hd-modal__body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hd-ink, #2b2520);
}

.hd-modal__warn {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(210, 58, 85, .08);
  border-left: 3px solid var(--hd-danger, #d23a55);
  border-radius: 6px;
  color: var(--hd-danger, #d23a55);
  font-size: 15px;
}

.hd-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
}

.hd-modal__btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.hd-modal__btn--cancel {
  background: transparent;
  color: var(--hd-ink-soft, rgba(60, 50, 35, .65));
  border: 1px solid var(--hd-ink-soft, rgba(60, 50, 35, .35));
}

.hd-modal__btn--confirm {
  background: var(--hd-accent, #2f7a55);
  color: white;
  border: none;
}

.hd-modal--warn .hd-modal__btn--confirm {
  background: var(--hd-danger, #d23a55);
}

.hd-modal__btn:focus-visible {
  outline: 2px solid var(--hd-accent, #2f7a55);
  outline-offset: 2px;
}

@keyframes hdModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hdModalRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
