:root {
    --accent: #ff9800;
    --bg-dark: #050505;
    --panel-bg: rgba(15, 15, 20, 0.85);
}

* { box-sizing: border-box; outline: none; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- RESPONSIVE SPLASH SCREEN --- */
#splash {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease;
}

.splash-container { position: relative; text-align: center; z-index: 10; padding: 20px; }

.logo-wrapper { position: relative; margin-bottom: 40px; }
.mgl-main-logo { 
    width: clamp(80px, 20vw, 140px); 
    filter: drop-shadow(0 0 30px rgba(255,152,0,0.3)); 
    animation: mglPulse 1.5s infinite ease-in-out;
}

.logo-scanner { 
    position: absolute; top: 0; left: 0; width: 100%; height: 4px; 
    background: var(--accent); box-shadow: 0 0 15px var(--accent);
    animation: scan 2s infinite ease-in-out;
}

.loader-v3 { 
    width: clamp(150px, 50vw, 280px); 
    height: 3px; background: #111; border-radius: 10px; 
    position: relative; overflow: hidden; margin: 0 auto;
}

.loader-fill { 
    width: 0%; height: 100%; background: var(--accent); 
    box-shadow: 0 0 15px var(--accent); 
    animation: loadFill 2.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.loader-status-text { 
    font-family: 'Syncopate'; font-size: clamp(7px, 1.5vw, 9px); 
    letter-spacing: 5px; color: #444; margin-top: 25px;
}

/* --- APP LAYOUT --- */
#app { 
    height: 100vh; display: flex; flex-direction: column; 
    position: relative; transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hidden { opacity: 0 !important; transform: scale(1.05); }

.bg-layer {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.35) blur(15px); z-index: -2;
    transition: background-image 0.5s ease-in-out, transform 0.8s ease;
    transform: scale(1.05);
}

.scene-overlay {
    position: absolute; inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,1) 5%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

/* --- RESPONSIVE HEADER --- */
.top-nav {
    height: clamp(100px, 20vh, 200px); 
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 80px);
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
    z-index: 100;
}

.brand-group { display: flex; align-items: center; gap: 15px; }
.brand-group img { width: clamp(25px, 5vw, 45px); }
.brand-main { display: block; font-size: clamp(16px, 3vw, 24px); font-weight: 900; }
.brand-sub { font-size: clamp(10px, 1.5vw, 14px); color: var(--accent); }

.game-selector-container {
    display: flex; gap: clamp(15px, 3vw, 45px);
    padding: clamp(10px, 2vw, 25px) clamp(20px, 4vw, 50px);
    background: var(--panel-bg); backdrop-filter: blur(20px);
    border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-icon-xl {
    width: clamp(50px, 10vw, 100px); 
    height: clamp(50px, 10vw, 100px);
    border-radius: 50%; border: 3px solid transparent;
    cursor: pointer;
    transition: 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-icon-xl img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.game-icon-xl.active { transform: scale(1.2); border-color: var(--accent); box-shadow: 0 0 40px var(--accent); }

.server-status {
    background: rgba(0,0,0,0.6); padding: 8px 15px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px; font-size: clamp(10px, 1.2vw, 14px);
}
.status-dot { width: 8px; height: 8px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; animation: blink 2s infinite; }

/* --- CONTENT BOX RESPONSIVE --- */
.game-content { 
    flex: 1; display: flex; align-items: center; 
    padding: 0 clamp(20px, 8vw, 120px); 
}

h1 { font-size: clamp(40px, 10vw, 110px); font-weight: 900; margin: 0; letter-spacing: -4px; line-height: 0.85; }
.game-tags { display: flex; gap: 8px; margin: 15px 0; flex-wrap: wrap; }
.game-tags span { background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 6px; font-size: clamp(9px, 1vw, 12px); }
p { max-width: 550px; font-size: clamp(14px, 2vw, 20px); color: #aaa; margin-bottom: 30px; }

/* --- BUTTONS --- */
.btn-mega-play {
    background: var(--accent); color: #000; border: none;
    padding: clamp(15px, 2.5vw, 25px) clamp(40px, 8vw, 100px);
    font-size: clamp(16px, 2.5vw, 26px); font-weight: 900;
    border-radius: 12px; cursor: pointer; transition: 0.2s;
}

.btn-mega-play:hover { transform: translateY(-5px); box-shadow: 0 15px 40px var(--accent); }

/* DEAKTİF BUTON TASARIMI */
.btn-mega-play.btn-deactive {
    background: #1a1a1a !important;
    color: #444 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #222;
}

/* --- REVISED CENTERED FOOTER --- */
.launcher-footer {
    position: absolute; bottom: 25px; left: 0; width: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; pointer-events: none;
}

.launcher-footer p {
    margin: 0; padding: 0; color: rgba(255, 255, 255, 0.2);
    font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
    font-weight: 300; text-align: center; line-height: 1.5;
}

.launcher-footer b { color: rgba(255, 255, 255, 0.4); font-weight: 700; margin-left: 2px; }

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 768px) {
    .top-nav { flex-direction: column; height: auto; padding: 20px; gap: 20px; }
    .status-container { display: none; }
    .game-content { justify-content: center; text-align: center; padding-bottom: 80px; }
    .game-tags { justify-content: center; }
    h1 { letter-spacing: -2px; }
}

/* --- ANIMATIONS --- */
@keyframes mglPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes scan { 0%, 100% { top: 0%; } 50% { top: 100%; } }
@keyframes loadFill { to { width: 100%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }