body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#score-board {
    font-size: clamp(16px, 4vw, 24px);
    margin-bottom: 10px;
    text-align: center;
}

#score-board span {
    margin: 0 10px;
}

canvas {
    background-color: #000;
    display: block;
}

#controls {
    display: flex;
    flex-direction: column; /* Stack rows of buttons */
    align-items: center; /* Center the rows */
    gap: 5px;
    margin-top: 10px;
    padding-bottom: 5px; /* Add some padding at the bottom */
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 15px; /* Increased gap between L/R buttons */
}

#controls button {
    width: 60px;
    height: 60px;
    font-size: 28px;
    border: 2px solid white;
    background-color: #222222;
    color: white;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Specific styling for middle row buttons if needed or to add a dummy spacer */
.control-row #button-left,
.control-row #button-right {
    /* No specific changes needed with current gap approach */
}

#controls button#button-ghost-behavior {
    width: auto; /* Adjust width based on content */
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px; /* Ensure text fits */
    height: 40px; /* Smaller height if needed */
}

#message-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: yellow;
    padding: 20px;
    border-radius: 10px;
    font-size: clamp(20px, 5vw, 30px);
    text-align: center;
    display: none; /* Hidden by default */
}
