/* Styles specific to Restaurant Rush */
#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ensure game can be seen on mobile */
    max-width: 100vw; 
}

/* This is the game area, hidden by default */
.game-board {
    background: #000;
    border: 8px solid #21262d;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 10px;
    display: none; /* Hidden by default */
    position: relative; /* For overlays */
    width: 100%;
    /* Calculate max-width based on canvas: 13 cols * 40px + padding + border */
    max-width: 564px; 
}

.game-ui {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.7rem; 
    text-shadow: 2px 2px #000; /* Pixel text */
    flex-wrap: wrap;
}

.player-ui {
    min-width: 140px; 
    margin: 2px 5px;
}

.player-ui-p1 { color: #ef4444; } /* Pong P1 red */
.player-ui-p2 { color: #3b82f6; } /* Pong P2 blue */

.game-ui span {
    color: #ff0; /* Bright Yellow */
    text-shadow: 0 0 5px #ff0;
}

canvas#gameCanvas {
    background-color: #111; /* Dark floor */
    display: block;
    border: 2px solid #30363d;
    /* Responsive canvas */
    max-width: 100%;
    height: auto;
    width: 100%; 
    /* 13 cols wide, 15 rows tall */
    aspect-ratio: 13 / 15;
}

/* Base overlay style from Pong */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.8); /* Pong overlay bg */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    padding: 10px;
}

/* Start screen is visible by default */
#gameStartScreen {
    display: flex;
}

/* Game over screen is hidden */
#gameOverScreen {
    display: none;
}

#finalScore {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

#winner {
    font-size: 1.2rem;
    color: #ff0;
    text-shadow: 0 0 10px #ff0;
    margin-bottom: 30px;
}

/* Screen shake animation */
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 3px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-3px, 3px); }
    100% { transform: translate(0, 0); }
}

.shake {
    animation: shake 0.2s linear;
}
