body {
    background: radial-gradient(circle at center, #111417 0%, #000000 100%);
    color: #8a8a8a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

/* Clock Frame */
#clock-container {
    position: relative;
    width: 350px;
    height: 350px;
    border: 14px solid #1a1a1a;
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.9),
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(80, 0, 0, 0.2);
    background: radial-gradient(circle, #222 0%, #0a0a0a 100%);
}

/* Subtle Dark Red Progress Fill */
#progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg, transparent 360deg);
    z-index: 1;
    /* transition so the red gradient "snaps" smoothly with the hand */
    transition: background 0.15s cubic-bezier(0.4, 2.5, 0.55, 0.4);
}

/* Dynamic Graduations */
#ticks {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.tick-mark {
    position: absolute;
    width: 4px;
    height: 18px;
    background: #3a3a3a;
    top: 10px;
    left: calc(50% - 2px);
    transform-origin: 50% 165px;
    box-shadow: 0 0 2px #000;
}

/* The Single Clock Hand */
#hand {
    position: absolute;
    width: 12px;
    height: 160px;
    background: linear-gradient(to bottom, #555 0%, #222 100%);
    bottom: 50%;
    left: calc(50% - 6px);
    transform-origin: 50% 100%;
    /* Snappy mechanical transition */
    transition: transform 0.25s cubic-bezier(0.4, 2.5, 0.55, 0.4);
    clip-path: polygon(50% 0%, 100% 15%, 70% 100%, 30% 100%, 0% 15%);
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.8));
    z-index: 10;
}

/* Clock Center Pin */
.center-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #555 0%, #111 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
    z-index: 20;
}

/* Subtle Input Box */
#input-container {
    margin-top: 60px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    height: 50px;
}

#input-container.hidden {
    opacity: 0;
    pointer-events: none;
}

input {
    background: #080808;
    border: 1px solid #222;
    color: #7a1111;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 4px;
    outline: none;
    width: 150px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

input:focus {
    border-color: #4a0000;
    box-shadow: 0 0 15px rgba(80, 0, 0, 0.4);
}

input::placeholder {
    color: #333;
}