/* 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: 106px;
  height: 32px;
  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,
  .age-pop * {
    box-sizing: border-box;
  }

  .age-pop__backdrop {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .age-pop__inner {
    max-width: 100%;
    gap: 36px;
  }

  .age-pop__panel {
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100svh - 120px);
    overflow: auto;
    padding: 24px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0d0e0e;
    gap: 18px;
  }

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

  .age-pop__content {
    gap: 24px;
  }

  .age-pop__title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .age-pop__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 20px;
  }

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

  .age-pop__btn {
    padding: 13px 0;
    font-size: 16px;
    line-height: 22px;
  }

  .age-pop__btn--enter {
    background: #ff4b02;
    color: #fff;
    font-weight: 700;
  }

  .age-pop__btn--exit {
    min-height: 0;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }

  .age-pop__close {
    flex: none;
  }

  .age-pop__btn,
  .age-pop__close {
    -webkit-tap-highlight-color: transparent;
  }

  .age-pop__btn:focus-visible,
  .age-pop__close:focus-visible {
    outline: 2px solid #ff4b02;
    outline-offset: 4px;
  }
}

/* Desktop dialog — Figma 49040:354743. Keep the existing page backdrop. */
@media (min-width: 769px) {
  .age-pop__inner {
    width: 400px;
    max-width: 100%;
    gap: 36px;
  }

  .age-pop__panel {
    box-sizing: border-box;
    width: 100%;
    max-height: calc(100svh - 120px);
    overflow: auto;
    padding: 24px 20px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.2);
    background: #0d0e0e;
    gap: 18px;
  }

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

  .age-pop__title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .age-pop__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 20px;
  }

  .age-pop__actions {
    gap: 12px;
  }

  .age-pop__btn {
    padding: 13px 0;
    line-height: 22px;
  }

  .age-pop__btn--enter {
    background: #ff4b02;
    color: #fff;
    font-weight: 700;
  }

  .age-pop__btn--exit {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }

  .age-pop__close {
    flex: none;
  }

  .age-pop__btn:focus-visible,
  .age-pop__close:focus-visible {
    outline: 2px solid #ff4b02;
    outline-offset: 4px;
  }
}
