.modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--modal-surface-bg);
  padding: var(--modal-surface-padding);
  border-radius: var(--modal-surface-radius);
  max-width: var(--modal-surface-max-width);
  max-height: var(--modal-surface-max-height);
  min-width: 50%;
  overflow-y: auto;
  border: var(--modal-surface-border);
  box-shadow: var(--modal-surface-shadow);
  color: var(--modal-surface-text);
}

.modal-content .account-label,
.modal-content .account-footnote {
  color: var(--dialog-text-dark);
}

.modal-content .account-btn--ghost {
  color: var(--dialog-text-dark);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.modal-content .account-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.modal .modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--color-gold);
  font-size: 20px;
  cursor: pointer;
}

.modal .modal-close:hover {
  color: #fff;
}
/* Rules modal styling */
.rules-modal-content h4 {
  margin: 0px;
  color: var(--color-gold);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rules-modal-content p {
  margin: 0px;
  white-space: pre-line;
  line-height: 1.5;
}
