/* common/dialog.css */
#platform-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  /* Slightly see-through, lets the game glow through */
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  /* Soft glass effect when supported */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#platform-modal {
  width: min(520px, calc(100vw - 32px));
  /* Transparent "glass" panel */
  background: rgba(8, 12, 20, 0.68);
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 16px;

  /* Neon glow */
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.10) inset,
    0 10px 40px rgba(0,0,0,0.55),
    0 0 22px rgba(0, 255, 255, 0.18),
    0 0 32px rgba(255, 0, 255, 0.12);

  padding: 18px 18px 14px 18px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255,255,255,0.92);
}

#platform-modal-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.3px;
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.18),
    0 0 14px rgba(255, 0, 255, 0.12);
}

#platform-modal-message {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
  white-space: pre-wrap;
}

#platform-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#platform-modal-primary,
#platform-modal-secondary {
  appearance: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

/* Primary button: neon filled */
#platform-modal-primary {
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(0, 255, 255, 0.10);
  color: rgba(255,255,255,0.94);
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.10) inset,
    0 0 18px rgba(0, 255, 255, 0.18);
}

#platform-modal-primary:hover {
  background: rgba(0, 255, 255, 0.14);
}

/* Secondary button: neon outline */
#platform-modal-secondary {
  border: 1px solid rgba(255, 0, 255, 0.22);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
}

#platform-modal-secondary:hover {
  background: rgba(255,255,255,0.07);
}

#platform-modal-backdrop[aria-hidden="true"] { display: none; }
#platform-modal-backdrop[aria-hidden="false"] { display: flex; }
