* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #0c0c0c;
  color: #e0e0e0;
  font-family: 'Segoe UI', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}
h1 {
  font-size: 2.4rem;
  text-shadow: 0 0 20px #ff4757;
  margin-bottom: 0.1em;
}
.subtitle {
  color: #888;
  margin-bottom: 1.5em;
}
.grid-panel {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 2em;
}
.card.small {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 15px;
  min-width: 140px;
  text-align: left;
}
.card.small .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #ff4757;
  display: block;
  margin-bottom: 4px;
}
.card.small .value {
  font-size: 1rem;
  font-weight: bold;
  word-break: break-all;
}
.glow-btn {
  background: linear-gradient(45deg, #ff4757, #ff6b81);
  border: none;
  color: white;
  padding: 14px 35px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 20px #ff4757aa;
  margin-bottom: 2em;
  transition: 0.2s;
}
.glow-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px #ff4757;
}
.glow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.speed-row {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}
.gauge-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 20px;
  width: 220px;
}
.gauge-svg {
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}
.bg-circle {
  fill: none;
  stroke: #2a2a2a;
  stroke-width: 10;
}
.progress-circle {
  fill: none;
  stroke: #ff4757;
  stroke-width: 10;
  stroke-dasharray: 326.7256; /* 2 * pi * 52 */
  stroke-dashoffset: 326.7256;
  transition: stroke-dashoffset 0.15s linear;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.gauge-speed {
  font-size: 1.6rem;
  fill: #fff;
  text-anchor: middle;
}
.gauge-unit {
  font-size: 0.8rem;
  fill: #aaa;
  text-anchor: middle;
}
.thread-info {
  font-size: 0.75rem;
  color: #888;
  margin-top: 5px;
}
.log-panel {
  color: #aaa;
  font-size: 0.9rem;
}