/* ============================================
   Moving Road - Main Game Styles
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    overflow: hidden; touch-action: none; font-family: Arial, sans-serif;
    background-color: #87CEEB; user-select: none; -webkit-user-select: none;
}
#game-container { position: fixed; width: 100vw; height: 100vh; overflow: hidden; top: 0; left: 0; }

/* ---------- Score Board: top-right, white, original font size ---------- */
#score-board {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    z-index: 100;
}
#score, #high-score {
    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ---------- Game Over Modal ---------- */
#game-over {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7); color: white; padding: 20px;
    border-radius: 10px; text-align: center; display: none; z-index: 100;
}
#restart-btn {
    margin-top: 15px; padding: 10px 20px; background-color: #4CAF50;
    color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px;
}

/* ---------- On-Screen D-Pad Controls ---------- */
#controls {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 100;
}
.control-row {
    display: flex; gap: 8px; justify-content: center;
}
.control-btn {
    width: 65px; height: 65px; background-color: rgba(255,255,255,0.3);
    border: 2px solid white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 24px;
    color: white; cursor: pointer; touch-action: manipulation;
}
