body {
    font-family: 'Dyslexia', sans-serif;
    text-align: center;
}

#topHud {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: #444; /* make top HUD text same color as button background */
    margin: 14px 0 8px 0;
}

#score {
    font-size: 24px;
    font-weight: 700;
}

#highscore {
    font-size: 20px;
    color: #444;
    font-weight: 700;
}

#pauseButton {
    background-color: #444;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    transition: background-color 0.2s, transform 0.08s;
}

#pauseButton:hover {
    background-color: #666;
}

#pauseButton:active {
    background-color: #333;
}

#board {
    background-color: black;
}

/* Layout for game row: left stats + canvas */
#gameRow {
    display: flex;
    justify-content: center;
}

/* Centered wrapper sized to canvas so side stats don't affect centering */
#boardWrapper {
    position: relative;
    width: 750px; /* matches canvas width in main.js */
    margin: 0 auto;
}

/* sideStats sits to the left of the canvas without changing the wrapper's centering */
#sideStats {
    position: absolute;
    right: 100%;
    margin-right: 20px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
    width: 120px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#sideStats > div {
    background: rgba(255,255,255,0.03);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #444; /* same color as button background */
}

#lives {
    font-size: 35px;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* Make canvas clearer */
#board {
    background-color: black;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    display: block;
    width: 750px;
    height: 650px;
}

@media (max-width: 900px) {
    /* For smaller screens place stats above the canvas so layout remains usable */
    #boardWrapper { width: 90vw; }
    #board { width: 100%; height: auto; }
    #sideStats { position: static; right: auto; margin: 0 0 12px 0; width: auto; text-align: center; flex-direction: row; justify-content: center; }
    #sideStats > div { font-size: 18px; }
}