.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  color: var(--text-primary);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 38, 45, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.age-gate__panel {
  position: relative;
  width: min(100%, 31.25rem);
  max-height: calc(100vh - (var(--space-4) * 2));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-7) var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--color-ivoire-chaud);
  box-shadow: var(--shadow-soft);
  text-align: center;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.98);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.age-gate.is-open .age-gate__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.age-gate__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.age-gate__logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.age-gate__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.age-gate__badge {
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-laiton-doux);
  border-radius: 50%;
  background: var(--color-bleu-mediterraneen);
  color: var(--color-ivoire);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.age-gate__panel .eyebrow {
  margin-bottom: var(--space-3);
}

.age-gate__title {
  margin-bottom: var(--space-4);
  font-size: var(--heading-section);
  line-height: 1.05;
}

.age-gate__text {
  max-width: 24rem;
  margin: 0 auto var(--space-5);
  font-size: var(--text-small);
  line-height: var(--line-small);
}

.age-gate__text strong {
  color: var(--color-bleu-mediterraneen);
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.age-gate__actions > * {
  width: 100%;
}

.age-gate__note {
  margin: var(--space-5) 0 0;
  color: var(--text-muted);
  font-size: var(--text-utility);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--line-utility);
  text-transform: uppercase;
}

body.age-gate-open {
  overflow: hidden;
}

@media (max-width: 599px) {
  .age-gate {
    align-items: flex-end;
    padding: 0;
  }

  .age-gate__panel {
    width: 100%;
    max-height: calc(100vh - env(safe-area-inset-bottom));
    padding: var(--space-6) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate__panel {
    transition: none;
  }
}
