:root {
  --age-primary: #0b5ed7;
  --age-primary-dark: #0a4fb7;
  --age-surface-dark: #0f172a;
  --age-text-inverse: #f8fafc;
  --age-text-soft: rgba(248, 250, 252, 0.82);
}

html.age-gate-pending body {
  overflow: hidden;
}

html.age-gate-pending .page-shell,
html.age-gate-pending #root,
html.age-gate-pending > body > header,
html.age-gate-pending > body > main,
html.age-gate-pending > body > section,
html.age-gate-pending > body > footer,
html.age-gate-pending > body > a.fixed {
  visibility: hidden;
}

.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(11, 94, 215, 0.22), transparent 40%),
    rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: age-gate-fade-in 0.35s ease;
}

.age-gate-overlay[hidden] {
  display: none !important;
}

@keyframes age-gate-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.age-gate-card {
  width: min(100%, 480px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  color: var(--age-text-inverse);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(135deg, #08101d, #13213b 58%, #102033);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 70px rgba(8, 14, 26, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.age-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

.age-gate-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--age-text-inverse);
  background: linear-gradient(135deg, var(--age-primary), var(--age-surface-dark));
  box-shadow:
    0 14px 30px rgba(11, 94, 215, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.age-gate-brand-text strong,
.age-gate-brand-text span {
  display: block;
}

.age-gate-brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.age-gate-brand-text span {
  font-size: 0.8rem;
  color: var(--age-text-soft);
}

.age-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  margin: 0 auto 18px;
  border-radius: 999px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--age-text-inverse);
  background: rgba(11, 94, 215, 0.2);
  border: 2px solid rgba(11, 94, 215, 0.45);
  box-shadow: 0 0 0 8px rgba(11, 94, 215, 0.08);
}

.age-gate-title {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.age-gate-text {
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--age-text-soft);
}

.age-gate-terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.age-gate-terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--age-primary);
  cursor: pointer;
}

.age-gate-terms span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.9);
}

.age-gate-terms a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.age-gate-terms a:hover {
  color: #bfdbfe;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.age-gate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.age-gate-btn-confirm {
  color: var(--age-text-inverse);
  background: linear-gradient(180deg, var(--age-primary), var(--age-primary-dark));
  box-shadow:
    0 16px 36px rgba(11, 94, 215, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.age-gate-btn-confirm:hover:not(:disabled) {
  box-shadow:
    0 20px 42px rgba(11, 94, 215, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.age-gate-btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.age-gate-btn-decline {
  color: rgba(248, 250, 252, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.age-gate-btn-decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.age-gate-footnote {
  margin: 16px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.55);
}

@media (min-width: 480px) {
  .age-gate-card {
    padding: 36px 32px 30px;
  }
}
