/* Hydra Prime — Cyberpunk 3035 HUD layer */
:root {
  --hp-void: #06060b;
  --hp-void-deep: #030308;
  --hp-glass: rgba(14, 14, 22, 0.82);
  --hp-glass-border: rgba(66, 232, 255, 0.14);
  --hp-cyan: #42e8ff;
  --hp-blue: #5b8cff;
  --hp-mag: #c47bff;
  --hp-success: #45e89a;
  --hp-text: #e8edf5;
  --hp-muted: #8b95a8;
  --hp-radius: 14px;
}

@keyframes hp-holo-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(66, 232, 255, 0.12), inset 0 0 20px rgba(66, 232, 255, 0.03); }
  50% { box-shadow: 0 0 28px rgba(66, 232, 255, 0.22), inset 0 0 32px rgba(196, 123, 255, 0.05); }
}

@keyframes hp-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.35; }
  90% { opacity: 0.35; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes hp-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes hp-live-breathe {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 4px rgba(69, 232, 154, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(69, 232, 154, 0.85)); }
}

@keyframes hp-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 0, 0 24px; }
}

body.state-muted .grid-bg {
  background:
    linear-gradient(rgba(66, 232, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 255, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(66, 232, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 90%, rgba(196, 123, 255, 0.07), transparent),
    linear-gradient(180deg, var(--hp-void) 0%, var(--hp-void-deep) 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%;
  animation: hp-grid-drift 24s linear infinite;
}

body.state-muted::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(66, 232, 255, 0.04) 48%,
    transparent 52%,
    transparent 100%
  );
  animation: hp-scan 8s linear infinite;
}

.hp-era-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--hp-mag);
  text-transform: uppercase;
}

.hp-value-strip {
  position: relative;
  margin: 0.5rem 0 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-glass-border);
  background: var(--hp-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: hp-holo-pulse 3.2s ease-in-out infinite;
  overflow: hidden;
}

.hp-value-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(66, 232, 255, 0.06) 45%,
    rgba(196, 123, 255, 0.08) 55%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: hp-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.hp-value-strip.hidden { display: none; }

.hp-value-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.hp-value-amount {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--hp-cyan), var(--hp-blue), var(--hp-mag));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hp-shimmer 4s linear infinite;
}

.hp-value-period {
  font-size: 0.68rem;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hp-value-breakdown {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  position: relative;
  z-index: 1;
}

.hp-value-breakdown.open { display: block; }

.hp-value-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--hp-text);
  padding: 0.25rem 0;
}

.hp-value-toggle {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--hp-blue);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.slash-menu {
  border: 1px solid var(--hp-glass-border);
  background: rgba(6, 6, 11, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.slash-item:hover {
  background: rgba(66, 232, 255, 0.1);
  border-left: 2px solid var(--hp-cyan);
}

.owner-ops-strip {
  backdrop-filter: blur(18px);
  background: rgba(14, 14, 22, 0.88);
  border: 1px solid var(--hp-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: hp-holo-pulse 3.6s ease-in-out infinite;
}

.owner-ops-tile.ok {
  animation: hp-live-breathe 2s ease-in-out infinite;
}

.owner-ops-head h3 {
  color: var(--hp-cyan);
  text-shadow: 0 0 20px rgba(66, 232, 255, 0.25);
}
