/* Tetris Loader Styles */
.tetris-container {
    padding: 4px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 209, 255, 0.2);
    display: inline-block;
}

body.dark-theme .tetris-container {
    background: #00D1FF;
    border-color: rgba(255, 255, 255, 0.2);
}

.tetris-grid {
    display: flex;
    flex-direction: column;
}

.tetris-row {
    display: flex;
}

.tetris-cell {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: white;
    transition: all 0.1s ease;
}

body.dark-theme .tetris-cell {
    background: #00D1FF;
    border-color: rgba(255, 255, 255, 0.1);
}

.tetris-cell.filled {
    background: black;
    border-color: black;
}

body.dark-theme .tetris-cell.filled {
    background: white;
    border-color: white;
}

.tetris-cell.clearing {
    animation: tetris-pulse 0.2s infinite;
}

@keyframes tetris-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
    background: #ffffff;
}

body.dark-theme .loader-overlay {
    background: #8000ff;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-text {
    font-family: monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: rgba(128, 0, 255, 0.8);
}

body.dark-theme .loader-text {
    color: rgba(255, 255, 255, 0.8);
}

.loader-progress-container {
    width: 12rem;
    height: 4px;
    background: rgba(128, 0, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

body.dark-theme .loader-progress-container {
    background: rgba(255, 255, 255, 0.2);
}

.loader-progress-bar {
    height: 100%;
    background: #8000ff;
    width: 0%;
    transition: width 0.3s ease;
}

body.dark-theme .loader-progress-bar {
    background: #ffffff;
}

.loader-percentage {
    font-size: 0.75rem;
    color: rgba(128, 0, 255, 0.5);
}

body.dark-theme .loader-percentage {
    color: rgba(255, 255, 255, 0.5);
}