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

body {
  font-family: system-ui, sans-serif;
  background: #0f172a;
  color: #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

main {
  text-align: center;
  padding: 2rem;
  width: 100%;
  max-width: 700px;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }

#status { color: #94a3b8; margin-bottom: 1.5rem; }

#results {
  margin-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: #1e293b;
  border: 1px solid #2d3148;
  border-radius: 10px;
  padding: 12px;
}

.metric span { font-size: 1.8rem; font-weight: 700; }
.metric small { display: block; color: #94a3b8; font-size: 0.75rem; }

.grade {
  background: #1e293b;
  border: 1px solid #2d3148;
  border-radius: 10px;
  padding: 12px;
  font-size: 2.5rem;
  font-weight: 900;
  color: #38bdf8;
}

#qoe-badges {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#btn-start {
  padding: .75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: .5rem;
  background: #0ea5e9;
  color: #fff;
  cursor: pointer;
}
#btn-start:hover { background: #38bdf8; }

#build-info {
  position: fixed;
  bottom: 8px;
  right: 10px;
  font-size: 0.68rem;
  font-family: monospace;
  color: #334155;
  pointer-events: none;
  user-select: none;
}
