/*
* @Author: kingpoolee
* @Date:   2026-07-28 07:54:05
* @Last Modified by:   kingpoolee
* @Last Modified time: 2026-07-28 07:58:00
*/

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none}
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
}
.container {
  text-align: center;
  padding: 2rem;
}

#display {
  user-select: none;
}

.timer-display {
  font-size: 4rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #38bdf8;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
  margin-bottom: 0.5rem;
}
.timer-display .ms {
  font-size: 2.5rem;
  color: #94a3b8;
}
.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  letter-spacing: 0.02em;
}
button:active { transform: scale(0.95); }
.btn-start { background: #22c55e; color: white; }
.btn-start:hover { background: #16a34a; }
.btn-pause { background: #f59e0b; color: white; }
.btn-pause:hover { background: #d97706; }
.btn-reset { background: #ef4444; color: white; }
.btn-reset:hover { background: #dc2626; }
.btn-lap { background: #6366f1; color: white; }
.btn-lap:hover { background: #4f46e5; }
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.laps {
  max-height: 300px;
  overflow-y: auto;
  width: 320px;
  margin: 0 auto;
}
.lap-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #1e293b;
  font-variant-numeric: tabular-nums;
}
.lap-item:nth-child(odd) { background: rgba(255,255,255,0.02); }
.lap-index { color: #64748b; }
.lap-time { color: #cbd5e1; }
.lap-diff { color: #38bdf8; font-size: 0.85rem; }
h2 {
  color: #64748b;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}