html.age-gate-open,
html.age-gate-open body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

html.age-gate-open #root {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: Poppins, system-ui, sans-serif;
}

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.age-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: linear-gradient(160deg, #1a1a1a 0%, #0e0e0e 55%, #1a1028 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.85),
    0 0 40px -10px rgba(147, 51, 234, 0.35);
  text-align: center;
  color: #f3f4f6;
}

.age-gate__dialog::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(239, 68, 68, 0.5), rgba(147, 51, 234, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #9333ea, #ef4444);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px -6px rgba(239, 68, 68, 0.55);
}

.age-gate__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.age-gate__text {
  margin: 0 0 1.5rem;
  font-size: 0.975rem;
  line-height: 1.6;
  color: #9ca3af;
}

.age-gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.age-gate__btn {
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.age-gate__btn:active {
  transform: scale(0.98);
}

.age-gate__btn--yes {
  background: linear-gradient(135deg, #9333ea, #a855f7 40%, #ef4444);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(147, 51, 234, 0.7);
}

.age-gate__btn--yes:hover {
  background: linear-gradient(135deg, #7e22ce, #9333ea 40%, #dc2626);
  box-shadow: 0 14px 32px -8px rgba(239, 68, 68, 0.55);
}

.age-gate__btn--no {
  background: rgba(26, 26, 26, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.age-gate__btn--no:hover {
  background: rgba(69, 10, 10, 0.35);
  border-color: #ef4444;
  color: #fecaca;
}

.age-gate__blocked {
  display: none;
}

.age-gate--blocked .age-gate__dialog {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.25),
    0 25px 50px -12px rgba(0, 0, 0, 0.85),
    0 0 40px -10px rgba(220, 38, 38, 0.35);
}

.age-gate--blocked .age-gate__question,
.age-gate--blocked .age-gate__actions {
  display: none;
}

.age-gate--blocked .age-gate__blocked {
  display: block;
}

.age-gate__blocked-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.age-gate__blocked-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ef4444;
}

.age-gate__blocked-text {
  margin: 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: #9ca3af;
}

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