:root {
  --bg: #050505;
  --muted: rgba(255,255,255,.34);
  --line: rgba(255,255,255,.12);
  --amber: #e7b65b;
  --amber-soft: rgba(231,182,91,.22);
  --red: #ff565d;
  --red-soft: rgba(255,86,93,.23);
  --green: #68e28b;
  --green-soft: rgba(104,226,139,.20);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.018), transparent 32%),
    var(--bg);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.top-rule {
  position: fixed;
  left: 3vw;
  right: 3vw;
  top: 5.5vh;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
}
.top-rule span {
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.68);
}

.statusbar {
  position: fixed;
  top: 4.35vh;
  right: 3vw;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  background: linear-gradient(90deg, transparent, var(--bg) 18%);
  color: rgba(255,255,255,.42);
  font-size: clamp(10px, .82vw, 14px);
  letter-spacing: .12em;
  z-index: 3;
}
.statusbar time { color: rgba(255,255,255,.68); }
.separator { width: 1px; height: 20px; background: rgba(255,255,255,.18); }
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 12px rgba(255,255,255,.08);
}
.health-dot.clear { background: var(--green); box-shadow: 0 0 14px rgba(104,226,139,.28); }
.health-dot.waiting { background: var(--amber); box-shadow: 0 0 14px rgba(231,182,91,.30); }
.health-dot.alert { background: var(--red); box-shadow: 0 0 14px rgba(255,86,93,.32); }
.health-dot.neutral { background: #676767; }

.content {
  position: fixed;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  width: min(900px, 74vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr);
  align-items: stretch;
  gap: 52px;
  z-index: 2;
}
.content.empty { display: none; }

.panel-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  font-size: 12px;
  letter-spacing: .34em;
}
.panel-title i { flex: 1; height: 1px; opacity: .5; }
.waiting .panel-title { color: var(--amber); }
.waiting .panel-title i { background: var(--amber); }
.alert .panel-title { color: var(--red); }
.alert .panel-title i { background: var(--red); }

.number-list {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  flex-wrap: wrap;
}
.number {
  min-width: 92px;
  position: relative;
  padding: 0 0 25px;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--amber);
  text-shadow: 0 0 22px rgba(231,182,91,.08);
}
.number::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, currentColor 0 38%, rgba(255,255,255,.11) 38% 100%);
}
.alert .number {
  color: var(--red);
  font-size: clamp(48px, 6vw, 88px);
  text-shadow: 0 0 28px rgba(255,86,93,.11);
}

.middle-divider {
  width: 1px;
  min-height: 160px;
  background: rgba(255,255,255,.18);
}

.waves {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 5vh;
  height: 43vh;
  opacity: .88;
  pointer-events: none;
}
.waves svg { width: 100%; height: 100%; overflow: visible; }
.wave { fill: none; stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.wave.ghost { stroke: rgba(255,255,255,.10); }
.wave.w2 { opacity: .72; }
.wave.w3 { opacity: .52; }
.wave.accent { stroke-width: 1.35; transition: stroke .45s ease, opacity .45s ease; }
.nodes circle { transition: fill .45s ease, filter .45s ease; }

.state-clear .accent { stroke: var(--green); opacity: .62; }
.state-clear .nodes circle { fill: var(--green); filter: drop-shadow(0 0 4px rgba(104,226,139,.25)); }
.state-waiting .accent { stroke: var(--amber); opacity: .70; }
.state-waiting .nodes circle { fill: var(--amber); filter: drop-shadow(0 0 4px rgba(231,182,91,.25)); }
.state-alert .accent.left { stroke: var(--amber); opacity: .62; }
.state-alert .accent.right { stroke: var(--red); opacity: .78; }
.state-alert .nodes circle { fill: var(--red); filter: drop-shadow(0 0 4px rgba(255,86,93,.28)); }

@media (max-width: 820px) {
  .statusbar { gap: 9px; }
  .content {
    width: 82vw;
    top: 34%;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .middle-divider { display: none; }
  .panel-title { margin-bottom: 18px; }
  .number-list { gap: 26px; }
  .waves { height: 38vh; }
}

