html[data-adult-entry="pending"] {
  color-scheme: dark;
  background: #080809;
  overflow: hidden;
  overscroll-behavior: none;
}

html[data-adult-entry="pending"] body {
  overflow: hidden;
  color: #f8f7fa;
  background: #080809;
}

html[data-adult-entry="pending"] body > :not(#adultEntry) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-adult-entry="pending"] body > dialog:not(#adultEntry)::backdrop {
  visibility: hidden;
}

#adultEntry {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
    max(clamp(20px, 6vh, 54px), env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f8f7fa;
  background: radial-gradient(ellipse at 50% 33%, #18181a, #080809 68%);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

#adultEntry[open] {
  display: flex;
}

#adultEntry::backdrop {
  background: #080809;
  backdrop-filter: none;
}

.adult-entry-panel {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: min(100%, 474px);
  box-sizing: border-box;
  margin: auto;
  padding: clamp(23px, 5.4vw, 38px);
  border: 1px solid transparent;
  border-radius: clamp(19px, 5vw, 30px);
  background:
    radial-gradient(ellipse at 50% -28%, #353537 0%, #242426 43%, #1b1b1e 85%) padding-box,
    linear-gradient(151deg, #67676a, #414144 47%, #313133 75%, #48484b) border-box;
  box-shadow: 0 24px 68px #000b, 0 2px 10px #0005;
  text-align: center;
}

.adult-entry-panel::before {
  position: absolute;
  pointer-events: none;
  content: "";
  inset: 0 19% auto;
  height: 1px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #fff5, transparent);
}

.adult-entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 7px;
  border: 1px solid #ffffff21;
  border-radius: 999px;
  background: #10101279;
  color: #f5e8ef;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: .025em;
}

.adult-entry-brand img {
  display: block;
  flex: none;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

#adult-entry-title {
  margin: 18px 0 7px;
  color: #faf9fb;
  font-size: clamp(24px, 6.3vw, 36px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

#adult-entry-title:focus {
  outline: none;
}

#adult-entry-terms-note {
  margin: 0;
  color: #c1bec4;
  font-size: 14px;
  line-height: 1.6;
}

#adult-entry-terms {
  color: #fbedf6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adult-entry-choices {
  min-width: 0;
  padding: 0;
  margin: 26px 0 18px;
  border: 0;
}

.adult-entry-choices legend {
  padding: 0;
  margin-bottom: 9px;
  color: #e7e3e8;
  font-size: 13px;
  font-weight: 650;
  text-align: start;
}

.adult-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.6vw, 12px);
}

.adult-entry-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  cursor: pointer;
}

.adult-entry-grid input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.adult-entry-choice {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 75px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2.4vw, 12px);
  padding: 9px;
  border: 1px solid #49494d;
  border-radius: 14px;
  color: #ece8ef;
  background: linear-gradient(155deg, #29292c, #19191b);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 3px 7px #0003;
  font-size: clamp(12px, 3.1vw, 15px);
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.adult-entry-choice::after {
  position: absolute;
  content: "";
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff71ba;
  box-shadow: 0 0 0 2px #ff59b22b, 0 0 7px #ff56ad80;
  opacity: 0;
  transition: opacity 180ms ease;
}

.adult-entry-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(29px, 8.5vw, 40px);
  aspect-ratio: 1;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  color: #cec4ce;
  background: linear-gradient(155deg, #38383c, #252527);
  box-shadow: inset 0 1px 0 #ffffff19;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 400;
  line-height: 1;
}

.adult-entry-grid input:checked + .adult-entry-choice {
  border-color: #ff59ad;
  background: linear-gradient(155deg, #3a2934, #241e23);
  box-shadow: 0 0 0 1px #ff59ad38, 0 4px 12px #0005;
  color: #fff5fb;
}

.adult-entry-grid input:checked + .adult-entry-choice::after {
  opacity: 1;
}

.adult-entry-grid input:checked + .adult-entry-choice .adult-entry-symbol {
  border-color: #f47db75c;
  color: #ff92cc;
  background: linear-gradient(150deg, #543248, #392632);
}

#adultEntry :is(a, button):focus-visible,
.adult-entry-grid input:focus-visible + .adult-entry-choice {
  outline: 2px solid #ffd9ef;
  outline-offset: 3px;
}

#adult-entry-confirm,
#adult-entry-leave {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

#adult-entry-confirm {
  position: relative;
  overflow: hidden;
  min-height: 50px;
  border: 1px solid #ffa4d58c;
  color: #230c19;
  background: linear-gradient(172deg, #ff8dc8, #ff58ad 53%, #f738a0);
  box-shadow: 0 7px 16px #fa359c2a, inset 0 1px 0 #ffffff55;
  font-weight: 760;
  transition: box-shadow 180ms ease, transform 150ms ease;
}

#adult-entry-confirm::after {
  position: absolute;
  pointer-events: none;
  content: "";
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, #fff4 50%, transparent 62%);
  transform: translateX(-100%);
}

#adult-entry-confirm:active {
  transform: translateY(1px);
}

#adult-entry-leave {
  margin-top: 6px;
  color: #bcb8c0;
  background: transparent;
  font-size: 13px;
}

@media (hover: hover) {
  .adult-entry-grid label:hover input:not(:checked) + .adult-entry-choice {
    border-color: #79717a;
  }

  #adult-entry-confirm:hover {
    box-shadow: 0 9px 22px #fa359c51, inset 0 1px 0 #ffffff68;
  }

  #adult-entry-leave:hover {
    color: #fff2fd;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #adultEntry[open] .adult-entry-panel {
    animation: adult-entry-reveal 360ms ease-out both;
  }

  #adult-entry-confirm:hover::after {
    animation: adult-entry-shine 620ms ease-out;
  }
}

@keyframes adult-entry-reveal {
  from { opacity: .55; transform: translateY(9px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes adult-entry-shine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  #adultEntry * {
    transition: none;
  }

  #adult-entry-confirm:active {
    transform: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #adultEntry {
    padding-top: max(9px, env(safe-area-inset-top));
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }

  .adult-entry-panel { padding: 14px 24px 9px; }
  #adult-entry-title { margin: 9px 0 5px; font-size: clamp(22px, 6vh, 30px); }
  .adult-entry-choices { margin: 12px 0 10px; }
  .adult-entry-choices legend { margin-bottom: 6px; }
  .adult-entry-choice { min-height: 47px; padding: 4px 8px; }
  .adult-entry-symbol { width: 29px; font-size: 20px; }
  #adult-entry-confirm { min-height: 44px; }
  #adult-entry-leave { margin-top: 2px; }
}
