:root {
  --edith-cyan: #5cf0ff;
  --edith-cyan-dim: #1c7d94;
  --edith-blue: #0b1c2c;
  --edith-glow: rgba(92, 240, 255, 0.85);
  --edith-magenta: rgba(255, 70, 150, 0.6);
  --edith-red: #ff5a5a;
  --edith-amber: #ffb648;
  --bg: #01060c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--edith-cyan);
  font-family: "Rajdhani", system-ui, sans-serif;
  overflow: hidden;
  user-select: none;
}

/* Whole scene powers on like a projected hologram */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr minmax(280px, 340px);
  grid-template-areas:
    "top   top"
    "stage log"
    "ctl   ctl";
  gap: 14px;
  padding: 18px 22px;
  position: relative;
  animation: bootIn 1.4s ease-out both;
}
@keyframes bootIn {
  0% { opacity: 0; filter: brightness(2.4) blur(6px); }
  8% { opacity: 0.4; }
  12% { opacity: 0.08; }
  20% { opacity: 0.6; }
  26% { opacity: 0.2; }
  40% { opacity: 0.85; filter: brightness(1.3) blur(1px); }
  100% { opacity: 1; filter: none; }
}

/* ---------- Background ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(92, 240, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 240, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: drift 22s linear infinite;
  z-index: 0;
  -webkit-mask: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 80%);
  mask: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 80%);
}
@keyframes drift {
  to { background-position: 42px 42px; }
}
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Holographic projection light (from below) ---------- */
.projection {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 75% at 50% 118%, rgba(92, 240, 255, 0.18), transparent 60%);
  animation: projFlicker 5s ease-in-out infinite;
}
@keyframes projFlicker {
  0%, 100% { opacity: 0.95; }
  30% { opacity: 0.75; }
  50% { opacity: 0.55; }
  70% { opacity: 0.85; }
}

/* ---------- Scanlines across everything ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(92, 240, 255, 0.055) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
  animation: scanDrift 9s linear infinite;
  opacity: 0.6;
}
@keyframes scanDrift {
  to { background-position: 0 3px; }
}

/* Bright bar sweeping down the screen, like a refresh scan */
.holo-sweep {
  position: fixed;
  left: 0;
  right: 0;
  top: -220px;
  height: 220px;
  z-index: 29;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(92, 240, 255, 0.10) 45%,
    rgba(190, 250, 255, 0.22) 50%,
    rgba(92, 240, 255, 0.10) 55%,
    transparent
  );
  mix-blend-mode: screen;
  animation: sweepDown 7s linear infinite;
}
@keyframes sweepDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(120vh); }
}

/* Unstable-hologram flicker wash */
.holo-flicker {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 58%, rgba(92, 240, 255, 0.06), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 4s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.5; }
  6% { opacity: 0.3; }
  7% { opacity: 0.75; }
  8% { opacity: 0.4; }
  38% { opacity: 0.55; }
  39% { opacity: 0.25; }
  40% { opacity: 0.65; }
  72% { opacity: 0.5; }
  73% { opacity: 0.35; }
}

/* ---------- Floating data motes ---------- */
.motes {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.motes span {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--edith-cyan);
  box-shadow: 0 0 8px 2px var(--edith-glow);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-106vh) scale(1); opacity: 0; }
}
.motes span:nth-child(1) { left: 5%; animation-duration: 11s; animation-delay: 0s; }
.motes span:nth-child(2) { left: 11%; animation-duration: 14s; animation-delay: 2s; }
.motes span:nth-child(3) { left: 18%; animation-duration: 9s; animation-delay: 4s; }
.motes span:nth-child(4) { left: 24%; animation-duration: 13s; animation-delay: 1s; }
.motes span:nth-child(5) { left: 31%; animation-duration: 16s; animation-delay: 3s; }
.motes span:nth-child(6) { left: 37%; animation-duration: 10s; animation-delay: 6s; }
.motes span:nth-child(7) { left: 44%; animation-duration: 12s; animation-delay: 2.5s; }
.motes span:nth-child(8) { left: 50%; animation-duration: 15s; animation-delay: 5s; }
.motes span:nth-child(9) { left: 56%; animation-duration: 9.5s; animation-delay: 0.5s; }
.motes span:nth-child(10) { left: 63%; animation-duration: 13.5s; animation-delay: 3.5s; }
.motes span:nth-child(11) { left: 69%; animation-duration: 11.5s; animation-delay: 7s; }
.motes span:nth-child(12) { left: 76%; animation-duration: 10.5s; animation-delay: 1.5s; }
.motes span:nth-child(13) { left: 82%; animation-duration: 14.5s; animation-delay: 4.5s; }
.motes span:nth-child(14) { left: 88%; animation-duration: 12.5s; animation-delay: 6.5s; }
.motes span:nth-child(15) { left: 94%; animation-duration: 9.8s; animation-delay: 2.2s; }
.motes span:nth-child(16) { left: 15%; animation-duration: 17s; animation-delay: 8s; }
.motes span:nth-child(17) { left: 60%; animation-duration: 18s; animation-delay: 5.5s; }
.motes span:nth-child(18) { left: 85%; animation-duration: 16s; animation-delay: 9s; }

/* ---------- Glowing corner-bracket frame (reusable) ---------- */
.holo-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 3;
  --b: 2px;
  --l: 28px;
  background:
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 0 0 / var(--l) var(--b) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 0 0 / var(--b) var(--l) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 100% 0 / var(--l) var(--b) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 100% 0 / var(--b) var(--l) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 0 100% / var(--l) var(--b) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 0 100% / var(--b) var(--l) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 100% 100% / var(--l) var(--b) no-repeat,
    linear-gradient(var(--edith-cyan), var(--edith-cyan)) 100% 100% / var(--b) var(--l) no-repeat;
  filter: drop-shadow(0 0 5px var(--edith-glow));
  animation: cornerPulse 3.5s ease-in-out infinite;
}
@keyframes cornerPulse {
  50% { opacity: 0.55; }
}

/* ---------- Chromatic-split holo text ---------- */
.holo-text {
  text-shadow:
    0 0 14px var(--edith-glow),
    1.5px 0 var(--edith-magenta),
    -1.5px 0 rgba(92, 240, 255, 0.7);
  animation: holoText 5s infinite;
}
@keyframes holoText {
  0%, 100% { opacity: 1; transform: translateX(0); }
  46% { opacity: 0.9; }
  47% { opacity: 0.55; transform: translateX(1px); text-shadow: 0 0 10px var(--edith-glow), 3px 0 var(--edith-magenta), -3px 0 rgba(92, 240, 255, 0.8); }
  48% { opacity: 0.95; transform: translateX(-1px); }
  49% { opacity: 0.8; }
  50% { opacity: 1; transform: translateX(0); }
}

/* ---------- Top bar ---------- */
.hud-top {
  grid-area: top;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(92, 240, 255, 0.25);
  padding-bottom: 10px;
}
.brand-main {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 6px;
  text-shadow:
    0 0 16px var(--edith-glow),
    1.5px 0 var(--edith-magenta),
    -1.5px 0 rgba(92, 240, 255, 0.7);
  animation: holoText 5s infinite;
}
.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--edith-cyan-dim);
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(92, 240, 255, 0.4);
}
.status-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 14px;
  border: 1px solid rgba(92, 240, 255, 0.4);
  border-radius: 20px;
  background: rgba(92, 240, 255, 0.07);
  box-shadow: 0 0 16px rgba(92, 240, 255, 0.18), inset 0 0 12px rgba(92, 240, 255, 0.1);
  backdrop-filter: blur(3px);
}
.status-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--edith-cyan);
  box-shadow: 0 0 12px var(--edith-glow);
}
.status-pill[data-state="listening"] {
  border-color: var(--edith-amber);
  color: var(--edith-amber);
}
.status-pill[data-state="listening"] .dot {
  background: var(--edith-amber);
  box-shadow: 0 0 12px var(--edith-amber);
  animation: pulse 1s infinite;
}
.status-pill[data-state="thinking"] .dot,
.status-pill[data-state="speaking"] .dot {
  animation: pulse 0.7s infinite;
}
.status-pill[data-state="error"] {
  border-color: var(--edith-red);
  color: var(--edith-red);
}
.status-pill[data-state="error"] .dot {
  background: var(--edith-red);
  box-shadow: 0 0 12px var(--edith-red);
}
@keyframes pulse {
  50% { opacity: 0.3; }
}
.clockbox {
  text-align: right;
  line-height: 1.15;
}
.topdate {
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--edith-cyan);
  text-shadow: 0 0 8px var(--edith-glow);
}
.clock {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: #dffcff;
  text-shadow: 0 0 10px var(--edith-glow);
}

/* ---------- Stage / reactor ---------- */
.stage {
  grid-area: stage;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.reactor {
  position: relative;
  width: 340px;
  height: 340px;
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 30px rgba(92, 240, 255, 0.35));
  animation: hoverBob 6s ease-in-out infinite;
}
@keyframes hoverBob {
  50% { transform: translateY(-8px); }
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(92, 240, 255, 0.4);
}
.ring-outer {
  width: 340px;
  height: 340px;
  border-style: dashed;
  border-width: 2px;
  animation: spin 30s linear infinite;
  box-shadow: 0 0 20px rgba(92, 240, 255, 0.2), inset 0 0 20px rgba(92, 240, 255, 0.1);
}
.ring-mid {
  width: 260px;
  height: 260px;
  border-width: 2px;
  border-color: rgba(92, 240, 255, 0.6);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: spin 12s linear infinite reverse;
}
.ring-inner {
  width: 200px;
  height: 200px;
  border-color: rgba(92, 240, 255, 0.28);
  border-left-color: var(--edith-cyan);
  animation: spin 8s linear infinite;
}
.ticks {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(92, 240, 255, 0.55) 0deg 1deg,
    transparent 1deg 9deg
  );
  -webkit-mask: radial-gradient(circle, transparent 141px, #000 142px 150px, transparent 151px);
  mask: radial-gradient(circle, transparent 141px, #000 142px 150px, transparent 151px);
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.core {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(92, 240, 255, 0.22), rgba(11, 28, 44, 0.1) 70%);
  box-shadow: inset 0 0 50px rgba(92, 240, 255, 0.4), 0 0 80px rgba(92, 240, 255, 0.3);
  animation: coreHue 9s linear infinite;
}
@keyframes coreHue {
  50% { filter: hue-rotate(-18deg); }
}
.core-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--edith-cyan), transparent 70%);
  filter: blur(6px);
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease;
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  50% { opacity: 0.85; transform: scale(1.08); }
}
#viz {
  position: relative;
  z-index: 2;
}
.reactor.active .core-glow { opacity: 0.95; }
.reactor.active .ring { border-color: rgba(150, 245, 255, 0.8); }
.reactor.active { filter: drop-shadow(0 0 45px rgba(92, 240, 255, 0.6)); }
.scan-sweep {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(92, 240, 255, 0.35) 30deg, transparent 60deg);
  animation: spin 4s linear infinite;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.reactor.scanning .scan-sweep { opacity: 1; }
.caption {
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
  max-width: 640px;
  min-height: 52px;
  color: #e6feff;
  text-shadow: 0 0 12px rgba(92, 240, 255, 0.55), 1px 0 var(--edith-magenta), -1px 0 rgba(92, 240, 255, 0.5);
}

/* ---------- Log panel (holo glass) ---------- */
.log-panel {
  grid-area: log;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(92, 240, 255, 0.3);
  background: linear-gradient(180deg, rgba(8, 28, 44, 0.5), rgba(3, 14, 24, 0.4));
  border-radius: 10px;
  overflow: hidden;
  backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: inset 0 0 30px rgba(92, 240, 255, 0.08), 0 0 26px rgba(92, 240, 255, 0.16);
}
/* faint scanlines inside the panel */
.log-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(92, 240, 255, 0.05) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  z-index: 4;
}
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(92, 240, 255, 0.22);
  color: #bff6ff;
  text-shadow: 0 0 8px rgba(92, 240, 255, 0.5);
}
.log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  z-index: 5;
}
.log::-webkit-scrollbar { width: 6px; }
.log::-webkit-scrollbar-thumb {
  background: rgba(92, 240, 255, 0.4);
  border-radius: 3px;
}
.msg {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 92%;
  word-wrap: break-word;
  animation: msgIn 0.35s ease-out both;
}
@keyframes msgIn {
  0% { opacity: 0; transform: translateY(6px); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.msg .who {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 4px;
  opacity: 0.75;
}
.msg.user {
  align-self: flex-end;
  background: rgba(92, 240, 255, 0.14);
  border: 1px solid rgba(92, 240, 255, 0.35);
  color: #f0feff;
  box-shadow: 0 0 12px rgba(92, 240, 255, 0.15);
}
.msg.edith {
  align-self: flex-start;
  background: rgba(11, 28, 44, 0.6);
  border: 1px solid rgba(92, 240, 255, 0.22);
  color: #d8f4ff;
  box-shadow: 0 0 12px rgba(92, 240, 255, 0.1);
}
.msg.edith .who { color: var(--edith-cyan); text-shadow: 0 0 8px var(--edith-glow); }

/* ---------- Controls ---------- */
.controls {
  grid-area: ctl;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(92, 240, 255, 0.25);
  padding-top: 14px;
}
.ctl-btn {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--edith-cyan);
  background: rgba(92, 240, 255, 0.07);
  border: 1px solid rgba(92, 240, 255, 0.45);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 8px rgba(92, 240, 255, 0.4);
  box-shadow: inset 0 0 12px rgba(92, 240, 255, 0.08);
}
.ctl-btn:hover {
  background: rgba(92, 240, 255, 0.18);
  box-shadow: 0 0 18px rgba(92, 240, 255, 0.45), inset 0 0 14px rgba(92, 240, 255, 0.2);
}
.ctl-btn.primary {
  border-color: var(--edith-cyan);
  background: rgba(92, 240, 255, 0.13);
}
.ctl-btn.primary.recording {
  border-color: var(--edith-amber);
  color: var(--edith-amber);
  background: rgba(255, 182, 72, 0.14);
  box-shadow: 0 0 20px rgba(255, 182, 72, 0.5);
}
.ctl-btn .ico { font-size: 16px; }
.text-input {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 8px;
}
.text-input input {
  flex: 1;
  background: rgba(3, 14, 24, 0.6);
  border: 1px solid rgba(92, 240, 255, 0.35);
  border-radius: 8px;
  color: #f0feff;
  padding: 12px 14px;
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(3px);
}
.text-input input:focus {
  border-color: var(--edith-cyan);
  box-shadow: 0 0 14px rgba(92, 240, 255, 0.35), inset 0 0 10px rgba(92, 240, 255, 0.1);
}
.toggles {
  display: flex;
  gap: 18px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  color: #bff6ff;
}
.toggle input {
  accent-color: var(--edith-cyan);
  width: 16px;
  height: 16px;
}
.ghost-btn {
  background: none;
  border: 1px solid rgba(92, 240, 255, 0.35);
  color: #bff6ff;
  font-family: "Orbitron", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.ghost-btn:hover { background: rgba(92, 240, 255, 0.14); }

/* Respect users who get motion-sick */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 820px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "stage"
      "log"
      "ctl";
  }
  .log-panel { max-height: 26vh; }
  .reactor { width: 240px; height: 240px; }
  .ring-outer { width: 240px; height: 240px; }

  /* Phone: keep tasteful ambient decor in the corners, hide the widgets that
     would collide with the stacked content. */
  .hud-decor { display: block; }
  .d-alert, .d-readout, .d-compass, .d-pie, .d-datebox, .d-bars, .d-reticle {
    display: none;
  }
  .d-rings.tl { top: -80px; left: -80px; width: 190px; height: 190px; opacity: 0.5; }
  .d-rings.br { right: -70px; bottom: -70px; width: 170px; height: 170px; opacity: 0.4; }
  .d-radar { left: auto; right: 10px; bottom: 4px; width: 90px; height: 90px; opacity: 0.5; }
}

/* ============================================================
   JARVIS-style decorative widgets — pure ambiance, non-interactive.
   Sits behind the functional panels (z-index 1).
   ============================================================ */
.hud-decor {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hud-decor * { box-sizing: border-box; }

/* --- concentric dashed rings --- */
.d-rings { position: absolute; }
.d-rings.tl { top: -70px; left: -55px; width: 290px; height: 290px; }
.d-rings.br { right: -50px; bottom: -60px; width: 240px; height: 240px; opacity: 0.6; }
.d-rings .dr { position: absolute; border-radius: 50%; }
.d-rings .dr1 {
  inset: 0;
  border: 2px dashed rgba(92, 240, 255, 0.35);
  animation: spin 40s linear infinite;
}
.d-rings .dr2 {
  inset: 14%;
  border: 1px solid rgba(92, 240, 255, 0.5);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 18s linear infinite reverse;
}
.d-rings .dr3 {
  inset: 30%;
  border: 1px solid rgba(92, 240, 255, 0.3);
  border-left-color: var(--edith-cyan);
  box-shadow: 0 0 12px rgba(92, 240, 255, 0.2);
  animation: spin 10s linear infinite;
}
.d-cross { position: absolute; inset: 42%; }
.d-cross::before, .d-cross::after {
  content: "";
  position: absolute;
  background: rgba(92, 240, 255, 0.5);
  box-shadow: 0 0 6px var(--edith-glow);
}
.d-cross::before { left: 50%; top: -30px; width: 1px; height: 60px; transform: translateX(-50%); }
.d-cross::after { top: 50%; left: -30px; height: 1px; width: 60px; transform: translateY(-50%); }

/* --- red alert panel --- */
.d-alert {
  position: absolute;
  left: 20px;
  top: 33%;
  width: 178px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 70, 70, 0.7);
  background: rgba(45, 0, 0, 0.28);
  box-shadow: 0 0 16px rgba(255, 60, 60, 0.3), inset 0 0 12px rgba(255, 60, 60, 0.15);
  transform: skewY(-1.5deg);
}
.d-alert-h {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff6a6a;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.8);
  margin-bottom: 6px;
}
.d-alert-b { font-size: 11px; letter-spacing: 1px; line-height: 1.55; color: #ff9a9a; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* --- floating data readout --- */
.d-readout {
  position: absolute;
  left: 22px;
  top: 15%;
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.9;
  color: rgba(92, 240, 255, 0.75);
  text-shadow: 0 0 8px rgba(92, 240, 255, 0.5);
}
.d-readout b { color: #eafcff; }

/* --- hero compass dial --- */
.d-compass { position: absolute; top: 33%; left: 53%; width: 200px; height: 200px; opacity: 0.85; }
.d-compass span { position: absolute; border-radius: 50%; }
.dc-ring {
  inset: 0;
  border: 2px solid rgba(92, 240, 255, 0.5);
  box-shadow: inset 0 0 22px rgba(92, 240, 255, 0.2), 0 0 22px rgba(92, 240, 255, 0.25);
}
.dc-ticks {
  inset: 8px;
  background: repeating-conic-gradient(from 0deg, rgba(92, 240, 255, 0.5) 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 78px, #000 79px 90px, transparent 91px);
  mask: radial-gradient(circle, transparent 78px, #000 79px 90px, transparent 91px);
  animation: spin 50s linear infinite;
}
.dc-arc {
  inset: 16px;
  border: 3px solid transparent;
  border-top-color: #8fe6ff;
  border-right-color: #8fe6ff;
  filter: drop-shadow(0 0 6px var(--edith-glow));
  animation: spin 6s linear infinite;
}
.dc-arc2 {
  inset: 34px;
  border: 2px solid transparent;
  border-bottom-color: rgba(92, 240, 255, 0.7);
  animation: spin 9s linear infinite reverse;
}
.dc-core {
  inset: 44%;
  background: radial-gradient(circle, #bff6ff, transparent 70%);
  box-shadow: 0 0 16px var(--edith-glow);
}

/* --- donut pie gauge --- */
.d-pie {
  position: absolute;
  left: 3%;
  bottom: 15%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--edith-cyan) 0 32%, rgba(10, 26, 40, 0.55) 32% 100%);
  box-shadow: 0 0 18px rgba(92, 240, 255, 0.25), inset 0 0 0 2px rgba(92, 240, 255, 0.5);
  animation: spin 24s linear infinite;
}
.d-pie::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(92, 240, 255, 0.5);
}

/* --- date block --- */
.d-datebox { position: absolute; left: 12%; bottom: 10%; text-align: center; }
.dd-num {
  font-family: "Orbitron", sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: #eafcff;
  line-height: 1;
  text-shadow: 0 0 14px var(--edith-glow);
}
.dd-day { font-family: "Orbitron", sans-serif; font-size: 11px; letter-spacing: 4px; color: var(--edith-cyan); }

/* --- equalizer bars --- */
.d-bars { position: absolute; left: 3%; bottom: 7%; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.d-bars i {
  width: 5px;
  height: 30%;
  background: linear-gradient(to top, rgba(92, 240, 255, 0.2), var(--edith-cyan));
  box-shadow: 0 0 6px var(--edith-glow);
  animation: bar 1.4s ease-in-out infinite;
}
.d-bars i:nth-child(odd) { animation-delay: 0.2s; }
.d-bars i:nth-child(3n) { animation-delay: 0.5s; }
.d-bars i:nth-child(4n) { animation-delay: 0.35s; }
@keyframes bar { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* --- radar sweep --- */
.d-radar {
  position: absolute;
  left: 44%;
  bottom: 8%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid rgba(92, 240, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(92, 240, 255, 0.15);
  overflow: hidden;
}
.d-radar::before {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  border: 1px solid rgba(92, 240, 255, 0.3);
}
.d-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(92, 240, 255, 0.5), transparent 60deg);
  animation: spin 3s linear infinite;
}

/* --- red targeting reticle --- */
.d-reticle {
  position: absolute;
  left: 57%;
  top: 62%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 70, 70, 0.85);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 70, 0.9) 0 3px, transparent 4px);
  box-shadow: 0 0 14px rgba(255, 60, 60, 0.5), inset 0 0 8px rgba(255, 60, 60, 0.4);
  animation: pulse 1.5s ease-in-out infinite;
}
.d-reticle::before, .d-reticle::after {
  content: "";
  position: absolute;
  background: rgba(255, 70, 70, 0.85);
  box-shadow: 0 0 6px rgba(255, 60, 60, 0.6);
}
.d-reticle::before { left: 50%; top: -9px; width: 1px; height: calc(100% + 18px); transform: translateX(-50%); }
.d-reticle::after { top: 50%; left: -9px; height: 1px; width: calc(100% + 18px); transform: translateY(-50%); }
