/* Adult Verify Modal — 전체 화면 배경 이미지 + 중앙 다이얼로그 */
.avm-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* 페이지가 비치지 않도록 불투명 베이스 + 전체 커버 이미지 */
  background-color: #0f0f12;
  background-image: var(--avm-modal-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 배경 이미지 위 살짝 어둡게 · 카드는 위 레이어 */
.avm-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 18, 0.35) 0%,
    rgba(15, 15, 18, 0.52) 100%
  );
}

.avm-overlay[hidden] {
  display: none !important;
}

.avm-env-badge {
  align-self: center;
  margin: 0 0 1rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
}

.avm-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #1a1a1a;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  text-align: center;
  overflow: visible;
}

/* GTranslate 플로팅 위젯을 성인 인증 오버레이(z-index 9999999) 위에 표시 */
#gt_float_wrapper {
  z-index: 9999999999;
}

.avm-title {
  width: 100%;
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #111;
}

.avm-divider {
  width: 100%;
  margin: 0 0 1.25rem;
  border: none;
  border-top: 1px solid #e8e8e8;
}

.avm-body {
  width: 100%;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #222;
  text-align: center;
}

.avm-body p {
  margin: 0 0 0.85rem;
}

.avm-body p:last-child {
  margin-bottom: 0;
}

.avm-body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.avm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.avm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  min-width: 12rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.1s ease;
}

.avm-btn:active {
  transform: scale(0.98);
}

.avm-btn-primary {
  background: #111;
  color: #fff;
}

.avm-btn-primary:hover {
  opacity: 0.92;
}

.avm-btn-ghost {
  min-width: auto;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.avm-note {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

.avm-status {
  width: 100%;
  min-height: 1.25rem;
  margin: -0.2rem 0 0.9rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #374151;
  text-align: center;
}

.avm-status.is-loading::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.45rem;
  border: 2px solid #d1d5db;
  border-top-color: #111;
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: avm-spin 0.8s linear infinite;
}

@keyframes avm-spin {
  to {
    transform: rotate(360deg);
  }
}

body.avm-unverified.avm-no-scroll {
  overflow: hidden;
  touch-action: none;
}
