body { margin: 0; background: #000; color: white; font-family: 'Segoe UI', sans-serif; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }

/* Overlay élégant */
.overlay {
    position: absolute; top: 30px; width: 100%; text-align: center;
    z-index: 10; pointer-events: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
h1 { letter-spacing: 5px; font-weight: 700; margin-bottom: 5px; text-shadow: 0 2px 15px rgba(0,0,0,1); }
.hint { opacity: 0.95; font-size: 0.95rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,1); }

/* Responsive design */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; letter-spacing: 3px; }
    .hint { font-size: 0.75rem; padding: 0 10px; }
    #zoom-cta .cta-inner { font-size: 1.2rem; letter-spacing: 6px; }
    #zoom-cta .cta-sub { font-size: 0.75rem; letter-spacing: 4px; }
}

/* ======= SPEED LINES (vignette zoom) ======= */
#speed-overlay {
    position: fixed;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(ellipse at center,
            transparent 30%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.95) 100%);
}

#speed-overlay.active {
    opacity: 1;
}

#speed-canvas {
    position: fixed;
    inset: 0;
    z-index: 16;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

#speed-canvas.active {
    opacity: 1;
}

/* ======= ZOOM CTA ======= */
#zoom-cta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
    text-align: center;
}

#zoom-cta.visible {
    opacity: 1;
}

#zoom-cta .cta-inner {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.9), 0 0 80px rgba(225, 6, 0, 0.6);
}

#zoom-cta .cta-sub {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: #e10600;
    margin-top: 8px;
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.8);
}

/* ======= CHECKERED FLAG TRANSITION ======= */
#checker-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    display: grid;
}

.checker-col {
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: none;
}

.checker-col.drop {
    transition: transform 0.45s cubic-bezier(0.55, 0, 1, 0.45);
    transform: translateY(0%);
}

.checker-cell {
    flex: 1;
}

/* ======= SOUND CONTROL ======= */
.sound-suite-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.volume-slider-wrapper {
    width: 40px;
    height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: 2; /* Place below button */
}

.sound-suite-container:hover .volume-slider-wrapper {
    height: 140px;
    padding: 15px 0;
    border-color: rgba(255, 255, 255, 0.2);
}

.sound-control {
    order: 1; /* Place at top */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg);
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #e10600;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.6);
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sound-control:hover {
    background: #e10600;
    border-color: #e10600;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
}

.sound-control.muted svg path {
    stroke-opacity: 0.3;
}

.sound-control.muted::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 2px;
    background: #e10600;
    transform: rotate(-45deg);
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

