.modalBackdrop {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1e4fd7 0%, #1a6ed8 55%, #1687d8 100%);
  display: grid;
  place-items: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
  z-index: 60;
}

.modalBackdrop.hidden {
  display: none;
}

.modal {
  width: min(520px, 100%);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
}

.modalTitle {
  font-weight: 900;
  font-size: clamp(44px, 9vw, 64px);
  margin-bottom: 18px;
  color: rgba(90, 233, 255, 0.95);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.20);
}

.modalBody {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.modalRow {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.modalLabel {
  color: rgba(120, 245, 255, 0.88);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.modalValue {
  font-weight: 900;
  font-size: clamp(54px, 10vw, 78px);
  color: #ffffff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.20);
}

.modalRow:nth-child(2) .modalValue {
  color: #ffc44d;
}

.modalActions {
  display: grid;
  place-items: center;
  gap: 10px;
}

.modalActions #closeModalBtn {
  display: none;
}

.modalActions .btn.primary {
  width: min(420px, 100%);
  height: 74px;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  background: linear-gradient(180deg, #58d12c, #2aa80e);
  color: #ffffff;
  font-size: 36px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.modalActions .btn.primary:hover {
  transform: translateY(-1px);
}
