/* 18+ age verification popup */

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

.age-pop {
  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: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.age-pop__panel {
  width: 440px;
  max-width: 100%;
  padding: 36px;
  border-radius: 40px;
  border: 1px solid var(--color-black-alpha-20);
  background: var(--surface-foreground);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.age-pop__logo {
  width: auto;
  height: 64px;
  display: block;
  object-fit: contain;
}

.age-pop__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.age-pop__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.age-pop__desc {
  margin: 0;
  width: 100%;
  color: var(--text-primary);
  font-size: 18px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-align: justify;
}

.age-pop__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.age-pop__btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-family: PingFang SC, sans-serif;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.age-pop__btn--enter {
  background: var(--color-primary-500);
  color: var(--text-on-dark);
}

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

.age-pop__btn--exit {
  min-height: 46px;
  background: var(--color-neutral-900);
  color: var(--text-on-dark);
}

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

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

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

.age-pop__close-icon {
  display: block;
}

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

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

  .age-pop__logo {
    height: 32px;
  }

  .age-pop__content {
    gap: 24px;
  }

  .age-pop__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .age-pop__desc {
    font-size: 14px;
    line-height: 20px;
  }

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

  .age-pop__btn {
    padding: 13px 24px;
    font-size: 18px;
    line-height: 24px;
  }

  .age-pop__btn--exit {
    min-height: 0;
  }
}
