/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tetris-logo {
    position: relative;
    width: 200px;
    height: 120px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tetris-block {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 1px solid var(--accent-light);
    opacity: 0;
    transform: translateY(-200px);
}

/* E harfi - ortalanmış */
.block-e1 { left: 40px; top: 20px; animation: dropBlock 0.4s 0.05s forwards; }
.block-e2 { left: 40px; top: 40px; animation: dropBlock 0.4s 0.1s forwards; }
.block-e3 { left: 40px; top: 60px; animation: dropBlock 0.4s 0.15s forwards; }
.block-e4 { left: 40px; top: 80px; animation: dropBlock 0.4s 0.2s forwards; }
.block-e5 { left: 40px; top: 100px; animation: dropBlock 0.4s 0.25s forwards; }
.block-e6 { left: 60px; top: 20px; animation: dropBlock 0.4s 0.3s forwards; }
.block-e7 { left: 80px; top: 20px; animation: dropBlock 0.4s 0.35s forwards; }
.block-e8 { left: 60px; top: 60px; animation: dropBlock 0.4s 0.4s forwards; }
.block-e9 { left: 60px; top: 100px; animation: dropBlock 0.4s 0.45s forwards; }
.block-e10 { left: 80px; top: 100px; animation: dropBlock 0.4s 0.5s forwards; }

/* Y harfi - ortalanmış */
.block-y1 { left: 100px; top: 20px; animation: dropBlock 0.4s 0.55s forwards; }
.block-y2 { left: 100px; top: 40px; animation: dropBlock 0.4s 0.6s forwards; }
.block-y3 { left: 120px; top: 60px; animation: dropBlock 0.4s 0.65s forwards; }
.block-y4 { left: 120px; top: 80px; animation: dropBlock 0.4s 0.7s forwards; }
.block-y5 { left: 120px; top: 100px; animation: dropBlock 0.4s 0.75s forwards; }
.block-y6 { left: 140px; top: 20px; animation: dropBlock 0.4s 0.8s forwards; }
.block-y7 { left: 140px; top: 40px; animation: dropBlock 0.4s 0.85s forwards; }

@keyframes dropBlock {
    0% {
        transform: translateY(-200px);
        opacity: 0;
    }
    70% {
        transform: translateY(5px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInText 0.5s 1.2s forwards;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
    animation: loadingProgress 3s ease-out forwards;
}

@keyframes loadingProgress {
    to { width: 100%; }
}