/* =====================================================================
   로비 스테이지 · 메인 디오라마 · 교정 안내도 스타일 (v3)
   스테이지 안의 모든 크기는 --u (스테이지 가상 단위 1칸) 기준입니다.
   ===================================================================== */

/* ---------- 스테이지 ---------- */
.lobby-view { padding-top: 24px; }
.stage-wrap { container-type: inline-size; }
.stage {
  --u: calc(100cqw / var(--W));
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--ink), 6px 8px 0 5px rgba(0,0,0,.45);
  background: #2a2230; user-select: none; -webkit-user-select: none;
}
.stage img { display: block; width: 100%; height: auto; pointer-events: none; }

/* 벽: 작은 다마스크 타일 + 몰딩 + 징두리 판벽 */
.stage__wall {
  position: absolute; left: 0; right: 0; top: calc(var(--u) * var(--wallTop)); height: calc(var(--u) * (var(--floorY) - var(--wallTop)));
  background-color: #4a1f2b;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(200,169,120,.16) calc(var(--u) * 3), transparent calc(var(--u) * 3.5)),
    linear-gradient(45deg, rgba(0,0,0,.08) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.08) 75%),
    linear-gradient(45deg, rgba(0,0,0,.08) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.08) 75%);
  background-size: calc(var(--u) * 32) calc(var(--u) * 32);
  background-position: 0 0, 0 0, calc(var(--u) * 16) calc(var(--u) * 16);
}
.stage__molding { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * 12); background: #6e4a3e; border-bottom: calc(var(--u) * 3) solid var(--gold); }
.stage__wainscot {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background-color: #3b2620; border-top: calc(var(--u) * 4) solid #8a6a3e;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.3) 0 calc(var(--u) * 2), transparent calc(var(--u) * 2) calc(var(--u) * 48));
}
/* 바닥: 48단위 타일 체커보드 + 레드 카펫 */
.stage__floor {
  position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--u) * var(--floorY));
  background-color: #2e2533;
  background-image: conic-gradient(#3f3245 25%, #2e2533 0 50%, #3f3245 0 75%, #2e2533 0);
  background-size: calc(var(--u) * 96) calc(var(--u) * 96);
  box-shadow: inset 0 calc(var(--u) * 10) calc(var(--u) * 8) rgba(0,0,0,.4);
}
.stage__floor::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--u) * 192); transform: translateX(-50%);
  background: #622b3b; border-left: calc(var(--u) * 4) solid var(--gold); border-right: calc(var(--u) * 4) solid var(--gold);
  box-shadow: inset calc(var(--u) * 8) 0 0 #7d3a4e, inset calc(var(--u) * -8) 0 0 #7d3a4e;
}
.stage__hud {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--u) * var(--wallTop)); z-index: 950;
  display: flex; align-items: center; gap: 10px; padding: 0 calc(var(--u) * 16);
  background: var(--ink); border-bottom: 2px solid var(--gold); color: var(--ivory);
  font-size: clamp(11px, calc(var(--u) * 17), 15px);
}
.stage__hud .hud__school { font-family: var(--f-title); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__hud .hud__loc { margin-left: auto; color: var(--gold); border: 1px solid var(--gold); padding: 0 8px; white-space: nowrap; font-family: var(--f-pixel); }
.stage__hud img.px { width: auto; height: clamp(18px, calc(var(--u) * 30), 30px); }

/* ---------- 배치 공통 ---------- */
.obj, .actor, .door3 {
  position: absolute; z-index: var(--z, 5);
  left: calc(var(--u) * (var(--x) - var(--w) * var(--ax, .5)));
  bottom: calc(var(--u) * (var(--H) - var(--b)));
  width: calc(var(--u) * var(--w));
}
.obj--wall { z-index: 2; }
button.obj, button.actor, .spot { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; font: inherit; }
.obj:not(.obj--wall)::before, .actor::before {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: calc(var(--u) * -4); height: calc(var(--u) * 10); z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); pointer-events: none;
}
.obj--desk { pointer-events: none; }
.obj--desk .spot { pointer-events: auto; }
.obj--desk::before { left: 2%; right: 2%; height: calc(var(--u) * 16); bottom: calc(var(--u) * -6); }

/* 클릭 가능 표시 (정지 상태의 작은 금색 마름모) */
.hot-mark { position: absolute; left: 50%; top: -2px; width: 8px; height: 8px; transform: translate(-50%, -100%) rotate(45deg); background: var(--gold); border: 1px solid var(--ink); opacity: .75; pointer-events: none; }
.obj--hot .hot-mark { top: 0; }
.obj--hot:hover img, .obj--hot:focus-visible img { filter: brightness(1.15); }
.obj--hot:hover .hot-mark, .spot:hover .hot-mark, .spot:focus-visible .hot-mark, .obj--hot:focus-visible .hot-mark { opacity: 1; background: #F2C14E; }
.spot { position: absolute; z-index: 3; border-radius: 4px; }
.spot--desk .hot-mark { left: 30%; top: 30%; }
.spot--cart .hot-mark { left: 40%; top: 18%; }
.spot:hover, .spot:focus-visible { outline: 2px dashed rgba(242,193,78,.7); outline-offset: -2px; }
.spot--desk:hover, .spot--desk:focus-visible { outline-color: rgba(242,193,78,.4); }
.spot::after, .obj--hot::after {
  content: attr(aria-label); position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -8px);
  white-space: nowrap; font-size: 12px; color: var(--ivory); background: var(--ink); border: 1px solid var(--gold);
  padding: 1px 7px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 20;
}
.spot:hover::after, .spot:focus-visible::after, .obj--hot:hover::after, .obj--hot:focus-visible::after { opacity: 1; }
.spot--desk::after { bottom: auto; top: 4%; }
.obj--hot:focus-visible, .spot:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }

/* 호출 종: '딩-' 표시 */
.desk-ding { position: absolute; z-index: 4; transform: translate(-50%, -120%); font-family: var(--f-pixel); font-weight: 700; font-size: clamp(11px, calc(var(--u) * 16), 15px); color: #F2C14E; text-shadow: 1px 1px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); pointer-events: none; white-space: nowrap; }
.desk-ding.on { animation: ding .8s ease-out forwards; }
@keyframes ding { 0% { opacity: 0; transform: translate(-50%, -80%); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -220%); } }

/* ---------- 도트 문 ---------- */
.door3 { z-index: 3; display: block; text-decoration: none; transition: transform .12s, filter .12s; transform-origin: 50% 100%; }
.door3 img { filter: drop-shadow(0 calc(var(--u) * 3) 0 rgba(0,0,0,.35)); }
.door3:hover, .door3:focus-visible { transform: scale(1.04); filter: brightness(1.12); }
.door3:focus-visible { outline: 2px solid #F2C14E; outline-offset: 3px; }
.door3.is-enter { transform: scale(.97); filter: brightness(1.35); }
.door3__plate {
  position: absolute; left: 50%; bottom: calc(100% + var(--u) * 6); transform: translateX(-50%); z-index: 4; white-space: nowrap;
  font-weight: 700; font-size: clamp(11px, calc(var(--u) * 15), 14px); line-height: 1.3; color: var(--ivory);
  background: var(--ink); border: 2px solid var(--gold); padding: 1px 8px;
}
.door3:hover .door3__plate, .door3:focus-visible .door3__plate { background: var(--wine); }
.stage--mobile .door3__plate { padding: 0 4px; border-width: 1px; }
.door3__spark { position: absolute; right: 10%; top: 26%; width: 8px; height: 8px; background: #F2C14E; transform: rotate(45deg) scale(0); opacity: 0; box-shadow: 0 0 0 1px #fff6cf; pointer-events: none; }
.door3:hover .door3__spark, .door3:focus-visible .door3__spark { animation: twinkle 1.4s ease-out infinite; }
@keyframes twinkle { 0% { opacity: 0; transform: rotate(45deg) scale(0); } 30% { opacity: 1; transform: rotate(45deg) scale(1); } 100% { opacity: 0; transform: rotate(45deg) scale(.3); } }

/* ---------- NPC ---------- */
.actor { cursor: pointer; }
.actor:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }
.actor:hover img, .actor:focus-visible img { filter: brightness(1.08); }
.actor--guide.is-idle img { animation: idle-bob var(--bob, 2.8s) steps(1) infinite; }
@keyframes idle-bob { 0%, 70% { transform: translateY(0); } 71%, 100% { transform: translateY(calc(var(--u) * -1.5)); } }
.emote { position: absolute; left: 34%; bottom: 94%; width: calc(var(--u) * 40); min-width: 26px; z-index: 10; animation: pop-e .2s ease-out; }
.bubble2 {
  position: absolute; left: 50%; bottom: 96%; transform: translateX(-35%); z-index: 10; white-space: nowrap;
  font-size: clamp(11px, calc(var(--u) * 15), 14px); line-height: 1.4; color: #2A2233; font-weight: 500;
  background: #fffcf4; border: 2px solid var(--ink); padding: 2px 8px; box-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
.bubble2::after { content: ""; position: absolute; left: 30%; top: 100%; border: 5px solid transparent; border-top-color: var(--ink); }
.stage--mobile .actor--cleaner .bubble2 { transform: translateX(-12%); }
.stage--mobile .actor--guide .bubble2 { transform: translateX(-80%); }
@keyframes pop-e { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 대화창 ---------- */
.dlg {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  background: var(--paper); color: #2A2233; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--gold), 4px 4px 0 var(--seal); padding: 10px 14px;
}
.stage .dlg { position: absolute; z-index: 960; left: calc(var(--u) * 18); right: calc(var(--u) * 18); bottom: calc(var(--u) * 14); min-height: calc(var(--u) * 116); }
.stage-wrap + .dlg { margin-top: 12px; }
.dlg__face { width: 64px; height: 64px; background: #3b2f4a; border: 2px solid var(--ink); overflow: hidden; position: relative; }
.dlg__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .dlg__face { width: clamp(52px, calc(var(--u) * 84), 84px); height: clamp(52px, calc(var(--u) * 84), 84px); }
.dlg__name { display: inline-block; font-family: var(--f-pixel); font-weight: 700; font-size: 13px; color: var(--ivory); background: var(--wine); padding: 0 8px; margin-bottom: 4px; }
.dlg__text { margin: 0; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.55; min-height: 2.6em; }
.dlg__opts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; min-height: 32px; }
.dlg__opt { background: none; border: 0; padding: 4px 0; min-height: 32px; font-family: var(--f-pixel); font-size: clamp(13px, 1.4vw, 15px); color: var(--wine); text-decoration: none; cursor: pointer; }
.dlg__opt:hover, .dlg__opt:focus-visible { text-decoration: underline; color: #3b0f1c; }
.dlg__hint { font-size: 13px; color: #6E5E58; padding: 4px 0; }
.lobby-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.board-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.board-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; border-bottom: 1px dashed #b9a98f; padding-bottom: 6px; }
.board-list b { color: var(--wine); }
.board-list span { font-size: 13px; }
.board-list a { grid-column: 1 / -1; font-size: 13px; color: var(--wine); }
@media (max-width: 640px) { .dlg { padding: 8px 10px; gap: 8px; } .dlg__opts { gap: 0 12px; } }

/* =====================================================================
   메인 입구 디오라마 (가상 단위 400×380, --d)
   ===================================================================== */
.home__stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.dio-wrap { container-type: inline-size; width: min(470px, 100%); margin-left: auto; }
.diorama {
  --d: calc(100cqw / 400); --H: 380;
  position: relative; width: 100%; aspect-ratio: 400 / 380; overflow: hidden; isolation: isolate;
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--ink), 5px 6px 0 5px rgba(0,0,0,.4);
  background: #241a2e; background-size: cover; background-position: center bottom;
}
.diorama img { display: block; width: 100%; height: auto; pointer-events: none; }
.diorama[data-bg] > :not(.dio__npc):not(.dio__bldg):not(.dio__sparks) { display: none; }
.diorama[data-bg] .dio__bldg img { opacity: 0; }
.dio__sky { position: absolute; inset: 0 0 45% 0; background: linear-gradient(#1b1424, #3a2740 75%, #563a4c); }
.dio__sky i { position: absolute; width: calc(var(--d) * 3); height: calc(var(--d) * 3); background: #e9dfcf; opacity: .6; }
.dio__sky i:nth-child(1) { left: 8%; top: 9%; } .dio__sky i:nth-child(2) { left: 24%; top: 4%; } .dio__sky i:nth-child(3) { right: 10%; top: 7%; }
.dio__sky i:nth-child(4) { right: 30%; top: 14%; opacity: .4; } .dio__sky i:nth-child(5) { left: 44%; top: 3%; opacity: .35; }
.dio__ground { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--d) * 214);
  background-color: #3f5a3a; background-image: conic-gradient(#466441 25%, #3f5a3a 0 50%, #466441 0 75%, #3f5a3a 0); background-size: calc(var(--d) * 32) calc(var(--d) * 32);
  border-top: calc(var(--d) * 2) solid #2c3d29; }
.dio__path { position: absolute; left: 50%; bottom: 0; top: calc(var(--d) * 230); width: calc(var(--d) * 150); transform: translateX(-50%);
  background: #b8a888; clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 calc(var(--d) * 2), transparent calc(var(--d) * 2) calc(var(--d) * 16)); }
.dio__hedge { position: absolute; bottom: calc(var(--d) * 92); width: calc(var(--d) * 90); height: calc(var(--d) * 22); background: #2f4a2c; border: calc(var(--d) * 2) solid #1f2f1d; border-radius: calc(var(--d) * 10); box-shadow: inset 0 calc(var(--d) * 4) 0 #4d7046; }
.dio__hedge--l { left: calc(var(--d) * 8); } .dio__hedge--r { right: calc(var(--d) * 8); }
.dio__bldg, .dio__prop, .dio__npc {
  position: absolute; left: calc(var(--d) * (var(--x) - var(--w) * var(--ax, .5))); bottom: calc(var(--d) * (var(--H) - var(--b)));
  width: calc(var(--d) * var(--w));
}
.dio__bldg { z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; transition: filter .15s, transform .15s; transform-origin: 50% 100%; }
.dio__bldg:hover, .dio__bldg:focus-visible { filter: brightness(1.12); transform: scale(1.02); }
.dio__bldg:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }
.dio__prop { z-index: 3; }
.dio__npc { z-index: 5; background: none; border: 0; padding: 0; cursor: pointer; }
.dio__npc::before { content: ""; position: absolute; left: 15%; right: 15%; bottom: calc(var(--d) * -3); height: calc(var(--d) * 7); z-index: -1; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.dio__npc:hover img, .dio__npc:focus-visible img { filter: brightness(1.1); }
.dio__npc:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }
.dio__npc .bubble2 { transform: translateX(-50%); }
#dio-maid2 .bubble2 { transform: translateX(-30%); }
.dio__sign { position: absolute; left: calc(var(--d) * 10); top: calc(var(--d) * 10); font-family: var(--f-latin); font-size: clamp(9px, calc(var(--d) * 11), 12px); letter-spacing: .2em; color: var(--gold); border: 1px solid var(--gold); padding: 1px 6px; background: rgba(23,20,28,.7); }
.dio__sparks i { position: absolute; width: calc(var(--d) * 6); height: calc(var(--d) * 6); background: #F2C14E; transform: rotate(45deg) scale(0); opacity: 0; z-index: 8; box-shadow: 0 0 0 1px #fff6cf; pointer-events: none; }
.dio__sparks i:nth-child(1) { left: 50%; top: 10%; } .dio__sparks i:nth-child(2) { left: 26%; top: 34%; } .dio__sparks i:nth-child(3) { right: 24%; top: 30%; }
.dio__sparks i.on { animation: twinkle 1.2s ease-out; }
@media (max-width: 900px) { .home__stage { grid-template-columns: 1fr; } .dio-wrap { margin: 8px auto 0; width: min(400px, 100%); } }

/* =====================================================================
   교정 안내도 (월드맵)
   ===================================================================== */
.worldmap {
  --m: calc(100cqw / var(--W));
  position: relative; width: 100%; overflow: hidden; isolation: isolate; aspect-ratio: auto;
  border: 3px solid var(--ink); box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--ink);
  background-color: #496643;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.07) calc(var(--m) * 1.5), transparent calc(var(--m) * 2)),
    conic-gradient(#4f6e48 25%, #496643 0 50%, #4f6e48 0 75%, #496643 0);
  background-size: calc(var(--m) * 22) calc(var(--m) * 22), calc(var(--m) * 64) calc(var(--m) * 64);
}
.map-wrap { container-type: inline-size; }
.worldmap::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 calc(var(--m) * 10) #2f4a2c, inset 0 0 0 calc(var(--m) * 13) #1f2f1d; }
.wm-paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.wm-paths path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wm-paths .edge { stroke: #6b5a3e; stroke-width: 34; }
.wm-paths .road { stroke: #c9b48a; stroke-width: 26; }
.wm-paths .stones { stroke: #b29d74; stroke-width: 26; stroke-dasharray: 3 15; }
.wm-plaza { position: absolute; z-index: 1; left: calc(var(--m) * (var(--x) - var(--r))); top: calc(var(--m) * (var(--y) - var(--r))); width: calc(var(--m) * var(--r) * 2); aspect-ratio: 1;
  border-radius: 50%; background: #d6c7a4; border: calc(var(--m) * 4) solid #6b5a3e; box-shadow: inset 0 0 0 calc(var(--m) * 6) #c9b48a; display: grid; place-items: center; }
.wm-plaza img { width: 78%; height: auto; display: block; }
.wm-pond { position: absolute; z-index: 1; left: calc(var(--m) * (var(--x) - var(--pw) / 2)); top: calc(var(--m) * (var(--y) - var(--ph) / 2)); width: calc(var(--m) * var(--pw)); height: calc(var(--m) * var(--ph));
  background: #6aa0b5; border: calc(var(--m) * 4) solid #3f6170; border-radius: 45% 55% 50% 50%; box-shadow: inset calc(var(--m) * 8) calc(var(--m) * 6) 0 #8fc6e0; }
.wm-tree { position: absolute; z-index: var(--z); left: calc(var(--m) * (var(--x) - var(--s))); top: calc(var(--m) * (var(--y) - var(--s) * 2.2)); width: calc(var(--m) * var(--s) * 2); height: calc(var(--m) * var(--s) * 2.2); pointer-events: none; }
.wm-tree::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80%; border-radius: 50% 50% 46% 46%; background: #2f5a2c; border: calc(var(--m) * 2.5) solid #1c331a; box-shadow: inset calc(var(--m) * -6) calc(var(--m) * -6) 0 #244722, inset calc(var(--m) * 6) calc(var(--m) * 6) 0 #4b7a42; }
.wm-tree::after { content: ""; position: absolute; left: 42%; width: 16%; bottom: 0; height: 26%; background: #6e4a3e; border: calc(var(--m) * 2) solid #3b2620; }
.wm-flower { position: absolute; z-index: 1; left: calc(var(--m) * (var(--x) - 16)); top: calc(var(--m) * (var(--y) - 8)); width: calc(var(--m) * 32); height: calc(var(--m) * 16); pointer-events: none;
  background: radial-gradient(circle, #f7a8bd calc(var(--m) * 2.5), #3f6a3a calc(var(--m) * 3)) 0 0 / calc(var(--m) * 10) calc(var(--m) * 8); border-radius: calc(var(--m) * 6); border: calc(var(--m) * 2) solid #284a25; }
.wm-sign { position: absolute; z-index: 2; left: calc(var(--m) * (var(--x) - 22)); top: calc(var(--m) * (var(--y) - 50)); width: calc(var(--m) * 44); pointer-events: none; }
.wm-sign img { width: 100%; display: block; }
.wm-gate { position: absolute; z-index: 3; left: calc(var(--m) * var(--x)); top: calc(var(--m) * var(--y)); transform: translate(-50%, -100%); font-size: 12px; font-weight: 700; color: var(--ivory); background: var(--wine); border: 2px solid var(--ink); padding: 0 8px; pointer-events: none; }
.wm-compass { position: absolute; z-index: 3; right: calc(var(--m) * 22); top: calc(var(--m) * 20); width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--f-latin); font-size: 12px; font-weight: 700; color: var(--ink); background: var(--ivory); border: 2px solid var(--ink); border-radius: 50%; pointer-events: none; }
.worldmap .map__node.wm-bldg {
  position: absolute; z-index: var(--z); transform: none;
  left: calc(var(--m) * (var(--x) - var(--w) / 2)); top: auto; bottom: calc(var(--m) * (var(--H) - var(--b)));
  width: calc(var(--m) * var(--w)); display: block; background: none; border: 0; padding: 0; cursor: pointer;
  transition: transform .15s, filter .15s; transform-origin: 50% 100%;
}
.worldmap .map__node.wm-bldg img { width: 100%; height: auto; display: block; filter: drop-shadow(0 calc(var(--m) * 4) 0 rgba(0,0,0,.25)); }
.worldmap .map__node.wm-bldg:hover, .worldmap .map__node.wm-bldg:focus-visible, .worldmap .map__node.wm-bldg.on { transform: scale(1.05); filter: brightness(1.1); z-index: 900; }
.worldmap .map__node.wm-bldg:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }
.worldmap .map__node .label {
  position: absolute; left: 50%; top: calc(100% + 2px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-body); font-weight: 700; font-size: clamp(11px, calc(var(--m) * 16), 14px); color: var(--ivory);
  background: rgba(23,20,28,.88); border: 1px solid var(--gold); padding: 0 7px; line-height: 1.5;
}
.worldmap .map__node.on .label, .worldmap .map__node:hover .label { background: var(--wine); }
.worldmap .map__tip { z-index: 1000; }

/* 대련장 (CSS 야외 훈련장) */
.worldmap .map__node.wm-arena { position: absolute; z-index: 2; transform: none; left: calc(var(--m) * (var(--x) - var(--w) / 2)); top: auto; bottom: calc(var(--m) * (var(--H) - var(--b))); width: calc(var(--m) * var(--w)); height: calc(var(--m) * var(--h)); display: block; background: none; border: 0; padding: 0; cursor: pointer; transition: transform .15s, filter .15s; }
.wm-arena__field { position: absolute; inset: 0; background: #b48c5e; border: calc(var(--m) * 4) solid #5a3a2c; box-shadow: inset 0 0 0 calc(var(--m) * 3) #d8b98a, 0 calc(var(--m) * 4) 0 rgba(0,0,0,.25);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--m) * 14), rgba(0,0,0,.08) calc(var(--m) * 14) calc(var(--m) * 16)); }
.wm-arena__field i { position: absolute; bottom: 22%; width: calc(var(--m) * 10); height: calc(var(--m) * 26); background: #c9a36c; border: calc(var(--m) * 2) solid #3b2620; border-radius: 40% 40% 0 0; }
.wm-arena__field i::before { content: ""; position: absolute; left: -70%; right: -70%; top: 26%; height: calc(var(--m) * 4); background: #8a6a3e; border: 1px solid #3b2620; }
.wm-arena__field i:nth-child(1) { left: 20%; } .wm-arena__field i:nth-child(2) { left: 46%; } .wm-arena__field i:nth-child(3) { left: 72%; }
.worldmap .map__node.wm-arena:hover, .worldmap .map__node.wm-arena:focus-visible, .worldmap .map__node.wm-arena.on { transform: scale(1.05); filter: brightness(1.1); z-index: 900; }
.worldmap .map__node.wm-arena:focus-visible { outline: 2px solid #F2C14E; outline-offset: 2px; }

/* =====================================================================
   특별 제도 · 행사 게시판 (아카데미 소개 페이지)
   ===================================================================== */
.board {
  position: relative; padding: 26px 22px 22px; border: 0; border-radius: 6px;
  background-color: #9c7a52;
  background-image: radial-gradient(circle, rgba(0,0,0,.12) 1px, transparent 1.5px), radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.5px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  box-shadow: 0 0 0 8px #5a3a2c, 0 0 0 10px var(--gold), 0 0 0 13px var(--ink), 6px 8px 0 13px rgba(0,0,0,.35);
  margin: 14px;
}
.board::before {
  content: "IMPERIAL NOTICE BOARD"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-latin); font-size: 11px; letter-spacing: .2em; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); padding: 1px 12px;
}
.posters { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: stretch; }
.poster, .poster:nth-child(even) {
  position: relative; border: 0; text-align: left; color: #2A2233; padding: 18px 16px 14px; min-height: 0; height: 100%;
  display: flex; flex-direction: column; gap: 6px; transform: rotate(-.6deg);
  background: #fbf4e4; box-shadow: 2px 3px 0 rgba(0,0,0,.28);
  background-image: repeating-linear-gradient(transparent 0 23px, rgba(98,43,59,.08) 23px 24px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.poster:nth-child(even) { transform: rotate(.6deg); background-color: #f4eaf3; }
.poster::after { content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; background: linear-gradient(135deg, #d9c9a8 50%, transparent 50%); }
.poster:hover, .poster:focus-visible { transform: rotate(0) translateY(-3px); }
.poster .pin { position: absolute; left: 50%; top: 6px; margin: 0; width: 12px; height: 12px; transform: translateX(-50%); background: var(--pink); border: 2px solid var(--ink); box-shadow: inset 2px 2px 0 #f7c3cd; }
.poster h3 { color: var(--wine); font-size: 19px; margin: 2px 0 0; }
.poster p { font-size: 14px; margin: 0; }
.poster .more { margin-top: auto; padding-top: 6px; font-family: var(--f-pixel); font-size: 13px; color: var(--wine); border-top: 1px dashed #c9b48a; }

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  .actor--guide.is-idle img, .door3__spark, .dio__sparks i { animation: none !important; }
}
body.reduce-motion .actor--guide.is-idle img, body.reduce-motion .door3__spark, body.reduce-motion .dio__sparks i { animation: none !important; }
