:root{
  --bg-1: #0f1724;
  --bg-2: #0b1220;
  --glass: rgba(255,255,255,0.06);
  --accent: linear-gradient(135deg,#6ee7b7,#3b82f6);
  --muted: rgba(255,255,255,0.65);
  --danger: #ff6b6b;
}

*{box-sizing:border-box}
html,body,#app{height:100%}
body{
  margin:0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #000000;
  color: #fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.app{
  width:100%;
  max-width:920px;
  background: rgba(255,255,255,0.04);
  border-radius:18px;
  padding:28px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  backdrop-filter: blur(8px) saturate(1.1);
  transform: translateY(10px);
  opacity:0;
  animation:cardIn .6s ease forwards;
}

.brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.brand h1{margin:0;font-weight:600;letter-spacing:0.6px}
.controls-top{display:flex;gap:12px;align-items:center}

.stage{display:flex;flex-direction:column;align-items:center;gap:18px}
.display{padding:20px 28px;border-radius:14px;background:var(--glass);box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);width:100%;text-align:center}
#time{font-variation-settings: 'wght' 700;font-size: clamp(2rem, 6vw, 5rem);font-weight:700;letter-spacing:3px}

@keyframes cardIn{to{transform:none;opacity:1}}

.buttons{display:flex;gap:12px;align-items:center}
.btn{padding:12px 18px;border-radius:12px;border:0;background:transparent;color:var(--muted);font-weight:600;cursor:pointer;transition:transform .12s ease, box-shadow .12s ease, background .12s ease;outline:none}
.btn:disabled{opacity:.4;cursor:not-allowed}
.btn:active{transform:translateY(2px)}
.btn.start{background:linear-gradient(90deg,#22c55e,#16a34a);color:white;box-shadow:0 6px 18px rgba(16,185,129,0.14)}
.btn.pause{background:linear-gradient(90deg,#fb923c,#f97316);color:white;box-shadow:0 6px 18px rgba(249,115,22,0.12)}
.btn.reset{background:linear-gradient(90deg,#ff7b7b,#ff4d4d);color:white;box-shadow:0 6px 18px rgba(255,77,77,0.12)}
.btn.lap{background:linear-gradient(90deg,#60a5fa,#3b82f6);color:white;box-shadow:0 6px 18px rgba(59,130,246,0.08)}

.laps{margin-top:18px}
.laps h2{margin:0 0 8px 0;font-size:14px;color:var(--muted)}
#lapsList{list-style:none;padding:0;margin:0;max-height:260px;overflow:auto;display:flex;flex-direction:column-reverse;gap:8px}
.lap-item{display:flex;justify-content:space-between;gap:12px;padding:12px;border-radius:10px;background:rgba(255,255,255,0.03);align-items:center;opacity:0;transform:translateY(10px);animation:fadeInLap .32s forwards}
.lap-meta{font-size:13px;color:var(--muted)}
.lap-time{font-weight:700}

@keyframes fadeInLap{to{opacity:1;transform:none}}

/* Responsive */
@media (max-width:600px){
  .app{padding:18px}
  .brand{flex-direction:column;align-items:flex-start;gap:12px}
  .buttons{width:100%;justify-content:space-between}
  .buttons .btn{flex:1;margin:0 6px}
}

/* Focus and accessibility */
.btn:focus{box-shadow:0 0 0 3px rgba(99,102,241,0.18)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Theme variants removed; app uses a single dark theme by default */
