/* AURORA MODAL — shared alert()/confirm() replacement.
   Same visual language as aurora-experience-layer.css's round-intro overlay
   (same tokens, same card/backdrop treatment) so it reads as one system
   rather than a second dialog style. */
.aurora-modal{
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding:
    max(14px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background: rgba(2,6,9,.56);
  backdrop-filter: blur(6px) saturate(.82);
  -webkit-backdrop-filter: blur(6px) saturate(.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aurora-modal.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.aurora-modal__card{
  width: min(84vw, 420px);
  border: 1px solid rgba(226,195,110,.42);
  border-radius: 20px;
  padding: clamp(18px, 3.4vh, 28px) clamp(20px, 4vw, 30px);
  text-align: center;
  color: var(--ax-text, #f4f1e8);
  background:
    linear-gradient(145deg, rgba(21,29,35,.97), rgba(5,10,14,.97)),
    var(--ax-surface, rgba(7,12,17,.94));
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(12px) scale(.97);
  transition: transform 260ms var(--ax-ease, cubic-bezier(.22,.82,.3,1));
}

.is-visible .aurora-modal__card{
  transform: translateY(0) scale(1);
}

.aurora-modal__msg{
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.5;
  white-space: pre-line;
}

.aurora-modal__actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Rebuy on bust (owner request 2026-07-28) — reuses the shared modal shell
   above, adds only the amount readout + slider this dialog needs. */
.aurora-modal__rebuy-amount{
  margin-top: 16px;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: #ead78c;
}

.aurora-modal__rebuy-range{
  width: 100%;
  margin-top: 14px;
  accent-color: #c79b42;
}

.aurora-modal__btn{
  min-width: 104px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

.aurora-modal__btn--ok{
  border: 1px solid rgba(226,195,110,.64);
  color: #17130a;
  background: linear-gradient(180deg, #ead78c, #c79b42);
  box-shadow: 0 8px 22px rgba(0,0,0,.36);
}

.aurora-modal__btn--ok:active{ transform: translateY(1px); }

.aurora-modal__btn--cancel{
  border: 1px solid rgba(255,255,255,.16);
  color: var(--ax-text, #f4f1e8);
  background: rgba(255,255,255,.06);
}

.aurora-modal__btn--cancel:active{ transform: translateY(1px); }

@media (max-width: 480px), (max-height: 420px){
  .aurora-modal__card{ padding: 16px 18px; border-radius: 16px; }
  .aurora-modal__btn{ min-height: 38px; }
}

/* Session results table (Aurora Player Buy-In and P&L Ledger v1.0,
   2026-07-28) — reuses the modal shell above, wider to fit a table. */
.sr-card{ width: min(92vw, 480px); }

.sr-table-wrap{
  margin-top: 14px;
  max-height: 46vh;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
}

.sr-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.sr-table th, .sr-table td{
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}

.sr-table th{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
  font-weight: 700;
}

.sr-table tbody tr:last-child td{ border-bottom: none; }

.sr-pos{ color: #8fd6a0; font-weight: 800; }
.sr-neg{ color: #f28b8b; font-weight: 800; }

.sr-recon-warn{
  margin-top: 12px;
  font-size: 11px;
  color: #f2c48b;
  background: rgba(242,196,139,.1);
  border: 1px solid rgba(242,196,139,.3);
  border-radius: 8px;
  padding: 8px 10px;
}
