/* Game Overlay Container */
.game-overlay {
    max-width: 520px;
    margin: 20px auto;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef2f4 0%, #ffe4e9 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

/* Game Title */
.game-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

/* Game Instructions */
.game-instructions {
    font-family: 'Quicksand', sans-serif;
    color: #5d4037;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Game Canvas */
#game-canvas {
    border: 4px solid #ffb3c6;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #2d4a3e; /* Dark olive */
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    height: auto;
}

/* Game Controls */
.game-controls {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(2, 60px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.control-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffb3c6 0%, #ff8fa3 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
}

.control-btn:active {
    transform: translateY(1px);
}

/* Arrow Button Positioning */
#btn-up { grid-column: 2; grid-row: 1; }
#btn-left { grid-column: 1; grid-row: 2; }
#btn-down { grid-column: 2; grid-row: 2; }
#btn-right { grid-column: 3; grid-row: 2; }

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    font-family: 'Quicksand', sans-serif;
    color: #5d4037;
}

#move-count { font-weight: 700; }

.reset-btn {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #6b8e23 0%, #8fbc8f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
}

@media (max-width: 600px) {
    .game-overlay { padding: 16px; }
    .game-title { font-size: 1.6rem; }
}

