html.mobile-hud #world-hud {
  --mobile-hud-panel:var(--mobile-rail-surface,rgb(14 13 11 / .85));
  --mobile-hud-edge:inset 0 0 0 1px var(--mobile-rail-edge,#e5ceb13b);
}

/* Keep the panel edges inside the existing HUD bounds. */
html.mobile-hud #world-hud .hud-status-stack #player-status:has(#player-hud-grip),
html.mobile-hud #world-hud #mobile-party-hud,
html.mobile-hud #world-hud #mobile-summon-hud .mobile-summon-card,
html.mobile-hud #world-hud #mobile-target-hud :is(.mobile-target-panel,.mobile-target-actions) {
  background:var(--mobile-hud-panel);
  box-shadow:var(--mobile-hud-edge);
}
