/* 근쌤 연수랩 문짝 — 들어갈 때 닫히고, 들어간 화면에서 열린다 */
.doors { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.doors .door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: #0E1E46;
  transition: transform 1s cubic-bezier(.77, 0, .18, 1);
  will-change: transform;
}
.doors .door-left { left: 0; transform: translateX(-101%); }
.doors .door-right { right: 0; transform: translateX(101%); }
.doors .door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.08); }
.doors .door-left::after { right: 22px; }
.doors .door-right::after { left: 22px; }

.doors.shut { pointer-events: auto; }
.doors.shut .door { transform: none; }
.doors.no-anim .door { transition: none !important; }

/* ───── 연수장 가는 길 (비밀번호를 맞힌 뒤 잠깐) ───── */
.trip {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 40px; padding: 16px;
  opacity: 0; transition: opacity .35s ease;
}
.trip.go { opacity: 1; }
/* 작은 나무 간판에 연수 이름 */
.trip-sign {
  max-width: min(90vw, 640px); padding: .4em 1em .5em;
  font: 900 clamp(22px, 4.4vw, 38px)/1.25 "Gothic A1", "Apple SD Gothic Neo", sans-serif; letter-spacing: -0.02em;
  color: #FFF1D6; text-align: center; text-wrap: balance;
  background: #7A4B2A; border: 5px solid #5A3519; border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 18px 30px -12px rgba(0,0,0,.6);
  text-shadow: 0 -1px 0 rgba(0,0,0,.45);
  transform: translateY(-30px) rotate(-4deg); opacity: 0; transform-origin: 50% 0;
}
.trip.go .trip-sign { animation: trip-sign .9s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes trip-sign { 60% { opacity: 1; transform: rotate(2deg); } 100% { opacity: 1; transform: none; } }

/* 디딤돌 길: 근쌤이 지나가면 돌에 불이 들어옴 */
.trip-path { position: relative; width: min(80vw, 520px); height: 120px; display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 6px; }
.trip-path i {
  width: 34px; height: 12px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.trip.go .trip-path i { animation: stone-on .3s ease forwards; animation-delay: calc(.35s + var(--k) * 165ms); }
@keyframes stone-on { to { background: #FFB86B; box-shadow: 0 0 0 4px rgba(255, 184, 107, .18); } }
.trip-walker { position: absolute; left: 0; bottom: 10px; width: 96px; transform: translateX(-50%); }
.trip-walker img { display: block; width: 100%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.trip.go .trip-walker { animation: trip-walk 1.6s cubic-bezier(.4, .1, .4, 1) .3s forwards; }
.trip.go .trip-walker img { animation: trip-bob .3s ease-in-out .3s 6 alternate; }
@keyframes trip-walk { to { left: 100%; } }
@keyframes trip-bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-9px) rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  .doors .door { transition-duration: .01s !important; }
}
