/* Pure CSS Pixel Art Driver Sprite */

.driver-sprite {
    position: relative;
    width: 200px !important;
    height: 200px !important;
    background: none !important;
}

/* Driver head and face */
.driver-sprite::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 70px;
    top: 30px;
    left: 70px;
    background: #f5deb3; /* Skin tone */
    border-radius: 30% 30% 40% 40%;
    box-shadow: 
        /* Hair */
        0 -15px 0 #8b7355,
        -5px -15px 0 #8b7355,
        5px -15px 0 #8b7355,
        -10px -10px 0 #8b7355,
        10px -10px 0 #8b7355,
        /* Face shadow */
        inset -5px 5px 10px rgba(0, 0, 0, 0.1);
}

/* Eyes - that iconic Drive stare */
.driver-sprite::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 4px;
    top: 50px;
    left: 80px;
    background: #333;
    box-shadow: 
        20px 0 0 #333, /* Right eye */
        /* Eyebrows */
        -2px -8px 0 2px #8b7355,
        18px -8px 0 2px #8b7355;
}

/* Scorpion jacket */
.driver-jacket {
    position: absolute;
    width: 90px;
    height: 80px;
    top: 90px;
    left: 55px;
    background: #fff;
    border-radius: 10% 10% 0 0;
    overflow: hidden;
}

.driver-jacket::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    top: 20px;
    left: 30px;
    background: #FFD700; /* Gold scorpion */
    clip-path: polygon(
        50% 0%, 
        60% 40%, 
        100% 50%, 
        60% 60%, 
        50% 100%, 
        40% 60%, 
        0% 50%, 
        40% 40%
    );
}

/* Collar detail */
.driver-jacket::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    top: 0;
    background: #f0f0f0;
    border-bottom: 2px solid #ddd;
}

/* Arms/sleeves */
.driver-arms {
    position: absolute;
    width: 30px;
    height: 60px;
    top: 100px;
    left: 40px;
    background: #fff;
    transform: rotate(-20deg);
    border-radius: 40% 10% 10% 40%;
}

.driver-arms::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 60px;
    top: -5px;
    left: 90px;
    background: #fff;
    transform: rotate(40deg);
    border-radius: 10% 40% 40% 10%;
}

/* Driving gloves */
.driver-gloves-css {
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 60px;
    left: 30px;
    background: #8B4513;
    border-radius: 50% 50% 40% 40%;
    box-shadow: 
        140px 0 0 #8B4513, /* Right glove */
        /* Knuckle details */
        2px 5px 0 -2px #654321,
        142px 5px 0 -2px #654321;
}

/* Car dashboard reflection on face */
.dashboard-glow {
    position: absolute;
    width: 100%;
    height: 30px;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(255, 0, 255, 0.1) 0%, 
        transparent 100%);
    pointer-events: none;
}

/* Toothpick (CSS version) */
.driver-sprite .toothpick-css {
    position: absolute;
    width: 15px;
    height: 2px;
    top: 65px;
    left: 105px;
    background: #d4a373;
    transform: rotate(-15deg);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* Animation frames for different expressions */
@keyframes subtleExpression {
    0%, 95% {
        /* Normal expression */
    }
    97% {
        /* Slight squint */
        box-shadow: 
            20px 0 0 #333,
            -2px -8px 0 2px #8b7355,
            18px -8px 0 2px #8b7355,
            0 2px 0 0 #333,
            20px 2px 0 0 #333;
    }
    100% {
        /* Back to normal */
    }
}

/* Apply expression animation in highway mode */
.driver-highway .driver-sprite::after {
    animation: subtleExpression 10s ease-in-out infinite;
}

/* Add all the CSS elements to the sprite */
.driver-sprite::before {
    z-index: 10;
}

.driver-sprite > * {
    position: absolute;
}

/* Create the full character */
.pixel-driver::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Steering wheel (CSS version) */
.steering-wheel-css {
    position: absolute;
    width: 80px;
    height: 80px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #333;
    border-radius: 50%;
    z-index: 20;
}

.steering-wheel-css::before,
.steering-wheel-css::after {
    content: '';
    position: absolute;
    background: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.steering-wheel-css::before {
    width: 60px;
    height: 8px;
}

.steering-wheel-css::after {
    width: 8px;
    height: 60px;
}