#ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: default;
  background: transparent;
}

/* 온보딩 활성 시 body: 핑크 땡땡이 (엇갈린 배열) */
body.ob-active {
  background-color: #fddde6;
  background-image:
    radial-gradient(circle, #fff 1.5px, transparent 1.5px),
    radial-gradient(circle, #fff 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

#ob-cur-wrap {
  position: fixed;
  width: 84px;
  height: 84px;
  pointer-events: none;
  opacity: 0;
  z-index: 10001;
  transform: translate(-50%, -30%);
}

#ob-highlight {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(253, 180, 210, 0.5);
  left: 42px;
  top: 42px;
  transform: translate(-50%, -50%);
}

#ob-cursor {
  position: absolute;
  width: 84px;
  height: 84px;
  top: 0;
  left: 0;
}

/* ── 스크립트 다이얼로그 ── */
#ob-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
  display: flex;
  flex-direction: column;
  border: 2px solid #111;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 10000;
  min-width: 320px;
  max-width: 660px;
  font-family: inherit;
}

#ob-dialog.ob-text-show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  pointer-events: auto;
}

#ob-text {
  padding: 28px 44px 24px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ob-text-main {
  line-height: 1.65;
}

.ob-text-sub {
  font-size: 14px;
  font-weight: 400;
  color: #8a8f99;
  line-height: 1.7;
  margin-top: 12px;
}

#ob-btn-bar {
  display: flex;
  border-top: 2px solid #111;
}

#ob-next {
  flex: 1;
  border: none;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  color: #111;
  -webkit-appearance: none;
  transition: background 0.15s;
}

@media(hover:hover) {
  #ob-next:hover { background: rgba(0,0,0,0.04); }
}

.ob-out {
  animation: ob-fadeout 0.7s ease forwards;
  pointer-events: none;
}

@keyframes ob-fadeout {
  to { opacity: 0; }
}

/* ── 모바일 (≤700px) ── */
@media (max-width: 700px) {
  #ob-dialog {
    width: calc(100vw - 32px);
    min-width: 0;
    max-width: none;
  }

  #ob-text {
    padding: 20px 20px 16px;
    font-size: 16px;
    word-break: keep-all;
  }

  #ob-next {
    font-size: 16px;
    padding: 14px;
  }
}
