/* ---------------- HUD ---------------- */
.hud {
  padding: 0 12px;
}
.hud-row {
  display: flex;
  gap: 8px;
}
.lcd.synced .led {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.lcd {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--lcd);
  border: 2px solid #2b3324;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  font: 13px/1 var(--pixel);
  color: var(--lcd-ink);
  text-shadow: 0 0 8px rgba(196, 255, 106, 0.55);
}
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lcd-ink);
  box-shadow: 0 0 10px var(--lcd-ink);
  will-change: opacity;
  animation: led 2s steps(2) infinite;
}
@keyframes led {
  50% { opacity: 0.25; }
}
.lcd-text {
  white-space: nowrap;
  display: inline-block;
}
.lcd-xp {
  flex: 1;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(196, 255, 106, 0.18) 0 6px, transparent 6px 8px);
  position: relative;
  overflow: hidden;
}
.lcd-xp i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--lcd-ink) 0 6px, transparent 6px 8px);
  transition: width 1s var(--spring);
}
.lcd-streak {
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.6;
}
.lcd.lit .lcd-streak {
  filter: none;
  opacity: 1;
}

.tape {
  position: relative;
  height: 78px;
  margin: 6px -12px 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
/* The ends fade out with overlays on top (a mask over a strip you drag is re-masked every frame) */
.tape::before,
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  z-index: 2;
  pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.tape::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.tape-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}
.tape-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  transform-origin: 50% 85%;
  padding: 0 4px;
}
.tape-item b {
  font: 900 70px/0.86 var(--display);
  font-stretch: 62%;
  letter-spacing: -0.01em;
  color: var(--white);
}
.tape-item sup {
  font: 700 12px/1 var(--mono);
  padding: 4px 6px;
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  margin-top: 4px;
}
.tape-item[aria-selected="true"] sup {
  background: var(--stage);
  color: var(--stage-ink);
}
