/**
 * Floating Stopwatch Styles
 * Old-style golden pocket watch aesthetic
 */

.stopwatch {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stopwatch:hover {
    transform: scale(1.05);
}

.stopwatch.dragging {
    cursor: grabbing;
    transform: scale(1.08);
}

.stopwatch-face {
    width: 110px;
    height: 110px;
    background:
        radial-gradient(ellipse at 30% 30%, #f0d55c 0%, #c9a227 40%, #8b6914 100%);
    border-radius: 50%;
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 3px #8b6914,
        0 0 0 5px #5c4a0e;
}

/* Decorative ring */
.stopwatch-ring {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(139, 105, 20, 0.5);
    border-radius: 50%;
}

/* Crown/loop at top */
.stopwatch-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 18px;
    background: linear-gradient(180deg, #f0d55c 0%, #c9a227 50%, #8b6914 100%);
    border-radius: 50% 50% 30% 30%;
    box-shadow:
        0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.3);
}

.stopwatch-crown::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 9px;
    background: linear-gradient(180deg, #1a1510 0%, #2a2015 100%);
    border-radius: 50%;
}

/* Time display */
.stopwatch-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        linear-gradient(180deg, #1a1510 0%, #0f0d0a 100%);
    border-radius: 3px;
    padding: 0.2rem 0.35rem;
    border: 1px solid #5c4a0e;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.stopwatch-time {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: bold;
    color: #f0d55c;
    text-shadow: 0 0 4px rgba(240, 213, 92, 0.5);
    letter-spacing: 0.5px;
}

/* Label */
.stopwatch-label {
    position: absolute;
    top: 68%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: #3d2a10;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .stopwatch {
        top: 1rem;
        right: 1rem;
    }

    .stopwatch-face {
        width: 90px;
        height: 90px;
    }

    .stopwatch-ring {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .stopwatch-display {
        padding: 0.2rem 0.35rem;
    }

    .stopwatch-time {
        font-size: 0.65rem;
    }

    .stopwatch-label {
        top: 66%;
        font-size: 0.5rem;
    }

    .stopwatch-crown {
        width: 18px;
        height: 14px;
        top: -11px;
    }

    .stopwatch-crown::before {
        width: 9px;
        height: 7px;
    }
}
