﻿body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 40px;
}

.buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
}

    button:hover {
        background: #e6e6e6;
    }

.hint {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

/* Red result text next to Stop button */
.stop-result {
    margin-left: 8px;
    font-weight: bold;
    color: red;
    font-size: 14px;
}

/* Stopwatch overlay (upper-right corner) */
.stopwatch-overlay {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

    .stopwatch-overlay.hidden {
        display: none;
    }

/* Simple "realistic-ish" watch placeholder for demo */
.stopwatch {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background: radial-gradient(circle at 30% 30%, #ffffff, #d9d9d9);
}

    .stopwatch::before {
        /* small top knob */
        content: "";
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        width: 18px;
        height: 10px;
        border-radius: 10px;
        background: #333;
    }

    .stopwatch::after {
        /* center pin */
        content: "";
        position: absolute;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #333;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 999px;
}

.hour-hand {
    width: 3px;
    height: 22px;
    background: #111;
}

.minute-hand {
    width: 2px;
    height: 28px;
    background: #222;
}

.second-hand {
    width: 1px;
    height: 32px;
    background: #d11;
}

.stopwatch-elapsed {
    padding: 2px 6px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 999px;
}
