*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent-dl: #38bdf8;
  --accent-ul: #a78bfa;
  --accent-btn: #3b82f6;
  --radius: 12px;
}

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

.container {
  width: 100%;
  max-width: 600px;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}
header h1 { font-size: 1.75rem; font-weight: 700; }
.subtitle { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--muted); }
.info-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

.gauge-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gauge {
  position: relative;
  width: 120px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gauge svg { width: 120px; height: 120px; }
.gauge-text {
  position: absolute;
  top: 38px;
  text-align: center;
}
.gauge-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gauge-unit { font-size: 0.75rem; color: var(--muted); display: block; }
.gauge-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

#gauge-dl .gauge-value { color: var(--accent-dl); }
#gauge-ul .gauge-value { color: var(--accent-ul); }

.btn-start {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent-btn);
  background: var(--card);
  color: var(--accent-btn);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-start:hover:not(:disabled) { background: var(--accent-btn); color: #fff; }
.btn-start:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--muted);
  border-top-color: var(--accent-btn);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-area { margin-bottom: 1rem; }
.progress-bar {
  height: 6px;
  background: var(--card);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent-btn);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}
.progress-label {
  font-size: 0.82rem;
  color: var(--muted);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2rem;
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .container { padding: 1rem; }
  .gauge-area { flex-direction: column; }
  .gauge { width: 100px; height: 120px; }
  .gauge svg { width: 100px; height: 100px; }
  .gauge-text { top: 32px; }
  .gauge-value { font-size: 1.3rem; }
}
