:root {
  --bg: #0d0f14;
  --card: #1c2030;
  --border: rgba(255,255,255,0.07);
  --text: #f0f2f7;
  --muted: #6b7280;
  --accent: #3b82f6;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --orange: #f97316;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}
.header { text-align: center; margin-bottom: 32px; }
.header h1 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.header .brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.brand span { color: var(--accent); }

.gauge-wrap {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto 48px;
}
.gauge-svg { width: 100%; height: 100%; overflow: visible; }
.speed-display {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.speed-num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s;
}
.speed-unit {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
}

.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 12px;
}
.metric-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.metric-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.metric-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.server-info {
  text-align: center;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.server-info strong { color: var(--text); }
.server-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ip-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.btn-wrap { text-align: center; }
.start-btn {
  width: 120px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  background: rgba(59,130,246,0.1);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.start-btn:hover {
  background: rgba(59,130,246,0.2);
  border-color: #60a5fa;
  transform: scale(1.04);
}
.start-btn:active { transform: scale(0.96); }
.start-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.status-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  min-height: 18px;
  letter-spacing: 0.03em;
}

.phase-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.phase-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.phase-dot .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.phase-dot.active .dot { background: var(--accent); }
.phase-dot.done .dot   { background: var(--green); }

.metrics-row.two { grid-template-columns: 1fr 1fr; }
.metrics-row.narrow { max-width: 240px; }
.metrics-row:last-of-type { margin-bottom: 28px; }
.metric-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 1.2em;
}
.dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: dotBounce 1s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}
@keyframes dotFade {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .dots i { animation-name: dotFade; }
}
