/* Profile age-gate overlay (legal audit F-02 / F-21).
 *
 * Selectors are scoped under .age-gate-overlay / html.age-gated / html.age-confirmed
 * so they never leak into other views.
 */
html.age-confirmed .age-gate-overlay {
  display: none !important;
}

/* Hide the page until the age gate overlay is painted, so the layout never flashes through. */
html.age-gated body {
  visibility: hidden;
}

html.age-gated .age-gate-overlay,
html.age-gated .age-gate-overlay * {
  visibility: visible;
}

.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), linear-gradient(125deg, rgb(240 47 100 / 1), rgb(50 100 150 / 99%) 50%, rgb(255, 110, 128));
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-overlay .age-gate-inner {
  text-align: center;
  color: #f0f8ff;
  padding: 20px;
}

.age-gate-overlay h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.age-gate-overlay h2 {
  font-size: 1rem;
  margin-bottom: 30px;
  font-weight: normal;
}

.age-gate-overlay .age-gate-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  padding: 10px 40px;
  margin: 10px;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
}

.age-gate-overlay .age-gate-btn-under {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
