/* 三國天命 v9.0 — 套用 UI 圖集 (assets/img/ui9)
 * 血條/魔力條：紅色晶體、青色晶體 + 鐵條軌道
 * 面板：石紋邊框、金屬標題牌、金色按鈕、鐵製格子、紅點/鎖頭徽章、拱形變身卡、星級怪物卡、典籍、星盤、六角核心
 */
/* ---------------------------------------------------------------- 1. 血條 / 魔力條 */
body .pl-bar { background: url('../assets/img/ui9/bar_iron_tex.webp') 0 50% / auto 100% repeat-x, #0c0908 !important; }
body .pl-bar .bar-fill-hp {
  background: url('../assets/img/ui9/crystal_hp_tex.webp') 0 50% / auto 100% repeat-x, #8a1410 !important;
  box-shadow: inset 0 1px 0 rgba(255, 190, 170, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.45), inset -3px 0 5px rgba(255, 120, 90, 0.5) !important;
}
body .pl-bar .bar-fill-mp {
  background: url('../assets/img/ui9/crystal_mp_tex.webp') 0 50% / auto 100% repeat-x, #0f5f78 !important;
  box-shadow: inset 0 1px 0 rgba(190, 245, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.45), inset -3px 0 5px rgba(120, 230, 255, 0.5) !important;
}
.p6-mbar { background: url('../assets/img/ui9/bar_iron_tex.webp') 0 50% / auto 100% repeat-x, #0c0908; }
.p6-mbar i { background: url('../assets/img/ui9/crystal_hp_tex.webp') 0 50% / auto 100% repeat-x, #8a1410 !important; box-shadow: inset -3px 0 5px rgba(255, 120, 90, 0.5); }
.p6-mbar.mp i { background: url('../assets/img/ui9/crystal_mp_tex.webp') 0 50% / auto 100% repeat-x, #0f5f78 !important; box-shadow: inset -3px 0 5px rgba(120, 230, 255, 0.5); }

/* 頭像外框 */
body .pl-face-wrap { position: relative; }
body .pl-face-wrap::after { content: ''; position: absolute; inset: -9px; pointer-events: none; z-index: 1;
  background: url('../assets/img/ui9/ring_compass.webp') center / contain no-repeat; }
body .pl-level { z-index: 2; }
/* 小地圖外環 */
body #radar-panel .radar-ring { inset: -8px; box-shadow: none; background: url('../assets/img/ui9/ring_ornate.webp') center / contain no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 0 58%, #000 59%); mask: radial-gradient(circle, transparent 0 58%, #000 59%); }

/* ---------------------------------------------------------------- 2. 快捷欄 / 技能格 */
body .qb-slot, body #skill-hotkey-drawer .hk-slot {
  background: url('../assets/img/ui9/slot_iron.webp') center / 100% 100% no-repeat, #0a0807 !important;
}

/* ---------------------------------------------------------------- 3. 面板 */
.p6.open { background: linear-gradient(rgba(6, 5, 4, 0.82), rgba(4, 3, 3, 0.94)), url('../assets/img/ui9/stone_tex.webp') center / 320px repeat, #070605; }
.p6side.open { background-image: linear-gradient(rgba(8, 7, 6, 0.86), rgba(5, 4, 3, 0.95)), url('../assets/img/ui9/stone_tex.webp'); background-size: auto, 300px; }
.p6-card {
  border: 18px solid transparent;
  border-image: url('../assets/img/ui9/panel_stone.webp') 64 fill / 18px / 0 stretch;
  background: rgba(14, 12, 10, 0.55);
  padding: 4px;
}
.p6-card h3 { margin: -4px -4px 10px; padding: 8px 14px 9px;
  background: url('../assets/img/ui9/plate_olive.webp') center / 100% 100% no-repeat; border-bottom: none; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.p6-btn.gold { border: none; border-radius: 0; padding: 9px 20px;
  background: url('../assets/img/ui9/btn_gold.webp') center / 100% 100% no-repeat; color: #fff6dc; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.p6-btn.gold:hover:not(:disabled) { filter: none; background-image: url('../assets/img/ui9/btn_gold_glow.webp'); }
/* 道具 / 裝備 / 技能格 */
.p6-cell, .eq-slot, .sk-cell { background: url('../assets/img/ui9/slot_iron.webp') center / 100% 100% no-repeat, #0a0908; }
.p6-cell::before { border-color: transparent; }
/* 紅點、鎖頭 */
i.dot, em.dot { width: 13px; height: 13px; top: -4px; right: -4px; background: url('../assets/img/ui9/red_dot.webp') center / 160% no-repeat; box-shadow: none; }
i.lk { width: 15px; height: 22px; right: -4px; bottom: -4px; transform: none; border: none; background: url('../assets/img/ui9/lock_badge.webp') center / contain no-repeat; }
i.lk::after { display: none; }
/* 人物面板：緞帶、展示台 */
.ch-ribbon span { background: url('../assets/img/ui9/ribbon_red.webp') center / 100% 100% no-repeat; border: none; padding: 7px 46px 9px; color: #fbe7c2; text-shadow: 0 1px 3px #000; }
.ch-stage, .ss-model { background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55)), url('../assets/img/ui9/hall_bg.webp') center 70% / cover no-repeat; }
.kd-model { background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)), url('../assets/img/ui9/hall_bg.webp') center 75% / cover no-repeat; }
/* 屬性六角：核心寶珠、節點符文盤 */
.hx-core { background: url('../assets/img/ui9/orb_gold.webp') center / 100% 100% no-repeat; border: none; box-shadow: 0 0 14px rgba(240, 169, 72, 0.35); }
.hx-core small, .hx-core b { text-shadow: 0 0 4px #000, 0 1px 2px #000; }
.hx-core b { color: #fff1cc; }
.hx-node { background: url('../assets/img/ui9/disc_swirl.webp') center / 100% 100% no-repeat; border: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6); }
.hx-node small, .hx-node b { text-shadow: 0 0 4px #000, 0 0 2px #000, 0 1px 2px #000; }
.hx-node b { color: #ffe2a8; }
.hx-node:hover, .hx-node.on { box-shadow: 0 0 0 2px #000, 0 0 16px rgba(243, 220, 160, 0.6); }
/* 屬性點數盤：星盤 */
.al-num { border: none; background: radial-gradient(circle, rgba(0, 0, 0, 0.65) 0 34%, transparent 36%), url('../assets/img/ui9/zodiac.webp') center / 100% 100% no-repeat; }
/* 變身卡：拱形框 */
.mo-card { border: none; border-radius: 0; box-shadow: none;
  background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--tc) 26%, transparent), transparent 62%), url('../assets/img/ui9/arch_card.webp') center / 100% 100% no-repeat; }
.mo-card.sel { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tc) 80%, #fff)); }
/* 怪物卡：星級框 */
.kn-card { border: none; background: url('../assets/img/ui9/card_star.webp') center / 100% 100% no-repeat; }
.kn-card.sel { filter: drop-shadow(0 0 6px rgba(243, 220, 160, 0.7)); }
/* 任務典籍 */
.bk-book { border: none; border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  background: linear-gradient(rgba(14, 11, 8, 0.66), rgba(14, 11, 8, 0.66)), url('../assets/img/ui9/book.webp') center / 100% 100% no-repeat; }
/* 排行榜前三名：金 / 銀 / 銅 月桂 */
.laurel { border: none; border-radius: 0; background: center / contain no-repeat; text-shadow: 0 0 3px #000, 0 1px 2px #000; }
.laurel.l1 { background-image: url('../assets/img/ui9/laurel_gold.webp'); color: #fff1b0; }
.laurel.l2 { background-image: url('../assets/img/ui9/laurel_silver.webp'); color: #f1f5f9; }
.laurel.l3 { background-image: url('../assets/img/ui9/laurel_bronze.webp'); color: #fcd9b8; }
/* 公會 / 聯盟面板：龍紋盾徽 */
.p6[data-v9='guild'] .p6-title img, .p6side[data-v9='guild'] .p6-title img { content: url('../assets/img/ui9/dragon_shield.webp'); width: 30px; height: 34px; filter: none; }
