body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #1a1a1a;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    touch-action: none;
}

.game-container {
    text-align: center;
    max-width: 100%;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

canvas {
    border: 4px solid #333;
    background-color: #000;
    max-width: 90vw;
    max-height: 50vh;
    box-shadow: 0 0 30px rgba(0,255,0,0.1);
}

.mobile-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-row {
    display: flex;
    justify-content: center;
}

.arrow-btn {
    width: 60px;
    height: 60px;
    margin: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.arrow-btn:active {
    background: rgba(39, 174, 96, 0.6);
    transform: scale(0.9);
}

.ui-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

button#startBtn, button#speedBtn {
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}

button:hover {
    background-color: #2ecc71;
}

@media (min-width: 800px) {
    .mobile-controls {
        display: none;
    }
}
