/* Age restriction modal styles */

.ecs-age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.ecs-age-modal__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.98));
  backdrop-filter: blur(10px);
}

.ecs-age-modal__content {
  position: relative;
  max-width: 480px;
  width: calc(100% - 2 * var(--space-16));
  padding: var(--space-32) var(--space-24);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(217, 180, 106, 0.12), transparent 50%),
    linear-gradient(155deg, #161821, #050508 70%);
  border: 1px solid rgba(217, 180, 106, 0.5);
  box-shadow: var(--shadow-md);
  text-align: center;
}

@media (min-width: 640px) {
  .ecs-age-modal__content {
    padding: var(--space-40) var(--space-32);
  }
}

.ecs-age-modal__logo {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 25% 0, rgba(242, 212, 154, 0.9), rgba(217, 180, 106, 0.35));
  color: #050508;
  box-shadow: 0 0 0 1px rgba(242, 212, 154, 0.7), 0 20px 40px rgba(0, 0, 0, 0.85);
}

.ecs-age-modal__logo i {
  font-size: 1.4rem;
}

.ecs-age-modal__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-12);
}

.ecs-age-modal__text {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

.ecs-age-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (min-width: 480px) {
  .ecs-age-modal__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.ecs-age-modal__btn {
  flex: 1 1 auto;
}

.ecs-age-modal__note {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Hidden state helper */

.ecs-age-modal--hidden {
  display: none;
}
