/* ── Age gate overlay ─────────────────────────────────────────── */
#ncl-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

#ncl-age-gate::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--cobalt-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--cobalt-faint) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.ncl-age-gate__inner {
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 16px 0 40px;
}

.ncl-age-gate__eyebrow {
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt-light);
  margin-bottom: 24px;
}

.ncl-age-gate__headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: var(--fw-semibold);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 8px;
}

.ncl-age-gate__period {
  color: var(--cobalt-light);
}

.ncl-age-gate__rule {
  width: 40px;
  height: 1px;
  background: rgba(26, 82, 216, 0.5);
  margin: 28px auto 36px;
}

.ncl-age-gate__body {
  color: var(--white-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 auto 36px;
  max-width: 400px;
}

/* ── Checkboxes ──────────────────────────────────────────────── */
.ncl-age-gate__checks {
  display: inline-block;
  text-align: left;
  margin-bottom: 24px;
  max-width: 400px;
  width: 100%;
}

.ncl-age-gate__check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--white-soft);
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.ncl-age-gate__check:last-child {
  margin-bottom: 0;
}

.ncl-age-gate__check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
}

.ncl-age-gate__check input:hover {
  border-color: var(--cobalt-light);
}

.ncl-age-gate__check input:checked {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.ncl-age-gate__check input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Research setting ────────────────────────────────────────── */
.ncl-age-gate__field {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 400px;
  width: 100%;
}

.ncl-age-gate__label {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-light);
  margin-bottom: 6px;
}

.ncl-age-gate__hint {
  display: none;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--white-dim);
}

.ncl-age-gate__select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: var(--white-soft);
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239EA8BC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: border-color 0.2s, color 0.2s;
}

.ncl-age-gate__select:hover {
  border-color: var(--cobalt-light);
}

.ncl-age-gate__select:focus {
  outline: none;
  border-color: var(--cobalt);
  color: var(--white);
}

.ncl-age-gate__select:valid {
  color: var(--white);
}

.ncl-age-gate__select option {
  color: var(--ink);
  background: var(--white);
}

.ncl-age-gate__select option[value=""][disabled] {
  color: var(--slate);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.ncl-age-gate__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ncl-age-gate__btn {
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  min-width: 148px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
}

.ncl-age-gate__btn--confirm {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

.ncl-age-gate__btn--confirm:hover:not(:disabled) {
  background: var(--cobalt-light);
  border-color: var(--cobalt-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--cobalt-shadow);
}

.ncl-age-gate__btn--confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ncl-age-gate__btn--decline {
  background: transparent;
  color: var(--white-dim);
  border-color: rgba(255, 255, 255, 0.2);
}

.ncl-age-gate__btn--decline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white-soft);
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.ncl-age-gate__disclaimer {
  font-size: 0.6875rem;
  color: var(--white-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
  max-width: 380px;
  margin-inline: auto;
}

/* ── Scroll lock (applied by JS when gate is shown) ──────────── */
body.ncl-age-gate-active {
  overflow: hidden !important;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ncl-age-gate__btn { width: 100%; justify-content: center; }
  .ncl-age-gate__buttons { flex-direction: column-reverse; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ncl-age-gate__btn,
  .ncl-age-gate__check input { transition: none; }
}
