/* Desktop combat HUD. Runtime fill widths and existing controls stay authoritative. */
@media (pointer:fine) and (min-width:900px) {
 body.u20 #hud {
  top:7px!important; padding:7px 9px!important; gap:6px!important;
  width:calc(100% - 530px)!important; min-width:354px;
  border:1px solid #af884a!important; border-radius:5px!important;
  background:linear-gradient(160deg,#263e33,#0c1b17)!important;
  box-shadow:inset 0 1px #667651,0 3px 9px #0009!important;
  display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto!important;
 }
 body.u20 #hud .jxs {color:#e9d6a2;font-size:10px;flex-shrink:0}
 body.u20 #hud .jxs b {color:#ffedb8}
 body.u20 #hud .bar {
  height:22px!important; border:1px solid #a48348!important;
  border-radius:3px!important; background:#07110f!important;
  box-shadow:inset 0 1px 4px #000!important; overflow:hidden;
  flex:1 1 110px!important;
 }
 body.u20 #hud .bar i {inset:0!important;height:100%;border-radius:0!important;box-shadow:inset 0 1px #ffffff35,inset 0 -3px #0004}
 body.u20 #hud .bar.hp i {background:linear-gradient(#bd4a42,#76231f)!important}
 body.u20 #hud .bar.mp i {background:linear-gradient(#438bc2,#194b79)!important}
 body.u20 #hud .bar.stamina i {background:linear-gradient(#55a879,#235b3d)!important}
 body.u20 #hud .bar.xp i {background:linear-gradient(#d2aa50,#846022)!important}
 body.u20 #hud .bar span {
  font:700 11px/20px Tahoma,sans-serif!important; color:#fff3d6!important;
  text-shadow:0 1px 2px #000,0 0 3px #000!important;
  text-align:right!important;padding:0 6px 0 27px;white-space:nowrap;
 }
 body.u20 #hud .bar::after {position:absolute;left:5px;top:0;font:700 9px/20px Tahoma,sans-serif;color:#fff3d6;text-shadow:0 1px 2px #000;pointer-events:none}
 body.u20 #hud .hp::after {content:"HP"}
 body.u20 #hud .mp::after {content:"MP"}
 body.u20 #hud .bar.stamina::after {content:"TL"}
 body.u20 #hud .xp::after {content:"XP"}
 body.u20 #hud .bar.xp {grid-column:2 / 4;height:16px!important}
 body.u20 #hud .bar.xp span,body.u20 #hud .bar.xp::after {line-height:14px!important}
 body.u20 #hud .jxs:nth-child(5) {grid-column:4;grid-row:1}
 body.u20 #hud #mainSk {grid-column:1 / -1;flex-basis:100%;text-align:center;font:11px/14px Tahoma,sans-serif;color:#cdbb8d;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body.u20 #pad {
  padding:6px!important;gap:0!important;bottom:5px!important;
  border:1px solid #af884a!important;border-radius:6px!important;
  background:linear-gradient(#263e33,#0c1b17)!important;
  box-shadow:inset 0 1px #667651,0 3px 9px #0009!important;
 }
 body.u20 #pad .hb {gap:4px!important}
 body.u20 #pad .hb+.hb {margin-left:7px!important;padding-left:7px!important;border-left:1px solid #755e35!important;box-shadow:-1px 0 #07110f!important}
 body.u20 #pad .pbtn {
  width:42px!important;height:42px!important;border:1px solid #b28d4c!important;
  border-radius:4px!important;background:linear-gradient(#29463b,#10251f)!important;
  box-shadow:inset 0 0 0 1px #08140f,inset 0 2px #e4c27335!important;
 }
 body.u20 #pad .pbtn i {inset:4px!important;border-radius:2px}
 body.u20 #pad .pbtn.mn {width:48px!important;height:48px!important;border-color:#ddba70!important}
 body.u20 #pad .pbtn b {left:3px!important;bottom:2px!important;font:700 10px/11px Tahoma,sans-serif!important;color:#fff0bf!important;z-index:2}
 body.u20 #pad .pbtn em {right:3px!important;bottom:2px!important;font:10px/11px Tahoma,sans-serif!important;color:#fff0bf!important;z-index:2}
 body.u20 #pad .pbtn .sklv {top:2px!important;left:3px!important;font:10px/11px Tahoma,sans-serif!important;z-index:2}
 body.u20 #pad .pbtn .pk {right:1px!important;top:1px!important;color:#ffe4a2!important;z-index:3}
 body.u20 #pad .pbtn:hover {border-color:#f1ce82!important;box-shadow:inset 0 0 0 1px #d9b86e66,0 0 5px #d5ac5144!important}
 body.u20 #pad .pbtn.cur {border-color:#ffdf94!important;box-shadow:inset 0 0 0 1px #edd38c,0 0 7px #d5ac5166!important}
 body.u20 #pad .pbtn:active {transform:translateY(1px);filter:brightness(.88)}
 body.u20 #pad .pbtn:focus-visible {outline:2px solid #ffe4a2;outline-offset:2px}
 body.u20 #pad .pbtn:disabled,body.u20 #pad .pbtn.nowp {filter:saturate(.25);opacity:.65}
 body.u20 #pad .pbtn.empty {border-color:#665c42!important;background:#10221b!important;box-shadow:inset 0 0 5px #0008!important}
 body.u20 #chatBox,body.u20 #modeSw {bottom:72px!important}
}

@media (pointer:fine) and (min-width:900px) and (max-width:1100px) {
 body.u20 #hud {grid-template-columns:auto minmax(0,1fr) auto!important}
 body.u20 #pad {left:auto!important;right:8px!important;bottom:66px!important;transform:none!important}
 body.u20 #topCtl,body.u20 #lanCombatControls {bottom:132px!important}
 body.u20 #hud .bar.hp {grid-column:2;grid-row:1}
 body.u20 #hud .bar.mp {grid-column:2;grid-row:2}
 body.u20 #hud .bar.xp {grid-column:2;grid-row:3}
 body.u20 #hud .jxs:nth-child(5) {grid-column:3;grid-row:1}
}
