.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    touch-action: none;
}

#stats-board {
    width: 600px;
    max-width: 100%;
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #535353;
    font-family: monospace;
}

.canvas-wrapper {
    position: relative;
    border: 1px solid #ccc;
    /* Simple border instead of shadow for classic look */
    border-radius: 4px;
    overflow: hidden;
    background-color: #f7f7f7;
    width: 600px;
    max-width: 100%;
    /* Responsive */
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background-color: #f7f7f7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

#start-screen {
    background-color: transparent;
    color: #535353;
    font-weight: bold;
    font-size: 1.5rem;
    cursor: pointer;
}

#start-screen p {
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#game-over {
    background-color: transparent;
    font-size: 1.5rem;
}

button {
    margin-top: 15px;
    padding: 5px 15px;
    font-size: 1.5rem;
    background-color: transparent;
    color: #535353;
    border: 2px solid #535353;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

button:active {
    background-color: #eee;
}

.hidden {
    display: none !important;
}

.controls-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #666;
    margin-top: 15px;
}