/* V56 — characterful pixel-RPG health bars */
html body #gameShell .hud .bar {
  --hp-frame-1:#ffe27a;
  --hp-frame-2:#9a5a12;
  --hp-track:#17152f;
  position:relative !important;
  display:flex !important;
  align-items:stretch !important;
  box-sizing:border-box !important;
  height:34px !important;
  min-height:34px !important;
  padding:5px 7px 5px 39px !important;
  margin-top:7px !important;
  overflow:visible !important;
  border:3px solid var(--hp-frame-2) !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#080b20 0%,#20264d 48%,#080b20 100%) !important;
  box-shadow:inset 0 2px 0 #ffffff35,inset 0 -3px 0 #0009,0 3px 0 #050615,0 0 0 2px #050615 !important;
  isolation:isolate;
}
html body #gameShell .hud .bar::before {
  content:'♥';
  position:absolute;
  z-index:3;
  left:-7px;
  top:50%;
  transform:translateY(-54%);
  width:60px;
  height:50px;
  display:grid;
  place-items:center;
  color:#ff304b;
  font:900 45px/1 Arial,Helvetica,sans-serif;
  -webkit-text-stroke:2px #5b1a25;
  text-shadow:2px 3px 0 #080914,0 0 0 3px #080914,0 -2px 0 #ffb3b7,0 0 9px #ff3d63a8;
  filter:drop-shadow(0 2px 0 #050615);
  pointer-events:none;
}
html body #gameShell .hud .bar::after {
  content:'';
  position:absolute;
  z-index:2;
  left:36px;
  right:5px;
  top:4px;
  bottom:4px;
  border-radius:999px;
  border:1px solid #ffffff30;
  box-shadow:inset 0 2px 3px #0008;
  pointer-events:none;
}
html body #gameShell .hud .bar i {
  position:relative !important;
  z-index:1;
  display:block !important;
  flex:0 0 auto !important;
  height:100% !important;
  min-width:0 !important;
  border-radius:999px !important;
  overflow:hidden !important;
  transition:width .22s cubic-bezier(.2,.8,.2,1),filter .18s ease !important;
  box-shadow:inset 0 2px 0 #ffffff75,inset 0 -4px 0 #0004,0 0 8px currentColor !important;
}
html body #gameShell .hud .bar:not(.boss) {
  --hp-frame-1:#ffe58a;
  --hp-frame-2:#956018;
  border-color:#a36b1c !important;
  box-shadow:inset 0 2px 0 #fff6c5,inset 0 -3px 0 #4b2c0b,0 3px 0 #050615,0 0 0 2px #050615 !important;
}
html body #gameShell .hud .bar:not(.boss)::before {
  color:#ff334d;
  -webkit-text-stroke:2px #76202d;
  text-shadow:2px 3px 0 #080914,0 -2px 0 #ffc2c3,0 0 8px #ff456b;
}
html body #gameShell .hud .bar:not(.boss) i {
  background:linear-gradient(180deg,#a5ff76 0%,#42e76a 38%,#0caa75 100%) !important;
  color:#4dff92;
}
html body #gameShell .hud .bar.boss {
  --hp-frame-1:#ff9b9f;
  --hp-frame-2:#681b37;
  padding-left:39px !important;
  border-color:#8b2444 !important;
  background:linear-gradient(180deg,#1a0b25 0%,#35112e 50%,#13091c 100%) !important;
  box-shadow:inset 0 2px 0 #ffb7c45c,inset 0 -3px 0 #09030c,0 3px 0 #050615,0 0 0 2px #050615,0 0 12px #ec315c38 !important;
}
html body #gameShell .hud .bar.boss::before {
  content:'☠︎';
  width:62px;
  height:50px;
  color:#fff4d6;
  font:900 42px/1 'Arial Unicode MS',Arial,Helvetica,sans-serif;
  -webkit-text-stroke:2px #5b1029;
  text-shadow:1px 1px 0 #fff8e8,2px 3px 0 #260817,0 0 5px #ffd1a1,0 0 12px #ff315c;
}
html body #gameShell .hud .bar.boss::after {
  border-color:#ffb0bd55;
  box-shadow:inset 0 2px 3px #0009,0 0 5px #ff456b35;
}
html body #gameShell .hud .bar.boss i {
  background:linear-gradient(180deg,#ff9aa8 0%,#fa3558 38%,#a20f3c 100%) !important;
  color:#ff3159;
}
html body #gameShell .hud .bar i::after {
  content:'';
  position:absolute;
  inset:2px 3px auto;
  height:28%;
  border-radius:999px;
  background:linear-gradient(90deg,#ffffff7a,#ffffff12 72%,transparent);
  animation:hpBarGlint 2.4s ease-in-out infinite;
}
@keyframes hpBarGlint { 0%,100%{opacity:.48} 50%{opacity:.95} }
@media(max-width:700px) {
  html body #gameShell .hud .bar { height:27px !important; min-height:27px !important; padding:4px 5px 4px 31px !important; }
  html body #gameShell .hud .bar::before { width:48px;height:42px;font-size:39px;left:-8px; }
  html body #gameShell .hud .bar.boss::before { font-size:35px;width:50px; }
  html body #gameShell .hud .bar::after { left:29px;top:3px;bottom:3px; }
}
@media(prefers-reduced-motion:reduce) {
  html body #gameShell .hud .bar i::after { animation:none !important; }
}


/* V59 — remove Hero/Boss emblem; keep the existing HP bar frames and fills */
html body #gameShell .hud .bar,
html body #gameShell .hud .bar.boss {
  padding-left:7px !important;
}
html body #gameShell .hud .bar::before,
html body #gameShell .hud .bar.boss::before {
  content:none !important;
  display:none !important;
}
html body #gameShell .hud .bar::after {
  left:5px !important;
}
@media(max-width:700px) {
  html body #gameShell .hud .bar,
  html body #gameShell .hud .bar.boss {
    padding-left:5px !important;
  }
  html body #gameShell .hud .bar::after {
    left:3px !important;
  }
}


/* V60: slightly enlarge only the marked top header groups and bottom slot buttons.
   Keep mobile layout and all other game sections unchanged. */
@media (min-width: 701px) {
  #gameShell > header {
    min-height: 82px;
  }
  #gameShell > header .headerBrand {
    min-height: 62px;
    padding: 4px 8px;
    box-sizing: border-box;
  }
  #gameShell > header .topActions {
    min-height: 62px;
    padding: 4px 8px;
    box-sizing: border-box;
    gap: 11px;
  }
  #gameShell .under .skillHints span {
    min-width: 112px;
    min-height: 40px;
    padding: 9px 14px !important;
    box-sizing: border-box;
  }
}
