/**
 * 국어 맵 스타일
 * 배경: images/main/bg-kor.webp
 * 인물: images/main/kor1.webp ~ kor10.webp
 * 표지판: 왼쪽 sign-math-left, 오른쪽 sign-eng-right
 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Jua", sans-serif;
  overflow: hidden;
}

.kor-map {
  width: 100vw;
  height: 100vh;
  background-image: url("../../images/main/bg-kor.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.kor-map .signpost,
.kor-map .kor-spot {
  position: absolute;
  z-index: 20;
  transition: transform 0.2s ease-out;
  display: block;
  text-decoration: none;
}

.kor-map .signpost.is-guest-locked {
  cursor: not-allowed;
  filter: grayscale(0.55) brightness(0.92);
  opacity: 0.72;
}

.kor-map .signpost.is-guest-locked:hover {
  transform: none;
}

.kor-map .signpost.is-guest-locked::after {
  content: "로그인";
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

.kor-map .signpost:hover {
  transform: scale(1.1);
}

.kor-map .sign-img,
.kor-map .kor-spot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.kor-map .kor-spot {
  z-index: 15;
  pointer-events: none;
}

.kor-map .kor-spot--link {
  z-index: 22;
  pointer-events: auto;
  cursor: pointer;
}

.kor-map .kor-spot--link:hover {
  transform: scale(1.08);
}

.kor-map .kor-spot--link.is-guest-locked {
  cursor: not-allowed;
  filter: grayscale(0.45) brightness(0.94);
  opacity: 0.78;
}

.kor-map .kor-spot--link.is-guest-locked:hover {
  transform: none;
}

.kor-map .kor-spot-label {
  position: absolute;
  left: 50%;
  top: -0.35em;
  transform: translate(-50%, -100%);
  z-index: 3;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: rgba(55, 65, 81, 0.78);
  font-size: clamp(10px, 1.15vw, 14px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(2px);
}

.kor-map .kor-spot-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.42);
}

/* 표지판 */
#sign-math { top: 55%; left: 1%; width: 9%; }
#sign-eng { top: 55%; right: 1%; width: 9%; }

/* 국어 학습지 */
#worksheet-kor {
  bottom: 4%;
  right: 12%;
  width: 6%;
  z-index: 22;
}

/* 인물 배치 */
#kor-p1 { bottom: 2%; left: 8%; width: 10%; }   /* 벤치 독서 → 통글자학습 */
#kor-p3 { bottom: 50%; left: 88%; width: 7%; }  /* 손잡고 걷기 → 문장학습 */
#kor-p4 { bottom: 42%; left: 19%; width: 9%; }  /* 강아지 */
#kor-p5 { bottom: 21%; left: 75%; width: 5.5%; }   /* 책 → 단어공부 */
#kor-p6 { bottom: 20%; left: 40%; width: 9%; }   /* 자전거 → 자음모음 */
#kor-p7 { bottom: 55%; left: 40%; width: 6%; }   /* 아저씨 */
#kor-p8 { bottom: 55%; left: 52%; width: 8%; }   /* 연 날리기 */
#kor-p9 { bottom: 50%; left: 2%; width: 8%; }    /* 낚시 */
#kor-p10 { bottom: 20%; left: 60%; width: 5.5%; }  /* 가방 멘 아이 */
