/* ============================================================================
   PC 화면 정리 (2026-11-15 사용자) — 폰(html.is-phone)은 건드리지 않음 (phone.css 따로)
   · 체력·파워: 「글자 · 막대 · %」 한 줄로, 화면 맨 위에 붙임 → 도움말·작은 지도도 따라 올라감
   · 오른쪽 세로 메뉴는 위쪽으로 · 왼쪽 아래 이동 단추는 숨김 (W·A·S·D·땅 클릭으로 움직임)
   · 오른쪽 아래: 걷기 · 달리기 + 원형 단추 (js/core/pc_pad.js)
   · 📂 내 캐릭터 불러오기(만드는 사람만)는 왼쪽 맨 아래로
   ============================================================================ */
html.is-phone .pc-only, html.is-phone #pc-pad { display: none !important; }

html:not(.is-phone) #hud { padding: 6px 16px; }
html:not(.is-phone) .bars { width: 300px; }
html:not(.is-phone) .bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
html:not(.is-phone) .bar-wrap .bar-label { display: contents; }
html:not(.is-phone) .bar-wrap .bar-label span:first-child { order: 0; flex: none; width: 74px; white-space: nowrap; }
html:not(.is-phone) .bar-wrap .bar-bg { order: 1; flex: 1; height: 13px; }
html:not(.is-phone) .bar-wrap .bar-label span:last-child { order: 2; flex: none; width: 40px; text-align: right; }
html:not(.is-phone) #key-help { margin-top: 4px !important; }
html:not(.is-phone) #minimap-wrap { top: 106px; }

/* 오른쪽 위: 보석 · 무기 표시 아래로 세로 메뉴 */
html:not(.is-phone) #zoom-ctrl { top: 92px; transform: none; }

/* 왼쪽 아래 이동 단추 · 아래 줄의 점프·높이·구르기·주먹·발차기 단추는 숨김 → 원형 단추가 대신 */
html:not(.is-phone) .d-pad,
html:not(.is-phone) .act-pad,
html:not(.is-phone) .move-pad .btn-jump { display: none !important; }
html:not(.is-phone) #controls { left: auto; right: 108px; bottom: 14px; gap: 14px; align-items: flex-end; }
html:not(.is-phone) .move-pad { flex-direction: column; margin: 0 0 6px; gap: 8px; }
html:not(.is-phone) .move-pad button { min-width: 96px; }
/* 걷기·달리기 한 단추 + 걷기 자리에 자동/수동 (js/core/pc_movebtn.js, 2026-11-19) */
html:not(.is-phone) .move-pad [data-move="walk"] { display: none !important; }
#pc-auto-btn { display: none; }
html:not(.is-phone) #pc-auto-btn { display: flex; background: rgba(30, 41, 59, 0.88); border-color: #64748b; }
html:not(.is-phone) #pc-auto-btn.on { background: rgba(14, 116, 144, 0.92); border-color: #67e8f9; }
html:not(.is-phone) body.in-lobby #pc-auto-btn { display: none; }

/* 원형 단추: 가운데 둥근 판 + 위·아래·왼쪽·오른쪽 */
#pc-pad { position: relative; width: 168px; height: 168px; flex: none; pointer-events: auto; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,23,42,0.35) 0 30%, rgba(15,23,42,0.72) 31% 100%); border: 2px solid rgba(148,163,184,0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
#pc-pad button { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #475569; color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; user-select: none; }
#pc-pad button small { font-size: 10px; font-weight: 700; color: #e2e8f0; }
#pc-pad button:active, #pc-pad button.press { transform: scale(0.92); filter: brightness(1.25); }
#pc-pad .pp-up    { left: 55px; top: 4px;   background: rgba(5,150,105,0.92);  border-color: #34d399; }
#pc-pad .pp-down  { left: 55px; bottom: 4px; background: rgba(14,116,144,0.92); border-color: #67e8f9; }
#pc-pad .pp-left  { left: 4px;  top: 55px;  background: rgba(220,38,38,0.92);  border-color: #f87171; }
#pc-pad .pp-right { right: 4px; top: 55px;  background: rgba(37,99,235,0.92);  border-color: #60a5fa; }
#pc-pad .pp-up.big { background: rgba(124,58,237,0.95); border-color: #a78bfa; }

/* 📂 내 캐릭터 불러오기 (만드는 사람만 보임) → 왼쪽 맨 아래 */
html:not(.is-phone) .right-hud .glb-btn { position: fixed; left: 16px; bottom: 14px; z-index: 30; }
html:not(.is-phone) #dev-maps-btn { bottom: 52px; }
html:not(.is-phone) #fps-meter { bottom: 90px; }

/* 옷장: 떠 있던 👗 단추 대신 오른쪽 메뉴의 👗 옷장 · 옷 고르는 창은 메뉴 왼쪽에 */
html:not(.is-phone) #wardrobe-btn { display: none !important; }
html:not(.is-phone) #wardrobe-panel { right: 108px; top: 92px; }
html:not(.is-phone) #ckc-btn { display: none !important; }          /* 새 옷장 (map/closet.js) — 오른쪽 메뉴 👗 옷장으로 엶 */
html:not(.is-phone) #ckc { right: 108px; top: 16px; bottom: 16px; } /* 오른쪽 세로 메뉴를 가리지 않게 그 왼쪽에 */
