:root {
    --olympic-blue: #0085C7;
    --olympic-yellow: #FFB113;
    --olympic-black: #000000;
    --olympic-green: #009F3D;
    --olympic-red: #DF0024;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chronograph-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.brand-header {
    text-align: center;
}

.brand-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #1a1a1a;
}

.precision-badge {
    display: inline-block;
    background: var(--olympic-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 10px;
}

.watch {
    position: relative;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.watch-face {
    display: block;
}

/* Hands styling */
.hands {
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

.hour-hand, .minute-hand {
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.second-hand, .running-seconds-hand {
    transition: none;
}

.chrono-second-hand, .chrono-hundredth-hand {
    transition: none;
    display: none;
}

.chrono-hour-hand, .chrono-minute-hand {
    transition: none;
}

/* Digital display */
.digital-display {
    background: #1a1a1a;
    color: #00ff00;
    padding: 15px 30px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 5px;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-time {
    color: #00ff00;
}

.milliseconds {
    color: #00cc00;
    font-size: 28px;
}

/* Controls styling */
.controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.control-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 -3px 5px rgba(0, 0, 0, 0.1);
}

.control-button:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.start-stop {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.start-stop.active {
    background: linear-gradient(135deg, var(--olympic-red) 0%, #cc0000 100%);
}

.lap {
    background: linear-gradient(135deg, var(--olympic-blue) 0%, #006bb3 100%);
}

.reset {
    background: linear-gradient(135deg, #666 0%, #444 100%);
}

.button-label {
    font-size: 14px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
}

.control-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Lap times */
.lap-times {
    width: 100%;
    max-width: 400px;
}

.lap-times h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #333;
}

.lap-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #f9f9f9;
}

.lap-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.lap-item:last-child {
    border-bottom: none;
}

.lap-item.fastest {
    background: linear-gradient(90deg, var(--gold) 0%, transparent 50%);
    font-weight: bold;
}

.lap-number {
    color: #666;
    font-weight: bold;
}

.lap-time {
    text-align: center;
    color: #333;
}

.total-time {
    text-align: right;
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    .chronograph-container {
        padding: 20px;
        gap: 20px;
    }
    
    .digital-display {
        font-size: 28px;
        padding: 10px 20px;
    }
    
    .milliseconds {
        font-size: 22px;
    }
    
    .control-button {
        width: 60px;
        height: 60px;
    }
    
    .button-label {
        font-size: 12px;
    }
}