/* ========= Modal Alert (UI) ========= */
:root{
  --ui-bg: #2b0f10;        /* fondo oscuro borgoña */
  --ui-panel: #3b1516;     /* panel borgoña más claro */
  --ui-border: #6e2a2c;    /* borde tenue borgoña */
  --ui-gold: #d2a44a;      /* dorado */
  --ui-gold-2: #f2d28a;    /* dorado claro para brillo */
  --ui-text: #f0e7df;      /* texto marfil */
  --ui-shadow: rgba(0,0,0,.55);
}

.ui-alert__backdrop{
  position: fixed; inset: 0;
  background: radial-gradient(1200px 600px at 50% 20%, rgba(0,0,0,.55), rgba(0,0,0,.75));
  backdrop-filter: blur(2px);
  display: none; opacity: 0;
  transition: opacity .25s ease;
  z-index: 9990;
}

.ui-alert__wrap{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  pointer-events: none; z-index: 9991;
}

.ui-alert{
  pointer-events: auto;
  min-width: 280px; max-width: 520px;
  background: linear-gradient(180deg, var(--ui-panel), #2f1213 80%);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px var(--ui-shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  padding: 18px 18px 14px;
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.ui-alert__title{
  font-family: "Cinzel Decorative", serif;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--ui-gold-2);
  text-shadow: 0 0 6px rgba(210,164,74,.18);
  margin: 0 0 8px;
}

.ui-alert__msg{
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem; line-height: 1.35;
  color: #f4ece4; margin: 0 0 14px;
}

.ui-alert__actions{
  display: flex; gap: 10px; justify-content: flex-end;
}

.ui-btn{
  font: 600 0.95rem/1 "Cormorant Garamond", serif;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.35);
  cursor: pointer; user-select: none;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.06);
}

.ui-btn:active{ transform: translateY(1px); }

.ui-btn--ok{
  color: #20130a;
  background: linear-gradient(180deg, var(--ui-gold-2), var(--ui-gold));
  border-color: rgba(143, 101, 30, .9);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.ui-btn--ok:hover{
  filter: brightness(1.06);
}
.ui-btn--ghost{
  color: #eeddcc;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.08);
}

.ui-alert--show ~ .ui-alert__backdrop,
.ui-alert--show{ display:block; }
.ui-alert--show{ opacity:1; transform: translateY(0) scale(1); }
.ui-alert--show ~ .ui-alert__backdrop{ opacity:1; }

@media (prefers-reduced-motion: reduce){
  .ui-alert, .ui-alert__backdrop{ transition: none; }
}
