/* Game Page 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 {
    background: var(--white);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
    margin-bottom: 1.5rem;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    background: var(--gradient-soft);
    padding: 8px;
    border-radius: 15px;
}

.tile {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.3);
}

.tile.selected {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--primary-pink), 0 5px 15px rgba(255, 107, 157, 0.4);
    animation: selectedPulse 0.5s ease infinite alternate;
}

@keyframes selectedPulse {
    from { box-shadow: 0 0 0 3px var(--primary-pink), 0 5px 15px rgba(255, 107, 157, 0.4); }
    to { box-shadow: 0 0 0 5px var(--accent-purple), 0 5px 20px rgba(179, 136, 255, 0.5); }
}

.tile.matched {
    animation: matchPop 0.4s ease forwards;
}

@keyframes matchPop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.tile.dropping {
    animation: dropIn 0.3s ease;
}

@keyframes dropIn {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tile.swapping {
    transition: transform 0.25s ease;
}

.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;
}

/* Score popup */
.score-popup {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-pink);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: scoreFloat 1s ease forwards;
    z-index: 100;
}

@keyframes scoreFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}

/* Responsive */
@media (max-width: 600px) {
    .game-header h1 {
        font-size: 2rem;
    }
    
    .tile {
        width: 40px;
        height: 40px;
    }
    
    .game-board {
        gap: 3px;
        padding: 6px;
    }
    
    .game-info-bar {
        gap: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .game-controls {
        flex-direction: column;
    }
}
