h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, "Orbitron", sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan, #00e5ff);
}

/* 풀스크린 오버레이 + 중앙 팝업 */
.modal_back {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(8px);
}

.modal_back.is-open {
  display: flex;
}

.modal_popup {
  position: relative;
  width: min(520px, 100%);
  max-height: min(85vh, 640px);
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.35rem;
  text-align: left;
  background: rgba(14, 22, 34, 0.98);
  color: var(--text, #e8f1f8);
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 229, 255, 0.12);
  font-family: var(--font-ui, "Rajdhani", sans-serif);
  font-size: 1.02rem;
  line-height: 1.55;
  animation: modalPopIn 0.22s ease-out;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal_close_x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-dim, #8fa3b8);
  background: rgba(0, 229, 255, 0.08);
  transition: color 0.15s, background 0.15s;
}

.modal_close_x:hover {
  color: var(--cyan, #00e5ff);
  background: rgba(0, 229, 255, 0.15);
}

.modal_popup p {
  margin: 0.5rem 0;
  color: var(--text-dim, #8fa3b8);
}

.close_modal {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-ui, "Rajdhani", sans-serif);
  letter-spacing: 0.05em;
  width: 100%;
  min-height: 44px;
  margin-top: 1.25rem;
  cursor: pointer;
  color: #06080d;
  background: linear-gradient(180deg, var(--cyan, #00e5ff) 0%, #00b8d4 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 0 #006064, 0 8px 20px rgba(0, 229, 255, 0.25);
  transition: filter 0.15s ease, transform 0.08s ease;
}

.close_modal:hover {
  filter: brightness(1.08);
}

.close_modal:active {
  transform: translateY(1px);
}

/* 참고 사항 모달 목록 */
.modal_ref_list {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-dim, #8fa3b8);
  font-size: 0.98rem;
  line-height: 1.5;
}

.modal_ref_list li {
  margin: 0.45rem 0;
}

.modal_ref_list li::marker {
  color: rgba(0, 229, 255, 0.55);
}

@media screen and (max-width: 768px) {
  .modal_popup {
    padding: 1.35rem 1.15rem 1.15rem;
  }
}

@media screen and (max-width: 480px) {
  h2 {
    font-size: 1.1rem;
    padding-right: 2rem;
  }

  .modal_popup {
    padding: 1.2rem 1rem 1rem;
    font-size: 0.95rem;
  }

  .close_modal {
    font-size: 0.95rem;
    min-height: 42px;
  }
}
