:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b12;
  color: #eef3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, #243b6b 0, transparent 34rem), #080b12;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  background: #202938;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { cursor: not-allowed; opacity: 0.45; }
button.accent { background: #ff7a1a; color: #150a03; }

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.eyebrow { margin: 0 0 0.25rem; color: #ffb36c; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 0.95; }
.subtext { color: #aeb9cc; max-width: 44rem; }
.actions, .manual { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.top-scoreboard { margin-bottom: 1rem; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; }
.viewer-card, .panel { background: rgba(13, 18, 29, 0.86); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 1.2rem; padding: 1rem; box-shadow: 0 1.25rem 5rem rgba(0, 0, 0, 0.35); }
.video-wrap { position: relative; overflow: hidden; border-radius: 0.9rem; background: #000; aspect-ratio: 16 / 9; }
video { width: 100%; height: 100%; object-fit: cover; display: block; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hoop-box { position: absolute; left: 42%; top: 24%; width: 16%; height: 10%; border: 3px solid #ff7a1a; border-radius: 999px; box-shadow: 0 0 0 999rem rgba(255, 122, 26, 0.03); }
.calibration { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
label { display: grid; gap: 0.35rem; color: #cbd5e1; font-size: 0.9rem; }
label.check { align-items: center; display: flex; gap: 0.5rem; }
input { width: 100%; accent-color: #ff7a1a; }
label.check input { width: auto; }
.status { color: #aeb9cc; margin-bottom: 1rem; min-height: 2.8rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stats.compact { grid-template-columns: repeat(4, 1fr); }
.stats div { background: #121a2a; border-radius: 1rem; padding: 1rem; }
.stats.compact div { padding: 0.55rem 0.45rem; text-align: center; }
.stats span { display: block; font-size: 2rem; font-weight: 900; }
.stats.compact span { font-size: clamp(1.15rem, 7vw, 1.75rem); }
.stats small { color: #aeb9cc; }
.stats.compact small { font-size: 0.72rem; }
h2 { margin: 1.25rem 0 0.7rem; font-size: 1rem; }
.shot-log { margin: 0; padding-left: 1.25rem; color: #d7deea; }
.shot-log li { margin: 0.35rem 0; }

@media (max-width: 900px) {
  .hero { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .calibration { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.compact { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
}
