/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 1 — KOMPAKT MOBİL & KÜÇÜK TABLET  (≤ 870px genişlik)            ║
   ║  iPhone X landscape, iPad mini, Galaxy Tab küçük, vb.                  ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
     📱 812x375 CİHAZ İÇİN ÖZEL DÜZENLEME (iPhone X Landscape)
     Radar exit'in tam sağında, yukarıya sıfır, survival tablolar büyütüldü
     ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 805px) and (max-width: 820px) and (min-height: 370px) and (max-height: 380px) {

    /* === RADAR/MINIMAP - Exit'in TAM SAĞINDA, YUKARIYA SIFIR === */
    body.in-game .minimap-container {
        position: absolute !important;
        top: 0px !important;
        left: 37px !important;
        bottom: auto !important;
        right: auto !important;
        width: clamp(80px, 17vh, 95px) !important;
        height: clamp(80px, 17vh, 95px) !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 95px !important;
        max-height: 95px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        z-index: 90 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        border-radius: 6px !important;
    }

    /* === EXIT BUTONU - YUKARIYA SIFIR === */
    body.in-game #exitBtn {
        display: flex !important;
        position: absolute !important;
        top: 0px !important;
        left: 5px !important;
        width: clamp(30px, 6vh, 36px) !important;
        height: clamp(30px, 6vh, 36px) !important;
        font-size: clamp(0.7rem, 1.4vh, 0.8rem) !important;
        z-index: 250 !important;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 1px solid rgba(255, 0, 85, 0.5) !important;
        color: #ff0055 !important;
    }

    /* === SURVIVAL MODU - AVCI LİDERLER TABLOLARI - Küçültüldü === */

    /* Leaderboard - Küçültüldü */
    body.in-game #leaderboard {
        position: absolute !important;
        top: 30px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 120px !important;
        max-width: 140px !important;
        padding: 5px 8px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 90px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 9px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
        color: #00eaff !important;
    }

    body.in-game #leaderboard ul {
        max-height: 72px !important;
        overflow: hidden !important;
    }

    body.in-game #leaderboard li {
        font-size: 8px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Killboard - Küçültüldü */
    body.in-game #killboard {
        position: absolute !important;
        top: 125px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 120px !important;
        max-width: 140px !important;
        padding: 5px 8px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 68px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #killboard h3 {
        font-size: 9px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
        color: #ff0055 !important;
    }

    body.in-game #killboard ul {
        max-height: 52px !important;
        overflow: hidden !important;
    }

    body.in-game #killboard li {
        font-size: 8px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === JOYSTICKLER - Küçültüldü === */
    body.in-game #stick-left {
        position: absolute !important;
        bottom: 50px !important;
        left: 40px !important;
        width: 25vh !important;
        height: 25vh !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-left .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 234, 255, 0.1) !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-left .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(0, 234, 255, 0.7) !important;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game #stick-right {
        position: absolute !important;
        bottom: 50px !important;
        right: 40px !important;
        width: 25vh !important;
        height: 25vh !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-right .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 0, 85, 0.1) !important;
        border: 2px solid rgba(255, 0, 85, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-right .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(255, 0, 85, 0.7) !important;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.5) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
     📱 844x390 CİHAZ İÇİN ÖZEL DÜZENLEMELER
     Joystick ve skill butonları büyütüldü, tablolar eşitlendi, radar exit'in sağına alındı
     Lobi kartları küçültüldü, XP bar market ölçüsüne getirildi, TDM skill'ler survival ile aynı
     ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 800px) and (max-width: 860px) and (min-height: 380px) and (max-height: 400px) {

    /* === LOBİ DÜZELTME - Kartlar daha da küçültüldü === */
    .hangar-container {
        padding: 2px 6px !important;
        padding-top: 22px !important;
        gap: clamp(3px, 0.6vw, 5px) !important;
    }

    .ship-card {
        width: clamp(105px, 13vw, 135px) !important;
        min-width: clamp(105px, 13vw, 135px) !important;
        max-width: 135px !important;
        min-height: clamp(135px, 34vh, 180px) !important;
        max-height: 185px !important;
        padding: clamp(3px, 0.7vw, 5px) !important;
    }

    .ship-icon {
        width: clamp(28px, 5.5vw, 36px) !important;
        height: clamp(28px, 5.5vw, 36px) !important;
        margin-bottom: 1px !important;
    }

    .ship-icon i {
        font-size: clamp(13px, 3vw, 18px) !important;
    }

    .ship-name {
        font-size: clamp(0.58rem, 1.4vw, 0.72rem) !important;
        margin-bottom: 1px !important;
    }

    .ship-desc {
        font-size: clamp(0.42rem, 0.95vw, 0.52rem) !important;
        height: clamp(24px, 6vh, 32px) !important;
        padding: 1px 2px !important;
        margin-bottom: 1px !important;
        line-height: 1.1 !important;
    }

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

    .stat-label {
        font-size: clamp(0.34rem, 0.8vw, 0.42rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.45rem, 1vw, 0.58rem) !important;
        margin-top: 1px !important;
    }

    .elite-gate {
        width: clamp(80px, 10.5vw, 105px) !important;
        min-width: clamp(80px, 10.5vw, 105px) !important;
        max-width: 105px !important;
    }

    .elite-gate .ship-icon {
        width: clamp(32px, 7vh, 44px) !important;
        height: clamp(32px, 7vh, 44px) !important;
    }

    .elite-gate .ship-name {
        font-size: clamp(0.46rem, 1.1vw, 0.58rem) !important;
    }

    /* === JOYSTICKLER - %30 BÜYÜTÜLDÜ === */
    body.in-game #stick-left {
        position: absolute !important;
        bottom: 55px !important;
        left: 40px !important;
        width: 26vh !important;
        /* %30 büyük */
        height: 26vh !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-width: 145px !important;
        max-height: 145px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-left .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 234, 255, 0.1) !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-left .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(0, 234, 255, 0.7) !important;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game #stick-right {
        position: absolute !important;
        bottom: 55px !important;
        right: 40px !important;
        width: 26vh !important;
        /* %30 büyük */
        height: 26vh !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-width: 145px !important;
        max-height: 145px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-right .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 0, 85, 0.1) !important;
        border: 2px solid rgba(255, 0, 85, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-right .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(255, 0, 85, 0.7) !important;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.5) !important;
    }

    /* === SKİLL BUTONLARI - Market'in sağına taşındı (simetrik) === */
    body.in-game .mobile-skills-container {
        position: absolute !important;
        bottom: 5px !important;
        left: calc(50% + 42vw / 2 + 10px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    /* TDM modunda da aynı konumda (survival ile aynı) */
    body.in-game.tdm-mode .mobile-skills-container {
        left: calc(50% + 35vw / 2 + 10px) !important;
    }

    body.in-game .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game .ability-slot {
        width: clamp(52px, 11vh, 62px) !important;
        /* Bir tık daha büyütüldü */
        height: clamp(52px, 11vh, 62px) !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 12px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game .ability-icon {
        font-size: clamp(1.1rem, 2.4vh, 1.4rem) !important;
    }

    /* === RADAR/MINIMAP - Exit'in sağında, büyütüldü === */
    body.in-game .minimap-container {
        position: absolute !important;
        top: 0px !important;
        left: 37px !important;
        /* Exit butonunun tam sağı */
        bottom: auto !important;
        right: auto !important;
        width: clamp(80px, 17vh, 95px) !important;
        /* Bir tık daha büyütüldü */
        height: clamp(80px, 17vh, 95px) !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 95px !important;
        max-height: 95px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        z-index: 90 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        border-radius: 6px !important;
    }

    /* === EXIT BUTONU === */
    body.in-game #exitBtn {
        display: flex !important;
        position: absolute !important;
        top: 0px !important;
        left: 5px !important;
        width: clamp(30px, 6vh, 36px) !important;
        height: clamp(30px, 6vh, 36px) !important;
        font-size: clamp(0.7rem, 1.4vh, 0.8rem) !important;
        z-index: 250 !important;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 1px solid rgba(255, 0, 85, 0.5) !important;
        color: #ff0055 !important;
    }

    /* === SURVIVAL MODU - AVCI LİDERLER TABLOLARI - Büyütüldü === */

    /* Leaderboard - Bir tık büyütüldü */
    body.in-game #leaderboard {
        position: absolute !important;
        top: 30px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 130px !important;
        max-width: 150px !important;
        padding: 6px 10px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 100px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 10px !important;
        margin-bottom: 3px !important;
        padding-bottom: 2px !important;
        border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
        color: #00eaff !important;
    }

    body.in-game #leaderboard ul {
        max-height: 80px !important;
        overflow: hidden !important;
    }

    body.in-game #leaderboard li {
        font-size: 9px !important;
        line-height: 1.4 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Killboard - Bir tık büyütüldü ve leaderboard'a yakın */
    body.in-game #killboard {
        position: absolute !important;
        top: 135px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 130px !important;
        max-width: 150px !important;
        padding: 6px 10px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 75px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #killboard h3 {
        font-size: 10px !important;
        margin-bottom: 3px !important;
        padding-bottom: 2px !important;
        border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
        color: #ff0055 !important;
    }

    body.in-game #killboard ul {
        max-height: 58px !important;
        overflow: hidden !important;
    }

    body.in-game #killboard li {
        font-size: 9px !important;
        line-height: 1.4 !important;
        margin-top: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === ÜST SKOR PANELİ === */
    body.in-game .center-panel {
        position: absolute !important;
        top: 3px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 5px 18px !important;
        gap: 22px !important;
        background: rgba(0, 0, 0, 0.55) !important;
        border-radius: 10px !important;
        border-top: 2px solid rgba(0, 234, 255, 0.6) !important;
        z-index: 100 !important;
    }

    body.in-game .score-box {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        color: #00eaff !important;
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game .money-box {
        font-size: 0.75rem !important;
        letter-spacing: 1px !important;
        color: #ffd700 !important;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important;
    }

    /* === HP BAR - FPS hizasında simetrik === */
    body.in-game .health-container {
        position: absolute !important;
        bottom: 25px !important;
        /* FPS ile aynı hizada, biraz yukarıda */
        left: 20px !important;
        /* FPS ile aynı sol hiza */
        right: auto !important;
        top: auto !important;
        width: 130px !important;
        /* Joystick genişliğine yakın */
        min-width: 115px !important;
        max-width: 145px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 4px 6px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0, 234, 255, 0.3) !important;
        z-index: 95 !important;
    }

    body.in-game .p1-health {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.6rem !important;
        color: #00eaff !important;
        width: 100% !important;
    }

    body.in-game .bar-bg {
        flex-grow: 1 !important;
        height: 10px !important;
        min-width: 80px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(0, 234, 255, 0.4) !important;
        transform: none !important;
    }

    /* === XP BAR - Market ölçüsüne küçültüldü === */
    body.in-game #xp-container {
        position: absolute !important;
        bottom: clamp(48px, 13vh, 68px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: clamp(280px, 38vw, 380px) !important;
        /* Market ile aynı ölçü */
        height: clamp(12px, 3.5vh, 18px) !important;
        padding: 2px 8px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
        z-index: 105 !important;
    }

    body.in-game .xp-label {
        font-size: 0.42rem !important;
        color: #00ff88 !important;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
    }

    body.in-game .xp-bar-bg {
        height: 4px !important;
        border-radius: 3px !important;
    }

    /* === MARKET BUTONLARI === */
    body.in-game .shop-bar {
        position: absolute !important;
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 4px 8px !important;
        gap: 4px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        max-width: 85% !important;
        z-index: 100 !important;
    }

    body.in-game .shop-btn {
        position: relative !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
        background: rgba(0, 20, 40, 0.7) !important;
    }

    body.in-game .shop-btn::after {
        display: block !important;
        position: absolute !important;
        bottom: -11px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.32rem !important;
        color: #ccc !important;
        white-space: nowrap !important;
        text-shadow: 1px 1px 1px #000 !important;
    }

    body.in-game .shop-btn::before {
        display: none !important;
    }

    body.in-game .badge-time {
        font-size: 0.28rem !important;
        padding: 1px 2px !important;
        bottom: 2px !important;
        right: 2px !important;
    }

    body.in-game .separator {
        display: block !important;
        width: 1px !important;
        height: 28px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        margin: 0 3px !important;
    }

    body.in-game .upgrade-btn {
        position: relative !important;
    }

    body.in-game .upgrade-info {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
    }

    body.in-game .upgrade-info span:first-child {
        position: absolute !important;
        top: 1px !important;
        right: 1px !important;
        font-size: 0.3rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 1px 3px !important;
        border-radius: 3px !important;
        color: #fff !important;
    }

    body.in-game .upgrade-info span:last-child {
        position: absolute !important;
        bottom: -11px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.32rem !important;
        color: #ccc !important;
        white-space: nowrap !important;
    }

    body.in-game .upgrade-info br {
        display: none !important;
    }

    body.in-game .upgrade-btn::after {
        display: none !important;
    }

    /* === TDM MODU - Skill'ler survival ile birebir aynı konumda === */
    body.in-game.tdm-mode .mobile-skills-container {
        position: absolute !important;
        bottom: 5px !important;
        /* Survival ile aynı bottom değeri */
        left: calc(50% + 42vw / 2 + 10px) !important;
        /* Survival ile aynı left değeri */
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    body.in-game.tdm-mode .ability-slot {
        width: clamp(52px, 11vh, 62px) !important;
        height: clamp(52px, 11vh, 62px) !important;
    }

    body.in-game.tdm-mode .ability-icon {
        font-size: clamp(1.1rem, 2.4vh, 1.4rem) !important;
    }

    /* TDM HP Bar - Survival ile birebir aynı konum ve boyut */
    body.in-game.tdm-mode .health-container {
        position: absolute !important;
        bottom: 25px !important;
        /* FPS ile aynı hizada - Survival ile aynı */
        left: 20px !important;
        /* FPS ile aynı sol hiza - Survival ile aynı */
        right: auto !important;
        top: auto !important;
        width: 130px !important;
        /* Survival ile aynı */
        min-width: 115px !important;
        max-width: 145px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 4px 6px !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0, 234, 255, 0.3) !important;
        z-index: 95 !important;
    }

    /* TDM XP Bar - Market ölçüsüne küçültüldü (Survival ile aynı) */
    body.in-game.tdm-mode #xp-container {
        bottom: clamp(48px, 13vh, 68px) !important;
        width: clamp(280px, 38vw, 380px) !important;
        /* Market ile aynı ölçü */
        height: clamp(12px, 3.5vh, 18px) !important;
        padding: 2px 8px !important;
    }

    body.in-game.tdm-mode .xp-label {
        font-size: 0.42rem !important;
    }

    body.in-game.tdm-mode .xp-bar-bg {
        height: 4px !important;
    }

    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(0.65) !important;
        padding: 6px 15px !important;
    }

    body.in-game.tdm-mode #tdm-leaderboard {
        top: 30px !important;
        padding: 6px 10px !important;
        font-size: 9px !important;
        min-width: 130px !important;
        max-width: 150px !important;
        max-height: 110px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        top: 150px !important;
        padding: 6px 10px !important;
        font-size: 9px !important;
        min-width: 130px !important;
        max-width: 150px !important;
        max-height: 70px !important;
    }

}

/* ═══════════════════════════════════════════════════════════════════════════
     📱 882x344 CİHAZ İÇİN ÖZEL DÜZENLEMELER (iPhone 13/14 Pro Max Landscape)
     Radar ve exit butonu sağ üste hizalandı, survival tablolar büyütüldü
     ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 870px) and (max-width: 895px) and (min-height: 335px) and (max-height: 355px) {

    /* === RADAR/MINIMAP - Exit'in sağında, sağ üstte === */
    body.in-game .minimap-container {
        position: absolute !important;
        top: 0px !important;
        left: 37px !important;
        bottom: auto !important;
        right: auto !important;
        width: clamp(80px, 17vh, 95px) !important;
        height: clamp(80px, 17vh, 95px) !important;
        min-width: 80px !important;
        min-height: 80px !important;
        max-width: 95px !important;
        max-height: 95px !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        z-index: 90 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        border-radius: 6px !important;
    }

    /* === EXIT BUTONU === */
    body.in-game #exitBtn {
        display: flex !important;
        position: absolute !important;
        top: 0px !important;
        left: 5px !important;
        width: clamp(30px, 6vh, 36px) !important;
        height: clamp(30px, 6vh, 36px) !important;
        font-size: clamp(0.7rem, 1.4vh, 0.8rem) !important;
        z-index: 250 !important;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 1px solid rgba(255, 0, 85, 0.5) !important;
        color: #ff0055 !important;
    }

    /* === SURVIVAL MODU - AVCI LİDERLER TABLOLARI - Küçültüldü === */

    /* Leaderboard - Küçültüldü */
    body.in-game #leaderboard {
        position: absolute !important;
        top: 30px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 120px !important;
        max-width: 140px !important;
        padding: 5px 8px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 90px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 9px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
        color: #00eaff !important;
    }

    body.in-game #leaderboard ul {
        max-height: 72px !important;
        overflow: hidden !important;
    }

    body.in-game #leaderboard li {
        font-size: 8px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Killboard - Küçültüldü */
    body.in-game #killboard {
        position: absolute !important;
        top: 125px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 120px !important;
        max-width: 140px !important;
        padding: 5px 8px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 68px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #killboard h3 {
        font-size: 9px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
        color: #ff0055 !important;
    }

    body.in-game #killboard ul {
        max-height: 52px !important;
        overflow: hidden !important;
    }

    body.in-game #killboard li {
        font-size: 8px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === JOYSTICKLER - Küçültüldü === */
    body.in-game #stick-left {
        position: absolute !important;
        bottom: 50px !important;
        left: 40px !important;
        width: 25vh !important;
        height: 25vh !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-left .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 234, 255, 0.1) !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-left .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(0, 234, 255, 0.7) !important;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game #stick-right {
        position: absolute !important;
        bottom: 50px !important;
        right: 40px !important;
        width: 25vh !important;
        height: 25vh !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-right .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 0, 85, 0.1) !important;
        border: 2px solid rgba(255, 0, 85, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-right .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(255, 0, 85, 0.7) !important;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.5) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
     📱 740x360 CİHAZ İÇİN ÖZEL DÜZENLEMELER
     Lobi düzeltildi, radar exit'in sağında, survival tablolar büyütüldü, skiller sağa kaydı
     ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (min-width: 700px) and (max-width: 760px) and (min-height: 350px) and (max-height: 370px) {

    /* === LOBİ DÜZELTME - Üstten ve alttan taşma önlendi === */
    .hangar-container {
        padding: 1px 7px !important;
        padding-top: 2px !important;
        gap: clamp(3px, 0.7vw, 6px) !important;
    }

    .ship-card {
        width: clamp(88px, 12.5vw, 145px) !important;
        min-width: clamp(88px, 12.5vw, 145px) !important;
        max-width: 145px !important;
        min-height: clamp(130px, 32vh, 190px) !important;
        max-height: 200px !important;
        padding: clamp(3px, 0.7vw, 6px) !important;
    }

    .ship-icon {
        width: clamp(30px, 6.2vw, 48px) !important;
        height: clamp(30px, 6.2vw, 48px) !important;
        margin-bottom: 1px !important;
    }

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

    .ship-name {
        font-size: clamp(0.58rem, 1.4vw, 0.78rem) !important;
        margin-bottom: 1px !important;
    }

    .ship-desc {
        font-size: clamp(0.4rem, 0.9vw, 0.58rem) !important;
        height: clamp(20px, 5.2vh, 42px) !important;
        padding: 1px 2px !important;
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
    }

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

    .stat-label {
        font-size: clamp(0.38rem, 0.9vw, 0.55rem) !important;
        min-width: 28px !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.46rem, 1.15vw, 0.62rem) !important;
        margin-top: 1px !important;
        padding: 1px 4px !important;
    }

    /* === JOYSTICKLER - Bir tık büyütüldü === */
    body.in-game #stick-left {
        position: absolute !important;
        bottom: 50px !important;
        left: 35px !important;
        width: 26vh !important;
        height: 26vh !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-width: 148px !important;
        max-height: 148px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-left .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 234, 255, 0.1) !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-left .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(0, 234, 255, 0.7) !important;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game #stick-right {
        position: absolute !important;
        bottom: 50px !important;
        right: 35px !important;
        width: 26vh !important;
        height: 26vh !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-width: 148px !important;
        max-height: 148px !important;
        margin: 0 !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

    body.in-game #stick-right .stick-base {
        width: 100% !important;
        height: 100% !important;
        background: rgba(255, 0, 85, 0.1) !important;
        border: 2px solid rgba(255, 0, 85, 0.4) !important;
        border-radius: 50% !important;
    }

    body.in-game #stick-right .stick-handle {
        width: 42% !important;
        height: 42% !important;
        background: rgba(255, 0, 85, 0.7) !important;
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.5) !important;
    }

    /* === SKİLL BUTONLARI - Market'in sağına taşındı (simetrik) === */
    body.in-game .mobile-skills-container {
        position: absolute !important;
        bottom: 5px !important;
        left: calc(50% + 42vw / 2 + 10px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    body.in-game .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 7px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game .ability-slot {
        width: clamp(48px, 10vh, 58px) !important;
        height: clamp(48px, 10vh, 58px) !important;
        border-radius: 7px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game .ability-icon {
        font-size: clamp(1rem, 2.2vh, 1.3rem) !important;
    }

    /* === RADAR/MINIMAP - Exit'in tam sağında === */
    body.in-game .minimap-container {
        position: absolute !important;
        top: 2px !important;
        left: clamp(40px, 5.8vw, 50px) !important;
        bottom: auto !important;
        right: auto !important;
        width: clamp(75px, 16vh, 88px) !important;
        height: clamp(75px, 16vh, 88px) !important;
        min-width: 75px !important;
        min-height: 75px !important;
        max-width: 88px !important;
        max-height: 88px !important;
        border-radius: 7px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        z-index: 90 !important;
        transform: none !important;
    }

    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        border-radius: 5px !important;
    }

    /* === EXIT BUTONU === */
    body.in-game #exitBtn {
        display: flex !important;
        position: absolute !important;
        top: 0px !important;
        left: 5px !important;
        width: clamp(30px, 6vh, 35px) !important;
        height: clamp(30px, 6vh, 35px) !important;
        font-size: clamp(0.68rem, 1.4vh, 0.78rem) !important;
        z-index: 250 !important;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 1px solid rgba(255, 0, 85, 0.5) !important;
        color: #ff0055 !important;
    }

    /* === SURVIVAL MODU - LİDERLER VE AVCILAR TABLOLARI === */

    /* Leaderboard - Üstte, butonların hemen altında, daha küçük */
    body.in-game #leaderboard {
        position: absolute !important;
        top: 32px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 95px !important;
        max-width: 110px !important;
        padding: 3px 4px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 75px !important;
        overflow-y: auto !important;
        z-index: 80 !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 6.5px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
        color: #00eaff !important;
    }

    body.in-game #leaderboard ul {
        max-height: 62px !important;
        overflow-y: auto !important;
    }

    body.in-game #leaderboard li {
        font-size: 6.5px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Killboard - Leaderboard'un hemen altında, çok yakın, daha küçük */
    body.in-game #killboard {
        position: absolute !important;
        top: 110px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 95px !important;
        max-width: 110px !important;
        padding: 3px 4px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 160px !important;
        overflow-y: auto !important;
        z-index: 80 !important;
    }

    body.in-game #killboard h3 {
        font-size: 6.5px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
        color: #ff0055 !important;
    }

    body.in-game #killboard ul {
        max-height: 145px !important;
        overflow-y: auto !important;
    }

    body.in-game #killboard li {
        font-size: 6.5px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === LEVEL BAR - TDM ve Survival modunda tam aynı === */
    body.in-game #xp-container {
        position: absolute !important;
        bottom: clamp(48px, 13vh, 70px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 33vw !important;
        min-width: 170px !important;
        max-width: 270px !important;
        height: 14px !important;
        padding: 2px 7px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 7px !important;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
        z-index: 105 !important;
    }

    body.in-game .xp-label {
        font-size: 0.48rem !important;
        color: #00ff88 !important;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
    }

    body.in-game .xp-bar-bg {
        height: 5px !important;
        border-radius: 3px !important;
    }

    /* TDM modunda da tamamen aynı ayarlar */
    body.in-game.tdm-mode #xp-container {
        bottom: clamp(48px, 13vh, 70px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 33vw !important;
        min-width: 170px !important;
        max-width: 270px !important;
        height: 14px !important;
        padding: 2px 7px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 7px !important;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
        z-index: 105 !important;
    }

    body.in-game.tdm-mode .xp-label {
        font-size: 0.48rem !important;
    }

    body.in-game.tdm-mode .xp-bar-bg {
        height: 5px !important;
    }

    /* === TDM MODU - Skill konumları survival ile tamamen aynı (Market'in sağı) === */
    body.in-game.tdm-mode .mobile-skills-container {
        position: absolute !important;
        bottom: 45px !important;
        left: calc(50% + 42vw / 2 + 10px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    body.in-game.tdm-mode .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 7px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game.tdm-mode .ability-slot {
        width: clamp(48px, 10vh, 58px) !important;
        height: clamp(48px, 10vh, 58px) !important;
        border-radius: 7px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game.tdm-mode .ability-icon {
        font-size: clamp(1rem, 2.2vh, 1.3rem) !important;
    }

    /* === ÜST SKOR PANELİ === */
    body.in-game .center-panel {
        position: absolute !important;
        top: 3px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 5px 16px !important;
        gap: 20px !important;
        background: rgba(0, 0, 0, 0.55) !important;
        border-radius: 10px !important;
        border-top: 2px solid rgba(0, 234, 255, 0.6) !important;
        z-index: 100 !important;
    }

    body.in-game .score-box {
        font-size: 0.78rem !important;
        letter-spacing: 1px !important;
        color: #00eaff !important;
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game .money-box {
        font-size: 0.72rem !important;
        letter-spacing: 1px !important;
        color: #ffd700 !important;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important;
    }

    /* === TDM SKOR PANELİ VE TABLOLAR === */
    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(0.68) !important;
        padding: 6px 14px !important;
    }

    /* TDM Leaderboard (En Çok İmha) - Üstte, butonların altında, daha küçük ve esnek */
    body.in-game.tdm-mode #tdm-leaderboard {
        top: 32px !important;
        padding: 3px 4px !important;
        width: auto !important;
        min-width: 95px !important;
        max-width: 130px !important;
        max-height: 90px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 6px !important;
        overflow-y: hidden !important;
        overflow-x: hidden !important;
    }

    body.in-game.tdm-mode #tdm-leaderboard h3 {
        font-size: 6px !important;
        margin-bottom: 2px !important;
        padding-bottom: 2px !important;
    }

    body.in-game.tdm-mode #tdm-leaderboard li {
        font-size: 6px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* TDM Killboard (Son İmhalar) - Leaderboard'un hemen altında, daha küçük ve esnek */
    body.in-game.tdm-mode #tdm-killboard {
        top: 122px !important;
        padding: 3px 4px !important;
        width: auto !important;
        min-width: 95px !important;
        max-width: 130px !important;
        max-height: 190px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 6px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    body.in-game.tdm-mode #tdm-killboard h3 {
        font-size: 6px !important;
        margin-bottom: 2px !important;
        padding-bottom: 2px !important;
    }

    body.in-game.tdm-mode #tdm-killboard li {
        font-size: 6px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* === HP BAR - Sağ joystickin altına taşındı (simetrik) === */
    body.in-game .health-container {
        position: absolute !important;
        bottom: clamp(18px, 5vh, 25px) !important;
        left: auto !important;
        right: 35px !important;
        top: auto !important;
        width: auto !important;
        min-width: 110px !important;
        max-width: 140px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 7px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        padding: 5px 7px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 234, 255, 0.3) !important;
        z-index: 95 !important;
    }

    /* TDM modunda da aynı HP bar */
    body.in-game.tdm-mode .health-container {
        position: absolute !important;
        bottom: clamp(18px, 5vh, 25px) !important;
        left: auto !important;
        right: 35px !important;
        top: auto !important;
        width: auto !important;
        min-width: 110px !important;
        max-width: 140px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 7px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        padding: 5px 7px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 234, 255, 0.3) !important;
        z-index: 95 !important;
    }

    body.in-game .p1-health {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 0.58rem !important;
        color: #00eaff !important;
        width: 100% !important;
    }

    body.in-game .bar-bg {
        flex-grow: 1 !important;
        height: 8px !important;
        min-width: 70px !important;
        border-radius: 4px !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(0, 234, 255, 0.4) !important;
        transform: none !important;
    }

    /* TDM modunda da aynı bar ayarları */
    body.in-game.tdm-mode .bar-bg {
        height: 8px !important;
        min-width: 70px !important;
    }

    /* === MARKET BUTONLARI - TDM ve Survival'de aynı === */
    body.in-game .shop-bar {
        position: absolute !important;
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 5px 9px !important;
        gap: 5px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        max-width: 83% !important;
        z-index: 100 !important;
    }

    body.in-game .shop-btn {
        position: relative !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
        background: rgba(0, 20, 40, 0.7) !important;
    }

    /* TDM modunda da aynı market ayarları */
    body.in-game.tdm-mode .shop-bar {
        bottom: 5px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 5px 9px !important;
        gap: 5px !important;
        max-width: 83% !important;
    }

    body.in-game.tdm-mode .shop-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.72rem !important;
    }

    body.in-game .shop-btn::after {
        display: block !important;
        position: absolute !important;
        bottom: -10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.3rem !important;
        color: #ccc !important;
        white-space: nowrap !important;
        text-shadow: 1px 1px 1px #000 !important;
    }

    body.in-game .shop-btn::before {
        display: none !important;
    }

    body.in-game .badge-time {
        font-size: 0.28rem !important;
        padding: 1px 2px !important;
        bottom: 2px !important;
        right: 2px !important;
    }

    body.in-game .separator {
        display: block !important;
        width: 1px !important;
        height: 26px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        margin: 0 3px !important;
    }

    body.in-game .upgrade-btn {
        position: relative !important;
    }

    body.in-game .upgrade-info {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
    }

    body.in-game .upgrade-info span:first-child {
        position: absolute !important;
        top: 1px !important;
        right: 1px !important;
        font-size: 0.3rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        padding: 1px 3px !important;
        border-radius: 3px !important;
        color: #fff !important;
    }

    body.in-game .upgrade-info span:last-child {
        position: absolute !important;
        bottom: -10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.3rem !important;
        color: #ccc !important;
        white-space: nowrap !important;
    }

    body.in-game .upgrade-info br {
        display: none !important;
    }

    body.in-game .upgrade-btn::after {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
     📱 665x375 CİHAZ İÇİN ÖZEL DÜZENLEMELER
     Radar exit'in sağında, skiller sağa kaydırıldı, paneller büyütüldü
     ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (max-width: 680px) and (max-height: 400px) {

    /* === RADAR/MINIMAP - Exit'in sağında, üstte === */
    body.in-game .minimap-container {
        position: absolute !important;
        top: 2px !important;
        left: clamp(35px, 5.5vw, 42px) !important;
        /* Exit butonunun tam sağı */
        bottom: auto !important;
        right: auto !important;
        width: clamp(65px, 14vh, 80px) !important;
        height: clamp(65px, 14vh, 80px) !important;
        min-width: 65px !important;
        min-height: 65px !important;
        max-width: 80px !important;
        max-height: 80px !important;
        border-radius: 6px !important;
        border: 2px solid rgba(0, 234, 255, 0.4) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
        z-index: 90 !important;
        transform: none !important;
    }

    /* === SKİLLER - Market'in sağına taşındı (simetrik) === */
    body.in-game .mobile-skills-container {
        position: absolute !important;
        bottom: 45px !important;
        left: calc(50% + 42vw / 2 + 8px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    /* TDM modunda da aynı konumda */
    body.in-game.tdm-mode .mobile-skills-container {
        left: calc(50% + 42vw / 2 + 8px) !important;
    }

    body.in-game .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 5px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game .ability-slot {
        width: clamp(36px, 8vh, 46px) !important;
        /* Daha da küçültüldü */
        height: clamp(36px, 8vh, 46px) !important;
        /* Daha da küçültüldü */
        border-radius: 6px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 8px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game .ability-icon {
        font-size: clamp(0.8rem, 1.8vh, 1.1rem) !important;
        /* Daha da küçültüldü */
    }

    /* === SURVIVAL MODU - AVCI LİDERLER SKOR EKRANLARI - Küçültüldü === */

    /* Leaderboard - Daha küçük */
    body.in-game #leaderboard {
        position: absolute !important;
        top: 30px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 110px !important;
        max-width: 130px !important;
        padding: 5px 7px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
        max-height: 85px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 7.5px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
        color: #00eaff !important;
    }

    body.in-game #leaderboard ul {
        max-height: 70px !important;
        overflow: hidden !important;
    }

    body.in-game #leaderboard li {
        font-size: 7.5px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Killboard - Daha küçük ve leaderboard'a yakın */
    body.in-game #killboard {
        position: absolute !important;
        top: 118px !important;
        right: 5px !important;
        bottom: auto !important;
        width: 110px !important;
        max-width: 130px !important;
        padding: 5px 7px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-radius: 5px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
        max-height: 60px !important;
        overflow: hidden !important;
        z-index: 80 !important;
    }

    body.in-game #killboard h3 {
        font-size: 7.5px !important;
        margin-bottom: 2px !important;
        padding-bottom: 1px !important;
        border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
        color: #ff0055 !important;
    }

    body.in-game #killboard ul {
        max-height: 45px !important;
        overflow: hidden !important;
    }

    body.in-game #killboard li {
        font-size: 7.5px !important;
        line-height: 1.3 !important;
        margin-top: 1px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* === ÜST SKOR PANELİ - Biraz büyütüldü === */
    body.in-game .center-panel {
        position: absolute !important;
        top: 3px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 5px 18px !important;
        gap: 22px !important;
        background: rgba(0, 0, 0, 0.55) !important;
        border-radius: 10px !important;
        border-top: 2px solid rgba(0, 234, 255, 0.6) !important;
        z-index: 100 !important;
    }

    body.in-game .score-box {
        font-size: 0.8rem !important;
        /* Biraz daha büyük */
        letter-spacing: 1px !important;
        color: #00eaff !important;
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.5) !important;
    }

    body.in-game .money-box {
        font-size: 0.75rem !important;
        /* Biraz daha büyük */
        letter-spacing: 1px !important;
        color: #ffd700 !important;
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important;
    }

    /* === EXIT BUTONU === */
    body.in-game #exitBtn {
        display: flex !important;
        position: absolute !important;
        top: 0px !important;
        left: 5px !important;
        width: clamp(28px, 6vh, 34px) !important;
        height: clamp(28px, 6vh, 34px) !important;
        font-size: clamp(0.65rem, 1.4vh, 0.8rem) !important;
        z-index: 250 !important;
        background: rgba(255, 0, 85, 0.2) !important;
        border: 1px solid rgba(255, 0, 85, 0.5) !important;
        color: #ff0055 !important;
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 2 — ÇOK KÜÇÜK YÜKSEKLİK  (max-height: ≤ 385px)                 ║
   ║  Çok kısa landscape ekranlar: 658x320, 667x375, vb.                    ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
   📱 ÇOK KÜÇÜK MOBİL CİHAZLAR İÇİN ÖZEL OPTİMİZASYON (658x320 - 667x375 gibi)
   Sadece yüksekliği 385px ve altında olan landscape cihazları etkiler
   ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 385px) {

    /* === SKİLLER - Market'in sağında (Survival mode) === */
    body.in-game .mobile-skills-container {
        position: absolute !important;
        bottom: 5px !important;
        left: calc(50% + 42vw / 2 + 10px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    body.in-game .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 7px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game .ability-slot {
        width: clamp(42px, 9vh, 52px) !important;
        height: clamp(42px, 9vh, 52px) !important;
        border-radius: 7px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game .ability-icon {
        font-size: clamp(0.9rem, 2vh, 1.15rem) !important;
    }

    /* === TDM MODU - Skill konumları survival ile tamamen aynı === */
    body.in-game.tdm-mode .mobile-skills-container {
        position: absolute !important;
        bottom: 5px !important;
        left: calc(50% + 42vw / 2 + 10px) !important;
        right: auto !important;
        top: auto !important;
        z-index: 96 !important;
        display: flex !important;
    }

    body.in-game.tdm-mode .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 7px !important;
        margin-bottom: 0 !important;
        order: -1 !important;
    }

    body.in-game.tdm-mode .ability-slot {
        width: clamp(42px, 9vh, 52px) !important;
        height: clamp(42px, 9vh, 52px) !important;
        border-radius: 7px !important;
        border: 2px solid rgba(0, 234, 255, 0.6) !important;
        background: rgba(0, 20, 40, 0.9) !important;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.4) !important;
    }

    body.in-game.tdm-mode .ability-icon {
        font-size: clamp(0.9rem, 2vh, 1.15rem) !important;
    }

    /* === LEVEL BAR - TDM ve Survival modunda tam aynı === */
    body.in-game #xp-container {
        position: absolute !important;
        bottom: 52px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 36vw !important;
        min-width: 185px !important;
        max-width: 290px !important;
        height: 16px !important;
        padding: 3px 8px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
        z-index: 105 !important;
    }

    body.in-game .xp-label {
        font-size: 0.52rem !important;
        color: #00ff88 !important;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
    }

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

    /* TDM modunda da tamamen aynı level bar ayarları */
    body.in-game.tdm-mode #xp-container {
        bottom: 52px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 36vw !important;
        min-width: 185px !important;
        max-width: 290px !important;
        height: 16px !important;
        padding: 3px 8px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.3) !important;
        z-index: 105 !important;
    }

    body.in-game.tdm-mode .xp-label {
        font-size: 0.52rem !important;
    }

    body.in-game.tdm-mode .xp-bar-bg {
        height: 6px !important;
    }

    /* === LOBİ BAŞLIK === */
    #overlay h1 {
        font-size: clamp(0.6rem, 2.5vw, 1rem) !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 0px !important;
        line-height: 0.85 !important;
        margin-top: 0px !important;
    }

    /* Mini tutorial - Çok küçült */
    .mini-tutorial {
        gap: 0px !important;
        padding: 1px 3px !important;
        border-radius: 3px !important;
        margin-bottom: 0px !important;
    }

    .tut-item {
        gap: 2px !important;
        font-size: clamp(0.35rem, 0.8vw, 0.55rem) !important;
    }

    .tut-item i {
        font-size: clamp(0.45rem, 0.9vw, 0.65rem) !important;
    }

    .key-box {
        padding: 1px 2px !important;
        font-size: clamp(0.35rem, 0.7vw, 0.55rem) !important;
    }

    .guide-link-btn {
        font-size: clamp(0.35rem, 0.8vw, 0.55rem) !important;
        letter-spacing: 0.2px !important;
        margin-bottom: 0px !important;
    }

    /* === HANGAR WRAPPER & CONTAINER === */
    .hangar-wrapper {
        margin-top: -2px !important;
    }

    .hangar-container {
        gap: clamp(3px, 0.8vw, 6px) !important;
        padding: 3px 8px !important;
        padding-top: 4px !important;
    }

    /* === GEMİ KARTLARI - Çok küçük === */
    .ship-card {
        width: clamp(100px, 14vw, 150px) !important;
        min-width: clamp(100px, 14vw, 150px) !important;
        max-width: 150px !important;
        min-height: clamp(140px, 36vh, 210px) !important;
        max-height: 220px !important;
        padding: clamp(3px, 0.8vw, 6px) !important;
        margin-right: 2px !important;
    }

    .ship-icon {
        width: clamp(28px, 5.5vw, 50px) !important;
        height: clamp(28px, 5.5vw, 50px) !important;
        margin-bottom: 1px !important;
    }

    .ship-icon i {
        font-size: clamp(14px, 3vw, 25px) !important;
    }

    .ship-name {
        font-size: clamp(0.6rem, 1.4vw, 0.8rem) !important;
        margin-bottom: 1px !important;
    }

    .ship-desc {
        font-size: clamp(0.4rem, 0.9vw, 0.6rem) !important;
        height: clamp(24px, 5.5vh, 40px) !important;
        padding: 1px 2px !important;
        margin-bottom: 2px !important;
        line-height: 1.05 !important;
    }

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

    .stat-label {
        font-size: clamp(0.35rem, 0.8vw, 0.5rem) !important;
        min-width: 25px !important;
    }

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

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.5rem, 1.2vw, 0.7rem) !important;
        margin-top: 2px !important;
        padding: 2px 4px !important;
    }

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

    .elite-gate .ship-icon {
        width: clamp(35px, 7vw, 60px) !important;
        height: clamp(35px, 7vw, 60px) !important;
        margin-bottom: 6px !important;
    }

    .elite-gate .ship-icon i {
        font-size: clamp(20px, 4vw, 32px) !important;
    }

    .elite-gate .ship-name {
        font-size: clamp(0.6rem, 1.3vw, 0.75rem) !important;
    }

    /* === GERİ BUTONU === */
    #fixed-back-btn {
        left: 10px !important;
        top: 5px !important;
        padding: 4px 10px !important;
        font-size: clamp(0.6rem, 1.5vw, 0.75rem) !important;
        gap: 4px !important;
    }

    /* === KULLANICI ADI INPUT === */
    #usernameInput {
        width: clamp(160px, 32vw, 280px) !important;
        padding: clamp(4px, 1vh, 8px) !important;
        font-size: clamp(0.6rem, 1.4vw, 0.85rem) !important;
        margin-top: clamp(0px, 0.2vh, 2px) !important;
    }

    /* === OYUN MODLARI BUTONLARI === */
    .game-modes-container {
        width: clamp(170px, 35vw, 310px) !important;
        height: clamp(34px, 8vh, 55px) !important;
        margin-top: clamp(0px, 0.2vh, 2px) !important;
        margin-bottom: 2px !important;
    }

    .mode-btn {
        font-size: clamp(0.5rem, 1.2vw, 0.65rem) !important;
        padding: clamp(3px, 0.8vh, 5px) clamp(5px, 1.2vw, 8px) !important;
    }

    .mode-btn i {
        font-size: clamp(0.55rem, 1.3vw, 0.75rem) !important;
        margin-bottom: 0px !important;
    }

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

    /* === PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: clamp(0.6rem, 1.5vw, 0.75rem) !important;
        padding: 0 8px !important;
    }

    /* === AUTH BUTONU === */
    .auth-btn-lobby {
        top: 22px !important;
        left: 4px !important;
    }

    /* === ÜST SAĞ KONTROLLER === */
    .top-right-controls {
        position: absolute !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 2px !important;
        top: 4px !important;
        right: 4px !important;
        z-index: 210 !important;
    }

    .top-right-controls .icon-btn {
        width: clamp(24px, 4.5vw, 32px) !important;
        height: clamp(24px, 4.5vw, 32px) !important;
        font-size: clamp(0.55rem, 1.3vw, 0.75rem) !important;
        padding: 0 !important;
    }

    .lang-btn {
        min-width: clamp(38px, 7vw, 52px) !important;
        padding: 0 4px !important;
        font-size: clamp(0.5rem, 1.2vw, 0.65rem) !important;
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 3 — MASAÜSTÜ ORTA  (1100–1200px genişlik)                       ║
   ║  Orta boy masaüstü monitörler ve büyük ekranlı laptoplar               ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1138x712 RESOLUTION SPECIFIC ADJUSTMENTS
   Targeting specific request for: Market size, Score screens, HP bar pos, 
   Info tables size, Level bar pos.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1100px) and (max-width: 1200px) and (min-height: 650px) and (max-height: 750px) and (orientation: landscape) {

    /* 1. Market Büyütme (Enlarge Market) - REVİZE: Biraz daha küçültüldü */
    body.in-game .shop-bar {
        bottom: 22px !important;
        /* Raised from 10px to 22px to prevent text clipping */
        gap: 10px !important;
        transform: translateX(-50%) scale(1.1) !important;
        /* Reduced from 1.2 to 1.1 */
        width: auto !important;
    }

    body.in-game .shop-btn {
        width: 48px !important;
        /* Reduced from 55px to 48px */
        height: 48px !important;
        font-size: 0.8rem !important;
    }

    /* Market Fiyatları - Daha belirgin */
    body.in-game .shop-btn::after {
        font-size: 0.5rem !important;
        /* Increased from 0.4rem */
        bottom: -15px !important;
        /* Adjusted */
        font-weight: 900 !important;
        /* Extra bold */
        text-shadow: 0 0 3px #000, 0 0 5px #000 !important;
        /* Enhanced shadow */
        color: #fff !important;
        /* White text */
    }

    /* Upgrade Button Infos (Level & Cost) - Daha belirgin */
    body.in-game .upgrade-info span:first-child {
        /* Level */
        font-size: 0.45rem !important;
        top: -2px !important;
        right: -2px !important;
        padding: 1px 4px !important;
    }

    body.in-game .upgrade-info span:last-child {
        /* Cost */
        font-size: 0.5rem !important;
        bottom: -15px !important;
        /* Adjusted */
        font-weight: 900 !important;
        /* Extra bold */
        color: #fff !important;
        text-shadow: 0 0 3px #000, 0 0 5px #000 !important;
    }

    /* 2. Orta Üst Skor Ekranlarını Büyütme (Enlarge Top Score Screens) */
    /* Survival Mode */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.4) !important;
        top: 25px !important;
    }

    /* TDM Mode */
    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.3) !important;
        top: 25px !important;
    }

    /* 3. HP Bar Sağ Joystick Altına (Unified Position) */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        left: auto !important;
        right: 20px !important;
        /* Matched TDM default */
        bottom: 25px !important;
        justify-content: center !important;
        transform: scale(1.3) !important;
        transform-origin: bottom right !important;
        width: auto !important;
    }

    /* Skills Buttons - Unified Position (Right) */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 190px !important;
        /* Unified at 190px */
    }

    /* 4. Sağ Taraftaki Bilgi Tablolarını Büyütme (Enlarge Right Info Tables) */
    /* Survival */
    body.in-game #leaderboard,
    body.in-game #killboard {
        transform: scale(1.35) !important;
        transform-origin: top right !important;
        right: 0 !important;
        /* Flush right */
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    body.in-game #leaderboard {
        top: 35px !important;
        /* Moved up */
    }

    body.in-game #killboard {
        top: 210px !important;
        /* Moved up and closer */
    }

    /* TDM */
    body.in-game.tdm-mode #tdm-leaderboard,
    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.35) !important;
        transform-origin: top right !important;
        right: 0 !important;
        /* Flush right */
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    body.in-game.tdm-mode #tdm-leaderboard {
        top: 35px !important;
        /* Moved up */
    }

    body.in-game.tdm-mode #tdm-killboard {
        top: 210px !important;
        /* Moved up and closer */
    }

    /* 5. Level Çubuğunu Marketin Üzerine (Level Bar above Market) */
    /* Market is at bottom 22px, height 48px scaled 1.1 (~53px). 
       Top ~75px. 
       "Hemen üstüne" -> Bottom ~88px */
    body.in-game #xp-container {
        bottom: 88px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.2) !important;
        width: 45% !important;
        position: fixed !important;
        /* Match TDM styles */
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 2px 10px !important;
    }

    /* Child elements for Survival to match TDM */
    body.in-game .xp-label {
        font-size: clamp(0.5rem, 1.5vh, 0.8rem) !important;
        color: #00ff88 !important;
        text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
        white-space: nowrap !important;
    }

    body.in-game .xp-bar-bg {
        height: clamp(4px, 1.2vh, 8px) !important;
        border-radius: 4px !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }

    body.in-game .xp-bar-fill {
        border-radius: 4px !important;
    }

    /* Ensure TDM XP container follows suit */
    body.in-game.tdm-mode #xp-container {
        bottom: 88px !important;
        width: 45% !important;
        transform: translateX(-50%) scale(1.2) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
    📱 SPECIAL FIX FOR SHORT SCREENS (e.g. iPhone SE/8 Landscape 667x375)
    MOVED TO END TO ENSURE OVERRIDE
    ═══════════════════════════════════════════════════════════════════════════ */
@media screen and (max-height: 380px) and (orientation: landscape) {
    #overlay h1 {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
        margin-top: 2px !important;
    }

    /* RESTORED TUTORIAL - COMPACT ROW MODE */
    .mini-tutorial {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 2px 6px !important;
        margin-bottom: 2px !important;
        justify-content: center !important;
        background: rgba(0, 20, 40, 0.4) !important;
    }

    .tut-item {
        font-size: 0.5rem !important;
        white-space: nowrap !important;
    }

    .guide-link-btn {
        display: block !important;
        font-size: 0.55rem !important;
        margin-bottom: 2px !important;
        padding: 0 !important;
    }

    /* Adjust layout spacing */
    .hangar-wrapper {
        margin-top: 0px !important;
    }

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

    /* ULTRA COMPRESSED SHIP CARDS */
    .ship-card {
        min-height: 120px !important;
        max-height: 150px !important;
        min-width: 110px !important;
        width: 110px !important;
        padding: 4px !important;
        margin-right: 4px !important;
    }

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

    .ship-icon i {
        font-size: 20px !important;
    }



    .ship-name {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }

    /* Hide description on super short screens to fit the requested Tips section */
    .ship-desc {
        display: none !important;
    }

    /* Compact stats */
    .stat-container {
        padding: 2px !important;
        gap: 1px !important;
    }

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

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

    /* Smaller Game Mode Buttons */
    .game-modes-container {
        margin-top: 3px !important;
        margin-bottom: 3px !important;
        height: 35px !important;
        width: 250px !important;
    }

    .mode-btn {
        padding: 2px 6px !important;
        font-size: 0.7rem !important;
    }

    .mode-btn i {
        font-size: 0.8rem !important;
    }

    /* Smaller Username Input */
    #usernameInput {
        margin-top: 3px !important;
        padding: 4px !important;
        height: 25px !important;
        font-size: 0.85rem !important;
        width: 200px !important;
    }

    /* Compact Top Corners */
    .lobby-money {
        padding: 0 6px !important;
        font-size: 0.75rem !important;
    }

    /* === AUTH BUTONU === */
    .auth-btn-lobby {
        top: 22px !important;
        left: 5px !important;
    }

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

    .top-right-controls .icon-btn,
    #exitBtn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 4 — ORTA-BÜYÜK TABLET  (980–1220px genişlik)                    ║
   ║  iPad Pro, tablet/laptop arası ekranlar (1024x768, 1200x820)           ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1024x768 RESOLUTION SPECIFIC ADJUSTMENTS
   Targeting tablets and similar devices with 1024x768 landscape mode
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 980px) and (max-width: 1080px) and (min-height: 700px) and (max-height: 800px) and (orientation: landscape) {

    /* 1. SURVIVAL MODE - Liderler ve Avcılar Tabloları Büyütme */
    body.in-game #leaderboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 40px !important;
        width: 130px !important;
        max-height: 110px !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 9px !important;
    }

    body.in-game #leaderboard li {
        font-size: 8.5px !important;
    }

    body.in-game #killboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 230px !important;
        width: 130px !important;
        max-height: 85px !important;
    }

    body.in-game #killboard h3 {
        font-size: 9px !important;
    }

    body.in-game #killboard li {
        font-size: 8.5px !important;
    }

    /* 2. Market - Daha küçük */
    body.in-game .shop-bar {
        bottom: 18px !important;
        gap: 8px !important;
        transform: translateX(-50%) scale(1.0) !important;
    }

    body.in-game .shop-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.8rem !important;
    }

    body.in-game .shop-btn::after {
        font-size: 0.45rem !important;
        bottom: -12px !important;
        font-weight: 800 !important;
    }

    /* 3. Level Çubuğu - Marketin hemen üstünde - Küçültüldü */
    body.in-game #xp-container {
        bottom: 72px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.1) !important;
        width: 35% !important;
        min-width: 240px !important;
        position: fixed !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 3px 10px !important;
    }

    body.in-game .xp-label {
        font-size: 0.6rem !important;
    }

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

    body.in-game.tdm-mode #xp-container {
        bottom: 72px !important;
        transform: translateX(-50%) scale(1.1) !important;
        width: 35% !important;
        min-width: 240px !important;
    }

    /* 4. Skills Butonlarını Daha Sağa Kaydırma ve Büyütme */
    body.in-game .mobile-skills-container {
        left: auto !important;
        right: 180px !important;
        bottom: 10px !important;
    }

    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 180px !important;
        bottom: 10px !important;
    }

    body.in-game .ability-slot {
        width: 56px !important;
        height: 56px !important;
    }

    body.in-game .ability-icon {
        font-size: 1.3rem !important;
    }

    /* 5. Üst Orta Skor/Para Panelini Büyütme */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.5) !important;
        top: 25px !important;
        padding: 6px 22px !important;
        gap: 28px !important;
    }

    body.in-game .score-box {
        font-size: 0.95rem !important;
        letter-spacing: 1.2px !important;
    }

    body.in-game .money-box {
        font-size: 0.9rem !important;
        letter-spacing: 1.2px !important;
    }

    /* 6. Sağ Üst Butonlar - Lobideki ile aynı boyut */
    body.in-game .top-right-controls {
        top: 5px !important;
        right: 5px !important;
        gap: 4px !important;
    }

    body.in-game .top-right-controls .icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    /* 7. Sol Üst Radar ve Çıkış Butonu - Büyütüldü */
    body.in-game #exitBtn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
        top: 5px !important;
        left: 8px !important;
    }

    body.in-game .minimap-container {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px !important;
        min-height: 110px !important;
        max-width: 110px !important;
        max-height: 110px !important;
        top: 5px !important;
        left: 55px !important;
        overflow: hidden !important;
        transform: none !important;
        position: absolute !important;
    }

    body.in-game .minimap-container #minimap {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
    }

    body.in-game .minimap-container #minimap canvas,
    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 110px !important;
        max-height: 110px !important;
    }

    /* 8. HP Bar - Biraz büyütüldü */
    body.in-game .health-container {
        transform: scale(1.15) !important;
        transform-origin: bottom right !important;
    }

    body.in-game.tdm-mode .health-container {
        transform: scale(1.15) !important;
        transform-origin: bottom right !important;
    }

    /* TDM Mode için de aynı ayarlar */
    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.5) !important;
        top: 25px !important;
    }

    body.in-game.tdm-mode #tdm-leaderboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 40px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 230px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1180x820 RESOLUTION SPECIFIC ADJUSTMENTS
   Mobil tablet boyutu için özel düzenlemeler
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1140px) and (max-width: 1220px) and (min-height: 780px) and (max-height: 860px) and (orientation: landscape) {

    /* === 1. LOBİ - Ekranı doldurması için büyütme === */
    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0px !important;
    }

    .hangar-container {
        gap: 12px !important;
        padding: 12px 25px !important;
        padding-top: 16px !important;
        justify-content: center !important;
    }

    .ship-card {
        width: clamp(145px, 18vw, 195px) !important;
        min-width: clamp(145px, 18vw, 195px) !important;
        max-width: 210px !important;
        min-height: clamp(200px, 52vh, 300px) !important;
        max-height: 320px !important;
        padding: clamp(10px, 1.8vw, 16px) !important;
    }

    .ship-icon {
        width: clamp(48px, 10vw, 70px) !important;
        height: clamp(48px, 10vw, 70px) !important;
        margin-bottom: 8px !important;
    }

    .ship-icon i {
        font-size: clamp(28px, 5.5vw, 42px) !important;
    }

    .ship-name {
        font-size: clamp(0.95rem, 2.3vw, 1.25rem) !important;
        margin-bottom: 6px !important;
    }

    .ship-desc {
        font-size: clamp(0.6rem, 1.5vw, 0.85rem) !important;
        height: clamp(42px, 10vh, 65px) !important;
        padding: 5px 7px !important;
        margin-bottom: 7px !important;
    }

    .stat-label {
        font-size: clamp(0.5rem, 1.2vw, 0.7rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.7rem, 1.9vw, 0.95rem) !important;
        padding: 5px 10px !important;
    }

    /* === 2. SKILLS BUTONLARI - Biraz sağa kaydırma === */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 200px !important;
        bottom: 12px !important;
    }

    body.in-game .ability-slot,
    body.in-game.tdm-mode .ability-slot {
        width: 58px !important;
        height: 58px !important;
    }

    body.in-game .ability-icon,
    body.in-game.tdm-mode .ability-icon {
        font-size: 1.35rem !important;
    }

    /* === 3. MARKET ve LEVEL BAR === */
    body.in-game .shop-bar {
        bottom: 18px !important;
        gap: 10px !important;
        transform: translateX(-50%) scale(1.05) !important;
    }

    body.in-game .shop-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 0.8rem !important;
    }

    body.in-game .shop-btn::after {
        font-size: 0.5rem !important;
        bottom: -13px !important;
        font-weight: 900 !important;
    }

    /* Level Bar */
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        bottom: 82px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.1) !important;
        width: 38% !important;
        min-width: 250px !important;
        position: fixed !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 3px 10px !important;
    }

    body.in-game .xp-label,
    body.in-game.tdm-mode .xp-label {
        font-size: 0.6rem !important;
    }

    body.in-game .xp-bar-bg,
    body.in-game.tdm-mode .xp-bar-bg {
        height: 6px !important;
        border-radius: 3px !important;
    }

    /* === 4. SOL ÜST - Çıkış Butonu ve Radar Büyütme === */
    body.in-game #exitBtn {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        top: 6px !important;
        left: 10px !important;
    }

    body.in-game .minimap-container {
        width: 120px !important;
        height: 120px !important;
        min-width: 120px !important;
        min-height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        top: 6px !important;
        left: 60px !important;
        overflow: hidden !important;
        transform: none !important;
        position: absolute !important;
    }

    body.in-game .minimap-container #minimap {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
    }

    body.in-game .minimap-container #minimap canvas,
    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }

    /* === 5. SKOR PARA YAZISI - Büyütme === */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.5) !important;
        top: 28px !important;
        padding: 7px 24px !important;
        gap: 30px !important;
    }

    body.in-game .score-box {
        font-size: 1rem !important;
        letter-spacing: 1.3px !important;
    }

    body.in-game .money-box {
        font-size: 0.95rem !important;
        letter-spacing: 1.3px !important;
    }

    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.5) !important;
        top: 28px !important;
    }

    /* === 6. SAĞ ÜST KONTROLLER - Lobideki ile aynı boyut === */
    body.in-game .top-right-controls {
        top: 6px !important;
        right: 6px !important;
        gap: 5px !important;
    }

    body.in-game .top-right-controls .icon-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }

    /* Lobi butonları da aynı boyutta */
    .top-right-controls .icon-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }

    .lang-btn {
        min-width: 50px !important;
        padding: 0 6px !important;
        font-size: 0.7rem !important;
    }

    /* === 7. LİDERLER ve AVCILAR - Büyütme === */
    body.in-game #leaderboard {
        transform: scale(1.45) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 45px !important;
        width: 135px !important;
        max-height: 120px !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 10px !important;
    }

    body.in-game #leaderboard li {
        font-size: 9px !important;
    }

    body.in-game #killboard {
        transform: scale(1.45) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 210px !important;
        width: 135px !important;
        max-height: 95px !important;
    }

    body.in-game #killboard h3 {
        font-size: 10px !important;
    }

    body.in-game #killboard li {
        font-size: 9px !important;
    }

    /* TDM Mode */
    body.in-game.tdm-mode #tdm-leaderboard {
        transform: scale(1.45) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 45px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.45) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 210px !important;
    }

    /* === 8. HP BAR - Biraz büyütme === */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        transform: scale(1.2) !important;
        transform-origin: bottom right !important;
    }

    /* === LOBİ PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: 0.85rem !important;
        padding: 0 12px !important;
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 5 — BÜYÜK TABLET & GENİŞ MASAÜSTÜ  (1220–1450px genişlik)      ║
   ║  Büyük tabletler, masaüstü geniş ekranlar (1366x1024, 1440x900)       ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1366x1024 RESOLUTION SPECIFIC ADJUSTMENTS
   Tablet ve benzeri cihazlar için özel düzenlemeler
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1300px) and (max-width: 1450px) and (min-height: 950px) and (max-height: 1100px) and (orientation: landscape) {

    /* === 1. LOBİ - Ekranı doldurması için büyütme === */
    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0px !important;
    }

    .hangar-container {
        gap: 14px !important;
        padding: 14px 30px !important;
        padding-top: 18px !important;
        justify-content: center !important;
    }

    .ship-card {
        width: clamp(160px, 17vw, 210px) !important;
        min-width: clamp(160px, 17vw, 210px) !important;
        max-width: 230px !important;
        min-height: clamp(220px, 55vh, 340px) !important;
        max-height: 360px !important;
        padding: clamp(12px, 2vw, 18px) !important;
    }

    .ship-icon {
        width: clamp(55px, 11vw, 80px) !important;
        height: clamp(55px, 11vw, 80px) !important;
        margin-bottom: 10px !important;
    }

    .ship-icon i {
        font-size: clamp(32px, 6vw, 48px) !important;
    }

    .ship-name {
        font-size: clamp(1rem, 2.4vw, 1.35rem) !important;
        margin-bottom: 8px !important;
    }

    .ship-desc {
        font-size: clamp(0.65rem, 1.6vw, 0.9rem) !important;
        height: clamp(48px, 11vh, 75px) !important;
        padding: 6px 8px !important;
        margin-bottom: 8px !important;
    }

    .stat-label {
        font-size: clamp(0.55rem, 1.3vw, 0.75rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.75rem, 2vw, 1rem) !important;
        padding: 6px 12px !important;
    }

    /* === 2. SKILLS BUTONLARI - Sağa kaydırma === */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 220px !important;
        bottom: 15px !important;
    }

    body.in-game .ability-slot,
    body.in-game.tdm-mode .ability-slot {
        width: 62px !important;
        height: 62px !important;
    }

    body.in-game .ability-icon,
    body.in-game.tdm-mode .ability-icon {
        font-size: 1.4rem !important;
    }

    /* === 3. MARKET ve LEVEL BAR === */
    body.in-game .shop-bar {
        bottom: 20px !important;
        gap: 12px !important;
        transform: translateX(-50%) scale(1.1) !important;
    }

    body.in-game .shop-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 0.85rem !important;
    }

    body.in-game .shop-btn::after {
        font-size: 0.55rem !important;
        bottom: -14px !important;
        font-weight: 900 !important;
    }

    /* Level Bar */
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        bottom: 90px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.15) !important;
        width: 40% !important;
        min-width: 280px !important;
        position: fixed !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 4px 12px !important;
    }

    body.in-game .xp-label,
    body.in-game.tdm-mode .xp-label {
        font-size: 0.65rem !important;
    }

    body.in-game .xp-bar-bg,
    body.in-game.tdm-mode .xp-bar-bg {
        height: 7px !important;
        border-radius: 4px !important;
    }

    /* === 4. SOL ÜST - Çıkış Butonu ve Radar Büyütme === */
    body.in-game #exitBtn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
        top: 8px !important;
        left: 12px !important;
    }

    body.in-game .minimap-container {
        width: 130px !important;
        height: 130px !important;
        min-width: 130px !important;
        min-height: 130px !important;
        max-width: 130px !important;
        max-height: 130px !important;
        top: 8px !important;
        left: 68px !important;
        overflow: hidden !important;
        transform: none !important;
        position: absolute !important;
    }

    body.in-game .minimap-container #minimap {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
    }

    body.in-game .minimap-container #minimap canvas,
    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 130px !important;
        max-height: 130px !important;
    }

    /* === 5. SKOR PARA YAZISI - Büyütme === */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.6) !important;
        top: 30px !important;
        padding: 8px 26px !important;
        gap: 32px !important;
    }

    body.in-game .score-box {
        font-size: 1.05rem !important;
        letter-spacing: 1.4px !important;
    }

    body.in-game .money-box {
        font-size: 1rem !important;
        letter-spacing: 1.4px !important;
    }

    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.6) !important;
        top: 30px !important;
    }

    /* === 6. SAĞ ÜST KONTROLLER - Lobideki ile aynı boyut === */
    body.in-game .top-right-controls {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }

    body.in-game .top-right-controls .icon-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.95rem !important;
    }

    /* Lobi butonları da aynı boyutta */
    .top-right-controls .icon-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.95rem !important;
    }

    .lang-btn {
        min-width: 55px !important;
        padding: 0 7px !important;
        font-size: 0.75rem !important;
    }

    /* === 7. LİDERLER ve AVCILAR - Büyütme === */
    body.in-game #leaderboard {
        transform: scale(1.55) !important;
        transform-origin: top right !important;
        right: 8px !important;
        top: 50px !important;
        width: 140px !important;
        max-height: 130px !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 11px !important;
    }

    body.in-game #leaderboard li {
        font-size: 10px !important;
    }

    body.in-game #killboard {
        transform: scale(1.55) !important;
        transform-origin: top right !important;
        right: 8px !important;
        top: 250px !important;
        width: 140px !important;
        max-height: 100px !important;
    }

    body.in-game #killboard h3 {
        font-size: 11px !important;
    }

    body.in-game #killboard li {
        font-size: 10px !important;
    }

    /* TDM Mode */
    body.in-game.tdm-mode #tdm-leaderboard {
        transform: scale(1.55) !important;
        transform-origin: top right !important;
        right: 8px !important;
        top: 50px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.55) !important;
        transform-origin: top right !important;
        right: 8px !important;
        top: 250px !important;
    }

    /* === 8. HP BAR - Büyütme === */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        transform: scale(1.25) !important;
        transform-origin: bottom right !important;
    }

    /* === LOBİ PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: 0.9rem !important;
        padding: 0 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1368x912 RESOLUTION SPECIFIC ADJUSTMENTS
   Tablet ve benzeri cihazlar için özel düzenlemeler
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1300px) and (max-width: 1450px) and (min-height: 850px) and (max-height: 950px) and (orientation: landscape) {

    /* === 1. LOBİ - Ekranı doldurması için büyütme === */
    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0px !important;
    }

    .hangar-container {
        gap: 14px !important;
        padding: 14px 28px !important;
        padding-top: 16px !important;
        justify-content: center !important;
    }

    .ship-card {
        width: clamp(155px, 17vw, 200px) !important;
        min-width: clamp(155px, 17vw, 200px) !important;
        max-width: 220px !important;
        height: 340px !important;
        min-height: clamp(240px, 37vh, 340px) !important;
        max-height: 350px !important;
        padding: clamp(10px, 1.8vw, 16px) !important;
    }

    .ship-icon {
        width: clamp(50px, 10vw, 75px) !important;
        height: clamp(50px, 10vw, 75px) !important;
        margin-bottom: 8px !important;
    }

    .ship-icon i {
        font-size: clamp(30px, 5.5vw, 45px) !important;
    }

    .ship-name {
        font-size: clamp(0.95rem, 2.3vw, 1.3rem) !important;
        margin-bottom: 7px !important;
    }

    .ship-desc {
        font-size: clamp(0.6rem, 1.5vw, 0.85rem) !important;
        height: clamp(45px, 10vh, 68px) !important;
        padding: 5px 7px !important;
        margin-bottom: 7px !important;
    }

    .stat-label {
        font-size: clamp(0.52rem, 1.25vw, 0.72rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.72rem, 1.95vw, 0.98rem) !important;
        padding: 5px 11px !important;
    }

    /* === 2. SKILLS BUTONLARI - Sağa kaydırma === */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 210px !important;
        bottom: 14px !important;
    }

    body.in-game .ability-slot,
    body.in-game.tdm-mode .ability-slot {
        width: 60px !important;
        height: 60px !important;
    }

    body.in-game .ability-icon,
    body.in-game.tdm-mode .ability-icon {
        font-size: 1.38rem !important;
    }

    /* === 3. MARKET ve LEVEL BAR === */
    body.in-game .shop-bar {
        bottom: 18px !important;
        gap: 11px !important;
        transform: translateX(-50%) scale(1.08) !important;
    }

    body.in-game .shop-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.82rem !important;
    }

    body.in-game .shop-btn::after {
        font-size: 0.52rem !important;
        bottom: -13px !important;
        font-weight: 900 !important;
    }

    /* Level Bar */
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        bottom: 85px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.12) !important;
        width: 39% !important;
        min-width: 265px !important;
        position: fixed !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 3px 11px !important;
    }

    body.in-game .xp-label,
    body.in-game.tdm-mode .xp-label {
        font-size: 0.62rem !important;
    }

    body.in-game .xp-bar-bg,
    body.in-game.tdm-mode .xp-bar-bg {
        height: 6px !important;
        border-radius: 3px !important;
    }

    /* === 4. SOL ÜST - Çıkış Butonu ve Radar Büyütme === */
    body.in-game #exitBtn {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.05rem !important;
        top: 7px !important;
        left: 11px !important;
    }

    body.in-game .minimap-container {
        width: 125px !important;
        height: 125px !important;
        min-width: 125px !important;
        min-height: 125px !important;
        max-width: 125px !important;
        max-height: 125px !important;
        top: 7px !important;
        left: 64px !important;
        overflow: hidden !important;
        transform: none !important;
        position: absolute !important;
    }

    body.in-game .minimap-container #minimap {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
    }

    body.in-game .minimap-container #minimap canvas,
    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 125px !important;
        max-height: 125px !important;
    }

    /* === 5. SKOR PARA YAZISI - Büyütme === */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.55) !important;
        top: 28px !important;
        padding: 7px 25px !important;
        gap: 30px !important;
    }

    body.in-game .score-box {
        font-size: 1.02rem !important;
        letter-spacing: 1.35px !important;
    }

    body.in-game .money-box {
        font-size: 0.97rem !important;
        letter-spacing: 1.35px !important;
    }

    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.55) !important;
        top: 28px !important;
    }

    /* === 6. SAĞ ÜST KONTROLLER - Lobideki ile aynı boyut === */
    body.in-game .top-right-controls {
        top: 7px !important;
        right: 7px !important;
        gap: 5px !important;
    }

    body.in-game .top-right-controls .icon-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.92rem !important;
    }

    /* Lobi butonları da aynı boyutta */
    .top-right-controls .icon-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.92rem !important;
    }

    .lang-btn {
        min-width: 52px !important;
        padding: 0 6px !important;
        font-size: 0.72rem !important;
    }

    /* === 7. LİDERLER ve AVCILAR - Büyütme === */
    body.in-game #leaderboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 6px !important;
        top: 48px !important;
        width: 138px !important;
        max-height: 125px !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 10px !important;
    }

    body.in-game #leaderboard li {
        font-size: 9px !important;
    }

    body.in-game #killboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 6px !important;
        top: 230px !important;
        width: 138px !important;
        max-height: 98px !important;
    }

    body.in-game #killboard h3 {
        font-size: 10px !important;
    }

    body.in-game #killboard li {
        font-size: 9px !important;
    }

    /* TDM Mode */
    body.in-game.tdm-mode #tdm-leaderboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 6px !important;
        top: 48px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.5) !important;
        transform-origin: top right !important;
        right: 6px !important;
        top: 230px !important;
    }

    /* === 8. HP BAR - Büyütme === */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        transform: scale(1.22) !important;
        transform-origin: bottom right !important;
    }

    /* === LOBİ PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: 0.88rem !important;
        padding: 0 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 1280x853 RESOLUTION SPECIFIC ADJUSTMENTS
   Tablet ve benzeri cihazlar için özel düzenlemeler
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1220px) and (max-width: 1340px) and (min-height: 800px) and (max-height: 900px) and (orientation: landscape) {

    /* === 1. LOBİ - Ekranı doldurması için büyütme === */
    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0px !important;
    }

    .hangar-container {
        gap: 12px !important;
        padding: 12px 25px !important;
        padding-top: 14px !important;
        justify-content: center !important;
    }

    .ship-card {
        width: clamp(148px, 16.5vw, 190px) !important;
        min-width: clamp(148px, 16.5vw, 190px) !important;
        max-width: 210px !important;
        height: 340px !important;
        min-height: clamp(230px, 40vh, 340px) !important;
        max-height: 350px !important;
        padding: clamp(9px, 1.7vw, 15px) !important;
    }

    .ship-icon {
        width: clamp(48px, 9.5vw, 70px) !important;
        height: clamp(48px, 9.5vw, 70px) !important;
        margin-bottom: 7px !important;
    }

    .ship-icon i {
        font-size: clamp(28px, 5.2vw, 42px) !important;
    }

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

    .ship-desc {
        font-size: clamp(0.58rem, 1.4vw, 0.82rem) !important;
        height: clamp(42px, 9.5vh, 62px) !important;
        padding: 5px 6px !important;
        margin-bottom: 6px !important;
    }

    .stat-label {
        font-size: clamp(0.5rem, 1.2vw, 0.68rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.68rem, 1.85vw, 0.92rem) !important;
        padding: 5px 10px !important;
    }

    /* === 2. SKILLS BUTONLARI - Sağa kaydırma === */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        left: auto !important;
        right: 195px !important;
        bottom: 12px !important;
    }

    body.in-game .ability-slot,
    body.in-game.tdm-mode .ability-slot {
        width: 56px !important;
        height: 56px !important;
    }

    body.in-game .ability-icon,
    body.in-game.tdm-mode .ability-icon {
        font-size: 1.3rem !important;
    }

    /* === 3. MARKET ve LEVEL BAR === */
    body.in-game .shop-bar {
        bottom: 16px !important;
        gap: 10px !important;
        transform: translateX(-50%) scale(1.02) !important;
    }

    body.in-game .shop-btn {
        width: 46px !important;
        height: 46px !important;
        font-size: 0.78rem !important;
    }

    body.in-game .shop-btn::after {
        font-size: 0.48rem !important;
        bottom: -12px !important;
        font-weight: 900 !important;
    }

    /* Level Bar */
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        bottom: 78px !important;
        left: 50% !important;
        transform: translateX(-50%) scale(1.08) !important;
        width: 36% !important;
        min-width: 245px !important;
        position: fixed !important;
        background: rgba(0, 0, 0, 0.6) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 136, 0.4) !important;
        z-index: 95 !important;
        padding: 3px 10px !important;
    }

    body.in-game .xp-label,
    body.in-game.tdm-mode .xp-label {
        font-size: 0.58rem !important;
    }

    body.in-game .xp-bar-bg,
    body.in-game.tdm-mode .xp-bar-bg {
        height: 6px !important;
        border-radius: 3px !important;
    }

    /* === 4. SOL ÜST - Çıkış Butonu ve Radar Büyütme === */
    body.in-game #exitBtn {
        width: 42px !important;
        height: 42px !important;
        font-size: 0.98rem !important;
        top: 6px !important;
        left: 10px !important;
    }

    body.in-game .minimap-container {
        width: 115px !important;
        height: 115px !important;
        min-width: 115px !important;
        min-height: 115px !important;
        max-width: 115px !important;
        max-height: 115px !important;
        top: 6px !important;
        left: 58px !important;
        overflow: hidden !important;
        transform: none !important;
        position: absolute !important;
    }

    body.in-game .minimap-container #minimap {
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        transform: none !important;
    }

    body.in-game .minimap-container #minimap canvas,
    body.in-game .minimap-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 115px !important;
        max-height: 115px !important;
    }

    /* === 5. SKOR PARA YAZISI - Büyütme === */
    body.in-game .center-panel {
        transform: translateX(-50%) scale(1.45) !important;
        top: 26px !important;
        padding: 6px 22px !important;
        gap: 28px !important;
    }

    body.in-game .score-box {
        font-size: 0.95rem !important;
        letter-spacing: 1.25px !important;
    }

    body.in-game .money-box {
        font-size: 0.9rem !important;
        letter-spacing: 1.25px !important;
    }

    body.in-game.tdm-mode #tdm-score-panel {
        transform: translateX(-50%) scale(1.45) !important;
        top: 26px !important;
    }

    /* === 6. SAĞ ÜST KONTROLLER - Lobideki ile aynı boyut === */
    body.in-game .top-right-controls {
        top: 6px !important;
        right: 6px !important;
        gap: 4px !important;
    }

    body.in-game .top-right-controls .icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    /* Lobi butonları da aynı boyutta */
    .top-right-controls .icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
    }

    .lang-btn {
        min-width: 48px !important;
        padding: 0 5px !important;
        font-size: 0.68rem !important;
    }

    /* === 7. LİDERLER ve AVCILAR - Büyütme === */
    body.in-game #leaderboard {
        transform: scale(1.42) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 45px !important;
        width: 132px !important;
        max-height: 118px !important;
    }

    body.in-game #leaderboard h3 {
        font-size: 9px !important;
    }

    body.in-game #leaderboard li {
        font-size: 8.5px !important;
    }

    body.in-game #killboard {
        transform: scale(1.42) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 215px !important;
        width: 132px !important;
        max-height: 92px !important;
    }

    body.in-game #killboard h3 {
        font-size: 9px !important;
    }

    body.in-game #killboard li {
        font-size: 8.5px !important;
    }

    /* TDM Mode */
    body.in-game.tdm-mode #tdm-leaderboard {
        transform: scale(1.42) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 45px !important;
    }

    body.in-game.tdm-mode #tdm-killboard {
        transform: scale(1.42) !important;
        transform-origin: top right !important;
        right: 5px !important;
        top: 215px !important;
    }

    /* === 8. HP BAR - Büyütme === */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        transform: scale(1.18) !important;
        transform-origin: bottom right !important;
    }

    /* === LOBİ PARA GÖSTERGESİ === */
    .lobby-money {
        font-size: 0.82rem !important;
        padding: 0 11px !important;
    }

    /* ═════════════════════════════════════════════════════════════════════════
     📱 740x360 CİHAZ İÇİN ÖZEL DÜZENLEMELER
     Market küçültme ve HP barını sol joystickin altına taşıma
     ═════════════════════════════════════════════════════════════════════════ */
    @media (pointer: coarse) and (orientation: landscape) and (min-width: 720px) and (max-width: 760px) and (min-height: 350px) and (max-height: 370px) {

        /* === MARKET BUTONLARI - Daha da küçültüldü === */
        body.in-game .shop-bar {
            position: absolute !important;
            bottom: 5px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            padding: 2px 5px !important;
            gap: 2px !important;
            background: rgba(0, 0, 0, 0.6) !important;
            border-radius: 6px !important;
            max-width: 75% !important;
            z-index: 100 !important;
        }

        body.in-game .shop-btn {
            position: relative !important;
            width: 28px !important;
            height: 28px !important;
            font-size: 0.58rem !important;
            border-radius: 4px !important;
            background: rgba(0, 20, 40, 0.7) !important;
        }

        body.in-game .shop-btn::after {
            display: block !important;
            position: absolute !important;
            bottom: -10px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            font-size: 0.28rem !important;
            color: #ccc !important;
            white-space: nowrap !important;
            text-shadow: 1px 1px 1px #000 !important;
        }

        body.in-game .shop-btn::before {
            display: none !important;
        }

        body.in-game .badge-time {
            font-size: 0.26rem !important;
            padding: 1px 2px !important;
            bottom: 2px !important;
            right: 2px !important;
        }

        body.in-game .separator {
            display: block !important;
            width: 1px !important;
            height: 24px !important;
            background: rgba(255, 255, 255, 0.2) !important;
            margin: 0 2px !important;
        }

        body.in-game .upgrade-btn {
            position: relative !important;
        }

        body.in-game .upgrade-info {
            display: flex !important;
            flex-direction: column !important;
            position: static !important;
        }

        body.in-game .upgrade-info span:first-child {
            position: absolute !important;
            top: 1px !important;
            right: 1px !important;
            font-size: 0.28rem !important;
            background: rgba(0, 0, 0, 0.7) !important;
            padding: 1px 2px !important;
            border-radius: 3px !important;
            color: #fff !important;
        }

        body.in-game .upgrade-info span:last-child {
            position: absolute !important;
            bottom: -10px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            font-size: 0.28rem !important;
            color: #ccc !important;
            white-space: nowrap !important;
        }

        body.in-game .upgrade-info br {
            display: none !important;
        }

        body.in-game .upgrade-btn::after {
            display: none !important;
        }

        /* === HP BAR - SOL JOYSTICKİN ALTINA TAŞINDI === */
        body.in-game .health-container {
            position: absolute !important;
            bottom: clamp(12px, 3.5vh, 18px) !important;
            left: 35px !important;
            /* Sol joystickin altında */
            right: auto !important;
            top: auto !important;
            width: auto !important;
            min-width: 90px !important;
            max-width: 120px !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 5px !important;
            background: rgba(0, 0, 0, 0.5) !important;
            padding: 3px 5px !important;
            border-radius: 5px !important;
            border: 1px solid rgba(0, 234, 255, 0.3) !important;
            z-index: 95 !important;
        }

        body.in-game .p1-health {
            display: flex !important;
            align-items: center !important;
            gap: 4px !important;
            font-size: 0.5rem !important;
            color: #00eaff !important;
            width: 100% !important;
        }

        body.in-game .bar-bg {
            flex-grow: 1 !important;
            height: 6px !important;
            min-width: 55px !important;
            border-radius: 3px !important;
            background: rgba(255, 255, 255, 0.15) !important;
            border: 1px solid rgba(0, 234, 255, 0.4) !important;
            transform: none !important;
        }

        /* === TDM MODU - AYNI AYARLAR === */
        body.in-game.tdm-mode .health-container {
            position: absolute !important;
            bottom: clamp(12px, 3.5vh, 18px) !important;
            left: 35px !important;
            right: auto !important;
            top: auto !important;
            width: auto !important;
            min-width: 90px !important;
            max-width: 120px !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 5px !important;
            background: rgba(0, 0, 0, 0.5) !important;
            padding: 3px 5px !important;
            border-radius: 5px !important;
            border: 1px solid rgba(0, 234, 255, 0.3) !important;
            z-index: 95 !important;
        }

        body.in-game.tdm-mode .p1-health {
            font-size: 0.5rem !important;
        }

        body.in-game.tdm-mode .bar-bg {
            height: 6px !important;
            min-width: 55px !important;
        }

        /* === XP BAR - Marketin üstünde === */
        body.in-game #xp-container,
        body.in-game.tdm-mode #xp-container {
            position: absolute !important;
            bottom: 45px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            width: clamp(160px, 35vw, 280px) !important;
            height: 12px !important;
            padding: 2px 6px !important;
            background: rgba(0, 0, 0, 0.5) !important;
            border-radius: 6px !important;
            border: 1px solid rgba(0, 255, 136, 0.3) !important;
            z-index: 105 !important;
        }

        body.in-game .xp-label,
        body.in-game.tdm-mode .xp-label {
            font-size: 0.42rem !important;
            color: #00ff88 !important;
            text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
        }

        body.in-game .xp-bar-bg,
        body.in-game.tdm-mode .xp-bar-bg {
            height: 4px !important;
            border-radius: 3px !important;
        }

        /* === SKILL BUTONLARI - Marketin sağına === */
        body.in-game .mobile-skills-container,
        body.in-game.tdm-mode .mobile-skills-container {
            position: absolute !important;
            bottom: 5px !important;
            left: calc(50% + 40vw / 2 + 8px) !important;
            right: auto !important;
            top: auto !important;
            z-index: 96 !important;
            display: flex !important;
        }

        body.in-game .abilities-wrapper,
        body.in-game.tdm-mode .abilities-wrapper {
            display: flex !important;
            flex-direction: row !important;
            gap: 5px !important;
            margin-bottom: 0 !important;
            order: -1 !important;
        }

        body.in-game .ability-slot,
        body.in-game.tdm-mode .ability-slot {
            width: clamp(36px, 8vh, 48px) !important;
            height: clamp(36px, 8vh, 48px) !important;
            border-radius: 6px !important;
            border: 2px solid rgba(0, 234, 255, 0.6) !important;
            background: rgba(0, 20, 40, 0.9) !important;
            box-shadow: 0 0 8px rgba(0, 234, 255, 0.4) !important;
        }

        body.in-game .ability-icon,
        body.in-game.tdm-mode .ability-icon {
            font-size: clamp(0.85rem, 1.8vh, 1.1rem) !important;
        }

        /* === JOYSTICKLER === */
        body.in-game #stick-left {
            position: absolute !important;
            bottom: 45px !important;
            left: 35px !important;
            width: 24vh !important;
            height: 24vh !important;
            min-width: 105px !important;
            min-height: 105px !important;
            max-width: 135px !important;
            max-height: 135px !important;
            margin: 0 !important;
            opacity: 0.85 !important;
            pointer-events: auto !important;
        }

        body.in-game #stick-left .stick-base {
            width: 100% !important;
            height: 100% !important;
            background: rgba(0, 234, 255, 0.1) !important;
            border: 2px solid rgba(0, 234, 255, 0.4) !important;
            border-radius: 50% !important;
        }

        body.in-game #stick-left .stick-handle {
            width: 42% !important;
            height: 42% !important;
            background: rgba(0, 234, 255, 0.7) !important;
            box-shadow: 0 0 15px rgba(0, 234, 255, 0.5) !important;
        }

        body.in-game #stick-right {
            position: absolute !important;
            bottom: 45px !important;
            right: 35px !important;
            width: 24vh !important;
            height: 24vh !important;
            min-width: 105px !important;
            min-height: 105px !important;
            max-width: 135px !important;
            max-height: 135px !important;
            margin: 0 !important;
            opacity: 0.85 !important;
            pointer-events: auto !important;
        }

        body.in-game #stick-right .stick-base {
            width: 100% !important;
            height: 100% !important;
            background: rgba(255, 0, 85, 0.1) !important;
            border: 2px solid rgba(255, 0, 85, 0.4) !important;
            border-radius: 50% !important;
        }

        body.in-game #stick-right .stick-handle {
            width: 42% !important;
            height: 42% !important;
            background: rgba(255, 0, 85, 0.7) !important;
            box-shadow: 0 0 15px rgba(255, 0, 85, 0.5) !important;
        }

        /* === ÜST SKOR PANELİ === */
        body.in-game .center-panel {
            position: absolute !important;
            top: 3px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            padding: 4px 14px !important;
            gap: 18px !important;
            background: rgba(0, 0, 0, 0.5) !important;
            border-radius: 8px !important;
            border-top: 2px solid rgba(0, 234, 255, 0.5) !important;
            z-index: 100 !important;
        }

        body.in-game .score-box {
            font-size: 0.72rem !important;
            letter-spacing: 1px !important;
            color: #00eaff !important;
            text-shadow: 0 0 5px rgba(0, 234, 255, 0.5) !important;
        }

        body.in-game .money-box {
            font-size: 0.68rem !important;
            letter-spacing: 1px !important;
            color: #ffd700 !important;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important;
        }

        /* === TDM SKOR PANELİ === */
        body.in-game.tdm-mode #tdm-score-panel {
            transform: translateX(-50%) scale(0.62) !important;
            padding: 5px 12px !important;
        }

        /* === SURVIVAL TABLOLARI === */
        body.in-game #leaderboard {
            position: absolute !important;
            top: 30px !important;
            right: 5px !important;
            bottom: auto !important;
            width: 90px !important;
            max-width: 105px !important;
            padding: 3px 5px !important;
            background: rgba(0, 0, 0, 0.75) !important;
            border-radius: 5px !important;
            border-left: 2px solid rgba(0, 234, 255, 0.7) !important;
            max-height: 70px !important;
            overflow: hidden !important;
            z-index: 80 !important;
        }

        body.in-game #leaderboard h3 {
            font-size: 6px !important;
            margin-bottom: 2px !important;
            padding-bottom: 1px !important;
            border-bottom: 1px solid rgba(0, 234, 255, 0.4) !important;
            color: #00eaff !important;
        }

        body.in-game #leaderboard ul {
            max-height: 58px !important;
            overflow: hidden !important;
        }

        body.in-game #leaderboard li {
            font-size: 6px !important;
            line-height: 1.3 !important;
            margin-top: 1px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        body.in-game #killboard {
            position: absolute !important;
            top: 105px !important;
            right: 5px !important;
            bottom: auto !important;
            width: 90px !important;
            max-width: 105px !important;
            padding: 3px 5px !important;
            background: rgba(0, 0, 0, 0.75) !important;
            border-radius: 5px !important;
            border-left: 2px solid rgba(255, 0, 85, 0.7) !important;
            max-height: 60px !important;
            overflow: hidden !important;
            z-index: 80 !important;
        }

        body.in-game #killboard h3 {
            font-size: 6px !important;
            margin-bottom: 2px !important;
            padding-bottom: 1px !important;
            border-bottom: 1px solid rgba(255, 0, 85, 0.4) !important;
            color: #ff0055 !important;
        }

        body.in-game #killboard ul {
            max-height: 48px !important;
            overflow: hidden !important;
        }

        body.in-game #killboard li {
            font-size: 6px !important;
            line-height: 1.3 !important;
            margin-top: 1px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        /* === TDM TABLOLARI === */
        body.in-game.tdm-mode #tdm-leaderboard {
            top: 30px !important;
            padding: 3px 5px !important;
            width: auto !important;
            min-width: 90px !important;
            max-width: 120px !important;
            max-height: 85px !important;
            background: rgba(0, 0, 0, 0.75) !important;
            border-radius: 5px !important;
            overflow-y: hidden !important;
            overflow-x: hidden !important;
        }

        body.in-game.tdm-mode #tdm-leaderboard h3 {
            font-size: 6px !important;
            margin-bottom: 2px !important;
            padding-bottom: 2px !important;
        }

        body.in-game.tdm-mode #tdm-leaderboard li {
            font-size: 6px !important;
            line-height: 1.3 !important;
            margin-top: 1px !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        body.in-game.tdm-mode #tdm-killboard {
            top: 120px !important;
            padding: 3px 5px !important;
            width: auto !important;
            min-width: 90px !important;
            max-width: 120px !important;
            max-height: 180px !important;
            background: rgba(0, 0, 0, 0.75) !important;
            border-radius: 5px !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        body.in-game.tdm-mode #tdm-killboard h3 {
            font-size: 6px !important;
            margin-bottom: 2px !important;
            padding-bottom: 2px !important;
        }

        body.in-game.tdm-mode #tdm-killboard li {
            font-size: 6px !important;
            line-height: 1.3 !important;
            margin-top: 1px !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        /* === RADAR/MINIMAP === */
        body.in-game .minimap-container {
            position: absolute !important;
            top: 2px !important;
            left: clamp(40px, 5.5vw, 48px) !important;
            bottom: auto !important;
            right: auto !important;
            width: clamp(70px, 15vh, 85px) !important;
            height: clamp(70px, 15vh, 85px) !important;
            min-width: 70px !important;
            min-height: 70px !important;
            max-width: 85px !important;
            max-height: 85px !important;
            border-radius: 6px !important;
            border: 2px solid rgba(0, 234, 255, 0.4) !important;
            background: rgba(0, 0, 0, 0.5) !important;
            box-shadow: 0 0 10px rgba(0, 234, 255, 0.2) !important;
            z-index: 90 !important;
            transform: none !important;
        }

        body.in-game .minimap-container canvas {
            width: 100% !important;
            height: 100% !important;
            border-radius: 4px !important;
        }

        /* === EXIT BUTONU === */
        body.in-game #exitBtn {
            display: flex !important;
            position: absolute !important;
            top: 2px !important;
            left: 5px !important;
            width: clamp(28px, 5.5vh, 34px) !important;
            height: clamp(28px, 5.5vh, 34px) !important;
            font-size: clamp(0.65rem, 1.3vh, 0.75rem) !important;
            z-index: 250 !important;
            background: rgba(255, 0, 85, 0.2) !important;
            border: 1px solid rgba(255, 0, 85, 0.5) !important;
            color: #ff0055 !important;
        }

        /* === ÜST SAĞ KONTROLLER === */
        body.in-game .top-right-controls {
            position: absolute !important;
            top: 3px !important;
            right: 5px !important;
            gap: 2px !important;
            z-index: 200 !important;
        }

        body.in-game .top-right-controls .icon-btn {
            width: clamp(26px, 4.5vh, 32px) !important;
            height: clamp(26px, 4.5vh, 32px) !important;
            font-size: clamp(0.6rem, 1.2vh, 0.7rem) !important;
        }
    }
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║  GRUP 6 — ACİL DÜZELTMELER  (Edge Cases)                              ║
   ║  Spesifik cihaz sorunları için yapılan son dakika override'ları        ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════════════════════════════════════════════════════════
   📱 SPECIAL FIX FOR 740x360 RESOLUTION (Specific User Request - Attempt 3)
   - Market shrank (Visible, Scale 0.85)
   - HP Bar moved above FPS Counter (Left: 20px, Bottom: 45px)
   - XP Label kept visible
   - SPECIFIC SELECTORS for TDM priority
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 760px) and (max-height: 380px) {

    /* === MARKET (Küçültme - TDM Dahil) === */
    .shop-bar,
    body.in-game .shop-bar,
    body.in-game.tdm-mode .shop-bar {
        bottom: 5px !important;
        transform: translateX(-50%) scale(0.85) !important;
        /* One click smaller than normal */
        transform-origin: bottom center !important;
        padding: 4px 8px !important;
        gap: 4px !important;
        width: max-content !important;
        z-index: 100 !important;
    }

    .shop-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.9rem !important;
    }

    /* === XP BAR (Market ile çakışmaması için yukarı alındı) === */
    #xp-container,
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        bottom: 53px !important;
        /* Marketin üstüne + pay (Biraz aşağı indi: 60 -> 53) */
    }

    .xp-label {
        display: inline-block !important;
        /* GİZLEME İPTAL EDİLDİ */
    }

    /* === HP BAR (FPS Sayacının Üzerine - TDM Dahil) === */
    .health-container,
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        position: absolute !important;
        left: 20px !important;
        /* FPS ile aynı hiza */
        bottom: 28px !important;
        /* Bir tık daha aşağı (32 -> 28) */
        right: auto !important;
        /* Right özelliğini ez */
        top: auto !important;
        transform: none !important;

        /* Boyutlandırma */
        padding: 4px 8px !important;
        min-width: 120px !important;
        max-width: 150px !important;
        transform: scale(0.9) !important;
        transform-origin: bottom left !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🚑 ACİL DÜZELTME: 720x540 CİHAZLAR İÇİN KESİN KONUMLANDIRMA
   Diğer tüm kuralları ezmek için en sona eklendi.
   ═══════════════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 960px) and (max-height: 600px) and (orientation: landscape) {

    /* 1. HP BAR - FPS Panelinin Üzerine */
    body.in-game .health-container,
    body.in-game.tdm-mode .health-container {
        position: absolute !important;
        left: 20px !important;
        right: auto !important;
        top: auto !important;
        bottom: 28px !important;
        /* FPS panelinin (20px) üzerinde güvenli alan */
        width: auto !important;
        min-width: 150px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        transform: scale(0.9) !important;
        transform-origin: bottom left !important;
        z-index: 99 !important;
    }

    body.in-game .p1-health,
    body.in-game.tdm-mode .p1-health {
        display: flex !important;
        width: 100% !important;
        font-size: 0.8rem !important;
    }

    body.in-game .bar-bg,
    body.in-game.tdm-mode .bar-bg {
        height: 8px !important;
        width: 100% !important;
        min-width: 100px !important;
    }

    /* 2. XP BAR - Marketin Üzerine */
    body.in-game #xp-container,
    body.in-game.tdm-mode #xp-container {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 55px !important;
        /* Marketin üzerinde */
        width: 40% !important;
        max-width: 300px !important;
        z-index: 99 !important;
        height: auto !important;
        padding: 4px !important;
    }

    /* 3. SKILLS - Marketin Sağına */
    body.in-game .mobile-skills-container,
    body.in-game.tdm-mode .mobile-skills-container {
        display: flex !important;
        position: absolute !important;
        left: 50% !important;
        margin-left: 145px !important;
        /* Marketin sağına öteleme */
        bottom: 10px !important;
        /* Market ile aynı hiza */
        right: auto !important;
        top: auto !important;
        gap: 8px !important;
        z-index: 110 !important;
    }

    body.in-game .ability-slot,
    body.in-game.tdm-mode .ability-slot {
        width: 45px !important;
        height: 45px !important;
    }
}