/* ============================================================================
 * SROWeb HUD skin — HP/MP (top-left) + skill bar (bottom center)
 *
 * Uses the live DOM:
 *   .char-frame .vitals .k-bar[data-kind=hp|mp]
 *   .bottom-bar .bar-tray .slot-row / .k-xp-strip / .sp-row
 *
 * So HP, MP, XP, SP and skill icons stay live. Only the chrome/art changes.
 * Source PNGs: referans PNG arşivi -> client/assets/ui/sroweb/
 * ========================================================================== */

/* ---------------------------------------------------------------- HP / MP */
.hud-root .char-frame.k-panel {
  top: 8px !important;
  left: 8px !important;
  width: 212px !important;
  height: 70px !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-image: none !important;
  border-radius: 0 !important;
  background: url("/assets/ui/sroweb/pmi_frame.png") 0 0 / 212px 70px no-repeat !important;
  box-shadow: none !important;
  overflow: visible !important;
  image-rendering: pixelated;
}

.hud-root .char-frame.k-panel::before,
.hud-root .char-frame.k-panel::after {
  content: none !important;
}

.hud-root .char-frame > .k-portrait {
  position: absolute !important;
  left: 8px !important;
  top: 11px !important;
  width: 46px !important;
  height: 46px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  z-index: 1;
}

.hud-root .char-frame > .k-portrait img {
  border-radius: 50% !important;
  object-fit: cover !important;
}

.hud-root .char-frame .char-masteries {
  display: none !important;
}

.hud-root .char-frame .vitals {
  position: absolute !important;
  inset: 0 !important;
  width: 212px !important;
  height: 70px !important;
  min-width: 0 !important;
}

.hud-root .char-frame .who {
  display: none !important;
}

.hud-root .char-frame .k-bar {
  position: absolute !important;
  left: 74px !important;
  width: 124px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.hud-root .char-frame .k-bar[data-kind="hp"] { top: 19px !important; }
.hud-root .char-frame .k-bar[data-kind="mp"] { top: 39px !important; }

.hud-root .char-frame .k-bar .k-bar-fill {
  border-radius: 0 !important;
  background-repeat: no-repeat !important;
  background-size: 124px 12px !important;
}

.hud-root .char-frame .k-bar[data-kind="hp"] .k-bar-fill {
  background: url("/assets/ui/sroweb/pmi_hp.png") 0 0 / 124px 12px no-repeat !important;
}

.hud-root .char-frame .k-bar[data-kind="mp"] .k-bar-fill {
  background: url("/assets/ui/sroweb/pmi_mp.png") 0 0 / 124px 12px no-repeat !important;
}

.hud-root .char-frame .k-bar .k-bar-text {
  display: none !important;
}

/* ------------------------------------------------------------- SKILL BAR */
/* Exact SROWeb underbar geometry:
   full 952px = 76px deco + 800px main + 76px deco
   main bar contents (relative to main): M 209,17 / skills 261,18 step 36 /
   page 623 / menu 681 / quick icons 659..784 / xp 20,59 / sp 15,26. */

.hud-root .bottom-bar {
  width: 952px !important;
  height: 68px !important;
  display: block !important;
  gap: 0 !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
}

.hud-root .bottom-bar::before,
.hud-root .bottom-bar::after {
  content: "" !important;
  position: absolute !important;
  top: 4px !important;
  width: 76px !important;
  height: 64px !important;
  background-size: 76px 64px !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  z-index: 0;
}

.hud-root .bottom-bar::before {
  left: 0 !important;
  background-image: url("/assets/ui/sroweb/ub_new_deco_left.png") !important;
}

.hud-root .bottom-bar::after {
  right: 0 !important;
  background-image: url("/assets/ui/sroweb/ub_new_deco_right.png") !important;
}

.hud-root .bottom-bar .bar-tray {
  position: absolute !important;
  left: 76px !important;
  top: 0 !important;
  width: 800px !important;
  height: 68px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/ui/sroweb/ub_new_mainbar2.png") 0 0 / 800px 68px no-repeat !important;
  box-shadow: none !important;
  display: block !important;
  overflow: visible !important;
  z-index: 1;
}

/* Hide the baked-in MENU art of the 800px texture; sroweb uses live buttons there. */
.hud-root .bottom-bar .bar-tray::after {
  content: "" !important;
  position: absolute !important;
  left: 681px !important;
  top: 0 !important;
  width: 119px !important;
  height: 68px !important;
  background: #0b0a08 !important;
  z-index: 1;
  pointer-events: none !important;
}

.hud-root .bottom-bar .slot-row {
  position: absolute !important;
  left: 209px !important;
  top: 18px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  z-index: 2;
}

.hud-root .bottom-bar .slot-row .k-slot {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.hud-root .bottom-bar .slot-row .k-slot:first-child {
  margin-right: 0 !important;
}

.hud-root .bottom-bar .slot-row .k-slot:hover:not(:disabled) {
  border-color: var(--k-gold) !important;
}

.hud-root .bottom-bar .slot-row .k-slot img {
  inset: 3px !important;
  width: calc(100% - 6px) !important;
  height: calc(100% - 6px) !important;
  object-fit: cover !important;
}

.hud-root .bottom-bar .slot-row .k-slot-key {
  display: none !important;
}

.hud-root .bottom-bar .slot-row-sep {
  width: 20px !important;
  margin: 0 !important;
  background: transparent !important;
}

.hud-root .bottom-bar .page-col {
  position: absolute !important;
  left: 623px !important;
  top: 16px !important;
  width: 20px !important;
  height: 40px !important;
  gap: 4px !important;
  z-index: 3;
}

.hud-root .bottom-bar .page-col button {
  width: 20px !important;
  height: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/ui/sroweb/ub_up_arrow.png") 0 0 / 20px 12px no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer !important;
}

.hud-root .bottom-bar .page-col button:last-child {
  background-image: url("/assets/ui/sroweb/ub_down_arrow.png") !important;
}

.hud-root .bottom-bar .page-col .page-num {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 29px !important;
  width: 20px !important;
  color: #d8c47a !important;
  font: 9px "Segoe UI", Tahoma, sans-serif !important;
  line-height: 10px !important;
  text-align: center !important;
}

.hud-root .bottom-bar .k-xp-strip {
  position: absolute !important;
  left: 20px !important;
  top: 59px !important;
  width: 778px !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  z-index: 2;
}

.hud-root .bottom-bar .k-xp-strip .k-bar-fill {
  background: url("/assets/ui/sroweb/ub_new_exp_bar.png") 0 0 / 76px 8px repeat-x !important;
}

.hud-root .bottom-bar .sp-row {
  position: absolute !important;
  left: 15px !important;
  top: 26px !important;
  width: 176px !important;
  height: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  z-index: 2;
}

.hud-root .bottom-bar .sp-row::before {
  content: "Skill point" !important;
  position: absolute !important;
  left: 24px !important;
  top: -10px !important;
  color: #d8c47a !important;
  font: 10px "Segoe UI", Tahoma, sans-serif !important;
  line-height: 12px !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 0 #000 !important;
}

.hud-root .bottom-bar .sp-row .sp-amount {
  display: block !important;
  position: absolute !important;
  left: 108px !important;
  top: -10px !important;
  color: #e6d6a8 !important;
  font: 10px "Segoe UI", Tahoma, sans-serif !important;
  line-height: 12px !important;
  z-index: 3;
}

.hud-root .bottom-bar .sp-row .sp-strip {
  width: 176px !important;
  height: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.hud-root .bottom-bar .sp-row .sp-strip .k-bar-fill {
  background: url("/assets/ui/sroweb/ub_new_sp_bar.png") 0 0 / 176px 8px no-repeat !important;
}

.hud-root .bottom-bar .sp-row .sp-strip .k-bar-text {
  display: none !important;
}

/* Menu and quick icons: exact SROWeb positions. */
.hud-root .bottom-bar .bar-cluster {
  position: absolute !important;
  left: calc(76px + 659px) !important;
  top: 1px !important;
  width: 125px !important;
  height: 52px !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  z-index: 4;
}

.hud-root .bottom-bar .bar-cluster .menu-toggle {
  position: absolute !important;
  left: 22px !important;
  top: 0 !important;
  width: 78px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/ui/sroweb/ub_new_menu.png") 0 0 / 78px 24px no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
}

.hud-root .bottom-bar .bar-cluster .menu-toggle svg {
  display: none !important;
}

.hud-root .bottom-bar .bar-cluster .menu-unread {
  color: #fff !important;
  font-size: 9px !important;
  line-height: 14px !important;
  z-index: 2;
}

.hud-root .bottom-bar .bar-cluster .cluster-icons {
  position: absolute !important;
  left: 0 !important;
  top: 20px !important;
  width: 125px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

.hud-root .bottom-bar .bar-cluster .cluster-icons > * {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  margin: 0 -1px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.hud-root .bottom-bar .bar-cluster .cluster-icons img {
  width: 32px !important;
  height: 32px !important;
}



