
/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBİL TASARIM - DOKUNMATİK EKRANLAR (PORTRAIT)
   Ekran döndürülür, ana lobi 5 kart sığar, elite'de kaydırma var
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBİL TASARIM - DOKUNMATİK EKRANLAR (LANDSCAPE)
   Ekran döndürülür, ana lobi 5 kart sığar, elite'de kaydırma var
   ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) {

    /* === LOBİ BAŞLIK === */
    #overlay h1 {
        font-size: clamp(1rem, 4vw, 1.5rem) !important;
        letter-spacing: 1px;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        margin-top: env(safe-area-inset-top) !important;
    }

    /* Mini tutorial ve guide link butonu mobilde görünür, daha küçük */
    .mini-tutorial {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        padding: 6px 10px !important;
        border-radius: 8px !important;
        background: rgba(0, 20, 40, 0.6) !important;
        border: 1px solid rgba(0, 234, 255, 0.2) !important;
        margin-bottom: 3px !important;
    }

    .tut-item {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #ccc !important;
        font-size: clamp(0.55rem, 1.2vw, 0.8rem) !important;
    }

    .tut-item i {
        color: #00eaff !important;
        font-size: clamp(0.7rem, 1.5vw, 1rem) !important;
    }

    .key-box {
        border: 1px solid #fff !important;
        padding: 1px 4px !important;
        border-radius: 3px !important;
        font-size: clamp(0.5rem, 1vw, 0.7rem) !important;
        font-weight: bold !important;
        color: #fff !important;
    }

    .guide-link-btn {
        display: block !important;
        background: transparent !important;
        border: none !important;
        color: #888 !important;
        font-size: clamp(0.55rem, 1.2vw, 0.8rem) !important;
        text-decoration: underline !important;
        cursor: pointer !important;
        font-family: 'Orbitron' !important;
        letter-spacing: 1px !important;
        transition: 0.3s !important;
        margin-bottom: 3px !important;
    }

    .guide-link-btn:hover {
        color: #00eaff !important;
        text-shadow: 0 0 5px #00eaff !important;
    }

    /* === HANGAR WRAPPER & CONTAINER === */
    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left) !important;
        margin: 0 auto !important;
        position: relative !important;
        margin-top: -10px !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Ana lobi - Responsive Scrolling */
    .hangar-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        /* Start'a çekildi, scroll için */
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: clamp(8px, 1.5vw, 15px) !important;
        padding: 10px 20px !important;
        padding-top: 15px !important;
        overflow-x: auto !important;
        /* Her zaman scroll açık, sığmazsa kayar */
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        /* Scrollbar'ı gizle */
    }

    .hangar-container::-webkit-scrollbar {
        display: none;
    }

    /* Elite modda kaydırma zaten aktif */
    .hangar-container.elite-mode {
        justify-content: flex-start !important;
    }

    /* === GEMİ KARTLARI - Daha Ölçeklenebilir === */
    .ship-card {
        /* Genişlik: Final reduction for 720x540 */
        width: clamp(100px, 15vw, 170px) !important;
        min-width: clamp(100px, 15vw, 170px) !important;
        max-width: 180px !important;
        height: auto !important;
        /* Yükseklik: Final reduction */
        min-height: clamp(130px, 40vh, 250px) !important;
        max-height: 280px !important;

        padding: clamp(4px, 1vw, 12px) !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        display: flex !important;
        flex-direction: column !important;

        /* Kartlar arası mesafe için margin (gap zaten var ama garanti olsun) */
        margin-right: 0 !important;
    }

    .ship-card:last-child {
        margin-right: 0 !important;
        /* Son karttan sonra boşluk */
    }

    .ship-icon {
        width: clamp(40px, 10vw, 70px) !important;
        height: clamp(40px, 10vw, 70px) !important;
        margin-bottom: 6px !important;
        align-self: center !important;
    }

    .ship-icon i {
        font-size: clamp(24px, 5vw, 40px) !important;
    }

    .ship-name {
        font-size: clamp(0.9rem, 2.2vw, 1.2rem) !important;
        margin-bottom: 5px !important;
        white-space: nowrap !important;
    }

    .ship-desc {
        font-size: clamp(0.55rem, 1.4vw, 0.8rem) !important;
        height: clamp(35px, 9vh, 60px) !important;
        padding: 4px 6px !important;
        margin-bottom: 6px !important;
        line-height: 1.3 !important;
        overflow-y: auto !important;
        /* Taşan yazı olursa scroll */
    }

    .stat-container {
        padding: 4px !important;
        gap: 2px !important;
        flex-grow: 1 !important;
        justify-content: center !important;
    }

    .stat-row {
        gap: 4px !important;
    }

    .stat-label {
        font-size: clamp(0.45rem, 1.1vw, 0.65rem) !important;
        min-width: 35px !important;
    }

    .stat-bar-bg {
        height: 4px !important;
    }

    .stat-bar {
        height: 4px !important;
    }

    .ship-price,
    .ship-owned {
        font-size: clamp(0.65rem, 1.8vw, 0.9rem) !important;
        margin-top: 5px !important;
        padding: 4px 8px !important;
    }

    /* === ELITE GATE - Uyumluluk === */
    .elite-gate {
        width: clamp(100px, 14vw, 150px) !important;
        min-width: clamp(100px, 14vw, 150px) !important;
        max-width: 150px !important;
        padding: 10px !important;
    }

    .elite-gate .ship-icon {
        width: clamp(45px, 9vw, 75px) !important;
        height: clamp(45px, 9vw, 75px) !important;
        margin-bottom: 10px !important;
    }

    .elite-gate .ship-icon i {
        font-size: clamp(24px, 4.5vw, 40px) !important;
    }

    .elite-gate .ship-name {
        font-size: clamp(0.7rem, 1.5vw, 0.9rem) !important;
    }

    /* === GERİ BUTONU === */
    #fixed-back-btn {
        position: absolute !important;
        left: 15px !important;
        top: 8px !important;
        padding: 6px 14px !important;
        font-size: clamp(0.7rem, 1.8vw, 0.9rem) !important;
        gap: 6px !important;
        z-index: 250 !important;
        margin-left: env(safe-area-inset-left) !important;
    }

    /* === SCROLL BUTONLARI === */
    #scroll-right-btn,
    #scroll-left-btn {
        display: none !important;
        /* Mobilde touch scroll var, butona gerek yok */
    }

    /* İstenirse yine de gösterilebilir ama karışıklık yaratabilir */

    /* === KULLANICI ADI INPUT === */
    #usernameInput {
        width: clamp(220px, 40vw, 350px) !important;
        padding: clamp(6px, 2vh, 12px) !important;
        font-size: clamp(0.9rem, 2.2vw, 1.2rem) !important;
        margin-top: clamp(4px, 1vh, 8px) !important;
    }

    /* === OYUN MODLARI BUTONLARI === */
    .game-modes-container {
        width: clamp(240px, 45vw, 380px) !important;
        height: clamp(45px, 12vh, 70px) !important;
        margin-top: clamp(4px, 1vh, 8px) !important;
        margin-bottom: 10px !important;
        /* Alttan boşluk */
    }

    .mode-btn {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem) !important;
        padding: clamp(6px, 1.4vh, 9px) clamp(10px, 2vw, 14px) !important;
    }

    .mode-btn i {
        font-size: clamp(0.8rem, 2.2vw, 1.1rem) !important;
        margin-bottom: 2px !important;
    }

    .survival-btn {
        padding-right: 15px !important;
    }

    .tdm-btn {
        padding-left: 15px !important;
    }

    .mode-divider {
        width: 3px !important;
    }

    /* === PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: clamp(0.8rem, 2.2vw, 1rem) !important;
        padding: 6px 14px !important;
        top: 10px !important;
        left: 10px !important;
        margin-left: env(safe-area-inset-left) !important;
    }

    /* === ÜST SAĞ KONTROLLER === */
    .top-right-controls {
        gap: 6px !important;
        top: 10px !important;
        right: 10px !important;
        margin-right: env(safe-area-inset-right) !important;
    }

    .top-right-controls .icon-btn {
        width: clamp(36px, 6.5vw, 48px) !important;
        height: clamp(36px, 6.5vw, 48px) !important;
        font-size: clamp(0.8rem, 2vw, 1.1rem) !important;
    }

    .lang-btn {
        min-width: clamp(55px, 11vw, 75px) !important;
        padding: 0 10px !important;
        font-size: clamp(0.7rem, 1.7vw, 0.9rem) !important;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       SPECIAL FIX FOR SHORT SCREENS (e.g. iPhone SE/8 Landscape 667x375)
       ═══════════════════════════════════════════════════════════════════════ */
    @media (max-height: 380px) {
        #overlay h1 {
            font-size: 1.2rem !important;
            margin-bottom: 2px !important;
        }

        /* Hide tutorial to save space */
        .mini-tutorial,
        .guide-link-btn {
            display: none !important;
        }

        .hangar-wrapper {
            margin-top: 5px !important;
        }

        /* Compress ship cards vertically */
        .hangar-container {
            padding-top: 5px !important;
        }

        .ship-card {
            min-height: 180px !important;
            max-height: 220px !important;
            min-width: 140px !important;
            width: 140px !important;
            padding: 8px !important;
        }

        .ship-icon {
            width: 50px !important;
            height: 50px !important;
            margin-bottom: 2px !important;
        }

        .ship-desc {
            height: 45px !important;
            font-size: 0.6rem !important;
            margin-bottom: 4px !important;
        }

        /* Smaller buttons */
        .game-modes-container {
            margin-top: 5px !important;
            height: 40px !important;
            width: 280px !important;
        }

        .mode-btn {
            padding: 4px 8px !important;
            font-size: 0.75rem !important;
        }

        #usernameInput {
            margin-top: 5px !important;
            padding: 6px !important;
            height: 30px !important;
            font-size: 0.9rem !important;
        }

        .lobby-money {
            top: 5px !important;
            left: 5px !important;
            padding: 4px 8px !important;
            font-size: 0.8rem !important;
        }

        .top-right-controls {
            top: 5px !important;
            right: 5px !important;
        }
    }

    /* ═══════════════════════════════════════════════════════════════════════
       📱 OYUN İÇİ HUD - MOBİL (PORTRAIT → LANDSCAPE ROTATED)
       ═══════════════════════════════════════════════════════════════════════ */

    /* === ÜST SKOR PANELİ (Survival) === */
    .center-panel {
        top: 3px !important;
        padding: 6px 18px !important;
        gap: 20px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 12px !important;
        border-top: 2px solid rgba(0, 234, 255, 0.5) !important;
    }

    .score-box {
        font-size: clamp(0.85rem, 2.2vw, 1.1rem) !important;
    }

    .money-box {
        font-size: clamp(0.8rem, 2vw, 1.05rem) !important;
    }


    /* === LEADERBOARD - Daha büyük ve okunur === */
    #leaderboard {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        bottom: 85px !important;
        right: 5px !important;
        width: clamp(130px, 18vw, 165px) !important;
        /* Daha büyük */
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 8px !important;
        border-left: 3px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 120px !important;
        overflow: hidden !important;
    }

    #leaderboard h3 {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem) !important;
        margin-bottom: 4px !important;
    }

    #leaderboard li {
        font-size: clamp(0.62rem, 1.5vw, 0.75rem) !important;
        line-height: 1.5 !important;
        margin-top: 3px !important;
    }

    /* === KILLBOARD - Daha büyük ve okunur === */
    #killboard {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        bottom: 210px !important;
        right: 5px !important;
        width: clamp(130px, 18vw, 165px) !important;
        /* Daha büyük */
        padding: 8px 12px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 8px !important;
        border-left: 3px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 115px !important;
        overflow: hidden !important;
    }

    #killboard h3 {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem) !important;
        margin-bottom: 4px !important;
    }

    #killboard li {
        font-size: clamp(0.62rem, 1.5vw, 0.75rem) !important;
        line-height: 1.5 !important;
        margin-top: 3px !important;
    }

    /* === MINIMAP/RADAR - Exit'in sağında, büyütülmüş === */
    .minimap-container {
        position: absolute !important;
        bottom: 130px !important;
        left: 45px !important;
        /* Exit butonunun sağı */
        right: auto !important;
        top: auto !important;
        width: clamp(65px, 12vw, 85px) !important;
        /* %15-20 büyük */
        height: clamp(65px, 12vw, 85px) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 5px !important;
    }

    /* === SAĞLIK BARI - SAĞ ALT JOYSTICK ALTINA TAŞINDI === */
    .health-container {
        position: absolute !important;
        bottom: 80px !important;
        top: auto !important;
        right: auto !important;
        left: 20px !important;
        width: auto !important;
        min-width: 130px !important;
        max-width: 170px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        z-index: 95 !important;
    }

    .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        /* Yatay sıralama */
        gap: 6px !important;
        margin-bottom: 0 !important;
    }

    .ability-slot {
        width: clamp(44px, 8vw, 56px) !important;
        /* Büyütüldü */
        height: clamp(44px, 8vw, 56px) !important;
        border-radius: 8px !important;
    }

    .ability-icon {
        font-size: clamp(0.9rem, 1.8vw, 1.15rem) !important;
    }

    .key-hint {
        display: none !important;
    }

    .cooldown-text {
        font-size: clamp(0.6rem, 1.2vw, 0.75rem) !important;
    }

    .health-bar-section {
        display: flex !important;
        flex-direction: column !important;
        min-width: 85px !important;
        flex-grow: 1 !important;
    }

    .p1-health {
        font-size: clamp(0.65rem, 1.5vw, 0.75rem) !important;
    }

    .bar-bg {
        height: 8px !important;
        border-radius: 4px !important;
    }

    /* === XP BAR - Market'in HEMEN ÜZERİNDE === */
    #xp-container {
        position: absolute !important;
        bottom: 70px !important;
        /* Market'in hemen üstünde */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: clamp(250px, 45vw, 420px) !important;
        height: 18px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 10px !important;
        padding: 3px 10px !important;
        border: 2px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 105 !important;
        /* Market'ten yüksek */
    }

    .xp-label {
        font-size: clamp(0.7rem, 1.6vw, 0.85rem) !important;
    }

    .xp-bar-bg {
        height: 6px !important;
        border-radius: 3px !important;
    }

    /* === LEVEL UP YAZISI - Küçült === */
    .level-up-text,
    #level-up-display {
        font-size: clamp(1rem, 3vw, 1.5rem) !important;
        padding: 5px 15px !important;
    }

    /* === MARKET BUTONLARI === */
    .shop-bar {
        position: absolute !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 6px 12px !important;
        gap: 6px !important;
        background: rgba(0, 0, 0, 0.65) !important;
        border-radius: 12px !important;
        max-width: 85% !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .shop-btn {
        width: clamp(46px, 7.5vw, 58px) !important;
        height: clamp(46px, 7.5vw, 58px) !important;
        font-size: clamp(0.9rem, 2vw, 1.15rem) !important;
        background: rgba(0, 20, 40, 0.7) !important;
        border-radius: 8px !important;
    }

    .shop-btn::before,
    .shop-btn::after {
        display: none !important;
    }

    .badge-time {
        font-size: clamp(0.4rem, 0.9vw, 0.5rem) !important;
        padding: 1px 2px !important;
    }

    .upgrade-info,
    .separator {
        display: none !important;
    }

    /* === SKILL BUTONLARI - MARKET YANI (GENEL YATAY) === */
    .mobile-skills-container {
        display: flex !important;
        flex-direction: row !important;
        position: absolute !important;
        bottom: 12px !important;
        left: 50% !important;
        margin-left: 215px !important;
        right: auto !important;
        gap: 6px !important;
        z-index: 110 !important;
    }

    /* === MOBİL KONTROLLER (JOYSTICK) - %18 BÜYÜTÜLDÜ === */
    #mobile-controls {
        display: flex !important;
        position: absolute !important;
        bottom: 10px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 15px !important;
        justify-content: space-between !important;
        z-index: 200 !important;
        pointer-events: none !important;
    }

    .joystick-area {
        width: clamp(115px, 21vw, 145px) !important;
        /* ~18% büyük (90*1.18≈106) */
        height: clamp(115px, 21vw, 145px) !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    .stick-base {
        background: rgba(0, 234, 255, 0.12) !important;
        border: 2px solid rgba(0, 234, 255, 0.35) !important;
    }

    .stick-handle {
        width: clamp(48px, 8.5vw, 64px) !important;
        /* ~20% büyük (35*1.2≈42) */
        height: clamp(48px, 8.5vw, 64px) !important;
        background: rgba(0, 234, 255, 0.65) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.4) !important;
    }

    /* === ÜST KONTROLLER === */
    .top-left-controls {
        display: none !important;
        /* Health container'a taşındı */
    }

    .top-right-controls {
        top: 3px !important;
        right: 8px !important;
        gap: 3px !important;
    }

    .top-right-controls .icon-btn {
        width: clamp(30px, 5vw, 34px) !important;
        height: clamp(30px, 5vw, 34px) !important;
        font-size: clamp(0.65rem, 1.4vw, 0.75rem) !important;
    }

    #exitBtn {
        position: absolute !important;
        top: 3px !important;
        left: 8px !important;
        width: clamp(30px, 5vw, 34px) !important;
        height: clamp(30px, 5vw, 34px) !important;
        font-size: clamp(0.65rem, 1.4vw, 0.75rem) !important;
        z-index: 250 !important;
    }

    /* === BİLDİRİM ALANI === */
    #notification-area {
        top: 50px !important;
        width: 90% !important;
    }

    .kill-msg {
        padding: 3px 10px !important;
        border-radius: 8px !important;
    }

    .kill-text {
        font-size: 0.9rem !important;
    }

    .kill-sub {
        font-size: 1.5rem !important;
    }

    .kill-reward {
        font-size: 0.75rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 844x390 GİBİ DAR MOBİL CİHAZLAR İÇİN ÖZEL DÜZENLEME
   Çok dar ekranlarda boşlukları minimuma indir
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   📱 844x390 GİBİ DAR MOBİL CİHAZLAR İÇİN ÖZEL DÜZENLEME
   Çok dar ekranlarda boşlukları minimuma indir
   ═══════════════════════════════════════════════════════════════════════════ */
@media screen and (orientation: landscape) and (max-height: 420px) {

    /* === LOBİ BAŞLIK - Daha küçük === */
    #overlay h1 {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem) !important;
        letter-spacing: 1px !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        margin-top: env(safe-area-inset-top) !important;
    }

    /* === MINI TUTORIAL === */
    .mini-tutorial {
        gap: 3px !important;
        padding: 4px 8px !important;
        margin-bottom: 2px !important;
    }

    .tut-item {
        gap: 4px !important;
        font-size: clamp(0.5rem, 1.1vw, 0.55rem) !important;
    }

    .tut-item i {
        font-size: clamp(0.6rem, 1.3vw, 0.7rem) !important;
    }

    .key-box {
        padding: 1px 3px !important;
        font-size: clamp(0.45rem, 0.9vw, 0.5rem) !important;
    }

    .guide-link-btn {
        font-size: clamp(0.5rem, 1.1vw, 0.55rem) !important;
        margin-bottom: 2px !important;
    }

    /* === USERNAME INPUT === */
    #usernameInput {
        padding: clamp(6px, 2vh, 10px) !important;
        font-size: clamp(0.8rem, 2vw, 1rem) !important;
        margin-top: 2px !important;
        width: clamp(200px, 40vw, 300px) !important;
    }

    /* === OYUN MODLARI BUTONLARI === */
    .game-modes-container {
        height: clamp(35px, 9vh, 45px) !important;
        margin-top: 2px !important;
    }

    .mode-btn {
        font-size: clamp(0.6rem, 1.6vw, 0.75rem) !important;
        padding: clamp(4px, 1vh, 6px) clamp(8px, 1.8vw, 12px) !important;
    }

    /* === HANGAR CONTAINER & CARDS (LOBI DÜZELTME: KÜÇÜLTME) === */
    .hangar-wrapper {
        margin-top: -5px !important;
    }

    .hangar-container {
        padding: 5px 10px !important;
        padding-top: 20px !important;
    }

    .ship-card {
        /* Kartları 360px yüksekliğe net sığacak şekilde küçültüyoruz */
        width: clamp(110px, 16vw, 140px) !important;
        min-width: clamp(110px, 16vw, 140px) !important;
        max-width: 140px !important;
        min-height: clamp(140px, 38vh, 180px) !important;
        max-height: 180px !important;
        padding: 4px !important;
        margin-right: 5px !important;
    }

    .ship-icon {
        width: clamp(35px, 7vw, 45px) !important;
        height: clamp(35px, 7vw, 45px) !important;
        margin-bottom: 2px !important;
    }

    .ship-name {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem) !important;
        margin-bottom: 2px !important;
    }

    .ship-desc {
        font-size: clamp(0.5rem, 1.2vw, 0.6rem) !important;
        height: clamp(30px, 6vh, 40px) !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }

    .stat-container {
        padding: 2px !important;
        gap: 1px !important;
    }

    .stat-row {
        gap: 2px !important;
        margin-bottom: 1px !important;
    }

    .stat-label {
        font-size: 0.5rem !important;
    }

    .stat-bar-bg,
    .stat-bar {
        height: 3px !important;
    }

    .ship-price {
        font-size: 0.6rem !important;
        margin-top: 2px !important;
        padding: 2px 6px !important;
    }

    /* === ELITE GATE === */
    .elite-gate {
        width: clamp(90px, 12vw, 120px) !important;
        padding: 6px !important;
    }

    /* === GERİ BUTONU === */
    #fixed-back-btn {
        top: 6px !important;
        left: 12px !important;
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }

    /* === OYUN İÇİ DÜZENLEMELER === */

    /* 1. RADAR DÜZELTME: Çıkış butonunun sağına, yukarı */
    .minimap-container {
        display: block !important;
        position: absolute !important;
        top: 10px !important;
        left: 55px !important;
        bottom: auto !important;
        right: auto !important;
        width: 80px !important;
        height: 80px !important;
        z-index: 100 !important;
    }

    /* Top Left kontrolü (Exit butonu) görünür yap */
    .top-left-controls {
        display: flex !important;
        top: 10px !important;
        left: 10px !important;
        gap: 5px !important;
    }

    .top-left-controls .icon-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }

    /* 2. LEADERBOARD & KILLBOARD DÜZELTME: Büyüt */
    #leaderboard {
        width: 160px !important;
        top: auto !important;
        bottom: 75px !important;
        right: 5px !important;
        font-size: 0.75rem !important;
        max-height: 105px !important;
    }

    #leaderboard h3 {
        font-size: 0.8rem !important;
    }

    #killboard {
        width: 160px !important;
        top: auto !important;
        bottom: 190px !important;
        /* Leaderboard'un üstünde */
        right: 5px !important;
        font-size: 0.75rem !important;
        max-height: 95px !important;
    }

    #killboard h3 {
        font-size: 0.8rem !important;
    }

    /* 3. SKILL BUTONLARI DÜZELTME: Sağa kaydır, biraz yukarı */
    .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        display: flex !important;
        right: 2px !important;
        bottom: 50px !important;
        gap: 2px !important;
        z-index: 100 !important;
        left: auto !important;
    }

    .ability-slot {
        width: 40px !important;
        height: 40px !important;
    }

    /* 4. JOYSTICK DÜZELTME: Büyüt */
    .joystick-area {
        width: 140px !important;
        height: 140px !important;
        bottom: 10px !important;
    }

    .stick-handle {
        width: 60px !important;
        height: 60px !important;
    }

    /* 5. XP/LEVEL BAR DÜZELTME */
    #xp-container {
        width: clamp(200px, 40vw, 300px) !important;
        bottom: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 12px !important;
        z-index: 95 !important;
    }

    /* Market butonları level barın üstünde olsun */
    .shop-bar {
        bottom: 30px !important;
        padding: 2px 6px !important;
    }

    .shop-btn {
        width: 32px !important;
        height: 32px !important;
    }

    /* Diğer minik ayarlar */
    .lobby-money {
        padding: 4px 10px !important;
        top: 6px !important;
        left: 6px !important;
    }

    .top-right-controls {
        top: 6px !important;
        right: 6px !important;
    }
}

