:root {
    --bg-color: #0f172a;
    /* Deep blue-grey */
    --clock-bg: #1e293b;
    --accent-color: #38bdf8;
    /* Sky blue */
    --second-hand-color: #f43f5e;
    /* Rose */
    --hour-hand-color: #e2e8f0;
    --minute-hand-color: #94a3b8;
    --glow-color: rgba(56, 189, 248, 0.5);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Responsive Size Config */
    --clock-size: 75vmin;
    /* Occupies 75% of the smallest viewport dimension */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
    color: white;
    overflow: hidden;
    /* Prevent scrolling */
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vmin;
    width: 100%;
    height: 100vh;
    justify-content: center;
}

.clock-wrapper {
    position: relative;
    filter: drop-shadow(0 0 3vmin rgba(0, 0, 0, 0.5));
}

.clock {
    width: var(--clock-size);
    height: var(--clock-size);
    background: var(--clock-bg);
    border-radius: 50%;
    position: relative;
    box-shadow:
        inset 0.5vmin 0.5vmin 4vmin rgba(0, 0, 0, 0.5),
        inset -0.5vmin -0.5vmin 4vmin rgba(255, 255, 255, 0.05),
        0 0 3vmin var(--glow-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass effect overlay */
.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 10;
}

.hour-marks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mark {
    position: absolute;
    width: 0.4vmin;
    height: 3vmin;
    background: var(--minute-hand-color);
    left: 50%;
    /* Radius is half of clock size */
    transform-origin: 50% calc(var(--clock-size) / 2);
    transform: translateX(-50%);
    opacity: 0.5;
    top: 0;
    /* Align to top edge to rotate around center correctly */
}

.mark.major {
    width: 0.8vmin;
    height: 4vmin;
    background: var(--hour-hand-color);
    opacity: 1;
    box-shadow: 0 0 1vmin var(--glow-color);
}

.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 1vmin 1vmin 0 0;
    z-index: 5;
    /* transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44); Remove transition for JS rAF smoothness */
}

.hand.hour {
    width: 1.5vmin;
    height: 22%;
    /* Relative to clock height */
    background: var(--hour-hand-color);
}

.hand.minute {
    width: 1vmin;
    height: 35%;
    background: var(--minute-hand-color);
}

.hand.second {
    width: 0.5vmin;
    height: 40%;
    background: var(--second-hand-color);
    box-shadow: 0 0 1.5vmin var(--second-hand-color);
    z-index: 6;
}

.hand.second::after {
    content: '';
    position: absolute;
    width: 2vmin;
    height: 2vmin;
    background: var(--second-hand-color);
    border-radius: 50%;
    bottom: -4vmin;
    /* Counter balance look */
    left: 50%;
    transform: translateX(-50%);
}

.center-dot {
    position: absolute;
    width: 3vmin;
    height: 3vmin;
    background: white;
    border-radius: 50%;
    z-index: 7;
    box-shadow: 0 0 1vmin rgba(0, 0, 0, 0.5);
}

.digital-display {
    text-align: center;
    /* Absolute position digital display inside or below? 
       User wants Full Screen Clock. 
       Let's put it below but overlapping slightly or just below.
       Flexbox handles gap.
    */
    z-index: 5;
    margin-top: 0;
}

.location {
    font-size: 3vmin;
    letter-spacing: 0.5em;
    color: var(--accent-color);
    margin-bottom: 1vmin;
    text-shadow: 0 0 2vmin var(--glow-color);
    font-weight: 700;
}

.time-text {
    font-size: 6vmin;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--hour-hand-color);
    line-height: 1.2;
}

.date-text {
    font-size: 2.5vmin;
    color: var(--minute-hand-color);
    margin-top: 0.5vmin;
    letter-spacing: 0.1em;
}

/* Cineamtic Pulse */
@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 3vmin var(--accent-color);
    }

    100% {
        opacity: 0.8;
    }
}

.location {
    animation: pulse 3s infinite ease-in-out;
}