* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: #1a1a1a;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- NEU: Startbildschirm Design --- */
#start-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100; /* Legt sich über alles andere */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.car-selection {
    display: flex;
    gap: 20px;
}

.car-btn {
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #d62828;
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.car-btn:hover {
    background-color: #ff4d4d;
    transform: scale(1.05);
}

#ui {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 10;
}

canvas {
    background-color: #2e7d32;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 100vw;
    max-height: 80vh;
}

#touch-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
    padding: 0 10px;
}

.touch-group {
    display: flex;
    gap: 10px;
}

.touch-btn {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    touch-action: manipulation;
}

.touch-btn.action {
    border-radius: 15px;
    width: 80px;
    background: rgba(220, 53, 69, 0.4);
}

#btn-gas {
    background: rgba(40, 167, 69, 0.5);
}