/* UI Cho Dê Ăn - Glassmorphism */
.sokoban-container {
    max-width: 500px; 
    margin: 80px auto 20px; 
    padding: 20px; 
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-radius: 24px; 
    border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sokoban-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.level-indicator {
    font-size: 20px;
    font-weight: 900;
    color: #f1c40f;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.controls-top {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    outline: none;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.game-board {
    display: grid;
    gap: 2px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    touch-action: none; /* Prevent scroll on swipe */
}

.grid-cell {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
    transition: background 0.3s;
}

/* Cell types */
.cell-wall {
    background: transparent;
    text-shadow: 0 3px 5px rgba(0,0,0,0.5);
}

.cell-floor {
    background: rgba(144, 238, 144, 0.1); /* light green tint */
}

.cell-target {
    background: rgba(241, 196, 15, 0.1); /* light yellow tint */
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.3);
}

/* Animations */
@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.emoji-sprite {
    animation: popIn 0.3s ease-out;
    user-select: none;
    -webkit-user-select: none;
}

.player-sprite {
    z-index: 10;
    position: relative;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.4));
    transition: transform 0.1s;
}

.box-sprite {
    z-index: 5;
    position: relative;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.target-sprite {
    z-index: 2;
    opacity: 0.8;
}

.box-on-target {
    animation: popIn 0.4s ease-out, glowPulse 2s infinite alternate;
    z-index: 6;
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.5)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(46, 204, 113, 1)); transform: scale(1.1); }
}

@media (max-width: 500px) {
    .grid-cell {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
@media (max-width: 400px) {
    .grid-cell {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}
\n.goat-particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; animation: explode-particle 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }\n@keyframes explode-particle { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; } }\n