@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&family=Roboto:ital,wght@0,400;0,700;1,400&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1e293b;
    color: #e2e8f0;
    overflow-x: hidden
}

.font-race {
    font-family: 'Racing Sans One', cursive
}

.track-bg {
    background: #334155;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 100px 100px;
    background-position: -2px -2px;
    min-height: 100vh;
    position: relative
}

.track-view {
    height: 300px;
    background: #1e293b;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #fbbf24;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5)
}

.road {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: #475569;
    transform: perspective(500px) rotateX(20deg) scaleY(1.5);
    transform-origin: bottom
}

.road-lines {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(90deg, #fff 0, #fff 40px, transparent 40px, transparent 80px);
    animation: moveRoad 1s linear infinite linear
}

.car {
    position: absolute;
    bottom: 20px;
    left: 50px;
    width: 120px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path d="M10,30 L30,10 L70,10 L90,30 L95,45 L5,45 Z" fill="%23ef4444"/><circle cx="20" cy="45" r="8" fill="%23000"/><circle cx="80" cy="45" r="8" fill="%23000"/></svg>') no-repeat center/contain;
    transition: all 0.5s ease;
    z-index: 10
}

.car.boost {
    filter: drop-shadow(0 0 10px #ef4444);
    transform: translateX(50px) skewX(-10deg)
}

.finish-line {
    position: absolute;
    right: -100px;
    bottom: 0;
    width: 50px;
    height: 100%;
    background: repeating-linear-gradient(45deg, #000 0, #000 10px, #fff 10px, #fff 20px);
    z-index: 5
}

@keyframes moveRoad {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-80px)
    }
}

.dashboard {
    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-top: 4px solid #64748b;
    padding: 20px
}

.division-display {
    background: #000;
    border: 4px solid #94a3b8;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Racing Sans One', cursive;
    font-size: 3rem;
    color: #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8)
}

.digit-box {
    min-width: 40px;
    text-align: center;
    position: relative
}

.carry-num {
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 1.2rem;
    color: #ef4444;
    font-family: 'Roboto', sans-serif;
    font-weight: bold
}

.speedometer {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0f172a;
    border: 4px solid #3b82f6;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5)
}

.needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 4px;
    height: 45%;
    background: #ef4444;
    transform-origin: bottom center;
    transform: rotate(-90deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)
}

.gear-btn {
    background: linear-gradient(180deg, #e2e8f0, #94a3b8);
    border: 2px solid #64748b;
    border-radius: 5px;
    font-family: 'Racing Sans One';
    font-size: 2rem;
    color: #0f172a;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 0 #475569;
    transition: all 0.1s;
    cursor: pointer
}

.gear-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 transparent
}

.gear-btn:hover {
    background: #f1f5f9
}

.input-cursor {
    animation: blink 1s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* High-quality claymation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('clay_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}