.age-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--modal-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.age-gate-backdrop.visible {
  opacity: 1;
}

.age-gate-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 901;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 48px); /* fallback for browsers without dvh */
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--modal-surface-top), var(--modal-surface-bottom));
  border: 1px solid var(--modal-border-strong);
  box-shadow: var(--modal-shadow-premium);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.age-gate-dialog.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.age-gate-dialog.closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 200ms ease;
}

.age-gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-gate-title {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.age-gate-scroll-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--field-surface);
  overflow: hidden;
}

.age-gate-scroll {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  max-height: 320px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--border);
}

.age-gate-scroll::-webkit-scrollbar {
  width: 6px;
}

.age-gate-scroll::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.age-gate-scroll::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
  opacity: 0.4;
}

.age-gate-scroll-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--field-surface) 90%);
  transition: opacity 140ms ease;
}

.age-gate-scroll-fade.hidden {
  opacity: 0;
  visibility: hidden;
}

.age-gate-disclaimer {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.age-gate-disclaimer-section {
  margin: 16px 0 8px;
  padding: 0;
  color: var(--text-muted);
  opacity: 0.6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.age-gate-disclaimer p {
  margin: 0 0 12px;
}

.age-gate-checkbox-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  cursor: pointer;
}

.age-gate-checkbox {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.age-gate-checkbox-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.age-gate-checkbox-visual svg {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 150ms ease, transform 150ms ease;
}

.age-gate-checkbox-row:hover .age-gate-checkbox-visual {
  border-color: var(--field-border-strong);
  background: var(--field-surface);
}

.age-gate-checkbox:focus-visible + .age-gate-checkbox-visual {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--field-ring);
  outline: none;
}

.age-gate-checkbox:checked + .age-gate-checkbox-visual {
  background: var(--primary);
  border-color: var(--primary);
}

.age-gate-checkbox:checked + .age-gate-checkbox-visual svg {
  opacity: 1;
  transform: scale(1);
}

.age-gate-checkbox-label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  user-select: none;
}

.age-gate-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.age-gate-btn-continue,
.age-gate-btn-exit,
.age-gate-soft-wall-cta {
  font: inherit;
}

.age-gate-btn-continue {
  flex: 1;
  height: 52px;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 200ms ease, opacity 200ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.age-gate-btn-continue:hover:not(.disabled) {
  background: var(--primary-hover);
}

.age-gate-btn-continue:active:not(.disabled) {
  transform: scale(0.97);
}

.age-gate-btn-continue:focus-visible,
.age-gate-btn-exit:focus-visible,
.age-gate-soft-wall-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--field-ring);
}

.age-gate-btn-continue.disabled {
  background: var(--primary-dim);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.45;
}

.age-gate-btn-exit {
  flex: 0 0 auto;
  height: 52px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--danger-dim);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 200ms ease, opacity 100ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.age-gate-btn-exit:hover {
  background: var(--danger-dim);
}

.age-gate-btn-exit:active {
  opacity: 0.75;
  transform: scale(0.97);
}

.view.age-gate-soft-wall-host > :not(.age-gate-soft-wall) {
  display: none !important;
}

.age-gate-soft-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 48px 24px;
  border: 1px solid var(--modal-border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--modal-surface-top), var(--modal-surface-bottom));
  box-shadow: var(--modal-shadow-premium);
  text-align: center;
}

.age-gate-soft-wall-icon {
  margin-bottom: 16px;
  opacity: 0.5;
  font-size: 2rem;
  line-height: 1;
}

.age-gate-soft-wall-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.age-gate-soft-wall-text {
  max-width: 320px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.age-gate-soft-wall-cta {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--text);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 200ms ease, transform 100ms ease, box-shadow 150ms ease;
}

.age-gate-soft-wall-cta:hover {
  background: var(--primary-hover);
}

.age-gate-soft-wall-cta:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .age-gate-dialog {
    padding: 24px;
  }

  .age-gate-scroll {
    max-height: 240px;
  }

  .age-gate-buttons {
    flex-direction: column-reverse;
  }

  .age-gate-btn-exit {
    width: 100%;
    height: 60px;
    min-height: 60px;
  }

  .age-gate-btn-continue {
    height: 60px;
    min-height: 60px;
    font-size: 1rem;
  }
}
