/* Pragorio age restriction modal styles */

.pragorio-age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.pragorio-age-overlay--hidden {
  display: none !important;
}

body.pragorio-age-locked {
  overflow: hidden;
}

.pragorio-age-modal {
  width: min(480px, 100% - 2.5rem);
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  max-height: 90vh;
  overflow: auto;
}

.pragorio-age-modal__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.pragorio-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-bg-contrast);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.pragorio-age-modal__title {
  font-size: var(--font-size-2xl);
}

.pragorio-age-modal__text {
  margin-bottom: 0;
}

.pragorio-age-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.pragorio-age-modal__button {
  width: 100%;
}

.pragorio-age-modal__note {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

@media (min-width: 480px) {
  .pragorio-age-modal__actions {
    flex-direction: row;
  }

  .pragorio-age-modal__button {
    width: auto;
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pragorio-age-overlay,
  .pragorio-age-modal {
    scroll-behavior: auto;
  }
}
