/* 18+ age verification popup */

body.age-pop-open {
  overflow: hidden;
}

.age-pop {
  --age-theme: #E9019C;
  --age-panel: #0B0914;
  --age-exit: rgba(255, 255, 255, 0.10);
  --age-border: rgba(255, 255, 255, 0.20);
  --age-text: rgba(255, 255, 255, 0.90);
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.age-pop--open {
  display: flex;
}

.age-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.age-pop__inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.age-pop__panel {
  width: 440px;
  max-width: 100%;
  padding: 36px;
  box-sizing: border-box;
  background: var(--age-panel);
  border-radius: 40px;
  outline: 1px solid var(--age-border);
  outline-offset: -1px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.age-pop__logo {
  width: 78px;
  height: 78px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.age-pop__content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.age-pop__title {
  margin: 0;
  width: auto;
  color: var(--age-text);
  font-size: calc(24px + var(--pc-font-boost, 0px));
  font-family: "PingFang SC", sans-serif;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
  word-wrap: break-word;
}

.age-pop__desc {
  margin: 0;
  align-self: stretch;
  color: var(--age-text);
  font-size: calc(18px + var(--pc-font-boost, 0px));
  font-family: "PingFang SC", sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-align: justify;
  word-wrap: break-word;
}

.age-pop__actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
}

.age-pop__btn {
  align-self: stretch;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: "PingFang SC", sans-serif;
  font-size: calc(16px + var(--pc-font-boost, 0px));
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  word-wrap: break-word;
}

.age-pop__btn--enter {
  background: var(--age-theme);
  color: #fff;
}

.age-pop__btn--enter:hover {
  opacity: 0.92;
}

.age-pop__btn--exit {
  background: var(--age-exit);
  color: var(--age-text);
}

.age-pop__btn--exit:hover {
  opacity: 0.92;
}

.age-pop__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.age-pop__close:hover {
  opacity: 0.85;
}

.age-pop__close-icon {
  display: block;
  width: 36px;
  height: 36px;
}

@media (max-width: 768px) {
  .age-pop__inner {
    gap: 36px;
  }

  .age-pop__panel {
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 24px 20px;
    border-radius: 20px;
    gap: 18px;
  }

  .age-pop__logo {
    width: 78px;
    height: 78px;
  }

  .age-pop__content {
    gap: 24px;
  }

  .age-pop__title {
    font-size: calc(18px + var(--pc-font-boost, 0px));
    font-weight: 600;
    line-height: 24px;
  }

  .age-pop__desc {
    font-size: calc(14px + var(--pc-font-boost, 0px));
    line-height: 20px;
  }

  .age-pop__actions {
    gap: 12px;
    align-items: stretch;
  }

  .age-pop__btn {
    padding: 13px 20px;
    font-size: calc(16px + var(--pc-font-boost, 0px));
    font-weight: 400;
    line-height: 22px;
  }
}
