:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --bg-dark: #050505;
    --glass: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Moving Gradient Background */
.background-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 100%);
    z-index: -1;
}

.container {
    text-align: center;
    z-index: 1;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--neon-blue);
}

.neon-text { color: var(--neon-pink); text-shadow: 0 0 20px var(--neon-pink); }

/* Controls Section */
.controls {
    margin-bottom: 40px;
    background: var(--glass);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

select {
    background: black;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#current-zone-display {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
}

/* Timer Grid */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.time-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-blue);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 15px var(--neon-blue);
    min-width: 150px;
}

.time-box span {
    display: block;
    font-family: 'Orbitron', sans-serif;
}

.time-box span:first-child {
    font-size: 4rem;
    font-weight: 900;
}

.label {
    font-size: 1rem;
    color: #ccc;
    margin-top: 10px;
    letter-spacing: 3px;
}

/* Modal Styling */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex; justify-content: center; align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.hidden { opacity: 0; pointer-events: none; }
.visible { opacity: 1; pointer-events: all; }

.modal-content {
    background: #111;
    padding: 20px;
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 50px var(--neon-pink);
}

.video-wrapper { margin-top: 20px; }

.close-btn {
    position: absolute; top: 20px; right: 40px;
    font-size: 3rem; cursor: pointer; color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .timer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2rem; }
}