/* Dragemark: css/hud.css
 * Heads-up display. Everything lives inside #ui (fixed overlay, pointer-events:none); interactive parts opt in
 * with pointer-events:auto. Panels are designed at 1400×780 and scaled with --ui-scale (set by ui-hud.js) from
 * the corner they are anchored to, so the layout keeps its proportions down to 1024×640.
 */

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.dmh {
  --ui-scale: 1;
  --s: var(--ui-scale);
  --gold: #c9a44c;
  --gold-hi: #f0d78c;
  --gold-lo: #6e5420;
  --ink: #e8e0c8;
  --ink-soft: #bdb6a0;
  --panel-top: rgba(42, 46, 57, 0.88);
  --panel-bot: rgba(20, 22, 29, 0.9);
  --symbols: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Noto Sans Symbols', 'Apple Symbols', 'DejaVu Sans', sans-serif;
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  color: var(--ink);
  font-family: 'Alegreya Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.dmh.on { display: block; }
.dmh *, .dmh *::before, .dmh *::after { box-sizing: border-box; }
.dmh button { font-family: inherit; margin: 0; }

/* ---------------------------------------------------------------- shared panel look */
.uf-body,
.dmh-tot,
.dmh-bar,
.mm-head,
.mi-row,
.mm-money,
.lu-list,
.dmh-tip {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
  border: 1px solid rgba(201, 164, 76, 0.78);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 236, 190, 0.1),
    inset 0 0 18px rgba(0, 0, 0, 0.42),
    0 3px 10px rgba(0, 0, 0, 0.55);
}

/* ---------------------------------------------------------------- overlays */
.dmh-ghost {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  background: radial-gradient(ellipse at center, rgba(110, 130, 165, 0) 38%, rgba(30, 40, 62, 0.62) 100%);
}
.dmh-ghost.on {
  opacity: 1;
  -webkit-backdrop-filter: grayscale(0.85) brightness(0.86);
  backdrop-filter: grayscale(0.85) brightness(0.86);
}
.dmh-lowhp {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(160, 0, 0, 0) 56%, rgba(175, 12, 0, 0.45) 100%);
  transition: opacity 0.4s ease;
}
.dmh-lowhp.on { opacity: 0.8; animation: dmh-lowpulse 1.3s ease-in-out infinite; }

.dmh-world,
.dmh-float {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.dmh-world { z-index: 2; }
.dmh-float { z-index: 3; }

/* ================================================================ unit frames */
.dmh-uf {
  position: absolute;
  top: calc(14px * var(--s));
  width: 272px;
  height: 80px;
  display: flex;
  align-items: center;
  transform: scale(var(--s));
  transform-origin: top left;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}
.dmh-player { left: calc(14px * var(--s)); }
.dmh-target { left: calc(300px * var(--s)); flex-direction: row-reverse; cursor: default; }

.uf-portrait {
  position: relative;
  flex: none;
  width: 76px;
  height: 76px;
  z-index: 2;
}
.uf-disc {
  --pc: #6a6a6a;
  --pc-hi: #9a9a9a;
  --pc-lo: #333;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 42%, var(--pc-hi) 0%, var(--pc) 52%, var(--pc-lo) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    inset 0 -9px 16px rgba(0, 0, 0, 0.45),
    inset 0 6px 10px rgba(255, 255, 255, 0.16),
    0 0 0 2px var(--gold),
    0 0 0 3px #2a1f0a,
    0 3px 10px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}
.uf-glyph {
  font-family: var(--symbols);
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 248, 230, 0.94);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 0, 0, 0.35);
}
.uf-glyph.is-initial {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 32px;
}
.uf-elite {
  position: absolute;
  left: -22px;
  top: -26px;
  width: 140px;
  height: 120px;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.dmh-uf.elite .uf-elite { display: block; }
.dmh-uf.boss .uf-elite { filter: drop-shadow(0 0 6px rgba(255, 70, 30, 0.75)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)); }
.dmh-uf.boss .uf-elite .el-gem { fill: #ff3a14; }

.uf-lvl {
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  z-index: 3;
  text-align: center;
  font: 700 12px/25px 'Cinzel', Georgia, serif;
  color: #f6e7b0;
  background: radial-gradient(circle at 40% 35%, #333743, #0e1015);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 240, 200, 0.12);
  text-shadow: 0 1px 1px #000;
}
.dmh-target .uf-lvl { left: auto; right: -3px; }
.uf-lvl.skull { font-size: 11px; letter-spacing: -0.02em; color: #ff3a2a !important; }

.uf-combatico {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--symbols);
  font-size: 13px;
  color: #ffd8c8;
  background: radial-gradient(circle at 40% 35%, #a02418, #4a0a06);
  border: 1px solid #ff8a6a;
  box-shadow: 0 0 8px rgba(255, 60, 40, 0.65);
}
.dmh-uf.in-combat .uf-combatico { display: flex; }
.dmh-uf.in-combat .uf-disc {
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.5),
    inset 0 -9px 16px rgba(0, 0, 0, 0.45),
    0 0 0 2px #e0582a,
    0 0 0 3px #2a0f06,
    0 0 14px rgba(255, 70, 40, 0.65);
}
.dmh-uf.targeted .uf-disc { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 3px #2a1f0a, 0 0 14px rgba(255, 220, 120, 0.75); }
.dmh-uf.dead .uf-disc { filter: grayscale(1) brightness(0.6); }
.dmh-uf.dead .uf-body { filter: saturate(0.3); }

.uf-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 62px;
  margin-left: -16px;
  padding: 5px 10px 5px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.dmh-target .uf-body { margin-left: 0; margin-right: -16px; padding: 5px 22px 5px 10px; }
.uf-body::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 215, 140, 0), rgba(255, 236, 170, 0.9), rgba(240, 215, 140, 0));
}
.dmh-target.r-hostile .uf-body { background: linear-gradient(180deg, rgba(62, 30, 30, 0.9) 0%, rgba(24, 18, 20, 0.92) 100%); }
.dmh-target.r-neutral .uf-body { background: linear-gradient(180deg, rgba(58, 52, 26, 0.9) 0%, rgba(24, 22, 16, 0.92) 100%); }
.dmh-target.r-friendly .uf-body { background: linear-gradient(180deg, rgba(30, 52, 34, 0.9) 0%, rgba(16, 22, 18, 0.92) 100%); }

.uf-name {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 16px;
  min-width: 0;
}
.dmh-target .uf-name { justify-content: flex-start; }
.uf-nametext {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 13px/1 'Cinzel', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.8);
}
.uf-tag {
  flex: none;
  font: 700 9.5px/1 'Alegreya Sans', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd97a;
  padding: 2px 4px 1px;
  border: 1px solid rgba(201, 164, 76, 0.65);
  border-radius: 2px;
  background: rgba(70, 46, 10, 0.65);
}
.uf-tag.muted { color: var(--ink-soft); border-color: rgba(189, 182, 160, 0.3); background: rgba(0, 0, 0, 0.3); }
.dmh-uf.boss .uf-tag { color: #ffb8a0; border-color: rgba(255, 110, 70, 0.7); background: rgba(90, 16, 8, 0.7); }
/* Target frame: the family / title tag rides on the frame's top edge, so long English names and titles
   ("Casimir Starholt", "Scholar of the Sun Archive", "Restless Bone Warrior") each get the full width. */
.dmh-target .uf-tag {
  position: absolute;
  top: -7px;
  left: 10px;
  z-index: 2;
  max-width: calc(100% - 36px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.dmh-target .uf-tag.muted { background: rgba(14, 12, 10, 0.92); }

.uf-bar {
  position: relative;
  height: 17px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(180deg, #07080b, #16191f);
  border: 1px solid #000;
  box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.32), inset 0 1px 3px rgba(0, 0, 0, 0.85);
}
.uf-res { height: 12px; }
.dmh-uf.no-res .uf-hp { height: 21px; }
.uf-fill,
.uf-lag {
  position: absolute;
  inset: 0;
  transform-origin: left center;
}
.uf-fill { transition: transform 0.12s linear; }
.uf-lag {
  background: linear-gradient(180deg, #fff0c0, #d8a650);
  opacity: 0.8;
  transition: transform 0.5s ease 0.28s;
}
.uf-hp .uf-fill { background: linear-gradient(180deg, #78e870 0%, #34b02e 46%, #1f7f1c 54%, #125a11 100%); }
.uf-hp.low .uf-fill { background: linear-gradient(180deg, #ff9a6a 0%, #e0442a 46%, #b0281a 54%, #6e140c 100%); }
.res-mana .uf-fill { background: linear-gradient(180deg, #7ab0ff 0%, #2f6ee0 46%, #1f52b8 54%, #112e72 100%); }
.res-rage .uf-fill { background: linear-gradient(180deg, #ff7a6a 0%, #d0281c 46%, #a8180e 54%, #5e0a06 100%); }
.res-energy .uf-fill { background: linear-gradient(180deg, #fff3a0 0%, #e8c42a 46%, #c49e10 54%, #7a6008 100%); }
.uf-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.07) 46%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.2) 100%);
}
.uf-text,
.uf-pct {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font: 700 12px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px #000, 0 0 3px #000;
  white-space: nowrap;
}
.uf-text { left: 0; right: 0; justify-content: center; }
.uf-pct { right: 6px; font-size: 10.5px; color: #e8e0c8; }
.dmh-target .uf-hp .uf-text { justify-content: flex-start; padding-left: 7px; }
.uf-res .uf-text { font-size: 10px; }

.uf-pips {
  display: flex;
  gap: 5px;
  height: 11px;
  padding-left: 2px;
  margin-top: 1px;
}
.uf-pips i {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: 1px;
  transform: rotate(45deg);
  background: #1e130a;
  border: 1px solid #6a4a1a;
  box-shadow: inset 0 0 3px #000;
}
.uf-pips i.lit {
  background: radial-gradient(circle at 40% 40%, #fff4b0, #ffb020 58%, #b05a00);
  border-color: #ffd97a;
  box-shadow: 0 0 6px rgba(255, 190, 60, 0.85);
  animation: dmh-pip 0.28s ease-out;
}
.uf-pips.stale i.lit { filter: saturate(0.25) brightness(0.7); box-shadow: none; }

/* target auras, target cast bar, target of target */
.uf-auras {
  position: absolute;
  top: calc(100% + 4px);
  left: 4px;
  width: 254px;
}
.dmh-auras {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 3px;
}
.uf-castwrap {
  position: absolute;
  top: calc(100% + 66px);
  left: 8px;
  width: 236px;
}
.dmh-tot {
  position: absolute;
  left: calc(100% + 50px);
  top: 20px;
  width: 132px;
  padding: 4px 7px 5px;
  cursor: pointer;
}
.tot-label {
  font: 700 9px/1 'Alegreya Sans', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tot-name {
  margin: 2px 0 3px;
  font: 700 12px/1.1 'Alegreya Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px #000;
}
.tot-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 1px;
  background: #07080b;
  border: 1px solid #000;
  box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.3);
}
.tot-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(180deg, #78e870, #1f7f1c);
}
.dmh-tot.hostile .tot-fill { background: linear-gradient(180deg, #ff7a6a, #a8180e); }

/* ================================================================ auras */
.dmh-aura {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  pointer-events: auto;
  cursor: default;
}
.au-icon {
  --ab: #4a4a5a;
  --ab-hi: #7a7a8a;
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: radial-gradient(circle at 36% 30%, var(--ab-hi), var(--ab) 62%, rgba(0, 0, 0, 0.85) 120%);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 -5px 8px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.75);
}
.au-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}
.dmh-aura.harmful .au-icon { border-color: #d8402c; }
.dmh-aura.mine .au-icon { box-shadow: 0 0 0 1px #ffd97a, 0 0 6px rgba(255, 210, 110, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6); }
.au-glyph {
  font-family: var(--symbols);
  font-size: 15px;
  line-height: 1;
  color: #fff6de;
  text-shadow: 0 1px 2px #000;
}
.au-time {
  min-height: 12px;
  margin-top: 1px;
  font: 700 10.5px/12px 'Alegreya Sans', sans-serif;
  color: #f4ecd8;
  text-shadow: 0 1px 1px #000, 0 0 3px #000;
  white-space: nowrap;
}
.dmh-aura.expiring .au-icon { animation: dmh-blink 0.9s ease-in-out infinite; }
.dmh-aura.expiring .au-time { color: #ffb070; }

.dmh-pauras {
  position: absolute;
  top: calc(12px * var(--s));
  right: calc(270px * var(--s)); /* clear of the widened minimap header */
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: scale(var(--s));
  transform-origin: top right;
  pointer-events: none;
  z-index: 5;
}
.dmh-pauras .dmh-auras { flex-direction: row-reverse; }
.dmh-pauras .dmh-aura { width: 32px; }
.dmh-pauras .au-icon { width: 30px; height: 30px; }
.dmh-pauras .au-glyph { font-size: 17px; }
.dmh-pauras .pa-debuffs .au-icon { width: 34px; height: 34px; }
.dmh-pauras .pa-debuffs .dmh-aura { width: 36px; }

/* ================================================================ cast bars */
.dmh-castwrap-player {
  position: absolute;
  left: 50%;
  bottom: calc(14px + 156px * var(--s));
  width: 310px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: bottom center;
  z-index: 5;
}
.dmh-cast {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}
.dmh-cast.show { opacity: 1; transform: none; }
.dmh-cast.fail.show, .dmh-cast.done.show { transition: opacity 0.35s ease; }
.cb-icon {
  --ab: #5a4a2a;
  --ab-hi: #8a7a5a;
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 36% 30%, var(--ab-hi), var(--ab) 62%, #000 130%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.6);
}
.cb-glyph { font-family: var(--symbols); font-size: 17px; color: #fff6de; text-shadow: 0 1px 2px #000; }
.cb-bar {
  position: relative;
  flex: 1;
  height: 21px;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(180deg, #07080b, #16191f);
  border: 1px solid #000;
  box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.85), inset 0 1px 3px rgba(0, 0, 0, 0.85), 0 3px 10px rgba(0, 0, 0, 0.6);
}
.cb-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(180deg, #ffe690 0%, #e2a82c 46%, #b87810 54%, #744a06 100%);
}
.dmh-cast.channel .cb-fill { background: linear-gradient(180deg, #a8e4ff 0%, #3c9ada 46%, #2a74b0 54%, #144676 100%); }
.dmh-cast.done .cb-fill { background: linear-gradient(180deg, #d8ffb0 0%, #62d22e 46%, #3aa414 54%, #1e640a 100%); }
.dmh-cast.fail .cb-fill { background: linear-gradient(180deg, #ffb4a4 0%, #d8442c 46%, #b02a18 54%, #6a120a 100%); transform: scaleX(1) !important; }
.cb-spark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 12px;
  margin-left: -6px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 235, 0.95), rgba(255, 220, 120, 0.45) 38%, rgba(255, 200, 80, 0) 70%);
}
.dmh-cast.done .cb-spark, .dmh-cast.fail .cb-spark { display: none; }
.cb-gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.18) 100%);
}
.cb-name,
.cb-time {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font: 700 12.5px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  text-shadow: 0 1px 1px #000, 0 0 3px #000;
  white-space: nowrap;
}
.cb-name { left: 8px; right: 52px; overflow: hidden; }
.cb-time { right: 8px; font-size: 11.5px; color: #f4ecd8; }
.dmh-cast-target .cb-icon { width: 22px; height: 22px; }
.dmh-cast-target .cb-glyph { font-size: 13px; }
.dmh-cast-target .cb-bar { height: 15px; }
.dmh-cast-target .cb-name, .dmh-cast-target .cb-time { font-size: 11px; }

/* ================================================================ action bar */
.dmh-bar {
  position: absolute;
  left: 50%;
  bottom: calc(14px + 10px * var(--s));
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: bottom center;
  z-index: 5;
}
.dmh-bar::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 215, 140, 0), rgba(255, 236, 170, 0.95), rgba(240, 215, 140, 0));
}
.ab-row { display: flex; gap: 4px; }
.ab-cap {
  position: relative;
  width: 12px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f6dc8a 0%, #b08a34 45%, #6e5420 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.ab-cap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  transform: rotate(45deg);
  background: #7a1a10;
  border: 1px solid #2a1206;
  box-shadow: 0 0 4px rgba(255, 80, 40, 0.6);
}
.ab-slot {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0c10;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(201, 164, 76, 0.58), inset 0 2px 6px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  pointer-events: auto;
  transition: box-shadow 0.12s ease;
}
.ab-slot:hover { box-shadow: inset 0 0 0 1px #000, 0 0 0 1px var(--gold-hi), 0 0 9px rgba(240, 215, 140, 0.55); }
.ab-slot.empty { cursor: default; }
.ab-slot.empty:hover { box-shadow: inset 0 0 0 1px #000, 0 0 0 1px rgba(201, 164, 76, 0.58), inset 0 2px 6px rgba(0, 0, 0, 0.85); }
.ab-icon {
  --ab: #444;
  --ab-hi: #777;
  --ab-lo: #1a1a1a;
  position: absolute;
  inset: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: radial-gradient(circle at 36% 28%, var(--ab-hi), var(--ab) 58%, var(--ab-lo) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -7px 12px rgba(0, 0, 0, 0.45);
  transition: filter 0.15s ease;
}
.ab-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0) 52%);
}
.ab-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  background: transparent;
  transition: background 0.12s ease;
}
.ab-glyph {
  position: relative;
  font-family: var(--symbols);
  font-size: 23px;
  line-height: 1;
  color: #fff5dc;
  text-shadow: 0 1px 2px #000, 0 0 7px rgba(0, 0, 0, 0.5);
}
.ab-slot.empty .ab-icon {
  background: radial-gradient(circle at 50% 40%, rgba(58, 62, 72, 0.4), rgba(12, 14, 18, 0.7));
  box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.85);
}
.ab-slot.empty .ab-icon::before { display: none; }
.ab-cd {
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  pointer-events: none;
}
.ab-cdtext {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 17px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
}
.ab-key {
  position: absolute;
  top: 2px;
  right: 4px;
  font: 800 11px/1 'Alegreya Sans', sans-serif;
  color: #f2e8cc;
  text-shadow: 0 1px 1px #000, 0 0 2px #000, 0 0 3px #000;
  pointer-events: none;
}
.ab-count {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font: 800 12px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  text-shadow: 0 1px 1px #000, 0 0 3px #000;
  pointer-events: none;
}
.ab-flash {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}
.ab-flash.ready { animation: dmh-ready 0.55s ease-out; }
.ab-flash.learn { animation: dmh-learn 2.6s ease-in-out; }
.ab-slot.press .ab-icon { animation: dmh-press 0.18s ease-out; }
.ab-slot.nores .ab-icon { filter: saturate(0.5) brightness(0.7); }
.ab-slot.nores .ab-icon::after { background: rgba(40, 70, 190, 0.42); }
.ab-slot.unusable .ab-icon, .ab-slot.noitem .ab-icon { filter: grayscale(1) brightness(0.5); }
.ab-slot.oor .ab-icon::after { background: rgba(210, 26, 18, 0.42); }
.ab-slot.oor .ab-key { color: #ff6a5a; }
.ab-slot.active {
  box-shadow: inset 0 0 0 1px #000, 0 0 0 2px #ffe08a, 0 0 12px rgba(255, 210, 90, 0.85);
}
.ab-slot.active .ab-icon { animation: dmh-activeglow 1.4s ease-in-out infinite; }
.ab-slot.cooling .ab-icon { filter: saturate(0.75); }

.ab-mount {
  position: absolute;
  right: -46px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  background: radial-gradient(circle at 38% 30%, #b8864a, #6a4a22 60%, #2a1a08);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px #000, 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 200, 0.25);
}
.ab-mount-glyph { font-family: var(--symbols); font-size: 21px; color: #fff3d8; text-shadow: 0 1px 2px #000; }
.ab-mount:hover { box-shadow: 0 0 0 1px #000, 0 0 10px rgba(240, 215, 140, 0.6); }
.ab-mount.active { border-color: #ffe08a; box-shadow: 0 0 0 2px #ffe08a, 0 0 12px rgba(255, 210, 90, 0.8); }
.ab-mount.unusable { filter: grayscale(0.9) brightness(0.6); }
.ab-mount.press { animation: dmh-press 0.18s ease-out; }

.dmh.is-dead .dmh-bar { filter: grayscale(0.8) brightness(0.8); }

/* ================================================================ XP bar */
.dmh-xp {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 5;
  overflow: hidden;
  background: linear-gradient(180deg, #06070a, #13151b);
  border-top: 1px solid rgba(201, 164, 76, 0.75);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.55);
}
.xp-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(180deg, #c6a0ff 0%, #8446da 46%, #62299e 54%, #3c1674 100%);
  transition: transform 0.4s ease;
}
.dmh-xp.max .xp-fill { background: linear-gradient(180deg, #ffe690 0%, #d8a030 46%, #a87414 54%, #6a4608 100%); }
.dmh-xp.gain .xp-fill { animation: dmh-xpglow 0.9s ease-out; }
.xp-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(5% - 1px), rgba(0, 0, 0, 0.55) calc(5% - 1px), rgba(0, 0, 0, 0.55) 5%);
}
.xp-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 48%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.2));
}
.xp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 'Alegreya Sans', sans-serif;
  letter-spacing: 0.05em;
  color: #f6eeff;
  text-shadow: 0 0 3px #000, 0 1px 1px #000;
}

/* ================================================================ minimap */
.dmh-mm {
  position: absolute;
  top: calc(10px * var(--s));
  right: calc(14px * var(--s));
  width: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(var(--s));
  transform-origin: top right;
  z-index: 5;
}
.mm-head {
  /* wider than the ring (grows to the left) so English site names such as "Sandhold Burial Ground" fit next to the 12-hour clock */
  width: 244px;
  align-self: flex-end;
  height: 27px;
  margin-bottom: 9px;
  padding: 0 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mm-zone {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 13px/1 'Cinzel', Georgia, serif;
  letter-spacing: 0.03em;
  color: #ffd97a;
  text-shadow: 0 1px 2px #000;
}
.mm-zone.long { font-size: 11px; letter-spacing: 0.01em; }
.mm-clock {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 700 12px/1 'Alegreya Sans', sans-serif;
  color: var(--ink);
  text-shadow: 0 1px 1px #000;
}
.mm-ampm { margin-left: -2px; font-size: 9.5px; letter-spacing: 0.04em; opacity: 0.85; }
.mm-sun { font-family: var(--symbols); font-size: 13px; color: #ffd24a; }
.mm-clock.night .mm-sun { color: #bcd4ff; }
.mm-ring {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #0b0d12;
  pointer-events: auto;
  box-shadow:
    0 0 0 2px #1a1206,
    0 0 0 4px var(--gold),
    0 0 0 5px #3a2a0e,
    0 5px 16px rgba(0, 0, 0, 0.65);
}
.mm-canvas {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
}
.mm-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 46%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.mm-n {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 10px/1 'Cinzel', Georgia, serif;
  color: #ffd97a;
  background: radial-gradient(circle at 40% 35%, #33374a, #12141a);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.mm-zbtn {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 40% 35%, #3c414e, #14161c);
  color: var(--gold-hi);
  font: 700 15px/1 'Alegreya Sans', sans-serif;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.mm-zbtn:hover { color: #fff3c8; border-color: var(--gold-hi); box-shadow: 0 0 8px rgba(240, 215, 140, 0.55); }
.mm-zin { left: 161px; top: 117px; }
.mm-zout { left: 124px; top: 157px; }

/* ================================================================ quest tracker */
.dmh-qt {
  position: absolute;
  top: calc(262px * var(--s));
  right: calc(14px * var(--s));
  width: 252px;
  max-height: calc(100vh / var(--ui-scale) - 350px);
  overflow: hidden;
  transform: scale(var(--s));
  transform-origin: top right;
  pointer-events: none;
  z-index: 5;
}
.qt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 4px 6px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(201, 164, 76, 0.45);
  font: 700 13px/1 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
  color: #ffd97a;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
}
.qt-toggle {
  width: 18px;
  height: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(201, 164, 76, 0.7);
  background: linear-gradient(#343945, #171a21);
  color: var(--gold-hi);
  font: 700 13px/1 'Alegreya Sans', sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
.qt-toggle:hover { color: #fff3c8; border-color: var(--gold-hi); }
.dmh-qt.collapsed .qt-list { display: none; }
.dmh-qt.collapsed .qt-head { border-bottom-color: transparent; }
.qt-list { display: flex; flex-direction: column; gap: 7px; }
.qt-q {
  padding: 3px 6px 4px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0), rgba(10, 12, 16, 0.4));
  transition: background 0.15s ease;
}
.qt-q:hover { background: linear-gradient(90deg, rgba(30, 34, 44, 0.55), rgba(30, 34, 44, 0.75)); }
.qt-name {
  font: 700 13.5px/1.2 'Alegreya Sans', sans-serif;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}
.qt-obj {
  position: relative;
  padding-left: 14px;
  font: 500 12.5px/1.3 'Alegreya Sans', sans-serif;
  color: #e6dfcc;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}
.qt-bullet {
  position: absolute;
  left: 3px;
  top: 0;
  color: var(--ink-soft);
}
.qt-obj.ok { color: #9d9d9d; }
.qt-obj.ok .qt-bullet { color: #7fd35a; }
.qt-obj.bump { animation: dmh-bump 1.3s ease-out; }
.qt-ready { color: #ffd100; font-weight: 700; padding-left: 4px; }
.qt-hint { color: var(--ink-soft); font-size: 12px; padding-left: 4px; }
.qt-q.ready .qt-name::after {
  content: ' \2713';
  color: #ffd100;
}

/* ================================================================ chat */
.dmh-chat {
  position: absolute;
  left: calc(14px * var(--s));
  bottom: calc(14px + 12px * var(--s));
  width: 350px;
  height: 200px;
  display: flex;
  flex-direction: column;
  transform: scale(var(--s));
  transform-origin: bottom left;
  pointer-events: auto;
  z-index: 5;
}
.ch-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  flex: none;
}
.ch-tab {
  padding: 4px 12px 3px;
  border: 1px solid rgba(201, 164, 76, 0.5);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(40, 44, 54, 0.85), rgba(20, 22, 28, 0.85));
  color: #cdbf98;
  font: 700 12px/1 'Cinzel', Georgia, serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.ch-tab:hover { opacity: 1; color: #f0dca8; }
.ch-tab.on {
  opacity: 1;
  color: #ffe7a8;
  background: linear-gradient(180deg, rgba(62, 67, 80, 0.95), rgba(28, 31, 38, 0.95));
  border-color: rgba(201, 164, 76, 0.8);
}
.ch-tab.unread { animation: dmh-tabflash 1.2s ease-in-out infinite; }
.ch-hint {
  margin-left: auto;
  padding: 0 4px 5px;
  font: 500 11px/1 'Alegreya Sans', sans-serif;
  color: rgba(232, 224, 200, 0.42);
  text-shadow: 0 1px 1px #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dmh-chat:hover .ch-hint { opacity: 1; }
.ch-logs {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(201, 164, 76, 0.28);
  border-radius: 0 4px 4px 4px;
  background: rgba(8, 10, 14, 0.32);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.dmh-chat.active .ch-logs,
.dmh-chat:hover .ch-logs,
.dmh-chat.typing .ch-logs {
  background: rgba(12, 14, 20, 0.62);
  border-color: rgba(201, 164, 76, 0.55);
}
.ch-log {
  position: absolute;
  inset: 0;
  padding: 5px 8px 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  font: 500 13.5px/1.3 'Alegreya Sans', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 164, 76, 0.5) transparent;
}
.ch-log::-webkit-scrollbar { width: 6px; }
.ch-log::-webkit-scrollbar-thumb { background: rgba(201, 164, 76, 0.45); border-radius: 3px; }
.ch-log::-webkit-scrollbar-track { background: transparent; }
.ch-line {
  margin-bottom: 1px;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 1px #000, 0 0 2px rgba(0, 0, 0, 0.85);
}
.ch-line.k-info { color: #e8e0c8; }
.ch-line.k-system { color: #ffe48a; }
.ch-line.k-loot { color: #6ee07a; }
.ch-line.k-quest { color: #ffd24a; }
.ch-line.k-xp { color: #c69cff; }
.ch-line.k-chat { color: #f7d2b0; }
.ch-line.ch-c-trade { color: #f6c79a; }
.ch-line.ch-c-lfg { color: #e8c2ff; }
.ch-line.k-say { color: #ffffff; }
.ch-line.k-yell { color: #ff5a40; }
.ch-line.k-emote { color: #ff9a4a; }
.ch-chn { opacity: 0.85; }
.ch-name { font-weight: 700; }
.ch-item { font-weight: 700; }
.ch-line.cl-out { color: #f4f0e6; }
.ch-line.cl-crit { color: #ffd84a; }
.ch-line.cl-in { color: #ff7a6a; }
.ch-line.cl-heal { color: #6fe07a; }
.ch-line.cl-miss { color: #bdb6a6; }
.ch-line.cl-kill { color: #ffb070; }
.ch-line.cl-state { color: #9fb6d8; font-style: italic; }
.ch-inrow {
  display: none;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 27px;
  margin-top: 4px;
  padding: 0 7px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: rgba(8, 10, 14, 0.9);
  box-shadow: 0 0 10px rgba(240, 215, 140, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.8);
}
.dmh-chat.typing .ch-inrow { display: flex; }
.ch-prefix {
  flex: none;
  font: 700 12.5px/1 'Alegreya Sans', sans-serif;
  color: #ffd97a;
  white-space: nowrap;
}
.ch-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font: 500 13.5px/1 'Alegreya Sans', sans-serif;
  -webkit-user-select: text;
  user-select: text;
}
.ch-input::placeholder { color: rgba(232, 224, 200, 0.4); }

/* ================================================================ micro menu & money */
.dmh-micro {
  position: absolute;
  right: calc(14px * var(--s));
  bottom: calc(14px + 10px * var(--s));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transform: scale(var(--s));
  transform-origin: bottom right;
  z-index: 5;
}
.mm-money {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  pointer-events: auto;
  font: 700 13px/1 'Alegreya Sans', sans-serif;
  color: #f4ecd8;
  text-shadow: 0 1px 1px #000;
}
.coin {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px 0 1px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.coin:last-child { margin-right: 0; }
.coin.g { background: radial-gradient(circle at 35% 30%, #fff3b0, #e0b020 60%, #8a6a10); }
.coin.s { background: radial-gradient(circle at 35% 30%, #ffffff, #c0c6cc 60%, #6a7078); }
.coin.k { background: radial-gradient(circle at 35% 30%, #ffd0a0, #c0703a 60%, #6a3818); }
.mi-row {
  display: flex;
  gap: 4px;
  padding: 5px 6px;
}
.mi-btn {
  position: relative;
  width: 34px;
  height: 40px;
  padding: 3px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid rgba(201, 164, 76, 0.6);
  background: linear-gradient(180deg, #353a46, #171a21);
  color: #e9d9a6;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.12), inset 0 -8px 12px rgba(0, 0, 0, 0.35);
  transition: color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.mi-btn:hover {
  color: #fff3c8;
  border-color: var(--gold-hi);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.18), 0 0 9px rgba(240, 215, 140, 0.45);
}
.mi-btn:active { transform: translateY(1px); }
.mi-btn.on {
  color: #ffe9a8;
  border-color: #ffd97a;
  background: linear-gradient(180deg, #5c4a22, #2a2210);
}
.mi-ico { width: 20px; height: 20px; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); }
.mi-key {
  margin-top: 1px;
  font: 700 9.5px/1 'Alegreya Sans', sans-serif;
  letter-spacing: 0.03em;
  color: #bfb190;
}
.mi-btn:hover .mi-key, .mi-btn.on .mi-key { color: #f0dca8; }
.mi-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  text-align: center;
  font: 700 10px/15px 'Alegreya Sans', sans-serif;
  color: #e8e0c8;
  background: #1b1d24;
  border: 1px solid var(--gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.mi-badge.full { color: #fff; background: #8a1a12; border-color: #ff8a6a; }

/* ================================================================ center texts */
.dmh-errors,
.dmh-infos {
  position: absolute;
  left: 50%;
  width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
  pointer-events: none;
  z-index: 6;
}
.dmh-errors { top: 13%; }
.dmh-infos { top: calc(13% + 72px * var(--s)); }
.cl-line {
  font: 700 18px/1.22 'Alegreya Sans', sans-serif;
  text-align: center;
  text-shadow: 0 0 3px #000, 0 1px 2px #000, 0 0 10px rgba(0, 0, 0, 0.6);
  animation: dmh-fadehold 2.8s ease forwards;
}
.cl-line.err { color: #ff3a2a; }
.cl-line.info { color: #ffd100; font-size: 17px; }
.cl-line.info.new { color: #fff0b8; }
.cl-line.info.done {
  color: #ffe98a;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.dmh-zonet {
  position: absolute;
  left: 50%;
  top: 19%;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
  pointer-events: none;
  z-index: 6;
}
.dmh-zonet.play { animation: dmh-zone 5s ease forwards; }
.zt-main {
  font: 700 46px/1.1 'Cinzel', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.06em;
  color: #ffe6a0;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.6);
}
.dmh-zonet.play .zt-main { animation: dmh-zonespace 5s ease-out forwards; }
.zt-sub {
  margin-top: 6px;
  font: 600 16px/1.2 'Alegreya Sans', sans-serif;
  letter-spacing: 0.1em;
  color: #eee5cc;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.7);
}
.zt-sub:empty { display: none; }
.zt-sub::before,
.zt-sub::after {
  content: '';
  display: inline-block;
  width: 64px;
  height: 1px;
  margin: 0 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(201, 164, 76, 0), var(--gold));
}
.zt-sub::after { background: linear-gradient(90deg, var(--gold), rgba(201, 164, 76, 0)); }
.dmh-zonet.small { top: 21%; }
.dmh-zonet.small .zt-main { font-size: 28px; }
.dmh-zonet.small .zt-sub { font-size: 13.5px; }

.dmh-levelup {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 560px;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: top center;
  pointer-events: none;
  z-index: 6;
}
.dmh-levelup.play { animation: dmh-level 6s ease forwards; }
.lu-rays {
  position: absolute;
  left: 50%;
  top: -20px;
  width: 460px;
  height: 150px;
  margin-left: -230px;
  background: radial-gradient(ellipse at center, rgba(255, 222, 130, 0.5), rgba(255, 200, 80, 0.14) 45%, rgba(255, 200, 80, 0) 70%);
  opacity: 0;
}
.dmh-levelup.play .lu-rays { animation: dmh-rays 6s ease-out forwards; }
.lu-title {
  position: relative;
  font: 900 56px/1 'Cinzel', Georgia, 'Times New Roman', serif;
  letter-spacing: 0.14em;
  color: #ffe6a0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.55);
}
/* gradient gold titles; declared after .zt-main/.lu-title so text-shadow:none wins (a shadow would paint over
   the transparent, gradient-clipped glyphs) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .dmh .zt-main,
  .dmh .lu-title {
    background-image: linear-gradient(180deg, #fff7dc 0%, #f2d27e 46%, #b8882a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.55));
  }
}
.lu-sub {
  position: relative;
  margin-top: 8px;
  font: 600 17px/1.2 'Alegreya Sans', sans-serif;
  color: #f4ecd8;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.7);
}
.lu-list {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 20px 11px;
}
.lu-list:empty { display: none; }
.lu-head {
  align-self: center;
  font: 700 11.5px/1 'Cinzel', Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd97a;
}
.lu-ab {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 15px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
.lu-ic {
  --ab: #4a4a5a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.35), var(--ab) 60%, #000 130%);
  font-family: var(--symbols);
  font-size: 15px;
  box-shadow: 0 0 8px rgba(255, 210, 110, 0.45);
}

/* ================================================================ nameplates */
.np {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  pointer-events: none;
}
.np-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}
.np-mark {
  display: none;
  font: 900 30px/1 'Cinzel', Georgia, serif;
  color: #ffd100;
  text-shadow: 0 0 3px #000, 0 2px 2px #000, 0 0 12px rgba(255, 200, 40, 0.55);
  animation: dmh-bob 1.6s ease-in-out infinite;
}
.np-mark.grey { color: #c0c0c0; text-shadow: 0 0 3px #000, 0 2px 2px #000; }
.np-marked .np-mark { display: block; }
.np-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 700 13px/1.15 'Alegreya Sans', sans-serif;
  color: #f4ecd8;
  text-shadow: 0 0 3px #000, 0 1px 1px #000, 0 0 2px #000;
}
.np-lvl { font-weight: 800; font-size: 12px; }
.np-qm {
  display: none;
  font-family: var(--symbols);
  font-size: 10px;
  color: #ffd24a;
  text-shadow: 0 0 3px #000;
}
.np-quest .np-qm { display: inline; }
.np-title {
  display: none;
  font: 600 11.5px/1.15 'Alegreya Sans', sans-serif;
  color: #c8e6b4;
  text-shadow: 0 0 3px #000, 0 1px 1px #000;
}
.np-hp {
  position: relative;
  width: 92px;
  height: 7px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.35);
}
.np-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(180deg, #ff7a5a 0%, #d0281c 50%, #8a120a 100%);
}
.np-neutral .np-fill { background: linear-gradient(180deg, #fff08a 0%, #e0b420 50%, #8a6a08 100%); }
.np-cast {
  display: none;
  position: relative;
  width: 80px;
  height: 5px;
  margin-top: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 180, 60, 0.4);
}
.np-cfill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  background: linear-gradient(180deg, #ffe690, #d08a10);
}
.np-casting .np-cast { display: block; }
.np-elite .np-hp { box-shadow: 0 0 0 1px rgba(255, 215, 110, 0.85); }
.np-aggro .np-hp { box-shadow: 0 0 0 1px rgba(255, 60, 40, 0.9), 0 0 6px rgba(255, 40, 20, 0.6); }
.np-target .np-name { color: #ffffff; }
.np-target .np-hp {
  width: 108px;
  height: 9px;
  box-shadow: 0 0 0 1px #ffe08a, 0 0 8px rgba(255, 215, 110, 0.7);
}
.np-target .np-in::before {
  content: '';
  order: -1;
  width: 0;
  height: 0;
  margin-bottom: 3px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #ffd97a;
  filter: drop-shadow(0 1px 1px #000);
  animation: dmh-bob 1.2s ease-in-out infinite;
}
.np-npc .np-name { color: #8fe07a; }
.np-npc .np-lvl, .np-npc .np-hp, .np-npc .np-cast, .np-npc .np-qm { display: none; }
.np-npc .np-title { display: block; }
.np-npc.np-marked .np-in::before { display: none; }
.np-adv .np-name { color: #8fc8ff; }
.np-far .np-title { display: none !important; }
.np-far .np-name { font-size: 12px; opacity: 0.82; }
.np-mob .np-mark, .np-mob .np-title { display: none; }
.np-loot .np-name, .np-loot .np-hp, .np-loot .np-cast, .np-loot .np-title { display: none; }
.np-loot .np-mark {
  display: block;
  font-family: var(--symbols);
  font-size: 18px;
  color: #ffe27a;
  animation: dmh-sparkle 1.4s ease-in-out infinite;
}

/* ================================================================ floating combat text */
.ft {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.ft-in {
  display: inline-block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 800 21px/1 'Alegreya Sans', 'Segoe UI', sans-serif;
  color: #ffffff;
  text-shadow: 0 0 2px #000, 0 1px 2px #000, 0 0 4px #000;
}
.ft-in.pop { animation: dmh-pop 0.18s ease-out; }
.ft-small .ft-in { font-size: 16px; }
.ft-damage .ft-in { color: #ffffff; }
.ft-spell .ft-in { color: #fff0b0; }
.ft-crit .ft-in { color: #ffd23a; font-size: 29px; }
.ft-crit .ft-in.pop { animation: dmh-critpop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.ft-incoming .ft-in { color: #ff4a36; font-size: 18px; }
.ft-incoming-crit .ft-in { color: #ff2a1a; font-size: 24px; }
.ft-heal .ft-in { color: #5cff6a; }
.ft-healcrit .ft-in { color: #7aff6a; font-size: 27px; }
.ft-heal.ft-small .ft-in { font-size: 15px; }
.ft-xp .ft-in { color: #c69cff; font-size: 17px; }
.ft-miss .ft-in { color: #efe6d0; font-size: 16px; font-weight: 700; }
.ft-money .ft-in { color: #ffd24a; font-size: 16px; }
.ft-level .ft-in {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 900;
  font-size: 26px;
  color: #ffe08a;
  text-shadow: 0 0 3px #000, 0 2px 2px #000, 0 0 14px rgba(255, 200, 60, 0.7);
}
.ft-info .ft-in { color: #ffd97a; font-size: 17px; }
.ft-error .ft-in { color: #ff5a4a; font-size: 17px; }
.ft-loot .ft-in { color: #6ee07a; font-size: 16px; }

/* ================================================================ fallback tooltip */
.dmh-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  max-width: 320px;
  padding: 8px 11px 9px;
  font: 500 13px/1.35 'Alegreya Sans', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(20, 22, 30, 0.97), rgba(10, 12, 16, 0.97));
  pointer-events: none;
}

/* ================================================================ classes: resources, crest, pet, totems, extra bars */
/* primary bars for the new resources (CLASSES-DESIGN.md C.1.3) */
.res-focus .uf-fill { background: linear-gradient(180deg, #ffc890 0%, #e8862a 46%, #c06a14 54%, #6e3a08 100%); }
.res-runic .uf-fill { background: linear-gradient(180deg, #b8f0ff 0%, #3fb8d8 46%, #2090b0 54%, #0e4a60 100%); }
.res-fury .uf-fill { background: linear-gradient(180deg, #e8b8ff 0%, #a03cd8 46%, #7a22b0 54%, #3e0a62 100%); }
/* druid in Bear/Cat: thin mana bar under the primary one */
.uf-mana2 { height: 5px; box-shadow: 0 0 0 1px rgba(201, 164, 76, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.85); }
.dmh-uf.has-mana2 .uf-res { height: 11px; }
.dmh-uf.has-mana2 .uf-body { gap: 2px; }

/* pips / runes row hanging under the player frame */
.dmh-player .uf-pips {
  position: absolute;
  left: 26px;
  top: calc(100% - 1px);
  height: auto;
  margin: 0;
  padding: 3px 7px 4px;
  gap: 5px;
  align-items: center;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(26, 28, 36, 0.92), rgba(12, 13, 18, 0.92));
  border: 1px solid rgba(201, 164, 76, 0.6);
  border-top: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: default;
}
.uf-pips {
  --pip: #ffb020; --pip-hi: #fff4b0; --pip-lo: #b05a00; --pip-glow: rgba(255, 190, 60, 0.85);
}
.uf-pips.sec-combo { --pip: #e8483a; --pip-hi: #ffd6c0; --pip-lo: #7a1408; --pip-glow: rgba(255, 90, 60, 0.85); }
.uf-pips.sec-holy { --pip: #f2c94c; --pip-hi: #fff8d0; --pip-lo: #9a7210; --pip-glow: rgba(255, 220, 90, 0.9); }
.uf-pips.sec-chi { --pip: #4fd6a0; --pip-hi: #d8fff0; --pip-lo: #137a50; --pip-glow: rgba(90, 240, 180, 0.85); }
.uf-pips.sec-essence { --pip: #38c0b8; --pip-hi: #d0fffa; --pip-lo: #0e6a66; --pip-glow: rgba(70, 230, 220, 0.85); }
.uf-pips.sec-shards { --pip: #a45ae8; --pip-hi: #f0d8ff; --pip-lo: #4a1a7a; --pip-glow: rgba(190, 110, 255, 0.85); }
.uf-pips i.lit {
  background: radial-gradient(circle at 40% 40%, var(--pip-hi), var(--pip) 58%, var(--pip-lo));
  border-color: var(--pip-hi);
  box-shadow: 0 0 6px var(--pip-glow);
}
.uf-pips.sec-holy i, .uf-pips.sec-chi i, .uf-pips.sec-essence i {
  width: 11px; height: 11px; margin-top: 0; border-radius: 50%; transform: none;
}
.uf-pips.sec-shards i {
  width: 9px; height: 13px; margin-top: 0; transform: none;
  clip-path: polygon(50% 0, 100% 38%, 72% 100%, 28% 100%, 0 38%);
  border: 0; background: #2a1a3a;
}
.uf-pips.sec-shards i.lit { background: linear-gradient(180deg, var(--pip-hi), var(--pip) 55%, var(--pip-lo)); box-shadow: none; filter: drop-shadow(0 0 3px var(--pip-glow)); }
.uf-pips i.part { background: conic-gradient(var(--pip) calc(var(--p, 0) * 360deg), #1e130a 0); border-color: var(--pip-lo); }
.uf-pips.runes { gap: 4px; }
.uf-pips.runes i {
  width: 13px; height: 13px; margin-top: 0; border-radius: 50%; transform: none;
  background: conic-gradient(rgba(143, 179, 200, 0.6) calc(var(--p, 0) * 360deg), #0e1318 0);
  border: 1px solid #3a4a58;
  box-shadow: inset 0 0 3px #000;
}
.uf-pips.runes i.lit {
  background: radial-gradient(circle at 40% 35%, #f0fbff, #8fc4e0 55%, #2a5a78);
  border-color: #cfeaff;
  box-shadow: 0 0 6px rgba(140, 200, 255, 0.8);
}

/* faction crest on the portrait ring */
.uf-crest {
  position: absolute;
  left: -7px;
  top: -8px;
  width: 25px;
  height: 30px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}
.dmh-target .uf-crest { left: auto; right: -7px; }
.uf-crest svg { display: block; width: 100%; height: 100%; }
.uf-crest-fb {
  display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--gold); color: #fff3d0; font: 12px/1 var(--symbols);
}
/* crowd control on the target portrait */
.uf-cc {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 4;
  transform: translateX(-50%);
  padding: 1px 5px 0;
  border-radius: 3px;
  background: rgba(58, 10, 42, 0.92);
  border: 1px solid #e060a0;
  color: #ffe0f0;
  font: 700 9px/1.35 'Alegreya Sans', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* pet frame and totem timers, under the player frame */
.dmh-under {
  position: absolute;
  left: calc(22px * var(--s));
  top: calc(106px * var(--s));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transform: scale(var(--s));
  transform-origin: top left;
  z-index: 5;
  pointer-events: none;
}
.dmh-pet {
  position: relative;
  display: flex;
  align-items: center;
  width: 198px;
  height: 46px;
  pointer-events: auto;
  cursor: pointer;
}
.pf-portrait { position: relative; flex: none; width: 44px; height: 44px; z-index: 2; }
.uf-disc.pf-disc { left: 1px; top: 1px; width: 42px; height: 42px; }
.pf-disc .uf-glyph { font-size: 20px; }
.pf-disc .uf-glyph.is-initial { font-size: 19px; }
.pf-lvl {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  z-index: 3;
  text-align: center;
  font: 700 9.5px/17px 'Cinzel', Georgia, serif;
  color: #f6e7b0;
  background: radial-gradient(circle at 40% 35%, #333743, #0e1015);
  border: 1px solid var(--gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
.pf-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 36px;
  margin-left: -10px;
  padding: 3px 7px 3px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(180deg, rgba(30, 44, 34, 0.9) 0%, rgba(16, 20, 18, 0.92) 100%);
  border: 1px solid rgba(201, 164, 76, 0.7);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65), 0 3px 8px rgba(0, 0, 0, 0.55);
}
.pf-namerow { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; min-width: 0; height: 12px; }
.pf-name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 11px/1.1 'Cinzel', Georgia, serif; color: #8fe07a; text-shadow: 0 1px 2px #000;
}
.pf-state { flex: none; font: 700 8.5px/1 'Alegreya Sans', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.uf-bar.pf-hp { height: 12px; }
.pf-hp .uf-text { font-size: 9.5px; }
.dmh-pet.dead .pf-disc { filter: grayscale(1) brightness(0.6); }
.dmh-pet.dead .pf-body { filter: saturate(0.3); }
.dmh-pet.targeted .pf-disc { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 3px #2a1f0a, 0 0 10px rgba(255, 220, 120, 0.75); }
.dmh-pet.in-combat .pf-disc { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 2px #e0582a, 0 0 0 3px #2a0f06, 0 0 10px rgba(255, 70, 40, 0.6); }
.dmh-totems { display: flex; gap: 5px; pointer-events: none; }
.tt-item { display: flex; flex-direction: column; align-items: center; width: 32px; pointer-events: auto; cursor: default; }
.au-icon.tt-icon { width: 30px; height: 30px; border-color: var(--tc, var(--gold)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 6px var(--tc, transparent), 0 1px 3px rgba(0, 0, 0, 0.75); }
.tt-icon .au-glyph { font-size: 17px; }
.tt-item.expiring .tt-icon { animation: dmh-blink 0.9s ease-in-out infinite; }
.tt-item.expiring .au-time { color: #ffb070; }
.au-count {
  position: absolute;
  right: 1px;
  bottom: 0;
  font: 800 10px/1 'Alegreya Sans', sans-serif;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 1px 1px #000;
  pointer-events: none;
}

/* stance bar (left) and Bar 2 (right) above the main bar; the pet bar above them */
.dmh-barup,
.dmh-petbar {
  position: absolute;
  left: 50%;
  bottom: calc(14px + 78px * var(--s));
  width: 626px;
  display: flex;
  align-items: flex-end;
  transform: translateX(-50%) scale(var(--s));
  transform-origin: bottom center;
  z-index: 5;
  pointer-events: none;
}
.dmh-petbar { justify-content: center; }
.dmh.has-barup .dmh-petbar { bottom: calc(14px + 124px * var(--s)); }
.ab-upgap { flex: 1; }
.dmh-barup .ab-row,
.dmh-petbar .ab-row {
  gap: 3px;
  padding: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(42, 46, 57, 0.82) 0%, rgba(20, 22, 29, 0.86) 100%);
  border: 1px solid rgba(201, 164, 76, 0.6);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.5);
}
.ab-slot.sm { width: 36px; height: 36px; }
.ab-slot.sm .ab-glyph { font-size: 19px; }
.ab-slot.sm .ab-key { top: 1px; right: 3px; font-size: 9px; }
.ab-slot.sm .ab-cdtext { font-size: 14px; }
.ab-slot.sm .ab-count { font-size: 10.5px; right: 3px; }
.ab-slot.pet { width: 32px; height: 32px; }
.ab-slot.pet .ab-glyph { font-size: 17px; }
.ab-slot.autocast .ab-icon::after { border: 2px dotted rgba(255, 226, 130, 0.95); border-radius: 3px; }
.ab-slot.autocast .ab-icon { animation: dmh-autocast 2.4s ease-in-out infinite; }
.ab-slot.charging .ab-cd { opacity: 0.5; }
.dmh.has-barup .dmh-castwrap-player { bottom: calc(14px + 160px * var(--s)); }
.dmh.has-barup.has-petbar .dmh-castwrap-player { bottom: calc(14px + 176px * var(--s)); }
.dmh.is-dead .dmh-barup, .dmh.is-dead .dmh-petbar { filter: grayscale(0.8) brightness(0.8); }

/* empowered casts: rank ticks and a fill that brightens rank by rank; crowd control in the cast slot */
.cb-ticks { position: absolute; inset: 0; pointer-events: none; display: none; }
.dmh-cast.empower .cb-ticks { display: block; }
.cb-ticks i {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, #fff6d0, #c9a44c);
  box-shadow: 0 0 3px #000;
}
.dmh-cast.empower .cb-fill { background: linear-gradient(180deg, #d0b8ff 0%, #8a5ae0 46%, #6a3ac0 54%, #341a70 100%); }
.dmh-cast.empower.rank-2 .cb-fill { background: linear-gradient(180deg, #b8e8ff 0%, #4aa8f0 46%, #2a80d0 54%, #123a70 100%); }
.dmh-cast.empower.rank-3 .cb-fill, .dmh-cast.empower.maxed .cb-fill { background: linear-gradient(180deg, #fff0b0 0%, #f0b030 46%, #d08a10 54%, #6a4006 100%); }
.dmh-cast.empower.maxed .cb-bar { box-shadow: 0 0 0 1px #ffe08a, 0 0 12px rgba(255, 200, 80, 0.8), inset 0 1px 3px rgba(0, 0, 0, 0.85); }
.dmh-cast.cc .cb-fill { background: linear-gradient(180deg, #ffb0d8 0%, #d0408a 46%, #a82a6a 54%, #5a0e34 100%); }
.dmh-cast.cc .cb-spark { display: none; }

/* nameplates: pets (name, <Owner's Pet>, small health bar) and totems (small name only) */
.np-pet .np-name { color: #8fe07a; }
.np-pet .np-title { display: block; }
.np-pet .np-lvl, .np-pet .np-qm, .np-pet .np-cast, .np-pet .np-mark { display: none; }
.np-pet .np-hp { width: 64px; height: 5px; }
.np-pet .np-fill { background: linear-gradient(180deg, #9af08a 0%, #34b02e 50%, #125a11 100%); }
.np-pet.np-hostile .np-name { color: #ff6a5a; }
.np-fac { display: inline-block; width: 11px; height: 13px; align-self: center; filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 1px #000); }
.np-fac svg { display: block; width: 100%; height: 100%; }
.np-far .np-fac { display: none; }
.np-totem .np-name { font-size: 11px; color: #bfe8b0; opacity: 0.9; }
.np-totem .np-lvl, .np-totem .np-hp, .np-totem .np-cast, .np-totem .np-qm, .np-totem .np-title, .np-totem .np-mark { display: none; }

/* ================================================================ keyframes */
@keyframes dmh-autocast {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.25) saturate(1.2); }
}
@keyframes dmh-fadehold {
  0% { opacity: 0; transform: translateY(5px); }
  7% { opacity: 1; transform: none; }
  72% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dmh-zone {
  0% { opacity: 0; }
  14% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dmh-zonespace {
  0% { letter-spacing: 0.16em; }
  100% { letter-spacing: 0.06em; }
}
@keyframes dmh-level {
  0% { opacity: 0; }
  5% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes dmh-rays {
  0% { opacity: 0; transform: scale(0.4); }
  10% { opacity: 1; transform: scale(1.08); }
  30% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes dmh-lowpulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes dmh-press {
  0% { transform: scale(0.9); filter: brightness(1.5); }
  100% { transform: scale(1); filter: none; }
}
@keyframes dmh-ready {
  0% { opacity: 0.95; background: radial-gradient(circle, rgba(255, 255, 230, 0.9), rgba(255, 220, 120, 0.3) 60%, rgba(255, 220, 120, 0) 80%); }
  100% { opacity: 0; background: radial-gradient(circle, rgba(255, 255, 230, 0.9), rgba(255, 220, 120, 0.3) 60%, rgba(255, 220, 120, 0) 80%); }
}
@keyframes dmh-learn {
  0%, 50%, 100% { opacity: 0; box-shadow: inset 0 0 0 2px #ffe08a, inset 0 0 14px rgba(255, 210, 90, 0.9); }
  25%, 75% { opacity: 1; box-shadow: inset 0 0 0 2px #ffe08a, inset 0 0 14px rgba(255, 210, 90, 0.9); }
}
@keyframes dmh-activeglow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}
@keyframes dmh-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes dmh-pip {
  0% { transform: rotate(45deg) scale(1.7); }
  100% { transform: rotate(45deg) scale(1); }
}
@keyframes dmh-bump {
  0% { color: #fff6c8; text-shadow: 0 0 8px rgba(255, 220, 110, 0.95), 0 1px 2px #000; }
  100% { text-shadow: 0 1px 2px #000, 0 0 3px #000; }
}
@keyframes dmh-tabflash {
  0%, 100% { color: #cdbf98; box-shadow: none; }
  50% { color: #fff0c0; box-shadow: 0 0 8px rgba(255, 215, 110, 0.55); }
}
@keyframes dmh-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes dmh-sparkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes dmh-xpglow {
  0% { filter: brightness(1.8) saturate(1.3); }
  100% { filter: none; }
}
@keyframes dmh-pop {
  0% { transform: translate(-50%, -50%) scale(1.35); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes dmh-critpop {
  0% { transform: translate(-50%, -50%) scale(2.1); }
  45% { transform: translate(-50%, -50%) scale(0.92); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .np-mark, .np-target .np-in::before, .np-loot .np-mark, .dmh-lowhp.on, .ab-slot.active .ab-icon, .ch-tab.unread { animation: none !important; }
}
