:root{
  --hud-bg-1: #0c1018;
  --hud-bg-2: #090d14;

  --hud-white: rgba(255,255,255,.94);
  --hud-muted: rgba(255,255,255,.68);
  --hud-muted-2: rgba(255,255,255,.54);

  --hud-line: rgba(255,255,255,.10);
  --hud-line-soft: rgba(255,255,255,.07);
  --hud-line-strong: rgba(255,255,255,.16);

  --hud-radius-xl: 28px;
  --hud-radius-lg: 22px;
  --hud-radius-md: 18px;
  --hud-radius-sm: 14px;
  --hud-radius-pill: 999px;

  --hud-workspace: rgba(120,170,220,.62);
  --hud-engine: rgba(255,224,145,.68);
  --hud-business: rgba(210,160,120,.58);

  --hud-shell-inset: 10px;
  --hud-shell-pad-x: 14px;
  --hud-shell-pad-y: 8px;

  --hud-gap-outer: 8px;
  --hud-gap-inner: 12px;
  --hud-gap-grid: 12px;

  --hud-topbar-h: 10px;
  --hud-hero-h: 104px;
  --hud-body-min: 280px;
  --hud-footer-main-h: 70px;
  --hud-footer-edge-h: 14px;

  --pe-brand-1: #6A5A47;
  --pe-brand-2: #4F463D;
  --pe-brand-border: rgba(255,255,255,.16);
  --pe-brand-ink: rgba(255,255,255,.92);
}

/* =========================================================
   LEGACY DRAWER OFF
   ========================================================= */

#railOverlay,
#railDrawer{
  display: none !important;
}

/* =========================================================
   GLOBAL HUD ROOT
   ========================================================= */

#bridgeHud.bridgeHud{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

body.hud-open #bridgeHud.bridgeHud{
  display: block;
}

body.hud-open{
  overflow: hidden;
}

#bridgeHud,
#bridgeHud *{
  box-sizing: border-box;
  color: var(--hud-white);
}

#bridgeHud .bridgeHud__scrim{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
}

/* =========================================================
   OUTER SHELL
   very small top/bottom gap
   ========================================================= */

#bridgeHud .bridgeHud__panel{
  position: fixed;
  inset: var(--hud-shell-inset);
  min-height: 0;
  overflow: hidden;

  display: grid;
  grid-template-rows:
    var(--hud-topbar-h)
    var(--hud-hero-h)
    minmax(var(--hud-body-min), 1fr)
    auto
    var(--hud-footer-edge-h);
  gap: var(--hud-gap-outer);

  padding: var(--hud-shell-pad-y) var(--hud-shell-pad-x);
  border-radius: var(--hud-radius-xl);
  border: 1px solid rgba(255,255,255,.12);

  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    linear-gradient(180deg, var(--hud-bg-1), var(--hud-bg-2));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 30px 90px rgba(0,0,0,.48);
}

#bridgeHud .bridgeHud__panel::before{
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
  z-index: 1;
}

#bridgeHud .bridgeHud__topbar,
#bridgeHud .bridgeHud__hero,
#bridgeHud .bridgeHud__body,
#bridgeHud .bridgeHud__footer,
#bridgeHud .bridgeHud__bottomline{
  position: relative;
  min-width: 0;
  z-index: 2;
}

/* backwards compatibility if old wrapper classes still exist */
#bridgeHud .bridgeHud__header,
#bridgeHud .bridgeHud__body,
#bridgeHud .bridgeHud__footer{
  min-width: 0;
}

/* =========================================================
   TOP STRIP
   keep very small so hero sits near top
   ========================================================= */

#bridgeHud .bridgeHud__topbar{
  min-height: 0;
  height: var(--hud-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

/* =========================================================
   HERO
   ========================================================= */

#bridgeHud .bridgeHud__hero{
  min-height: 0;
  height: var(--hud-hero-h);
  overflow: hidden;
  border-radius: var(--hud-radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    rgba(0,0,0,.16);
}

#bridgeHud .bridgeHud__heroInner{
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

/* alias old class names to new hero system */
#bridgeHud .bridgeHud__heroLine{
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  border: 0;
  background: transparent;
}

#bridgeHud #hudHeroVideo,
#bridgeHud .bridgeHud__heroVideo{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.03);
  pointer-events: none;
  z-index: 0;
}

#bridgeHud .bridgeHud__heroOverlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 50%, rgba(0,0,0,.00), rgba(0,0,0,.28) 75%, rgba(0,0,0,.42)),
    linear-gradient(180deg, rgba(10,16,26,.10), rgba(10,16,26,.00) 58%, rgba(10,16,26,.16));
}

#bridgeHud .bridgeHud__heroCenter{
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 56px 6px;
  text-align: center;
}

#bridgeHud .bridgeHud__heroKicker{
  margin: 0 0 4px 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

#bridgeHud .bridgeHud__heroTitle{
  margin: 0 0 4px 0;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.98);
}

#bridgeHud .bridgeHud__heroSub{
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 600;
  color: rgba(255,255,255,.74);
}

#bridgeHud .bridgeHud__close{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
    linear-gradient(180deg, rgba(18,22,30,.88), rgba(10,12,18,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 18px rgba(0,0,0,.26);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#bridgeHud .bridgeHud__close span{
  display: block;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

/* =========================================================
   BODY
   3 zones:
   1) controls row
   2) spanning band
   3) 3-column panel grid
   ========================================================= */

#bridgeHud .bridgeHud__body{
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#bridgeHud .bridgeHud__bodyShell{
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: var(--hud-gap-inner);
}

/* aliases from old body wrappers */
#bridgeHud .bridgeHud__groupsBand,
#bridgeHud .bridgeHud__xScroll,
#bridgeHud .bridgeHud__surface,
#bridgeHud .bridgeHud__slider{
  min-height: 0;
}

#bridgeHud .bridgeHud__bodyTop{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;

  padding: 2px 0 0 0;
}

#bridgeHud .bridgeHud__bodyBand{
  min-width: 0;
}

#bridgeHud .bridgeHud__bodyGrid{
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hud-gap-grid);
  align-items: stretch;
}

/* =========================================================
   CLUSTERS / GROUPS
   ========================================================= */

#bridgeHud .hudCluster{
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#bridgeHud .hudCluster--left{
  justify-content: flex-start;
}

#bridgeHud .hudCluster--right{
  justify-content: flex-end;
}

#bridgeHud .hudCluster--stack{
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#bridgeHud .hudQuick__kicker{
  margin: 0;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  font-weight: 800;
  white-space: nowrap;
}

/* =========================================================
   BUTTON / CHIP SYSTEM
   unified replacement for route pills and actions
   ========================================================= */

#bridgeHud .hudBtn,
#bridgeHud .hudAnchor,
#bridgeHud .hudAction{
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--hud-radius-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

#bridgeHud .hudBtn:hover,
#bridgeHud .hudAnchor:hover,
#bridgeHud .hudAction:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

#bridgeHud .hudBtn.is-active,
#bridgeHud .hudAnchor.is-active,
#bridgeHud .hudAction.is-active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.98);
}

#bridgeHud .hudAnchor[data-hud-go="workspace"].is-active,
#bridgeHud .hudBtn[data-hud-go="workspace"].is-active{
  box-shadow: inset 0 0 0 1px rgba(120,170,220,.16);
}

#bridgeHud .hudAnchor[data-hud-go="engine"].is-active,
#bridgeHud .hudBtn[data-hud-go="engine"].is-active{
  box-shadow: inset 0 0 0 1px rgba(255,224,145,.16);
}

#bridgeHud .hudAnchor[data-hud-go="business"].is-active,
#bridgeHud .hudBtn[data-hud-go="business"].is-active{
  box-shadow: inset 0 0 0 1px rgba(210,160,120,.16);
}

/* =========================================================
   CREDIT PACKS
   ========================================================= */

#bridgeHud .credit-pack{
  min-width: 72px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#bridgeHud .credit-pack .btn__face{
  min-width: 0;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--hud-radius-pill);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#bridgeHud .credit-pack__coin{
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  flex: 0 0 22px;
}

#bridgeHud .credit-pack__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .02em;
  color: rgba(255,255,255,.98);
  pointer-events: none;
}

#bridgeHud .credit-pack__value{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   BODY SPANNING BAND
   this is the long pill across all 3 sections
   ========================================================= */

#bridgeHud .hudBand{
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-radius: var(--hud-radius-pill);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(9,12,20,.82), rgba(9,12,20,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

#bridgeHud .hudBand__title{
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

/* =========================================================
   PANEL GRID
   ========================================================= */

#bridgeHud .hudPane{
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
}

#bridgeHud .hudPane__scroll{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;

  padding: 12px;
  border-radius: var(--hud-radius-lg);
  border: 1px solid var(--hud-line-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)),
    linear-gradient(180deg, rgba(12,16,27,.78), rgba(9,12,20,.86));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 10px 24px rgba(0,0,0,.20);
}

/* top pill inside each panel */
#bridgeHud .hudPane__kicker{
  position: relative;
  margin: 0 0 12px 0;
  padding: 8px 14px 0 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: 100%;

  border-radius: var(--hud-radius-pill);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.022);

  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.84);

  flex: 0 0 auto;
}

#bridgeHud .hudPane__kicker::before{
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(255,255,255,.10));
}

#bridgeHud .hudPane--workspace .hudPane__kicker::before{
  background: linear-gradient(90deg, var(--hud-workspace), rgba(255,255,255,.10));
}

#bridgeHud .hudPane--engine .hudPane__kicker::before{
  background: linear-gradient(90deg, var(--hud-engine), rgba(255,255,255,.10));
}

#bridgeHud .hudPane--business .hudPane__kicker::before{
  background: linear-gradient(90deg, var(--hud-business), rgba(255,255,255,.10));
}

/* reusable inner cards/rows */
#bridgeHud .hudRow,
#bridgeHud .hudCard,
#bridgeHud .hudPanel{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.022);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  margin: 0 0 10px 0;
}

#bridgeHud .hudRow{
  display: block;
  text-decoration: none;
  padding: 12px;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    filter .16s ease;
}

#bridgeHud .hudCard,
#bridgeHud .hudPanel{
  padding: 12px;
}

#bridgeHud .hudRow__title,
#bridgeHud .hudCard__title,
#bridgeHud .hudPanel__title{
  font-weight: 900;
  font-size: 13px;
  line-height: 1.12;
  letter-spacing: .01em;
  color: rgba(255,255,255,.96);
}

#bridgeHud .hudRow__desc,
#bridgeHud .hudCard__desc,
#bridgeHud .hudPanel__desc{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.38;
  color: var(--hud-muted);
}

#bridgeHud .hudCard__sub,
#bridgeHud .hudPanel__sub{
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--hud-muted);
}

#bridgeHud .hudCard__balance{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
}

#bridgeHud .hudCard__balanceNum{
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  color: rgba(255,255,255,.98);
}

#bridgeHud .hudCard__balanceLabel{
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.64);
}

#bridgeHud .hudPane__ctaRow{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 6px;
}

#bridgeHud .hudPane__hint{
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hud-muted-2);
  flex: 0 0 auto;
}

/* =========================================================
   FOOTER
   2 zones:
   1) actions
   2) bottom edge line
   ========================================================= */

#bridgeHud .bridgeHud__footer{
  min-height: 0;
  display: flex;
  align-items: end;
}

#bridgeHud .bridgeHud__footerMain,
#bridgeHud .bridgeHud__bottomRail{
  width: 100%;
}

#bridgeHud .bridgeHud__footerMain{
  min-height: var(--hud-footer-main-h);
  border-top: 1px solid rgba(255,255,255,.05);
  background:
    linear-gradient(180deg, rgba(8,10,16,.08), rgba(8,10,16,.42));
  backdrop-filter: blur(10px);
  border-radius: 18px 18px 0 0;
}

#bridgeHud .bridgeHud__footerMainInner,
#bridgeHud .bridgeHud__bottomRailInner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 8px 0 0 0;
}

#bridgeHud .hudQuick{
  min-width: 0;
  padding: 0;
}

#bridgeHud .hudAccount{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bridgeHud .hudAccount__label{
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,.72);
}

#bridgeHud .hudAccount__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#bridgeHud .bridgeHud__bottomline,
#bridgeHud .bridgeHud__bottomRail{
  min-height: var(--hud-footer-edge-h);
  border-top: 1px solid rgba(255,255,255,.07);
  opacity: .95;
}

#bridgeHud .bridgeHud__footNote{
  display: none;
}

/* =========================================================
   OPTIONAL TRAY
   ========================================================= */

#bridgeHud .bridgeHud__tray{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(12,11,10,.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  max-height: min(54vh, 520px);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}

#bridgeHud .bridgeHud__tray.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#bridgeHud .bridgeHud__trayBar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

#bridgeHud .bridgeHud__trayTitle{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .88;
}

#bridgeHud .bridgeHud__trayClose{
  width: 38px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}

#bridgeHud .bridgeHud__trayBody{
  padding: 12px;
  overflow: auto;
  max-height: calc(min(54vh, 520px) - 52px);
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   SCROLLBARS
   ========================================================= */

#bridgeHud,
#bridgeHud .bridgeHud__panel,
#bridgeHud .hudPane__scroll{
  overscroll-behavior: contain;
}

#bridgeHud .hudPane__scroll{
  scrollbar-width: none;
}

#bridgeHud .hudPane__scroll::-webkit-scrollbar{
  width: 0;
  height: 0;
}

@media (hover:hover){
  #bridgeHud .hudPane__scroll:hover{
    scrollbar-width: thin;
  }

  #bridgeHud .hudPane__scroll:hover::-webkit-scrollbar{
    width: 10px;
  }

  #bridgeHud .hudPane__scroll:hover::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.12);
    border-radius: 999px;
  }
}

/* =========================================================
   BRAND CHIP
   ========================================================= */

.topbar a[aria-label*="Pattern"],
.topbar a[title*="Pattern"],
.topbar a[href*="patternandedge"],
.topbar-brand,
.brand-chip{
  color: var(--pe-brand-ink) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18)),
    linear-gradient(180deg, var(--pe-brand-1), var(--pe-brand-2)) !important;
  border: 1px solid var(--pe-brand-border) !important;
}

/* =========================================================
   PANE CONTENT HARD RESET
   ========================================================= */

#bridgeHud .hudPane__scroll > *{
  flex: 0 0 auto;
}

#bridgeHud .hudRow,
#bridgeHud .hudCard,
#bridgeHud .hudPanel,
#bridgeHud .hudPane__hint,
#bridgeHud .hudPane__kicker,
#bridgeHud .hudPane__ctaRow{
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

#bridgeHud .hudRow,
#bridgeHud .hudCard,
#bridgeHud .hudPanel{
  display: block !important;
  padding: 14px !important;
}

#bridgeHud .hudRow__title,
#bridgeHud .hudCard__title,
#bridgeHud .hudPanel__title{
  display: block !important;
  margin: 0 0 6px 0 !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  white-space: normal !important;
}

#bridgeHud .hudRow__desc,
#bridgeHud .hudCard__desc,
#bridgeHud .hudPanel__desc,
#bridgeHud .hudCard__sub,
#bridgeHud .hudPanel__sub{
  display: block !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
}

#bridgeHud .hudPane__ctaRow{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  margin-bottom: 6px !important;
}

#bridgeHud .hudPane__ctaRow .btn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  width: auto !important;
}

#bridgeHud .hudCard__balance{
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

#bridgeHud .hudCard__balanceNum{
  display: inline-block !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

#bridgeHud .hudCard__balanceLabel{
  display: inline-block !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

#bridgeHud .hudPane__hint{
  margin-top: auto !important;
  padding-top: 10px !important;
}

#bridgeHud .hudPane a,
#bridgeHud .hudPane div,
#bridgeHud .hudPane span{
  max-width: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px){
  #bridgeHud .bridgeHud__bodyTop{
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #bridgeHud .hudCluster--right{
    justify-content: flex-start;
  }
}

@media (max-width: 1100px){
  #bridgeHud .bridgeHud__bodyGrid{
    grid-template-columns: 1fr;
  }

  #bridgeHud .hudPane{
    height: auto;
  }

  #bridgeHud .hudPane__scroll{
    height: auto;
    min-height: 220px;
  }

  #bridgeHud .bridgeHud__footerMainInner,
  #bridgeHud .bridgeHud__bottomRailInner{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 760px){
  :root{
    --hud-shell-inset: 6px;
    --hud-shell-pad-x: 10px;
    --hud-shell-pad-y: 6px;
    --hud-hero-h: 92px;
  }

  #bridgeHud .bridgeHud__panel{
    border-radius: 22px;
  }

  #bridgeHud .bridgeHud__panel::before{
    inset: 6px;
    border-radius: 16px;
  }

  #bridgeHud .bridgeHud__heroCenter{
    padding: 8px 48px 6px;
  }

  #bridgeHud .bridgeHud__heroTitle{
    font-size: clamp(22px, 7vw, 30px);
  }

  #bridgeHud .bridgeHud__close{
    width: 36px;
    height: 36px;
  }

  #bridgeHud .bridgeHud__close span{
    font-size: 20px;
  }

  #bridgeHud .hudBand{
    min-height: 46px;
    padding: 0 14px;
  }

  #bridgeHud .credit-pack{
    min-width: 68px;
  }

  #bridgeHud .credit-pack .btn__face{
    padding: 0 8px;
    gap: 6px;
  }

  #bridgeHud .credit-pack__coin{
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  #bridgeHud .credit-pack__num{
    font-size: 11.5px;
  }
}

@media (max-width: 560px){
  #bridgeHud .hudCluster--left{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #bridgeHud .hudCluster--left .hudAnchor:last-child,
  #bridgeHud .hudCluster--left .hudBtn:last-child{
    grid-column: 1 / -1;
  }

  #bridgeHud .hudCluster--right{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #bridgeHud .hudQuick__row--packs{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #bridgeHud .credit-pack{
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  #bridgeHud .bridgeHud__heroVideo{
    display: none;
  }

  #bridgeHud .hudRow,
  #bridgeHud .hudAnchor,
  #bridgeHud .hudBtn,
  #bridgeHud .bridgeHud__tray{
    transition: none;
  }
}
#bridgeHud .bridgeHud__bodyShell{
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: var(--hud-gap-inner);
}

#bridgeHud .bridgeHud__bodyUtility{
  min-height: 0;
}

#bridgeHud .bridgeHud__bodySpacer{
  min-height: 0;
}

#bridgeHud .hudControls{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

#bridgeHud .hudControls__label{
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
}
:root{
  --hud-shell-inset: 8px;
  --hud-shell-pad-x: 12px;
  --hud-shell-pad-y: 4px;
  --hud-gap-outer: 6px;
  --hud-gap-inner: 10px;
  --hud-hero-h: 96px;
  --hud-footer-main-h: 58px;
  --hud-footer-edge-h: 6px;
}

#bridgeHud .bridgeHud__panel{
  position: fixed;
  inset: var(--hud-shell-inset);
  display: grid;
  grid-template-rows: var(--hud-hero-h) minmax(0, 1fr) auto var(--hud-footer-edge-h);
  gap: var(--hud-gap-outer);
  padding: var(--hud-shell-pad-y) var(--hud-shell-pad-x);
  overflow: hidden;
}

#bridgeHud .bridgeHud__hero{
  grid-row: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  z-index: 2;
}

#bridgeHud .bridgeHud__heroInner{
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--hud-radius-lg);
}

#bridgeHud .bridgeHud__body{
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

#bridgeHud .bridgeHud__bodyShell{
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--hud-gap-inner);
}

#bridgeHud .bridgeHud__bodyTop{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  min-height: 0;
}

#bridgeHud .bridgeHud__bodyGrid{
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

#bridgeHud .hudPane{
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
}

#bridgeHud .hudPane__scroll{
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

#bridgeHud .bridgeHud__footer{
  grid-row: 3;
  min-height: 0;
  position: relative;
  z-index: 2;
}

#bridgeHud .bridgeHud__bottomline{
  grid-row: 4;
  min-height: var(--hud-footer-edge-h);
  position: relative;
  z-index: 2;
}