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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    min-height: 100dvh;
    position: relative;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 255, 0.02) 50%
    );
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2vh 20px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5vh;
    overflow: hidden;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, min(8vw, 8vh), 7rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0;
    flex-shrink: 1;
    min-height: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(255, 0, 255, 0.3);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    transition: transform 0.05s;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: clamp(0.7rem, min(3vw, 3vh), 1.8rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 0;
    flex-shrink: 1;
    color: #00ffff;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.8;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 60px);
    margin: 0;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-height: 0;
    width: 100%;
}

.time-unit {
    text-align: center;
    position: relative;
}

.time-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, min(8vw, 10vh), 8rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(0, 255, 255, 1),
        0 0 50px rgba(0, 255, 255, 0.7),
        0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.time-label {
    font-size: clamp(0.5rem, min(1.5vw, 2vh), 1.2rem);
    font-weight: 500;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5vh;
    opacity: 0.9;
}

.cars-container {
    position: relative;
    margin: 0;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cars-container picture {
    width: 45%;
    max-width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
}

.car {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 30px rgba(0, 255, 255, 0.6))
        drop-shadow(0 0 60px rgba(255, 0, 255, 0.4))
        brightness(1.1)
        contrast(1.2);
    animation: float 4s ease-in-out infinite;
}

.car.left {
    animation-delay: 0s;
}

.car.right {
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.date-display {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, min(3vw, 4vh), 3rem);
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    flex-shrink: 1;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.2em;
}

/* Neon corner accents */
.corner-accent {
    position: fixed;
    width: 100px;
    height: 100px;
    border-style: solid;
    border-color: #00ffff;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.corner-accent.top-left {
    top: 20px;
    left: 20px;
    border-width: 3px 0 0 3px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.corner-accent.top-right {
    top: 20px;
    right: 20px;
    border-width: 3px 3px 0 0;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: #ff00ff;
}

.corner-accent.bottom-left {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 3px 3px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: #ff00ff;
}

.corner-accent.bottom-right {
    bottom: 20px;
    right: 20px;
    border-width: 0 3px 3px 0;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.message {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, min(8vw, 10vh), 8rem);
    text-align: center;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Countdown separators */
.time-separator {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, min(6vw, 8vh), 6rem);
    font-weight: 900;
    color: #00ffff;
    align-self: flex-start;
    padding-top: 0.1em;
    text-shadow:
        0 0 20px rgba(0, 255, 255, 1),
        0 0 40px rgba(0, 255, 255, 0.6);
    animation: separatorFlicker 1.5s ease-in-out infinite;
}

.time-separator:nth-of-type(2) { animation-delay: 0.5s; }
.time-separator:nth-of-type(3) { animation-delay: 1.0s; }

@keyframes separatorFlicker {
    0%, 100% { opacity: 1; color: #00ffff; }
    30% { opacity: 0.3; color: #ff00ff; }
    60% { opacity: 1; color: #ff00ff; }
    80% { opacity: 0.6; color: #00ffff; }
}

/* Speed lines */
.speed-lines {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.speed-line {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    animation: speedStreak 1.8s linear infinite;
    opacity: 0;
}

.speed-line:nth-child(1) { top: 12%; width: 40%; left: 30%; animation-delay: 0s; background: linear-gradient(90deg, transparent, #00ffff, transparent); }
.speed-line:nth-child(2) { top: 28%; width: 55%; left: 20%; animation-delay: 0.3s; background: linear-gradient(90deg, transparent, #ff00ff, transparent); }
.speed-line:nth-child(3) { top: 42%; width: 35%; left: 35%; animation-delay: 0.6s; background: linear-gradient(90deg, transparent, #00ffff, transparent); }
.speed-line:nth-child(4) { top: 55%; width: 50%; left: 25%; animation-delay: 0.15s; background: linear-gradient(90deg, transparent, #ff00ff, transparent); }
.speed-line:nth-child(5) { top: 68%; width: 45%; left: 28%; animation-delay: 0.9s; background: linear-gradient(90deg, transparent, #00ffff, transparent); }
.speed-line:nth-child(6) { top: 78%; width: 60%; left: 18%; animation-delay: 0.45s; background: linear-gradient(90deg, transparent, #ff00ff, transparent); }
.speed-line:nth-child(7) { top: 35%; width: 30%; left: 40%; animation-delay: 1.2s; background: linear-gradient(90deg, transparent, #00ffff80, transparent); }
.speed-line:nth-child(8) { top: 88%; width: 38%; left: 32%; animation-delay: 0.75s; background: linear-gradient(90deg, transparent, #ff00ff80, transparent); }

@keyframes speedStreak {
    0% { opacity: 0; transform: scaleX(0.3) translateX(-50%); }
    15% { opacity: 0.8; }
    50% { opacity: 1; transform: scaleX(1) translateX(0); }
    85% { opacity: 0.8; }
    100% { opacity: 0; transform: scaleX(0.3) translateX(50%); }
}

/* VS emblem */
.vs-emblem {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: vsGlow 2s ease-in-out infinite;
}

.vs-bolt {
    width: clamp(30px, min(6vw, 10vh), 70px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
}


@keyframes vsGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4)); transform: translate(-50%, -50%) scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 0, 255, 0.8)); transform: translate(-50%, -50%) scale(1.08); }
}

/* Spark canvas */
#sparks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* SEO content section */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    position: relative;
    z-index: 10;
}

.seo-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 900;
    color: #00ffff;
    margin: 30px 0 12px;
}

.seo-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.seo-content strong {
    color: #ff00ff;
}

/* Mood music button */
.music-btn {
    position: fixed;
    top: 16px;
    /* clears the 100px-wide top-right corner bracket (ends at right:120px) */
    right: 136px;
    z-index: 20;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.55rem, 2vw, 0.85rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00ffff;
    background: rgba(10, 10, 20, 0.85);
    border: 2px solid #00ffff;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.music-btn:hover {
    color: #0a0a0a;
    background: #ff00ff;
    border-color: #ff00ff;
    box-shadow: 0 0 24px rgba(255, 0, 255, 0.7);
}

.music-btn.playing {
    color: #ff00ff;
    border-color: #ff00ff;
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 0, 255, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.95); }
}

@media (max-width: 768px) {
    .corner-accent {
        width: 50px;
        height: 50px;
    }
    /* bracket shrinks to 50px (ends at right:70px) on mobile */
    .music-btn {
        right: 86px;
    }
}

/* --- Accessibility --- */

/* A clear, high-contrast focus ring for keyboard users -- the default
   ring is easy to lose against the neon-on-black palette. */
a:focus-visible,
.music-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Honour the OS "reduce motion" preference. This page is animation-heavy
   (grid drift, scanlines, pulsing, flicker, glitch jitter, sparks), which
   can cause discomfort or vestibular issues. Neutralise CSS animation and
   transition for visitors who have asked for less motion -- the layout and
   all content stay fully intact, just still. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
