/* Eltheria system chrome. Palette literals live here; all HUD surfaces consume tokens. */
:root {
  --ui-font: 'Segoe UI', 'Trebuchet MS', sans-serif;
  --type-xs: 11px; --type-sm: 12px; --type-md: 14px; --type-lg: 18px; --type-xl: 26px; --type-display: 42px;
  --ink: #edf0e8; --muted: #acbebc; --faint: #829b9b; --white: #ffffff;
  --panel: #10262ef2; --panel-top: #203c43f5; --panel-solid: #142d35;
  --well: #091c24; --hover: #2b4950; --line: #81988b55; --edge: #bba675;
  --gold: #dfc38b; --gold-deep: #a08049; --blue: #86c6dc; --blue-deep: #397f9b;
  --green: #a3cea1; --green-deep: #4c845d; --red: #ef9b91; --red-deep: #af4d4d;
  --violet: #c5b0e0; --shadow: #03122299; --scrim: #03122240;
  --pearl: #142d35f5; --pearl-light: #203c43; --pearl-blue: #10262e;
  --steel-ink: #edf0e8; --steel-muted: #acbebc; --steel-line: #81988b55;
  --steel-gold: #dfc38b; --steel-blue: #86c6dc; --steel-green: #a3cea1; --steel-purple: #c5b0e0;
  --common: #c8d8e5; --uncommon: #75e3b4; --rare: #72c9ff; --epic: #d1a3ff; --legendary: #ffda88;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --corner: 4px; --panel-border: 1px solid var(--line); --panel-shadow: 0 16px 48px var(--shadow), inset 0 1px var(--edge);
  --ease: cubic-bezier(.2,.8,.2,1); --fast: 140ms; --settle: 380ms;
  --z-world: 0; --z-hud: 10; --z-panel: 40; --z-context: 60; --z-notice: 70;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--well); color: var(--ink); font: var(--type-md)/1.45 var(--ui-font); }
button, input, select { font: inherit; }
button { appearance: none; border: var(--panel-border); border-radius: var(--corner); color: var(--ink); background: linear-gradient(160deg,var(--panel-top),var(--panel-solid)); padding: 7px 12px; cursor: pointer; transition: background var(--fast), border-color var(--fast), box-shadow var(--fast); }
button:hover { background: var(--hover); border-color: var(--edge); box-shadow: 0 0 12px var(--line); }
button:active { transform: translateY(1px); }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
input, select { min-width: 0; background: var(--well); border: var(--panel-border); border-radius: var(--corner); color: var(--ink); padding: 8px; }
kbd { font: 600 var(--type-xs) var(--ui-font); color: var(--gold); border: var(--panel-border); border-radius: 3px; padding: 2px 5px; }
[hidden] { display: none !important; }
#wrap { width: 100%; height: 100%; position: relative; }
#game { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: var(--well); }
#hud { position: fixed; inset: 0; z-index: var(--z-hud); pointer-events: none; }
#hud button, #hud nav { pointer-events: auto; }
body:not(.in-world) #hud { visibility: hidden; }
.system-surface { border: var(--panel-border); border-top-color: var(--edge); border-radius: var(--corner); background: linear-gradient(135deg,var(--panel-top),var(--panel) 55%); box-shadow: var(--panel-shadow); }
.eyebrow { color: var(--gold); font-size: var(--type-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
#resourceband { position: absolute; top: 24px; left: 24px; width: 344px; padding: 16px 20px 18px; border-left: 3px solid var(--gold); }
.identity { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.level-seal { display: grid; place-content: center; min-width: 49px; height: 49px; background: var(--well); border: 1px solid var(--gold); transform: rotate(45deg); }
.level-seal > span { transform: rotate(-45deg); text-align: center; display: grid; }
.level-seal small { color: var(--gold); font-size: 8px; letter-spacing: .1em; }
#playerlevel { font-size: 22px; line-height: 1; }
.identity-copy { min-width: 0; margin-left: 5px; flex: 1; }
#playername { display: block; font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
#playerdetail { color: var(--muted); font-size: var(--type-xs); }
.resource { position: relative; margin-top: 8px; }
.resource-label { display: flex; justify-content: space-between; margin-bottom: 3px; font-size: var(--type-xs); font-weight: 600; letter-spacing: .06em; }
.resource-track { overflow: hidden; height: 11px; background: var(--well); border: var(--panel-border); transform: skewX(-12deg); }
.resource-fill { height: 100%; width: 0; transition: width var(--settle) var(--ease); background: linear-gradient(90deg,var(--green-deep),var(--green)); box-shadow: inset 0 1px var(--edge); }
.resource.hp .resource-track { height: 17px; }
.resource.mp .resource-fill { background: linear-gradient(90deg,var(--blue-deep),var(--blue)); }
.resource.stam .resource-fill { background: linear-gradient(90deg,var(--gold-deep),var(--gold)); }
.resource.low .resource-label { color: var(--red); }
.resource.low .resource-fill { background: linear-gradient(90deg,var(--red-deep),var(--red)); }
#resourceband .xp { margin-top: 14px; padding-top: 10px; border-top: var(--panel-border); }
#xpbar { width: 100%; height: 15px; }
#xpfill { height: 100%; width: 0; background: linear-gradient(90deg,var(--blue-deep),var(--blue),var(--white)); transition: width 550ms var(--ease); box-shadow: inset 0 2px var(--edge), 0 0 12px var(--blue); }
.xp.gained { animation: xp-gain 900ms var(--ease); }
@keyframes xp-gain { 35% { filter: brightness(1.7); } }
#xpgain { color: var(--gold); font-size: var(--type-xs); min-height: 15px; }
/* objective 6 · the 6c tail: THE PARTY FRAME — the co-present players (you the anchor, frame 0),
   the classic MMO bottom-left character-frame stack. Consumes the theme's tokens (Astra owns the
   look — no new colour literals): the HP fill is the resource band's own green, dropping to its
   red low step under 25%; the MP fill is the blue register. The bars wear the band's own slant
   (skewX) so the frame reads as the same family. */
#partyframes { position: absolute; bottom: 24px; left: 24px; width: 160px; padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--gold); }
#partyframes .pf-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
#partyframes .pf { display: flex; flex-direction: column; gap: 3px; padding: 5px 6px 6px; background: var(--well); border: 1px solid var(--line); border-radius: 2px; }
#partyframes .pf.self { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-deep); }
#partyframes .pf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
#partyframes .pf-name { font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#partyframes .pf-lvl { font-size: 10px; color: var(--muted); flex: 0 0 auto; }
#partyframes .pf-track { position: relative; overflow: hidden; background: var(--well); border: 1px solid var(--line); transform: skewX(-12deg); }
#partyframes .pf-track i { display: block; height: 100%; width: 0; transition: width var(--settle) var(--ease); box-shadow: inset 0 1px var(--edge); }
#partyframes .pf-hp { height: 7px; }
#partyframes .pf-hp i { background: linear-gradient(90deg,var(--green-deep),var(--green)); }
#partyframes .pf.low .pf-hp i { background: linear-gradient(90deg,var(--red-deep),var(--red)); }
#partyframes .pf.low .pf-name { color: var(--red); }
#partyframes .pf-mp { height: 4px; margin-top: 2px; }
#partyframes .pf-mp i { background: linear-gradient(90deg,var(--blue-deep),var(--blue)); }
#partyframes .pf-more { font-size: 10px; color: var(--muted); text-align: center; }
/* objective 6 · the real party: an ABSENT member (in the party, not in the zone) shows the
   level from the party read + EMPTY bars (partyFrames' P3 — never a fake full bar); dimmed */
#partyframes .pf.absent .pf-name { color: var(--muted); }
#partyframes .pf.absent .pf-track { opacity: .35; }
/* objective 6 · the 6c tail: THE MINIMAP — the persistent top-right zone read (the whole
   zone aspect-fit: the terrain silhouette, the camp waygates, the routes, your dot). The
   internal canvas is the 2x of the CSS box (the crisp law: 176x64 CSS = 352x128 device px,
   integer scale). Consume the theme's tokens (Astra owns the look). */
#minimap { position: absolute; top: 24px; right: 24px; width: 186px; height: 74px; padding: 4px; }
#minimap canvas { display: block; width: 176px; height: 64px; image-rendering: pixelated; }
#actiondock { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 22px; padding: 12px 20px 14px; }
.tray-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .19em; }
#hotbar, #skills { display: flex; gap: 7px !important; }
#hotbar .skillbtn, #skills .skillbtn { position: relative; width: 63px; height: 69px; padding: 0; overflow: hidden; isolation: isolate; border: 1px solid var(--rarity,var(--line)); background: linear-gradient(150deg,var(--panel-top),var(--well)); opacity: 1; }
#hotbar .skillbtn { cursor: default; }
#hotbar .skillbtn.active { border-color: var(--gold); box-shadow: 0 0 12px var(--line), inset 0 -3px var(--gold); }
.slot-key { position: absolute; top: 3px; left: 5px; z-index: 3; font: 700 var(--type-xs) var(--ui-font); color: var(--gold); text-shadow: 0 1px 3px var(--well); }
.slot-caption { position: absolute; bottom: 4px; left: 1px; right: 1px; z-index: 3; font: 10px var(--ui-font); color: var(--ink); white-space: nowrap; text-shadow: 0 1px 3px var(--well); }
.item-art { display: grid; place-items: center; flex: 0 0 auto; width: 60px; height: 60px; position: relative; color: var(--rarity,var(--common)); }
.item-art img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 2px 4px var(--shadow)); }
.item-art img.normalized { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: fill; }
.item-art .fallback { display: none; font-size: 32px; line-height: 1; opacity: .8; }
.item-art .fallback svg { width: 42px; height: 42px; }
.item-art.missing .fallback { display: block; }
.item-art.missing { background: radial-gradient(ellipse,var(--line),transparent 70%); border: 1px dashed currentColor; border-radius: var(--corner); }
.item-art.missing img { display: none; }
.item-art.inferno-icon { border-radius: 4px; box-shadow: 0 0 9px #f9671738; }
.item-art.inferno-icon img { object-fit: contain; image-rendering: auto; }
.hot.active:has(.inferno-icon) { border-color: #ffd17a; box-shadow: 0 0 12px #ff7b284a, inset 0 0 10px #e980243b; }
.item-art.gale-icon { border-radius: 4px; box-shadow: 0 0 9px #3e7bd64a; }
.item-art.gale-icon img { object-fit: contain; image-rendering: auto; }
.hot.active:has(.gale-icon) { border-color: #cfe6ff; box-shadow: 0 0 12px #5aa8d94a, inset 0 0 10px #3e7bd63b; }
#hotbar .item-art { width: 46px; height: 46px; margin: 8px auto 0; }
#skills .skico { display: block; width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; margin: 9px auto 0; }
.cooldown-sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: conic-gradient(var(--shadow) var(--cooldown,0deg),transparent 0deg); }
.wcd { position: absolute; right: 4px; bottom: 4px; z-index: 4; color: var(--gold); font-size: 10px; background: var(--well); }
#skills .unaffordable .skico { filter: grayscale(1); opacity: .35; }
#skills .unaffordable { border-color: var(--faint); background: var(--well); }
#skills .unaffordable .slot-caption { color: var(--red); font-weight: 700; }
#skills .cooling { border-color: var(--faint); }
#menudock { position: absolute; bottom: 37px; right: 24px; display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
#menudock button { padding: 8px 10px; font-size: var(--type-xs); background: var(--panel); }
#menudock button[aria-expanded=true] { border-color: var(--gold); color: var(--gold); }
#net { position: absolute; bottom: 9px; left: 24px; font-size: 10px; color: var(--muted); }
#who { position: absolute; bottom: 9px; right: 24px; color: var(--muted); font-size: 10px; }
#tick { display: none; }
#feedback { position: absolute; top: 47%; left: 50%; transform: translateX(-50%); display: grid; gap: 5px; max-width: min(600px,70vw); text-align: center; }
#feedback > span:not(:empty) { background: var(--panel); border: var(--panel-border); padding: 6px 14px; color: var(--gold); }
#err { color: var(--red) !important; }
#toast { color: var(--ink) !important; }
#pvpflag { display: none; position: absolute; top: 314px; left: 24px; max-width: 344px; padding: 7px 12px; border: 1px solid var(--red); background: var(--red-deep); color: var(--white); font-weight: 700; font-size: var(--type-xs); }
#course { white-space: pre-line; }
#trialtime,#linkread,#chainread,#coyoteread,#slamread,#sliderread,#mantleread,#walljumpread,#walljumpgate,#agigate,#chainarm,#chaingate,#downsplit,#dojodash,#cleandash,#course { display: none; }
#locationhud { top: 24px; padding: 12px 24px; min-width: 265px; max-width: 34vw; z-index: var(--z-hud); background: linear-gradient(130deg,var(--panel-top),var(--panel)); border: var(--panel-border); border-top: 2px solid var(--gold); box-shadow: var(--panel-shadow); border-radius: var(--corner); }
#regionname { font: 600 11px var(--ui-font); letter-spacing: .2em; color: var(--gold); }
#locationname { font: 600 17px var(--ui-font); color: var(--ink); margin: 3px 0; }
#mapbutton { font: 11px var(--ui-font); color: var(--muted); background: transparent; }
#questmark { position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; min-width: 200px; max-width: 40vw; z-index: var(--z-hud);
  background: linear-gradient(130deg,var(--panel-top),var(--panel));
  border: var(--panel-border); border-top: 2px solid var(--gold);
  box-shadow: var(--panel-shadow); border-radius: var(--corner);
  color: var(--ink); font: 600 var(--type-sm) var(--ui-font); letter-spacing: .01em; white-space: nowrap; }
#questmark::before { content: "\25C6"; color: var(--gold); margin-right: 8px; }
#whoroster { position: fixed; right: 24px; top: 110px; width: 190px; padding: 12px 16px; font-size: var(--type-sm); background: var(--panel); border: var(--panel-border); border-radius: var(--corner); z-index: var(--z-hud); display: none; }
#whoroster .head { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; margin-bottom: 8px; }
#whoroster .row { display: flex; justify-content: space-between; }
#whoroster .lvl { color: var(--blue); }
#whoroster .area { color: var(--muted); font-size: 10px; }
#whoroster button.inv { font: 600 9px var(--ui-font); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 2px 7px; cursor: pointer; }
#whoroster button.inv:hover { border-color: var(--gold); background: var(--well); }
#treasurehint { top: 135px; right: 24px; width: 235px; background: var(--panel); border: var(--panel-border); border-top-color: var(--gold); z-index: var(--z-hud); }
#treasurehint small,#treasurehint span,#treasurehint button { font-family: var(--ui-font); }
#chat { position: fixed; bottom: 55px; left: 24px; width: 260px; max-height: 140px; overflow: hidden; pointer-events: none; z-index: var(--z-hud); font-size: var(--type-xs); }
#chat div { padding: 3px 8px; background: var(--panel); }
#chat .from { color: var(--blue); }
#chatin { display: none; position: fixed; bottom: 28px; left: 24px; width: 265px; z-index: var(--z-context); }
.system-panel, #areamap, #cacheoffer { position: fixed !important; top: 130px !important; right: 24px !important; left: auto !important; bottom: 157px !important; transform: none !important; width: min(590px,calc(100vw - 48px)) !important; max-height: none !important; padding: 0 20px 20px !important; overflow: auto !important; z-index: var(--z-panel) !important; font: var(--type-sm)/1.6 var(--ui-font) !important; color: var(--ink) !important; background: linear-gradient(135deg,var(--panel-top),var(--panel) 45%) !important; border: var(--panel-border) !important; border-top-color: var(--edge) !important; border-radius: var(--corner); box-shadow: var(--panel-shadow) !important; backdrop-filter: blur(18px); scrollbar-width: thin; scrollbar-color: var(--line) var(--well); }
.window-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px 18px; padding: 15px 20px; background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.window-header h2 { margin: 2px 0 0; font-size: 22px; font-weight: 400; letter-spacing: .035em; color: var(--ink); }
.window-header button { font-size: 18px; padding: 2px 9px; }
.panel-intro { color: var(--muted); margin-bottom: 14px; }
.panel-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.panel-toolbar strong { color: var(--gold); font-size: var(--type-md); }
.item-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.item-card { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px !important; padding: 12px 10px; min-width: 0; border: 1px solid var(--rarity,var(--line)); background: linear-gradient(155deg,var(--panel-top),var(--well)); border-radius: var(--corner); position: relative; }
.item-card .item-art { width: 70px; height: 66px; margin: 0 auto; }
.item-card .item-name { color: var(--rarity); font-weight: 600; font-size: var(--type-sm); min-height: 34px; line-height: 1.35; }
.item-meta { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.item-index { position: absolute; left: 7px; top: 5px; color: var(--faint); font-size: 10px; }
.item-count { position: absolute; right: 7px; top: 5px; color: var(--gold); font-size: 10px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.item-actions button { padding: 3px 6px; font-size: 10px; }
.binds { display: inline-flex; gap: 3px; }
.item-actions [data-eq] { width: 100%; color: var(--gold); border-color: var(--line); }
.item-actions [data-drop] { color: var(--muted); }
.hint { color: var(--muted); font-size: var(--type-xs); margin-top: 14px; }
.shop-row { display: grid !important; grid-template-columns: 58px 1fr auto auto; gap: 12px !important; align-items: center; padding: 10px 0; border-bottom: var(--panel-border); }
.shop-row .item-art { width: 52px; height: 52px; border: 1px solid var(--rarity,var(--line)); background: var(--well); }
.shop-row .price { color: var(--gold); white-space: nowrap; }
.shop-row button { color: var(--gold); }
.r-common { --rarity: var(--common); color: var(--common); }.r-uncommon { --rarity: var(--uncommon); color: var(--uncommon); }.r-rare { --rarity: var(--rare); color: var(--rare); }.r-epic { --rarity: var(--epic); color: var(--epic); }.r-legendary { --rarity: var(--legendary); color: var(--legendary); }
#trade .row,#build .row,#debug .row,#inspect .row,#offer .row,#partyprompt .row { display: flex; align-items: center; gap: 8px; padding: 8px 0; flex-wrap: wrap; }
/* THE LOOT-ICONS grid (operator 2026-09-09 feedback (2): "show the loot as the loot icons"):
   each drop is a rarity-tinted icon slot — the loot's own sprite (itemArt), its name and its
   share of the pool. Matches the shop-row / item-tile visual language (rarity border-bottom). */
#inspect .loot-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 0; }
#inspect .loot-drop { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 76px; padding: 7px 5px 6px; border: 1px solid var(--rarity,var(--line)); border-bottom: 2px solid var(--rarity,var(--line)); border-radius: var(--corner); background: linear-gradient(145deg,var(--panel-top),var(--well)); }
#inspect .loot-drop .item-art { width: 44px; height: 44px; }
#inspect .loot-name { font: 10px/1.2 var(--ui-font); color: var(--ink); text-align: center; word-break: break-word; }
#inspect .loot-pct { font: 700 9px var(--ui-font); color: var(--rarity,var(--muted)); }
#inspect .loot-none { color: var(--muted); font-size: var(--type-xs); }
#partyprompt .head { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: 10px; margin-bottom: 4px; }
#partyprompt .lvl { color: var(--blue); }
#debug { display: none; }
#debug input { width: 76px; }
#bindpicker { position: fixed; display: none; gap: 5px; z-index: var(--z-context); background: var(--panel-solid); border: var(--panel-border); padding: 8px; box-shadow: var(--panel-shadow); }
#areamap { width: min(960px,calc(100vw - 48px)) !important; }
#areamap header { position: sticky; top: 0; background: var(--panel-solid); padding: 16px 0; z-index: 3; }
#areamap h2 { font: 400 24px var(--ui-font); color: var(--ink); }
#mapcanvas { background: var(--well); border: var(--panel-border); }
#areamap h3,.maproute { color: var(--gold); }
#areamap header small { color: var(--gold); }
#areamap footer,.mapentry span,.maplegend,#mapprogress { color: var(--muted); }
#mapclose { background: var(--panel-top); color: var(--ink); border: var(--panel-border); }
.mapentry.found { border-color: var(--gold); color: var(--ink); }
#questjournal { margin-top: 24px; padding-top: 12px; border-top: var(--panel-border); }
#cacheoffer { padding-top: 20px !important; }
#cacheoffer p,#cacheoffer button,#treasuretrail p,#treasuretrail button { font-family: var(--ui-font); }
#systemwindow { position: fixed; top: 145px; left: 50%; transform: translateX(-50%); z-index: var(--z-notice); width: min(420px,calc(100vw - 48px)); padding: 19px 30px 22px; text-align: center; border: 1px solid var(--edge); border-top: 3px solid var(--gold); background: linear-gradient(130deg,var(--panel-top),var(--panel)); box-shadow: 0 0 36px var(--line),var(--panel-shadow); backdrop-filter: blur(14px); pointer-events: none; }
#systemwindow::before,#systemwindow::after { content: '◆'; position: absolute; top: 45%; color: var(--gold); font-size: 10px; }
#systemwindow::before { left: 10px; } #systemwindow::after { right: 10px; }
#systemwindow h2 { font-size: 26px; font-weight: 400; color: var(--ink); margin: 7px 0; letter-spacing: .035em; }
#systemwindow p { color: var(--muted); margin: 7px 0 0; }
#systemwindow .system-value { font-size: 42px; font-weight: 300; line-height: 1.3; color: var(--gold); }
#systemwindow.show { animation: system-arrive 480ms var(--ease); }
@keyframes system-arrive { from { opacity: 0; clip-path: inset(45% 0); transform: translate(-50%,-8px); } to { opacity: 1; clip-path: inset(0); transform: translate(-50%,0); } }
#discovery { display: none; }
#stale { display: none; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center; background: var(--panel); }
#stale .card { width: min(440px,88vw); padding: 28px; background: var(--panel-solid); border: 1px solid var(--gold); box-shadow: var(--panel-shadow); }
#stale .title { color: var(--gold); letter-spacing: .15em; }
#stale .builds,#stale .hint { color: var(--muted); }
/* All windows inherit the shared adventure palette. */
.system-panel:empty { display: none; }
#resourceband { color: var(--steel-ink); padding: 18px 20px 14px; border-left-width: 1px; border-top: 3px solid var(--edge); border-bottom: 2px solid var(--steel-gold); border-radius: 2px 2px 16px 2px; }
#resourceband .identity { gap: 15px; margin-bottom: 17px; }
#resourceband .level-seal { border-color: var(--steel-gold); background: var(--pearl-light); min-width: 43px; height: 43px; }
#resourceband .identity .eyebrow { font-size: 8px; letter-spacing: .2em; }
#playername { font-size: 21px; }
#playerdetail { font-size: 11px; }
#resourceband .resource-label { font-size: 10px; letter-spacing: .09em; }
#resourceband .resource-track { border: 0; background: var(--steel-line); transform: skewX(-20deg); }
#resourceband .hp .resource-fill { background: linear-gradient(90deg,var(--green-deep),var(--green)); }
#resourceband .mp .resource-fill { background: linear-gradient(90deg,var(--blue-deep),var(--edge)); }
#resourceband .stam .resource-fill { background: linear-gradient(90deg,var(--gold-deep),var(--legendary)); }
#resourceband #xpfill { background: linear-gradient(90deg,var(--blue-deep),var(--edge)); }
#resourceband .xp { padding-top: 13px; margin-top: 13px; }
#resourceband #xpgain { position: absolute; left: 20px; bottom: -23px; color: var(--white); text-shadow: 0 1px 4px var(--shadow); }
#locationhud { border-top: 0; border-bottom: 2px solid var(--steel-gold); border-radius: 2px 2px 18px 18px; padding: 11px 28px; }
#locationhud #regionname { color: var(--steel-gold); font-size: 10px; }
#locationhud #locationname { color: var(--steel-ink); font-size: 19px; font-weight: 400; }
#locationhud #mapbutton { color: var(--steel-muted); font-size: 10px; }
#systemwindow { padding: 24px 32px 28px; background: linear-gradient(125deg,var(--pearl-light),var(--pearl-blue)); border: 1px solid var(--white); border-top: 3px solid var(--blue); border-bottom: 3px solid var(--steel-gold); color: var(--steel-ink); border-radius: 2px 2px 22px 2px; }
#systemwindow h2 { font-size: 22px; font-weight: 400; color: var(--steel-blue); }
#systemwindow .system-value { font-size: 36px; font-weight: 300; color: var(--steel-ink); margin-top: 9px; }
#systemwindow p { color: var(--steel-muted); font-size: 13px; }
#systemwindow .eyebrow { color: var(--steel-gold); font-size: 9px; }
body[data-panel] #systemwindow { left: 196px; top: 360px; width: 344px; }
body[data-panel] #treasurehint { visibility: hidden; }
#feedback { top: auto; bottom: 155px; }
#feedback > span:not(:empty) { border: 0; border-left: 2px solid var(--gold); font-size: 12px; padding: 4px 12px; }
.system-panel { border-top: 3px solid var(--edge) !important; border-bottom: 2px solid var(--gold) !important; border-radius: 2px 2px 18px 2px; }
.window-header { background: linear-gradient(110deg,var(--pearl-light),var(--pearl-blue)); padding: 16px 20px; margin-bottom: 16px; border-bottom: 1px solid var(--steel-line); }
.window-header::after { content: ''; position: absolute; left: 20px; bottom: -1px; width: 60px; height: 2px; background: var(--steel-gold); }
.window-header .eyebrow { color: var(--steel-gold); font-size: 9px; }
.window-header h2 { color: var(--steel-ink); font-size: 26px; font-weight: 300; letter-spacing: .02em; }
.window-header button { background: transparent; border: 0; color: var(--steel-muted); font-size: 26px; }
.window-header button:hover { color: var(--steel-ink); background: var(--pearl-light); }
.panel-toolbar { margin-bottom: 12px; }
.panel-toolbar .eyebrow { display: block; color: var(--steel-muted); font-size: 8px; margin-bottom: 2px; }
.panel-toolbar strong { display: block; font-size: 15px; font-weight: 500; color: var(--steel-ink); }
.bag-count { font-size: 25px; font-weight: 300; color: var(--steel-blue); }.bag-count small { font-size: 9px; color: var(--steel-muted); letter-spacing: .1em; }
.item-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.item-tile { display: flex !important; align-items: center !important; flex-direction: column; justify-content: center; min-width: 0; height: 105px; padding: 7px 5px; position: relative; border: 1px solid var(--steel-line); border-radius: 3px; background: linear-gradient(145deg,var(--pearl-light),var(--pearl-blue)); color: var(--rarity); box-shadow: inset 0 1px var(--white); }
.item-tile:hover { border-color: var(--rarity); background: var(--pearl-light); transform: translateY(-2px); box-shadow: 0 5px 10px var(--steel-line); }
.item-tile.selected { border: 1px solid var(--steel-blue); background: var(--pearl-light); box-shadow: inset 0 0 0 2px var(--pearl-blue),0 0 0 1px var(--steel-blue); }
.item-tile.selected::after { content: '◆'; position: absolute; bottom: -7px; color: var(--steel-blue); font-size: 10px; }
.item-tile .item-art { width: 58px; height: 58px; margin: 2px auto 4px; }
.item-tile .item-name { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; height: 25px; text-align: center; color: var(--steel-ink); }
.item-index,.item-count { font-size: 8px; }
.item-count { color: var(--steel-muted); }
.rarity-mark { position: absolute; bottom: 0; left: 25%; right: 25%; height: 2px; background: var(--rarity); }
.item-art.missing { border: 0; background: transparent; }
.item-art .fallback { opacity: .65; }
.item-detail { display: flex; gap: 17px; margin-top: 23px; padding: 17px 0 14px; border-top: 1px solid var(--steel-line); color: var(--steel-ink); }
.item-detail > .item-art { width: 80px; height: 80px; background: var(--pearl-blue); border: 1px solid var(--steel-line); border-bottom: 2px solid var(--rarity); border-radius: 3px; }
.item-detail .item-description { min-width: 0; flex: 1; }
.item-detail h3 { font-size: 22px; font-weight: 400; margin: 2px 0 4px; color: var(--rarity); }
.item-detail .item-meta { font-size: 9px; color: var(--rarity); font-weight: 600; }
.item-detail p { font-size: 11px; margin: 0 0 14px; color: var(--steel-muted); }
.item-detail .item-actions { gap: 7px; align-items: center; }
.item-detail .item-actions button { font-size: 11px; padding: 5px 10px; color: var(--steel-ink); }
.item-detail .item-actions [data-eq] { width: auto; color: var(--white); background: var(--steel-blue); border-color: var(--steel-blue); text-transform: capitalize; padding: 5px 20px; }
.binds { align-items: center; gap: 4px; }
.binds small { color: var(--steel-muted); font-size: 10px; padding-right: 3px; }
.item-detail .binds .bindbtn { padding: 5px 7px; }
.disposal-actions { display: flex; gap: 5px; }
.inventory-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; border-top: var(--panel-border); color: var(--steel-muted); font-size: 9px; }
/* objective 6 · ITEM TOOLTIPS: the floating item read on hover (inventory + shop). The wrapper
   carries the r-* class (set by client.js) so the rarity border + the read's colour cascade;
   pointer-events none so it never steals the hover. Astra owns the look — the theme's tokens. */
#tooltip { position: fixed; z-index: 250; min-width: 170px; max-width: 250px; padding: 11px 13px;
  background: linear-gradient(135deg, var(--panel-top), var(--panel) 45%);
  border: var(--panel-border); border-left: 2px solid var(--rarity, var(--line));
  border-radius: var(--corner); box-shadow: var(--panel-shadow); backdrop-filter: blur(14px);
  pointer-events: none; font: var(--type-xs)/1.5 var(--ui-font); }
#tooltip .tt-name { font-size: 13px; font-weight: 600; color: var(--rarity, var(--ink)); margin-bottom: 1px; }
#tooltip .tt-sub { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
#tooltip .tt-rarity { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rarity, var(--muted)); margin-bottom: 7px; }
#tooltip .tt-stats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 7px; padding: 6px 9px; background: var(--well); border-radius: 3px; }
#tooltip .tt-stat { font-size: 11px; font-weight: 600; color: var(--gold); }
#tooltip .tt-sell { font-size: 10px; color: var(--muted); margin-bottom: 7px; }
#tooltip .tt-desc { font-size: 10px; font-style: italic; color: var(--steel-muted); line-height: 1.45; }
/* the SAME read inside the selected-item panel (the click flow) — one source of truth */
.item-detail .detail-stats { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding: 8px 10px; background: var(--well); border-radius: 3px; }
.item-detail .detail-stats .tt-stat { font-size: 11px; font-weight: 600; color: var(--gold); }
.item-detail .detail-sell { font-size: 10px; color: var(--muted); margin-top: 6px; }
.inventory-footer strong { color: var(--steel-gold); white-space: nowrap; font-size: 13px; }
.empty-inventory { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); }
#inv { width: min(628px,calc(100vw - 48px)) !important; }
#inv .item-tile .item-name { font-size: 11px; }
body[data-panel] #feedback { left: 24px; transform: none; max-width: 340px; text-align: left; }
.shop-row { padding: 12px 0; grid-template-columns: 60px 1fr auto auto; }
.shop-row .item-art { background: var(--pearl-light); border-color: var(--steel-line); border-bottom-color: var(--rarity); border-radius: 3px; width: 54px; height: 54px; }
.shop-row strong { font-size: 14px; font-weight: 500; }
.shop-row .item-meta { font-size: 9px; color: var(--steel-muted); }
.shop-row .price { color: var(--steel-gold); font-size: 13px; }
.shop-row button { color: var(--steel-blue); background: var(--pearl-light); border-color: var(--steel-line); padding: 6px 17px; }
#actiondock { padding: 13px 20px 17px; border: 1px solid var(--edge); border-top: 3px solid var(--white); border-radius: 4px 4px 18px 18px; background: linear-gradient(155deg,var(--pearl-light),var(--pearl-blue)); box-shadow: 0 10px 30px var(--shadow); gap: 25px; }
#actiondock .tray-label { color: var(--steel-muted); font-size: 9px; letter-spacing: .16em; margin-bottom: 7px; }
#hotbar .skillbtn,#skills .skillbtn { width: 61px; height: 65px; background: linear-gradient(145deg,var(--panel-top),var(--well)); border: 1px solid var(--steel-muted); border-radius: 4px 4px 10px 4px; box-shadow: inset 0 1px var(--line); }
#hotbar .skillbtn.active { border: 1px solid var(--gold); box-shadow: inset 0 -3px var(--gold),0 0 0 2px var(--steel-gold); }
.slot-key { top: 4px; left: 5px; font-size: 11px; }
#hotbar .item-art { width: 45px; height: 44px; margin-top: 8px; }
#menudock { gap: 4px; }
#menudock button { background: var(--panel); border-color: var(--line); border-radius: 3px; font-size: 11px; padding: 9px 12px; }
#menudock button[aria-expanded=true] { background: var(--pearl); color: var(--steel-ink); border-color: var(--white); }
#menudock button[aria-expanded=true] { background: var(--pearl-light); }
@media (max-width: 600px) {
  #resourceband { min-height: 0; padding: 12px 14px; }
  #resourceband .identity { gap: 10px; }
  #playerdetail { font-size: 9px; }
  #resourceband .identity-copy { margin-left: 0; }
  #locationhud #locationname { font-size: 16px; }
  #inv { right: 12px !important; width: calc(100vw - 24px) !important; }
  #feedback { bottom: 235px; }
  body[data-panel] #feedback { display: none; }
  .item-detail { flex-direction: column; }
}
#whoroster { background: var(--panel); border-top: 2px solid var(--gold); border-radius: 2px 2px 10px 2px; }
@media (max-width: 1200px) { #menudock { bottom: 155px; grid-template-columns: repeat(3,auto); } #actiondock { gap: 16px; } #resourceband { width: 300px; } }
@media (max-width: 900px) { #resourceband { top: 12px; left: 12px; width: 260px; padding: 12px 16px; } #locationhud { top: 12px; left: auto; right: 12px; transform: none; max-width: 42vw; min-width: 0; } #whoroster { top: 120px; right: 12px; width: 150px; } #treasurehint { top: 240px; right: 12px; width: 180px; } #menudock { bottom: 145px; right: 12px; } #actiondock { bottom: 26px; gap: 12px; padding: 10px; } #hotbar .skillbtn,#skills .skillbtn { width: 52px; height: 63px; } #chat { bottom: 170px; width: 230px; } .system-panel,#areamap,#cacheoffer { top: 105px !important; right: 12px !important; bottom: 250px !important; } #systemwindow { top: 320px; } }
@media (max-width: 600px) { #resourceband { width: 218px; } #playername { font-size: 17px; } #locationhud { max-width: 37vw; padding: 10px; } #locationname { font-size: 13px; } #whoroster { top: 135px; width: 130px; } #treasurehint { display: none; } #hotbar .skillbtn,#skills .skillbtn { width: 39px; height: 55px; } #hotbar .item-art { width: 33px; height: 34px; } #skills .skico { width: 28px; height: 28px; } #hotbar,#skills { gap: 3px !important; } #actiondock { gap: 9px; } .slot-caption { font-size: 8px; } #menudock { bottom: 126px; } .system-panel,#areamap,#cacheoffer { width: calc(100vw - 24px) !important; top: 105px !important; bottom: 220px !important; } .item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } #systemwindow { top: 290px; } #chat { bottom: 208px; max-height: 64px; } }
@media (max-height: 700px) and (min-width: 901px) { #resourceband { top: 12px; padding: 10px 16px; } #resourceband .identity { margin-bottom: 6px; } .resource { margin-top: 5px; } #actiondock { bottom: 24px; } .system-panel,#areamap,#cacheoffer { top: 110px !important; bottom: 146px !important; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Carried from the inline block index.html lost at the merge. hud.css picked up #wrap,
   html/body, input and button but not this one, so the canvas fell back to display:inline
   and laid out at 0x0 - the HUD rendered perfectly over an empty world. */
canvas { flex: 1 1 auto; min-height: 0; width: 100%; display: block; background: #0b1a2a; }

/* objective 6c: the applied-status icon row (under the resource band). One chip per active
   status — the status's own register colour (the DESIGNED RAMP), the label, a duration bar
   (left/total, the server's own counts). Hidden for a clean body. */
#statuses { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
#statuses[hidden] { display: none; }
#statuses .st { display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 4px;
  border: 1px solid var(--stc); border-radius: 3px; background: rgba(6,12,20,.55);
  box-shadow: 0 0 6px -2px var(--stc); }
#statuses .st-g { width: 9px; height: 9px; background: var(--stc); box-shadow: 0 0 5px var(--stc); }
#statuses .st b { font-family: var(--ui-font, monospace); font-size: 9px; letter-spacing: .6px;
  color: var(--stc); font-weight: 700; line-height: 1; }
#statuses .st-bar { width: 34px; height: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
#statuses .st-bar u { display: block; height: 100%; background: var(--stc); }

/* Shared flow prevents a growing online roster from covering the tracked clue. */
.system-panel { overflow-anchor: none; }
#worldrail { position: fixed; top: 24px; right: 24px; width: 216px; display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; scrollbar-width: thin; pointer-events: auto; }
#worldrail #minimap,#worldrail #whoroster,#worldrail #treasurehint { position: relative; inset: auto; width: 100%; flex: 0 0 auto; margin: 0; }
#worldrail #minimap { height: auto; padding: 10px; border-radius: 3px 3px 12px 3px; }
#worldrail #minimap canvas { margin: auto; background: var(--well); }
#worldrail #whoroster { padding: 11px 14px; }
#worldrail #whoroster .row { padding-top: 4px; }
#worldrail #treasurehint { border-radius: 3px 3px 12px 3px; padding: 12px 14px; line-height: 1.5; }
#partyframes { top: 340px; bottom: auto; width: 180px; max-height: 30vh; overflow-y: auto; scrollbar-width: thin; }
#questmark { top: 128px; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; font-size: 11px; padding: 7px 12px; }
body:has(#questmark:not([hidden])) #systemwindow { top: 178px; }
body[data-panel] #worldrail,body[data-panel] #partyframes,body[data-panel] #questmark { visibility: hidden; }
#statuses .st { background: var(--well); }
#statuses .st-bar { background: var(--line); }
@media (min-width: 1200px) and (min-height: 800px) {
  #feedback { left: 24px; transform: none; max-width: 340px; text-align: left; }
  #chat { bottom: 34px; max-height: 100px; }
}
@media (max-width: 900px) {
  #worldrail { right: 12px; top: 122px; width: 170px; max-height: 42vh; }
  #worldrail #minimap canvas { width: 148px; height: auto; }
  #partyframes { top: 320px; left: 12px; width: 155px; max-height: 22vh; }
  #questmark { top: 98px; left: auto; right: 12px; transform: none; min-width: 0; max-width: 42vw; }
}
@media (max-width: 600px) {
  #worldrail { top: 128px; width: 138px; max-height: 28vh; gap: 6px; }
  #worldrail #minimap { padding: 5px; }
  #worldrail #minimap canvas { width: 126px; }
  #worldrail #whoroster { padding: 8px; font-size: 10px; }
  #partyframes { width: 140px; top: 318px; max-height: 18vh; }
  #questmark { max-width: 36vw; font-size: 10px; }
  body:has(#questmark:not([hidden])) #systemwindow { top: 290px; }
}
/* Adventure HUD: restrained ink glass and warm metal framing. */
#resourceband, #locationhud, #actiondock {
  --ink: #e9ede7; --muted: #a6b9bb; --faint: #8fa7ad;
  --gold: #dcc18a; --well: #091b25; --line: #72898b80;
  color: var(--ink); background: linear-gradient(125deg,#102630f5,#081720f2);
  border: 1px solid #c6a76a; border-radius: 8px 2px 8px 2px;
  box-shadow: inset 0 0 0 3px #122731, inset 0 0 0 4px #8d79474d, 0 5px 18px #0006;
}
#resourceband { top: 16px; left: 16px; width: 282px; padding: 13px 16px; }
#resourceband .identity { margin-bottom: 10px; gap: 12px; }
#resourceband .level-seal { background: #10232c; border-color: #dcc18a; }
#resourceband .eyebrow, #locationhud #regionname { color: #dcc18a; }
#resourceband .resource-track { background: #07141d; border: 1px solid #46616c; height: 10px; clip-path: none; border-radius: 3px; }
#resourceband #hpfill { background: linear-gradient(90deg,#a32433,#ff5c5e); }
#resourceband #mpfill { background: linear-gradient(90deg,#1670ad,#6ed8ff); }
#resourceband #stamfill { background: linear-gradient(90deg,#648b5b,#b4d7a1); }
#resourceband .xp { padding-top: 8px; margin-top: 8px; }
#playername { font-family: Georgia,serif; font-size: 22px; }
#playerdetail { font-size: 10px; }
#locationhud { top: 14px; padding: 12px 32px; }
#locationhud #locationname { color: #eef2e9; font-family: Georgia,serif; font-size: 21px; }
#locationhud #mapbutton, #actiondock .tray-label { color: #a7bec1; }
#actiondock { padding: 10px 15px 12px; bottom: 18px; gap: 22px; }
#worldrail { top: 16px; right: 16px; }
#worldrail .system-surface { border: 1px solid #ab925f; background: linear-gradient(140deg,#132a35f5,#081820f5); box-shadow: inset 0 0 0 3px #08182066,0 5px 16px #0005; }
@media (max-width:900px) {
  #resourceband { width: 230px; top: 10px; left: 10px; padding: 10px 13px; }
  #locationhud { top: 10px; padding: 8px 14px; }
  #locationhud #locationname { font-size: 16px; }
  #worldrail { top: 110px; right: 10px; }
}
@media (max-width:600px) { #resourceband { width: 205px; } #actiondock { padding: 8px; gap: 9px; } }
#systemwindow { max-width: 340px; padding: 12px 20px; top: 120px; background: linear-gradient(125deg,#112934f5,#0a1a24f2); border: 1px solid #baa06a; border-radius: 4px; color: #e5eeed; }
#systemwindow h2 { font-size: 12px; color: #d8c28d; }
#systemwindow .system-value { font: 22px Georgia,serif; color: #f0f2e9; margin-top: 5px; }
#systemwindow p { color: #a8bfc1; font-size: 11px; }
#systemwindow .eyebrow { display: none; }

/* Finishing rules shared by every adventure surface. Mobile geometry lives in mobile.css. */
:root { --display-font: Georgia, 'Times New Roman', serif; --corner: 6px;
  --panel-shadow: 0 12px 32px #030e1859, inset 0 1px #e1cf9920; }
.system-surface, #worldrail .system-surface, #resourceband, #locationhud, #actiondock,
#worldrail #whoroster, #worldrail #treasurehint, #questmark, #systemwindow {
  background: linear-gradient(145deg,var(--panel-top),var(--panel) 70%);
  border: 1px solid var(--line); border-top-color: var(--gold-deep);
  border-radius: var(--corner); box-shadow: var(--panel-shadow);
}
.system-panel, #areamap, #cacheoffer { border: 1px solid var(--line) !important;
  border-top: 2px solid var(--gold-deep) !important; border-radius: 8px; }
.window-header { background: var(--panel-solid); padding-top: 18px; padding-bottom: 18px; }
.window-header h2, #areamap h2, .item-detail h3 { font-family: var(--display-font); font-weight: 400; }
.window-header .eyebrow { font-size: 10px; letter-spacing: .16em; }
.window-header button { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
button:hover { box-shadow: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
#resourceband { border-left: 2px solid var(--gold-deep); }
#resourceband .resource-track, #partyframes .pf-track { transform: none; border-radius: 3px; }
#resourceband #hpfill { background: linear-gradient(90deg,var(--red-deep),var(--red)); }
#resourceband #mpfill { background: linear-gradient(90deg,var(--blue-deep),var(--blue)); }
#resourceband #stamfill { background: linear-gradient(90deg,var(--green-deep),var(--green)); }
#resourceband #xpfill { background: linear-gradient(90deg,var(--gold-deep),var(--gold)); box-shadow: none; }
.resource-fill { box-shadow: inset 0 1px #ffffff30; }
#actiondock { gap: 18px; }
#hotbar .skillbtn, #skills .skillbtn { border-radius: 5px; border-color: var(--line); background: var(--well); box-shadow: inset 0 1px #ffffff0d; }
#hotbar .skillbtn.active { border-color: var(--gold); box-shadow: inset 0 -2px var(--gold); }
.slot-key { color: var(--muted); font-size: 10px; }
.slot-caption { font-size: 10px; }
#menudock button { text-align: left; background: var(--panel); border-radius: 5px; padding: 8px 10px; }
#menudock button[aria-expanded=true] { color: var(--gold); border-color: var(--gold-deep); background: var(--panel-top); }
#menudock kbd { margin-left: 5px; color: var(--muted); }
.item-tile { border-radius: 5px; background: var(--well); box-shadow: none; transition: border-color var(--fast), background var(--fast); }
.item-tile:hover { transform: none; box-shadow: none; background: var(--panel-top); }
.item-tile.selected { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.item-tile.selected::after { color: var(--gold); }
.item-detail .item-actions [data-eq] { background: var(--gold); color: var(--well); border-color: var(--gold); font-weight: 600; }
.item-detail p, #tooltip .tt-desc { font-size: 12px; line-height: 1.6; }
.item-detail h3 { font-size: 23px; }
.inventory-footer { font-size: 11px; }
#questmark { border-top: 0; color: var(--muted); }
#chat div { padding: 4px 9px; }
#partyframes .pf-hp i { background: linear-gradient(90deg,var(--red-deep),var(--red)); }
@media (min-width: 1201px) { #menudock { bottom: 22px; right: 16px; } }

/* THE ADMIN SPAWN PICKER. A grid of sprites beats a text field the moment there are 43 of them:
   the id is only half the question, the other half is "which one is that". Sized so ~5 sit in a
   row inside the debug panel, scrolls after four rows, and a sprite with no art still renders as
   a named tile so every spawnable mob is reachable. */
.mobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px;
  max-height: 176px; overflow-y: auto; margin-top: 6px; padding: 4px;
  background: var(--well); border: 1px solid var(--line); border-radius: var(--corner); }
.mobgrid button { display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 2px; background: transparent; border: 1px solid transparent; border-radius: 4px;
  cursor: pointer; color: var(--muted); font: 9px var(--ui-font); line-height: 1.1; }
.mobgrid button:hover, .mobgrid button:focus-visible { background: var(--hover); color: var(--ink);
  border-color: var(--line); outline: none; }
.mobgrid button.spawned { border-color: var(--gold); color: var(--gold); }
.mobgrid img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.mobgrid .noart { width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--panel-solid); border-radius: 3px; color: var(--faint); font-size: 14px; }
.mobgrid .nm { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
