@font-face {
    font-family: 'Orbitron';
    src: url('fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: radial-gradient(ellipse at center, #0f1729 0%, #050810 100%);
    color: #00ffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* FIGURE GEOMETRICHE */
.scene-3d {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.geo-shape {
    position: absolute;
    opacity: 0.4;
}

.rect-1 {
    width: 80px;
    height: 120px;
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    top: 10%;
    left: 8%;
    animation: rotate1 12s linear infinite;
}

.rect-2 {
    width: 100px;
    height: 60px;
    border: 3px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    bottom: 15%;
    right: 10%;
    animation: rotate2 10s linear infinite;
}

.rect-3 {
    width: 70px;
    height: 140px;
    border: 3px solid #ffff00;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
    top: 50%;
    left: 5%;
    animation: rotate3 14s linear infinite;
}

.square-1 {
    width: 90px;
    height: 90px;
    border: 3px solid #ff6600;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
    top: 25%;
    right: 15%;
    animation: rotate4 11s linear infinite;
}

.square-2 {
    width: 70px;
    height: 70px;
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    bottom: 35%;
    left: 12%;
    animation: rotate5 13s linear infinite;
}

.square-3 {
    width: 85px;
    height: 85px;
    border: 3px solid #0088ff;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.5);
    top: 60%;
    right: 8%;
    animation: rotate6 15s linear infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid rgba(255, 0, 136, 0.4);
    filter: drop-shadow(0 0 20px rgba(255, 0, 136, 0.5));
    top: 15%;
    left: 40%;
    animation: rotate7 16s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(0, 255, 255, 0.4);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    bottom: 20%;
    right: 35%;
    animation: rotate8 14s linear infinite;
}

.triangle-3 {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-bottom: 80px solid rgba(255, 170, 0, 0.4);
    filter: drop-shadow(0 0 20px rgba(255, 170, 0, 0.5));
    top: 70%;
    left: 30%;
    animation: rotate9 12s linear infinite;
}

@keyframes rotate1 {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(-30px); }
    100% { transform: rotate(360deg) translateY(0); }
}

@keyframes rotate2 {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-180deg) translateY(30px); }
    100% { transform: rotate(-360deg) translateY(0); }
}

@keyframes rotate3 {
    0% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(180deg) translateX(40px); }
    100% { transform: rotate(360deg) translateX(0); }
}

@keyframes rotate4 {
    0% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(-180deg) translateX(-40px); }
    100% { transform: rotate(-360deg) translateX(0); }
}

@keyframes rotate5 {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(180deg) translate(30px, -30px); }
    100% { transform: rotate(360deg) translate(0, 0); }
}

@keyframes rotate6 {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(-180deg) translate(-30px, 30px); }
    100% { transform: rotate(-360deg) translate(0, 0); }
}

@keyframes rotate7 {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes rotate8 {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(0.8); }
    100% { transform: rotate(-360deg) scale(1); }
}

@keyframes rotate9 {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(40px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* ⚡ TRACK & COUNTDOWN ORA ABSOLUTE PER SCALING */
#track-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    width: 100%;
}

#track-display.show {
    animation: trackSlideIn 1.5s ease-out forwards;
}

#track-display.hide {
    opacity: 0;
}

.track-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #00ffff;
    text-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00a8cc;
    letter-spacing: 0.3rem;
    white-space: nowrap;
    text-align: center;
}

@keyframes trackSlideIn {
    0% {
        opacity: 0;
        transform: translate(100%, -50%);
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

#countdown-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#countdown-display.show {
    opacity: 1;
}

.countdown-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: #ffff00;
    text-shadow: 
        0 0 30px #ffff00,
        0 0 60px #ffff00,
        0 0 100px #ffaa00;
    letter-spacing: 0.4rem;
    animation: countdownPulse 1s ease-out;
    text-align: center;
}

@keyframes countdownPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 40px;
}

#game-container {
    width: 600px;
    height: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -10px); }
    20% { transform: translate(10px, 10px); }
    30% { transform: translate(-10px, 10px); }
    40% { transform: translate(10px, -10px); }
    50% { transform: translate(-10px, -10px); }
    60% { transform: translate(10px, 10px); }
    70% { transform: translate(-10px, 10px); }
    80% { transform: translate(10px, -10px); }
    90% { transform: translate(-5px, -5px); }
}

body.shake {
    animation: shake 0.5s ease-in-out;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    overflow: visible;
}

.screen.active {
    display: flex;
    animation: fadeInGlow 0.8s ease-out;
}

@keyframes fadeInGlow {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

#splash-screen {
    cursor: pointer;
}

/* TITOLO CON NEON FUCSIA + COLLIDER AZZURRO */
.title-large {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    letter-spacing: 0.3rem;
    margin-bottom: 40px;
    line-height: 1.3;
}

.title-neon {
    display: inline-block;
    color: #ff00ff;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff,
        0 0 80px #cc00cc,
        0 0 120px #cc00cc;
    animation: neonPulseFucsia 2s ease-in-out infinite alternate;
}

@keyframes neonPulseFucsia {
    from {
        text-shadow: 
            0 0 10px #ff00ff,
            0 0 20px #ff00ff,
            0 0 40px #ff00ff,
            0 0 60px #cc00cc,
            0 0 80px #cc00cc;
    }
    to {
        text-shadow: 
            0 0 15px #ff00ff,
            0 0 30px #ff00ff,
            0 0 60px #ff00ff,
            0 0 90px #cc00cc,
            0 0 130px #cc00cc,
            0 0 160px #cc00cc;
    }
}

.title-collider {
    display: inline-block;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 80px #00a8cc,
        0 0 120px #00a8cc;
    animation: neonPulseAzzurro 2s ease-in-out infinite alternate;
}

@keyframes neonPulseAzzurro {
    from {
        text-shadow: 
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00a8cc,
            0 0 80px #00a8cc;
    }
    to {
        text-shadow: 
            0 0 15px #00ffff,
            0 0 30px #00ffff,
            0 0 60px #00ffff,
            0 0 90px #00a8cc,
            0 0 130px #00a8cc,
            0 0 160px #00a8cc;
    }
}

.title-medium {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
    margin-bottom: 30px;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #ff88cc;
    text-shadow: 
        0 0 10px #ff88cc,
        0 0 20px #ff88cc,
        0 0 40px #ff1177;
    animation: neonPulseSubtitle 1.5s ease-in-out infinite alternate;
    letter-spacing: 0.2rem;
}

@keyframes neonPulseSubtitle {
    from {
        text-shadow: 
            0 0 10px #ff88cc,
            0 0 20px #ff88cc,
            0 0 30px #ff1177;
        opacity: 0.9;
    }
    to {
        text-shadow: 
            0 0 15px #ff88cc,
            0 0 30px #ff88cc,
            0 0 50px #ff1177,
            0 0 70px #ff1177;
        opacity: 1;
    }
}

.footer {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-top: 50px;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: #00ff88;
    text-shadow: 
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px #00ff88,
        0 0 60px #00aa55;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.neon-button {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    padding: 25px 50px;
    margin: 20px;
    background: transparent;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    width: 350px;
    max-width: 90%;
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.neon-button:hover::before {
    left: 100%;
}

.cyan-button {
    border: 4px solid #00ffff;
    color: #00ffff;
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00a8cc,
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.cyan-button:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00a8cc,
        inset 0 0 20px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.orange-button {
    border: 4px solid #ffaa44;
    color: #ffaa44;
    text-shadow: 
        0 0 5px #ffaa44,
        0 0 10px #ffaa44;
    box-shadow: 
        0 0 10px #ffaa44,
        0 0 20px #ffaa44,
        0 0 40px #ff7722,
        inset 0 0 10px rgba(255, 170, 68, 0.2);
}

.orange-button:hover {
    background: rgba(255, 170, 68, 0.2);
    box-shadow: 
        0 0 20px #ffaa44,
        0 0 40px #ffaa44,
        0 0 60px #ff7722,
        inset 0 0 20px rgba(255, 170, 68, 0.4);
    transform: scale(1.05);
}

.green-button {
    border: 4px solid #00ff00;
    color: #00ff00;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00;
    box-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 40px #00aa00,
        inset 0 0 10px rgba(0, 255, 0, 0.2);
}

.green-button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 
        0 0 20px #00ff00,
        0 0 40px #00ff00,
        0 0 60px #00aa00,
        inset 0 0 20px rgba(0, 255, 0, 0.4);
    transform: scale(1.05);
}

.red-button {
    border: 4px solid #ff0044;
    color: #ff0044;
    text-shadow: 
        0 0 5px #ff0044,
        0 0 10px #ff0044;
    box-shadow: 
        0 0 10px #ff0044,
        0 0 20px #ff0044,
        0 0 40px #cc0022,
        inset 0 0 10px rgba(255, 0, 68, 0.2);
}

.red-button:hover {
    background: rgba(255, 0, 68, 0.2);
    box-shadow: 
        0 0 20px #ff0044,
        0 0 40px #ff0044,
        0 0 60px #cc0022,
        inset 0 0 20px rgba(255, 0, 68, 0.4);
    transform: scale(1.05);
}

.neon-button:active {
    transform: scale(0.95);
}

.small-button {
    font-size: 1rem;
    padding: 20px 40px;
    width: 250px;
}

#level-select-screen {
    padding: 20px;
    overflow-y: auto;
}

#levels-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    max-width: 550px;
    margin: 20px auto;
}

.level-brick {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.level-brick:hover {
    transform: scale(1.15);
    z-index: 10;
}

.level-brick:active {
    transform: scale(0.95);
}

.level-brick.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

.level-brick.locked:hover {
    transform: scale(1);
}

#game-screen {
    justify-content: flex-start;
    padding: 100px 0 0 0;
    overflow: visible;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1rem;
    z-index: 100;
}

.hud-item {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.hud-item.glow-cyan {
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.hud-item.glow-yellow {
    color: #ffff00;
    text-shadow: 
        0 0 10px #ffff00,
        0 0 20px #ffff00;
    border: 2px solid #ffff00;
    box-shadow: 
        0 0 10px #ffff00,
        inset 0 0 10px rgba(255, 255, 0, 0.2);
}

.hud-item.glow-red {
    color: #ff6644;
    text-shadow: 
        0 0 10px #ff6644,
        0 0 20px #ff6644;
    border: 2px solid #ff6644;
    box-shadow: 
        0 0 10px #ff6644,
        inset 0 0 10px rgba(255, 102, 68, 0.2);
}

#game-canvas {
    border: 4px solid #00ffff;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00a8cc,
        0 0 60px #00a8cc,
        0 0 80px #00a8cc,
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    background: #050a15;
}

.level-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.level-transition.active {
    display: flex;
    animation: fadeInGlow 0.5s ease-in;
}

.level-transition h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    margin-bottom: 30px;
    color: #00ffff;
    text-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00a8cc;
    animation: neonPulseAzzurro 1s ease-in-out infinite alternate;
}

.level-transition p {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #00ff88;
    text-shadow: 
        0 0 10px #00ff88,
        0 0 20px #00ff88;
}

#pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeInGlow 0.3s ease-out;
}

#pause-overlay h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: #00ffff;
    text-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        0 0 60px #00a8cc;
    animation: neonPulseAzzurro 1s ease-in-out infinite alternate;
    margin-bottom: 50px;
}

.modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    display: none;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    overflow-y: auto !important;
}

.modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeInGlow 0.3s ease-out;
}

.modal-content {
    position: relative !important;
    background: rgba(10, 14, 39, 1) !important;
    border: 4px solid #00ffff !important;
    border-radius: 15px !important;
    padding: 30px !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: 90% !important;
    overflow-y: auto !important;
    box-shadow: 
        0 0 30px #00ffff,
        0 0 60px #00a8cc !important;
    text-align: center !important;
    margin: auto !important;
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00ffff;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.modal-content p {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 10px 0;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
}

.modal-content ul {
    list-style: none;
    margin: 15px auto;
    padding: 0;
    text-align: center;
}

.modal-content li {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    margin: 8px 0;
    padding-left: 0;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
}

.slider-container {
    margin: 20px 0;
    text-align: center;
}

.slider-container label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.1rem;
}

.audio-slider {
    width: 80%;
    height: 8px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    margin: 10px auto;
    display: block;
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    transition: all 0.3s ease;
}

.audio-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
    box-shadow: 
        0 0 15px #00ffff,
        0 0 30px #00ffff;
    transform: scale(1.2);
}

.audio-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    border: none;
    transition: all 0.3s ease;
}

.audio-slider::-moz-range-thumb:hover {
    background: #ffffff;
    box-shadow: 
        0 0 15px #00ffff,
        0 0 30px #00ffff;
    transform: scale(1.2);
}

.slider-container span {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
    display: block;
    margin-top: 10px;
    letter-spacing: 0.1rem;
}

.modal-content strong {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.power-green { 
    color: #00ff00; 
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
}
.power-red { 
    color: #ff0000; 
    text-shadow: 0 0 10px #ff0000;
    font-weight: bold;
}
.power-pink { 
    color: #ff00ff; 
    text-shadow: 0 0 10px #ff00ff;
    font-weight: bold;
}
.power-yellow { 
    color: #ffff00; 
    text-shadow: 0 0 10px #ffff00;
    font-weight: bold;
}
.power-blue { 
    color: #0088ff; 
    text-shadow: 0 0 10px #0088ff;
    font-weight: bold;
}

.modal-content .neon-button {
    margin: 20px auto 0;
    display: block;
    font-size: 0.9rem;
    padding: 12px 25px;
    width: auto;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 8px;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    text-align: left;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ffff00;
    text-shadow: 
        0 0 10px #ffff00,
        0 0 20px #ffff00;
}

.glow-green {
    color: #00ff88;
    text-shadow: 
        0 0 10px #00ff88,
        0 0 20px #00ff88,
        0 0 40px #00ff88,
        0 0 60px #00aa55;
    animation: victoryGlow 1s ease-in-out infinite alternate;
}

@keyframes victoryGlow {
    from {
        text-shadow: 
            0 0 10px #00ff88,
            0 0 20px #00ff88,
            0 0 40px #00ff88;
    }
    to {
        text-shadow: 
            0 0 20px #00ff88,
            0 0 40px #00ff88,
            0 0 60px #00ff88,
            0 0 80px #00aa55;
    }
}

/* MORE GAMES LINK */
.more-games-link {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-top: 25px;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    color: #00aaff;
    text-shadow: 
        0 0 10px #00aaff,
        0 0 20px #00aaff,
        0 0 40px #00aaff,
        0 0 60px #0088ff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.more-games-link:hover {
    color: #ffffff;
    text-shadow: 
        0 0 15px #00aaff,
        0 0 30px #00aaff,
        0 0 50px #00aaff,
        0 0 75px #0088ff;
    transform: scale(1.05);
}


/* 🔥 RESPONSIVE ULTRA AGGRESSIVO */
@media (max-width: 600px), (max-height: 400px) {
    #game-wrapper { padding: 20px; }
    
    .title-large { font-size: 1.8rem; letter-spacing: 0.15rem; margin-bottom: 20px; }
    .title-neon, .title-collider { font-size: 1.8rem; }
    .title-medium { font-size: 1.5rem; margin-bottom: 15px; }
    .subtitle { font-size: 0.85rem; margin-bottom: 20px; }
    .footer { font-size: 0.75rem; margin-top: 20px; }
    .more-games-link { font-size: 0.75rem; margin-top: 15px; }
    
    .neon-button { 
        font-size: 0.8rem; 
        padding: 12px 20px; 
        margin: 10px;
        width: 200px;
        letter-spacing: 0.1rem;
    }
    
    .small-button {
        font-size: 0.75rem;
        padding: 10px 18px;
        width: 150px;
    }
    
    #hud { font-size: 0.65rem; gap: 5px; }
    .hud-item { padding: 6px 10px; }
    
    .modal-content { 
        padding: 20px !important; 
        max-width: 95% !important;
    }
    .modal-content h2 { font-size: 1.2rem; margin-bottom: 12px; }
    .modal-content p, .modal-content li { font-size: 0.65rem; line-height: 1.4; margin: 6px 0; }
    .modal-content ul { margin: 10px auto; }
    .modal-content li { margin: 5px 0; }
    
    .slider-container { margin: 15px 0; }
    .slider-container label { font-size: 0.75rem; margin-bottom: 8px; }
    .slider-container span { font-size: 0.85rem; margin-top: 8px; }
    .audio-slider { height: 6px; }
    .audio-slider::-webkit-slider-thumb { width: 18px; height: 18px; }
    .audio-slider::-moz-range-thumb { width: 18px; height: 18px; }
    
    .modal-content .neon-button { 
        font-size: 0.75rem; 
        padding: 10px 20px; 
        margin: 15px auto 0;
    }
    
    .stats-grid { gap: 10px; margin: 15px 0; }
    .stat-item { padding: 8px 12px; }
    .stat-label { font-size: 0.6rem; }
    .stat-value { font-size: 0.9rem; }
    
    #levels-grid { grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 450px; }
    .level-brick { font-size: 0.65rem; border-width: 2px; }
    
    .track-text { font-size: 1.5rem; letter-spacing: 0.15rem; }
    .countdown-text { font-size: 2rem; letter-spacing: 0.2rem; }
    
    .level-transition h2 { font-size: 2rem; margin-bottom: 15px; }
    .level-transition p { font-size: 1rem; }
    
    #pause-overlay h2 { font-size: 2.5rem; margin-bottom: 30px; }
}

@media (max-width: 400px), (max-height: 320px) {
    #game-wrapper { padding: 15px; }
    
    .title-large { font-size: 1.4rem; margin-bottom: 15px; }
    .title-neon, .title-collider { font-size: 1.4rem; }
    .title-medium { font-size: 1.2rem; }
    .subtitle { font-size: 0.75rem; margin-bottom: 15px; }
    .footer { font-size: 0.65rem; margin-top: 15px; }
    .more-games-link { font-size: 0.65rem; margin-top: 10px; }
    
    .neon-button { 
        font-size: 0.7rem; 
        padding: 10px 15px; 
        margin: 8px;
        width: 180px;
    }
    
    .small-button {
        font-size: 0.65rem;
        padding: 8px 15px;
        width: 130px;
    }
    
    .modal-content { padding: 15px !important; }
    .modal-content h2 { font-size: 1rem; }
    .modal-content p, .modal-content li { font-size: 0.6rem; }
    
    .stat-label { font-size: 0.55rem; }
    .stat-value { font-size: 0.8rem; }
    
    #levels-grid { grid-template-columns: repeat(6, 1fr); gap: 5px; max-width: 350px; }
    .level-brick { font-size: 0.6rem; }
    
    .track-text { font-size: 1.2rem; }
    .countdown-text { font-size: 1.6rem; }
    
    .level-transition h2 { font-size: 1.6rem; }
    .level-transition p { font-size: 0.85rem; }
    
    #pause-overlay h2 { font-size: 2rem; }
}

/* 🔥🔥 ULTRA SMALL per 500x290 */
@media (max-width: 550px) and (max-height: 350px) {
    #game-wrapper { padding: 10px; }
    
    .title-large { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.2; }
    .title-neon, .title-collider { font-size: 1.2rem; }
    .title-medium { font-size: 1rem; margin-bottom: 10px; }
    .subtitle { font-size: 0.65rem; margin-bottom: 10px; }
    .footer { font-size: 0.6rem; margin-top: 10px; }
    .more-games-link { font-size: 0.6rem; margin-top: 8px; }
    
    .neon-button { 
        font-size: 0.6rem; 
        padding: 8px 12px; 
        margin: 5px;
        width: 150px;
        border-width: 2px;
    }
    
    .small-button {
        font-size: 0.55rem;
        padding: 6px 10px;
        width: 110px;
    }
    
    .modal { padding: 10px !important; }
    .modal-content { 
        padding: 12px !important;
        border-width: 2px !important;
        max-height: 95% !important;
    }
    .modal-content h2 { font-size: 0.85rem; margin-bottom: 8px; }
    .modal-content p, .modal-content li { font-size: 0.55rem; line-height: 1.3; margin: 4px 0; }
    .modal-content ul { margin: 8px auto; }
    
    .slider-container { margin: 10px 0; }
    .slider-container label { font-size: 0.65rem; margin-bottom: 6px; }
    .slider-container span { font-size: 0.75rem; margin-top: 6px; }
    .audio-slider { height: 5px; width: 90%; }
    .audio-slider::-webkit-slider-thumb { width: 15px; height: 15px; }
    .audio-slider::-moz-range-thumb { width: 15px; height: 15px; }
    
    .modal-content .neon-button { 
        font-size: 0.65rem; 
        padding: 8px 15px; 
        margin: 10px auto 0;
        border-width: 2px;
    }
    
    .stats-grid { gap: 8px; margin: 10px 0; }
    .stat-item { padding: 6px 10px; border-width: 2px; }
    .stat-label { font-size: 0.5rem; }
    .stat-value { font-size: 0.75rem; }
    
    #levels-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 300px; }
    .level-brick { font-size: 0.55rem; border-width: 2px; border-radius: 4px; }
    
    .track-text { font-size: 1rem; letter-spacing: 0.1rem; }
    .countdown-text { font-size: 1.4rem; letter-spacing: 0.15rem; }
    
    .level-transition h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .level-transition p { font-size: 0.75rem; }
    
    #pause-overlay h2 { font-size: 1.6rem; margin-bottom: 20px; }
}