:root {
    --bg: #0a0a0a;
    --fg: #e0e0e0;
    --muted: #555;
    --border: #2a2a2a;
    --border-light: #1a1a1a;
    --accent: #3a3a5a;
    --error: #e44;
    --link: #58a6ff;
    --indent: 24px;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #000000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: 0;
    -ms-overflow-style: none;
}

.stopwatch-container {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        inset 0 2px 5px rgba(255,255,255,0.1),
        inset 0 -2px 5px rgba(0,0,0,0.5);
    border: 1px solid #444;
    position: relative;
    width: 800px;
    max-width: 90%;
}

h1 {
    font-size: 2.5em;
    margin: 0 0 30px 0;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 3px #f0f0f0, 0 0 10px #a0a0a0;
    font-weight: 300;
    letter-spacing: 2px;
}

#time {
    font-family: 'Courier New', monospace;
    font-size: 2.8em;
    background: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #44AA55;
    margin: 0 auto 30px;
    width: 80%;
    box-shadow: 
        inset 0 5px 10px rgba(0,0,0,0.5),
        inset 0 -2px 5px rgba(255,255,255,0.05);
    border: 1px solid #333;
    text-shadow: 0 0 5px #44AA55, 0 0 10px #447744;
    letter-spacing: 3px;
    transition: all 0.2s;
}

#time.running {
    color: #FF5722;
    text-shadow: 0 0 5px #FF5522, 0 0 10px #FF8844;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.1s;
}
.btn:hover {
    border-color: var(--fg);
    color: var(--fg);
}
.btn:active {
    transform: scale(0.98);
}
.btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
}

#start {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: white;
    border-top: 1px solid #6BCF70;
    border-bottom: 1px solid #1B5E20;
}

#start:hover {
    background: linear-gradient(to bottom, #5CBF60, #3E8D42);
}

#reset {
    background: linear-gradient(to bottom, #F44336, #C62828);
    color: white;
    border-top: 1px solid #FF7961;
    border-bottom: 1px solid #8E0000;
}

#reset:hover {
    background: linear-gradient(to bottom, #FF5347, #D63838);
}

#lapBtn {
    background: linear-gradient(to bottom, #3498DB, #2980B9);
    color: white;
    border-top: 1px solid #2980B9;
    border-bottom: 1px solid #2471A3;
}

#lapBtn:hover {
    background: linear-gradient(to bottom, #4099FF, #348FDB);
}

#analogClock {
    background: #222;
    border-radius: 50%;
    box-shadow: 
        inset 0 5px 15px rgba(0,0,0,0.5),
        inset 0 -5px 15px rgba(255,255,255,0.05),
        0 10px 30px rgba(0,0,0,0.8);
    border: 10px solid #333;
    margin: 0 auto 30px;
    position: relative;
    float: left;
    margin-left: 50px;
}

.lap-display-container {
    float: right;
    width: 250px;
    height: 350px;
    background: #1a1a1a;
    border-radius: 15px;
    margin-right: 50px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.lap-display {
    height: 280px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    color: #7FDBFF;
    text-align: center;
    background: #111;
    margin: 10px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
    border: 1px solid #333;
    overflow-y: auto;
}

.lap-display div {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 1.1em;
}

.lap-display div:first-child {
    color: #FF851B;
    font-weight: bold;
}

.lap-display-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #333, transparent);
    border-radius: 15px 15px 0 0;
}

.lap-display-container::after {
    content: 'LAP TIMES';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    text-align: center;
    color: #aaa;
    font-size: 0.9em;
    letter-spacing: 1px;
}

#analogClock::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: -1;
}

#info {
    margin-top: 20px;
    font-size: 0.9em;
    color: #aaa;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
    clear: both;
}

.chrome-ring {
    position: absolute;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    top: -10px;
    left: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 45%, 
        rgba(255,255,255,0) 50%, 
        rgba(0,0,0,0.2) 55%, 
        rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #555;
    border-radius: 50%;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.5),
        0 1px 1px rgba(255,255,255,0.1);
}

.screw-1 { top: 15px; left: 15px; }
.screw-2 { top: 15px; right: 15px; }
.screw-3 { bottom: 15px; left: 15px; }
.screw-4 { bottom: 15px; right: 15px; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}