/* 근쌤 연수랩 — 정원 지도 화면 위 안내(HUD): 위 막대 · 도움말 · 정자 카드 */
body.stage-world { overflow: hidden; }
body.stage-world .lab-top, body.stage-world main { display: none; }
body.stage-list .m-stage, body.stage-list .w-hud { display: none; }

.w-hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font-family: var(--f-body); color: var(--ink); }
.w-hud > * { pointer-events: auto; }
.w-bar {
  position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.w-bar > * { pointer-events: auto; }
.w-home { font-family: var(--f-display); font-weight: 900; font-size: 18px; color: #fff; text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.w-sign {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(18px, 3vw, 24px); color: #FFF1D6;
  background: #7A4B2A; border: 4px solid #5A3519; border-radius: 12px; padding: 4px 16px 6px;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); text-shadow: 0 -1px 0 rgba(0,0,0,.45);
}
.w-list { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255,255,255,.92); color: var(--ink); font: 700 14px var(--f-body); cursor: pointer; }
.w-list:hover { background: #fff; }
.w-help {
  position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  margin: 0; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 30, 70, .72); color: #fff; font-size: 14px; font-weight: 500;
}

/* 정자 앞 카드 */
.w-card {
  position: absolute; left: 50%; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 50px); transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 18px 20px;
  background: #FFF8EC; border: 4px solid #7A4B2A; border-radius: 16px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.55);
}
.w-card[hidden] { display: none; }
.w-card.pop { animation: w-pop .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes w-pop { from { opacity: 0; transform: translate(-50%, 16px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0); } }
.w-meta { font-size: 15px; font-weight: 500; }
.w-topic { font-family: var(--f-display); font-weight: 900; font-size: 21px; line-height: 1.3; }
.w-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.w-tags li { font-size: 13px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #F3E3C8; }
.w-enter {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
  border: 0; border-radius: 999px; padding: 10px 14px 10px 18px; background: var(--ink); color: #fff;
  font: 700 15px var(--f-body); cursor: pointer;
}
.w-enter[hidden] { display: none; }
.w-enter kbd { font: 600 12px var(--f-mono); padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.18); }
.w-pass { display: grid; gap: 6px; }
.w-pass[hidden] { display: none; }
.w-field { display: flex; gap: 8px; background: #fff; border: 1px solid #E3D3B8; border-radius: 12px; padding: 4px; }
.w-field:focus-within { border-color: var(--sky); }
.w-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 16px var(--f-body); padding: 7px 10px; outline: none; color: var(--ink); }
.w-field button { border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: 700 15px var(--f-body); padding: 0 18px; cursor: pointer; }
.w-field button:disabled { opacity: .6; }
.w-pass.wrong .w-field { animation: w-shake .45s ease; border-color: var(--m-red); }
@keyframes w-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.w-msg { font-size: 14px; font-weight: 500; color: var(--m-red); }
.w-msg:empty { display: none; }

@media (max-width: 600px) {
  .w-sign { font-size: 16px; padding: 3px 10px 4px; }
  .w-list { font-size: 13px; padding: 7px 11px; }
  .w-help { font-size: 13px; }
}
