/* ============================================================
   css/tutorial.css - 첫 로그인 튜토리얼 (.tut-)
   모자 요정 대화창 + 스포트라이트(어둠 4조각) + 손가락 포인터
   ============================================================ */

#tut-layer {
  position: absolute; inset: 0;
  z-index: 8700; /* 전투 오버레이(60)·허브(40) 위, 토스트(9000) 아래 */
  pointer-events: none; /* 입력 차단은 캡처 가드가 담당 — 시각 요소만 */
}

/* ----- 스포트라이트: 대상 주변을 어둡게 (4조각) ----- */
.tut-dim {
  position: absolute;
  background: rgba(20, 14, 45, 0.55);
  transition: all 0.25s ease;
}

/* ----- 대상 강조 링 ----- */
.tut-ring {
  position: absolute;
  border: 4px solid #ffd75e;
  border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(255, 215, 94, 0.35), 0 0 24px rgba(255, 215, 94, 0.8);
  animation: tut-pulse 1.1s ease-in-out infinite;
  transition: all 0.25s ease;
}
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 215, 94, 0.35), 0 0 24px rgba(255, 215, 94, 0.8); }
  50% { box-shadow: 0 0 0 9px rgba(255, 215, 94, 0.18), 0 0 34px rgba(255, 215, 94, 0.95); }
}

/* ----- 손가락 포인터 ----- */
.tut-finger {
  position: absolute;
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
  animation: tut-point 0.8s ease-in-out infinite;
}
@keyframes tut-point {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ----- 대화창 ----- */
.tut-box {
  position: absolute;
  left: 50%; bottom: 118px; /* 하단 탭 바(104px)를 가리지 않게 그 위에 */
  transform: translateX(-50%);
  width: min(92%, 880px);
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255, 250, 240, 0.98);
  border: 4px solid #7b5cd6;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 20, 70, 0.45);
  padding: 14px 18px;
  pointer-events: none; /* 탭 진행은 가드가 처리 (건너뛰기만 예외) */
  animation: mw-pop 0.3s ease;
}
.tut-box-top { bottom: auto; top: 76px; }

.tut-portrait {
  position: relative;
  flex: none;
  width: 84px; height: 84px;
  background: linear-gradient(180deg, #ece5ff, #d8ccff);
  border: 3px solid #7b5cd6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.tut-portrait .spr-icon { height: 1.2em; }
.tut-portrait-hat {
  position: absolute;
  top: -18px; left: 8px;
  font-size: 30px;
  transform: rotate(-18deg);
}
.tut-face {
  position: absolute;
  right: -8px; bottom: -6px;
  font-size: 26px;
  background: #fff;
  border: 2px solid #cfc4f2;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  animation: mw-pop 0.25s ease;
}

.tut-text-wrap { flex: 1 1 auto; min-width: 0; }
.tut-name {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  background: #7b5cd6;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 6px;
}
.tut-text {
  font-size: 21px;
  line-height: 1.55;
  color: var(--c-text);
  min-height: 60px;
  word-break: keep-all;
}
.tut-next {
  text-align: right;
  font-size: 14px;
  color: #9a8fd0;
  animation: tt-blink 1.4s ease-in-out infinite;
}

.tut-skip {
  position: absolute;
  top: -16px; right: 12px;
  font-family: var(--font);
  font-size: 13px;
  color: #6b6390;
  background: #fff;
  border: 2px solid #d9d2ef;
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  pointer-events: auto; /* 이 버튼만 직접 클릭 가능 */
  box-shadow: var(--shadow-sm);
}
.tut-skip:hover { color: #b03030; border-color: #f2c4c4; }

/* ============================================================
   세로 모드 (720x1280) — body.mw-portrait
   ============================================================ */
body.mw-portrait .tut-box { bottom: 170px; }
body.mw-portrait .tut-box-top { bottom: auto; top: 80px; }
body.mw-portrait .tut-text { font-size: 23px; }
body.mw-portrait .tut-portrait { width: 92px; height: 92px; font-size: 52px; }
body.mw-portrait .tut-finger { font-size: 60px; }
