html:has(.site-age-check[open]) {
  overflow: hidden;
}

.site-age-check {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(22px, 5vw, 36px);
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
  text-align: left;
  color: #f8f7f6;
  background: #202225;
  border: 1px solid #51403f;
  border-radius: 22px;
  box-shadow: 0 24px 90px #0009;
}

.site-age-check::backdrop {
  background: #100e11ed;
  backdrop-filter: blur(12px);
}

.site-age-check__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.site-age-check__brand img {
  display: block;
  width: 118px;
  height: auto;
}

.site-age-check__badge {
  padding: 4px 11px;
  border: 1px solid #76504b;
  border-radius: 999px;
  background: #362426;
  color: #ff9e90;
  font-weight: 750;
  line-height: 1.45;
}

.site-age-check h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -.035em;
  outline: none;
}

.site-age-check p {
  margin: 12px 0 0;
  color: #b7b9c2;
  font-size: 15px;
  line-height: 1.6;
}

.site-age-check__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.site-age-check__actions :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  box-sizing: border-box;
  border-radius: 11px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.site-age-check__enter {
  border: 0;
  color: #171719;
  background: #ff6b57;
}

.site-age-check__enter:hover {
  background: #ff8776;
}

.site-age-check__leave {
  border: 1px solid #60626a;
  color: #f8f7f6;
  background: transparent;
}

.site-age-check__leave:hover {
  color: #f8f7f6;
  background: #292b2f;
}

.site-age-check__actions :focus-visible {
  outline: 3px solid #ff9e90;
  outline-offset: 3px;
}
