/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBİL RESPONSIVE TASARIM - LOBİ & OYUN İÇİ
   Yükseklik bazlı media query ile tüm mobil cihazlarda çalışır
   ═══════════════════════════════════════════════════════════════════════════ */

/*
   YÖNTEM: Ekran yüksekliği 500px altında VE landscape modunda = mobil cihaz
   Bu sayede iPhone 14 Pro Max (932x430) gibi geniş ekranlar da yakalanır
*/

/* ═══════════════════════════════════════════════════════════════════════════
   📱 MOBİL LANDSCAPE - YATAY MOD (Yükseklik 500px altı)
   Ana lobi 5 kart sığar, elite modda kaydırma var
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 700px) {

    /* ═══════════════ LOBİ EKRANI ═══════════════ */

    #overlay h1 {
        font-size: clamp(0.9rem, 3.5vh, 1.5rem) !important;
        letter-spacing: 2px;
        margin-bottom: 2px;
        line-height: 1.1 !important;
    }

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

    .tut-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #ccc !important;
        font-size: clamp(0.45rem, 1vh, 0.5rem) !important;
    }

    .tut-item i {
        color: #00eaff !important;
        font-size: clamp(0.55rem, 1.2vh, 0.65rem) !important;
    }

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

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

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

    /* Hangar wrapper ve container */
    .hangar-wrapper {
        width: fit-content !important;
        max-width: 95% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        position: relative !important;
        margin-top: -10px !important;
        /* Yukarı taşıma */
    }

    .hangar-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: fit-content !important;
        max-width: 100% !important;
        gap: clamp(4px, 1vw, 8px) !important;
        padding: 6px 10px !important;
        padding-top: 30px !important;
        overflow: hidden !important;
    }

    /* Elite modda kaydırma aktif */
    .hangar-container.elite-mode {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Gemi kartları - Esnek ve dengeli (landscape mobil) */
    .ship-card {
        width: clamp(130px, 16.5vw, 165px) !important;
        min-width: clamp(130px, 16.5vw, 165px) !important;
        max-width: 165px !important;
        height: auto !important;
        min-height: clamp(160px, 38vh, 210px) !important;
        max-height: 220px !important;
        padding: clamp(6px, 1.2vh, 9px) !important;
        flex-shrink: 0 !important;
    }

    .ship-icon {
        width: clamp(36px, 7.5vh, 46px) !important;
        height: clamp(36px, 7.5vh, 46px) !important;
        margin-bottom: 3px !important;
    }

    .ship-icon i {
        font-size: clamp(17px, 3.8vh, 24px) !important;
    }

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

    .ship-desc {
        font-size: clamp(0.5rem, 1.2vh, 0.6rem) !important;
        height: clamp(32px, 7.5vh, 42px) !important;
        padding: 2px 3px !important;
        margin-bottom: 3px !important;
        line-height: 1.15 !important;
    }

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

    .stat-label {
        font-size: clamp(0.38rem, 1vh, 0.5rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.5rem, 1.3vh, 0.7rem) !important;
        margin-top: 3px !important;
    }

    /* Elite gate - daha büyük elmas */
    .elite-gate {
        width: clamp(100px, 14vw, 130px) !important;
        min-width: clamp(100px, 14vw, 130px) !important;
        max-width: 130px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .elite-gate .ship-icon {
        width: clamp(44px, 9vh, 60px) !important;
        height: clamp(44px, 9vh, 60px) !important;
        margin-bottom: 8px !important;
    }

    .elite-gate .ship-icon i {
        font-size: clamp(22px, 5vh, 32px) !important;
    }

    .elite-gate .ship-name {
        font-size: clamp(0.55rem, 1.5vh, 0.75rem) !important;
        margin-top: 5px !important;
    }

    /* Esnek ve dengeli (landscape mobil) */
    #usernameInput {
        width: clamp(220px, 38vw, 320px) !important;
        padding: clamp(10px, 2.2vh, 14px) !important;
        font-size: clamp(0.95rem, 2.2vh, 1.15rem) !important;
        margin-top: 5px !important;
    }

    .game-modes-container {
        width: clamp(240px, 42vw, 340px) !important;
        height: clamp(56px, 13vh, 70px) !important;
        margin-top: 5px !important;
    }

    .mode-btn {
        font-size: clamp(0.6rem, 1.5vh, 0.75rem) !important;
        padding: clamp(6px, 1.3vh, 8px) clamp(8px, 1.8vh, 10px) !important;
    }

    .mode-btn i {
        font-size: clamp(0.65rem, 1.8vh, 0.85rem) !important;
        margin-bottom: 1px !important;
    }

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

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

    .lobby-money {
        font-size: clamp(0.65rem, 1.6vh, 0.8rem) !important;
        padding: 4px 10px !important;
        top: 6px !important;
        left: 6px !important;
    }

    /* Geri butonu - PC gibi nizamlı */
    #fixed-back-btn {
        position: absolute !important;
        left: 10px !important;
        top: 5px !important;
        padding: 4px 10px !important;
        font-size: clamp(0.6rem, 1.4vh, 0.65rem) !important;
        z-index: 250 !important;
    }

    /* Scroll butonları - elite modda görünür */
    #scroll-right-btn,
    #scroll-left-btn {
        display: none !important;
    }

    .hangar-wrapper:has(.elite-mode) #scroll-right-btn,
    .hangar-wrapper:has(.elite-mode) #scroll-left-btn {
        display: flex !important;
    }

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

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

    .lang-btn {
        min-width: clamp(45px, 9vw, 55px) !important;
        padding: 0 7px !important;
        font-size: clamp(0.6rem, 1.4vh, 0.65rem) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 OYUN İÇİ HUD - MOBİL LANDSCAPE (max-height: 500px)
   Lobi stilleri max-height: 700px ile yukarıda ayrı tanımlandı.
   HUD stilleri sadece gerçek mobil cihazlarda (500px altı) devreye girer.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {

    /* === ÜST SKOR PANELİ === */
    .center-panel {
        top: 3px !important;
        padding: 2px 10px !important;
        gap: 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 10px !important;
    }

    .score-box {
        font-size: clamp(0.65rem, 1.5vh, 0.75rem) !important;
    }

    .money-box {
        font-size: clamp(0.6rem, 1.4vh, 0.7rem) !important;
    }


    /* === LEADERBOARD - Kompakt, sağ alt === */
    #leaderboard {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        bottom: 75px !important;
        right: 5px !important;
        width: clamp(80px, 12vw, 100px) !important;
        padding: 3px 5px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 4px !important;
        border-left: 2px solid rgba(0, 234, 255, 0.5) !important;
        max-height: 70px !important;
        overflow: hidden !important;
    }

    #leaderboard h3 {
        font-size: clamp(0.4rem, 1vh, 0.5rem) !important;
        margin-bottom: 2px !important;
    }

    #leaderboard li {
        font-size: clamp(0.38rem, 0.9vh, 0.45rem) !important;
        line-height: 1.25 !important;
    }

    /* === KILLBOARD - Kompakt, sağ alt === */
    #killboard {
        display: block !important;
        position: absolute !important;
        top: auto !important;
        bottom: 150px !important;
        right: 5px !important;
        width: clamp(80px, 12vw, 100px) !important;
        padding: 3px 5px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 4px !important;
        border-left: 2px solid rgba(255, 0, 85, 0.5) !important;
        max-height: 65px !important;
        overflow: hidden !important;
    }

    #killboard h3 {
        font-size: clamp(0.4rem, 1vh, 0.5rem) !important;
        margin-bottom: 2px !important;
    }

    #killboard li {
        font-size: clamp(0.38rem, 0.9vh, 0.45rem) !important;
        line-height: 1.25 !important;
    }

    /* === MINIMAP/RADAR - Sol alt === */
    .minimap-container {
        position: absolute !important;
        bottom: 115px !important;
        left: 5px !important;
        right: auto !important;
        top: auto !important;
        width: clamp(50px, 9vh, 65px) !important;
        height: clamp(50px, 9vh, 65px) !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(0, 234, 255, 0.4) !important;
        border-radius: 4px !important;
    }

    /* === SAĞLIK BARI & SKİLLER === */
    .health-container {
        position: absolute !important;
        bottom: auto !important;
        top: 3px !important;
        left: 8px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 2px 5px !important;
        border-radius: 6px !important;
    }

    .abilities-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 3px !important;
        margin-bottom: 0 !important;
    }

    .ability-slot {
        width: clamp(30px, 5.5vh, 38px) !important;
        height: clamp(30px, 5.5vh, 38px) !important;
        border-radius: 5px !important;
    }

    .ability-icon {
        font-size: clamp(0.65rem, 1.3vh, 0.85rem) !important;
    }

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

    .cooldown-text {
        font-size: clamp(0.55rem, 1vh, 0.7rem) !important;
    }

    .health-bar-section {
        min-width: 55px !important;
    }

    .p1-health {
        font-size: clamp(0.48rem, 1vh, 0.55rem) !important;
    }

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

    /* === XP BAR === */
    #xp-container {
        position: absolute !important;
        bottom: 95px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: clamp(180px, 35vw, 300px) !important;
        height: 12px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 6px !important;
        padding: 2px 6px !important;
    }

    .xp-label {
        font-size: clamp(0.5rem, 1vh, 0.55rem) !important;
    }

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

    /* === LEVEL UP YAZISI === */
    .level-up-text,
    #level-up-display {
        font-size: clamp(0.9rem, 2.5vh, 1.3rem) !important;
        padding: 4px 12px !important;
    }

    /* === MARKET BUTONLARI === */
    .shop-bar {
        position: absolute !important;
        bottom: 6px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 3px 6px !important;
        gap: 3px !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 8px !important;
        max-width: 75% !important;
    }

    .shop-btn {
        width: clamp(32px, 5.5vh, 40px) !important;
        height: clamp(32px, 5.5vh, 40px) !important;
        font-size: clamp(0.7rem, 1.4vh, 0.9rem) !important;
        background: rgba(0, 20, 40, 0.6) !important;
        border-radius: 5px !important;
    }

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

    .badge-time {
        font-size: clamp(0.35rem, 0.8vh, 0.45rem) !important;
    }

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

    /* === MOBİL KONTROLLER (JOYSTICK) === */
    #mobile-controls {
        display: flex !important;
        position: absolute !important;
        bottom: 8px !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 12px !important;
        justify-content: space-between !important;
        z-index: 200 !important;
        pointer-events: none !important;
    }

    .joystick-area {
        width: clamp(90px, 16vh, 110px) !important;
        height: clamp(90px, 16vh, 110px) !important;
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }

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

    .stick-handle {
        width: clamp(38px, 6.5vh, 48px) !important;
        height: clamp(38px, 6.5vh, 48px) !important;
        background: rgba(0, 234, 255, 0.65) !important;
        box-shadow: 0 0 8px rgba(0, 234, 255, 0.4) !important;
    }

    /* === ÜST KONTROLLER === */
    .top-left-controls {
        display: none !important;
    }

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

    .top-right-controls .icon-btn {
        width: clamp(28px, 5vh, 32px) !important;
        height: clamp(28px, 5vh, 32px) !important;
        font-size: clamp(0.6rem, 1.3vh, 0.7rem) !important;
    }

    #exitBtn {
        position: absolute !important;
        top: 3px !important;
        left: 8px !important;
        width: clamp(28px, 5vh, 32px) !important;
        height: clamp(28px, 5vh, 32px) !important;
        font-size: clamp(0.6rem, 1.3vh, 0.7rem) !important;
        z-index: 250 !important;
    }

    /* === BİLDİRİMLER === */
    #notification-area {
        top: 45px !important;
        width: 85% !important;
    }

    .kill-msg {
        padding: 2px 8px !important;
    }

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

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

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

    /* Joystick kontrolleri - öne çıkar ve büyüt */
    #mobile-controls {
        display: flex !important;
        bottom: 15px !important;
        padding: 0 15px !important;
        z-index: 200 !important;
    }

    .joystick-area {
        width: 90px !important;
        height: 90px !important;
        opacity: 0.7 !important;
    }

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

    .stick-handle {
        width: 35px !important;
        height: 35px !important;
        background: rgba(0, 234, 255, 0.6) !important;
        box-shadow: 0 0 8px rgba(0, 234, 255, 0.5) !important;
    }

    /* Exit butonu */
    .top-left-controls {
        top: 5px !important;
        left: 5px !important;
    }

    #exitBtn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.65rem !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   📱 ÇOK KÜÇÜK EKRANLAR - Yükseklik 400px altı (küçük telefonlar)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 400px) and (orientation: landscape) {

    #overlay h1 {
        font-size: clamp(1rem, 3.5vh, 1.5rem) !important;
        margin-bottom: 3px !important;
    }

    /* Mini tutorial ve guide link butonu çok küçük ekranlarda görünür */
    .mini-tutorial {
        display: flex !important;
        flex-direction: row !important;
        gap: clamp(8px, 1.5vw, 12px) !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        background: rgba(0, 20, 40, 0.6) !important;
        border: 1px solid rgba(0, 234, 255, 0.2) !important;
        margin-bottom: 5px !important;
    }

    .tut-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #ccc !important;
        font-size: clamp(0.45rem, 0.9vh, 0.5rem) !important;
    }

    .tut-item i {
        color: #00eaff !important;
        font-size: clamp(0.55rem, 1.1vh, 0.65rem) !important;
    }

    .key-box {
        border: 1px solid #fff !important;
        padding: 1px 2px !important;
        border-radius: 2px !important;
        font-size: clamp(0.4rem, 0.8vh, 0.45rem) !important;
        font-weight: bold !important;
        color: #fff !important;
    }

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

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

    /* Gemi kartları - daha büyük ve okunabilir */
    .ship-card {
        width: calc((100vw - 40px) / 5) !important;
        min-width: 0 !important;
        max-width: 125px !important;
        min-height: clamp(130px, 35vh, 170px) !important;
        max-height: 180px !important;
        padding: 5px !important;
    }

    .ship-icon {
        width: clamp(32px, 7.5vh, 42px) !important;
        height: clamp(32px, 7.5vh, 42px) !important;
    }

    .ship-icon i {
        font-size: clamp(15px, 3.8vh, 22px) !important;
    }

    .ship-name {
        font-size: clamp(0.65rem, 1.9vh, 0.75rem) !important;
    }

    .ship-desc {
        font-size: clamp(0.52rem, 1.5vh, 0.6rem) !important;
        height: clamp(28px, 6.5vh, 38px) !important;
        padding: 3px 4px !important;
    }

    .stat-label {
        font-size: clamp(0.48rem, 1.2vh, 0.55rem) !important;
    }

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.58rem, 1.5vh, 0.65rem) !important;
    }

    .elite-gate {
        width: calc((100vw - 40px) / 5) !important;
        max-width: 110px !important;
    }

    #usernameInput {
        width: clamp(220px, 40vw, 320px) !important;
        font-size: clamp(1rem, 2.5vh, 1.2rem) !important;
        padding: 10px 16px !important;
    }

    .game-modes-container {
        width: clamp(220px, 40vw, 320px) !important;
        height: clamp(64px, 15vh, 78px) !important;
    }

    .mode-btn {
        font-size: clamp(0.58rem, 1.7vh, 0.65rem) !important;
    }

    .mode-btn i {
        font-size: clamp(0.7rem, 2vh, 0.8rem) !important;
    }

    .lobby-money {
        font-size: clamp(0.75rem, 1.9vh, 0.85rem) !important;
        padding: 5px 12px !important;
    }

    #fixed-back-btn {
        font-size: clamp(0.65rem, 1.6vh, 0.7rem) !important;
        padding: 5px 12px !important;
    }

    /* Oyun içi */
    #leaderboard,
    #killboard {
        width: 90px !important;
        padding: 3px 5px !important;
    }

    #leaderboard h3,
    #killboard h3 {
        font-size: clamp(0.45rem, 1.2vh, 0.5rem) !important;
    }

    #leaderboard li,
    #killboard li {
        font-size: clamp(0.42rem, 1vh, 0.45rem) !important;
    }

    .minimap-container {
        width: 55px !important;
        height: 55px !important;
    }

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

    .joystick-area {
        width: 75px !important;
        height: 75px !important;
    }

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

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

/* ═══════════════════════════════════════════════════════════════════════════
   📱 TABLET BOYUTLARI - Landscape, yükseklik 500px üstü
   Daha büyük kartlar ve kontroller
   ═══════════════════════════════════════════════════════════════════════════ */
@media (pointer: coarse) and (min-height: 501px) and (orientation: landscape) {

    /* Mini tutorial ve guide link butonu tablette görünür */
    .mini-tutorial {
        display: flex !important;
        flex-direction: row !important;
        gap: clamp(10px, 1.5vw, 15px) !important;
        padding: 8px 15px !important;
        border-radius: 8px !important;
        background: rgba(0, 20, 40, 0.6) !important;
        border: 1px solid rgba(0, 234, 255, 0.2) !important;
        margin-bottom: 6px !important;
    }

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

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

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

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

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

    .hangar-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .hangar-container {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        gap: clamp(6px, 1.2vw, 10px) !important;
        padding-top: 40px !important;
        overflow-x: auto !important;
    }

    /* Elite modda kaydırma aktif */
    .hangar-container.elite-mode {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .ship-card {
        width: calc((100vw - 100px) / 5) !important;
        min-width: 0 !important;
        max-width: 160px !important;
        height: auto !important;
        min-height: clamp(180px, 40vh, 260px) !important;
        padding: clamp(6px, 1.5vh, 10px) !important;
    }

    .ship-icon {
        width: clamp(35px, 7vh, 50px) !important;
        height: clamp(35px, 7vh, 50px) !important;
    }

    .ship-name {
        font-size: clamp(0.7rem, 2vh, 0.95rem) !important;
    }

    .ship-desc {
        font-size: clamp(0.5rem, 1.5vh, 0.7rem) !important;
        height: clamp(35px, 8vh, 55px) !important;
    }

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

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

    .ship-price,
    .ship-owned {
        font-size: clamp(0.6rem, 1.8vh, 0.85rem) !important;
    }

    .elite-gate {
        width: calc((100vw - 100px) / 5) !important;
        max-width: 130px !important;
    }

    #scroll-right-btn,
    #scroll-left-btn {
        display: none !important;
    }

    /* Oyun içi - Joystick kontrolleri */
    #mobile-controls {
        display: flex !important;
        bottom: 20px !important;
        padding: 0 30px !important;
        z-index: 200 !important;
    }

    .joystick-area {
        width: clamp(100px, 15vh, 130px) !important;
        height: clamp(100px, 15vh, 130px) !important;
        opacity: 0.8 !important;
    }

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

    .stick-handle {
        width: clamp(40px, 6vh, 55px) !important;
        height: clamp(40px, 6vh, 55px) !important;
        background: rgba(0, 234, 255, 0.7) !important;
    }

    .top-right-controls .icon-btn {
        width: clamp(32px, 6vh, 42px) !important;
        height: clamp(32px, 6vh, 42px) !important;
    }

    .shop-bar {
        bottom: 15px !important;
        padding: 6px 12px !important;
        gap: 6px !important;
    }

    .shop-btn {
        width: clamp(36px, 7vh, 48px) !important;
        height: clamp(36px, 7vh, 48px) !important;
    }

    .minimap-container {
        width: clamp(80px, 15vh, 110px) !important;
        height: clamp(80px, 15vh, 110px) !important;
    }

    /* Tablet için HP bar sağ alta */
    body.in-game .health-container {
        bottom: 20px !important;
        right: 20px !important;
    }

    /* Tablet için skill butonları joystick üzerinde */
    body.in-game .mobile-skills-container {
        bottom: calc(20px + 15vh + 10px) !important;
        right: 30px !important;
    }

    body.in-game .ability-slot {
        width: clamp(45px, 8vh, 55px) !important;
        height: clamp(45px, 8vh, 55px) !important;
    }

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

    /* Tablet için XP barı yukarı taşı */
    body.in-game #xp-container {
        bottom: 85px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎮 CRAZYGAMES — Auth ve hesap öğelerini gizle
   (No external login options kuralı)
   ═══════════════════════════════════════════════════════════════════════════ */
body.crazygames-mode #auth-btn,
body.crazygames-mode #profile-btn,
body.crazygames-mode #reg-nudge,
body.crazygames-mode #quest-btn {
    display: none !important;
}

