/* ============================================
   ФИКСИРОВАННЫЙ ДИЗАЙН КАК НА ПК
   Точно 550px на всех устройствах
   ============================================ */

/* === ФИКСИРОВАННАЯ ШИРИНА 550PX === */
body {
    max-width: 550px !important;
    min-width: 550px !important;
    width: 550px !important;
    margin: 0 auto !important;
}

html {
    overflow-x: auto !important;
}

/* === ОТМЕНА ВСЕХ АДАПТИВНЫХ СТИЛЕЙ ДЛЯ МЕНЮ ПДА === */
@media (max-width: 400px) {
    .main-menu-grid {
        gap: 6px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .menu-item {
        padding: 10px 8px !important;
        min-height: 70px !important;
    }

    .menu-item img {
        width: 28px !important;
        height: 28px !important;
    }

    .menu-item span {
        font-size: 11px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ БОЕВКИ === */
@media (max-width: 480px) {
    .player-info-grid {
        grid-template-columns: 80px 1fr !important;
        gap: 12px !important;
    }

    .player-avatar img {
        width: 80px !important;
        height: 80px !important;
    }

    .action-slots-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 5px !important;
    }

    .action-slot-btn {
        height: 42px !important;
    }

    .action-slot-btn img {
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .enemy-card {
        grid-template-columns: 60px 1fr !important;
    }

    .enemy-avatar img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ ИНВЕНТАРЯ === */
@media (max-width: 480px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
        gap: 4px !important;
        padding: 8px !important;
    }

    .item-slot {
        width: 56px !important;
        height: 56px !important;
    }

    .item-slot img {
        max-width: 48px !important;
        max-height: 48px !important;
    }
}

@media (max-width: 380px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
    }

    .item-slot {
        width: 56px !important;
        height: 56px !important;
    }

    .item-slot img {
        max-width: 48px !important;
        max-height: 48px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ КРАФТА === */
@media (max-width: 480px) {
    #stalker-craft-container .block2 {
        margin: 10px !important;
    }

    #stalker-craft-container .block__inside {
        padding: 10px !important;
    }

    .craft-recipe-card {
        padding: 10px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ NPC === */
@media (max-width: 480px) {
    .stalker-ui-container {
        margin: 10px !important;
    }

    .stalker-content {
        padding: 10px !important;
    }

    .npc-header {
        padding: 10px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ СКЛАДА === */
@media (max-width: 480px) {
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important;
        gap: 4px !important;
        padding: 8px !important;
    }

    .item-slot {
        width: 56px !important;
        height: 56px !important;
    }

    .item-slot img {
        max-width: 48px !important;
        max-height: 48px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ СТРАНИЦЫ ПДА === */
@media (max-width: 520px) {
    .pda-button-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    .pda-button {
        padding: 12px 8px !important;
        min-height: 80px !important;
    }

    .pda-button img {
        width: 32px !important;
        height: 32px !important;
    }

    .pda-button span {
        font-size: 12px !important;
    }
}

@media (max-width: 380px) {
    .pda-button-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .razokno2 {
        padding: 6px 10px 7px 10px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ РУЛЕТКИ === */
@media (max-width: 768px) {
    .roulette-stake-grid, .roulette-actions {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .roulette-lobby-item {
        flex-direction: row !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ ОНЛАЙН === */
@media (max-width: 480px) {
    .player-card-enhanced-actions {
        flex-direction: row !important;
    }

    .btn-player-action-enhanced {
        width: auto !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ МАРКЕТПЛЕЙСА === */
@media (max-width: 768px) {
    .market-container {
        padding: 15px !important;
    }

    .header-title {
        font-size: 18px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ ТУРНИРА РУЛЕТКИ === */
@media (max-width: 768px) {
    .game-main-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .tournament-info-grid {
        flex-direction: row !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ ВИТРИНЫ === */
@media (min-width: 768px) {
    .add-form-wrapper {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ РЕМОНТА === */
@media (max-width: 480px) {
    .repair-container {
        margin: 10px !important;
        padding: 10px !important;
    }

    .npc-info-block {
        padding: 10px !important;
    }
}

/* === ОТМЕНА АДАПТИВНОСТИ ОСНОВНОГО ДИЗАЙНА === */
@media (max-width: 550px) {
    .title {
        font-size: 15px !important;
        letter-spacing: 1.5px !important;
    }

    #nav_menu a {
        font-size: 12px !important;
    }
}

/* === ПРИНУДИТЕЛЬНОЕ МАСШТАБИРОВАНИЕ === */
* {
    -webkit-text-size-adjust: 100% !important;
    -moz-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

/* === ОТКЛЮЧЕНИЕ TOUCH ADJUSTMENTS === */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

/* === ФИКСИРОВАННАЯ ШИРИНА КОНТЕНТА === */
.main {
    max-width: 550px !important;
    min-width: 550px !important;
    width: 550px !important;
}

#content {
    max-width: 550px !important;
    min-width: 550px !important;
    width: 550px !important;
}

.container {
    max-width: 550px !important;
    min-width: 550px !important;
    width: 550px !important;
}

/* === ОТКЛЮЧЕНИЕ АДАПТИВНЫХ СЕТОК === */
.grid,
.row,
.columns {
    min-width: auto !important;
}

/* === ПРИНУДИТЕЛЬНЫЙ РАЗМЕР ШРИФТОВ === */
body {
    font-size: 14px !important;
}

/* === ФИКСИРОВАННЫЕ ИЗОБРАЖЕНИЯ === */
img {
    max-width: none !important;
}

/* === ФИКСАЦИЯ РАЗМЕРОВ КНОПОК === */
button,
.btn,
.raz,
.raz11 {
    min-height: auto !important;
    padding: 7px 6px !important;
}

/* === ОТКЛЮЧЕНИЕ АДАПТИВНОСТИ ФОРМ === */
input,
textarea,
select {
    font-size: 14px !important;
}

/* === ФИКСАЦИЯ НАВИГАЦИИ === */
.futor {
    max-width: 550px !important;
    width: 550px !important;
}

#nav_menu {
    max-width: 550px !important;
    width: 550px !important;
}
