/* hud.css - the right-edge column (PanelUI: stats, gear, backpack, loot
 * bag), the item tooltip, and the vault (2026-10-19, the Ember redesign -
 * DESIGN.md).
 *
 * The column's position, size and scrolling stay INLINE in PanelUI (the
 * suite reads right/width off the container); everything here is look.
 * The cards are the canvas vitals card's family (HUD.js): the same surface,
 * hairline, radius and border, with the lighter shadow of things that sit
 * over the live world. Nothing here animates by itself - only hover and
 * drag states transition. */

/* ---- Cards in the column ---- */
.ed-hud-card {
  position: relative;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(32, 26, 32, 0.92), rgba(20, 16, 21, 0.90));
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-r-lg);
  box-shadow: var(--ed-shadow-1);
}
/* the ember hairline along the top edge (absolute: never a grid cell) */
.ed-hud-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 170, 90, 0.5), transparent);
  pointer-events: none;
}

/* ---- Invite a friend (2026-11-14, CrazyGames' frame only - ui/InviteUI.js):
 * a row of its own under the vitals card, the column's width. Its place and
 * size are inline (the scene's column layout); ColumnLayout.INVITE_ROW_H is
 * its height. ---- */
.ed-hud-invite {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 10px;
  font: inherit;
  font-size: calc(13px * var(--ed-fs));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ed-gold-300);
  cursor: pointer;
  transition: border-color var(--ed-fast) var(--ed-ease), color var(--ed-fast) var(--ed-ease);
}
.ed-hud-invite:hover { border-color: var(--ed-line-strong); color: var(--ed-gold-200); }
.ed-hud-invite[hidden] { display: none; }

/* ---- Stats: three rows of pairs (HP and MP ran across the card too until
 * 2026-11-02 - HUD_AND_ITEM_ART_PLAN.md part 3: the vitals card shows them,
 * once). ColumnLayout.statsCardHeight works its height out from these
 * numbers: keep the two in step. ---- */
.ed-hud-stats {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: baseline;
  gap: 3px 10px;
  padding: 9px 12px 10px;
  font-size: calc(14px * var(--ed-fs));
  line-height: 1.35;
}
.ed-stat-l {
  font-size: calc(12px * var(--ed-fs));
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ed-text-3);
}
.ed-stat-v {
  font-weight: 600;
  text-align: right;
  color: var(--ed-text);
  font-variant-numeric: tabular-nums;
}
/* a stat at its ABSOLUTE max (level 100 and every vial drunk) */
.ed-stat-l.is-maxed { color: var(--ed-gold-400); }
.ed-stat-v.is-maxed {
  font-weight: 700;
  color: var(--ed-gold-300);
  text-shadow: 0 0 8px rgba(255, 196, 110, 0.35);
}

/* ---- Slot grids: gear (one row), backpack (4x2), loot bag ----
 * (ColumnLayout.slotGridHeight works their heights out from these numbers:
 * keep the two in step) */
.ed-slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  justify-content: center;
  gap: 4px;
  padding: 7px; /* 1 + 7 + (4 x 40 + 3 x 4) + 7 + 1 = 188 */
}
/* THE BACKPACK FOLDED (part 3 - ColumnLayout: below a set height its second
 * row folds behind a tab): one row of four shows, the tabs over it choose
 * which (PanelUI .ed-pack-tabs). The tabs sit on the card's top edge: their
 * own bottom margin takes the column's gap back. */
.ed-pack-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  margin-bottom: -8px;
  padding: 0 10px;
  box-sizing: border-box;
}
.ed-pack-tabs__label {
  flex: 1 1 auto;
  padding-bottom: 3px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 600;
  line-height: 1;
  color: var(--ed-text-2);
  /* over the live world, not a card: a soft dark edge so it reads on any
   * ground (the play-test: on the sea's light streaks) */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 4px rgba(0, 0, 0, 0.6);
}
.ed-pack-tabs__list {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.ed-pack-tab {
  position: relative;
  min-width: 28px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--ed-line);
  border-bottom: none;
  border-radius: var(--ed-r-sm) var(--ed-r-sm) 0 0;
  background: var(--ed-surface);
  color: var(--ed-text-3);
  font: inherit;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ed-pack-tab:hover { color: var(--ed-text); }
.ed-pack-tab.is-on {
  background: var(--ed-surface-top);
  border-color: var(--ed-line-strong);
  color: var(--ed-gold-300);
}
/* a dot on a tab whose row holds anything, so a row out of sight is never
 * forgotten */
.ed-pack-tab.has-items::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ed-gold-400);
}
.ed-hud-pack .ed-slot.is-off-page { display: none; }
.ed-hud-loot {
  border-color: rgba(241, 194, 123, 0.42);
  background: linear-gradient(180deg, rgba(44, 32, 22, 0.94), rgba(26, 19, 14, 0.92));
}
.ed-hud-loot::after { background: linear-gradient(90deg, transparent, rgba(255, 214, 140, 0.75), transparent); }
.ed-hud-loot::before {
  content: 'Double-click to take'; /* (one line at every text size: "Loot: double-click to take" wrapped at Large and Larger in its 170 px - the part 3 review; ColumnLayout counts one line) */
  grid-column: 1 / -1;
  margin: -1px 1px 1px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ed-gold-300);
  white-space: normal; /* wraps at a bigger text size rather than cutting off */
}

/* ---- One slot ---- */
/* The golem's cell (round 3 part 27h): the ninth, a stone-grey frame with a
 * small pebble mark in its corner; dashed while no golem is out. */
.ed-slot--golem { border-color: rgba(189, 185, 176, 0.55); background: radial-gradient(ellipse at 50% 35%, rgba(189, 185, 176, 0.08), transparent 70%), rgba(6, 5, 8, 0.62); }
.ed-slot--golem::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 6px; height: 5px; border-radius: 3px 3px 2px 2px; background: #8d8a84; box-shadow: inset 0 1px 0 #bdb9b0; pointer-events: none; }
.ed-slot--golem.is-held { border-style: dashed; }

.ed-slot {
  --ed-tier: rgba(255, 176, 110, 0.5);
  position: relative;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 176, 110, 0.12);
  border-radius: var(--ed-r);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 236, 214, 0.035), transparent 70%),
    rgba(6, 5, 8, 0.62);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
  transition: border-color var(--ed-fast) var(--ed-ease), box-shadow var(--ed-fast) var(--ed-ease),
    background-color var(--ed-fast) var(--ed-ease), opacity var(--ed-fast) var(--ed-ease);
}
.ed-slot:hover { border-color: rgba(255, 176, 110, 0.3); }
/* the item picture: centred, crisp */
.ed-slot > canvas {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  image-rendering: crisp-edges;
  image-rendering: pixelated; /* last: it wins where both are known (the part 2 review) */
}
/* an item's slot takes its TIER colour (the identity the icon's own frame
 * used to carry: brown / green / blue / silver / gold - LootBags.chestTierColor) */
.ed-slot.has-item {
  cursor: pointer;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--ed-tier) 80%, transparent);
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--ed-tier) 18%, transparent), transparent 68%),
    rgba(6, 5, 8, 0.62);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 0 9px color-mix(in srgb, var(--ed-tier) 12%, transparent);
}
.ed-slot.has-item:hover {
  border-color: color-mix(in srgb, var(--ed-tier) 80%, #fff 20%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55), inset 0 0 10px color-mix(in srgb, var(--ed-tier) 22%, transparent),
    0 0 12px color-mix(in srgb, var(--ed-tier) 38%, transparent);
}
/* THE TIER NUMBER (2026-10-20, colourblind-safe tiers): every item says its
 * tier in a corner of its slot, so the colour is never the only signal
 * (PanelUI.fillSlot; vials have no tier and carry none). */
.ed-slot__tier {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 14px;
  padding: 0 3px;
  box-sizing: border-box;
  border-radius: 5px;
  background: rgba(14, 10, 12, 0.9);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ed-tier) 90%, transparent);
  color: #fff3e6;
  font-size: calc(12px * var(--ed-fs)); /* (10 px until 2026-11-02 - DESIGN.md's floor is 12) */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* ITS RARITY (2026-11-02, HUD_AND_ITEM_ART_PLAN.md part 1: "Rarity is a
 * mark, not a color"): one to three small diamonds in the top left corner,
 * none for common - light, outlined in the art's dark, the same on every
 * band (PanelUI.fillSlot, rarityMarks). The item card shows them by the
 * rarity's word. */
.ed-slot__rarity,
.ed-item-tip__diamonds {
  display: flex;
  gap: 3px;
  pointer-events: none;
}
/* small and tight to the corner, the plan's size: the 16 x 16 art fills the
 * slot, and three bigger ones hid a ring's stone (the part 1 review) */
.ed-slot__rarity {
  position: absolute;
  left: 2px;
  top: 2px;
}
.ed-slot__diamond {
  display: block;
  width: 3.5px;
  height: 3.5px;
  background: #fff3e6;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px #1a1320;
}
.ed-item-tip__diamonds { margin-left: 6px; } /* after the word, as the plan's card has them */
/* A NAMED ITEM (phase 3f - items/NamedItems.js): a thin ring in the named
 * colour inside the tier's border, and a small star in the bottom left
 * corner, edged in the art's dark (a diamond in the top left until
 * 2026-11-02: the rarity's diamonds sit there now; the top right hid the
 * heads of the diagonal weapons, most named items among them, and the star
 * vanished on an ember orb without its edge - the part 1 review) - a shape,
 * so the colour is never the only sign (PanelUI.fillSlot sets --ed-named,
 * its colorblind-friendly twin when that is on). */
.ed-slot.is-named {
  outline: 1px solid color-mix(in srgb, var(--ed-named, #ff5872) 75%, transparent);
  outline-offset: -4px;
}
.ed-slot__named {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.ed-slot__named::before,
.ed-slot__named::after {
  content: '';
  position: absolute;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.ed-slot__named::before { inset: 0; background: #1a1320; }
.ed-slot__named::after { inset: 2px; background: var(--ed-named, #ff5872); }
/* a piece with a trait (items/Traits.js - round 2 part 12): a small ring in
   that corner, a shape of its own beside the star and the diamonds */
.ed-slot__trait {
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--ed-trait, #8fe3d0);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #1a1320, inset 0 0 0 1px #1a1320;
  pointer-events: none;
}
/* dragging: the source fades; a slot under the drag lights in ember */
.ed-slot.is-dragging { opacity: 0.35; }
.ed-slot.is-drop-target {
  border-color: var(--ed-ember-400);
  background-color: rgba(255, 122, 47, 0.10);
  box-shadow: inset 0 0 10px rgba(255, 122, 47, 0.22), 0 0 0 1px rgba(255, 154, 82, 0.35), 0 0 14px rgba(255, 110, 40, 0.38);
}
/* WHAT A DROP WILL DO (2026-11-20 - IMPROVEMENTS_PLAN.md item 22,
 * PanelUI.markDropCell): one word over the cell under a drag - Swap, Merge
 * or Wear - and a cell where the drop would be refused greyed out. */
.ed-slot[data-drop]::after {
  content: attr(data-drop);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(14, 10, 12, 0.94);
  box-shadow: 0 0 0 1px var(--ed-ember-400);
  color: #fff3e6;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.ed-slot.is-drop-no { filter: grayscale(1) brightness(0.55); }
.ed-slot.is-drop-target.is-drop-no {
  border-color: rgba(170, 170, 170, 0.5);
  background-color: transparent;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55);
}
/* BETTER THAN YOURS (round 2 part 25j1 - PanelUI.setBag, LootBags
 * .isBetterThanWorn): on a chest's item that beats what is worn in its slot,
 * a small up arrow in the top right corner - the item card's own "better"
 * arrow and colour, edged in the art's dark so it reads on every band. Its
 * SHAPE is the sign, as with every mark on a slot, so the colour is never
 * the only one. */
.ed-slot__better {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--ed-success, #7be08a);
  filter: drop-shadow(0 0 1px #1a1320) drop-shadow(0 0 1px #1a1320);
  pointer-events: none;
}
/* LOCKED (2026-11-20 - IMPROVEMENTS_PLAN.md item 21, items/ItemLock.js): a
 * small padlock in the top right corner - its shackle an arch over its body
 * - light, edged in the art's dark, so it reads on every band
 * (PanelUI.fillSlot). */
.ed-slot__lock {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 9px;
  height: 11px;
  pointer-events: none;
}
.ed-slot__lock::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0;
  width: 5px;
  height: 6px;
  box-sizing: border-box;
  border: 1.5px solid #fff3e6;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  filter: drop-shadow(0 0 1px #1a1320);
}
.ed-slot__lock::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 9px;
  height: 6px;
  border-radius: 1.5px;
  background: #fff3e6;
  box-shadow: 0 0 0 1px #1a1320;
}
/* THE CHEST FOLD (2026-11-20 - item 26, items/ChestFold.js): the one cell
 * a chest's weak items wait under - "+3"; a click shows them. A button of
 * its own, not an .ed-slot (the pad's ring stands on it as a button). */
.ed-chestfold {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px dashed rgba(255, 176, 110, 0.3);
  border-radius: var(--ed-r);
  background: rgba(6, 5, 8, 0.62);
  cursor: pointer;
  color: var(--ed-text-2);
  font: inherit;
  font-size: calc(13px * var(--ed-fs));
  font-weight: 700;
}
.ed-chestfold:hover, .ed-chestfold:focus-visible { color: var(--ed-text); border-color: rgba(255, 176, 110, 0.55); }

/* ---- An empty gear slot shows what goes there ---- */
.ed-slot__ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ed-slot__ghost::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 236, 214, 0.11);
  transform: translate(-50%, -50%);
}
/* a sword, point up-right */
.ed-slot__ghost--weapon::before {
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  clip-path: polygon(50% 0, 57.5% 10%, 57.5% 65%, 80% 65%, 80% 75%, 57.5% 75%, 57.5% 90%, 62.5% 90%, 62.5% 100%,
    37.5% 100%, 37.5% 90%, 42.5% 90%, 42.5% 75%, 20% 75%, 20% 65%, 42.5% 65%, 42.5% 10%);
}
/* a spark */
.ed-slot__ghost--ability::before {
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
/* a breastplate */
.ed-slot__ghost--armor::before {
  width: 18px;
  height: 20px;
  clip-path: polygon(50% 0, 96% 14%, 88% 62%, 50% 100%, 12% 62%, 4% 14%);
}
/* a ring */
.ed-slot__ghost--accessory::before {
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 3px solid rgba(255, 236, 214, 0.11);
  border-radius: 50%;
  background: transparent;
}

/* ---- The item tooltip (PanelUI - over everything, never takes the mouse) ---- */
.ed-item-tip {
  --ed-tier: var(--ed-line-strong);
  min-width: calc(204px * var(--ed-fs));
  max-width: calc(300px * var(--ed-fs)); /* (280 until the differences column - 2026-11-02, part 2) */
  border-color: color-mix(in srgb, var(--ed-tier) 62%, transparent);
}
/* the tier's colour as a short bar along the top edge */
.ed-item-tip::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--ed-tier);
  opacity: 0.9;
}
/* THE HEAD (2026-11-02, HUD_AND_ITEM_ART_PLAN.md part 2): the item's
 * picture at 3 px a texel in a frame of its band, beside the name, the tier
 * and the rarity (PanelUI._fillTooltip) */
.ed-item-tip__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-item-tip__frame {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--ed-tier) 80%, transparent);
  border-radius: var(--ed-r-xs);
  background:
    radial-gradient(circle at 50% 58%, color-mix(in srgb, var(--ed-tier) 18%, transparent), transparent 68%),
    rgba(6, 5, 8, 0.62);
}
.ed-item-tip__pic {
  width: 48px;
  height: 48px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.ed-item-tip__headtext { min-width: 0; }
/* which is better, against what is worn: words, so the colour is never the
 * only sign (ItemStats.cardVerdict) */
.ed-item-tip__verdict {
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: var(--ed-r-xs);
  background: var(--ed-line-faint);
  color: var(--ed-text-2);
  font-size: calc(13px * var(--ed-fs));
  font-weight: 600;
  line-height: 1.4;
}
.ed-item-tip__verdict.is-better {
  background: color-mix(in srgb, var(--ed-success) 14%, transparent);
  color: var(--ed-success);
}
.ed-item-tip__verdict.is-worse {
  background: color-mix(in srgb, var(--ed-danger-text) 14%, transparent);
  color: var(--ed-danger-text);
}
.ed-item-tip__name {
  font-size: calc(16px * var(--ed-fs));
  font-weight: 600;
  line-height: 1.3;
  color: var(--ed-text);
}
/* the name in its band's colour, lifted toward white as the tier chip is:
 * the bronze band itself read at 4.2:1 on the card (the part 1 review) */
.ed-item-tip__name.is-band { color: color-mix(in srgb, var(--ed-tier) 70%, #fff 30%); }
/* A name a player had engraved (round 2 part 11): a line of its own under the item's name, never in its place. */
.ed-item-tip__engraved { margin-top: 1px; font-size: calc(12.5px * var(--ed-fs)); font-style: italic; color: var(--ed-gold-300, #ffdca6); }
.ed-item-tip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: calc(13px * var(--ed-fs));
}
.ed-item-tip__tier {
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--ed-tier) 55%, transparent);
  border-radius: var(--ed-r-xs);
  background: color-mix(in srgb, var(--ed-tier) 12%, transparent);
  color: color-mix(in srgb, var(--ed-tier) 70%, #fff 30%);
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 16px;
}
.ed-item-tip__rarity { display: inline-flex; align-items: center; font-weight: 600; }
/* a named item's tag, beside its tier and rarity (phase 3f) */
.ed-item-tip__named {
  padding: 0 5px;
  border: 1px solid color-mix(in srgb, var(--ed-named, #ff5872) 60%, transparent);
  border-radius: var(--ed-r-xs);
  background: color-mix(in srgb, var(--ed-named, #ff5872) 14%, transparent);
  color: color-mix(in srgb, var(--ed-named, #ff5872) 62%, #fff 38%);
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
}
/* ...and its perk, set apart under the stats */
.ed-item-tip__perk {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--ed-named, #ff5872);
  border-radius: 0 var(--ed-r-xs) var(--ed-r-xs) 0;
  background: color-mix(in srgb, var(--ed-named, #ff5872) 10%, transparent);
  font-size: calc(14px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text);
}
/* ...and its set (round 2 part 23a - items/Sets.js): what two and three
   pieces give, in a box of its own under the perk */
.ed-item-tip__set {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--ed-warning);
  border-radius: 0 var(--ed-r-xs) var(--ed-r-xs) 0;
  background: color-mix(in srgb, var(--ed-warning) 8%, transparent);
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text);
}
.ed-item-tip__setworn {
  margin-top: 4px;
  font-weight: 700;
}
.ed-item-tip__rule {
  height: 1px;
  margin: 8px 0 6px;
  background: linear-gradient(90deg, var(--ed-line-strong), transparent);
}
.ed-item-tip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: calc(14px * var(--ed-fs));
  line-height: 1.55;
}
.ed-item-tip__label { flex: 1 1 auto; color: var(--ed-text-2); }
/* the difference from what is worn (part 2): green when better, red when
 * worse - less is better for a delay, an MP cost - "same" in grey. A mark
 * says which too, so the colour is never the only sign: "-0.01 s" of shot
 * delay is better and "-2" damage worse, the same sign (the part 2 review).
 * An up triangle for better, a down one for worse, in the text's colour. */
.ed-item-tip__delta {
  flex: none;
  min-width: 5.2em;
  text-align: right;
  font-size: calc(13px * var(--ed-fs));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ed-item-tip__delta.is-up { color: var(--ed-success); }
.ed-item-tip__delta.is-down { color: var(--ed-danger-text); }
.ed-item-tip__delta.is-same { color: var(--ed-text-3, var(--ed-text-2)); font-weight: 500; }
.ed-item-tip__mark {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: calc(4px * var(--ed-fs));
  border-left: calc(4px * var(--ed-fs)) solid transparent;
  border-right: calc(4px * var(--ed-fs)) solid transparent;
  vertical-align: 1px;
}
.ed-item-tip__delta.is-up .ed-item-tip__mark { border-bottom: calc(7px * var(--ed-fs)) solid currentColor; }
.ed-item-tip__delta.is-down .ed-item-tip__mark { border-top: calc(7px * var(--ed-fs)) solid currentColor; }
/* Colorblind-friendly colors on (PanelUI sets .is-cb): blue for better and
 * orange for worse, which no colour vision confuses - green and this red
 * look alike to many (the part 2 review) */
.ed-item-tip.is-cb .ed-item-tip__delta.is-up { color: var(--ed-better-cb); }
.ed-item-tip.is-cb .ed-item-tip__delta.is-down { color: var(--ed-worse-cb); }
.ed-item-tip.is-cb .ed-item-tip__verdict.is-better {
  background: color-mix(in srgb, var(--ed-better-cb) 14%, transparent);
  color: var(--ed-better-cb);
}
.ed-item-tip.is-cb .ed-item-tip__verdict.is-worse {
  background: color-mix(in srgb, var(--ed-worse-cb) 14%, transparent);
  color: var(--ed-worse-cb);
}
.ed-item-tip__val {
  font-weight: 600;
  color: var(--ed-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ed-item-tip__bonus {
  margin-left: 6px;
  padding: 0 4px;
  border-radius: var(--ed-r-xs);
  background: rgba(99, 214, 154, 0.12);
  color: var(--ed-success);
  font-size: calc(12px * var(--ed-fs)); /* (10 until 2026-11-02 - DESIGN.md's floor is 12) */
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 1px;
}
/* its trait, set apart as a named item's perk is (items/Traits.js) */
.ed-item-tip__trait {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--ed-trait, #8fe3d0);
  border-radius: 0 var(--ed-r-xs) var(--ed-r-xs) 0;
  background: color-mix(in srgb, var(--ed-trait, #8fe3d0) 9%, transparent);
  font-size: calc(14px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text);
}
.ed-item-tip__traitlabel {
  margin-right: 6px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ed-trait, #8fe3d0);
}
/* handed down once (data/Heirloom.js - round 2 part 20b) */
.ed-item-tip__heirloom {
  margin-top: 8px;
  padding: 5px 8px;
  border-left: 2px solid var(--ed-gold-300, #ffdca6);
  border-radius: 0 var(--ed-r-xs) var(--ed-r-xs) 0;
  background: color-mix(in srgb, var(--ed-gold-300, #ffdca6) 8%, transparent);
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-gold-200, #ffe9c4);
}
.ed-item-tip__note {
  margin-top: 2px;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text-2);
}
/* one line of flavor, and who says it (items/ItemFlavor.js - 2026-11-15) */
.ed-item-tip__flavor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--ed-line-faint);
}
.ed-item-tip__quote { font-size: calc(13px * var(--ed-fs)); font-style: italic; line-height: 1.45; color: var(--ed-text-2); }
.ed-item-tip__speaker { font-size: calc(12px * var(--ed-fs)); color: var(--ed-text-3, var(--ed-text-2)); }
/* what a double-click does here - "Double-click to wear" (2026-10-20) */
.ed-item-tip__hint {
  margin-top: 8px;
  font-size: calc(13px * var(--ed-fs));
  color: var(--ed-text-3, var(--ed-text-2));
}
/* A LOCKED ITEM'S LINE, and the hint to lock one (2026-11-20 -
 * items/ItemLock.js) */
.ed-item-tip__lock {
  margin-top: 8px;
  padding: 5px 8px;
  border-left: 2px solid #fff3e6;
  border-radius: 0 var(--ed-r-xs) var(--ed-r-xs) 0;
  background: rgba(255, 243, 230, 0.07);
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text);
}
.ed-item-tip__lockhint {
  margin-top: 8px;
  font-size: calc(12px * var(--ed-fs));
  color: var(--ed-text-3, var(--ed-text-2));
}
.ed-item-tip__hint + .ed-item-tip__lockhint { margin-top: 2px; }
/* A TWIN WITHIN REACH (2026-11-20 - items/Twins.js): "You have its twin." */
.ed-item-tip__twin {
  margin-top: 8px;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-success);
}

/* ---- The players nearby (2026-11-18 - ui/NearbyPlayers.js): a short list
 * at the right, beside the top of the column, and the card of the one the
 * pointer rests on. The list's place is inline (the column's numbers);
 * everything here is look. ---- */
.ed-nearby {
  z-index: 30;
  box-sizing: border-box;
  width: calc(156px * var(--ed-fs));
  padding: 6px 6px 7px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-r-lg);
  background: rgba(14, 11, 16, 0.78);
  box-shadow: var(--ed-shadow-1);
  font-family: var(--ed-font-ui);
  color: var(--ed-text);
  pointer-events: auto;
}
.ed-nearby__title {
  padding: 0 4px 4px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ed-text-3);
}
.ed-nearby__rows { display: flex; flex-direction: column; gap: 2px; }
.ed-nearby__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: var(--ed-r-sm);
  cursor: default;
}
.ed-nearby__row:hover { background: rgba(255, 236, 214, 0.07); }
.ed-nearby__icon { flex: 0 0 auto; width: 18px; height: 18px; }
.ed-nearby__icon canvas { display: block; width: 18px; height: 18px; image-rendering: pixelated; }
.ed-nearby__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-nearby__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(12.5px * var(--ed-fs));
  font-weight: 600;
  line-height: 1.15;
}
.ed-nearby__line { display: flex; align-items: center; gap: 4px; min-width: 0; }
/* THE ACCOUNT'S EMBLEM AND THE DEEPEST FLOOR (2026-11-30 - ui/Emblem.js):
   the star in its tier's color (--ed-emblem), and the floor's small pill. */
.ed-emblem {
  flex: none;
  display: inline-block;
  width: calc(11px * var(--ed-fs));
  height: calc(11px * var(--ed-fs));
  background: var(--ed-emblem, #9a968e);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.ed-floortag {
  flex: none;
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #ff9a4a;
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.85);
  color: #ffe2c2;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ed-nearby__bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
.ed-nearby__bar > i { display: block; height: 100%; width: 100%; border-radius: 2px; background: #d8504a; }
.ed-nearby__row.is-low .ed-nearby__bar > i { background: #ff8a3d; }
.ed-nearby__more { padding: 2px 4px 0; font-size: calc(12px * var(--ed-fs)); color: var(--ed-text-3); }
.ed-nearby-card {
  z-index: 60;
  box-sizing: border-box;
  width: calc(214px * var(--ed-fs));
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border: 1px solid var(--ed-line-strong);
  border-radius: var(--ed-r-lg);
  background: linear-gradient(180deg, rgba(32, 26, 32, 0.97), rgba(20, 16, 21, 0.97));
  box-shadow: var(--ed-shadow-2, var(--ed-shadow-1));
  font-family: var(--ed-font-ui);
  color: var(--ed-text);
  pointer-events: auto;
}
.ed-nearby-card__head { display: flex; align-items: center; gap: 10px; }
.ed-nearby-card__pic { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--ed-r-sm); background: rgba(6, 5, 8, 0.55); }
.ed-nearby-card__pic canvas { display: block; width: 36px; height: 36px; image-rendering: pixelated; }
.ed-nearby-card__who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ed-nearby-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(15px * var(--ed-fs)); font-weight: 700; }
.ed-nearby-card__meta { font-size: calc(12.5px * var(--ed-fs)); color: var(--ed-text-2); }
.ed-nearby-card__title { font-size: calc(12px * var(--ed-fs)); color: var(--ed-gold-300); }
.ed-nearby-card__note { font-size: calc(12.5px * var(--ed-fs)); color: var(--ed-text-3); }
.ed-nearby-card__vitals { display: flex; justify-content: space-between; gap: 8px; font-size: calc(12.5px * var(--ed-fs)); font-weight: 600; font-variant-numeric: tabular-nums; }
.ed-nearby-card__hp { color: #ff8f86; }
.ed-nearby-card__mp { color: #8fb8ff; }
.ed-nearby-card__stats {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: baseline;
  gap: 2px 10px;
  font-size: calc(13.5px * var(--ed-fs));
  line-height: 1.3;
}
.ed-nearby-card__gear { padding: 0; justify-content: start; }

/* ---- The vault (VaultUI - the chest in the vault room) ---- */
.ed-vault {
  box-sizing: border-box;
  width: min(424px, calc(var(--ed-vw, 100vw) - 32px));
  gap: 12px;
  padding: 16px 22px 18px;
  overflow: auto;
}
/* a rebuild after a deposit or withdrawal must not replay the opening */
.ed-scrim.is-rebuilt, .ed-scrim.is-rebuilt .ed-modal { animation: none; }
.ed-vault__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.ed-vault__head .ed-modal__title { margin-right: 2px; }
.ed-vault__head .ed-close { margin-left: auto; margin-right: -8px; }
.ed-vault__lede {
  margin: 0;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-text-3);
}
/* Show and Order (round 2 part 25h1): chips that change how the vault is looked at. */
.ed-vault__toolbox { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ed-vault__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ed-vault__toolname { min-width: 42px; font-size: calc(13px * var(--ed-fs)); font-weight: 600; color: var(--ed-text-2); }
.ed-vault__chip { font-size: calc(13px * var(--ed-fs)); }
.ed-vault__sorted { font-size: calc(13px * var(--ed-fs)); line-height: 1.4; color: var(--ed-text-3); }
.ed-vault__grid .ed-slot.is-dim { opacity: 0.28; }
.ed-vault__grid {
  display: grid;
  grid-template-columns: repeat(8, 40px);
  justify-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--ed-line-faint);
  border-radius: var(--ed-r-lg);
  background: rgba(6, 5, 8, 0.45);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}
/* what the hero wears (2026-11-18 - VaultUI's gear row): its four slots,
 * in the vault grid's columns from the left */
.ed-vault__grid.is-gear {
  grid-template-columns: repeat(4, 40px);
  justify-content: start;
  justify-self: start;
  width: max-content;
}
.ed-vault__notice {
  margin-top: -4px;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.45;
  color: var(--ed-danger-text);
}
/* a lock, an unlock or a merge that went (2026-11-20): said, not in red */
.ed-vault__notice.is-ok { color: var(--ed-text-2); }
/* MERGE ALL (2026-11-20 - IMPROVEMENTS_PLAN.md item 23, VaultUI): the
 * button, then what the merges make and a second press to go */
.ed-vault__mergerow { display: flex; justify-content: flex-end; margin-top: -4px; }
.ed-vault__merge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-r-lg);
  background: rgba(255, 176, 110, 0.05);
}
.ed-vault__merge-ask { margin: 0; font-size: calc(13px * var(--ed-fs)); line-height: 1.45; color: var(--ed-text-2); }
.ed-vault__grid.is-merge { justify-content: start; padding: 6px; }
.ed-vault__merge-foot { display: flex; gap: 8px; justify-content: flex-end; }
.ed-vault__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ed-text-2);
}
.ed-vault__hint {
  font-size: calc(12px * var(--ed-fs));
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ed-text-3);
}
.ed-vault__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ---- This life's boons: the pick card (2026-10-25, phase 3e - ui/BoonPicker.js) ----
 * Over the live world, above the bottom row: solid, no blur, nothing that
 * moves by itself. Its position is inline (behaviour - BoonPicker). Each
 * option wears its family's color (--fam) on its left edge and its tile. */
/* ---- The emote wheel's row (ui/EmoteWheel.js - 2026-11-16; proposal 13) ---- */
.ed-emotes { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); background: rgba(12, 10, 14, 0.86); white-space: nowrap; }
.ed-emotes__title { font-family: var(--ed-font-ui); font-size: calc(12px * var(--ed-fs)); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-text-3); margin-right: 2px; }
.ed-emotes__opt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--ed-line); border-radius: var(--ed-r-md, 8px); background: rgba(255, 255, 255, 0.03); color: var(--ed-text); font-family: var(--ed-font-ui); font-size: calc(13px * var(--ed-fs)); cursor: pointer; }
.ed-emotes__opt:hover, .ed-emotes__opt.ed-padfocus { border-color: rgba(255, 196, 140, 0.8); }
.ed-emotes__close { margin-left: 2px; }

.ed-boonpick {
  box-sizing: border-box;
  width: max-content;
  max-width: min(calc(740px * var(--ed-fs)), calc(var(--ed-vw, 100vw) - 250px));
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 196, 140, 0.42);
  border-radius: var(--ed-r-lg);
  background: linear-gradient(180deg, rgba(40, 30, 28, 0.97), rgba(24, 18, 20, 0.96));
  box-shadow: var(--ed-shadow-1), 0 0 18px rgba(255, 110, 40, 0.12);
  user-select: none;
}
.ed-boonpick__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 2px 9px;
}
.ed-boonpick__close { margin-left: auto; align-self: center; }
/* The tab an offer shows first (the phase 3 review, C3): small, above the
 * bottom row; a click (or the boons key) opens the card. */
.ed-boonpick--tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--ed-gold-300);
  font-family: var(--ed-font-display);
  font-size: calc(16px * var(--ed-fs));
}
.ed-boonpick--tab:hover { border-color: rgba(255, 196, 140, 0.8); }
.ed-boonpick__tabmore { font-family: var(--ed-font-ui); font-size: calc(13px * var(--ed-fs)); color: var(--ed-text-2); }
.ed-boonpick__title {
  font-family: var(--ed-font-display);
  font-size: calc(18px * var(--ed-fs));
  color: var(--ed-gold-300);
}
.ed-boonpick__note {
  font-size: calc(12.5px * var(--ed-fs));
  color: var(--ed-text-3);
}
.ed-boonpick__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ed-boonpick__opt {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  row-gap: 1px;
  align-content: start;
  width: calc(214px * var(--ed-fs));
  padding: 9px 10px 10px;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid rgba(255, 236, 214, 0.16);
  border-left: 4px solid var(--fam, #888);
  border-radius: var(--ed-r);
  background: rgba(10, 8, 11, 0.66);
  color: var(--ed-text);
  cursor: pointer;
}
.ed-boonpick__opt:hover:not([disabled]),
.ed-boonpick__opt:focus-visible {
  border-color: rgba(255, 236, 214, 0.45);
  border-left-color: var(--fam, #888);
  background: rgba(34, 25, 27, 0.9);
}
.ed-boonpick__opt[disabled] { opacity: 0.5; cursor: default; }
.ed-boonpick__glyph {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--fam, #888);
}
.ed-boonpick__name {
  padding-right: 22px;
  font-weight: 700;
  font-size: calc(14px * var(--ed-fs));
  line-height: 1.25;
}
.ed-boonpick__meta {
  font-size: calc(12px * var(--ed-fs));
  color: var(--ed-text-3);
}
.ed-boonpick__rank { color: var(--ed-gold-300); font-weight: 700; }
.ed-boonpick__text {
  grid-column: 1 / span 2;
  margin-top: 6px;
  font-size: calc(13px * var(--ed-fs));
  line-height: 1.35;
  color: var(--ed-text-2);
}
/* What a pick changes (round 2 part 25c): the rank held, quieter, and the duo it makes possible. */
.ed-boonpick__now {
  grid-column: 1 / span 2;
  margin-top: 4px;
  font-size: calc(12px * var(--ed-fs));
  line-height: 1.35;
  color: var(--ed-text-3);
}
.ed-boonpick__opens {
  grid-column: 1 / span 2;
  margin-top: 4px;
  font-size: calc(12px * var(--ed-fs));
  font-weight: 600;
  color: var(--ed-gold-300);
}
.ed-boonpick__why {
  grid-column: 1 / span 2;
  margin-top: 4px;
  font-size: calc(12px * var(--ed-fs));
  color: var(--ed-warning);
}
.ed-boonpick__key {
  position: absolute;
  top: 7px;
  right: 7px;
}

/* ---- The party card (ui/PartyCard.js - round 2 part 13) ---- */
/* (Its place is inline - ui/PartyCard.js: at the right, under the list of players nearby. It was left: 14px; top: 318px, under the chat box of 2026-11-19.) */
.ed-party { position: absolute; width: calc(208px * var(--ed-fs)); max-width: calc(var(--ed-vw, 100vw) * 0.4); z-index: 30; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); background: rgba(12, 10, 14, 0.86); pointer-events: none; font-family: var(--ed-font-ui); color: var(--ed-text); }
.ed-party__title { font-size: calc(12px * var(--ed-fs)); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ed-gold-300); }
.ed-party__line { font-size: calc(13px * var(--ed-fs)); line-height: 1.4; }
.ed-party__line.is-quiet { color: var(--ed-text-2); }
.ed-party__line.is-said { color: var(--ed-gold-300); }
.ed-party__ask { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ed-line-faint); }
.ed-party__btns { display: flex; gap: 6px; }
.ed-party__btn { pointer-events: auto; padding: 3px 10px; border: 1px solid var(--ed-line-strong); border-radius: 6px; background: rgba(255, 236, 214, 0.05); color: var(--ed-text); font: inherit; font-size: calc(12.5px * var(--ed-fs)); font-weight: 600; cursor: pointer; }
.ed-party__btn:hover, .ed-party__btn:focus-visible { border-color: rgba(255, 196, 140, 0.8); }
.ed-party__btn.is-yes { border-color: rgba(159, 240, 166, 0.6); color: #d8ffdb; }
.ed-party__btn.is-leave { align-self: flex-start; margin-top: 2px; color: var(--ed-text-2); }
.ed-party__row { display: flex; flex-direction: column; gap: 3px; }
.ed-party__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: calc(22px * var(--ed-fs)); }
.ed-party__name { font-size: calc(13.5px * var(--ed-fs)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-party__row.is-you .ed-party__name { color: var(--ed-gold-300); }
.ed-party__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.10); overflow: hidden; }
.ed-party__bar > i { display: block; height: 100%; border-radius: 3px; background: #d8504a; }
.ed-party__row.is-down .ed-party__bar > i, .ed-party__row.is-dead .ed-party__bar > i { background: #7a6f78; }
.ed-party__where { font-size: calc(12px * var(--ed-fs)); color: var(--ed-text-3); }
/* THE ECHOES' FRAMES (round 2 part 25j2 - ui/EchoFrames.js): the party's card
   again, for the Echoes beside you. A faded one's row is greyed and says
   "Fading"; its bar is empty. */
.ed-echoes__row.is-faded .ed-party__name { color: var(--ed-text-3); }
.ed-echoes__row.is-faded .ed-party__bar > i { background: #7a6f78; }
/* THE MOUSE GOES THROUGH BOTH CARDS (round 2 part 25j2 - found while looking
   at the Echoes' frames). `.ed-party` says pointer-events: none above, and
   PartyCard.js says "only its buttons take the mouse" - but index.html's
   `#ui-root * { pointer-events: auto; }` outranks a class, so the card and
   every row in it took the mouse: with the pointer over the party's card the
   canvas under it got no move and no press, and a hero could not aim or fire
   there. These outrank that rule. A button on the party's card still takes
   its click; the Echoes' frames have none. */
#ui-root .ed-party, #ui-root .ed-party * { pointer-events: none; }
#ui-root .ed-party .ed-party__btn { pointer-events: auto; }

/* HUD OPACITY (round 2 part 25i1 - Settings > Display > HUD opacity; the
   plan's screen 15). #ui-root wears .ed-hud-faded only while the setting is
   under 100% and high contrast is off (Settings.applyDisplaySettings, which
   also sets --ed-hud-alpha), so at 100% no card is touched. It fades the
   column's stats, gear and backpack and the list of players nearby: never a
   bag's loot row, and nothing drawn on the canvas for a fight. A card is
   solid again while it is pointed at or holds the keyboard's or the pad's
   focus, so reading an item or dragging one is as it was. The canvas half
   (the chapter card, the town's requests) is Theme.getHudAlpha. */
#ui-root.ed-hud-faded .ed-hud-stats,
#ui-root.ed-hud-faded .ed-hud-gear,
#ui-root.ed-hud-faded .ed-hud-pack,
#ui-root.ed-hud-faded .ed-nearby { opacity: var(--ed-hud-alpha, 1); transition: opacity 120ms ease; }
#ui-root.ed-hud-faded .ed-hud-stats:hover, #ui-root.ed-hud-faded .ed-hud-stats:focus-within,
#ui-root.ed-hud-faded .ed-hud-gear:hover, #ui-root.ed-hud-faded .ed-hud-gear:focus-within,
#ui-root.ed-hud-faded .ed-hud-pack:hover, #ui-root.ed-hud-faded .ed-hud-pack:focus-within,
#ui-root.ed-hud-faded .ed-nearby:hover, #ui-root.ed-hud-faded .ed-nearby:focus-within { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #ui-root.ed-hud-faded .ed-hud-stats, #ui-root.ed-hud-faded .ed-hud-gear, #ui-root.ed-hud-faded .ed-hud-pack, #ui-root.ed-hud-faded .ed-nearby { transition: none; }
}
