.mw-hud{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.mw-hud__row{
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 12px 6px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.mw-hud__brand{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: .4px;
  font-size: 13px;
  white-space: nowrap;
}

.mw-hud__led{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7CFF00;
  box-shadow: 0 0 0 3px rgba(124,255,0,.12), 0 0 18px rgba(124,255,0,.25);
}

/* ====== STATS (updated for icon blocks) ====== */
.mw-hud__stats{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

/* Each "stat block" */
.mw-hud__stat{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  max-width: 100%;
}

.mw-hud__ico{
  font-size: 14px;
  line-height: 1;
  opacity: .92;
  transform: translateY(-.5px);
  flex: 0 0 auto;
}

/* Key/value */
.mw-hud__k{
  opacity: .78;
  font-weight: 800;
  letter-spacing: .25px;
}
.mw-hud__v{
  color: rgba(255,255,255,.92);
  font-weight: 950;
  letter-spacing: .25px;
}

/* Separator between blocks */
.mw-hud__sep{
  opacity: .45;
  margin: 0 6px;
}

/* If you still use the old green dot anywhere */
.mw-hud__targetDot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #7CFF00;
  box-shadow: 0 0 0 3px rgba(124,255,0,.10);
  display: inline-block;
  margin-right: 6px;
}

/* ====== ACTIONS ====== */
.mw-hud__actions{ display:flex; gap: 8px; align-items:center; }

.mw-hud__btn{
  width: 36px; height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 900;
}
.mw-hud__btn:hover{ background: rgba(255,255,255,.08); }

/* ====== MARQUEE ====== */
.mw-hud__marquee{
  border-top: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}

.mw-hud__track{
  --mw-duration: 32s;
  --mw-shift: 900px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 12px;
  animation: mwHudMarquee var(--mw-duration) linear infinite;
  will-change: transform;
}

@keyframes mwHudMarquee{
  from{ transform: translate3d(0,0,0); }
  to  { transform: translate3d(calc(var(--mw-shift) * -1),0,0); }
}

.mw-hud[data-paused] .mw-hud__track{ animation-play-state: paused; }

.mw-hud__group{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.mw-hud__item{
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 800;
}

/* ====== SETTINGS PANEL ====== */
.mw-hud__panel{
  position: absolute;
  right: 10px;
  top: calc(100% + 10px);
  width: min(460px, 94vw);
  background: rgba(0,0,0,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 25px 70px rgba(0,0,0,.55);
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .14s ease, transform .14s ease;
  z-index: 1000;
}
.mw-hud__panel.is-open{ display:block; opacity:1; transform: translateY(0); }
.mw-hud__panel[hidden]{ display:none !important; }

.mw-hud__panelHead{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  margin-bottom: 10px;
}
.mw-hud__panelTitle{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 13px;
}
.mw-hud__close{
  width: 34px; height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}

.mw-hud__panelRow{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
}
.mw-hud__range{ width: 100%; }

.mw-hud__speedVal{
  color: rgba(255,255,255,.85);
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 7px 10px;
  border-radius: 10px;
  min-width: 70px;
  text-align:center;
}

.mw-hud__presets{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}
.mw-hud__pill{
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}
.mw-hud__pill:hover{ background: rgba(255,255,255,.08); }

.mw-hud__hint{
  margin-top: 10px;
  color: rgba(255,255,255,.60);
  font-size: 12px;
  font-weight: 700;
}

/* Mobile: hide stats bar like before */
@media (max-width: 900px){
  .mw-hud__stats{ display:none; }
}
