/* ใบ 179 — UX บนคอม (pc-ux.js) · ทุกกฎอยู่ใต้ html.pcui:not(.touch-ui) — จอสัมผัสไม่โดน · ?pcui=0 = ไม่มีคลาส pcui = แบบเดิม */

/* ── ป้ายคีย์มุมปุ่ม (#menu ⋯ + แถบหลัก #sysbar ลอก innerHTML จาก #menu) ── */
.pk-key { display: none; }
html.pcui:not(.touch-ui) body #hud :is(#sysbar button, #menu > button) > .pk-key {
  display: block; position: absolute; top: 3px; left: 3px; min-width: 14px; padding: 2px 3px; box-sizing: border-box;
  border-radius: 4px; background: #4b3a22e0; color: #fff3d0; box-shadow: 0 1px 0 #fff7df;
  font: 700 9.5px/1 var(--font, 'Mitr', sans-serif); text-align: center; letter-spacing: 0; pointer-events: none;
}
html.pcui:not(.touch-ui) body #hud #menu > button > .pk-key { top: 2px; left: 2px; }

/* ── tooltip ชื่อ + คีย์ (แทน title ของเบราว์เซอร์ระหว่างชี้) ── */
#pc-tip { position: fixed; z-index: var(--z-popup, 300); max-width: 260px; padding: 6px 9px; border-radius: 9px; pointer-events: none;
  background: linear-gradient(#fffaf0, #f7ead0); border: 1.5px solid #d7bb7b; box-shadow: 0 4px 12px #20160840; color: #4b2d17;
  font: 500 12.5px/1.35 var(--font, 'Mitr', sans-serif); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
#pc-tip[hidden] { display: none; }
#pc-tip b { font-weight: 600; }
#pc-tip kbd { padding: 2px 6px; border-radius: 5px; background: #4b3a22; color: #fff3d0; font: 700 11px/1.2 var(--font, 'Mitr', sans-serif); box-shadow: 0 1.5px 0 #c4a064; }
#pc-tip small { flex-basis: 100%; font-size: 11px; color: #7a6048; }

/* ── คอลัมน์ขวา: มินิแมพ → ปาร์ตี้ → หาปาร์ตี้ → ร่วมทาง (เรียง flex · ไม่มี top ตายตัว) ── */
#pc-rcol { display: contents; }
html.pcui:not(.touch-ui) body #hud #pc-rcol {
  display: flex; position: fixed; right: 6px; top: var(--rcol-top, 160px); z-index: 10; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none; transition: opacity .15s;
}
html.pcui:not(.touch-ui) body #hud #pc-rcol > * { position: relative !important; top: auto !important; right: auto !important; left: auto !important; bottom: auto !important; pointer-events: auto; }
html.pcui:not(.touch-ui) body #hud #pc-rcol > [hidden] { display: none !important; }
html.pcui:not(.touch-ui) body #hud #pc-rcol.rcol-under { opacity: 0; }
html.pcui:not(.touch-ui) body #hud #pc-rcol.rcol-under > * { pointer-events: none; }
