:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --accent: #00cec9;
    --background: #0a0a0f;
    --surface: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #707080;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
    line-height: 1.5;
}

.unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.unity-canvas {
    width: 100%;
    height: 100%;
    background: #000;
    outline: none;
}

.loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Sade arka plan - hareket eden efekt kaldırıldı */
.loading-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    text-align: center;
}

/* Büyük Logo */
.game-logo {
    width: 320px;
    height: 160px;
    margin-bottom: 3rem;
    background-image: var(--logo-image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* Küçük başlık */
.loading-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: spin 1s linear infinite;
}

.loading-percentage {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.loading-bar-container {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.loading-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Animasyonlar */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 2rem;
    }
    
    .game-logo {
        width: 280px;
        height: 140px;
        margin-bottom: 2.5rem;
    }
    
    .loading-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .loading-percentage {
        font-size: 2.4rem;
    }
    
    .loading-bar-container {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-content {
        padding: 1.5rem;
    }
    
    .game-logo {
        width: 240px;
        height: 120px;
        margin-bottom: 2rem;
    }
    
    .loading-title {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .loading-percentage {
        font-size: 2rem;
    }
    
    .loading-bar-container {
        width: 200px;
    }
    
    .loading-text {
        font-size: 0.85rem;
    }
}

/* Koyu tema optimizasyonu */
body.dark {
    color-scheme: dark;
}

/* Unity mobil sınıfı için */
.unity-mobile .loading-content {
    max-width: 95%;
}