/* Painted HUD art, isolated from entry screens and draggable game windows. */
.mu7-hud-v2 {
  --hud-scale: .95; --hud-native-w: 618px; --hud-native-h: 200px;
  --hud-footer-h: 64px; --hud-unit-scale: 1.12;
  --hud-ink: #e7dcc4; --hud-gold: #efd9a0;
  --hud-bg: url('/client/assets/hud-v2/bg.webp');
  --hud-slot: url('/client/assets/hud-v2/slot.webp');
  --hud-button: url('/client/assets/hud-v2/btn.webp');
  --hud-button-on: url('/client/assets/hud-v2/btn-active.webp');
}
.mu7-hud-v2 #hud-char {
  left: max(5px, env(safe-area-inset-left)); top: max(5px, env(safe-area-inset-top));
  width: calc(253px * var(--hud-unit-scale)); padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; backdrop-filter: none; pointer-events: none;
}
.mu7-hud-v2 #hud-char::before { content: none; }
.hud-unit-art {
  position: relative; width: 253px; height: 116px; zoom: var(--hud-unit-scale);
  background: url('/client/assets/hud-v2/m-unitframe.webp') 0 0/100% 100% no-repeat;
  filter: drop-shadow(0 3px 5px #000b); pointer-events: auto;
}
.hud-unit-art .hud-portrait {
  position: absolute; left: 13px; top: 12px; width: 58px; height: 58px;
  border-radius: 50%; border: 0; padding: 0; overflow: hidden; background: #090907;
}
.hud-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hud-unit-art .hud-portrait:hover { box-shadow: 0 0 12px #e5c47180; }
.hud-unit-name {
  position: absolute; left: 82px; right: 21px; top: 13px; height: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 5px;
  font: 12px/1 'Segoe UI', sans-serif; color: #f3e3b8; text-shadow: 0 1px 2px #000;
}
.hud-unit-name > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hud-unit-name > span { flex: none; font-size: 10px; }
.mu7-hud-v2 #hud-char .bar {
  position: absolute; margin: 0; border: 0; border-radius: 8px; background: none; box-shadow: none;
}
.mu7-hud-v2 #hud-char .bar::after { content: none; }
.mu7-hud-v2 #hud-char .bar.hp { left: 79px; top: 37px; width: 156px; height: 15px; }
.mu7-hud-v2 #hud-char .bar.mp { left: 77px; top: 56px; width: 156px; height: 16px; }
.mu7-hud-v2 #hud-char .bar.hp > div { background: url('/client/assets/hud-v2/m-bar-hp.webp') 0 0/156px 15px no-repeat; }
.mu7-hud-v2 #hud-char .bar.mp > div { background: url('/client/assets/hud-v2/m-bar-mp.webp') 0 0/156px 16px no-repeat; }
.mu7-hud-v2 #hud-char .bar > div { height: 100%; box-shadow: none; transition: width .15s linear; }
.mu7-hud-v2 #hud-char .bar span { color: #fff6e8; line-height: 15px; font-size: 10px; font-weight: 400; }
.hud-wallet { position: absolute; left: 10px; top: 83px; width: 223px; height: 30px; display: flex; gap: 3px; }
.hud-wallet > * {
  min-width: 0; flex: 1; display: flex; align-items: center; gap: 3px; padding: 2px 4px;
  border: 1px solid #736344; border-radius: 0; color: #ead6a0; background: var(--hud-bg);
  box-shadow: inset 0 0 0 2px #0009; font: 10px/1 'Segoe UI', sans-serif;
}
.hud-wallet img { width: 18px; height: 20px; object-fit: contain; flex: none; }
.hud-wallet b, .hud-wallet-zen span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud-wallet small { font-size: 8px; }
.hud-wallet .hud-wallet-vip { flex: 0 0 auto; max-width: 74px; }
.hud-wallet .hud-wallet-vip b { font-size: 9px; }
.hud-wallet > button:hover { border-color: #e4c888; filter: brightness(1.15); }
.hud-unit-under { width: calc(253px * var(--hud-unit-scale)); margin-top: 3px; padding: 7px 9px; border: 5px solid transparent; border-image: var(--hud-slot) 6 fill / 5px stretch; color: var(--hud-ink); pointer-events: auto; }
.hud-under-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid #75603c; }
.hud-under-identity b { min-width: 0; overflow: hidden; color: #f1dcaa; font: 600 11px/1.3 system-ui; text-overflow: ellipsis; white-space: nowrap; }
.hud-unit-under #hud-cls { flex: none; font: 9px/1.4 system-ui; color: #c9b988; }
.hud-unit-under #hud-offline { display: block; padding: 5px 0 3px; font: 10px/1.4 system-ui; color: #d5c9aa; cursor: pointer; text-shadow: 0 1px 2px #000; }
.mu7-hud-v2 .hud-unit-under #vip-badge { position: static; display: flex; width: auto; gap: 6px; padding: 4px 0 2px; margin: 0; border: 0; border-top: 1px solid #75603c; background: none; box-shadow: none; }
.mu7-hud-v2 .hud-unit-under #vip-badge[hidden] { display: none; }
.mu7-hud-v2 .hud-unit-under .vip-badge-tier,
.mu7-hud-v2 .hud-unit-under .vip-badge-time { font-size: 9px; }
.mu7-hud-v2 .quest-box {
  margin: 7px 0 0; padding: 7px 8px; border: 5px solid transparent;
  border-image: var(--hud-slot) 6 fill / 5px stretch; background: #090907a8;
}
.mu7-hud-v2 .quest-box-title { color: #d9c38c; font: 600 10px/1.3 system-ui; letter-spacing: .6px; }
.mu7-hud-v2 .quest-box-status { color: #d6cfbc; font: 11px/1.4 system-ui; }
.mu7-hud-v2 .quest-box-hint { font-size: 9px; color: #98896d; }

/* Native pixel planes keep skill hit areas aligned with the painted sockets. */
.mu7-hud-v2 #hud-action {
  position: absolute; left: 50%; bottom: calc(var(--hud-footer-h) + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 30;
  width: calc(var(--hud-native-w) * var(--hud-scale));
  height: calc(var(--hud-native-h) * var(--hud-scale)); pointer-events: none;
}
.hud-action-art {
  position: absolute; left: 0; bottom: 0; width: var(--hud-native-w); height: var(--hud-native-h);
  transform: scale(var(--hud-scale)); transform-origin: 0 100%; pointer-events: auto;
  filter: drop-shadow(0 3px 5px #000b);
}
.mu7-hud-v2 #hud-bottom {
  position: relative; flex: none; height: 49px; padding: 0; gap: 0;
  display: flex; flex-direction: column; align-items: stretch;
}
.mu7-hud-v2 #rate-strip { display: none; }
.mu7-hud-v2 #hud-bottom .row {
  height: 49px; margin: 0; padding: 3px; gap: 5px; justify-content: center;
  border: 6px solid transparent; border-image: var(--hud-slot) 6 fill / 6px stretch;
}
.mu7-hud-v2 #hud-bottom button, .mu7-hud-v2 #hud-bottom #btn-auto.primary {
  min-height: 30px; height: 30px; padding: 0 8px; border: 6px solid transparent;
  border-image: var(--hud-button) 8 fill / 6px stretch; border-radius: 0; box-shadow: none;
  background: none; color: #c8b791; font: 600 11px/1 system-ui; outline: none;
}
.mu7-hud-v2 #hud-bottom #btn-auto.active, .mu7-hud-v2 #hud-bottom #btn-manual.active {
  border-image-source: var(--hud-button-on); color: #fff0c4; box-shadow: 0 0 6px #d4a35325;
}
.mu7-hud-v2 #hud-bottom select { width: 136px; min-height: 30px; height: 30px; padding: 3px 16px 3px 6px; font-size: 11px; color: #d6c9aa; }
.mu7-hud-v2 #hud-bottom #btn-session { display: none; }
.mu7-hud-v2 #hud-action #hud-skillbar {
  position: absolute; left: 0; top: auto; bottom: 0; right: auto; transform: none;
  width: 618px; height: 124px; margin: 0; padding: 0; display: block; border: 0;
  background: url('/client/assets/hud-v2/actionbar8.webp') 0 0/100% 100% no-repeat;
  box-shadow: none; backdrop-filter: none; overflow: visible;
}
.mu7-hud-v2 #hud-skillbar::before { content: none; }
.mu7-hud-v2 #hud-skillbar > .hud-title {
  position: absolute; top: 5px; left: 15px; width: auto; height: 16px; min-height: 0;
  margin: 0; padding: 0; border: 0; background: none; color: #bcaa7e; font: 600 9px/16px system-ui;
  letter-spacing: 1.4px;
}
.mu7-hud-v2 #skill-attacks {
  position: absolute; left: 16px; top: 34px; display: grid;
  grid-template-columns: repeat(8, 42px); gap: 20px; margin: 0; padding: 0; border: 0; min-height: 0;
}
.mu7-hud-v2 #skill-attacks .skill-icon {
  position: relative; width: 42px; height: 49px; border: 0; border-radius: 0; background: none;
  box-shadow: none; overflow: visible; display: grid; place-items: center;
}
.skill-art { display: block; width: 34px; height: 34px; background-repeat: no-repeat; pointer-events: none; }
.mu7-hud-v2 #skill-attacks .skill-art { transform: scale(1.18); }
.mu7-hud-v2 #skill-attacks .skill-icon::after { content: none; }
.mu7-hud-v2 #skill-attacks .skill-icon:hover { box-shadow: 0 0 0 1px #e8cd85, 0 0 10px #e8bd5b66; }
.mu7-hud-v2 #skill-attacks .skill-icon.pref { box-shadow: 0 0 0 2px #e9c570, 0 0 14px #e4b85577; }
.mu7-hud-v2 #skill-attacks .skill-icon.lit { filter: brightness(1.35); }
.mu7-hud-v2 #hud-skillbar .skill-hotkey {
  position: absolute; top: 52px; bottom: auto; left: 0; right: 0;
  padding: 0; background: none; color: #ead8aa; font: 600 11px/13px system-ui; text-shadow: 0 1px 2px #000;
}
.mu7-hud-v2 #hud-skill-pages { position: absolute; left: 220px; top: 3px; display: flex; align-items: center; gap: 8px; height: 21px; }
.mu7-hud-v2 #hud-skill-pages button { width: 24px; height: 22px; padding: 0; border: 0; background: none; color: #dfc990; font: 22px/1 serif; }
.mu7-hud-v2 #hud-skill-pages span { color: #a99362; font: 10px/1 system-ui; }
.mu7-hud-v2 #hud-buffs { position: absolute; left: 0; right: 0; bottom: calc(100% + 5px); pointer-events: auto; }
.mu7-hud-v2 #skill-buffs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; border: 0; }
.mu7-hud-v2 #skill-buffs .skill-icon { width: 36px; height: 36px; flex: none; border: 1px solid #8b7848; border-radius: 2px; display: grid; place-items: center; }
.mu7-hud-v2 #hud-skillbar .bar.xp { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 12px; margin: 0; border: 0; background: none; overflow: visible; }
.mu7-hud-v2 #bar-xp { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #8d6a25, #efd98e); box-shadow: 0 0 5px #d4aa4844; }
.mu7-hud-v2 #txt-xp { position: absolute; inset: -3px 0 0; text-align: center; color: #e5d8b6; font: 10px/12px system-ui; text-shadow: 0 1px 2px #000; }
.mu7-hud-v2 .hud-potion { position: absolute; top: 33px; width: 43px; height: 57px; padding: 0; border: 0; border-radius: 0; background: none; }
.mu7-hud-v2 .hud-potion.hp { left: 514px; }
.mu7-hud-v2 .hud-potion.mp { left: 568px; }
.hud-potion i { position: absolute; left: 12px; top: 5px; width: 20px; height: 29px; border: 1px solid #ba987a; border-radius: 5px 5px 8px 8px; background: radial-gradient(ellipse at 35% 22%, #ffc4ad, #ba2519 40%, #480904 90%); box-shadow: inset 0 0 3px #f6d89b, 0 2px 4px #000; }
.hud-potion i::before { content: ''; position: absolute; top: -4px; left: 5px; width: 8px; height: 5px; background: #a99165; border: 1px solid #dac9a3; }
.hud-potion.mp i { background: radial-gradient(ellipse at 35% 22%, #bef0ff, #2463c1 40%, #0a2148 90%); }
.hud-potion small { position: absolute; top: 1px; left: 2px; color: #ead9b0; font-size: 8px; text-shadow: 0 1px 2px #000; }
.hud-potion b { position: absolute; bottom: 2px; left: 0; right: 0; color: #f3e6c9; font: 600 12px/1 system-ui; }

/* Footer keeps all MU7 services reachable, using the new painted menu artwork. */
.mu7-hud-v2 #hud-commandbar {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: var(--hud-footer-h);
  padding: 4px 12px calc(4px + env(safe-area-inset-bottom)); gap: 10px;
  justify-content: center; align-items: center; z-index: 30;
  background: linear-gradient(transparent, #090806d9 15%, #080706f2); border: 0; box-shadow: none;
  backdrop-filter: none; overflow-x: auto;
}
.mu7-hud-v2 #hud-commandbar::before { content: none; }
.mu7-hud-v2 #hud-menu { display: flex; gap: 5px; padding: 0; border: 0; background: none; box-shadow: none; }
.mu7-hud-v2 #hud-menu button {
  position: relative; width: 48px; height: 49px; min-width: 48px; padding: 3px;
  border: 5px solid transparent; border-image: var(--hud-slot) 6 fill / 5px stretch;
  border-radius: 0; box-shadow: none; background: none;
}
.mu7-hud-v2 #hud-menu button > img { display: block; width: 34px; height: 34px; margin: auto; object-fit: contain; }
.mu7-hud-v2 #hud-menu button:hover { filter: brightness(1.3); transform: translateY(-1px); }
.mu7-hud-v2 #hud-menu kbd { bottom: -4px; right: -2px; font-size: 8px; background: #090806df; color: #e1cea1; }
.mu7-hud-v2 #menu-darkcoin { display: none; }
.mu7-hud-v2 #hud-menu .menu-vip-label, .mu7-hud-v2 #hud-menu .menu-topup-label { bottom: -3px; font-size: 7px; color: #e6d0a0; }
.mu7-hud-v2 #hud-menu .menu-topup-plus { right: 0; top: -3px; font-size: 16px; }
.mu7-hud-v2 #offline-dock { height: 44px; min-width: 125px; max-width: 180px; border: 5px solid transparent; border-image: var(--hud-slot) 6 fill / 5px stretch; border-radius: 0; background: none; box-shadow: none; padding: 2px 5px; }
.mu7-hud-v2 .offline-dock-icon { font-size: 24px; color: #cdb77f; }
.mu7-hud-v2 .offline-dock-copy small { font-size: 8px; color: #968768; }
.mu7-hud-v2 .offline-dock-copy b { font-size: 9px; color: #dcccab; }

.mu7-hud-v2 #hud-location {
  position: absolute; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right));
  width: 272px; height: 40px; padding: 0 9px; z-index: 25;
  border: solid transparent; border-width: 0 51px 0 30px;
  border-image: url('/client/assets/hud-v2/location.webp') 0 62 0 40 fill / 0 51px 0 30px stretch;
  display: flex; align-items: center; gap: 12px; background: none; border-radius: 0;
  color: #efe3c6; text-shadow: 0 1px 2px #000; filter: drop-shadow(0 3px 5px #000a);
}
#hud-location > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; text-align: left; }
#hud-location > b { font: 10px/1 system-ui; white-space: nowrap; }
#hud-location > i { position: absolute; right: -39px; font: 20px/1 system-ui; }
.mu7-hud-v2 #hud-right-col { top: 57px; right: 10px; gap: 6px; }
.mu7-hud-v2 #minimap { border: 5px solid transparent; border-image: var(--hud-slot) 6 fill / 5px stretch; background: #080907c9; border-radius: 0; box-shadow: 0 4px 10px #0008; }
.mu7-hud-v2 #hud-target {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 320px; height: 58px;
  border: solid transparent; border-width: 0 60px;
  border-image: url('/client/assets/hud-v2/target.webp') 0 70 fill / 0 60px stretch;
  z-index: 20; pointer-events: none; filter: drop-shadow(0 3px 5px #000b);
}
#hud-target > strong { position: absolute; left: -39px; right: 7px; top: 8px; color: #f3e3b8; font: 500 13px/20px system-ui; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hud-target > span { position: absolute; right: -39px; top: 10px; font: 11px/18px system-ui; color: #d8c087; }
#hud-target > div { position: absolute; left: -44px; right: -44px; top: 34px; height: 13px; overflow: hidden; border-radius: 7px; }
#hud-target i { display: block; height: 100%; background: url('/client/assets/hud-v2/m-bar-hp.webp') 0 0/100% 13px no-repeat; transition: width .15s linear; }

.mu7-hud-v2 #hud-chat-stack {
  position: absolute; left: max(10px, env(safe-area-inset-left)); bottom: calc(var(--hud-footer-h) + 7px + env(safe-area-inset-bottom));
  width: clamp(180px, calc((100vw - var(--hud-native-w) * var(--hud-scale)) / 2 - 24px), 360px);
  z-index: 25; display: flex; flex-direction: column; gap: 6px; pointer-events: auto;
}
.mu7-hud-v2 #system-feed { position: static; max-height: 77px; padding: 0; scrollbar-color: #655332 transparent; }
.mu7-hud-v2 .system-line { background: #07070755; padding: 1px 4px; color: #b2c9e9; font: 11px/1.4 system-ui; }
.mu7-hud-v2 .system-line.loot { color: #c6d9ad; }
.mu7-hud-v2 .system-line.error { color: #f09a87; }
.mu7-hud-v2 #hud-log { position: relative; left: auto; top: auto; bottom: auto; width: 100%; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.mu7-hud-v2 #log { height: 96px; padding: 2px 4px; background: #09080740; border: 0; font-size: 11px; text-shadow: 0 1px 2px #000; }
.mu7-hud-v2 #chat-tabs { gap: 2px; margin-bottom: 4px; overflow-x: auto; flex-wrap: nowrap; }
.mu7-hud-v2 #chat-tabs button { flex: none; min-height: 22px; padding: 2px 5px; background: #0d0b07a3; border: 1px solid #55482e; border-radius: 1px; color: #bcac86; font-size: 9px; }
.mu7-hud-v2 #chat-tabs button.active { background: #49391a99; color: #f4e2b4; border-color: #ac8d4a; outline: none; }
.mu7-hud-v2 #hud-log .row { gap: 3px; margin-top: 4px; }
.mu7-hud-v2 #hud-log input { min-width: 0; border: 1px solid #645237; background: #090807b8; font-size: 11px; height: 28px; padding: 3px 6px; }
.mu7-hud-v2 #chat-whisper-to { max-width: 75px; }
.mu7-hud-v2 #chat-send { height: 28px; padding: 1px 6px; border: 5px solid transparent; border-image: var(--hud-button-on) 8 fill / 5px stretch; border-radius: 0; background: none; color: #dfcca1; font-size: 10px; }
.mu7-hud-v2 :is(#log, #chat-tabs, #hud-commandbar) { scrollbar-width: thin; scrollbar-color: #77613d #090807; }

/* Portrait uses the matching six-slot artwork, with every skill available by paging. */
body.m-phone .mu7-hud-v2 { --hud-unit-scale: .82; --hud-footer-h: 54px; }
body.m-phone .mu7-hud-v2 #hud-left-col { left: 4px; top: 4px; right: auto; width: calc(253px * var(--hud-unit-scale)); }
body.m-phone .mu7-hud-v2 #hud-char { width: calc(253px * var(--hud-unit-scale)); padding: 0; }
body.m-phone .mu7-hud-v2 #hud-dock { left: 4px; right: 4px; bottom: env(safe-area-inset-bottom); align-items: center; gap: 3px; }
body.m-phone .mu7-hud-v2 #hud-action { position: relative !important; flex: none; }
body.m-phone .mu7-hud-v2 #hud-action:has(#skill-buffs:not(:empty)) { margin-top: calc(var(--hud-buffs-h, 36px) + 5px); }
body.m-phone .mu7-hud-v2 #hud-commandbar { width: 100%; min-height: 54px; padding: 2px; gap: 4px; justify-content: flex-start; border: 0; border-radius: 0; }
body.m-phone .mu7-hud-v2 #hud-menu { order: 1; }
body.m-phone .mu7-hud-v2 #hud-menu #menu-topup { order: -1; }
body.m-phone .mu7-hud-v2 #offline-dock { order: 2; }
body.m-phone .mu7-hud-v2 #hud-menu { gap: 3px; }
body.m-phone .mu7-hud-v2 #hud-menu button { width: 42px; min-width: 42px; height: 45px; padding: 1px; }
body.m-phone .mu7-hud-v2 #hud-menu button > img { width: 30px; height: 30px; }
body.m-phone .mu7-hud-v2 #offline-dock { min-width: 108px; }
body.m-phone .mu7-hud-v2 #hud-location { width: min(180px, calc(100vw - 216px)); height: 32px; top: 5px; right: 4px; padding: 0 3px; border-width: 0 28px 0 17px; border-image-width: 0 28px 0 17px; gap: 3px; }
body.m-phone #hud-location > span { font-size: 10px; }
body.m-phone #hud-location > b { display: none; }
body.m-phone #hud-location > i { right: -22px; font-size: 16px; }
body.m-phone .mu7-hud-v2 #hud-right-col { top: 42px; right: 5px; }
body.m-phone .mu7-hud-v2 #hud-target { top: calc(var(--hud-char-h, 220px) + 14px); width: 250px; transform: translateX(-50%) scale(.82); transform-origin: 50% 0; }
body.m-phone .mu7-hud-v2 #hud-chat-stack { width: 100%; max-width: 430px; gap: 3px; }
body.m-phone .mu7-hud-v2 #system-feed { max-height: 42px; }
body.m-phone .mu7-hud-v2 #log { height: 54px; }
body.m-phone .mu7-hud-v2 #hud-log input { font-size: 16px; }
.mu7-hud-v2.hud-narrow #hud-bottom { height: 45px; }
.mu7-hud-v2.hud-narrow #hud-bottom .row { height: 43px; gap: 3px; padding: 2px; }
.mu7-hud-v2.hud-narrow #hud-bottom button { padding: 0 3px; font-size: 10px; }
.mu7-hud-v2.hud-narrow #hud-bottom select { width: 102px; font-size: 10px; }
.mu7-hud-v2.hud-narrow #btn-logout { display: none; }
.mu7-hud-v2.hud-narrow #hud-action #hud-skillbar { width: 373px; height: 103px; background-image: url('/client/assets/hud-v2/m-actionbar6.webp'); }
.mu7-hud-v2.hud-narrow #hud-skillbar > .hud-title { top: 3px; font-size: 8px; }
.mu7-hud-v2.hud-narrow #skill-attacks { left: 12px; top: 30px; grid-template-columns: repeat(6, 40px); gap: 12px; }
.mu7-hud-v2.hud-narrow #skill-attacks .skill-icon { width: 40px; height: 51px; }
.mu7-hud-v2.hud-narrow #hud-skill-pages { left: auto; right: 14px; top: 0; }
.mu7-hud-v2.hud-narrow #hud-skillbar .skill-hotkey { top: 52px; font-size: 9px; }
.mu7-hud-v2.hud-narrow #hud-skillbar .bar.xp { left: 10px; right: 10px; bottom: 0; height: 3px; }
.mu7-hud-v2.hud-narrow #txt-xp { display: none; }
.mu7-hud-v2.hud-narrow .hud-potion { left: 324px; width: 40px; height: 25px; }
.mu7-hud-v2.hud-narrow .hud-potion.hp { top: 30px; }
.mu7-hud-v2.hud-narrow .hud-potion.mp { top: 57px; }
.mu7-hud-v2.hud-narrow .hud-potion i { left: 3px; top: 3px; width: 11px; height: 18px; }
.mu7-hud-v2.hud-narrow .hud-potion i::before { left: 2px; width: 5px; height: 4px; }
.mu7-hud-v2.hud-narrow .hud-potion small { left: 19px; top: 0; font-size: 7px; }
.mu7-hud-v2.hud-narrow .hud-potion b { left: 17px; bottom: 3px; font-size: 9px; }
body.m-landscape .mu7-hud-v2 { --hud-unit-scale: .78; }
body.m-landscape .mu7-hud-v2 .hud-unit-under #hud-cls,
body.m-landscape .mu7-hud-v2 .hud-unit-under #hud-offline,
body.m-landscape .mu7-hud-v2 .hud-unit-under #vip-badge,
body.m-landscape .mu7-hud-v2 .quest-box-hint { display: none; }
body.m-landscape .mu7-hud-v2 .quest-box { margin-top: 0; padding: 4px; }
body.m-landscape .mu7-hud-v2 .quest-box-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-landscape .mu7-hud-v2 .quest-box-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.m-landscape .mu7-hud-v2 #hud-target { top: 5px; width: 260px; transform: translateX(-50%) scale(.72); }
body.m-landscape .mu7-hud-v2 #hud-chat-stack { left: 6px; bottom: 64px; width: min(230px, 26vw); }
body.m-landscape .mu7-hud-v2 #hud-dock { left: 27vw; right: 6px; }
body.m-landscape .mu7-hud-v2 #hud-log { position: relative; left: auto; bottom: auto; width: 100%; }
body.joy-on .mu7-hud-v2 #hud-action { display: none; }
body.joy-on .mu7-hud-v2 .hud-unit-under { display: none; }
body.joy-on .mu7-hud-v2 #hud-chat-stack { bottom: 75px; }
body.joy-on.joy-chat-open .mu7-hud-v2 #hud-log { position: relative; inset: auto; width: 100%; display: block; }
body.joy-on.joy-chat-open .mu7-hud-v2 #hud-chat-stack { width: min(420px, calc(100vw - 20px)); }
body.joy-on.joy-menu-open .mu7-hud-v2 #hud-menu { display: grid; grid-template-columns: repeat(4, 48px); padding: 10px; background: var(--hud-bg); border: 6px solid transparent; border-image: var(--hud-slot) 6 fill / 6px stretch; }
@media (max-height: 700px) and (orientation: portrait) {
  body.m-phone .mu7-hud-v2 { --hud-unit-scale: .72; }
  body.m-phone .mu7-hud-v2 #hud-cls,
  body.m-phone .mu7-hud-v2 #hud-offline,
  body.m-phone .mu7-hud-v2 #vip-badge,
  body.m-phone .mu7-hud-v2 .quest-box-hint,
  body.m-phone .mu7-hud-v2 #hud-target { display: none; }
  body.m-phone .mu7-hud-v2 .quest-box-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.m-phone .mu7-hud-v2 #log { height: 36px; }
  body.m-phone .mu7-hud-v2 #system-feed { max-height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .mu7-hud-v2 #hud-char .bar > div, #hud-target i { transition: none; }
}
