/* เหมืองผลึกใต้ทราย (mine-1115 · client/mine.js) — ป้าย #mine-hud กลางบน + ปุ่ม ⛏ บนจอสัมผัส
   จอสัมผัส: #mine-hud อยู่โซนบนกลาง (ui-root.js ZONES.tc) — ไฟล์นี้ไม่ตั้งตำแหน่งให้จอสัมผัส · คอม: ลอยกลางบนแบบป้ายตกปลา
   animation จำกัดรอบ (ไม่มี infinite/forwards — perf 4b) */
#mine-hud { display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
#mine-hud[hidden], #mine-hud.under-win { display: none !important; }
html:not(.touch-ui) #mine-hud { position: fixed; left: 50%; top: 132px; translate: -50% 0; z-index: var(--z-hud, 100); }
#mine-hud .mh-pill { pointer-events: auto; cursor: pointer; position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; max-width: min(92vw, 560px);
  padding: 5px 16px 7px; border-radius: 18px; background: rgba(46, 30, 58, .88); border: 1.5px solid #e8b64a; color: #f6ead2;
  font: 600 var(--fs-sm, 14px)/1.3 var(--font-body, inherit); text-shadow: 0 1px 2px #1c1024; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; }
html.touch-ui #mine-hud .mh-pill { max-width: min(48vw, 400px); }
#mine-hud .mh-t { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#mine-hud .mh-room { padding: 2px 12px; border-radius: 12px; background: rgba(46, 30, 58, .72); color: #e8dcc4; font: 600 var(--fs-xs, 12px)/1.3 var(--font-body, inherit); white-space: nowrap; max-width: min(92vw, 560px); overflow: hidden; text-overflow: ellipsis; }
#mine-hud .mh-room[hidden] { display: none; }
#mine-hud .mh-room.busy { background: rgba(120, 62, 30, .9); color: #ffe7b8; border: 1px solid #e8b64a; }
#mine-hud .mh-pill small { color: #f2c46d; font-weight: 600; }
#mine-hud .mh-pill small.mh-warn { color: #ffb4a0; }
#mine-hud .mh-bar { display: none; width: 160px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
#mine-hud .mh-pill.dig .mh-bar { display: block; }
#mine-hud .mh-bar b { display: block; height: 100%; background: linear-gradient(90deg, #c9a6ff, #e8b64a); transform-origin: left center; transform: scaleX(0); }
#mine-hud .mh-pill.spark { background: #e8b64a; color: #2b2010; text-shadow: none; font-size: var(--fs-body, 16px); animation: mh-pulse .3s ease-in-out 4 alternate; }
@keyframes mh-pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
/* จอสัมผัส: ปุ่มแดงกลายเป็นปุ่มจอบ (mine.js syncButton) — วงม่วงขอบทอง · ประกายขึ้น = ทองสว่าง "แตะ!" */
html.touch-ui #touch-acts.mine-mode [data-attack] { border-radius: 50%; background: radial-gradient(circle closest-side, #6d4e8a 0 78%, #e8b64a 80% 90%, transparent 92%); }
html.touch-ui #touch-acts.mine-mode [data-attack] img { padding: 16%; box-sizing: border-box; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
html.touch-ui #touch-acts.mine-mode[data-mine-spark="true"] [data-attack] { background: radial-gradient(circle closest-side, #f2c45a 0 78%, #fff3c4 80% 90%, transparent 92%); scale: 1.08; }
html.touch-ui #touch-acts.mine-mode[data-mine-spark="true"] [data-attack]::after { content: 'แตะ!'; position: absolute; left: 0; right: 0; bottom: 14%; text-align: center;
  font: 800 var(--fs-sm, 14px)/1 var(--font-head, inherit); color: #4a2a08; pointer-events: none; }
html[lang="en"].touch-ui #touch-acts.mine-mode[data-mine-spark="true"] [data-attack]::after { content: 'Tap!'; }
/* ไอคอนของแรร์ลอยบนหัว 7 วิ (mine.js badge · ป้าย CSS2D แบบป้ายผู้พิชิต) — กรอบสีตามระดับ แรร์ม่วง · สุดยอดทอง · เด้งเข้าครั้งเดียว (ไม่มี infinite) */
.mn-badge { pointer-events: none; }
.mn-lift { display: flex; justify-content: center; }
.mn-b { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(46, 30, 58, .9); border: 2px solid #c9a6ff;
  color: #fff4dc; font: 800 var(--fs-sm, 14px)/1 var(--font-head, inherit); text-shadow: 0 1px 2px #1c1024; box-shadow: 0 0 0 3px rgba(201, 166, 255, .25), 0 3px 10px rgba(0, 0, 0, .3);
  animation: mn-pop .35s cubic-bezier(.3, 1.6, .5, 1) 1; white-space: nowrap; }
.mn-b img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 70%); }
.mn-b i { font-style: normal; color: #ffe39a; }
.mn-badge.t4 .mn-b { border-color: #ffd76a; background: rgba(70, 46, 12, .92); box-shadow: 0 0 0 4px rgba(255, 215, 106, .35), 0 0 18px rgba(255, 215, 106, .55); }
.mn-badge.t4 .mn-b img { width: 36px; height: 36px; }
@keyframes mn-pop { from { transform: scale(.4) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
