.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);
  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 {
  position: relative;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  max-height: 320px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--field-surface);
  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: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--modal-surface-bottom) 100%);
}

.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,
.cookie-banner-accept,
.cookie-banner-decline {
  font: inherit;
}

.age-gate-btn-continue {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--text);
  cursor: pointer;
  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,
.cookie-banner-accept:focus-visible,
.cookie-banner-decline:focus-visible,
.cookie-banner-link: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: 48px;
  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);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 300ms ease, transform 300ms ease;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-text {
  flex: 1;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner-link {
  color: var(--primary-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner-accept,
.cookie-banner-decline {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8125rem;
}

.cookie-banner-accept {
  border: none;
  background: var(--primary);
  color: var(--text);
  font-weight: 600;
}

.cookie-banner-accept:hover {
  background: var(--primary-hover);
}

.cookie-banner-decline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
}

.cookie-banner-decline:hover {
  border-color: var(--field-border-strong);
  color: var(--text);
}

@media (max-width: 960px) {
  .cookie-banner {
    padding-bottom: calc(16px + env(safe-area-inset-bottom) + 64px);
  }
}

@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%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}
