* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #fbcfe8;
    font-family: Arial, sans-serif;
    color: #111;
}

#game-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    text-align: center;
}

#start-screen,
#game-over {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: white;
    border: 4px solid black;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 6px 6px 0 black;
}

#start-screen h1,
#game-over h2 {
    margin: 0;
}

#start-button,
#restart-button,
#submit-button,
#difficulty-select,
#difficulty-select-over,
#player-name {
    font-size: 1rem;
    padding: 10px 14px;
    border: 3px solid black;
    border-radius: 10px;
    background: white;
}

#start-button,
#restart-button,
#submit-button {
    cursor: pointer;
    font-weight: bold;
}

#countdown {
    font-size: 4rem;
    font-weight: 900;
    min-height: 4.5rem;
}

#score-display {
    margin-top: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 4px solid black;
    border-radius: 14px;
    background: #dbeafe;
    box-shadow: 6px 6px 0 black;
}

.help-text {
    margin: 0;
    font-size: 0.95rem;
}

.leaderboard-box {
    background: white;
    border: 4px solid black;
    border-radius: 10px;
    padding: 12px;
}

.leaderboard-columns {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.leaderboard-columns ol {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: monospace;
}