
/* ============================================================
   --- MOBİL DÜZENLEMELER (RESPONSIVE) ---
   ============================================================ */
@media (max-width: 768px) {
    /* Başlıklar küçültüldü */
    .game-title { font-size: 3.5em; letter-spacing: 4px; }
    .selection-title { font-size: 1.8em; margin-bottom: 20px; }
	
	.name-title-glow {
    font-family: 'Cinzel', serif;
    font-size: 2.25rem;
    color: #f0e68c;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(240, 230, 140, 0.5), 2px 2px 4px #000;
    margin: 0;
}
	
	#class-selection-screen, #basic-skill-selection-screen {
        justify-content: flex-start !important; /* Yukarıdan başla */
        padding: 60px 10px 40px 10px !important; /* Üstten ve alttan pay bırak */
        overflow-y: scroll !important; /* Kaydırmayı zorla */
    }

    /* Class Seçim Kartları Mobilde Alt Alta ve Daha Küçük */
    .class-cards-container { 
        flex-direction: column; 
        align-items: center; 
        gap: 20px; 
        padding-top: 20px;
    }

    .class-card { 
        max-width: 80%; 
        width: 90%; 
        min-height: unset; 
        height: auto; 
        padding: 15px;
		flex-shrink:0;
    }

    /* MOBİLDE RESİM BOYUTUNU KISITLAYAN EN ÖNEMLİ YER */
    .class-image-box { 
        height: 200px; /* Dev gibi olmasını engelleyen yükseklik */
    }

    .class-info h2 { font-size: 1.1em; margin: 5px 0; }
    .class-info p { font-size: 0.8em; height: auto; margin-bottom: 10px; }
    .class-stats-preview { margin: 5px 0; font-size: 0.75em; }

    /* Skill Seçim Ekranı Mobilde */
    /* 1. Ekranı Aşağı Çek ve Ortalı Görünüm Sağla */
    #basic-skill-selection-screen {
        padding-top: 70px !important; /* Üst barın çok daha altına aldık */
        padding-left: 10px !important;
        padding-right: 10px !important;
        justify-content: flex-start !important;
        height: 100%;
        overflow-y: auto !important;
    }

    /* Başlık ve Uyarı Metinlerini Küçülterek Yer Kazanalım */
    #basic-skill-selection-screen h1 {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
        letter-spacing: 2px !important;
    }

    #basic-skill-selection-screen p {
        font-size: 0.6rem !important;
        margin-bottom: 10px !important;
        line-height: 1.2 !important;
    }

    /* 2. Sütun Başlıklarını Hizala (Secondary Defense'in kaymasını önler) */
    .selection-column h3 {
        font-size: 0.65rem !important;
        margin-bottom: 12px !important;
        min-height: 35px; /* İki başlığı da aynı yüksekliğe zorlar */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.1;
    }

    .split-selection-container {
        gap: 8px !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* 3. Skill Kartları - Metinlerin Kesilmesini Kökten Çöz */
    .selection-card {
        width: 100% !important;
        min-height: 140px !important; /* İçeriğe göre uzasın */
        height: auto !important;
        padding: 10px 6px !important;
        gap: 6px !important;
        display: flex !important;
        flex-direction: column !important; /* Mobilde ikon üstte, metin altta daha çok yer açar */
        align-items: center !important;
        text-align: center !important;
    }

    .selection-card img {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    /* İsim ve Alt Çizgi */
    .selection-card h4 {
        font-size: 0.7rem !important;
        margin-bottom: 5px !important;
        border-bottom: 1px solid rgba(240, 230, 140, 0.4);
        padding-bottom: 3px;
        width: 100%; /* Çizgi kartı boydan boya sarsın */
        display: block !important;
    }

    /* Açıklama Metni (KESİLMEYİ ENGELLEYEN KISIM) */
    .selection-card small {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
        white-space: normal !important; /* Metnin alt satıra geçmesini sağlar */
        overflow: visible !important;   /* Taşan metni gizlemez */
        text-overflow: clip !important; /* Üç noktayı kaldırır */
        display: block !important;
        height: auto !important;
        -webkit-line-clamp: unset !important; /* Satır kısıtlamasını kaldırır */
    }

    /* 4. Alt Buton */
    .selection-footer {
        margin-top: 20px !important;
        padding-bottom: 40px !important;
    }

    #btn-confirm-basic-skills {
        width: 90% !important;
        height: 45px !important;
        font-size: 0.9rem !important;
    }

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(240, 230, 140, 0.5), 4px 4px 0px #4a3b2a; }
    to { text-shadow: 0 0 35px rgba(240, 230, 140, 0.9), 4px 4px 0px #4a3b2a; transform: scale(1.02); }
}
.btn-new-profile {
    font-size: 1rem !important;
}

.name-confirm-btn {
    width: 100% !important;
    height: 65px !important;
    font-size: 1.3rem !important;
    letter-spacing: 3px !important;
}

/* 1. Butonların yan yana durduğu kapsayıcıyı daralt */
    .profile-actions {
        gap: 5px !important; /* Butonlar arası boşluğu mobilde azalttık */
        flex-shrink: 0;      /* Butonların ezilmesini engelledik */
    }

    /* 2. Sadece bu alandaki butonlara özel boyut ver */
    .profile-actions .npc-btn {
        /* Genişliği % olarak değil, sabit pikselle kontrol etmek mobilde daha güvenlidir */
        width: 55px !important; 
        height: 32px !important;
        
        /* Yazıların sığması için padding ve font ayarı */
        padding: 0 !important; 
        font-size: 0.65rem !important;
        
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        letter-spacing: 0px; /* Yer kazanmak için harf arasını kapattık */
    }

    /* 3. İsmin butonları itmesini engellemek için isim alanını sınırla */
    .profile-name {
        font-size: 0.9rem !important;
        max-width: 140px; /* Uzun isimlerde butonların ekran dışına taşmasını önler */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

	 /* 1. Tüm içeriği dikeyde tam ortalıyoruz */
    .menu-overlay {
        justify-content: center !important; /* İçeriği merkeze çeker */
        padding: 2% !important;
    }

    /* 2. Logo ve başlık alanını daraltıyoruz */
    .logo-area {
        margin-bottom: 3% !important;
    }

    /* 3. Butonların toplandığı ana kutudaki sabit boşluğu siliyoruz */
    .menu-actions {
        /* SİLİNDİ: margin-top: 60px; (Aşağı kaymanın ana sebebi buydu) */
        margin-top: 5% !important; /* Sabit değer yerine % değerine geçildi */
        gap: 12px !important;     /* Butonlar arası boşluğu daralttık */
        width: 100% !important;
    }

    /* 4. Ana Butonların (Başla / Devam Et) boyutlarını esnetiyoruz */
    .menu-main-btn {
        width: 85%; /* Ekran genişliğine göre ayarlanır */
        /* SİLİNDİ: height: 75px; */
        height: 12% !important; /* Ekran yüksekliğinin %12'si kadar olsun */
        min-height: 50px !important; /* Çok ezilmesini engeller */
        font-size: 1.1rem !important;
        margin-left: 0 !important; /* Ortalamayı bozmasın */
		background: linear-gradient(to bottom, #8b4513, #5d2e0a) !important;
		border: 3px solid #f0e68c !important;
		color: #fff !important;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.2) !important;
		cursor: pointer;
		transition: all 0.3s ease !important;
		text-shadow: 2px 2px 4px #000;
    }

    /* 5. Alt Butonların (Profil / Ayarlar / Çıkış) boyutları */
    .menu-secondary-btn {
        width: 70% !important;
        height: 40px !important; /* Küçük butonlarda sabit değer mobilde daha stabildir */
        font-size: 0.8rem !important;
        margin-left: 0 !important;
    }

    .menu-sub-actions {
        width: 100%;
        flex-direction: column; /* Mobilde yan yana yerine alt alta daha güvenli */
        align-items: center;
        gap: 8px;
    }

    /* 6. Aktif Profil Kutusu */
    .active-profile-box {
        margin: 2% auto !important; /* Otomatik orta payı */
        padding: 5px 15px !important;
        width: auto !important;
    }
	/* 1. Oyun İçi Menü Kapsayıcısını Ortalıyoruz */
	#in-game-menu-modal .stat-window {
    width: 85vw !important; /* Ekran genişliğine göre kutuyu ayarla */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Tüm içeriği yatayda ortalar */
    padding: 20px !important;
	}

	/* 2. Menü İçindeki Tüm Butonları Eşitliyoruz */
	#in-game-menu-modal button {
    /* KRİTİK: Soldaki o çirkin boşluğu (margin-left: 8px) tamamen siliyoruz */
    margin-left: 0 !important; 
    margin-right: 0 !important;
    
    /* Genişliği kutunun içine tam oturtuyoruz */
    width: 100% !important; 
    
    /* Butonların mobilde devleşmesini engellemek için yükseklik ve font ayarı */
    min-height: 45px !important;
    height: auto !important;
    font-size: 0.9rem !important;
    padding: 10px !important;
	}

	/* 3. "Devam Et" (Main) ve "Diğerleri" (Secondary) arasındaki farkları minimize et */
	#in-game-menu-modal .menu-main-btn {
    /* Gölge ve tasarım farkı kalsın ama boyutlar aynı olsun */
    margin-bottom: 10px !important;
	}

	#in-game-menu-modal .menu-secondary-btn {
    margin-top: 5px !important;
	}
}