html.consent-lock,
body.consent-lock {
  overflow: hidden;
  /* Do NOT set height/visibility on main content — overlay only covers visually. */
}

/* Age gate is a visual layer only; .site-main stays in the DOM for crawlers. */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 4, 8, 0.96);
  pointer-events: auto;
}

body.consent-lock .site-main,
body.consent-lock .site-header,
body.consent-lock .site-footer {
  /* Keep content readable to bots/DOM; only scroll is locked. */
  visibility: visible !important;
  content-visibility: visible !important;
}

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

.age-box {
  width: min(100%, 28rem);
  background: linear-gradient(160deg, rgba(28, 24, 36, 0.98), rgba(12, 10, 16, 0.98));
  border: 1px solid rgba(201, 165, 107, 0.28);
  border-radius: 16px;
  padding: 1.65rem 1.45rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.age-box h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display), Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}

.age-box p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.age-box button,
.cookie-consent button {
  margin: 0;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
}

.age-yes,
.cookie-primary {
  background: linear-gradient(135deg, var(--accent), #7f1d1d);
  color: #fff;
}

.age-no,
.cookie-secondary {
  background: #1c1824;
  color: #fff;
  border: 1px solid rgba(201, 165, 107, 0.2) !important;
}

.cookie-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line) !important;
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1900;
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(28, 24, 36, 0.98), rgba(12, 10, 16, 0.98));
  border: 1px solid rgba(201, 165, 107, 0.28);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.cookie-consent p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.cookie-consent a {
  color: var(--accent2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-prefs {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.cookie-prefs[hidden] {
  display: none !important;
}

.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
}

.cookie-pref-row small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

.cookie-pref-row input {
  margin-top: 0.2rem;
}

@media (max-width: 700px) {
  .age-box {
    padding: 1.25rem 1rem;
  }
  .age-actions {
    flex-direction: column;
  }
  .age-actions button {
    width: 100%;
  }
  .cookie-consent {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    width: auto;
    max-width: calc(100% - 1.3rem);
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions button {
    width: 100%;
  }
}
