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

html.age-gate-open,
html.age-gate-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.age-gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 40px 16px;
  color: #fff;
  background: #000;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.age-gate[hidden] {
  display: none !important;
}

.age-gate__panel {
  position: relative;
  flex: 0 0 auto;
  width: 560px;
  max-width: 100%;
  min-height: 556px;
  margin: auto;
  padding: 228px 42px 40px;
  border-radius: 20px 210px 20px 20px;
  background: linear-gradient(180deg, #222 50%, #302a20 100%);
  outline: none;
}

.age-gate__title {
  position: absolute;
  top: -32px;
  left: 20px;
  width: 538px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
}

.age-gate__title picture,
.age-gate__title img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.age-gate__description {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.age-gate__actions {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.age-gate .age-gate__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  font: 400 22px/1.5 Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.age-gate .age-gate__button--leave {
  color: #fff;
  background: #3a3733;
}

.age-gate .age-gate__button--enter {
  color: #000;
  background: #ff9903;
}

.age-gate .age-gate__button--leave:hover {
  background: #48443f;
}

.age-gate .age-gate__button--enter:hover {
  background: #ffa91f;
}

.age-gate .age-gate__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .age-gate__panel {
    width: 343px;
    min-height: 349px;
    padding: 144px 20px 24px;
    border-radius: 10px 104px 10px 10px;
  }

  .age-gate__title {
    top: -20px;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .age-gate__description {
    font-size: 14px;
    line-height: 22px;
  }

  .age-gate__actions {
    gap: 12px;
    margin-top: 16px;
  }

  .age-gate .age-gate__button {
    min-height: 44px;
    padding: 8px;
    border-radius: 3px;
    font-size: 16px;
    line-height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .age-gate .age-gate__button {
    transition: none;
  }
}
