/* ============================================
   SNAKE - GAME-SPECIFIC STYLES
   ============================================
   Only contains overrides for Snake game.
   Common styles are in ../../css/styles.css
   ============================================ */

/* Snake uses lime green as accent color */
:root {
    --accent-color: lime;
    --accent-hover: #00cc00;
}

/* Snake has a larger canvas (800x800) */
.score-board {
    width: 1050px;
    justify-content: space-between;
}

/* Match leaderboard height to canvas */
.leaderboard {
    height: 728px;
}

/* Touch Controls */
.touch-controls {
    display: none; /* Hidden on desktop */
    margin-top: 15px;
}

.touch-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 5px;
    justify-content: center;
}

.touch-btn {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    background: rgba(0, 255, 0, 0.2);
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.touch-btn:active {
    background: rgba(0, 255, 0, 0.5);
    transform: scale(0.95);
}

.touch-btn.empty {
    visibility: hidden;
}

.touch-btn.center {
    background: rgba(0, 255, 0, 0.1);
    border-style: dashed;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .score-board {
        width: 100%;
        max-width: 600px;
    }

    .leaderboard {
        height: auto;
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .touch-controls {
        display: block;
    }
}

@media (max-width: 480px) {
    .touch-controls-grid {
        grid-template-columns: repeat(3, 55px);
        grid-template-rows: repeat(3, 55px);
    }

    .touch-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}
