*{margin:0;padding:0;box-sizing:border-box}:root{--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);--success-color: #4caf50;--danger-color: #f44336;--info-color: #2196f3;--warning-color: #ff9800}.stopwatch-app{min-height:100vh;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;transition:background-color .3s ease,color .3s ease}.stopwatch-app.light{background:var(--primary-gradient);color:#333}.stopwatch-app.dark{background:linear-gradient(135deg,#1a1a2e,#16213e);color:#eee}.stopwatch-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.header{display:flex;align-items:center;gap:2rem;margin-bottom:2rem;width:100%;justify-content:center}h1{font-size:3.5rem;color:#fff;text-shadow:3px 3px 6px rgba(0,0,0,.3);font-weight:700;letter-spacing:2px}.theme-toggle{background:#fff3;border:2px solid rgba(255,255,255,.4);color:#fff;padding:.8rem 1.2rem;font-size:1.5rem;border-radius:50%;cursor:pointer;transition:all .3s ease;width:4rem;height:4rem;display:flex;align-items:center;justify-content:center}.theme-toggle:hover{background:#ffffff4d;transform:scale(1.1) rotate(20deg);border-color:#fff9}.main-section{display:flex;flex-direction:column;align-items:center;gap:2rem;margin-bottom:2rem}.display-wrapper{position:relative}.display{background:#fff;color:#667eea;font-size:5rem;font-weight:700;padding:3rem 5rem;border-radius:25px;box-shadow:0 20px 60px #0006,inset 0 -5px 15px #0000001a;font-family:IBM Plex Mono,Courier New,monospace;letter-spacing:.15em;min-width:500px;text-align:center;position:relative;overflow:hidden;transition:all .2s ease}.display.running{animation:pulse-glow 1s ease-in-out infinite}@keyframes pulse-glow{0%,to{box-shadow:0 20px 60px #0006,inset 0 -5px 15px #0000001a}50%{box-shadow:0 20px 80px #667eea99,inset 0 -5px 15px #0000001a}}.pulse{position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(102,126,234,.3) 0%,transparent 70%);animation:pulse-ring 2s ease-out infinite}@keyframes pulse-ring{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}.stats{display:flex;gap:2rem;margin:1rem 0}.stat-item{display:flex;flex-direction:column;align-items:center;gap:.5rem;background:#ffffff26;padding:1.5rem 2rem;border-radius:15px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);color:#fff;min-width:150px;transition:all .3s ease}.stat-item:hover{background:#ffffff40;transform:translateY(-5px)}.stat-label{font-size:.9rem;opacity:.8;text-transform:uppercase;letter-spacing:1px}.stat-value{font-size:1.8rem;font-weight:700;font-family:IBM Plex Mono,Courier New,monospace}.buttons{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}.btn{padding:1.1rem 2.5rem;font-size:1.1rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .3s cubic-bezier(.34,1.56,.64,1);color:#fff;text-transform:uppercase;letter-spacing:1.5px;box-shadow:0 10px 25px #0000004d;position:relative;overflow:hidden;font-family:Segoe UI,sans-serif}.btn:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:#fff3;transition:left .3s ease}.btn:hover:before{left:100%}.btn-start{background:linear-gradient(135deg,#4caf50,#45a049)}.btn-start:hover:not(:disabled){transform:translateY(-3px) scale(1.05);box-shadow:0 15px 40px #4caf5066}.btn-start:active:not(:disabled){transform:translateY(-1px) scale(.98)}.btn-stop{background:linear-gradient(135deg,#f44336,#da190b)}.btn-stop:hover:not(:disabled){transform:translateY(-3px) scale(1.05);box-shadow:0 15px 40px #f4433666}.btn-stop:active:not(:disabled){transform:translateY(-1px) scale(.98)}.btn-lap{background:linear-gradient(135deg,#ff9800,#f57c00)}.btn-lap:hover:not(:disabled){transform:translateY(-3px) scale(1.05);box-shadow:0 15px 40px #ff980066}.btn-lap:active:not(:disabled){transform:translateY(-1px) scale(.98)}.btn-reset{background:linear-gradient(135deg,#2196f3,#0b7dda)}.btn-reset:hover:not(:disabled){transform:translateY(-3px) scale(1.05);box-shadow:0 15px 40px #2196f366}.btn-reset:active:not(:disabled){transform:translateY(-1px) scale(.98)}.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.keyboard-info{color:#fff;opacity:.8;text-align:center;margin-top:1rem;font-size:.95rem;animation:fadeInDown .5s ease}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:.8;transform:translateY(0)}}.laps-section{background:#fffffff2;border-radius:20px;padding:2rem;max-width:500px;box-shadow:0 20px 60px #0000004d;width:100%;max-height:400px;display:flex;flex-direction:column;animation:slideUp .5s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.dark .laps-section{background:#1e1e32f2;color:#eee}.laps-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;border-bottom:2px solid #667eea;padding-bottom:1rem}.laps-header h2{margin:0;font-size:1.5rem;color:#667eea}.dark .laps-header h2{color:#f093fb}.clear-laps{background:#f44336;color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;cursor:pointer;font-weight:600;transition:all .3s ease}.clear-laps:hover{background:#da190b;transform:scale(1.05)}.laps-list{display:flex;flex-direction:column;gap:.8rem;overflow-y:auto}.laps-list::-webkit-scrollbar{width:8px}.laps-list::-webkit-scrollbar-track{background:#0000001a;border-radius:10px}.laps-list::-webkit-scrollbar-thumb{background:#667eea;border-radius:10px}.laps-list::-webkit-scrollbar-thumb:hover{background:#764ba2}.lap-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f5f7fa;border-radius:10px;border-left:4px solid #667eea;transition:all .3s ease;font-family:IBM Plex Mono,Courier New,monospace}.dark .lap-item{background:#6464824d;color:#eee}.lap-item:hover{transform:translate(5px);box-shadow:0 5px 15px #667eea4d}.lap-item.best-lap{background:linear-gradient(135deg,#4caf501a,#ffc1071a);border-left-color:#4caf50}.lap-number{font-weight:600;color:#667eea;min-width:70px}.dark .lap-number{color:#f093fb}.lap-time{font-weight:700;color:#333;min-width:140px;text-align:center;font-size:1.05rem}.dark .lap-time{color:#fff}.lap-total{color:#999;font-size:.9rem;min-width:120px;text-align:right}.dark .lap-total{color:#bbb}.best-badge{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;padding:.4rem .8rem;border-radius:6px;font-size:.85rem;font-weight:600;animation:bounce .6s ease infinite}@keyframes bounce{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@media (max-width: 768px){h1{font-size:2.5rem}.display{font-size:3.5rem;padding:2rem 3rem;min-width:300px}.buttons{flex-direction:column;width:100%;max-width:300px}.btn{width:100%}.stats{flex-direction:column;width:100%}.stat-item{width:100%}.laps-section{max-width:100%}.lap-item{flex-wrap:wrap;gap:.5rem}.lap-number,.lap-time,.lap-total,.best-badge{min-width:auto}}@media (max-width: 480px){h1{font-size:2rem}.display{font-size:2.5rem;padding:1.5rem 2rem;min-width:auto;width:100%}.header{flex-direction:column;gap:1rem}.theme-toggle{width:3rem;height:3rem;font-size:1.2rem}.btn{padding:.9rem 1.5rem;font-size:.9rem}.laps-header h2{font-size:1.2rem}.lap-item{gap:.3rem;padding:.8rem}}
