:root {
  color-scheme: light dark;
  --bg: #17181c;
  --fg: #e8e6e1;
  --muted: #9a9790;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

.sphere-wrap {
  width: min(60vw, 260px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sphere {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #444;
  transition: background-color 1.2s ease;
  animation: breathe 4s ease-in-out infinite;
  animation-duration: var(--pulse-seconds, 4s);
  box-shadow: 0 0 60px 10px currentColor;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.94); filter: brightness(0.85); }
  50% { transform: scale(1.03); filter: brightness(1.1); }
}

.readout {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
}

.readout dt { color: var(--muted); text-align: right; }
.readout dd { margin: 0; font-weight: 600; }

.status { color: var(--muted); font-size: 0.85rem; margin: 0; }
