/* ============================================================
   AGE GATE — Velvet Verdict (18+ adult-only platform)
   Fails closed: the page stays locked unless a valid
   acceptance flag exists in localStorage.
============================================================ */

html.age-locked,
html.age-locked body {
  overflow: hidden !important;
  height: 100%;
}

/* Nothing but the gate may paint while locked. */
html.age-locked body > :not(#ageGate) {
  display: none !important;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: radial-gradient(circle at 50% 0%, #1b1420 0%, #0b0a0d 55%, #050507 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #ece8f1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.age-gate__panel {
  width: 100%;
  max-width: 520px;
  padding: 34px 30px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(28, 22, 33, 0.96), rgba(14, 12, 17, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.age-gate__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 22px;
}

.age-gate__badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9bcd8;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
}

.age-gate__badge--rta {
  color: #ffd9a8;
  border-color: rgba(255, 176, 82, 0.45);
  background: rgba(255, 176, 82, 0.09);
}

.age-gate__eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e0576f;
}

.age-gate__title {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 5.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.age-gate__lede {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: #bdb3c7;
}

.age-gate__warning {
  margin: 0 0 24px;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid rgba(224, 87, 111, 0.28);
  background: rgba(224, 87, 111, 0.07);
  font-size: 0.83rem;
  line-height: 1.58;
  color: #e9d3d9;
  text-align: left;
}

.age-gate__warning strong { color: #ff8ea2; }

.age-gate__actions {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
}

.btn-age {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-age:active { transform: translateY(1px); }

.btn-age:focus-visible {
  outline: 2px solid #ffb052;
  outline-offset: 3px;
}

.btn-age--enter {
  color: #170d10;
  background: linear-gradient(180deg, #ff9a6b, #e0576f);
  box-shadow: 0 10px 26px rgba(224, 87, 111, 0.3);
}

.btn-age--enter:hover { filter: brightness(1.06); }

.btn-age--exit {
  color: #a99fb4;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-age--exit:hover { color: #d9d2e2; border-color: rgba(255, 255, 255, 0.3); }

.age-gate__legal {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.74rem;
  line-height: 1.6;
  color: #8a8197;
  text-align: left;
}

.age-gate__legal p { margin: 0 0 9px; }
.age-gate__legal p:last-child { margin-bottom: 0; }
.age-gate__legal a { color: #b9a8cc; text-decoration: underline; }
.age-gate__fineprint { color: #6f6779; }

.age-gate__noscript {
  margin-top: 16px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(224, 87, 111, 0.12);
  color: #ffb3c1;
  font-size: 0.8rem;
}

@media (max-width: 420px) {
  .age-gate__panel { padding: 26px 20px 20px; border-radius: 14px; }
  .age-gate__badges { margin-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-age { transition: none; }
}
