.game-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    font-size: 1.5rem;
}
.cell-0 { background: #374151; }
.cell-2 { background: #fef3c7; color: #1f2937; }
.cell-4 { background: #fde68a; color: #1f2937; }
.cell-8 { background: #fbbf24; color: white; }
.cell-16 { background: #f59e0b; color: white; }
.cell-32 { background: #f97316; color: white; }
.cell-64 { background: #ef4444; color: white; }
.cell-128 { background: #dc2626; color: white; font-size: 1.25rem; }
.cell-256 { background: #b91c1c; color: white; font-size: 1.25rem; }
.cell-512 { background: #991b1b; color: white; font-size: 1.25rem; }
.cell-1024 { background: #7f1d1d; color: white; font-size: 1rem; }
.cell-2048 { background: #450a0a; color: white; font-size: 1rem; }
.ttt-cell {
    aspect-ratio: 1;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.ttt-cell:hover:not(.ttt-cell-x):not(.ttt-cell-o) {
    background: #4b5563;
    transform: scale(1.05);
}
.ttt-cell-x {
    color: #ef4444;
}
.ttt-cell-o {
    color: #3b82f6;
}
.ttt-cell-winner {
    background: #10b981 !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.game-container {
    animation: slideIn 0.3s ease-out;
}
@media (max-width: 768px) {
    .game-cell {
        font-size: 1.25rem;
    }
    .ttt-cell {
        font-size: 2rem;
    }
    .text-5xl {
        font-size: 2.5rem;
    }
    .grid-cols-4 {
        gap: 0.25rem;
    }
}
.hover-scale {
    transition: transform 0.2s ease-in-out;
}
#support-messages::-webkit-scrollbar {
    width: 4px;
}
#support-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
#admin-chat-messages::-webkit-scrollbar {
    width: 4px;
}
#admin-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hover-scale:hover {
    transform: scale(1.02);
}
.fade-in {
    animation: fadeIn 0.5s ease-out;
}
.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}
.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}
.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.memory-card-front {
    background: #374151; 
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.memory-card-back {
    background: #4b5563; 
    transform: rotateY(180deg);
}
.memory-card.matched .memory-card-back {
    background: #059669; 
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
@media (max-width: 640px) {
    .memory-card-front, .memory-card-back {
        font-size: 1.5rem;
    }
}
.mole-hole {
    box-shadow: inset 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}
.mole.up {
    top: 15%;
}
.mole.hit {
    transform: scale(0.8) translateY(20px);
    opacity: 0.5;
}
body.neon {
    background: linear-gradient(135deg, #000428, #004e92);
}
body.neon .bg-white\/10 { background: rgba(0, 255, 255, 0.05); border-color: rgba(0, 255, 255, 0.2); }
body.neon .text-white { color: #0ff; text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
body.retro {
    background: #222;
    font-family: 'Courier New', Courier, monospace;
}
body.retro .backdrop-blur-md { backdrop-filter: none; }
body.retro .rounded-xl { border-radius: 0; border: 2px solid white; }
body.cyberpunk {
    background: linear-gradient(135deg, #2b033d, #000);
}
body.cyberpunk .bg-white\/10 { background: rgba(255, 0, 255, 0.1); border-left: 4px solid #f0f; }
.ms-cell {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    background: #4b5563;
    border-radius: 4px;
    transition: all 0.1s;
}
.ms-cell.revealed { background: #1f2937; cursor: default; }
.ms-cell.mine { background: #ef4444; }
.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

