:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.10), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(16, 185, 129, 0.08), transparent 45%),
    linear-gradient(160deg, #0b1120 0%, #0f172a 55%, #0b1120 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.font-mono, pre, input {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

/* pulsing live dot */
.pulse-dot {
  animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(34,211,238,0.9); }
  50% { opacity: 0.4; text-shadow: 0 0 2px rgba(34,211,238,0.3); }
}

/* handshake bob */
.handshake {
  display: inline-block;
  animation: shake 0.9s ease-in-out infinite;
}
@keyframes shake {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-4px); }
}

/* card entrance */
.fade-in > * {
  animation: rise 0.45s ease both;
}
.fade-in > *:nth-child(1) { animation-delay: 0.00s; }
.fade-in > *:nth-child(2) { animation-delay: 0.06s; }
.fade-in > *:nth-child(3) { animation-delay: 0.12s; }
.fade-in > *:nth-child(4) { animation-delay: 0.18s; }
.fade-in > *:nth-child(5) { animation-delay: 0.24s; }
.fade-in > *:nth-child(6) { animation-delay: 0.30s; }
.fade-in > *:nth-child(7) { animation-delay: 0.36s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-glow {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card-glow:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, 0.25);
}

.run-btn:not(:disabled):hover {
  box-shadow: 0 0 20px -4px rgba(34, 211, 238, 0.7);
}

.gauge-arc {
  transition: stroke-dasharray 1s ease-out;
}

/* scrollbar */
pre::-webkit-scrollbar { height: 8px; width: 8px; }
pre::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
pre::-webkit-scrollbar-track { background: transparent; }

::selection { background: rgba(34, 211, 238, 0.3); }