@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&display=swap');

body {
    overflow: hidden;
    touch-action: none;
    font-family: 'Nunito', sans-serif;
    background-color: #064e3b; /* Base Emerald 900 */
}

#root {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #064e3b;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    transform: translateZ(0); 
    will-change: transform;
}

.btn-action-3d {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
    color: #78350f;
    box-shadow: 0 4px 0 0 #d97706, 0 8px 15px rgba(0,0,0,0.2);
    border: 1px solid #fcd34d;
}
.btn-action-3d:active:not(:disabled) {
    transform: translateY(4px) translateZ(0);
    box-shadow: 0 0 0 0 #d97706, 0 4px 5px rgba(0,0,0,0.1);
}

.btn-magic-3d {
    background: linear-gradient(to bottom, #c084fc, #a855f7);
    color: #4a044e;
    box-shadow: 0 4px 0 0 #7e22ce, 0 8px 15px rgba(0,0,0,0.2);
    border: 1px solid #e879f9;
}
.btn-magic-3d:active:not(:disabled) {
    transform: translateY(4px) translateZ(0);
    box-shadow: 0 0 0 0 #7e22ce, 0 4px 5px rgba(0,0,0,0.1);
}

.cell-base {
    border-radius: 6px; 
    box-shadow: 0 2px 0 0 rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    transform: translateZ(0);
}
.cell-empty {
    background-color: rgba(255,255,255,0.95);
    color: transparent; /* Huruf disembunyikan */
}
.cell-correct {
    background: linear-gradient(to bottom, #34d399, #10b981);
    color: white;
    box-shadow: 0 2px 0 0 #059669;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cell-flash {
    background-color: #fde047; 
    color: #854d0e;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5), 0 2px 0 0 #ca8a04;
    transform: scale(1.05) translateZ(0);
    z-index: 10;
}

@keyframes popIn {
    0% { transform: scale(0.8) translateZ(0); opacity: 0; }
    50% { transform: scale(1.05) translateZ(0); opacity: 1; }
    100% { transform: scale(1) translateZ(0); opacity: 1; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0) translateZ(0); }
    25% { transform: translateX(-4px) translateZ(0); }
    75% { transform: translateX(4px) translateZ(0); }
}