/* ═══════════════════════════════════════════
   HUD, XP BAR, HEARTS, TIMER, STREAK, FEEDBACK
═══════════════════════════════════════════ */

/* ─── TIMER BAR ───────────────────────────── */
.timer-bar-wrap {
  position: relative;
  height: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
}
.timer-bar-fill {
  height: 100%;
  background: var(--mc-emerald);
  transition: width 1s linear, background 0.3s;
}
.timer-bar-fill.timer-warn { background: var(--mc-redstone); }
.timer-label {
  position: absolute;
  right: 6px;
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: #fff;
  line-height: 1;
}

/* ─── HUD BAR ─────────────────────────────── */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A1A1A;
  border-bottom: 4px solid var(--mc-border);
  padding: 0.5rem 0.8rem;
  flex-shrink: 0;
  gap: 0.5rem;
}

.hud-left { display: flex; align-items: center; gap: 0.6rem; }
.hud-level { display: flex; flex-direction: column; align-items: center; }
.hud-label { font-size: 0.48rem; color: var(--mc-text-dim); }
.hud-value { font-size: 0.7rem; color: var(--mc-gold); }

.hud-xp-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 100px; }
.xp-bar-bg {
  height: 8px;
  background: #111;
  border: 2px solid #333;
  position: relative;
}
.xp-bar-fill {
  height: 100%;
  background: var(--mc-emerald);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 4px var(--mc-emerald);
}
.xp-label { font-size: 0.48rem; color: var(--mc-emerald); }

.hud-center { display: flex; flex-direction: column; align-items: center; }
.hud-streak { font-size: 0.8rem; color: var(--mc-gold); }
.hud-streak-label { font-family: 'VT323', monospace; font-size: 0.75rem; color: var(--mc-text-dim); line-height: 1; }

.hud-right { display: flex; align-items: center; gap: 0.5rem; }
.hearts { display: flex; gap: 2px; font-size: 0.9rem; }

/* ─── FEEDBACK OVERLAY ────────────────────── */
.feedback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.feedback-box {
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.feedback-icon { font-size: 3rem; }
.feedback-msg  { font-size: 0.65rem; }
.feedback-xp   { font-family: var(--font-vt); font-size: 1.4rem; color: var(--mc-emerald); }
.feedback-explain {
  font-family: var(--font-vt);
  font-size: 1.1rem;
  color: var(--mc-text-dim);
  line-height: 1.4;
  text-align: left;
}

/* ─── STREAK BANNER ───────────────────────── */
.streak-banner {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  text-align: center;
  padding: 0.35rem 1rem;
  margin: 0.4rem auto 0;
  max-width: 340px;
  border-radius: 6px;
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #ffb74d;
}
.streak-banner.streak-milestone {
  background: rgba(255, 213, 79, 0.18);
  border-color: rgba(255, 213, 79, 0.5);
  color: #ffd54f;
  animation: streakPulse 2s ease-in-out infinite;
}
.streak-mult { color: #69f0ae; font-weight: bold; }
@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,213,79,0); }
  50%       { box-shadow: 0 0 10px rgba(255,213,79,0.4); }
}
