/* Snake Game Styles */
.game-page {
    min-height: 100vh;
    padding: 100px 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.game-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-header h1 {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.game-header p {
    color: var(--dark-text);
    font-size: 1.1rem;
}

.game-info-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.15);
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.7;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-pink);
}

.game-container-wrapper {
    position: relative;
    background: var(--white);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
    margin-bottom: 1.5rem;
}

#gameCanvas {
    display: block;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f8 0%, #f8f0ff 100%);
}

.game-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
}

.overlay-content h2 {
    font-size: 2rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.control-row {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 15px;
    background: var(--white);
    color: var(--primary-pink);
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:active {
    transform: scale(0.95);
    background: var(--gradient-main);
    color: var(--white);
}

.game-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-tips {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.1);
    max-width: 500px;
    text-align: center;
}

.game-tips h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.game-tips ul {
    list-style: none;
    text-align: left;
}

.game-tips li {
    padding: 0.4rem 0;
    color: var(--dark-text);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.game-tips li::before {
    content: '🐍';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .game-header h1 {
        font-size: 2rem;
    }
    
    #gameCanvas {
        width: 320px;
        height: 320px;
    }
    
    .game-info-bar {
        gap: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .game-controls {
        flex-direction: column;
    }
}

@media (pointer: coarse) {
    .mobile-controls {
        display: flex;
    }
}
