/* Study Quest — hud.css · EMBER & IRON (docs/DESIGN.md is law)
 * The always-on-screen HUD (ui-hud.js), toasts & banners (#toast-layer), the boot screen (#boot) and the scene box.
 * Materials and ornaments come from theme.css tokens (--cx-*); component-only ornaments (the hooded sentinels at the
 * action bar's ends, the thorned minimap bezel, the portrait socket, the level lozenge) are generated by
 * work/art-skin/gen/skin-orn.mjs and written straight into their one rule (DESIGN §5/§11).
 * The HUD stays dark and quiet in the corner of the eye: blackened iron, smoked steel and soot; bronze rims; ember
 * only for what is lit (XP, the ready action, the selection, focus).
 * No idle loops on the HUD (DESIGN §9): every animation here is a one-off reaction to the player's own input.
 * Layout is tuned for 1440x900, 1280x800, 1024x700, 900x600 and compact 480x360.
 */

/* ------------------------------------------------------------------ Scene box */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: #0a0807;
}

/* ------------------------------------------------------------------ HUD root */
.hud, #toast-layer {
  /* the HUD plate: smoked steel in a bronze hairline, a soot groove and a cold steel lip, iron corner caps
     (scoped here, never on :root) */
  --hud-plate: var(--cx-caps), var(--cx-bg-smoke);
  --hud-plate-sh: inset 0 1px 0 rgba(196, 204, 214, 0.10), inset 0 0 0 1px rgba(176, 122, 60, 0.55), inset 0 0 0 3px rgba(5, 5, 6, 0.86),
    inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 4px 14px rgba(0, 0, 0, 0.6);
  --outline: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 0 1px 3px rgba(0, 0, 0, 0.9);
  /* dark bronze, lit from the top-left (legacy name) */
  --brass: linear-gradient(135deg, #f2c97a 0%, #c48a45 24%, #86592a 58%, #3e2711 100%);
  /* blackened iron, lit from the top-left */
  --iron-ring: linear-gradient(135deg, #6d747c 0%, #3a3f46 30%, #1b1d21 66%, #0a0b0d 100%);
}
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  font-family: var(--cx-font-body);
  color: var(--cx-text);
  --ab: 46px;
  --ab-gap: 5px;
  --xp-h: 17px;
  --xp-bottom: 5px;
  --bar-top: 84px;          /* height of the XP bar + action bar row */
  --chat-lines: 6;
  --frame-hud: var(--hud-plate);
  --trim: #7a5229;
}
.hud.no-char > * { display: none !important; }
.hud button { font-family: inherit; }
.hud .uf-plate, .hud .uf-portrait, .hud .buff, .hud .zl, .hud .rf, .hud .pf, .hud .mm-ring, .hud .mm-clock,
.hud .mm-btn, .hud .trk, .hud .chat, .hud .ss, .hud .ab-plate, .hud .xp, .hud .cx-btn {
  pointer-events: auto;
}
.hud button:focus { outline: none; }
.hud button:focus-visible { outline: 2px solid var(--cx-torch); outline-offset: 2px; }

/* Shared bar text (resource bar, boss HP) */
.hud .bar-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font: 700 11px/1 var(--cx-font-num);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cx-bone);
  text-shadow: var(--outline);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}
.hud .bar-text.center { justify-content: center; }
.hud .dot::before { content: '\00b7'; margin: 0 5px; color: rgba(235, 228, 214, 0.45); }

/* Small HUD buttons (run frame, phone frame): blackened iron plates with a bronze hairline (= .codex-btn--sm) */
.hbtn {
  --_tint: linear-gradient(180deg, rgba(210, 220, 235, 0.12), rgba(210, 220, 235, 0) 2px, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.2));
  --_base: linear-gradient(180deg, #34383e 0%, #222529 55%, #141619 100%);
  --_hair: rgba(176, 122, 60, 0.5);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 1px 9px 0;
  font: 700 12px/1 var(--cx-font-label);
  letter-spacing: 0.04em;
  color: var(--cx-text);
  text-shadow: var(--cx-sh-text-dark);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--cx-caps), var(--_tint), var(--cx-tex-iron), var(--_base);
  box-shadow: inset 0 0 0 1px var(--_hair), 0 2px 0 rgba(0, 0, 0, 0.55), 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: color var(--cx-dur-quick) var(--cx-ease);
}
.hbtn:hover { color: var(--cx-gold-leaf); --_hair: rgba(226, 181, 106, 0.85); --_tint: linear-gradient(180deg, rgba(210, 220, 235, 0.16), rgba(210, 220, 235, 0) 2px, rgba(0, 0, 0, 0) 55%, rgba(255, 138, 61, 0.16)); }
.hbtn:active, .hbtn.pressed { transform: translateY(1px); --_tint: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.04)); }
.hbtn .icon { width: 13px; height: 13px; }
.hbtn kbd { font-size: 11px; padding: 0 2px; line-height: 13px; }
.hbtn-go {
  /* the one bronze plate of a frame: carved pale-gold letters on dark bronze */
  --_base: linear-gradient(180deg, #a8783e 0%, #80552a 22%, #5a3a18 60%, #3a240e 100%);
  --_tint: linear-gradient(180deg, rgba(255, 228, 166, 0.28), rgba(255, 228, 166, 0) 2px);
  --_hair: rgba(242, 201, 122, 0.7);
  color: #f7e3b2;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 214, 150, 0.16);
  background: var(--_tint), var(--cx-tex-gilt), var(--_base);
}
.hbtn-go:hover { color: #fff3d2; --_hair: rgba(255, 224, 160, 0.95); --_tint: linear-gradient(180deg, rgba(255, 228, 166, 0.3), rgba(255, 228, 166, 0) 2px, rgba(255, 138, 61, 0) 50%, rgba(255, 138, 61, 0.24)); }
.hbtn-ghost { --_base: linear-gradient(180deg, #1f2226, #141619); }
.hbtn.armed {
  --_base: linear-gradient(180deg, #7c2216 0%, #5a160e 55%, #330a06 100%);
  --_hair: rgba(232, 161, 122, 0.8);
  color: #fff4ea;
  background: var(--cx-caps), var(--_tint), var(--cx-tex-iron), var(--_base);
}

/* ================================================================== UNIT FRAME
 * The portrait sits in a recessed socket — a forged iron ring with a bronze bezel and five rivets — with the level on
 * an iron lozenge at its foot; the name on a smoked-steel nameplate in iron; the class resource as molten metal in an
 * iron channel. */
.uf {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 330px;
  height: 100px;
  --class-color: #ffd100;
}
.uf-portrait {
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 50%;
  z-index: 2;
  cursor: pointer;
  background: #07080a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
}
.uf-pc {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2a3038, #0e1013 62%, #07080a 100%);
}
.uf-ring {
  /* the forged socket: iron band, engraved groove, bronze bezel, five bronze rivets */
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cdefs%3E%3CradialGradient id='ir' cx='.28' cy='.22' r='.85' %3E%3Cstop offset='0' stop-color='%234d5258'/%3E%3Cstop offset='0.28' stop-color='%232a2e33'/%3E%3Cstop offset='0.62' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2309090b'/%3E%3C/radialGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='88' y2='88'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='rv' cx='.38' cy='.34' r='.75' %3E%3Cstop offset='0' stop-color='%23ffe2a0'/%3E%3Cstop offset='0.35' stop-color='%23c99048'/%3E%3Cstop offset='0.75' stop-color='%236e4720'/%3E%3Cstop offset='1' stop-color='%232c1a08'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.3' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.24' numOctaves='2' seed='7' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='3' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='3' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='bv2' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.6' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='2' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='1.6' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='1.6' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M87.4,44 A43.4,43.4 0 1,0 0.6,44 A43.4,43.4 0 1,0 87.4,44 Z M79.6,44 A35.6,35.6 0 1,1 8.4,44 A35.6,35.6 0 1,1 79.6,44 Z' fill-rule='evenodd' fill='url(%23ir)' stroke='%23030304' stroke-width='1' filter='url(%23bv)'/%3E%3Ccircle cx='44' cy='44' r='39.6' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.2'/%3E%3Ccircle cx='44.5' cy='44.6' r='39.6' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M80.6,44 A36.6,36.6 0 1,0 7.4,44 A36.6,36.6 0 1,0 80.6,44 Z M78.2,44 A34.2,34.2 0 1,1 9.8,44 A34.2,34.2 0 1,1 78.2,44 Z' fill-rule='evenodd' fill='url(%23bz)' stroke='%23120a03' stroke-width='.7' filter='url(%23bv2)'/%3E%3Ccircle cx='44' cy='44' r='34.1' fill='none' stroke='%23000' stroke-opacity='.85' stroke-width='1.4'/%3E%3Ccircle cx='44.58' cy='5.2' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='44' cy='4.4' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='43.26' cy='3.57' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='78.87' cy='25.01' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='78.29' cy='24.2' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='77.56' cy='23.37' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='78.87' cy='64.61' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='78.29' cy='63.8' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='77.56' cy='62.97' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='10.28' cy='64.61' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='9.71' cy='63.8' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='8.97' cy='62.97' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='10.28' cy='25' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='9.71' cy='24.2' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='8.97' cy='23.37' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 14px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.uf-portrait:hover .uf-ring { box-shadow: inset 0 0 14px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 138, 61, 0.38); }
.uf-rest-glow {
  /* rested: a calm cold-steel-blue halo round the socket (static — never pulses) */
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 9px 2px rgba(110, 150, 220, 0.62), inset 0 0 8px rgba(110, 150, 220, 0.3);
  transition: opacity 1.2s ease;
}
.uf.rested .uf-rest-glow { opacity: 1; }

/* V7.2.0 (no Auto talents): a talent point waits. A glowing ember-and-gold plaque under the plate, the star breathing
   slowly (static glow under reduced motion); the buffs step one row down while it shows. */
.uf-talent {
  position: absolute;
  left: 98px;
  top: 84px;
  height: 25px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 7px 0 4px;
  border: 1px solid rgba(0, 0, 0, 0.75);
  border-radius: 13px;
  color: #ffe1a8;
  font: 700 12.5px/1 var(--cx-font-label);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000;
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(120, 58, 16, 0.92), rgba(42, 20, 6, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.25), inset 0 0 0 1px rgba(255, 170, 90, 0.55), 0 0 0 1px #050506, 0 0 10px 1px rgba(255, 150, 60, 0.6), 0 3px 8px rgba(0, 0, 0, 0.6);
  animation: ufTalentGlow 2.6s ease-in-out infinite;
}
.uf.has-talents .uf-talent { display: inline-flex; }
.uf.has-talents .uf-buffs { top: 116px; }
.uf-talent-star {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffd27a;
  background: radial-gradient(circle at 50% 46%, #2a1a0a 0, #120a04 6.5px, rgba(0, 0, 0, 0) 7.2px), linear-gradient(135deg, #f2c97a 0%, #c48a45 24%, #86592a 58%, #3e2711 100%);
  box-shadow: 0 0 0 1px #050506, 0 0 7px rgba(255, 190, 90, 0.85);
}
.uf-talent-star .icon { width: 12px; height: 12px; filter: drop-shadow(0 0 3px rgba(255, 200, 100, 0.9)); }
.uf-talent-key {
  min-width: 16px;
  padding: 2px 4px 1px;
  border-radius: 3px;
  font: 700 11px/1 var(--cx-font-num);
  color: var(--cx-bone);
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.35);
}
.uf-talent:hover { color: #fff3d0; box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.3), inset 0 0 0 1px rgba(255, 190, 110, 0.8), 0 0 0 1px #050506, 0 0 16px 3px rgba(255, 170, 80, 0.8), 0 3px 8px rgba(0, 0, 0, 0.6); }
@keyframes ufTalentGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.25), inset 0 0 0 1px rgba(255, 170, 90, 0.55), 0 0 0 1px #050506, 0 0 7px 0 rgba(255, 150, 60, 0.45), 0 3px 8px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 220, 160, 0.3), inset 0 0 0 1px rgba(255, 190, 110, 0.75), 0 0 0 1px #050506, 0 0 15px 3px rgba(255, 170, 80, 0.85), 0 3px 8px rgba(0, 0, 0, 0.6); }
}

.uf-plate {
  position: absolute;
  left: 54px;
  top: 12px;
  width: 270px;
  height: 66px;
  padding: 6px 12px 4px 44px;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-r-1);
  background:
    var(--cx-orn-cap-tr) right 1px top 1px / 9px 9px no-repeat,
    var(--cx-orn-cap-br) right 1px bottom 1px / 9px 9px no-repeat,
    linear-gradient(90deg, rgba(5, 6, 7, 0.55), rgba(5, 6, 7, 0) 30%),
    var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.5), inset 0 0 0 3px rgba(5, 5, 6, 0.85),
    inset 0 0 0 4px rgba(138, 145, 154, 0.12), inset 0 -10px 16px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.uf-name {
  font: 700 17px/20px var(--cx-font-head);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.85), 0 1px 2px #000;
}
.uf-n { color: var(--class-color); }
.uf-t { color: var(--cx-text-dim); font-size: 13px; }
.uf-res {
  position: relative;
  height: 15px;
  margin: 2px 0 3px;
  border: 1px solid #000;
  border-radius: 2px;
  background: linear-gradient(180deg, #040405, #0c0e10 60%, #15181c);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.92), 0 0 0 1px #3a3f46, 0 1px 0 1px rgba(196, 204, 214, 0.06);
  overflow: hidden;
  --res: var(--cx-bar-capital);
  cursor: help;
}
.uf-res-fill, .uf-res-next {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  transition: width 0.6s var(--cx-ease), left 0.6s var(--cx-ease);
}
.uf-res-fill { background: var(--cx-bar-enamel), var(--res); }
.uf-res-next { background: var(--res); opacity: 0.26; }
.uf-res.full .uf-res-fill { box-shadow: inset 0 0 6px rgba(255, 240, 200, 0.3); }
.uf-res.pulse .uf-res-fill { animation: resPulse 0.9s ease-out; }
@keyframes resPulse { 0% { opacity: 0.55; } 100% { opacity: 1; } }
.uf-res-segs i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 1px 0 0 rgba(196, 204, 214, 0.08);
}
.uf-res .bar-text .l { font: 700 12px/1 var(--cx-font-label); letter-spacing: 0.04em; }
.uf-sub {
  font: 400 14px/17px var(--cx-font-body);
  color: var(--cx-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px #000;
}
/* v5-final-fix (player check L4): a sub line or boss name that would end in an ellipsis is set a little tighter first */
.uf-sub.is-snug { font-size: 13px; letter-spacing: -0.01em; }
.rf-name.is-snug { letter-spacing: 0; }
.uf-level {
  /* the level on a forged iron lozenge at the socket's foot: bronze rim, banked-ember enamel */
  position: absolute;
  left: 27px;
  top: 70px;
  width: 34px;
  height: 34px;
  padding: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--cx-font-num);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cx-gold-leaf);
  text-shadow: 0 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.9);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cdefs%3E%3ClinearGradient id='ir' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='34' y2='34'%3E%3Cstop offset='0' stop-color='%234d5258'/%3E%3Cstop offset='0.28' stop-color='%232a2e33'/%3E%3Cstop offset='0.62' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2309090b'/%3E%3C/linearGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='34' y2='34'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='em' cx='.42' cy='.36' r='.75' %3E%3Cstop offset='0' stop-color='%237a2a12'/%3E%3Cstop offset='0.5' stop-color='%2345130a'/%3E%3Cstop offset='1' stop-color='%231c0605'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.9' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='4' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='2.4' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='2.4' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M17,0.8 L33.2,17 L17,33.2 L0.8,17 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='1' filter='url(%23bv)'/%3E%3Cpath d='M17,4.2 L29.8,17 L17,29.8 L4.2,17 Z' fill='url(%23bz)' stroke='%23120a03' stroke-width='.8'/%3E%3Cpath d='M17,6.6 L27.4,17 L17,27.4 L6.6,17 Z' fill='url(%23em)' stroke='%23000' stroke-width='.9'/%3E%3Cpath d='M17,7.6 L26.2,17' stroke='%23ffb070' stroke-opacity='.22' stroke-width='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.uf-zzz {
  position: absolute;
  left: 74px;
  top: -6px;
  z-index: 3;
  display: none;
  font: 700 14px/1 var(--cx-font-title);
  color: var(--cx-lapis-3);
  text-shadow: 0 1px 0 #000, 0 0 4px rgba(13, 21, 36, 0.95);
  pointer-events: auto;
  cursor: help;
}
.uf.rested .uf-zzz { display: block; }
.uf-zzz span { display: inline-block; }
.uf-zzz span:nth-child(1) { font-size: 11px; }
.uf-zzz span:nth-child(2) { font-size: 13px; transform: translateY(-3px); }
.uf-zzz span:nth-child(3) { font-size: 16px; transform: translateY(-7px); }

/* Buffs: small enamel wells in an iron socket with a bronze hairline */
.uf-buffs {
  position: absolute;
  left: 98px;
  top: 84px;
  display: flex;
  gap: 6px;
}
.buff {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  cursor: help;
  color: var(--glyph);
  background: radial-gradient(circle at 38% 30%, var(--a1), var(--a2) 58%, var(--a3) 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-2), 0 0 0 3px #000, 0 0 0 4px #2e3237, inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 -6px 8px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(0, 0, 0, 0.65);
}
.buff-icon { position: absolute; inset: 4px; display: grid; place-items: center; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.8)); }
.buff-icon .icon { width: 100%; height: 100%; }
.buff-time {
  position: absolute;
  left: -7px;
  right: -7px;
  top: 30px;
  text-align: center;
  font: 700 11px/12px var(--cx-font-num);
  color: var(--cx-gold-text);
  text-shadow: var(--outline);
}
.buff.expiring { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-vermilion-hi), 0 0 0 3px #000, 0 0 0 4px #2e3237, inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.65); }
.buff.expiring .buff-time { color: var(--cx-vermilion-hi); }

/* ================================================================== TOP CENTER */
.hud-top {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 700px));
  min-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.zl {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 22px 6px;
  background: radial-gradient(ellipse at center, rgba(7, 8, 10, 0.66), rgba(7, 8, 10, 0.3) 60%, rgba(7, 8, 10, 0) 75%);
  cursor: help;
  white-space: nowrap;
}
.zl-name { font: 700 19px/1.1 var(--cx-font-title); letter-spacing: 0.04em; color: var(--cx-gold-text); text-shadow: var(--cx-sh-text-gold), 0 0 6px rgba(0, 0, 0, 0.6); }
.zl-range { font: 700 12px/1 var(--cx-font-num); font-variant-numeric: lining-nums; color: var(--cx-text-dim); text-shadow: var(--outline); }

/* Run (boss) frame — target-frame style on a smoked-steel plate, the boss in a forged socket */
.rf { display: flex; flex-direction: column; align-items: center; gap: 7px; width: min(340px, 100%); }
.rf-main { position: relative; width: 100%; height: 68px; cursor: help; }
.rf-body {
  position: absolute;
  left: 0;
  right: 30px;
  top: 7px;
  height: 54px;
  padding: 4px 52px 3px 10px;   /* the meta line stays clear of the level badge on the socket */
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--hud-plate);
  box-shadow: var(--hud-plate-sh);
}
.rf-name {
  font: 700 15px/18px var(--cx-font-head);
  letter-spacing: 0.03em;
  color: var(--cx-bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--outline);
  padding: 0 6px;
  margin: 0 -6px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(92, 23, 18, 0.8), rgba(92, 23, 18, 0.12));
}
.rf-hp {
  position: relative;
  height: 14px;
  margin: 3px 0 2px;
  border: 1px solid #000;
  border-radius: 2px;
  background: linear-gradient(180deg, #040405, #0c0e10 60%, #15181c);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.92), 0 0 0 1px #3a3f46;
  overflow: hidden;
}
.rf-hp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--cx-bar-enamel), var(--cx-bar-danger);
  transition: width 0.3s var(--cx-ease);   /* short: the boss clock drains it every second */
}
.rf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 13px/15px var(--cx-font-body);
  color: var(--cx-text-dim);
  white-space: nowrap;
  text-shadow: 0 1px 1px #000;
  overflow: hidden;
}
.rf-sub { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.rf-sep { display: none; }
.rf-timer { font: 700 12px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--cx-bone); flex: none; }
.rf-timer.over { color: var(--cx-text-dim); }
.rf-xp { font: 700 12px/1 var(--cx-font-num); color: var(--cx-q-epic-text); flex: none; }
.rf-portrait {
  position: absolute;
  right: 0;
  top: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  --tint: #a33;
  /* a dark enamel well tinted by the boss, lit faintly by firelight from below */
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 120, 40, 0.22), rgba(255, 120, 40, 0) 70%), radial-gradient(circle at 42% 32%, color-mix(in srgb, var(--tint) 62%, #000), color-mix(in srgb, var(--tint) 30%, #000) 55%, #070303 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), inset 0 0 16px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
}
.rf-portrait::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cdefs%3E%3CradialGradient id='ir' cx='.28' cy='.22' r='.85' %3E%3Cstop offset='0' stop-color='%234d5258'/%3E%3Cstop offset='0.28' stop-color='%232a2e33'/%3E%3Cstop offset='0.62' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2309090b'/%3E%3C/radialGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='88' y2='88'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='rv' cx='.38' cy='.34' r='.75' %3E%3Cstop offset='0' stop-color='%23ffe2a0'/%3E%3Cstop offset='0.35' stop-color='%23c99048'/%3E%3Cstop offset='0.75' stop-color='%236e4720'/%3E%3Cstop offset='1' stop-color='%232c1a08'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.3' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.24' numOctaves='2' seed='7' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='3' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='3' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='bv2' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.6' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='2' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='1.6' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='1.6' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M87.4,44 A43.4,43.4 0 1,0 0.6,44 A43.4,43.4 0 1,0 87.4,44 Z M79.6,44 A35.6,35.6 0 1,1 8.4,44 A35.6,35.6 0 1,1 79.6,44 Z' fill-rule='evenodd' fill='url(%23ir)' stroke='%23030304' stroke-width='1' filter='url(%23bv)'/%3E%3Ccircle cx='44' cy='44' r='39.6' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.2'/%3E%3Ccircle cx='44.5' cy='44.6' r='39.6' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M80.6,44 A36.6,36.6 0 1,0 7.4,44 A36.6,36.6 0 1,0 80.6,44 Z M78.2,44 A34.2,34.2 0 1,1 9.8,44 A34.2,34.2 0 1,1 78.2,44 Z' fill-rule='evenodd' fill='url(%23bz)' stroke='%23120a03' stroke-width='.7' filter='url(%23bv2)'/%3E%3Ccircle cx='44' cy='44' r='34.1' fill='none' stroke='%23000' stroke-opacity='.85' stroke-width='1.4'/%3E%3Ccircle cx='44.58' cy='5.2' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='44' cy='4.4' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='43.26' cy='3.57' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='78.87' cy='25.01' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='78.29' cy='24.2' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='77.56' cy='23.37' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='78.87' cy='64.61' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='78.29' cy='63.8' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='77.56' cy='62.97' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='10.28' cy='64.61' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='9.71' cy='63.8' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='8.97' cy='62.97' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='10.28' cy='25' r='2.42' fill='%23000' opacity='.55'/%3E%3Ccircle cx='9.71' cy='24.2' r='2.3' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='8.97' cy='23.37' r='0.74' fill='%23fff3d0' opacity='.75'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.rf-icon .icon { width: 34px; height: 34px; color: rgba(235, 228, 214, 0.86); filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)); }
.rf.raid .rf-portrait { box-shadow: 0 0 16px rgba(255, 138, 61, 0.42), 0 4px 12px rgba(0, 0, 0, 0.75), inset 0 0 16px rgba(0, 0, 0, 0.8); }
.rf.rest .rf-portrait { filter: grayscale(0.85) brightness(0.7); }
.rf.rest .rf-hp-fill { background: var(--cx-bar-enamel), var(--cx-bar-rested); }
.rf-level {
  position: absolute;
  right: 54px;
  bottom: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cx-vermilion-hi);
  background: radial-gradient(circle at 50% 35%, #3a0e0b, #0e0403);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-3), 0 0 0 3px #000, 0 0 0 4px #3a3f46, 0 0 0 5px #000;
  z-index: 2;
}
.rf-level .icon { width: 13px; height: 13px; }
.rf-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* Phone-free frame: cold steel blue is rest (the phone left at the Inn) */
.hud .pf {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px 6px 6px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--cx-caps), linear-gradient(180deg, rgba(26, 42, 69, 0.4), rgba(26, 42, 69, 0)), var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.1), inset 0 0 0 1px rgba(142, 168, 212, 0.5), inset 0 0 0 3px rgba(5, 5, 6, 0.86), inset 0 0 0 4px rgba(142, 168, 212, 0.12), 0 4px 14px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}
.hud .pf-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff1d8;
  background: radial-gradient(circle at 50% 66%, #ffb060, #c0561a 50%, #4a1806 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-3), 0 0 0 3px #000, 0 0 0 5px #2e3237, 0 0 0 6px #000, 0 0 12px rgba(255, 138, 61, 0.4);
}
.hud .pf-icon .icon { width: 20px; height: 20px; }
.hud .pf-body { min-width: 0; flex: 1 1 auto; cursor: help; }
.hud .pf-line { font: 400 14px/17px var(--cx-font-body); color: var(--cx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px #000; }
.hud .pf-title { font: 700 13px/16px var(--cx-font-label); letter-spacing: 0.03em; color: var(--cx-lapis-3); }
.hud .pf-time { font: 700 13px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--cx-bone); }
.hud .pf-rest { font-weight: 700; color: var(--cx-lapis-3); }
.hud .pf-line .dot::before { margin: 0 4px; }
.hud .pf-bar { height: 6px; margin-top: 4px; border: 1px solid #000; border-radius: 2px; background: #040405; box-shadow: inset 0 1px 2px #000, 0 0 0 1px #3a3f46; overflow: hidden; }
/* updated every second by the HUD tick: no width transition (it would animate layout for the whole session) */
.hud .pf-fill { height: 100%; background: var(--cx-bar-enamel), var(--cx-bar-rested); }
.hud .pf.complete .pf-fill { background: var(--cx-bar-enamel), var(--cx-bar-verdigris); }

/* Center transient lines (UIErrors style — WoW-convention colours are set by the HUD) */
.errs { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 2px; max-width: 100%; }
.hud .err {
  font: 700 18px/1.3 var(--cx-font-label);
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 1px 1px 0 #000, -1px 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.9);
  transition: opacity 1.2s ease-in;
  animation: errIn var(--cx-dur-quick) ease-out;
}
.hud .err.fade { opacity: 0; }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* Zone text: a carved molten-metal Cinzel title over the world (static drop shadow, fades only) */
.zt {
  position: absolute;
  left: 0;
  right: 0;
  --zt-top: max(17%, 124px);
  top: max(var(--zt-top), calc(var(--hud-top-h, 0px) + 14px));   /* (V7.4 v74-finish, R5: always below the top-centre column) */
  text-align: center;
  opacity: 0;
  pointer-events: none;
  padding: 0 16px;
}
.zt-zone {
  display: inline-block;
  font: 700 clamp(32px, 4.6vw, 62px)/1.12 var(--cx-font-title);
  letter-spacing: 0.04em;
  color: var(--cx-gold-3);
  background: linear-gradient(180deg, #fff1cf 0%, #f4d58c 26%, #d9a54a 50%, #7a4e1c 58%, #b67e36 74%, #f2c97a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #120a03) drop-shadow(0 0 1px #000) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 18px rgba(255, 120, 40, 0.22));
}
.zt-sub {
  font: 700 clamp(17px, 2.1vw, 26px)/1.2 var(--cx-font-head);
  letter-spacing: 0.06em;
  color: var(--cx-bone);
  margin-top: 2px;
  text-shadow:
    1.5px 1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px -1.5px 0 #000,
    0 0 3px #000, 0 4px 10px rgba(0, 0, 0, 0.6);
}
.zt-sub:empty { display: none; }
/* Keep zone text clear of the boss / phone frames and the center lines under them. */
.hud.has-run .zt, .hud.has-phone .zt { --zt-top: max(24%, 214px); }
.hud.has-run.has-phone .zt { --zt-top: max(29%, 264px); }
.zt.zt-in { opacity: 1; transition: opacity 0.5s ease-out; }
.zt.zt-in.zt-out { opacity: 0; transition: opacity 2s ease-in; }
.zt.zt-quick { opacity: 0; transition: opacity 0.25s ease-in; }

/* ================================================================== MINIMAP
 * A forged iron ring: thorns round the rim, eight bronze rivets, four bronze lozenge studs and a bronze bezel at the
 * glass; round iron buttons with bronze bezels around it; the clock on a small iron plate at the top. */
.mm { position: absolute; top: 0; right: 0; }
.mm-ring {
  position: absolute;
  border-radius: 50%;
  padding: 12.5px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cdefs%3E%3CradialGradient id='ir' cx='.26' cy='.2' r='.9' %3E%3Cstop offset='0' stop-color='%234d5258'/%3E%3Cstop offset='0.28' stop-color='%232a2e33'/%3E%3Cstop offset='0.62' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2309090b'/%3E%3C/radialGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='132' y2='132'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='rv' cx='.38' cy='.34' r='.75' %3E%3Cstop offset='0' stop-color='%23ffe2a0'/%3E%3Cstop offset='0.35' stop-color='%23c99048'/%3E%3Cstop offset='0.75' stop-color='%236e4720'/%3E%3Cstop offset='1' stop-color='%232c1a08'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.6' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.2' numOctaves='2' seed='11' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='3.4' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='3.4' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='bv2' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.8' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='3' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='2' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='2' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='sh' x='-10%25' y='-10%25' width='125%25' height='125%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.6'/%3E%3CfeOffset dx='1.2' dy='2' result='o'/%3E%3CfeComponentTransfer in='o' result='s'%3E%3CfeFuncA type='linear' slope='0.7'/%3E%3C/feComponentTransfer%3E%3CfeMerge%3E%3CfeMergeNode in='s'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23sh)'%3E%3Cpath d='M82.3,10.96 L91.03,5.58 L93.39,15.56 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M116.44,38.61 L126.42,40.97 L121.04,49.7 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M121.04,82.3 L126.42,91.03 L116.44,93.39 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M93.39,116.44 L91.03,126.42 L82.3,121.04 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M49.7,121.04 L40.97,126.42 L38.61,116.44 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M15.56,93.39 L5.58,91.03 L10.96,82.3 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M10.96,49.7 L5.58,40.97 L15.56,38.61 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M38.61,15.56 L40.97,5.58 L49.7,10.96 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M73,122.97 L66,131.8 L59,122.97 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.9' stroke-linejoin='round' filter='url(%23bv2)'/%3E%3Cpath d='M126.6,66 A60.6,60.6 0 1,0 5.4,66 A60.6,60.6 0 1,0 126.6,66 Z M119,66 A53,53 0 1,1 13,66 A53,53 0 1,1 119,66 Z' fill-rule='evenodd' fill='url(%23ir)' stroke='%23030304' stroke-width='1.1' filter='url(%23bv)'/%3E%3C/g%3E%3Ccircle cx='66' cy='66' r='59.6' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.8'/%3E%3Ccircle cx='119.43' cy='88.53' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='119.03' cy='87.97' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='118.52' cy='87.39' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='88.37' cy='119.59' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='87.97' cy='119.03' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='87.45' cy='118.45' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='44.43' cy='119.59' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='44.03' cy='119.03' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='43.52' cy='118.45' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='13.37' cy='88.53' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='12.97' cy='87.97' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='12.46' cy='87.39' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='13.37' cy='44.59' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='12.97' cy='44.03' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='12.46' cy='43.46' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='44.43' cy='13.53' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='44.03' cy='12.97' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='43.52' cy='12.39' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='88.37' cy='13.53' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='87.97' cy='12.97' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='87.45' cy='12.39' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='119.43' cy='44.59' r='1.68' fill='%23000' opacity='.55'/%3E%3Ccircle cx='119.03' cy='44.03' r='1.6' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='118.52' cy='43.46' r='0.51' fill='%23fff3d0' opacity='.75'/%3E%3Cpath d='M66,5 L69.8,8.8 L66,12.6 L62.2,8.8 Z' fill='url(%23bz)' stroke='%23120a03' stroke-width='.8'/%3E%3Cpath d='M66,7 L67.8,8.8 L66,10.6 L64.2,8.8 Z' fill='%23170c05' stroke='%23000' stroke-width='.5'/%3E%3Cpath d='M123.2,62.2 L127,66 L123.2,69.8 L119.4,66 Z' fill='url(%23bz)' stroke='%23120a03' stroke-width='.8'/%3E%3Cpath d='M123.2,64.2 L125,66 L123.2,67.8 L121.4,66 Z' fill='%23170c05' stroke='%23000' stroke-width='.5'/%3E%3Cpath d='M66,119.4 L69.8,123.2 L66,127 L62.2,123.2 Z' fill='url(%23bz)' stroke='%23120a03' stroke-width='.8'/%3E%3Cpath d='M66,121.4 L67.8,123.2 L66,125 L64.2,123.2 Z' fill='%23170c05' stroke='%23000' stroke-width='.5'/%3E%3Cpath d='M8.8,62.2 L12.6,66 L8.8,69.8 L5,66 Z' fill='url(%23bz)' stroke='%23120a03' stroke-width='.8'/%3E%3Cpath d='M8.8,64.2 L10.6,66 L8.8,67.8 L7,66 Z' fill='%23170c05' stroke='%23000' stroke-width='.5'/%3E%3Cpath d='M120.2,66 A54.2,54.2 0 1,0 11.8,66 A54.2,54.2 0 1,0 120.2,66 Z M118.4,66 A52.4,52.4 0 1,1 13.6,66 A52.4,52.4 0 1,1 118.4,66 Z' fill-rule='evenodd' fill='url(%23bz)' stroke='%23120a03' stroke-width='.6'/%3E%3Ccircle cx='66' cy='66' r='52.3' fill='none' stroke='%23000' stroke-opacity='.9' stroke-width='1.4'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.55) 61%, rgba(0, 0, 0, 0) 70%);
}
.mm-disk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #07080a;
}
.mm-sky { display: block; width: 100%; height: 100%; }
.mm-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 22%, rgba(214, 224, 238, 0.13), rgba(214, 224, 238, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(7, 8, 10, 0.55) 100%);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.85), inset 0 2px 5px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}
.mm-info {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px 2px 6px;
  border: 1px solid #000;
  border-radius: 2px;
  background: rgba(10, 11, 13, 0.84);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.45), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.mm-streak { display: flex; align-items: center; gap: 2px; cursor: pointer; font: 700 14px/1 var(--cx-font-num); font-variant-numeric: lining-nums; color: var(--cx-bone); text-shadow: 0 1px 0 #000; }
.mm-flame { display: grid; place-items: center; color: #6a6660; }
.mm-flame .icon { width: 16px; height: 16px; }
.mm-streak.lit .mm-flame { color: var(--cx-torch); filter: drop-shadow(0 0 3px rgba(255, 140, 50, 0.8)); }
.mm-streak.zero { color: var(--cx-text-faint); }
.mm-charges { display: flex; gap: 5px; cursor: help; padding: 2px 0; }
.mm-charges i {
  display: block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: #141a24;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(142, 168, 212, 0.3);
}
.mm-charges i.on { background: linear-gradient(135deg, #dfe8ff, var(--cx-lapis-3) 40%, var(--cx-lapis-2) 70%, var(--cx-lapis-0)); box-shadow: 0 0 0 1px #000, 0 0 4px rgba(142, 168, 212, 0.7); }
/* V7.8 lane E (v78-elites): the Zima Seals (earned streak freezes) as round frost seals before the Ognik charges' diamonds; flat colour */
.mm-charges i.zm { border-radius: 50%; transform: none; background: #18202a; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(214, 232, 242, 0.35); }
.mm-charges i.zm.on { background: #dcebf2; box-shadow: 0 0 0 1px #000, inset 0 0 0 2px #9fc4d8, 0 0 3px rgba(214, 232, 242, 0.6); }
.mm-clock {
  position: absolute;
  top: 19px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 3px 11px 3px;
  font: 700 13px/1.1 var(--cx-font-num);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cx-gold-leaf);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 #000;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--cx-rivet-iron) left 2px center / 7px 7px no-repeat, var(--cx-rivet-iron) right 2px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(196, 204, 214, 0.14), rgba(196, 204, 214, 0) 2px), linear-gradient(180deg, #24272c, #121417);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.7);
  cursor: help;
}
/* V7.1 map mode: + − beside the minimap disk (zoom the game screen's map) */
.mm-zoom {
  position: absolute; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; pointer-events: auto;
  font: 600 15px/1 Georgia, serif; color: #e8d7b0;
  background: radial-gradient(circle at 50% 44%, #23272c 0, #0e1013 6px, #000 7px, #e2b56a 7.5px, #86592a 8.4px, #2a1a09 9.2px, rgba(0, 0, 0, 0) 9.7px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.mm-zoom:hover { color: #fff3d0; }
.mm-disk { cursor: pointer; }
.mm-btn {
  /* a forged iron ring with a bronze bezel round a dark well; the drawn icon in bone */
  position: absolute;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #d9d0bf;
  background:
    radial-gradient(circle at 50% 44%, #1d2126 0, #0e1013 8.2px, #000 9.2px, #e2b56a 9.7px, #86592a 10.6px, #2a1a09 11.3px, rgba(0, 0, 0, 0) 11.8px),
    var(--iron-ring);
  box-shadow: 0 0 0 1px #030304, 0 3px 6px rgba(0, 0, 0, 0.75);
  transition: color var(--cx-dur-quick) var(--cx-ease);
}
.mm-btn .icon { width: 15px; height: 15px; filter: drop-shadow(0 1px 0 #000); }
.mm-btn:hover { color: var(--cx-gold-leaf); box-shadow: 0 0 0 1px #030304, 0 0 10px rgba(255, 138, 61, 0.5), 0 3px 6px rgba(0, 0, 0, 0.75); }
.mm-btn.pressed { transform: translateY(1px) scale(0.96); }
.mm-btn.locked { filter: grayscale(1) brightness(0.62); }
.mm-btn.off { color: var(--cx-vermilion-hi); }
.mm-badge { display: none; }
.mm-btn.badge {
  /* V7.2.0: the Talents button glows too while a point waits (static under reduced motion) */
  color: #ffd27a;
  box-shadow: 0 0 0 1px #030304, 0 0 10px 2px rgba(255, 150, 60, 0.55), 0 3px 6px rgba(0, 0, 0, 0.75);
  animation: mmTalentGlow 2.6s ease-in-out infinite;
}
@keyframes mmTalentGlow {
  0%, 100% { box-shadow: 0 0 0 1px #030304, 0 0 6px 1px rgba(255, 150, 60, 0.4), 0 3px 6px rgba(0, 0, 0, 0.75); }
  50% { box-shadow: 0 0 0 1px #030304, 0 0 14px 4px rgba(255, 170, 80, 0.8), 0 3px 6px rgba(0, 0, 0, 0.75); }
}
.mm-btn.badge .mm-badge {
  /* a static ember stud: talent points are waiting */
  display: block;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffe2b0, #ff8a3d 45%, #8e3410);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-2), 0 0 0 3px #000, 0 0 7px rgba(255, 138, 61, 0.7);
}

/* ================================================================== QUEST TRACKER
 * No frame: a smoked strip fading into the world, a carved Cinzel heading over an ember-fade rule, bone objectives
 * and ember lozenge bullets (WoW's green "ready" and blue daily marks stay). */
.trk {
  position: absolute;
  right: 12px;
  top: 212px;
  width: 256px;
  max-height: max(110px, calc(100vh - 212px - 200px));
  overflow: hidden;
  padding: 4px 6px 6px 12px;
  background: linear-gradient(270deg, rgba(8, 9, 11, 0.74), rgba(8, 9, 11, 0.46) 70%, rgba(8, 9, 11, 0.04));
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent);
}
.trk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 3px;
  cursor: help;
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.7), rgba(176, 122, 60, 0.45) 40%, rgba(176, 122, 60, 0)) left bottom / 100% 1px no-repeat;
}
.trk-title { font: 700 15px/1 var(--cx-font-head); letter-spacing: 0.06em; color: var(--cx-gold-text); text-shadow: var(--cx-sh-text-gold), 0 0 4px rgba(0, 0, 0, 0.7); }
.trk-toggle {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--cx-bone);
  background: linear-gradient(180deg, #34383e, #15171a);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.5);
}
.trk-toggle:hover { color: var(--cx-gold-leaf); }
.trk-toggle .icon { width: 9px; height: 9px; }
.trk.collapsed .trk-body { display: none; }
.trk-body { cursor: pointer; }
.tq { margin: 0 0 6px; }
.tq-title {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 700 15px/18px var(--cx-font-body);
  color: var(--cx-gold-text);
  text-shadow: var(--outline);
}
.trk-body:hover .tq-title { color: var(--cx-gold-leaf); }
.tq.done .tq-title, .trk-body:hover .tq.done .tq-title { color: var(--cx-molten); }
.tq-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-mark { flex: none; width: 12px; text-align: center; font: 700 15px/1 var(--cx-font-title); color: var(--cx-torch); text-shadow: 0 1px 0 #000, 0 0 5px rgba(255, 120, 40, 0.45); }
.tq-mark.daily, .tq-mark.weekly { color: #8fb6ff; text-shadow: 0 1px 0 #000; }
.tq.done .tq-mark { color: var(--cx-molten); }
.tq-mark.revenge { color: var(--cx-vermilion-hi); }
.tq-mark.book { color: var(--cx-gold-3); }
.tq-mark.book .icon { width: 11px; height: 11px; vertical-align: -1px; }
.tq-mark.repeat { color: var(--cx-verdigris-3); }
.tq-mark.repeat .icon { width: 12px; height: 12px; vertical-align: -2px; filter: drop-shadow(0 1px 0 #000); }
.tq.tq-repeat.due .tq-mark.repeat, .tq.tq-revenge.due .tq-mark { filter: brightness(1.3) drop-shadow(0 0 3px rgba(134, 176, 165, 0.7)); }
.tq-more .tq-obj { padding-left: 16px; font-style: italic; }
.tq-tag { flex: none; margin-left: auto; font: 500 12px/1 var(--cx-font-label); color: var(--cx-text-dim); }
.tq-obj {
  position: relative;
  padding-left: 16px;
  font: 400 14px/17px var(--cx-font-body);
  color: var(--cx-bone);
  text-shadow: var(--outline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ember lozenge bullets (a molten tick when done, green when ready to hand in) */
.tq-obj::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ffd08a, var(--cx-torch) 50%, #8e3410);
  box-shadow: 0 0 0 1px #000, 0 0 4px rgba(255, 120, 40, 0.5);
}
.tq-obj.done::before { left: 3px; top: 3px; width: 10px; height: 10px; transform: none; background: var(--cx-orn-check) center / 100% 100% no-repeat; box-shadow: none; }
.tq-obj.ripe::before { background: linear-gradient(135deg, #c8ffb0, #4cd43c 50%, #18561d); box-shadow: 0 0 0 1px #000, 0 0 4px rgba(76, 212, 60, 0.5); }
.tq-obj.wait::before { background: #46505b; box-shadow: 0 0 0 1px #000; }
.tq-more .tq-obj::before { content: none; }
.tq-obj.done { color: var(--cx-text-dim); }
.tq-obj.ripe { color: #4cd43c; }
.tq-obj.wait { color: var(--cx-text-dim); }
.tq-empty { font: 400 14px/17px var(--cx-font-body); color: var(--cx-text-dim); text-shadow: var(--outline); }

/* ================================================================== CHAT
 * Scorched charcoal under smoke (it fades when idle), iron tabs with an ember underline on the active one; WoW chat
 * colours are gameplay information and stay. */
.chat {
  position: absolute;
  left: 8px;
  bottom: calc(var(--bar-top) + 14px);
  width: clamp(270px, 30vw, 440px);
}
.chat-tabs { display: flex; gap: 3px; padding-left: 6px; transition: opacity 1.2s; }
.chat-tab {
  position: relative;
  top: 1px;
  font: 700 12px/1 var(--cx-font-label);
  letter-spacing: 0.04em;
  color: var(--cx-text-dim);
  padding: 5px 11px 4px;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: var(--cx-r-3) var(--cx-r-3) 0 0;
  cursor: pointer;
  background: var(--cx-tex-iron), linear-gradient(180deg, rgba(42, 46, 52, 0.94), rgba(20, 22, 25, 0.94));
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.22);
  text-shadow: 0 1px 0 #000;
  opacity: 0.8;
  transition: opacity 0.15s, color 0.15s;
}
.chat-tab:hover { opacity: 1; color: var(--cx-text); }
.chat-tab.active {
  color: var(--cx-gold-leaf);
  opacity: 1;
  background: linear-gradient(90deg, rgba(255, 138, 61, 0), var(--cx-torch) 30%, var(--cx-torch) 70%, rgba(255, 138, 61, 0)) left 4px bottom 0 / calc(100% - 8px) 2px no-repeat,
    radial-gradient(ellipse at 50% 130%, rgba(255, 138, 61, 0.3), rgba(255, 138, 61, 0) 70%),
    var(--cx-tex-iron), linear-gradient(180deg, #3e434a, #1d2024 75%, #17191c);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.2), inset 0 0 0 1px rgba(226, 181, 106, 0.6);
}
.chat-tab.unread { color: var(--cx-gold-leaf); }
.chat-tab.unread::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--cx-torch);
  box-shadow: 0 0 0 1px #000, 0 0 4px rgba(255, 138, 61, 0.7);
}
.chat-box {
  position: relative;
  height: calc(var(--chat-lines) * 19px + 12px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 0 var(--cx-r-2) var(--cx-r-2) var(--cx-r-2);
  background: linear-gradient(180deg, rgba(14, 16, 19, 0.5), rgba(7, 8, 10, 0.58));
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.12);
  scrollbar-width: none;
  transition: background-color 0.3s, opacity 1.2s;
  user-select: text;
  -webkit-user-select: text;
}
.chat-box::-webkit-scrollbar { width: 0; height: 0; }
.chat.hover .chat-box {
  background: radial-gradient(ellipse at 50% 120%, rgba(226, 84, 31, 0.1), rgba(226, 84, 31, 0) 60%), var(--cx-tex-grain), linear-gradient(180deg, rgba(22, 25, 29, 0.86), rgba(10, 11, 13, 0.9));
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.4), inset 0 0 0 4px rgba(0, 0, 0, 0.5), inset 0 0 0 5px rgba(138, 145, 154, 0.1);
}
.chat.idle .chat-box { opacity: 0.32; }
.chat.idle .chat-tabs { opacity: 0.22; }
.chat-down {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--cx-bone);
  background: radial-gradient(circle at 50% 46%, #1d2126 0, #0b0c0e 6.4px, #e2b56a 6.9px, #6b4a20 7.8px, rgba(0, 0, 0, 0) 8.2px), var(--iron-ring);
  box-shadow: 0 0 0 1px #030304, 0 2px 4px rgba(0, 0, 0, 0.65);
}
.chat-down .icon { width: 11px; height: 11px; }
.cl {
  font: 400 14px/19px var(--cx-font-body);
  text-shadow: 0 1px 1px #000, 0 0 2px #000;
  word-wrap: break-word;
  animation: clIn 0.25s ease-out;
}
@keyframes clIn { from { opacity: 0; } to { opacity: 1; } }
.cl.ch-system { color: #ffff00; }
.cl.ch-xp, .cl.ch-combat { color: #a9a9ff; }
.cl.ch-loot { color: #00cc00; }
.cl.ch-guild { color: #40ff40; }
.cl.ch-say { color: #ffffff; }
.cl .item-link { cursor: pointer; text-shadow: 0 1px 1px #000, 0 0 2px #000; }
.cl .item-link:hover { text-decoration: underline; }
.cl .q-rare { color: var(--cx-q-rare-text); }
.cl .q-epic { color: var(--cx-q-epic-text); }
.cl-channel { color: #ffc0c0 !important; }
.cl-mob.rare { color: #e8eef6; }
.cl-mob.elite { color: #ffd100; }
.cl-crit { color: #ffd100; }
.cl-rest { color: #8fc0ff; }
.cl-dim { color: var(--cx-text-dim); }
.cl-sub { color: #cfc9bd; }
.cl-q { font-weight: 700; }
.cl-ach { color: #ffff00; font-weight: 700; }
.cl-bonus { color: #ffd100 !important; }
.cl-revenge { color: #ff9a50 !important; }
.cl-rested { color: #8fc0ff !important; }
.cl-streak { color: #ffb050 !important; }
.cl-repeat { color: #7fe3d2 !important; }
.cl-ding { font-weight: 700; }
.cl-who { font-weight: 700; }
.cl.cl-rareline { color: #c8d4ff; }
.cl .money { gap: 4px; font-size: 13px; }
.cl .coin::after { width: 9px; height: 9px; }

/* ================================================================== SESSION BLOCK (a smoked-steel plate, the target in a forged ring) */
.ss {
  position: absolute;
  right: 10px;
  bottom: calc(var(--xp-h) + var(--xp-bottom) + 8px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 218px;
  padding: 7px 13px 7px 8px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--hud-plate);
  box-shadow: var(--hud-plate-sh);
  cursor: pointer;
}
.ss:hover { box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(226, 181, 106, 0.85), inset 0 0 0 3px rgba(5, 5, 6, 0.86), inset 0 0 0 4px rgba(138, 145, 154, 0.16), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 138, 61, 0.14); }
.ss-ring { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; background: radial-gradient(circle, #0b0c0e 0 19px, rgba(0, 0, 0, 0) 19.5px), radial-gradient(circle, rgba(0, 0, 0, 0) 0 23.4px, #e2b56a 23.8px, #6b4a20 25px, #000 25.6px), var(--iron-ring); box-shadow: 0 0 0 1px #050506, 0 2px 4px rgba(0, 0, 0, 0.5); }
.ss-ring-svg { position: absolute; inset: 0; }
.ss-ring-svg svg { display: block; width: 52px; height: 52px; transform: rotate(-90deg); }
.ss-ring-svg circle.bg { fill: none; stroke: #0c0e10; stroke-width: 5; }
.ss-ring-svg circle.fg {
  fill: none;
  stroke: var(--cx-gold-3);
  stroke-width: 5;
  stroke-linecap: butt;
  transition: stroke-dashoffset 0.9s var(--cx-ease);
}
.ss-ring.done .ss-ring-svg circle.fg { stroke: var(--cx-verdigris-3); }
.ss-ring.notarget .ss-ring-svg circle.fg { stroke: transparent; }
.ss-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ss-ring-text b { font: 700 15px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--cx-bone); text-shadow: 0 1px 0 #000; }
.ss-ring-text small { font: 500 11px/1.1 var(--cx-font-num); color: var(--cx-text-dim); }
.ss-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* V5 inn goals (TRACKER §8.4c): the ring is today's goal of 1-4 blocks of 90 minutes; a notch between the blocks */
.ss-ring-svg line.notch { stroke: rgba(235, 228, 214, 0.55); stroke-width: 1.4; }
.ss-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss-row.ss-block .k { color: var(--cx-gold-text); }
.ss-row .ss-n { font: 700 13px/16px var(--cx-font-num); font-variant-numeric: lining-nums; letter-spacing: 0; }   /* Cinzel draws 1 like I */
/* the plate is a button (it opens the Today's Goal window): the focus is an ember glow, never a browser ring */
.ss:focus { outline: none; }
.ss:focus-visible { box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(255, 170, 90, 0.9), inset 0 0 0 3px rgba(5, 5, 6, 0.86), 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 130, 40, 0.45); }
/* the Inn button: a small .hbtn iron plate in 12 px caps; bronze where there is an inn, dim ash on the road / in a run */
.hbtn.ss-inn { flex: none; min-height: 20px; padding: 1px 6px 0; gap: 4px; font: 700 12px/1 var(--cx-font-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cx-text-dim); background: var(--_tint), var(--cx-tex-iron), var(--_base); box-shadow: inset 0 0 0 1px var(--_hair), 0 1px 0 rgba(0, 0, 0, 0.55); }   /* no corner caps at this size */
.hbtn.ss-inn .icon { width: 12px; height: 12px; }
.hbtn.ss-inn.is-here { color: var(--cx-gold-text); --_hair: rgba(226, 181, 106, 0.6); }
.hbtn.ss-inn.is-here:hover { color: var(--cx-gold-leaf); --_hair: rgba(226, 181, 106, 0.85); }
.hbtn.ss-inn.hidden { display: none; }
.ss-money .money { font-size: 15px; gap: 7px; text-shadow: 0 1px 1px #000; }
.ss-money .coin::after { width: 11px; height: 11px; }
.ss-row { font: 400 14px/17px var(--cx-font-body); color: var(--cx-text); white-space: nowrap; text-shadow: 0 1px 1px #000; }
.ss-row .k { font: 700 12px/16px var(--cx-font-label); letter-spacing: 0.03em; color: var(--cx-gold-text); }
.ss-row .v { font-weight: 700; color: var(--cx-bone); font-variant-numeric: lining-nums; }
.ss-row .dot::before { margin: 0 4px; }

/* ================================================================== ACTION BAR
 * Blackened iron: a hammered plate with bronze rivets and a bronze top rule; every action is a recessed iron socket
 * with a thin bronze rim and a dark enamel well (like an item slot). The end caps are two hooded iron sentinels,
 * hands folded on a greatsword planted in a riveted corbel, ember-eyed — they hold up the bar's ends. */
.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.ab-wrap {
  position: absolute;
  left: 50%;
  bottom: calc(var(--xp-h) + var(--xp-bottom) + 3px);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
}
.ab-cap {
  position: relative;
  z-index: 2;
  flex: none;
  width: 70px;
  height: 84px;
  margin-bottom: -4px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='84' viewBox='0 0 70 84'%3E%3Cdefs%3E%3CradialGradient id='ir' cx='.25' cy='.12' r='.95' %3E%3Cstop offset='0' stop-color='%235a5f66'/%3E%3Cstop offset='0.3' stop-color='%232c3035'/%3E%3Cstop offset='0.65' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2308090a'/%3E%3C/radialGradient%3E%3ClinearGradient id='st' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='84'%3E%3Cstop offset='0' stop-color='%2333373d'/%3E%3Cstop offset='0.4' stop-color='%231b1d21'/%3E%3Cstop offset='1' stop-color='%2308090a'/%3E%3C/linearGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='70' y2='84'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3ClinearGradient id='bl' gradientUnits='userSpaceOnUse' x1='0' y1='51' x2='0' y2='69'%3E%3Cstop offset='0' stop-color='%23c9d0d8'/%3E%3Cstop offset='0.4' stop-color='%237a828c'/%3E%3Cstop offset='1' stop-color='%232a2e33'/%3E%3C/linearGradient%3E%3ClinearGradient id='gd' gradientUnits='userSpaceOnUse' x1='17' y1='47' x2='42' y2='51'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='void' cx='.5' cy='.38' r='.62' %3E%3Cstop offset='0' stop-color='%231a0c06'/%3E%3Cstop offset='0.6' stop-color='%23070505'/%3E%3Cstop offset='1' stop-color='%23000'/%3E%3C/radialGradient%3E%3CradialGradient id='eye' cx='.5' cy='.5' r='.5' %3E%3Cstop offset='0' stop-color='%23ffd08a'/%3E%3Cstop offset='0.45' stop-color='%23ff8a3d' stop-opacity='0.85'/%3E%3Cstop offset='1' stop-color='%23e2541f' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='rv' cx='.38' cy='.34' r='.75' %3E%3Cstop offset='0' stop-color='%23ffe2a0'/%3E%3Cstop offset='0.35' stop-color='%23c99048'/%3E%3Cstop offset='0.75' stop-color='%236e4720'/%3E%3Cstop offset='1' stop-color='%232c1a08'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.4' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22' numOctaves='2' seed='29' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='3' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='3' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='bv2' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.8' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='5' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='2' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='2' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='sh' x='-10%25' y='-10%25' width='125%25' height='125%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.6'/%3E%3CfeOffset dx='1' dy='2' result='o'/%3E%3CfeComponentTransfer in='o' result='s'%3E%3CfeFuncA type='linear' slope='0.8'/%3E%3C/feComponentTransfer%3E%3CfeMerge%3E%3CfeMergeNode in='s'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23sh)'%3E%3Cpath d='M6,73.6 L69.4,73.6 L69.4,84 L14,84 C10.6,80.4 7.6,77.4 6,73.6 Z' fill='url(%23st)' stroke='%23030304' stroke-width='1' filter='url(%23bv)'/%3E%3Cpath d='M2.4,67.8 L67.6,67.8 L69.4,70 L69.4,73.6 L2.4,73.6 L0.8,71.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='1' filter='url(%23bv2)'/%3E%3Cpath d='M2.6,70 L69.2,70 L69.2,71.6 L2.6,71.6 Z' fill='url(%23bz)' opacity='.85'/%3E%3Cpath d='M30,2.5 C36.5,4.5 41.5,10.5 43,19 C44,24.5 43.6,28.5 42.8,31.4 C47.6,33 50.2,36.6 51.2,42 C52.6,50 54,59 56.4,68.6 L3.6,68.6 C6,59 7.4,50 8.8,42 C9.8,36.6 12.4,33 17.2,31.4 C16.4,28.5 16,24.5 17,19 C18.5,10.5 23.5,4.5 30,2.5 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='1.1' stroke-linejoin='round' filter='url(%23bv)'/%3E%3C/g%3E%3Cpath d='M14.4,44 C13.2,52 12,60 11,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M15.2,44.4 C14,52.4 12.8,60.4 11.8,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M21,48 C20.4,55 20,61 19.6,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M21.8,48.4 C21.2,55.4 20.8,61.4 20.4,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M39,48 C39.6,55 40,61 40.4,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M39.8,48.4 C40.4,55.4 40.8,61.4 41.2,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M45.6,44 C46.8,52 48,60 49,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M46.4,44.4 C47.6,52.4 48.8,60.4 49.8,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M30,7.2 C35.8,8.8 39.4,14 39.8,20.4 C40.1,25.4 38.6,29.8 35.6,32.4 L34.4,30.6 C36.6,28.6 37.9,24.6 37.6,20.4 C37.2,15 34.6,10.6 30,9.2 C25.4,10.6 22.8,15 22.4,20.4 C22.1,24.6 23.4,28.6 25.6,30.6 L24.4,32.4 C21.4,29.8 19.9,25.4 20.2,20.4 C20.6,14 24.2,8.8 30,7.2 Z' fill='url(%23ir)' stroke='%23020203' stroke-width='.7' filter='url(%23bv2)'/%3E%3Cpath d='M30,9.2 C34.6,10.6 37.2,15 37.6,20.4 C37.9,24.6 36.6,28.6 34.4,30.6 C33,31.6 31.5,32 30,32 C28.5,32 27,31.6 25.6,30.6 C23.4,28.6 22.1,24.6 22.4,20.4 C22.8,15 25.4,10.6 30,9.2 Z' fill='url(%23void)' stroke='%23000' stroke-width='.8'/%3E%3Ccircle cx='27.4' cy='22.6' r='1.9' fill='url(%23eye)'/%3E%3Ccircle cx='32.6' cy='22.6' r='1.9' fill='url(%23eye)'/%3E%3Ccircle cx='27.4' cy='22.6' r='.55' fill='%23ffe2b0'/%3E%3Ccircle cx='32.6' cy='22.6' r='.55' fill='%23ffe2b0'/%3E%3Cpath d='M17.6,36 C20.6,37.4 24,39.6 26.4,42.4 L25.2,46.4 C22.2,44.6 19,42.6 16.2,41.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M42.4,36 C39.4,37.4 36,39.6 33.6,42.4 L34.8,46.4 C37.8,44.6 41,42.6 43.8,41.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M28,51 L32,51 L31.6,66.6 L30,69.2 L28.4,66.6 Z' fill='url(%23bl)' stroke='%230a0b0d' stroke-width='.8'/%3E%3Cpath d='M30,52 L30,65.4' stroke='%2322262b' stroke-width='.9'/%3E%3Cpath d='M19.6,47.4 L40.4,47.4 L42.6,49.2 L40.4,51 L19.6,51 L17.4,49.2 Z' fill='url(%23gd)' stroke='%23140b04' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M25,40.6 C26.6,39.4 28.4,39.2 30,39.8 C31.6,39.2 33.4,39.4 35,40.6 L35.6,45.2 C33.8,46.6 31.8,46.8 30,46.2 C28.2,46.8 26.2,46.6 24.4,45.2 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M30,35.4 C31.6,35.4 32.6,36.4 32.6,37.8 C32.6,39.2 31.6,40.2 30,40.2 C28.4,40.2 27.4,39.2 27.4,37.8 C27.4,36.4 28.4,35.4 30,35.4 Z' fill='url(%23bz)' stroke='%23140b04' stroke-width='.7'/%3E%3Ccircle cx='12.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='12' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='11.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='26.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='26' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='25.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='40.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='40' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='39.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='54.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='54' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='53.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.ab-cap svg { display: none; }
.ab-cap.left { margin-right: -8px; }
.ab-cap.right { margin-left: -8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='84' viewBox='0 0 70 84'%3E%3Cdefs%3E%3CradialGradient id='ir' cx='.75' cy='.12' r='.95' %3E%3Cstop offset='0' stop-color='%235a5f66'/%3E%3Cstop offset='0.3' stop-color='%232c3035'/%3E%3Cstop offset='0.65' stop-color='%2317191c'/%3E%3Cstop offset='1' stop-color='%2308090a'/%3E%3C/radialGradient%3E%3ClinearGradient id='st' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='0' y2='84'%3E%3Cstop offset='0' stop-color='%2333373d'/%3E%3Cstop offset='0.4' stop-color='%231b1d21'/%3E%3Cstop offset='1' stop-color='%2308090a'/%3E%3C/linearGradient%3E%3ClinearGradient id='bz' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='70' y2='84'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3ClinearGradient id='bl' gradientUnits='userSpaceOnUse' x1='0' y1='51' x2='0' y2='69'%3E%3Cstop offset='0' stop-color='%23c9d0d8'/%3E%3Cstop offset='0.4' stop-color='%237a828c'/%3E%3Cstop offset='1' stop-color='%232a2e33'/%3E%3C/linearGradient%3E%3ClinearGradient id='gd' gradientUnits='userSpaceOnUse' x1='17' y1='47' x2='42' y2='51'%3E%3Cstop offset='0' stop-color='%23f2c97a'/%3E%3Cstop offset='0.22' stop-color='%23c48a45'/%3E%3Cstop offset='0.55' stop-color='%2386592a'/%3E%3Cstop offset='1' stop-color='%233e2711'/%3E%3C/linearGradient%3E%3CradialGradient id='void' cx='.5' cy='.38' r='.62' %3E%3Cstop offset='0' stop-color='%231a0c06'/%3E%3Cstop offset='0.6' stop-color='%23070505'/%3E%3Cstop offset='1' stop-color='%23000'/%3E%3C/radialGradient%3E%3CradialGradient id='eye' cx='.5' cy='.5' r='.5' %3E%3Cstop offset='0' stop-color='%23ffd08a'/%3E%3Cstop offset='0.45' stop-color='%23ff8a3d' stop-opacity='0.85'/%3E%3Cstop offset='1' stop-color='%23e2541f' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='rv' cx='.38' cy='.34' r='.75' %3E%3Cstop offset='0' stop-color='%23ffe2a0'/%3E%3Cstop offset='0.35' stop-color='%23c99048'/%3E%3Cstop offset='0.75' stop-color='%236e4720'/%3E%3Cstop offset='1' stop-color='%232c1a08'/%3E%3C/radialGradient%3E%3Cfilter id='bv' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.4' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22' numOctaves='2' seed='31' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='3' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='3' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='bv2' x='-8%25' y='-8%25' width='116%25' height='116%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='0.8' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.28' numOctaves='2' seed='5' result='n'/%3E%3CfeComposite in='n' in2='b' operator='arithmetic' k2='0.18' k3='1' result='h'/%3E%3CfeSpecularLighting in='h' surfaceScale='2' specularConstant='0.9' specularExponent='16' lighting-color='%23e6ebf2' result='s'%3E%3CfeDistantLight azimuth='225' elevation='40'/%3E%3C/feSpecularLighting%3E%3CfeComposite in='s' in2='SourceAlpha' operator='in' result='si'/%3E%3CfeDiffuseLighting in='h' surfaceScale='2' diffuseConstant='1.3' lighting-color='%23ffffff' result='d'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3CfeComposite in='SourceGraphic' in2='d' operator='arithmetic' k1='0.75' k2='0.25' result='lit'/%3E%3CfeComposite in='si' in2='lit' operator='arithmetic' k2='0.62' k3='1' result='o'/%3E%3CfeComposite in='o' in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3Cfilter id='sh' x='-10%25' y='-10%25' width='125%25' height='125%25' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur in='SourceAlpha' stdDeviation='1.6'/%3E%3CfeOffset dx='-1' dy='2' result='o'/%3E%3CfeComponentTransfer in='o' result='s'%3E%3CfeFuncA type='linear' slope='0.8'/%3E%3C/feComponentTransfer%3E%3CfeMerge%3E%3CfeMergeNode in='s'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23sh)'%3E%3Cpath d='M64,73.6 L0.6,73.6 L0.6,84 L56,84 C59.4,80.4 62.4,77.4 64,73.6 Z' fill='url(%23st)' stroke='%23030304' stroke-width='1' filter='url(%23bv)'/%3E%3Cpath d='M67.6,67.8 L2.4,67.8 L0.6,70 L0.6,73.6 L67.6,73.6 L69.2,71.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='1' filter='url(%23bv2)'/%3E%3Cpath d='M67.4,70 L0.8,70 L0.8,71.6 L67.4,71.6 Z' fill='url(%23bz)' opacity='.85'/%3E%3Cpath d='M40,2.5 C33.5,4.5 28.5,10.5 27,19 C26,24.5 26.4,28.5 27.2,31.4 C22.4,33 19.8,36.6 18.8,42 C17.4,50 16,59 13.6,68.6 L66.4,68.6 C64,59 62.6,50 61.2,42 C60.2,36.6 57.6,33 52.8,31.4 C53.6,28.5 54,24.5 53,19 C51.5,10.5 46.5,4.5 40,2.5 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='1.1' stroke-linejoin='round' filter='url(%23bv)'/%3E%3C/g%3E%3Cpath d='M55.6,44 C56.8,52 58,60 59,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M56.4,44.4 C57.6,52.4 58.8,60.4 59.8,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M49,48 C49.6,55 50,61 50.4,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M49.8,48.4 C50.4,55.4 50.8,61.4 51.2,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M31,48 C30.4,55 30,61 29.6,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M31.8,48.4 C31.2,55.4 30.8,61.4 30.4,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M24.4,44 C23.2,52 22,60 21,67.4' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M25.2,44.4 C24,52.4 22.8,60.4 21.8,67.8' fill='none' stroke='%23c4ccd6' stroke-opacity='.10' stroke-width='.7'/%3E%3Cpath d='M40,7.2 C34.2,8.8 30.6,14 30.2,20.4 C29.9,25.4 31.4,29.8 34.4,32.4 L35.6,30.6 C33.4,28.6 32.1,24.6 32.4,20.4 C32.8,15 35.4,10.6 40,9.2 C44.6,10.6 47.2,15 47.6,20.4 C47.9,24.6 46.6,28.6 44.4,30.6 L45.6,32.4 C48.6,29.8 50.1,25.4 49.8,20.4 C49.4,14 45.8,8.8 40,7.2 Z' fill='url(%23ir)' stroke='%23020203' stroke-width='.7' filter='url(%23bv2)'/%3E%3Cpath d='M40,9.2 C35.4,10.6 32.8,15 32.4,20.4 C32.1,24.6 33.4,28.6 35.6,30.6 C37,31.6 38.5,32 40,32 C41.5,32 43,31.6 44.4,30.6 C46.6,28.6 47.9,24.6 47.6,20.4 C47.2,15 44.6,10.6 40,9.2 Z' fill='url(%23void)' stroke='%23000' stroke-width='.8'/%3E%3Ccircle cx='42.6' cy='22.6' r='1.9' fill='url(%23eye)'/%3E%3Ccircle cx='37.4' cy='22.6' r='1.9' fill='url(%23eye)'/%3E%3Ccircle cx='42.6' cy='22.6' r='.55' fill='%23ffe2b0'/%3E%3Ccircle cx='37.4' cy='22.6' r='.55' fill='%23ffe2b0'/%3E%3Cpath d='M52.4,36 C49.4,37.4 46,39.6 43.6,42.4 L44.8,46.4 C47.8,44.6 51,42.6 53.8,41.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M27.6,36 C30.6,37.4 34,39.6 36.4,42.4 L35.2,46.4 C32.2,44.6 29,42.6 26.2,41.6 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M42,51 L38,51 L38.4,66.6 L40,69.2 L41.6,66.6 Z' fill='url(%23bl)' stroke='%230a0b0d' stroke-width='.8'/%3E%3Cpath d='M40,52 L40,65.4' stroke='%2322262b' stroke-width='.9'/%3E%3Cpath d='M50.4,47.4 L29.6,47.4 L27.4,49.2 L29.6,51 L50.4,51 L52.6,49.2 Z' fill='url(%23gd)' stroke='%23140b04' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M45,40.6 C43.4,39.4 41.6,39.2 40,39.8 C38.4,39.2 36.6,39.4 35,40.6 L34.4,45.2 C36.2,46.6 38.2,46.8 40,46.2 C41.8,46.8 43.8,46.6 45.6,45.2 Z' fill='url(%23ir)' stroke='%23030304' stroke-width='.8' filter='url(%23bv2)'/%3E%3Cpath d='M40,35.4 C38.4,35.4 37.4,36.4 37.4,37.8 C37.4,39.2 38.4,40.2 40,40.2 C41.6,40.2 42.6,39.2 42.6,37.8 C42.6,36.4 41.6,35.4 40,35.4 Z' fill='url(%23bz)' stroke='%23140b04' stroke-width='.7'/%3E%3Ccircle cx='58.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='58' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='57.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='44.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='44' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='43.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='30.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='30' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='29.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3Ccircle cx='16.48' cy='79.67' r='2' fill='%23000' opacity='.55'/%3E%3Ccircle cx='16' cy='79' r='1.9' fill='url(%23rv)' stroke='%23140c04' stroke-width='0.5'/%3E%3Ccircle cx='15.39' cy='78.32' r='0.61' fill='%23fff3d0' opacity='.75'/%3E%3C/svg%3E"); }
.ab-plate {
  position: relative;
  z-index: 1;
  padding: 8px 12px 7px;
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: var(--cx-r-2) var(--cx-r-2) 0 0;
  background:
    linear-gradient(90deg, rgba(176, 122, 60, 0.2), rgba(226, 181, 106, 0.8) 18%, rgba(226, 181, 106, 0.8) 82%, rgba(176, 122, 60, 0.2)) left 0 top 1px / 100% 1px no-repeat,
    var(--cx-rivet) left 3px top 4px / 8px 8px no-repeat,
    var(--cx-rivet) right 3px top 4px / 8px 8px no-repeat,
    var(--cx-rivet) left 3px bottom 3px / 8px 8px no-repeat,
    var(--cx-rivet) right 3px bottom 3px / 8px 8px no-repeat,
    var(--cx-bg-iron);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.55), inset 1px 0 0 rgba(196, 204, 214, 0.08), inset -1px 0 0 rgba(0, 0, 0, 0.5),
    inset 0 0 0 3px rgba(0, 0, 0, 0.15), 0 -4px 14px rgba(0, 0, 0, 0.5);
}
.ab { position: relative; display: flex; gap: var(--ab-gap); }
.ab-btn {
  position: relative;
  flex: none;
  width: var(--ab);
  height: var(--ab);
  padding: 0;
  border: 2px solid;
  border-color: #5a6068 #1d2024 #0d0e10 #3a3f46;    /* bevelled iron socket, cold light from the top-left */
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  color: var(--cx-bone);
  /* a dark forged-iron socket; the action's own hue is only a ~10 % tint (::before), never an enamel tile */
  background: radial-gradient(circle at 38% 28%, #2b2f35, #17191d 56%, #08090a 100%);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 0 0 2px rgba(122, 82, 41, 0.55), inset 0 6px 11px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.65);
  transition: transform 0.07s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.ab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, var(--a1, #66717c), rgba(0, 0, 0, 0) 78%);
  opacity: 0.1;
  pointer-events: none;
}
.ab-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255, 170, 90, 0.9), inset 0 0 12px rgba(255, 138, 61, 0.32);
  opacity: 0;
  transition: opacity var(--cx-dur-quick);
  pointer-events: none;
}
.ab-btn:hover::after, .ab-btn.open::after { opacity: 1; }
.ab-btn:focus-visible { outline: 2px solid var(--cx-torch); outline-offset: 3px; }
.ab-btn.pressed { transform: translateY(1px) scale(0.96); }
.ab-icon {
  position: absolute;
  left: 50%;
  top: 42%;
  width: calc(var(--ab) * 0.54);
  height: calc(var(--ab) * 0.54);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  /* engraved bone: cut into the iron — a dark lip above, a faint warm catch-light on the lower edge (static filter,
     rasterised once) */
  -webkit-filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 0 rgba(226, 181, 106, 0.22));
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 1px 0 rgba(226, 181, 106, 0.22));
  pointer-events: none;
}
.ab-icon .icon { width: 100%; height: 100%; }
/* glyph metal: the bone / bronze gradients live in the HUD's hidden <svg class="ei-glyph-defs"> (ui-hud.js) */
.ab-btn .ab-icon [fill="currentColor"] { fill: url(#ei-glyph-bone); }
.ab-btn .ab-icon [stroke="currentColor"] { stroke: url(#ei-glyph-bone); }
.ab-btn .ab-icon [fill="#c0301a"], .ab-btn .ab-icon [stroke="#7a1e0e"] { fill: #8a2a18; stroke: #5a1a0e; }
.ab-btn.open .ab-icon [fill="currentColor"], .ab-btn.active .ab-icon [fill="currentColor"], .ab-btn.exam .ab-icon [fill="currentColor"], .ab-btn.focus .ab-icon [fill="currentColor"],
.ab-btn:hover .ab-icon [fill="currentColor"] { fill: url(#ei-glyph-bronze); }
.ab-btn.open .ab-icon [stroke="currentColor"], .ab-btn.active .ab-icon [stroke="currentColor"], .ab-btn.exam .ab-icon [stroke="currentColor"], .ab-btn.focus .ab-icon [stroke="currentColor"],
.ab-btn:hover .ab-icon [stroke="currentColor"] { stroke: url(#ei-glyph-bronze); }
.ei-glyph-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ab-gloss {
  /* a dark recessed well: soot vignette, a faint firelight from below — never a white gloss */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 138, 61, 0.12), rgba(255, 138, 61, 0) 60%),
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}
.ab-key {
  position: absolute;
  top: 2px;
  right: 3px;
  font: 700 11px/1 var(--cx-font-num);
  color: var(--cx-bone);
  text-shadow: var(--outline);
  pointer-events: none;
}
.ab-name {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 2px;
  font: 700 11px/1 var(--cx-font-num);
  letter-spacing: 0;
  color: var(--cx-bone);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: var(--outline);
  pointer-events: none;
}
/* V7.2.0 the hunt: the Mob slot's count of cards you can fight now (a stack count, top left where the other slots show
   their timers; the Mob slot has none; hidden at 0) */
.ab-hunt {
  position: absolute; left: 3px; top: 2px; z-index: 3; pointer-events: none;
  font: 700 12px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums;
  color: #ffd27a; text-shadow: var(--outline);
}
.hud.compact .ab-hunt { font-size: 11px; left: 1px; top: 0; }
.ab-count {
  position: absolute;
  left: 3px;
  top: 2px;
  font: 700 11px/1 var(--cx-font-num);
  font-variant-numeric: lining-nums tabular-nums;   /* v5-fix: Alegreya Sans' old-style 0 read as "o" ("0m" -> "om") */
  color: var(--cx-gold-leaf);
  text-shadow: var(--outline);
  pointer-events: none;
  z-index: 2;
}
.ab-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 214, 150, 0.8), rgba(255, 138, 61, 0.32) 45%, rgba(255, 138, 61, 0) 72%);
  opacity: 0;
  pointer-events: none;
}
.ab-btn.pressed .ab-flash { animation: abFlash 0.35s ease-out; }
@keyframes abFlash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Cooldown-style sweep after a press: a dark wedge that unwinds clockwise. */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
.ab-cd {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(0, 0, 0, 0) 0deg var(--sweep), rgba(0, 0, 0, 0.6) var(--sweep) 360deg);
}
.ab-btn.sweep .ab-cd { opacity: 1; animation: abSweep 0.9s linear forwards; }
@keyframes abSweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
/* Real cooldown (Well Fed): remaining part stays dark. */
.ab-cdstatic { position: absolute; inset: 0; pointer-events: none; display: none; }
.ab-btn.oncd .ab-cdstatic {
  display: block;
  background: conic-gradient(from 0deg, rgba(0, 0, 0, 0) 0deg calc(360deg - var(--cdp, 0deg)), rgba(0, 0, 0, 0.66) calc(360deg - var(--cdp, 0deg)) 360deg);
}
.ab-btn.oncd .ab-count { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 14px; color: #fff; }
.ab-btn.oncd .ab-icon { filter: grayscale(0.5) brightness(0.8) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85)); }
.ab-lock { display: none; }
.ab-btn.locked { filter: grayscale(1) brightness(0.55); }
.ab-btn.locked .ab-lock { display: block; position: absolute; right: 3px; bottom: 13px; width: 11px; height: 11px; color: #e8e8e8; }
.ab-btn.locked .ab-lock .icon { width: 100%; height: 100%; }

/* Icon enamels ("spell icon" grounds): smouldering, low-key pigments in a dark well — each action keeps its hue so it
   is found at a glance, but nothing is candy-bright; the glyph is bone. */
.art-red { --a1: #8e3524; --a2: #43110b; --a3: #120404; --glyph: #f6e6d2; }
.art-purple { --a1: #6c4c8a; --a2: #2c1a3d; --a3: #0b0612; --glyph: #f1e6fa; }
.art-blue { --a1: #4d6894; --a2: #1b2943; --a3: #070b15; --glyph: #e8eef8; }
.art-green { --a1: #4e7a45; --a2: #1c3a1f; --a3: #07120a; --glyph: #eaf4e0; }
.art-yellow { --a1: #a8803e; --a2: #4c3314; --a3: #150e04; --glyph: #fbf0d8; }
.art-orange { --a1: #ad6430; --a2: #55270c; --a3: #170803; --glyph: #fbeada; }
.art-elite { --a1: #9c3626; --a2: #48110b; --a3: #130302; --glyph: #f4d58c; }
.art-grey { --a1: #6c6a66; --a2: #2d2c2a; --a3: #0d0d0c; --glyph: #efebe4; }
.art-brown { --a1: #8a663c; --a2: #432e19; --a3: #130c06; --glyph: #f8ecd8; }
.art-indigo { --a1: #556f9e; --a2: #22355e; --a3: #0a1020; --glyph: #e9eefa; }
.art-violet { --a1: #745889; --a2: #2f1f3d; --a3: #0d0813; --glyph: #f1e8f8; }
.art-slate { --a1: #66717c; --a2: #29313a; --a3: #0b0e12; --glyph: #eaeff4; }
.art-gold { --a1: #c09448; --a2: #6b4a20; --a3: #1d1306; --glyph: #fff3d6; }
.art-teal { --a1: #528270; --a2: #1c3f37; --a3: #06130f; --glyph: #e8f6f0; }
.ab-btn.art-elite { box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 0 0 2px rgba(226, 181, 106, 0.75), inset 0 6px 11px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.65); }

/* Live states (static — a warm or coloured halo, never a pulse) */
/* The one lit slot: the action that is running or ready (reading, a run, the exam, Map on the road) wears the ember
   rim — everything else stays dark iron (DESIGN rule 1). */
.ab-btn.active, .ab-btn.exam, .ab-btn.open, .ab-btn.focus {
  border-color: #b07a3c #4a311a #24180c #7a5229;
  box-shadow: 0 0 0 1px #000, 0 0 10px rgba(255, 138, 61, 0.38), inset 0 0 0 1px #000, inset 0 0 0 2px rgba(255, 170, 90, 0.7), inset 0 6px 11px rgba(0, 0, 0, 0.55);
}
.ab-btn.active::before, .ab-btn.exam::before, .ab-btn.open::before, .ab-btn.focus::before {
  background: radial-gradient(ellipse at 50% 115%, rgba(255, 138, 61, 0.9), rgba(226, 84, 31, 0) 70%);
  opacity: 0.3;
}
.ab-btn.active .ab-count { color: var(--cx-gold-leaf); }
.ab-btn.exam { --a1: #4e7a45; }
.ab-btn.exam .ab-icon { top: 32%; width: calc(var(--ab) * 0.44); height: calc(var(--ab) * 0.44); }
.ab-btn.exam .ab-name { white-space: normal; font-size: 11px; line-height: 10px; bottom: 2px; letter-spacing: -0.01em; }   /* "Problem / cleared" on two lines, never below the 11 px floor */
.ab-btn.exam .ab-count { color: #fff; }
.ab-btn.focus { --a1: #4d6894; }

/* Repeat later: quests are ready to repeat (count top-left, a calm verdigris halo). */
.ab-btn.due {
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #000, inset 0 0 0 2px rgba(134, 176, 165, 0.6), inset 0 6px 11px rgba(0, 0, 0, 0.55);
}
.ab-btn.due .ab-count { color: #c8f2e4; font-size: 12px; }

/* Wipe flyout */
.ab-flyout {
  position: absolute;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 6px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--cx-rivets-4), var(--cx-bg-iron);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.45), 0 4px 14px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  z-index: 5;
  animation: flyIn var(--cx-dur-quick) ease-out;
}
@keyframes flyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ab-flyout .ab-btn { --ab: 40px; }

/* ================================================================== XP BAR
 * A dark iron channel with a cold steel lip and 20 forged notches; the fill is ALWAYS molten ember (DESIGN §2.4,
 * SPEC 07:05). Rested never recolours it: the rested pool is a cold-steel ghost ahead of the fill (--cx-bar-rested at
 * ~50 %) ending in a small crescent moon. */
.xp {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: var(--xp-bottom);
  height: var(--xp-h);
  cursor: pointer;
}
.xp-track {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(180deg, #040405, #0c0e10 55%, #16191d);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #3a3f46, 0 0 0 3px #000, 0 -1px 0 3px rgba(196, 204, 214, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.92);
}
.xp:hover .xp-track { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-2), 0 0 0 3px #000, 0 -1px 0 3px rgba(226, 181, 106, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.92); }
.xp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--cx-bar-enamel), var(--cx-bar-xp);
  transition: width 0.75s var(--cx-ease);
}
.xp-fill.no-anim { transition: none; }
.xp-edge {
  position: absolute;
  right: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(196, 204, 214, 0.9);
  box-shadow: 0 0 5px 1px rgba(255, 138, 61, 0.6);
}
.xp-fill.glint .xp-edge { animation: glint 0.7s ease-out; }
@keyframes glint { 0% { opacity: 1; box-shadow: 0 0 10px 4px rgba(255, 214, 150, 0.9); } 100% { opacity: 1; } }
.xp.maxed .xp-fill { background: var(--cx-bar-enamel), var(--cx-bar-capital); }
.xp.maxed .xp-edge { display: none; }
.xp-rest {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--cx-bar-rested);
  opacity: 0.5;
  box-shadow: inset 0 1px 0 rgba(196, 214, 240, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  transition: left 0.75s var(--cx-ease), width 0.75s var(--cx-ease);
}
.xp-notches i {
  /* forged notches: a cut groove with a cold steel lip */
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.72));
  box-shadow: 1px 0 0 rgba(196, 204, 214, 0.1);
}
.xp-notches i::after {
  content: '';
  position: absolute;
  left: -1.5px;
  top: -2px;
  width: 5px;
  height: 4px;
  border-radius: 0 0 1px 1px;
  background: linear-gradient(180deg, #8a929c, #3a3f46 60%, #15171a);
  box-shadow: 0 0 0 0.5px #000;
}
.xp-flash { position: absolute; top: 0; bottom: 0; width: 5%; opacity: 0; background: rgba(255, 214, 150, 0.85); pointer-events: none; }
.xp-flash.go { animation: bubbleFlash 0.8s ease-out; }
@keyframes bubbleFlash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.xp-diamond {
  position: absolute;
  top: 50%;
  /* the end of the rested pool: a small cold crescent moon (static; only its position eases) */
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -3px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -3px 1px 0 0 #c9d6ec;
  -webkit-filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 2px rgba(142, 168, 212, 0.6));
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 2px rgba(142, 168, 212, 0.6));
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: left 0.75s var(--cx-ease), opacity 0.4s;
}
.xp-diamond.show { opacity: 1; }
.xp-diamond.beyond { margin-left: -10px; }
.xp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  font: 700 12px/1 var(--cx-font-num);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--cx-bone);
  letter-spacing: 0.02em;
  text-shadow: var(--outline);
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.xp-r { overflow: hidden; text-overflow: ellipsis; }
/* within 3 % of a ding the iron lip catches fire (static — never a pulse) */
.xp.near .xp-track { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-torch), 0 0 0 3px #000, 0 0 12px rgba(255, 138, 61, 0.55), inset 0 2px 4px rgba(0, 0, 0, 0.92); }
.xp-line { display: none; }

/* Compact exit button */
.cx-btn { display: none; }

/* ================================================================== TOASTS & BANNERS
 * Smoked-steel plates in iron with an ember edge, a medallion overlapping the left end, in one calm lane (DESIGN §6.7):
 * medallion = meaning — ember flame quest/exercise/mount, bronze star achievement/level/loot, steel crescent
 * rest/phone-free, patina leaf repeat/review/companion. At most two visible; while the quest card is open the lane
 * steps out of the way. Rise-in / sink-out 480 ms, nothing bounces. */
#toast-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.tl-banner, .tl-cards { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; }
.tl-banner { top: max(28%, calc(var(--hud-top-h, 0px) + 14px)); }   /* (V7.4 v74-finish, R5) */
.tl-cards { top: calc(30% + 168px); gap: 10px; }
.tl-ach {
  position: absolute;
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* main.js stands the hero just right of the chat frame (~35% of the width): transient cards sit over the
   right-centre of the scene so a ding's pillar, XP text and speech bubble stay visible. */
body:not(.sq-compact) .tl-ach { left: 58%; }
body:not(.sq-compact) .tl-cards { left: 16%; }
.tl-loot {
  position: absolute;
  right: 14px;
  bottom: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
/* calm lane: never more than two slips at once (the newest stay) */
.tl-ach > :nth-last-child(n+3), .tl-loot > :nth-last-child(n+3) { display: none; }

/* Level-up banner: a carved iron title plate lit by fire-gold light from below, the bronze medallion at its end */
.lvb {
  position: relative;
  text-align: center;
  padding: 18px 150px 20px;
  animation: lvbIn 0.7s var(--cx-ease) both;
}
.lvb.out { animation: lvbOut 1.1s ease-in forwards; }
@keyframes lvbIn { 0% { opacity: 0; transform: translateY(8px) scale(0.97); } 100% { opacity: 1; transform: none; } }
@keyframes lvbOut { to { opacity: 0; transform: translateY(-8px); } }
.lvb-band {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 52%, rgba(7, 8, 10, 0.84), rgba(7, 8, 10, 0.56) 55%, rgba(7, 8, 10, 0) 100%);
}
.lvb-burst {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 420px;
  height: 170px;
  margin: -85px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 62%, rgba(255, 170, 80, 0.46), rgba(255, 120, 40, 0.16) 45%, rgba(226, 84, 31, 0) 72%);
  animation: burst 1.6s ease-out both;
  pointer-events: none;
}
@keyframes burst { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0.5; } }
.lvb-level {
  /* "Level 23" in carved Cinzel capitals + small capitals on the large riveted title plate */
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  min-width: 260px;
  height: 66px;
  padding: 9px 26px 21px;
  border-style: solid;
  border-color: transparent;
  border-width: 0 57px;
  border-image-source: var(--cx-orn-ribbon);
  border-image-slice: 0 40 fill;
  border-image-width: 0 57px;
  border-image-repeat: stretch;
  font: 700 36px/36px var(--cx-font-title);
  letter-spacing: 0.06em;
  color: var(--cx-gold-leaf);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8), 0 2px 0 #000, 0 0 12px rgba(255, 150, 60, 0.55), 0 0 26px rgba(255, 110, 30, 0.3);
  text-transform: lowercase;
  white-space: nowrap;
}
.lvb-level::first-letter { text-transform: uppercase; }
.lvb-level::after {
  /* the bronze medallion riveted to the plate's left point */
  content: '';
  position: absolute;
  left: -70px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -32px;
  background: var(--cx-orn-seal-gold) center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6));
}
.lvb-rule {
  position: relative;
  width: 240px;
  height: 18px;
  margin: 6px auto 2px;
  background:
    var(--cx-orn-filler-dark) center / 200px 18px no-repeat;
}
.lvb-sub { position: relative; font: 700 21px/1.25 var(--cx-font-head); letter-spacing: 0.04em; color: var(--cx-bone); text-shadow: var(--outline), 0 0 8px rgba(0, 0, 0, 0.8); }
.lvb-talent { position: relative; margin-top: 4px; font: 700 15px/1.3 var(--cx-font-label); letter-spacing: 0.04em; color: #7fd86a; text-shadow: 0 1px 1px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.lvb-next { position: relative; margin-top: 3px; font: italic 500 17px/1.3 var(--cx-font-flavor); color: var(--cx-gold-3); text-shadow: 0 1px 1px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.lvb.big .lvb-level { font-size: 44px; }
.lvb.big .lvb-burst { width: 540px; height: 220px; margin: -110px 0 0 -270px; }
.lvb.max .lvb-level { font-size: 46px; border-image-source: var(--cx-orn-ribbon-lapis); }

/* Achievement / chapter / target toast: an iron plate with an ember edge, the medallion on its left end */
.ach {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 392px;
  max-width: calc(100vw - 40px);
  min-height: 62px;
  margin-left: 26px;
  padding: 9px 14px 11px 36px;
  color: var(--cx-text);
  border: 1px solid var(--cx-line);
  border-radius: 2px;
  background: var(--cx-caps),
    linear-gradient(90deg, rgba(255, 138, 61, 0), rgba(255, 138, 61, 0.95) 22%, rgba(255, 190, 110, 0.95) 50%, rgba(255, 138, 61, 0.95) 78%, rgba(255, 138, 61, 0)) left 0 bottom 1px / 100% 2px no-repeat,
    radial-gradient(ellipse 70% 60% at 50% 120%, rgba(255, 120, 40, 0.24), rgba(255, 120, 40, 0) 70%),
    var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.6), inset 0 0 0 3px rgba(5, 5, 6, 0.88), inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 8px 20px rgba(0, 0, 0, 0.62), 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: cx-rise var(--cx-dur-calm) var(--cx-ease) both;
}
.ach.out, .lc.out, .uc.out { animation: cx-sink var(--cx-dur-calm) var(--cx-ease-in) forwards; }
@keyframes toastUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-4px); } }
.ach-icon {
  /* the medallion: bronze star for an achievement, ember flame for a chapter, steel crescent for the weekly, patina leaf for a target */
  position: absolute;
  left: -28px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: var(--cx-orn-seal-gold) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.ach-icon .icon { display: none; }
.ach-body { min-width: 0; flex: 1 1 auto; }
.ach-head { font: 700 12px/1.2 var(--cx-font-label); letter-spacing: 0.1em; color: var(--cx-torch); text-shadow: 0 1px 0 #000; }
.ach-name { font: 700 18px/1.25 var(--cx-font-head); letter-spacing: 0.02em; color: var(--cx-gold-text); text-shadow: var(--cx-sh-text-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-desc { font: 400 14px/1.3 var(--cx-font-body); color: var(--cx-text-dim); }
.ach-title { font: 700 14px/1.3 var(--cx-font-body); color: #7fd86a; }
.ach-points {
  /* the points on a small forged bronze shield */
  flex: none;
  width: 34px;
  height: 40px;
  display: grid;
  place-items: center;
  padding-bottom: 6px;
  font: 700 15px/1 var(--cx-font-num);
  color: #fff1d0;
  text-shadow: 0 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.7);
  background: var(--cx-tex-gilt), linear-gradient(180deg, #e2b56a 0%, #b07a3c 22%, #7a5229 60%, #3e2711 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 56%, 86% 80%, 50% 100%, 14% 80%, 0 56%);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 86% 80%, 50% 100%, 14% 80%, 0 56%);
}
.ach.chapter .ach-icon { background-image: var(--cx-orn-seal); }
.ach.weekly .ach-icon { background-image: var(--cx-orn-seal-lapis); }
.ach.target .ach-icon { background-image: var(--cx-orn-seal-verdigris); }

/* Loot card: a smoked-steel plate so the WoW quality colours stay bright; an inner hairline in the quality colour */
.lc {
  --q: #1eff00;
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 300px;
  max-width: calc(100vw - 24px);
  padding: 8px 12px 8px 8px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  overflow: hidden;
  background: var(--cx-caps), var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.6), inset 0 0 0 3px rgba(5, 5, 6, 0.9), inset 0 0 0 4px color-mix(in srgb, var(--q) 45%, transparent), 0 6px 18px rgba(0, 0, 0, 0.62);
  pointer-events: auto;
  animation: cx-rise var(--cx-dur-calm) var(--cx-ease) both;
}
.lc.r-uncommon { --q: #1eff00; }
.lc.r-rare { --q: #0070dd; }
.lc.r-epic { --q: #a335ee; }
.lc.r-legendary { --q: #ff8000; }
.lc .q-rare { color: var(--cx-q-rare-text); }
.lc .q-epic { color: var(--cx-q-epic-text); }
.lc-icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  --dye: #888;
  background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--dye) 60%, #c4ccd6 25%), color-mix(in srgb, var(--dye), #000 20%) 52%, color-mix(in srgb, var(--dye), #000 80%) 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--q), 0 0 0 3px #000, inset 0 0 0 1px rgba(196, 204, 214, 0.18), inset 0 -6px 8px rgba(0, 0, 0, 0.45);
}
.lc-icon .icon { width: 60%; height: 60%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.8)); }
.lc-body { position: relative; z-index: 1; min-width: 0; }
.lc-head { font: 700 12px/1.2 var(--cx-font-label); letter-spacing: 0.08em; color: var(--cx-text-dim); }
.lc-name { font: 700 15px/1.25 var(--cx-font-body); text-shadow: 0 1px 1px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-sub { font: 400 13px/1.3 var(--cx-font-body); color: var(--cx-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc.grand { width: 340px; padding: 11px 14px 11px 11px; box-shadow: inset 0 0 0 1px rgba(226, 181, 106, 0.75), inset 0 0 0 3px rgba(5, 5, 6, 0.9), inset 0 0 0 4px var(--q), inset 0 0 22px color-mix(in srgb, var(--q) 22%, transparent), 0 0 18px color-mix(in srgb, var(--q) 40%, transparent), 0 6px 18px rgba(0, 0, 0, 0.7); }
.lc.grand .lc-icon { width: 50px; height: 50px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--q), 0 0 0 3px #000, 0 0 12px var(--q); }
.lc.grand .lc-head { color: var(--q); }
.lc.grand.r-epic .lc-head { color: var(--cx-q-epic-text); }
.lc.grand .lc-name { font: 700 18px/1.25 var(--cx-font-head); letter-spacing: 0.02em; }
.lc-rays {
  /* a still burst of light behind the icon (it never spins) */
  position: absolute;
  left: -40px;
  top: 50%;
  width: 160px;
  height: 160px;
  margin-top: -80px;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--q) 34%, transparent) 0deg 8deg, transparent 8deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 62%);
  mask-image: radial-gradient(circle, #000 15%, transparent 62%);
  opacity: 0.6;
  pointer-events: none;
}

/* Unlock / companion / mount card: an iron plate with an ember edge and the bronze medallion */
.uc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 380px;
  max-width: calc(100vw - 40px);
  min-height: 62px;
  margin-left: 26px;
  padding: 9px 14px 11px 36px;
  color: var(--cx-text);
  border: 1px solid var(--cx-line);
  border-radius: 2px;
  background: var(--cx-caps),
    linear-gradient(90deg, rgba(255, 138, 61, 0), rgba(255, 138, 61, 0.95) 22%, rgba(255, 190, 110, 0.95) 50%, rgba(255, 138, 61, 0.95) 78%, rgba(255, 138, 61, 0)) left 0 bottom 1px / 100% 2px no-repeat,
    radial-gradient(ellipse 70% 60% at 50% 120%, rgba(255, 120, 40, 0.24), rgba(255, 120, 40, 0) 70%),
    var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.6), inset 0 0 0 3px rgba(5, 5, 6, 0.88), inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 8px 20px rgba(0, 0, 0, 0.62), 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: cx-rise var(--cx-dur-calm) var(--cx-ease) both;
}
.uc-icon {
  position: absolute;
  left: -28px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: var(--cx-orn-seal-gold) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.uc-icon .icon { display: none; }
.uc-body { min-width: 0; }
.uc-head { font: 700 12px/1.2 var(--cx-font-label); letter-spacing: 0.1em; color: var(--cx-torch); text-shadow: 0 1px 0 #000; }
.uc-name { font: 700 18px/1.25 var(--cx-font-head); letter-spacing: 0.02em; color: var(--cx-gold-text); text-shadow: var(--cx-sh-text-gold); }
.uc-desc { font: 400 14px/1.3 var(--cx-font-body); color: var(--cx-text-dim); }
.uc.pet .uc-icon { background-image: var(--cx-orn-seal-verdigris); }
.uc.mount .uc-icon { background-image: var(--cx-orn-seal); }
/* V7.2.0: the level-up prompt (a talent point waits): the unlock card's look with two buttons */
.uc.tp { width: 420px; }
.uc.tp .uc-icon .icon { display: none; }
.tp-row { display: flex; gap: 8px; margin-top: 7px; }
.tp-row .codex-btn { pointer-events: auto; }
/* fixer round 1 (critic M1): during a fight on cards the prompt never covers the card: it docks under the HUD's talent
   mark, in the strip left of the lectern (ui-hud.js sets its width and the dock's top) */
#toast-layer .tl-dock { position: absolute; left: 0; top: 130px; display: flex; flex-direction: column; align-items: flex-start; }
#toast-layer .uc.tp.tp--dock { margin-left: 30px; min-height: 0; padding: 8px 10px 9px 26px; max-width: none; }
.uc.tp.tp--dock .uc-icon { left: -20px; width: 40px; height: 40px; margin-top: -20px; }
.uc.tp.tp--dock .uc-head { font-size: 11px; }
.uc.tp.tp--dock .uc-name { font-size: 15px; }
.uc.tp.tp--dock .uc-desc { font-size: 12.5px; }
.uc.tp.tp--dock .tp-row { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
body.qc-open #toast-layer .tl-dock { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s 0.15s; }

/* ================================================================== TOOLTIP ADDITIONS */
.tooltip .tt-key { color: var(--cx-text-dim); font: 700 12px var(--cx-font-num); }
.tooltip .tt-hint { color: var(--cx-text-faint); font-size: 12px; margin-top: 3px; }
.tooltip .tt-xp { color: #1eff00; margin-top: 3px; }
.tooltip .tt-xp b { color: #fff; }
.tooltip .tt-rest, .tooltip .tt-rested { color: #8fb6ff; }
.tooltip .tt-red { color: var(--cx-vermilion-hi); }
.tooltip .tt-sell { margin-top: 3px; justify-content: flex-start; gap: 6px; }
.tooltip .tt-sell .money { font-size: 12.5px; }

/* ================================================================== BOOT SCREEN (#boot, index.html)
 * A codex-screen: storm-lit ridges in cold smoke, a ruined keep against a pale break in the clouds, firelight from
 * below and sparse drifting embers (theme .ei-smoke / .ei-embers), the forged logo, one tip, the bronze-cased load bar
 * and the turning ember sigil — the same identity as the loading screens. Static gradients only. */
#boot {
  z-index: 2000;
  --boot-p: 100%;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#boot.boot-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 42% at 50% 104%, rgba(255, 120, 40, 0.3), rgba(226, 84, 31, 0.08) 45%, rgba(226, 84, 31, 0) 70%),
    radial-gradient(ellipse 34% 22% at 62% 30%, rgba(170, 186, 206, 0.22), rgba(170, 186, 206, 0) 70%),
    radial-gradient(ellipse 90% 30% at 30% 18%, rgba(70, 80, 91, 0.35), rgba(70, 80, 91, 0) 70%),
    linear-gradient(180deg, #07080a 0%, #11141a 30%, #1f252d 58%, #1b1a1c 78%, #1f130d 100%);
}
.boot-sky::after {
  /* a cold break in the storm clouds, and long smoke banks across it */
  content: '';
  position: absolute;
  inset: 0 0 38% 0;
  background:
    radial-gradient(ellipse 22% 9% at 63% 31%, rgba(214, 224, 238, 0.28), rgba(214, 224, 238, 0) 70%),
    linear-gradient(176deg, rgba(7, 8, 10, 0) 30%, rgba(42, 48, 56, 0.55) 36%, rgba(7, 8, 10, 0) 44%),
    linear-gradient(183deg, rgba(7, 8, 10, 0) 52%, rgba(42, 48, 56, 0.45) 58%, rgba(7, 8, 10, 0) 66%);
  opacity: 0.9;
}
.boot-hills { position: absolute; left: -2%; right: -2%; bottom: 0; z-index: 0; }
.boot-hills-far {
  /* misty mountain ranges (far, mid, near) lit along their crests from the cloud break, fog between them, and a ruined
     keep with ember-lit windows on the highest crag — one SVG, proportional (slice), rasterised once per size */
  height: 46%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 500' preserveAspectRatio='xMidYMax slice'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.1' stop-color='%2365717d'/%3E%3Cstop offset='.45' stop-color='%23434c56'/%3E%3Cstop offset='.8' stop-color='%232a3139'/%3E%3C/linearGradient%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.4' stop-color='%23323a42'/%3E%3Cstop offset='.7' stop-color='%2321262c'/%3E%3Cstop offset='1' stop-color='%2316191d'/%3E%3C/linearGradient%3E%3ClinearGradient id='n' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.5' stop-color='%2315181b'/%3E%3Cstop offset='1' stop-color='%230a0b0d'/%3E%3C/linearGradient%3E%3ClinearGradient id='fog' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237d8995' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%237d8995' stop-opacity='.32'/%3E%3Cstop offset='1' stop-color='%2368737f' stop-opacity='.5'/%3E%3C/linearGradient%3E%3ClinearGradient id='fog2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2356616c' stop-opacity='0'/%3E%3Cstop offset='.6' stop-color='%2356616c' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%2346505a' stop-opacity='.55'/%3E%3C/linearGradient%3E%3CradialGradient id='wg'%3E%3Cstop offset='0' stop-color='%23ff8a3d' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%23ff8a3d' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M0,560 L0,230.0 L6,227.3 L12,232.9 L19,219.7 L25,219.5 L31,211.9 L38,195.3 L44,186.5 L50,195.2 L56,190.2 L62,196.2 L69,205.9 L75,213.1 L81,218.5 L88,209.5 L94,222.6 L100,231.1 L106,226.3 L112,230.3 L119,252.2 L125,257.3 L131,258.5 L138,271.8 L144,259.8 L150,267.4 L156,252.4 L162,246.7 L169,245.4 L175,246.3 L181,234.1 L188,239.7 L194,228.0 L200,229.4 L206,229.0 L212,233.9 L219,239.3 L225,241.8 L231,238.0 L238,249.2 L244,259.9 L250,276.1 L256,290.7 L262,289.5 L269,298.6 L275,288.2 L281,276.3 L288,258.0 L294,258.5 L300,251.2 L306,262.2 L312,269.7 L319,267.2 L325,279.2 L331,258.5 L338,256.6 L344,247.7 L350,258.3 L356,267.4 L362,260.0 L369,267.5 L375,266.8 L381,265.3 L388,245.1 L394,233.7 L400,241.6 L406,246.3 L412,245.5 L419,254.3 L425,263.9 L431,276.5 L438,279.7 L444,269.0 L450,265.7 L456,279.0 L462,272.2 L469,257.3 L475,259.6 L481,260.5 L488,259.5 L494,270.5 L500,271.8 L506,276.8 L512,265.6 L519,255.2 L525,235.1 L531,232.2 L538,221.0 L544,229.0 L550,225.2 L556,230.0 L562,218.1 L569,215.0 L575,217.8 L581,230.6 L588,235.8 L594,241.7 L600,231.3 L606,227.6 L612,208.9 L619,191.5 L625,177.5 L631,174.2 L638,159.2 L644,170.0 L650,166.1 L656,179.8 L662,190.6 L669,189.9 L675,184.1 L681,175.1 L688,170.9 L694,175.0 L700,175.8 L706,175.8 L712,171.5 L719,168.5 L725,182.5 L731,193.8 L738,199.4 L744,209.3 L750,199.1 L756,210.8 L762,207.0 L769,221.0 L775,225.7 L781,218.3 L788,215.5 L794,221.5 L800,218.1 L806,208.6 L812,195.8 L819,196.9 L825,200.4 L831,199.2 L838,184.2 L844,180.7 L850,194.0 L856,211.5 L862,218.9 L869,219.2 L875,238.5 L881,236.3 L888,230.1 L894,233.6 L900,237.8 L906,239.5 L912,252.0 L919,259.9 L925,259.8 L931,254.7 L938,249.6 L944,250.9 L950,247.5 L956,256.3 L962,248.1 L969,244.9 L975,251.6 L981,262.3 L988,292.8 L994,294.9 L1000,305.0 L1006,300.9 L1012,289.5 L1019,276.3 L1025,275.1 L1031,269.3 L1038,276.8 L1044,283.6 L1050,273.9 L1056,289.1 L1062,297.8 L1069,297.0 L1075,298.5 L1081,297.4 L1088,280.5 L1094,278.1 L1100,282.6 L1106,280.4 L1112,271.4 L1119,270.6 L1125,282.1 L1131,287.7 L1138,296.2 L1144,296.5 L1150,284.5 L1156,313.1 L1162,325.0 L1169,342.9 L1175,345.4 L1181,342.5 L1188,344.3 L1194,353.3 L1200,358.9 L1206,347.5 L1212,343.4 L1219,338.2 L1225,347.6 L1231,351.0 L1238,354.5 L1244,357.3 L1250,346.4 L1256,354.2 L1262,348.0 L1269,339.1 L1275,321.8 L1281,330.5 L1288,321.0 L1294,325.6 L1300,339.3 L1306,334.9 L1312,343.8 L1319,330.8 L1325,319.9 L1331,313.3 L1338,315.8 L1344,295.9 L1350,287.6 L1356,285.6 L1362,287.1 L1369,286.1 L1375,280.1 L1381,270.0 L1388,260.1 L1394,248.8 L1400,245.1 L1406,247.7 L1412,236.7 L1419,254.8 L1425,253.3 L1431,252.9 L1438,254.3 L1444,260.7 L1450,284.4 L1456,275.4 L1462,285.4 L1469,278.9 L1475,257.2 L1481,247.2 L1488,255.8 L1494,267.5 L1500,270.9 L1506,272.3 L1512,270.9 L1519,260.7 L1525,258.1 L1531,261.1 L1538,252.3 L1544,247.4 L1550,261.9 L1556,263.9 L1562,280.6 L1569,278.8 L1575,278.9 L1581,263.6 L1588,267.5 L1594,265.4 L1600,250.0 L1600,560 Z' fill='url(%23f)'/%3E%3Cpath d='M0,230.0 L6,227.3 L12,232.9 L19,219.7 L25,219.5 L31,211.9 L38,195.3 L44,186.5 L50,195.2 L56,190.2 L62,196.2 L69,205.9 L75,213.1 L81,218.5 L88,209.5 L94,222.6 L100,231.1 L106,226.3 L112,230.3 L119,252.2 L125,257.3 L131,258.5 L138,271.8 L144,259.8 L150,267.4 L156,252.4 L162,246.7 L169,245.4 L175,246.3 L181,234.1 L188,239.7 L194,228.0 L200,229.4 L206,229.0 L212,233.9 L219,239.3 L225,241.8 L231,238.0 L238,249.2 L244,259.9 L250,276.1 L256,290.7 L262,289.5 L269,298.6 L275,288.2 L281,276.3 L288,258.0 L294,258.5 L300,251.2 L306,262.2 L312,269.7 L319,267.2 L325,279.2 L331,258.5 L338,256.6 L344,247.7 L350,258.3 L356,267.4 L362,260.0 L369,267.5 L375,266.8 L381,265.3 L388,245.1 L394,233.7 L400,241.6 L406,246.3 L412,245.5 L419,254.3 L425,263.9 L431,276.5 L438,279.7 L444,269.0 L450,265.7 L456,279.0 L462,272.2 L469,257.3 L475,259.6 L481,260.5 L488,259.5 L494,270.5 L500,271.8 L506,276.8 L512,265.6 L519,255.2 L525,235.1 L531,232.2 L538,221.0 L544,229.0 L550,225.2 L556,230.0 L562,218.1 L569,215.0 L575,217.8 L581,230.6 L588,235.8 L594,241.7 L600,231.3 L606,227.6 L612,208.9 L619,191.5 L625,177.5 L631,174.2 L638,159.2 L644,170.0 L650,166.1 L656,179.8 L662,190.6 L669,189.9 L675,184.1 L681,175.1 L688,170.9 L694,175.0 L700,175.8 L706,175.8 L712,171.5 L719,168.5 L725,182.5 L731,193.8 L738,199.4 L744,209.3 L750,199.1 L756,210.8 L762,207.0 L769,221.0 L775,225.7 L781,218.3 L788,215.5 L794,221.5 L800,218.1 L806,208.6 L812,195.8 L819,196.9 L825,200.4 L831,199.2 L838,184.2 L844,180.7 L850,194.0 L856,211.5 L862,218.9 L869,219.2 L875,238.5 L881,236.3 L888,230.1 L894,233.6 L900,237.8 L906,239.5 L912,252.0 L919,259.9 L925,259.8 L931,254.7 L938,249.6 L944,250.9 L950,247.5 L956,256.3 L962,248.1 L969,244.9 L975,251.6 L981,262.3 L988,292.8 L994,294.9 L1000,305.0 L1006,300.9 L1012,289.5 L1019,276.3 L1025,275.1 L1031,269.3 L1038,276.8 L1044,283.6 L1050,273.9 L1056,289.1 L1062,297.8 L1069,297.0 L1075,298.5 L1081,297.4 L1088,280.5 L1094,278.1 L1100,282.6 L1106,280.4 L1112,271.4 L1119,270.6 L1125,282.1 L1131,287.7 L1138,296.2 L1144,296.5 L1150,284.5 L1156,313.1 L1162,325.0 L1169,342.9 L1175,345.4 L1181,342.5 L1188,344.3 L1194,353.3 L1200,358.9 L1206,347.5 L1212,343.4 L1219,338.2 L1225,347.6 L1231,351.0 L1238,354.5 L1244,357.3 L1250,346.4 L1256,354.2 L1262,348.0 L1269,339.1 L1275,321.8 L1281,330.5 L1288,321.0 L1294,325.6 L1300,339.3 L1306,334.9 L1312,343.8 L1319,330.8 L1325,319.9 L1331,313.3 L1338,315.8 L1344,295.9 L1350,287.6 L1356,285.6 L1362,287.1 L1369,286.1 L1375,280.1 L1381,270.0 L1388,260.1 L1394,248.8 L1400,245.1 L1406,247.7 L1412,236.7 L1419,254.8 L1425,253.3 L1431,252.9 L1438,254.3 L1444,260.7 L1450,284.4 L1456,275.4 L1462,285.4 L1469,278.9 L1475,257.2 L1481,247.2 L1488,255.8 L1494,267.5 L1500,270.9 L1506,272.3 L1512,270.9 L1519,260.7 L1525,258.1 L1531,261.1 L1538,252.3 L1544,247.4 L1550,261.9 L1556,263.9 L1562,280.6 L1569,278.8 L1575,278.9 L1581,263.6 L1588,267.5 L1594,265.4 L1600,250.0' fill='none' stroke='%23c9d4de' stroke-opacity='.2' stroke-width='1.6'/%3E%3Cpath d='M860.2,253.5 L860.2,209.5 L854.2,209.5 L854.2,201.5 L862.2,201.5 L862.2,205.5 L868.2,205.5 L868.2,199.5 L876.2,199.5 L876.2,213.5 L886.2,213.5 L886.2,153.5 L882.2,153.5 L882.2,143.5 L889.2,143.5 L889.2,148.5 L895.2,148.5 L895.2,139.5 L900.2,145.5 L904.2,135.5 L909.2,147.5 L914.2,142.5 L914.2,153.5 L918.2,153.5 L918.2,191.5 L928.2,191.5 L928.2,181.5 L932.2,169.5 L936.2,181.5 L936.2,203.5 L946.2,203.5 L946.2,197.5 L950.2,197.5 L950.2,203.5 L954.2,203.5 L954.2,253.5 Z' fill='%230b0d10'/%3E%3Cpath d='M886.2,213.5 L886.2,153.5 M860.2,249.5 L860.2,209.5' stroke='%23c9d4de' stroke-opacity='.28' stroke-width='1.4' fill='none'/%3E%3Ccircle cx='900.2' cy='177.5' r='16' fill='url(%23wg)'/%3E%3Crect x='898.2' y='169.5' width='4.0' height='7.0' rx='1' fill='%23ffa24e'/%3E%3Crect x='898.2' y='189.5' width='4.0' height='7.0' rx='1' fill='%23ffa24e'/%3E%3Crect x='940.2' y='213.5' width='3.5' height='5.0' rx='1' fill='%23ffa24e'/%3E%3Crect x='0' y='200' width='1600' height='360' fill='url(%23fog)'/%3E%3Cpath d='M0,560 L0,310.0 L6,310.7 L12,308.3 L19,315.3 L25,319.1 L31,311.4 L38,310.7 L44,307.6 L50,314.3 L56,322.5 L62,327.8 L69,322.7 L75,327.1 L81,331.1 L88,334.2 L94,334.9 L100,325.7 L106,327.1 L112,329.2 L119,322.7 L125,320.2 L131,315.4 L138,318.9 L144,312.3 L150,309.9 L156,306.7 L162,307.2 L169,297.5 L175,295.8 L181,290.7 L188,281.4 L194,278.6 L200,273.6 L206,269.4 L212,260.5 L219,258.2 L225,264.1 L231,261.6 L238,264.4 L244,266.8 L250,260.2 L256,258.0 L262,266.2 L269,261.3 L275,259.1 L281,264.4 L288,263.0 L294,254.4 L300,251.5 L306,250.9 L312,256.2 L319,259.8 L325,260.5 L331,252.1 L338,248.9 L344,249.8 L350,254.2 L356,251.5 L362,251.1 L369,253.0 L375,259.1 L381,267.1 L388,271.7 L394,281.3 L400,286.0 L406,289.5 L412,287.4 L419,297.7 L425,297.9 L431,286.3 L438,283.7 L444,282.1 L450,285.6 L456,287.9 L462,279.9 L469,285.4 L475,284.7 L481,289.0 L488,287.9 L494,286.5 L500,291.0 L506,281.7 L512,280.3 L519,278.9 L525,282.3 L531,285.9 L538,281.3 L544,290.0 L550,293.4 L556,288.1 L562,285.5 L569,289.0 L575,289.1 L581,291.3 L588,288.5 L594,294.0 L600,303.9 L606,302.0 L612,308.3 L619,309.0 L625,303.1 L631,310.3 L638,313.2 L644,315.3 L650,310.9 L656,305.6 L662,295.2 L669,291.0 L675,289.6 L681,293.0 L688,293.1 L694,291.2 L700,292.0 L706,300.8 L712,301.1 L719,295.3 L725,297.4 L731,300.1 L738,298.6 L744,301.9 L750,308.5 L756,312.2 L762,307.2 L769,312.6 L775,311.6 L781,313.4 L788,322.0 L794,315.6 L800,319.4 L806,317.9 L812,321.9 L819,323.5 L825,315.4 L831,316.2 L838,311.2 L844,309.2 L850,302.9 L856,303.4 L862,310.0 L869,305.6 L875,307.2 L881,308.7 L888,311.5 L894,312.7 L900,313.3 L906,317.8 L912,320.0 L919,321.8 L925,332.9 L931,337.1 L938,334.0 L944,328.6 L950,328.7 L956,334.4 L962,335.7 L969,332.4 L975,333.0 L981,326.0 L988,323.3 L994,329.9 L1000,328.6 L1006,325.4 L1012,328.2 L1019,331.0 L1025,333.8 L1031,339.8 L1038,337.8 L1044,346.8 L1050,348.8 L1056,361.8 L1062,370.1 L1069,371.4 L1075,378.2 L1081,379.9 L1088,378.9 L1094,382.6 L1100,386.9 L1106,386.9 L1112,391.1 L1119,393.1 L1125,389.4 L1131,388.6 L1138,384.0 L1144,386.6 L1150,380.9 L1156,381.4 L1162,383.5 L1169,383.1 L1175,390.2 L1181,383.7 L1188,382.0 L1194,380.5 L1200,373.9 L1206,377.2 L1212,376.3 L1219,372.2 L1225,365.2 L1231,360.1 L1238,357.1 L1244,351.2 L1250,343.7 L1256,340.7 L1262,346.8 L1269,346.0 L1275,353.8 L1281,350.2 L1288,340.1 L1294,335.1 L1300,338.3 L1306,335.1 L1312,329.2 L1319,325.2 L1325,325.5 L1331,322.6 L1338,326.6 L1344,330.7 L1350,328.8 L1356,332.4 L1362,327.8 L1369,322.9 L1375,321.9 L1381,323.8 L1388,333.0 L1394,329.7 L1400,327.2 L1406,326.1 L1412,333.1 L1419,343.9 L1425,345.0 L1431,341.7 L1438,348.5 L1444,342.8 L1450,336.9 L1456,331.6 L1462,333.4 L1469,319.5 L1475,316.0 L1481,322.1 L1488,317.7 L1494,321.4 L1500,321.3 L1506,322.8 L1512,319.9 L1519,326.8 L1525,328.0 L1531,324.6 L1538,315.1 L1544,314.4 L1550,311.3 L1556,318.1 L1562,321.3 L1569,317.2 L1575,317.0 L1581,305.7 L1588,302.9 L1594,303.8 L1600,300.0 L1600,560 Z' fill='url(%23m)'/%3E%3Cpath d='M0,310.0 L6,310.7 L12,308.3 L19,315.3 L25,319.1 L31,311.4 L38,310.7 L44,307.6 L50,314.3 L56,322.5 L62,327.8 L69,322.7 L75,327.1 L81,331.1 L88,334.2 L94,334.9 L100,325.7 L106,327.1 L112,329.2 L119,322.7 L125,320.2 L131,315.4 L138,318.9 L144,312.3 L150,309.9 L156,306.7 L162,307.2 L169,297.5 L175,295.8 L181,290.7 L188,281.4 L194,278.6 L200,273.6 L206,269.4 L212,260.5 L219,258.2 L225,264.1 L231,261.6 L238,264.4 L244,266.8 L250,260.2 L256,258.0 L262,266.2 L269,261.3 L275,259.1 L281,264.4 L288,263.0 L294,254.4 L300,251.5 L306,250.9 L312,256.2 L319,259.8 L325,260.5 L331,252.1 L338,248.9 L344,249.8 L350,254.2 L356,251.5 L362,251.1 L369,253.0 L375,259.1 L381,267.1 L388,271.7 L394,281.3 L400,286.0 L406,289.5 L412,287.4 L419,297.7 L425,297.9 L431,286.3 L438,283.7 L444,282.1 L450,285.6 L456,287.9 L462,279.9 L469,285.4 L475,284.7 L481,289.0 L488,287.9 L494,286.5 L500,291.0 L506,281.7 L512,280.3 L519,278.9 L525,282.3 L531,285.9 L538,281.3 L544,290.0 L550,293.4 L556,288.1 L562,285.5 L569,289.0 L575,289.1 L581,291.3 L588,288.5 L594,294.0 L600,303.9 L606,302.0 L612,308.3 L619,309.0 L625,303.1 L631,310.3 L638,313.2 L644,315.3 L650,310.9 L656,305.6 L662,295.2 L669,291.0 L675,289.6 L681,293.0 L688,293.1 L694,291.2 L700,292.0 L706,300.8 L712,301.1 L719,295.3 L725,297.4 L731,300.1 L738,298.6 L744,301.9 L750,308.5 L756,312.2 L762,307.2 L769,312.6 L775,311.6 L781,313.4 L788,322.0 L794,315.6 L800,319.4 L806,317.9 L812,321.9 L819,323.5 L825,315.4 L831,316.2 L838,311.2 L844,309.2 L850,302.9 L856,303.4 L862,310.0 L869,305.6 L875,307.2 L881,308.7 L888,311.5 L894,312.7 L900,313.3 L906,317.8 L912,320.0 L919,321.8 L925,332.9 L931,337.1 L938,334.0 L944,328.6 L950,328.7 L956,334.4 L962,335.7 L969,332.4 L975,333.0 L981,326.0 L988,323.3 L994,329.9 L1000,328.6 L1006,325.4 L1012,328.2 L1019,331.0 L1025,333.8 L1031,339.8 L1038,337.8 L1044,346.8 L1050,348.8 L1056,361.8 L1062,370.1 L1069,371.4 L1075,378.2 L1081,379.9 L1088,378.9 L1094,382.6 L1100,386.9 L1106,386.9 L1112,391.1 L1119,393.1 L1125,389.4 L1131,388.6 L1138,384.0 L1144,386.6 L1150,380.9 L1156,381.4 L1162,383.5 L1169,383.1 L1175,390.2 L1181,383.7 L1188,382.0 L1194,380.5 L1200,373.9 L1206,377.2 L1212,376.3 L1219,372.2 L1225,365.2 L1231,360.1 L1238,357.1 L1244,351.2 L1250,343.7 L1256,340.7 L1262,346.8 L1269,346.0 L1275,353.8 L1281,350.2 L1288,340.1 L1294,335.1 L1300,338.3 L1306,335.1 L1312,329.2 L1319,325.2 L1325,325.5 L1331,322.6 L1338,326.6 L1344,330.7 L1350,328.8 L1356,332.4 L1362,327.8 L1369,322.9 L1375,321.9 L1381,323.8 L1388,333.0 L1394,329.7 L1400,327.2 L1406,326.1 L1412,333.1 L1419,343.9 L1425,345.0 L1431,341.7 L1438,348.5 L1444,342.8 L1450,336.9 L1456,331.6 L1462,333.4 L1469,319.5 L1475,316.0 L1481,322.1 L1488,317.7 L1494,321.4 L1500,321.3 L1506,322.8 L1512,319.9 L1519,326.8 L1525,328.0 L1531,324.6 L1538,315.1 L1544,314.4 L1550,311.3 L1556,318.1 L1562,321.3 L1569,317.2 L1575,317.0 L1581,305.7 L1588,302.9 L1594,303.8 L1600,300.0' fill='none' stroke='%23aebccb' stroke-opacity='.13' stroke-width='1.4'/%3E%3Crect x='0' y='290' width='1600' height='270' fill='url(%23fog2)'/%3E%3Cpath d='M0,560 L0,334.0 L12,334.4 L25,333.9 L38,335.6 L50,338.2 L62,337.9 L75,330.6 L88,329.0 L100,326.7 L112,328.7 L125,326.3 L138,324.5 L150,329.0 L162,327.6 L175,329.8 L188,332.1 L200,329.9 L212,326.9 L225,323.3 L238,325.3 L250,323.2 L262,325.1 L275,328.0 L288,331.9 L300,329.6 L312,333.2 L325,343.9 L338,344.7 L350,349.2 L362,357.8 L375,364.4 L388,367.1 L400,369.5 L412,373.8 L425,375.6 L438,374.2 L450,373.3 L462,375.6 L475,374.9 L488,381.5 L500,383.7 L512,391.6 L525,402.2 L538,404.8 L550,414.5 L562,417.1 L575,423.5 L588,423.4 L600,425.4 L612,429.3 L625,425.8 L638,427.9 L650,423.0 L662,429.3 L675,432.6 L688,432.6 L700,437.1 L712,440.9 L725,438.2 L738,438.3 L750,443.6 L762,444.9 L775,451.4 L788,453.6 L800,451.3 L812,451.1 L825,453.0 L838,455.9 L850,460.2 L862,458.4 L875,459.9 L888,455.0 L900,457.2 L912,449.1 L925,446.4 L938,440.4 L950,440.7 L962,431.6 L975,429.6 L988,420.0 L1000,417.1 L1012,409.2 L1025,405.9 L1038,406.0 L1050,405.8 L1062,401.0 L1075,396.3 L1088,395.9 L1100,391.3 L1112,393.5 L1125,391.1 L1138,387.8 L1150,384.1 L1162,378.6 L1175,372.3 L1188,365.8 L1200,366.8 L1212,359.2 L1225,358.2 L1238,353.7 L1250,344.3 L1262,346.7 L1275,342.8 L1288,337.4 L1300,334.4 L1312,335.6 L1325,331.5 L1338,331.7 L1350,326.4 L1362,320.0 L1375,317.6 L1388,308.6 L1400,306.1 L1412,305.9 L1425,311.5 L1438,314.9 L1450,324.5 L1462,321.6 L1475,325.4 L1488,326.6 L1500,327.1 L1512,325.0 L1525,326.9 L1538,324.1 L1550,315.4 L1562,320.8 L1575,325.6 L1588,325.2 L1600,324.0 L1600,560 Z' fill='url(%23n)'/%3E%3Cpath d='M0,334.0 L12,334.4 L25,333.9 L38,335.6 L50,338.2 L62,337.9 L75,330.6 L88,329.0 L100,326.7 L112,328.7 L125,326.3 L138,324.5 L150,329.0 L162,327.6 L175,329.8 L188,332.1 L200,329.9 L212,326.9 L225,323.3 L238,325.3 L250,323.2 L262,325.1 L275,328.0 L288,331.9 L300,329.6 L312,333.2 L325,343.9 L338,344.7 L350,349.2 L362,357.8 L375,364.4 L388,367.1 L400,369.5 L412,373.8 L425,375.6 L438,374.2 L450,373.3 L462,375.6 L475,374.9 L488,381.5 L500,383.7 L512,391.6 L525,402.2 L538,404.8 L550,414.5 L562,417.1 L575,423.5 L588,423.4 L600,425.4 L612,429.3 L625,425.8 L638,427.9 L650,423.0 L662,429.3 L675,432.6 L688,432.6 L700,437.1 L712,440.9 L725,438.2 L738,438.3 L750,443.6 L762,444.9 L775,451.4 L788,453.6 L800,451.3 L812,451.1 L825,453.0 L838,455.9 L850,460.2 L862,458.4 L875,459.9 L888,455.0 L900,457.2 L912,449.1 L925,446.4 L938,440.4 L950,440.7 L962,431.6 L975,429.6 L988,420.0 L1000,417.1 L1012,409.2 L1025,405.9 L1038,406.0 L1050,405.8 L1062,401.0 L1075,396.3 L1088,395.9 L1100,391.3 L1112,393.5 L1125,391.1 L1138,387.8 L1150,384.1 L1162,378.6 L1175,372.3 L1188,365.8 L1200,366.8 L1212,359.2 L1225,358.2 L1238,353.7 L1250,344.3 L1262,346.7 L1275,342.8 L1288,337.4 L1300,334.4 L1312,335.6 L1325,331.5 L1338,331.7 L1350,326.4 L1362,320.0 L1375,317.6 L1388,308.6 L1400,306.1 L1412,305.9 L1425,311.5 L1438,314.9 L1450,324.5 L1462,321.6 L1475,325.4 L1488,326.6 L1500,327.1 L1512,325.0 L1525,326.9 L1538,324.1 L1550,315.4 L1562,320.8 L1575,325.6 L1588,325.2 L1600,324.0' fill='none' stroke='%239aa8b6' stroke-opacity='.1' stroke-width='1.2'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
#boot > .boot-sky, #boot > .boot-hills { position: absolute; z-index: 0; }
#boot .codex-candlelight { left: 50%; top: 34%; width: 640px; height: 420px; margin: -210px 0 0 -320px; }
#boot > .boot-center { position: absolute; left: 0; right: 0; top: 24%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
#boot .boot-astrolabe { width: 64px; height: 64px; margin-bottom: 4px; }
#boot .boot-tagline { margin-top: 4px; }
#boot > .boot-bottom { position: absolute; left: 50%; bottom: max(9vh, calc(var(--cx-screen-band) + 40px)); transform: translateX(-50%); width: min(720px, calc(100vw - 2 * var(--cx-grand) - 24px)); text-align: center; }
.boot-tip {
  min-height: 2.8em;
  margin-bottom: 14px;
  font: italic 500 19px/1.4 var(--cx-font-flavor);
  color: var(--cx-text);
  text-shadow: var(--cx-sh-text-dark), 0 0 12px rgba(0, 0, 0, 0.8);
}
.boot-tip kbd { font-style: normal; font-size: 12px; }
.boot-bar { height: 18px; }
.boot-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--boot-p);
  background: var(--cx-bar-enamel), var(--cx-bar-xp);
  transition: width 0.4s ease;
}
@media (max-width: 560px), (max-height: 420px) {
  #boot > .boot-center { top: 14%; gap: 8px; }
  #boot .boot-astrolabe { display: none; }
  .boot-tip { font-size: 15px; min-height: 0; margin-bottom: 10px; }
  #boot > .boot-bottom { bottom: calc(var(--cx-screen-band) + 26px); }
}

/* ================================================================== RESPONSIVE (full mode) */
/* Narrower windows: the session block rises above the action-bar row. */
@media (max-width: 1179px) {
  /* the toast lane stays between the chat frame and the tracker */
  body:not(.sq-compact) .tl-ach { left: calc(50% + 30px); }
  body:not(.sq-compact) .ach, body:not(.sq-compact) .uc { width: 368px; }
  .hud { --ab: 42px; }
  .hud .ss { bottom: calc(var(--bar-top) + 10px); }
  .tl-loot { bottom: 192px; }
  .hud .trk { max-height: max(110px, calc(100vh - 212px - 210px)); }
}
/* Top-center stack: center it in the space between the unit frame and the minimap. */
@media (max-width: 1099px) {
  .hud-top { left: 324px; right: 214px; width: auto; min-width: 0; transform: none; }
  /* v5-fix: the tracker narrows to the minimap's column, so the reading chip, "Still reading?" and the calm notes under
     the zone name never run under the Objectives (900 px: they did) */
  .hud .trk { width: 202px; }
  .hud-top { right: 226px; }
  .hud .uf-plate { width: 230px; }
  .hud .uf { width: 290px; }
  .hud .chat { width: clamp(250px, 32vw, 340px); }
}
@media (max-width: 960px) {
  body:not(.sq-compact) .ach, body:not(.sq-compact) .uc { width: 336px; }
  .hud { --ab: 40px; --ab-gap: 4px; }
  .hud .ab-cap { width: 56px; height: 67px; }
  .hud .ab-cap.left { margin-right: -6px; }
  .hud .ab-cap.right { margin-left: -6px; }
}
/* The phone frame keeps its numbers when the top-center column gets narrow. */
@media (max-width: 999px) {
  .hud .pf-title, .hud .pf-line .dot:first-of-type { display: none; }
}
@media (max-height: 640px) {
  .hud .trk { top: 206px; }
  .tl-banner { top: 25%; }
  .tl-cards { top: calc(27% + 160px); }
}

/* ================================================================== COMPACT MODE (480x360 beside a PDF) */
.hud.compact { --ab: 34px; --ab-gap: 3px; --xp-h: 14px; --xp-bottom: 3px; --bar-top: 56px; }
.hud.compact .mm, .hud.compact .trk, .hud.compact .chat, .hud.compact .ss, .hud.compact .ab-cap { display: none !important; }
.hud.compact .uf { left: 4px; top: 4px; width: 240px; height: 60px; }
.hud.compact .uf-portrait { width: 54px; height: 54px; padding: 5px; }
.hud.compact .uf-ring { box-shadow: inset 0 0 8px 5px rgba(0, 0, 0, 0.5); }
.hud.compact .uf-plate { left: 32px; top: 6px; width: 204px; height: 44px; padding: 3px 9px 3px 28px; }
.hud.compact .uf-name { font-size: 14px; line-height: 16px; }
.hud.compact .uf-t { font-size: 12px; }
.hud.compact .uf-res { height: 11px; margin: 2px 0 1px; }
.hud.compact .uf-res .bar-text { font-size: 11px; padding: 0 3px; }
.hud.compact .uf-res .bar-text .l { font: 700 11px/1 var(--cx-font-num); letter-spacing: 0; }
.hud.compact .uf-sub { font-size: 12px; line-height: 13px; }
.hud.compact .uf-level { left: 14px; top: 39px; width: 26px; height: 26px; font-size: 11px; }
.hud.compact .uf-zzz { left: 44px; top: -3px; }
.hud.compact .uf-buffs { left: 64px; top: 58px; gap: 4px; }
.hud.compact .uf-talent { left: 64px; top: 57px; height: 21px; font-size: 11px; gap: 4px; }
.hud.compact .uf-talent-star { width: 16px; height: 16px; }
.hud.compact .uf.has-talents .uf-buffs { top: 84px; }
.hud.compact .buff { width: 20px; height: 20px; }
.hud.compact .buff-icon { inset: 3px; }
.hud.compact .buff-time { top: 22px; font-size: 11px; }
.hud.compact .hud-top {
  left: auto;
  right: 34px;
  top: 4px;
  transform: none;
  width: auto;
  min-width: 0;
  max-width: calc(100vw - 280px);
  align-items: flex-end;
  gap: 4px;
}
.hud.compact.has-run .hud-top, .hud.compact.has-phone .hud-top { max-width: calc(100vw - 250px); }
.hud.compact .uf-buffs:empty + * { display: none; }
.hud.compact .zl { padding: 2px 6px; background: none; max-width: calc(100vw - 280px); min-width: 0; box-sizing: border-box; }
/* (V7.4 v74-finish, LATE-REQUESTS R5: in a small window a long zone name is cut with an ellipsis instead of running over the unit frame) */
.hud.compact .zl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud.compact .zl-range { flex: none; }
.hud.compact .zl-name { font-size: 16px; }
.hud.compact .zl-range { font-size: 11px; }
.hud.compact.has-run .zl { display: none; }
.hud.compact .rf { width: auto; }
.hud.compact .rf-main { width: 214px; height: 40px; }
.hud.compact .rf-body { right: 0; top: 0; height: 40px; padding: 2px 8px; }
.hud.compact .rf-portrait, .hud.compact .rf-level { display: none; }
.hud.compact .rf-name { font-size: 12px; line-height: 14px; }
.hud.compact .rf-hp { height: 11px; margin: 2px 0 1px; }
.hud.compact .rf-hp .bar-text { font-size: 11px; }
.hud.compact .rf-meta { font-size: 11px; line-height: 12px; }
.hud.compact .rf-sub { display: none; }
.hud.compact .rf-btns { gap: 4px; justify-content: flex-end; }
.hud.compact .hbtn { font-size: 12px; min-height: 22px; padding: 1px 6px 0; gap: 3px; }
.hud.compact .hbtn kbd { display: none; }
.hud.compact .rf { align-items: flex-end; gap: 3px; }
.hud.compact .pf { padding: 3px 5px 3px 3px; gap: 6px; }
.hud.compact .pf-icon { width: 24px; height: 24px; }
.hud.compact .pf-icon .icon { width: 14px; height: 14px; }
.hud.compact .pf-title, .hud.compact .pf-line .dot:first-of-type { display: none; }
.hud.compact .pf-line { font-size: 12px; line-height: 13px; }
.hud.compact .pf-time { font-size: 11px; }
.hud.compact .pf-bar { height: 4px; margin-top: 2px; }
.hud.compact .pf .hbtn span { display: none; }
.hud.compact .errs { position: fixed; left: 0; right: 0; top: 27%; margin: 0; padding: 0 8px; }
.hud.compact .err { font-size: 14px; }
.hud.compact.banner-up .errs { opacity: 0; transition: opacity 0.2s; }
.hud.compact .zt, .hud.compact.has-run .zt, .hud.compact.has-phone .zt { --zt-top: 41%; }
.hud.compact .zt-zone { font-size: 30px; }
.hud.compact .zt-sub { font-size: 15px; }
.hud.compact .ab-plate { padding: 5px 7px 4px; }
.hud.compact .ab-name { display: none; }
.hud.compact .ab-icon { top: 50%; width: 20px; height: 20px; }
.hud.compact .ab-key { font-size: 11px; top: 0; right: 1px; }
.hud.compact .ab-count { font-size: 11px; left: 1px; top: 0; }
.hud.compact .ab-btn.exam .ab-icon { top: 50%; }
.hud.compact .ab-btn.active .ab-count, .hud.compact .ab-btn.focus .ab-count {
  left: 0; right: 0; top: auto; bottom: 1px; text-align: center;
}
.hud.compact .ab-btn.active .ab-icon, .hud.compact .ab-btn.focus .ab-icon { top: 40%; width: 16px; height: 16px; }
/* The action buttons must fit 480 px wide. */
@media (max-width: 540px) { .hud.compact { --ab: 32px; --ab-gap: 2px; } }
.hud.compact .xp { left: 4px; right: 4px; }
.hud.compact .xp-text { font-size: 11px; padding: 0 7px; }
.hud.compact .xp-notches i::after { display: none; }
.hud.compact .cx-btn {
  display: grid;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  color: var(--cx-bone);
  background: radial-gradient(circle at 50% 46%, #1d2126 0, #0b0c0e 6.8px, #e2b56a 7.3px, #6b4a20 8.2px, rgba(0, 0, 0, 0) 8.6px), var(--iron-ring);
  box-shadow: 0 0 0 1px #030304, 0 2px 4px rgba(0, 0, 0, 0.65);
}
.hud.compact .cx-btn .icon { width: 12px; height: 12px; }

/* Toasts in compact mode (body class set by the HUD) */
.sq-compact .tl-banner { top: 20%; }
.sq-compact .tl-cards { top: calc(22% + 112px); }
.sq-compact .lvb { padding: 10px 56px 12px; }
.sq-compact .lvb-level, .sq-compact .lvb.big .lvb-level, .sq-compact .lvb.max .lvb-level {
  min-width: 170px; height: 46px; padding: 7px 14px 15px; border-width: 0 40px; border-image-width: 0 40px; font-size: 26px; line-height: 24px;
}
.sq-compact .lvb-level::after { left: -50px; width: 40px; height: 40px; margin-top: -24px; }
.sq-compact .lvb-sub { font-size: 16px; }
.sq-compact .lvb-talent, .sq-compact .lvb-next { font-size: 13px; }
.sq-compact .lvb-rule { margin: 3px auto 0; }
.sq-compact .tl-ach { bottom: 66px; left: auto; right: 6px; transform: none; align-items: flex-end; }   /* clear of the hero (28% from the left) */
.sq-compact .tl-cards { left: auto; right: 6px; align-items: flex-end; }
.sq-compact .tl-loot { right: 6px; bottom: 66px; }
.sq-compact .tl-ach > :nth-last-child(n+2), .sq-compact .tl-loot > :nth-last-child(n+2) { display: none; }
.sq-compact .ach, .sq-compact .uc { width: 300px; min-height: 48px; margin-left: 20px; padding: 6px 9px 6px 26px; gap: 8px; }
.sq-compact .ach-icon, .sq-compact .uc-icon { left: -20px; width: 40px; height: 40px; margin-top: -20px; }
.sq-compact .ach-name, .sq-compact .uc-name { font-size: 15px; }
.sq-compact .ach-desc, .sq-compact .uc-desc { font-size: 12.5px; }
.sq-compact .ach-points { width: 28px; height: 34px; font-size: 13px; }
.sq-compact .lc { width: 240px; padding: 5px 8px 5px 5px; }
.sq-compact .lc.grand { width: 270px; padding: 7px 9px 7px 7px; }
.sq-compact .lc-icon, .sq-compact .lc.grand .lc-icon { width: 34px; height: 34px; }
.sq-compact .lc-name { font-size: 13px; }
.sq-compact .lc.grand .lc-name { font-size: 15px; }

/* ================================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .hud *, .hud *::before, .hud *::after, #toast-layer *, #toast-layer *::before, #toast-layer *::after, #boot *, #boot *::before, #boot *::after {
    animation: none !important;
  }
  .hud .xp-fill, .hud .xp-rest, .hud .xp-diamond, .hud .uf-res-fill, .hud .uf-res-next, .hud .rf-hp-fill { transition-duration: 0.15s !important; }
  .hud .ab-btn, .hud .mm-btn { transition: none !important; }
  .hud .ab-btn.pressed { transform: none; }
}
body.reduced-motion .hud *, body.reduced-motion .hud *::before, body.reduced-motion .hud *::after,
body.reduced-motion #toast-layer *, body.reduced-motion #toast-layer *::before, body.reduced-motion #toast-layer *::after,
body.reduced-motion #boot *, body.reduced-motion #boot *::before, body.reduced-motion #boot *::after {
  animation: none !important;
}
body.reduced-motion .hud .xp-fill, body.reduced-motion .hud .xp-rest, body.reduced-motion .hud .xp-diamond,
body.reduced-motion .hud .uf-res-fill, body.reduced-motion .hud .uf-res-next, body.reduced-motion .hud .rf-hp-fill { transition-duration: 0.15s !important; }
body.reduced-motion .hud .ab-btn, body.reduced-motion .hud .mm-btn { transition: none !important; }
body.reduced-motion .hud .ab-btn.pressed { transform: none; }

/* ================================================================== ITERATION 2: THE LIVING WORLD */
.hud .tf, .hud .qc, .hud .tq-line { pointer-events: auto; }

/* Travel frame (top center): the ride IS the break. */
.hud .tf {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px 6px 6px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--hud-plate);
  box-shadow: var(--hud-plate-sh);
  max-width: 100%;
}
.hud .tf.boat { box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.1), inset 0 0 0 1px rgba(134, 176, 165, 0.55), inset 0 0 0 3px rgba(5, 5, 6, 0.86), inset 0 0 0 4px rgba(134, 176, 165, 0.14), 0 4px 14px rgba(0, 0, 0, 0.6); }
.hud .tf-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f6ecdc;
  background: radial-gradient(circle at 40% 32%, #8a663c, #432e19 60%, #130c06 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-3), 0 0 0 3px #000, 0 0 0 5px #2e3237, 0 0 0 6px #000;
}
.hud .tf.boat .tf-icon { background: radial-gradient(circle at 40% 32%, #528270, #1c3f37 60%, #06130f 100%); }
.hud .tf-icon .icon { width: 20px; height: 20px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7)); }
.hud .tf-body { min-width: 0; flex: 1 1 auto; cursor: help; }
.hud .tf-line { font: 400 14px/17px var(--cx-font-body); color: var(--cx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 1px #000; }
.hud .tf-title { font: 700 13px/16px var(--cx-font-label); letter-spacing: 0.03em; color: var(--cx-gold-text); }
.hud .tf-time { font: 700 13px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--cx-bone); }
.hud .tf-dash { color: rgba(235, 228, 214, 0.5); }
.hud .tf-break { color: #b9d4c6; font: italic 500 15px/17px var(--cx-font-flavor); }
.hud .tf-line .dot::before { margin: 0 4px; }
.hud .tf-bar { height: 6px; margin-top: 4px; border: 1px solid #000; border-radius: 2px; background: #040405; box-shadow: inset 0 1px 2px #000, 0 0 0 1px #3a3f46; overflow: hidden; }
.hud .tf-fill { height: 100%; background: var(--cx-bar-enamel), var(--cx-bar-capital); }   /* per-second tick: no transition (energy) */
.hud .tf.boat .tf-fill { background: var(--cx-bar-enamel), var(--cx-bar-verdigris); }
.hud .tf-arrive {
  flex: none;
  align-self: flex-end;
  padding: 0 0 1px;
  border: 0;
  background: none;
  cursor: pointer;
  font: 400 13px/1 var(--cx-font-body);
  color: var(--cx-text-dim);
  text-decoration: underline;
  text-decoration-color: rgba(235, 228, 214, 0.25);
  text-underline-offset: 2px;
}
.hud .tf-arrive:hover { color: var(--cx-gold-leaf); text-decoration-color: currentColor; }
.hud.has-travel .zt { --zt-top: max(22%, 190px); }

/* Tracker v2: one-line items (where you are, the open exercise, the Repeat list, invasion). */
.tq-line { margin-bottom: 5px; }
.tq-line .tl {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 400 14px/17px var(--cx-font-body);
  color: var(--cx-bone);
  text-shadow: var(--outline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tq-line .tl .tl-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tq-line .tl + .tl { padding-left: 16px; }
.tq-line .tl-main { font-size: 15px; }
.tq-loc .tl-main { white-space: normal; }
.tq-loc .tl-main .tl-text { white-space: normal; overflow: visible; }
.tq-line .tq-mark .icon { width: 11px; height: 11px; vertical-align: -1px; filter: drop-shadow(0 1px 0 #000); }
.tq-line .tq-mark.loc { color: var(--cx-torch); }
.tq-line .tq-mark.open { color: var(--cx-torch); }
.tq-line .tq-mark.replist { color: var(--cx-verdigris-3); }
.tq-line .tq-mark.invasion { color: var(--cx-vermilion-hi); }
.tl-zone { color: var(--cx-gold-text); font-weight: 700; }
.tl-frame { color: var(--cx-bone); }
.tl-road { color: #b9d4c6; font-style: italic; }
.tl-q { color: var(--cx-bone); }
.tl-q.none { color: var(--cx-text-dim); }
.tl-ex { color: var(--cx-gold-text); font-weight: 700; }
.tl-done { color: #ffffff; }
.tl-review { color: #4fd43a; }
.tl-hard { color: #ff8a3d; }
.tl-stuck { color: #ff5a50; }
/* V5: the Repeat list's due entries (click one to fill the quest card) */
.tl-due { color: #7fe3d2; font-weight: 700; }
.tq-line .tl.tl-rep { cursor: pointer; font-style: normal; }
.tq-line .tl.tl-rep:hover .tl-text { color: var(--cx-gold-leaf); }
.tl-dimkey { font: 700 11px/1 var(--cx-font-num); color: var(--cx-text-dim); border: 1px solid #46505b; border-radius: 2px; padding: 0 3px; background: rgba(7, 8, 10, 0.6); }
.tq-line .tl-hint { color: var(--cx-text-dim); font-style: italic; }
.tq-line .tl-hint.exhausted, .tq-line .tl-hint.outgrown { color: #c9b48a; }
.trk-body:hover .tl-hint { color: #cfc9bd; }

/* Quest card (Q): a parchment note pinned in a forged iron frame (the frame and the page are two pseudo-layers, so
 * nothing in the markup changes), the ember medallion as its pin, bronze rating plates with the con colour as an
 * enamel stripe. Non-modal; it never takes focus from the field. */
.hud .qc {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-top) + 24px);
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 16px));
  padding: 10px 14px 9px 16px;
  color: var(--cx-ink-text);
  border: 0;
  border-radius: 2px;
  background: none;
  z-index: 5;
  outline: none;
}
.hud .qc::before {
  /* the forged frame: iron band, bronze hairline, cap corners, bronze rivets */
  content: '';
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-r-2);
  background: var(--cx-caps), var(--cx-rivet) left 10px bottom 1px / 7px 7px no-repeat, var(--cx-rivet) right 10px bottom 1px / 7px 7px no-repeat,
    var(--cx-rivet) right 10px top 1px / 7px 7px no-repeat, var(--cx-bg-iron);
  box-shadow: inset 0 0 0 1px rgba(196, 204, 214, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}
.hud .qc::after {
  /* the parchment note, scorched at the edges, in a bronze hairline */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 1px;
  background: var(--cx-bg-vellum);
  box-shadow: var(--cx-vellum-burn), 0 0 0 1px rgba(176, 122, 60, 0.75), 0 0 0 2px #000;
  pointer-events: none;
}
.hud .qc.qc-in { animation: qcIn var(--cx-dur-quick) ease-out; }
@keyframes qcIn { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.qc-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 0 5px 30px; background: linear-gradient(90deg, rgba(122, 29, 16, 0.4), rgba(122, 29, 16, 0)) left bottom / 100% 1px no-repeat; }
.qc-icon {
  /* the ember medallion that pins the note to its frame (top-left corner) */
  position: absolute;
  left: -18px;
  top: -18px;
  width: 44px;
  height: 44px;
  z-index: 1;
  background: var(--cx-orn-seal) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.qc-icon .icon { display: none; }
.qc-title { flex: 1 1 auto; font: 700 18px/1 var(--cx-font-head); letter-spacing: 0.04em; color: var(--cx-ink-rubric); }
.qc-x {
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cx-orn-close) center / 100% 100% no-repeat;
}
.qc-x:hover { filter: brightness(1.2); }
.qc-x .icon { display: none; }
.qc-label { display: block; font: 700 12px/1 var(--cx-font-label); letter-spacing: 0.08em; color: var(--cx-ink-text-dim); margin: 0 0 4px; }
.qc-row { display: flex; gap: 8px; align-items: flex-end; }
.hud .qc-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(60, 34, 12, 0.6);
  border-radius: 0;
  font: 700 19px/1 var(--cx-font-num);
  font-variant-numeric: lining-nums;
  color: var(--cx-ink-text);
  caret-color: var(--cx-ink-rubric);
  background: rgba(255, 250, 236, 0.5);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
}
.hud .qc-input:focus { background: rgba(255, 250, 236, 0.8); box-shadow: inset 0 -2px 0 var(--cx-ink-rubric); }
.hud .qc-input::placeholder { color: rgba(80, 56, 32, 0.55); font: italic 400 14px/1 var(--cx-font-body); }
.qc-go {
  flex: none; height: 28px; padding: 0 8px; border: 1px solid #000; border-radius: var(--cx-r-1); cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 228, 166, 0.3), rgba(255, 228, 166, 0) 2px), var(--cx-tex-gilt), linear-gradient(180deg, #a8783e 0%, #80552a 22%, #5a3a18 60%, #3a240e 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 201, 122, 0.6), 0 2px 0 rgba(0, 0, 0, 0.45);
}
.qc-go:hover { box-shadow: inset 0 0 0 1px rgba(255, 224, 160, 0.95), inset 0 -6px 10px rgba(255, 138, 61, 0.25), 0 2px 0 rgba(0, 0, 0, 0.45); }
.hud .qc-go kbd { background: none; border: 0; box-shadow: none; color: #f7e3b2; font-size: 11px; text-shadow: 0 1px 0 #000; }
.qc-hint { min-height: 36px; margin: 6px 0 0; font: 400 14px/17px var(--cx-font-body); color: var(--cx-ink-text); }
.qc-hint > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh-dim { color: var(--cx-ink-text-dim); font-style: italic; }
.qh-open { color: var(--cx-ink-gold); font-weight: 700; }
.qh-rev { color: var(--cx-con-green-ink); font-weight: 700; }
.qh-hard { color: var(--cx-con-orange-ink); font-weight: 700; }
.qh-stuck { color: var(--cx-con-red-ink); font-weight: 700; }
.qh-turn { color: var(--cx-ink-text); }
.qh-line { font: 700 13px/16px var(--cx-font-num); font-style: normal; color: var(--cx-ink-rubric); word-spacing: 2px; }   /* V5: "4c 3" logs at once */
.qh-fill {
  padding: 0 5px; border: 0; border-radius: 2px; cursor: pointer;
  font: 700 13px/16px var(--cx-font-num); color: var(--cx-ink-rubric); background: rgba(138, 36, 20, 0.08); box-shadow: inset 0 -1px 0 var(--cx-ink-rubric);
}
.qh-fill:hover { background: rgba(138, 36, 20, 0.16); }
.qc .qc-s2, .qc .qc-s3 { display: none; }
.qc.step2 .qc-s1, .qc.step3 .qc-s1 { display: none; }
.qc.step2 .qc-s2, .qc.step3 .qc-s3 { display: block; }
.qc-whatrow { display: flex; align-items: baseline; gap: 8px; }
/* V5: what the exercise is worth sits in the head, never on the rating buttons (A2-core §1.3); ink on parchment, the
   quest level's con colour (its -ink twin) when the engine gives one */
.qc-worth { margin-left: auto; flex: none; font: 700 13px/1 var(--cx-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--con, var(--cx-ink-gold)); white-space: nowrap; }
.qc-worth:empty { display: none; }
.qc-notice { margin: 6px 0 0; padding: 3px 6px; font: italic 400 13px/16px var(--cx-font-body); color: var(--cx-ink-rubric); background: rgba(138, 36, 20, 0.07); box-shadow: inset 2px 0 0 var(--cx-ink-rubric); }
.qc-notice.hidden { display: none; }
.qc-what { font: 700 20px/1.15 var(--cx-font-head); letter-spacing: 0.02em; color: var(--cx-ink-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-what .qc-sub { color: var(--cx-con-green-ink); margin-left: 1px; }
.qc-back { border: 0; background: none; padding: 0; cursor: pointer; font: 400 13px/1 var(--cx-font-body); color: var(--cx-ink-lapis); text-decoration: underline; text-underline-offset: 2px; }
.qc-back:hover { color: var(--cx-ink-rubric); }
.qc-rep { min-height: 16px; font: 400 14px/17px var(--cx-font-body); color: var(--cx-ink-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-ask { margin: 4px 0 6px; font: 700 12px/1 var(--cx-font-label); letter-spacing: 0.08em; color: var(--cx-ink-text-dim); }
.qc-rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qc-rate {
  /* an iron plate: smoked-steel face, cold top lip, a bronze hairline rim; the con colour is an enamel stripe on its
     left edge (DESIGN §12: no wood grain) */
  --rci: var(--cx-con-grey);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 5px 6px 5px 11px;
  border: 1px solid #030304;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  background: linear-gradient(180deg, rgba(196, 204, 214, 0.2), rgba(196, 204, 214, 0) 2px),
    radial-gradient(ellipse at 30% 0%, rgba(125, 136, 149, 0.22), rgba(125, 136, 149, 0) 70%),
    linear-gradient(180deg, #353a41 0%, #23272c 45%, #191c20 78%, #111316 100%);
  box-shadow: inset 5px 0 0 var(--rci), inset 6px 0 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(176, 122, 60, 0.62), inset 0 -2px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: transform 0.08s ease-out;
}
/* V5: RemNote's order, worst -> best (A2-core §1.1): red · amber · bone · green; ui-hud.js sets --rci from Data.RECALL */
.qc-rate.r1 { --rci: #e5534b; }
.qc-rate.r2 { --rci: #e0a23d; }
.qc-rate.r3 { --rci: #e8dcc0; }
.qc-rate.r4 { --rci: #6cc46c; }
.qc-rate:hover {
  background: linear-gradient(180deg, rgba(196, 204, 214, 0.26), rgba(196, 204, 214, 0) 2px),
    radial-gradient(ellipse at 50% 130%, rgba(255, 138, 61, 0.34), rgba(255, 138, 61, 0) 70%),
    linear-gradient(180deg, #3b4148 0%, #282c32 45%, #1c1f23 78%, #131518 100%);
  box-shadow: inset 5px 0 0 var(--rci), inset 6px 0 0 rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 170, 90, 0.75), inset 0 -2px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.55);
}
.qc-rate:focus-visible { outline: 2px solid var(--cx-torch); outline-offset: 1px; }
.qc-rate.pressed { transform: translateY(1px); }
.hud .qc-rate kbd { position: absolute; right: 4px; bottom: 4px; font-size: 11px; padding: 0 4px; min-width: 0; color: var(--cx-bone); background: linear-gradient(180deg, #34383e, #15171a); border-color: #000; text-shadow: 0 1px 0 #000; box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.18), 0 1px 0 rgba(0, 0, 0, 0.5); }
.qc-rn { max-width: 100%; box-sizing: border-box; font: 700 14px/1.1 var(--cx-font-label); letter-spacing: 0.04em; color: #f7e3b2; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the key cap sits bottom-right, by the XP */
.qc-rs { font: 400 13px/1.15 var(--cx-font-body); color: #e8d8ba; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qc-due { min-height: 13px; font: 500 11px/1.2 var(--cx-font-num); color: var(--cx-text-dim); text-shadow: 0 1px 0 #000; white-space: nowrap; }   /* when it comes back, like RemNote's intervals */
.qc-foot { margin-top: 7px; font: 400 13px/18px var(--cx-font-body); color: var(--cx-ink-text-dim); text-align: center; white-space: nowrap; overflow: hidden; }
.hud .qc-foot kbd, .hud .qc-hint kbd { display: inline-block; font-size: 11px; line-height: 13px; padding: 0 3px; margin: 0 1px; color: var(--cx-ink-text); text-shadow: none; background: linear-gradient(180deg, #fbf3dd, #d8c393); border-color: rgba(60, 34, 12, 0.7); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(60, 34, 12, 0.55); vertical-align: 1px; }
.qc-foot .dot::before { margin: 0 4px; color: var(--cx-ink-rubric-lg); }

/* Center-stage toasts (welcome back, session report): an iron plate with an ember edge and a medallion, calm, never take focus. */
#toast-layer .tl-cards { top: 26%; left: 0; right: 0; }
body:not(.sq-compact) #toast-layer .tl-cards { left: 0; }
.stg {
  position: relative;
  width: min(430px, calc(100vw - 48px));
  margin-left: 26px;
  padding: 11px 18px 13px 40px;
  text-align: left;
  color: var(--cx-text);
  border: 1px solid var(--cx-line);
  border-radius: 2px;
  background: var(--cx-caps),
    linear-gradient(90deg, rgba(255, 138, 61, 0), rgba(255, 138, 61, 0.95) 22%, rgba(255, 190, 110, 0.95) 50%, rgba(255, 138, 61, 0.95) 78%, rgba(255, 138, 61, 0)) left 0 bottom 1px / 100% 2px no-repeat,
    radial-gradient(ellipse 70% 60% at 50% 120%, rgba(255, 120, 40, 0.24), rgba(255, 120, 40, 0) 70%),
    var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.12), inset 0 0 0 1px rgba(176, 122, 60, 0.6), inset 0 0 0 3px rgba(5, 5, 6, 0.88), inset 0 0 0 4px rgba(138, 145, 154, 0.14), 0 8px 22px rgba(0, 0, 0, 0.62), 0 1px 3px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  cursor: default;
  animation: cx-rise var(--cx-dur-calm) var(--cx-ease) both;
  transition: opacity 0.6s ease-in, transform 0.6s ease-in;
}
.stg::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  background: var(--cx-orn-seal-lapis) center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7));
}
.stg-report::before { background-image: var(--cx-orn-seal); }
.stg.out { opacity: 0; transform: translateY(-6px); }
.stg-title { font: 700 20px/1.2 var(--cx-font-head); letter-spacing: 0.03em; color: var(--cx-gold-text); text-shadow: var(--cx-sh-text-gold); }
.stg-line { margin-top: 3px; font: 400 16px/1.4 var(--cx-font-body); color: var(--cx-text); }
.stg-rest { color: #8fb6ff; font-weight: 700; }
.stg-gold { color: var(--cx-gold-text); }
.stg-dim { color: var(--cx-text-dim); font-style: italic; }
.stg .q-rare { color: var(--cx-q-rare-text); } .stg .q-epic { color: var(--cx-q-epic-text); }

/* Chat: v2 lines */
.cl-travel { color: var(--cx-bone) !important; }
.cl-stuck { color: #ff8a70 !important; }
.cl-hard { color: #ff9a50 !important; }
/* V5: the RemNote rating word after a logged exercise (Data.RECALL colours: red · amber · bone · green) */
.cl-r1 { color: #ff7a6e; } .cl-r2 { color: #e8b25a; } .cl-r3 { color: #e8dcc0; } .cl-r4 { color: #7fd06f; }

/* Action bar v2: on the road */
.ab-btn.travel .ab-count { color: var(--cx-bone); }

/* Compact (480x360): everything still fits. */
.hud.compact .qc { bottom: calc(var(--bar-top) + 10px); padding: 7px 9px 7px 12px; width: min(360px, calc(100vw - 16px)); }
.hud.compact .qc-head { margin-bottom: 4px; padding-left: 22px; }
.hud.compact .qc-icon { left: -13px; top: -13px; width: 32px; height: 32px; }
.hud.compact .qc::before { inset: -5px; }
.hud.compact .qc-title { font-size: 15px; }
.hud.compact .qc-input { height: 28px; font-size: 16px; }
.hud.compact .qc-hint { min-height: 0; font-size: 12px; line-height: 14px; }
.hud.compact .qc-what { font-size: 16px; }
.hud.compact .qc-rates { gap: 4px; }
.hud.compact .qc-rate { padding: 4px 4px 4px 8px; }
.hud.compact .qc-rn { font-size: 12px; letter-spacing: 0.02em; }
.hud.compact .qc-rs { font-size: 12px; }
.hud.compact .qc-due { font-size: 11px; }
.hud.compact .qc-notice { font-size: 12px; line-height: 14px; margin-top: 4px; }
.hud.compact .qc-rate kbd { font-size: 11px; right: 2px; bottom: 2px; padding: 0 3px; }
.hud.compact .qc-foot { display: none; }
.hud.compact .tf { padding: 3px 6px 3px 3px; gap: 6px; }
.hud.compact .tf-icon { width: 24px; height: 24px; }
.hud.compact .tf-icon .icon { width: 14px; height: 14px; }
.hud.compact .tf-line { font-size: 12px; line-height: 13px; }
.hud.compact .tf-time { font-size: 11px; }
.hud.compact .tf-dash, .hud.compact .tf-break { display: none; }
.hud.compact .tf-bar { height: 4px; margin-top: 2px; }
.hud.compact .tf-arrive { font-size: 11px; }
/* below the unit frame and its buff row (≈130 px), above the action bar: never over the portrait or the zone name */
.sq-compact #toast-layer .tl-cards { top: max(134px, 37%); left: 0; right: 0; align-items: center; }
/* compact has room for one slip: while a centre card (welcome / session) is up, the corner lane waits out of sight */
.sq-compact #toast-layer .tl-cards:not(:empty) ~ .tl-ach, .sq-compact #toast-layer .tl-cards:not(:empty) ~ .tl-loot { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s 0.15s; }
.sq-compact .stg { width: min(330px, calc(100vw - 40px)); margin-left: 20px; padding: 7px 10px 8px 26px; }
.sq-compact .stg::before { left: -20px; width: 40px; height: 40px; margin-top: -20px; }
.sq-compact .stg-title { font-size: 16px; }
.sq-compact .stg-line { font-size: 12px; }
.hud.compact .tf-line { display: flex; align-items: baseline; }
.hud.compact .tf-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.hud.compact .tf-time { flex: none; }
.hud.compact .tf-arrive { display: none; }
.hud.compact .tf-stop:not(.hidden) { display: inline; }   /* V7.3 finish: with no Arrive now, Stop is the travel frame's only control: it stays in the compact HUD */
/* While the quest card (or a dialog) is open the toast lane waits out of sight: nothing ever stacks over the card. */
body.qc-open #toast-layer .tl-ach, body.qc-open #toast-layer .tl-cards, body.sq-compact.qc-open #toast-layer .tl-loot { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s 0.15s; }
body.qc-open #toast-layer .tl-banner { top: 12%; }
/* v5-fix: the camp card (E) sits in the same bottom-centre spot, so the lane waits out of sight there too (the loot
   lane only where the card reaches it); the flashcard chip stays up for a whole study stretch, so the lane rises above it. */
body.camp-open #toast-layer .tl-ach, body.camp-open #toast-layer .tl-cards, body.sq-compact.camp-open #toast-layer .tl-loot { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s 0.15s; }
@media (max-width: 1179px) { body.camp-open #toast-layer .tl-loot { opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s 0.15s; } }
#hud.fcm-on ~ #toast-layer .tl-ach { bottom: 142px; }
.sq-compact #hud.fcm-on ~ #toast-layer .tl-ach { bottom: 100px; }
/* V7.3 fixer B (usability M9): while practice is open the achievement lane goes to the top of the free left side, never over
   the practice window's Show answer and key line (Small sits above the hotbar, Middle takes the right half) */
body:not(.sq-compact) #hud.fcm-on ~ #toast-layer .tl-ach { top: calc(13vh + 44px); bottom: auto; left: 25%; }   /* under the "Not yet" red line (13vh) */
.sq-compact #hud.fcm-on ~ #toast-layer .tl-ach { top: 34px; bottom: auto; }
.hud.compact.qc-open .zt { opacity: 0 !important; }
/* Compact: zone text sits high, clear of the hero's speech bubble (zone flavor arrives with it) and below the buff row. */
.hud.compact .zt, .hud.compact.has-run .zt, .hud.compact.has-phone .zt, .hud.compact.has-travel .zt { --zt-top: max(21%, 98px); }

/* ================================================================== SAVE-GUARD BANNER (save-guard.js) in Ember & Iron
 * save-guard.js injects its own working styles at runtime (so it shows even if a stylesheet fails); this only re-skins
 * it — a smoked-steel plate with an oxblood ember edge, an oxblood medallion, Cinzel head, iron / bronze buttons.
 * `html body` outranks the injected single-class rules; nothing here changes its layout logic or behaviour. */
html body .sq-saveguard {
  border: 1px solid #000;
  border-radius: var(--cx-r-2);
  font: 400 15px/1.4 var(--cx-font-body);
  color: var(--cx-text);
  background: linear-gradient(var(--cx-vermilion-hi), var(--cx-vermilion-hi)) left 0 top 0 / 3px 100% no-repeat,
    radial-gradient(ellipse 50% 140% at 0% 50%, rgba(232, 97, 59, 0.2), rgba(232, 97, 59, 0) 70%), var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.1), inset 0 0 0 1px rgba(232, 97, 59, 0.75), inset 0 0 0 3px rgba(5, 5, 6, 0.85),
    0 0 14px rgba(226, 84, 31, 0.28), 0 10px 26px rgba(0, 0, 0, 0.7);
}
html body .sq-saveguard.ok {
  background: linear-gradient(var(--cx-verdigris-3), var(--cx-verdigris-3)) left 0 top 0 / 3px 100% no-repeat, var(--cx-bg-smoke);
  box-shadow: inset 0 1px 0 rgba(196, 204, 214, 0.1), inset 0 0 0 1px rgba(134, 176, 165, 0.7), inset 0 0 0 3px rgba(5, 5, 6, 0.85), 0 10px 26px rgba(0, 0, 0, 0.7);
}
html body .sqsg-seal {
  width: 30px; height: 30px;
  font: 700 16px/1 var(--cx-font-title);
  color: #ffe2c8;
  background: radial-gradient(circle at 38% 32%, #b53a24, #5c1710 62%, #2a0806);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-2), 0 0 0 3px #000, 0 0 10px rgba(226, 84, 31, 0.45);
}
html body .sq-saveguard.ok .sqsg-seal { background: radial-gradient(circle at 38% 32%, #4f7a6e, #1c3a33 62%, #0b1714); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cx-bronze-2), 0 0 0 3px #000; }
html body .sqsg-head { font: 700 16px/1.25 var(--cx-font-head); letter-spacing: 0.03em; color: var(--cx-gold-leaf); text-shadow: 0 1px 0 #000; }
html body .sqsg-body { font: 400 14px/1.4 var(--cx-font-body); color: var(--cx-text-dim); }
html body .sqsg-btn {
  font: 700 13px/1 var(--cx-font-label);
  letter-spacing: 0.06em;
  color: var(--cx-text);
  padding: 7px 11px 6px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: linear-gradient(180deg, rgba(196, 204, 214, 0.16), rgba(196, 204, 214, 0) 2px), linear-gradient(180deg, #3a3f46, #1b1d21 60%, #111215);
  box-shadow: inset 0 0 0 1px rgba(176, 122, 60, 0.45), 0 1px 2px rgba(0, 0, 0, 0.6);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.8);
}
html body .sqsg-btn.primary {
  color: #f7e3b2;
  background: linear-gradient(180deg, rgba(255, 228, 166, 0.3), rgba(255, 228, 166, 0) 2px), linear-gradient(180deg, #8a5d2c 0%, #5e3c1a 45%, #2e1b09 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 201, 122, 0.45), 0 0 10px rgba(255, 138, 61, 0.25), 0 1px 2px rgba(0, 0, 0, 0.6);
}
html body .sqsg-btn:hover { filter: none; color: var(--cx-gold-leaf); box-shadow: inset 0 0 0 1px rgba(226, 181, 106, 0.85), 0 0 10px rgba(255, 138, 61, 0.35); }
html body .sqsg-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--cx-torch), 0 0 0 1px #000, 0 0 10px rgba(255, 138, 61, 0.6); }
html body .sq-saveguard-chip {
  font: 700 12px/1.2 var(--cx-font-label);
  letter-spacing: 0.05em;
  color: #ffd7c8;
  padding: 5px 11px 4px;
  border: 1px solid #000;
  border-radius: var(--cx-r-1);
  background: var(--cx-bg-smoke);
  box-shadow: inset 0 0 0 1px rgba(232, 97, 59, 0.8), 0 0 10px rgba(226, 84, 31, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
}
/* V7.3 lane D (v73-subzones, LATE-REQUESTS 17b/17c): the "Discovered" banner of a part of a zone found, like WoW's zone
   text: in the upper third, "Discovered" small above, the name in ONE medium line, the XP small below; a soft fade in
   (0.5 s), held about 3 s, a fade out (ui-hud.js showSubzoneBanner). */
.szb { position: absolute; left: 0; right: 0; --szb-top: max(15%, 110px); top: max(var(--szb-top), calc(var(--hud-top-h, 0px) + 14px)); text-align: center; opacity: 0; pointer-events: none; padding: 0 16px; }
.szb::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(700px, 86vw); height: 150px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(12, 8, 3, 0.86), rgba(12, 8, 3, 0.6) 55%, rgba(12, 8, 3, 0) 100%); z-index: -1; }
.szb-k { font: 600 clamp(11px, 1vw, 14px)/1.3 var(--cx-font-head); letter-spacing: 0.32em; text-transform: uppercase; color: #e9dcc0;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.szb-n { display: inline-block; font: 700 clamp(22px, 2.5vw, 36px)/1.18 var(--cx-font-title); letter-spacing: 0.05em; color: var(--cx-gold-3);
  background: linear-gradient(180deg, #fff1cf 0%, #f4d58c 30%, #d9a54a 55%, #8a5a22 62%, #c08a3e 78%, #f2c97a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #120a03) drop-shadow(0 0 1px #000) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75)); }
.szb-x { font: 600 clamp(12px, 1.1vw, 15px)/1.3 var(--cx-font-num, var(--cx-font-head)); letter-spacing: 0.06em; color: #b9a6ff; margin-top: 1px;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.szb-x:empty { display: none; }
.szb.szb-in { opacity: 1; transition: opacity 0.5s ease-out; }
.szb.szb-in.szb-out { opacity: 0; transition: opacity 1.2s ease-in; }
.hud.has-run .szb, .hud.has-phone .szb { --szb-top: max(21%, 190px); }

/* V7.12 "Your own goal": a life goal's hero has no cards or exercises: the Mob and Quest buttons rest (their hover says why) */
.ab-btn.sq-nogoal { filter: grayscale(1) brightness(0.55); }

/* V7.24 Cards that work everywhere: the Quest card's C and chapter-step Esc as buttons; 48 px on a touch screen */
.qc-chap { border: 1px solid currentColor; border-radius: 3px; background: none; padding: 1px 7px; margin-left: 4px; cursor: pointer; font: inherit; color: inherit; }
.qc-chap:hover { filter: brightness(1.25); }
.qc-back3 { margin-top: 8px; border: 0; background: none; padding: 0; cursor: pointer; font: 400 13px/1 var(--cx-font-body); color: var(--cx-ink-lapis); text-decoration: underline; text-underline-offset: 2px; }
.qc-back3:hover { color: var(--cx-ink-rubric); }
@media (pointer: coarse) {
  .qc-rate, .hud.compact .qc-rate, .qc-go, .qc-x, .qc-back, .qc-back3, .qc-chap, .qh-fill { min-height: 48px; min-width: 48px; }
  .qc-rates, .qc { touch-action: manipulation; }
}
