/* HUD 层：顶部状态栏 */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 3vw, 34px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hud.dimmed {
  opacity: 0;
  transform: translateY(-14px);
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #c8e8ff;
  text-shadow: 0 0 16px rgba(84, 230, 255, 0.35);
}

.brand .sub {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(160, 200, 255, 0.42);
}

.hex-dot {
  width: 10px;
  height: 11px;
  background: linear-gradient(160deg, #7fe9ff, #a06bff);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 12px rgba(84, 230, 255, 0.9);
}

.chip {
  align-self: flex-start;
  max-width: min(46vw, 420px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(160, 215, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(10, 20, 40, 0.45);
}

.hud-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eaf7ff;
  text-shadow: 0 0 20px rgba(84, 230, 255, 0.5), 0 0 46px rgba(84, 230, 255, 0.22);
  line-height: 1.05;
}

.timer .ms {
  font-size: 0.52em;
  color: rgba(150, 220, 255, 0.55);
  margin-left: 2px;
}

.progress {
  width: clamp(120px, 20vw, 260px);
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(120, 190, 255, 0.14);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #54e6ff, #a06bff);
  box-shadow: 0 0 14px rgba(84, 230, 255, 0.85);
  transition: width 0.18s ease;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
}

.stat { text-align: right; }

.stat label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(160, 200, 255, 0.45);
  margin-bottom: 2px;
}

.stat b {
  font-size: clamp(14px, 1.5vw, 19px);
  font-variant-numeric: tabular-nums;
  color: #dff2ff;
  font-weight: 700;
}

.stat.combo b {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.55);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 22, 44, 0.6);
  color: #cfe9ff;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  transition: 0.2s;
}

.icon-btn:hover {
  border-color: rgba(120, 230, 255, 0.6);
  background: rgba(30, 60, 110, 0.7);
  box-shadow: 0 0 20px rgba(84, 230, 255, 0.25);
}

.icon-btn.off { color: rgba(160, 190, 255, 0.28); }

@media (max-width: 760px) {
  .hud { padding: 12px 14px; gap: 8px; }
  .hud-left { display: none; }
  .hud-mid { align-items: flex-start; }
  .hud-right { gap: 8px; }
  .stat label { font-size: 8px; letter-spacing: 0.12em; margin-bottom: 1px; }
  .stat b { font-size: 13px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
}
