/* RealFreePorn.com age gate — compact desktop layout, isolated from the site. */
html.fp-age-locked,
html.fp-age-locked body,
html:has(#fp-age-gate:not([hidden]):not(.is-hidden)),
html:has(#fp-age-gate:not([hidden]):not(.is-hidden)) body {
  overflow: hidden !important;
}

#fp-age-gate[hidden],
#fp-age-gate.is-hidden { display: none !important; }

#fp-age-gate,
#fp-age-gate * { box-sizing: border-box; }

#fp-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  justify-content: center;
  align-items: safe center;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  padding: 20px 16px;
  overflow-x: hidden;
  overflow-y: auto; /* permits access on exceptionally short displays */
  overscroll-behavior: contain;
  scrollbar-width: none; /* never display an overlay scrollbar */
  -webkit-overflow-scrolling: touch;
  background: rgba(229, 219, 220, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #202637;
  font: 400 15px/1.52 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
}
#fp-age-gate::-webkit-scrollbar { display: none; width: 0; height: 0; }

#fp-age-gate .fp-age-panel {
  flex: 0 0 auto;
  width: min(100%, 704px);
  margin: auto;
  padding: 54px 62px 50px;
  border: 1px solid rgba(24, 31, 43, .06);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 24px 75px rgba(55, 39, 45, .13);
}
#fp-age-gate .fp-age-brand {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: nowrap;
  font: 900 36px/1.05 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.05em;
  white-space: nowrap;
}
#fp-age-gate .fp-age-brand-real { color: #d43b20; }
#fp-age-gate .fp-age-brand-free { color: #151923; }
#fp-age-gate .fp-age-brand-porn { color: #151923; }
#fp-age-gate .fp-age-brand-com { color: #4d5360; font-size: .52em; letter-spacing: -.015em; margin-left: 2px; }
#fp-age-gate .fp-age-rule {
  height: 1px;
  margin: 37px 0 47px;
  border: 0;
  background: #ededee;
}
#fp-age-gate #fp-age-title {
  margin: 0 0 30px;
  padding: 0;
  color: #171c2a;
  font: 800 41px/1.16 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.032em;
  text-transform: none;
}
#fp-age-gate #fp-age-desc {
  margin: 0;
  padding: 0;
  max-width: none;
  color: #353e51;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.65;
}
#fp-age-gate .fp-age-terms {
  margin: 31px 0 0;
  padding: 0;
  color: #3c4353;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
}
#fp-age-gate .fp-age-terms a,
#fp-age-gate .fp-age-parents a {
  color: #ce3e25;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#fp-age-gate .fp-age-actions {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}
#fp-age-gate .fp-age-action {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #d43b20;
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font: 800 19px/1.25 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease;
}
#fp-age-gate .fp-age-action:hover { background: #bb3219; color: #fff; }
#fp-age-gate .fp-age-action:focus-visible {
  outline: 3px solid #202637;
  outline-offset: 3px;
}
#fp-age-gate .fp-age-parents {
  margin: 31px 0 0;
  padding: 0;
  color: #c73e28;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
#fp-age-gate .fp-age-rule-footer { margin: 39px 0 32px; }
#fp-age-gate .fp-age-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: #323a4a;
  font-size: 12.5px;
  line-height: 1.5;
}
#fp-age-gate .fp-age-footer span { margin-right: auto; }
#fp-age-gate .fp-age-footer a {
  color: #30394a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Short desktop windows: reduce vertical space before requiring any scrolling. */
@media (min-width: 721px) and (max-height: 830px) {
  #fp-age-gate { padding-block: 12px; }
  #fp-age-gate .fp-age-panel { padding-top: 34px; padding-bottom: 32px; }
  #fp-age-gate .fp-age-rule { margin-top: 24px; margin-bottom: 30px; }
  #fp-age-gate #fp-age-title { margin-bottom: 20px; }
  #fp-age-gate .fp-age-terms { margin-top: 22px; }
  #fp-age-gate .fp-age-actions { margin-top: 19px; gap: 11px; }
  #fp-age-gate .fp-age-action { min-height: 48px; }
  #fp-age-gate .fp-age-parents { margin-top: 19px; }
  #fp-age-gate .fp-age-rule-footer { margin-top: 25px; margin-bottom: 20px; }
}
@media (max-width: 720px) {
  #fp-age-gate { padding: 12px; }
  #fp-age-gate .fp-age-panel { width: min(100%, 530px); padding: 29px 27px 28px; border-radius: 18px; }
  #fp-age-gate .fp-age-brand { font-size: 30px; }
  #fp-age-gate .fp-age-rule { margin: 23px 0 29px; }
  #fp-age-gate #fp-age-title { font-size: clamp(30px, 7vw, 38px); margin-bottom: 18px; }
  #fp-age-gate #fp-age-desc { font-size: 14px; line-height: 1.54; }
  #fp-age-gate .fp-age-terms { margin-top: 24px; font-size: 13.5px; }
  #fp-age-gate .fp-age-actions { gap: 12px; margin-top: 21px; }
  #fp-age-gate .fp-age-action { min-height: 52px; padding: 11px; font-size: 17px; }
  #fp-age-gate .fp-age-parents { margin-top: 22px; font-size: 14px; }
  #fp-age-gate .fp-age-rule-footer { margin: 26px 0 20px; }
  #fp-age-gate .fp-age-footer { gap: 8px 13px; font-size: 12px; }
  #fp-age-gate .fp-age-footer span { width: 100%; margin-right: 0; }
}
@media (max-width: 375px) {
  #fp-age-gate .fp-age-panel { padding: 17px 19px 18px; }
  #fp-age-gate .fp-age-brand { font-size: 28px; }
  #fp-age-gate .fp-age-rule { margin: 19px 0 22px; }
  #fp-age-gate #fp-age-title { font-size: 29px; }
  #fp-age-gate #fp-age-desc { font-size: 13px; }
  #fp-age-gate .fp-age-terms { margin-top: 19px; }
  #fp-age-gate .fp-age-action { font-size: 16px; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  #fp-age-gate .fp-age-action { transition: none; }
}

/* RealFreePorn has a longer wordmark than FreePorn. */
@media (max-width: 720px) { #fp-age-gate .fp-age-brand { font-size: clamp(19px, 5.3vw, 30px); } }
