
    :root {
        --max_height_item: 400px;
        --max_width_item: 400px;

        --width_item_equip: 94%;
        --margin_top_item_equip: 2vh;

        --aspect_ratio_item: 1 / 1;


        --color_text_desc: black;
        --color_damage: #c60000;
        --color_dps: #c60000;
        --text_shadow_damage: 0 0 0.5vh rgba(255, 255, 255, 0.05),0 0 0.2vh rgba(255, 255, 255, 0.1);
        /*--text_shadow_stats: 0 0 0.4vh rgba(0, 0, 0, 0.2),0 0 0.2vh rgba(0, 0, 0, 0.1);*/
        --text_shadow_stats: 0 0 0.5vh rgba(255, 255, 255, 0.05),0 0 0.2vh rgba(255, 255, 255, 0.1);
        --color_crit_chance: #cb00e6;
        --color_crit_mult: #691674;
        --color_magazine: #7F0000;
        --color_accuracy: #005000;
        --color_rate_of_fire: #690033;
        --color_reload_speed: #770000;

        --color_modifier_buff: #007c00;
        --color_modifier_debuff: #a00000;

        /*--isl-vh: 1%;*/
    }

    /* Запретить swipe to refresh ios
    prevent pull-to-refresh for Safari 16+ */
    @media screen and (pointer: coarse) {
    @supports (-webkit-backdrop-filter: blur(1px)) and (overscroll-behavior-y: none)  {
        html {
        min-height: 100.3%;
        overscroll-behavior-y: none;
        }
    }
    }
    /* prevent pull-to-refresh for Safari 9~15 */
    @media screen and (pointer: coarse) {
    @supports (-webkit-backdrop-filter: blur(1px)) and (not (overscroll-behavior-y: none))  {
        html {
        height: 100%;
        overflow: hidden;
        }
        body {
        margin: 0px;
        max-height: 100%; /* or 'height: calc(100% - 16px);' if body has default margin */
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        }
        /* in this case to disable pinch-zoom, set 'touch-action: pan-x pan-y;' on 'body' instead of 'html' */
    }
    }

    /* prevent pull-to-refresh for Chrome 63+ */
    body{
    overscroll-behavior-y: none;
    }
    /* ----------------- Запретить зум андроид */

    @viewport {
    user-zoom: fixed;
    }

    /* ----------------- */

    body {
        user-select: none;
        -webkit-user-select: none; /* Для Safari */
        -moz-user-select: none; /* Для Firefox */
        -ms-user-select: none; /* Для Internet Explorer/Edge */
    }
    .pc_body{
        float:none;
        margin:auto;
    }
    @media all and (orientation:portrait) { 
        #inv_page{
            height: 100%;
        }
        #decraft_equip_section{
            float:left;
        }
        #inv{
            width:100%;
        }
        #inv_craft_page{
            width:100%;
        }
        #inv_page_control{
            float:right;
            margin-right: 10px;
        }
        #inv_craft_page_control{
            float:right;
            margin-right: 10px;
        }
        #craft_page{
            height: 70%;
        }
        #craft_table{
            width:auto;
            height:auto;
        }
        #craft_table_only_sort{
            width:auto;
            height:auto;
        }
        #inventory_sort_craft{
            height: 80px;
        }
        #inventory_sort{
            height: 100px;
        }
        #scavenge_buy_page{
            height: 30%;
        }
        #clicked_page{
            height: 34%;
        }
        #right_block_interface_page{
            padding:10.5%;
            padding-top:3.5%;
            width:100%;
        }
        #settings_page{
            height:48%;
        }
        #arena_page{
            height:50%;
        }
        #quests_page{
            height:50%;
        }
        #dialog_full{
            position: absolute; 
            top:50vh;
            width:100vw;
            height:50vh;
        }
    }
    /*
    @media all and (orientation:landscape) { 
        #inv_page{
            height: 100%;
        }
        #inv{
            width:86%;
        }
        #craft_page{
            height: 100%;
        }
        #craft_table{
            height:160px;
            width:366px;
        }
        #craft_table_only_sort{
            width:300px;
        }
        #inventory_sort_craft{
            height: 45px;
        }
        #inventory_sort{
            height: 45px;
        }
        #inv_craft_page{
            width:86%;
        }
        #right_block_interface_page{
            padding:1.8%;padding-top:1%;
        }
        #settings_page{
            height:100%;
        }
        #arena_page{
            height:100%;
        }
        #quests_page{
            height:100%;
        }
        #dialog_full{
            position: absolute; 
            top:50vh;
            width:100vw;
            height:50vh;
        }
    }
    */
    .item_img{
        margin-top:0px;
        width: 100%;
        height: 100%;
        border-radius: 10%;
        aspect-ratio: var(--aspect_ratio_item);
    }
    .craftSlot{
        width:12.4%;
        max-width: var(--max_width_item);
        height:auto;
        max-height: var(--max_height_item);
        aspect-ratio: var(--aspect_ratio_item);
        display: flex;
        border-radius: 10px;
    }
    .item_slot {
        position: relative;
        margin-top: 0.2vh;
        margin-left: 0.1vw;
        background-size: 100% 100%;
        cursor: help;
        display: flex;
        text-decoration: none;
        color: #222;
        outline: none;
        background-image:url("img/grid.png");
        background-repeat:no-repeat;
        width: 13.9%;
        max-width: var(--max_width_item);
        height: auto;
        max-height: var(--max_height_item);
        aspect-ratio: var(--aspect_ratio_item);
        text-align:center;
        flex-grow: 1;
        float:left;
        border-radius: 10%;
    }
    .item_slot_fake {
        position: relative;
        margin-top: 0.2vh;
        margin-left: 0.1vw;
        background-size: 100% 100%;
        cursor: help;
        display: inline-block;
        text-decoration: none;
        color: #222;
        outline: none;
        background: transparent;
        width: 13.9%;
        max-width: var(--max_width_item);
        height: auto;
        max-height: var(--max_height_item);
        aspect-ratio: var(--aspect_ratio_item);
        text-align:center;
        flex-grow: 1;
        float:left;
        border-radius: 10%;
    }
    .item_slot_craft_table {
        position: relative;
        margin-top:8px;
        background: #eaeaea;
        cursor: help;
        display: inline-block;
        text-decoration: none;
        color: #222;
        outline: none;
        background-image:url("img/grid.png");
        background-size:100% 100%;
        background-repeat:no-repeat;
        width: 20%;
        height: 20%;
        text-align:center;
        float:left;
    }

    .item_info_tooltip {
        /*Item slot tooltip*/
        font-size: calc(1vh + 0.5vw);
        visibility: hidden;
        position: absolute;
        top:0;
        left:0;
        /*bottom: 80px;*/
        left: 65%;
        z-index: 99999;
        width: 20vw;
        margin-left: -127px;
        padding: 10px;
        border: 2px solid #ccc;
        /*opacity: .9;*/
        background-color: #ddd;
        background-image:url("img/grid-frame-transparency.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
        -moz-border-radius: 4px;
        border-radius: 4px;
        /*
        -moz-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
        box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;
        */
        text-shadow: 0 2px 0 rgba(0,0,0,.1);
        font-weight: 600;
    }

    .item_slot:hover {
        border: 0; /* IE6 fix */
    }

    .item_slot:hover .item_info_tooltip {
        visibility: visible;
    }
    .item_slot .item_info_tooltip:hover {
        visibility: hidden;
    }

    .item_slot div:before,
    .item_slot div:after	{
        /*content: ""; Треугольник внизу тултипа слота*/
        /*
        position: absolute;
        z-index: 1000;
        bottom: -7px;
        left: 50%;
        margin-left: -8px;
        border-top: 8px solid #ddd;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 0;
        */
    }

    .item_slot div:before {
        border-top-color: #ccc;
        bottom: -8px;
    }
    .rare0Item{
        border:solid 0px gray;
        background-color: rgba(105, 105, 105, 0.3);
    }
    .rare0ItemOnlyBorder{
        border: solid 6px gray;
        border-radius: 10px;
    }
    .rare1Item{
        border:solid 0px green;
        background-color: rgba(0, 255, 0, 0.3);
    }
    .rare1ItemOnlyBorder{
        border:solid 6px green;
        border-radius: 10px;
    }
    .rare2Item{
        border:solid 0px blue;
        background-color: rgba(0, 0, 255, 0.3);
    }
    .rare2ItemOnlyBorder{
        border:solid 6px blue;
        border-radius: 10px;
    }
    .rare3Item{
        border:solid 0px magenta;
        background-color: rgba(255, 0, 255, 0.3);
    }
    .rare3ItemOnlyBorder{
        border:solid 6px magenta;
        border-radius: 10px;
    }
    .rare4Item{
        border:solid 0px orange;
        background-color: rgba(255, 140, 0, 0.3);
    }
    .rare4ItemOnlyBorder{
        border:solid 6px orange;
        border-radius: 10px;
    }
    .uniqItem{
        border-radius: 0;
        background: linear-gradient(
            217deg,
            rgba(0, 255, 0, 0.7),
            rgba(255, 140, 0, 0) 70.71%
        ),
        linear-gradient(127deg, rgba(255, 140, 0, 0.9), rgba(255, 0, 255, 0.1) 70.71%),
        linear-gradient(336deg, rgba(0, 0, 255, 0.9), rgba(0, 0, 255, 0) 70.71%);
    }
    .uniqItemBorder{
        border: 3px solid;
        border-image-slice: 1;
        border-width: 3px;
        border-image-source: linear-gradient(to left, #743ad5, orange);
    }
    .itemInfoModalBodyFull{
        background-image:url("img/frame_item_info_full_img.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
    }
    .itemFrameInfo{
        width:80vw;
        height:70vh;
            
        padding:6px;
        padding-top:0px;
    }
    .itemFrameImage{
        margin-left:3vw;
        margin-top:4vh;
        position:absolute;
        display:flex;
        width: 30vw;
        height: auto;
        aspect-ratio: 1;
    }
    .itemFrameText{
        font-size: 1.9vw;
        width: 42vw;
        height: auto;
        aspect-ratio: 42 / 30;
    }
    .itemFrameTextInner{
        background: rgb(255, 255, 255, 0.2);
        width: 95%;height: 92%;
        border-radius: 1.8%;
    }
    .tooltipClick{
        background-image:url("img/grid-frame-transparency.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
    }
    .infoAlert{
        font-size: 12px;
        font-weight:700;
        
        padding-left: 30px;
        padding-right: 30px;
        
        background: transparent;
        border: none;
        
        background-image:url("img/steel-frame-info.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
    }
    .customButton{
        font-size: 1.5vw;
        font-weight:700;
        color:black;
        text-shadow: -2px 2px calc(1vh + 0.7vw) #FFFFFF;
        
        /*background: transparent;*/
        border: none;
        
        background-image:url("img/button_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
        background-position: center center;
    }
    .customButton:active{
        background-image:url("img/button_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
        background-position: center center;

        box-shadow:
            inset 0 0 20px rgba(0, 0, 0, 0.4),
            0 0 6px rgba(0, 0, 0, 0.6);
        transform: scale(0.95);
    }
    .customButtonSortCraft{
        font-size: 1.3vw;
        font-weight:700;
        color:black;
        text-shadow: -2px 2px 20px #FFFFFF;
        
        background: transparent;
        border-radius: 8px;
        height: 100%;
        width: 10.5%; /*12% old value*/
        padding: 0;
        
        background-image:url("img/button_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
        white-space: normal;
    }
    .customButtonSortCraft:hover {
        border-color: #ffffff;

        box-shadow:
            inset 0 0 12px rgba(255, 255, 255, 0.6),
            inset 0 0 25px rgba(255, 255, 255, 0.2),
            0 0 12px rgba(255, 255, 255, 0.6);
    }

    .customButtonSortCraft:active {
        background-image:url("img/button_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;

        box-shadow:
            inset 0 0 20px rgba(0, 0, 0, 0.4),
            0 0 6px rgba(0, 0, 0, 0.6);
        transform: scale(0.97);
    }

    .customButtonScavenge{
        font-size: 16px;
        font-weight:600;
        border: none;
    }
    .customInput{
        background: transparent;
        border-width: thin;
        
        color:blue;
        font-weight: 600;
        
        background-image:url("img/input_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
    }
    .customSelectContainer{
        background: transparent;
        border: none;
        
        color:blue;
        font-weight: 600;
        
        background-image:url("img/input_frame.jpg");
        background-size:100% 100%;
        background-repeat:no-repeat;
    }
    .customProgress-bar{
        color: black;
        background-image: -webkit-linear-gradient(top, #ffc400 0, #b3c700 100%);
        background-image: -o-linear-gradient(top,#ffff00 0,#b3c700 100%);
        background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff00), to(#b3c700));
        background-image: linear-gradient(to bottom, #ffff00 0, #b3c700 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff00', endColorstr='#ffb3c700', GradientType=0);
    }
    .customProgress-bar-loading{
        color: black;
        background: #ff9900;
        /*
        background-image: -webkit-linear-gradient(top, #ffff00 0, #ff9900 100%);
        background-image: -o-linear-gradient(top,#ffff00 0,#ff9900 100%);
        background-image: -webkit-gradient(linear, left top, left bottom, from(#ffff00), to(#ff9900));
        background-image: linear-gradient(to bottom, #ffff00 0, #ff9900 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff00', endColorstr='#ff990000', GradientType=0);
        */
    }
    .scavengeZoneFull3{
        background: rgba(0, 255, 0, .3);
        width: 33.3%;
        height: 33.3%;
    }
    .scavengeZoneFull2{
        background: rgba(0, 255, 0, .2);
        width: 33.3%;
        height: 33.3%;
    }
    .scavengeZoneFull1{
        background: rgba(0, 255, 0, .1);
        width: 33.3%;
        height: 33.3%;
    }
    .scavengeZoneEmpty{
        background: rgba(0, 255, 0, 0);
        width: 33.3%;
        height: 33.3%;
    }
    .scavenge{
        float:left;
    }
    .side_campaign_battle{
        height:90vh;
        display: flex;
        flex-flow: column;
    }
    .battleBarText{
        color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        right:50%;
    }
    .battleBarTextEnemy{
        color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        right:50%;
    }
    #bottom_side_campaign_battle{
        background-image: url("img/grid.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
    #dialog_name{
        color:#FFF5CC;
        font-size:2.8vw;
        font-weight:700;
        text-shadow: 0 0 0.05vw #000, 0 0 0.1vw #000000, 0 0 0.15vw #000000, 0 0 0.15vw #000000, 0 0 0.2vw #000000, 0 0 0.3vw #000000, 0 0 0.5vw #000000, 0 0 1vw #000000;
    }
    #dialog_text{
        color:#FFF5CC;
        font-size:2.5vw;
        font-weight:700;
        overflow-x: hidden;
        overflow-y: scroll;
        text-shadow: 0 0 0.05vw #000, 0 0 0.1vw #000000, 0 0 0.15vw #000000, 0 0 0.15vw #000000, 0 0 0.2vw #000000, 0 0 0.3vw #000000, 0 0 0.5vw #000000, 0 0 1vw #000000;
    }

    .news_img{
        background-size: 100% 100%;
        aspect-ratio: 1;
        height: calc(12vh + 4vw);
    }
    .borderBox {
        border-radius: 10px;
    }
    .metal-borderBox {
        background: rgba(255, 255, 255, 0.2); /* прозрачный фон 20% */
        border: 2px solid rgba(200, 200, 200, 0.7); /* металлическая обводка */

        border-radius: 10px;
        /*text-shadow: 0 0 4px rgba(255, 255, 255, 0.7);*/

        /* Металлический блеск */
        box-shadow:
            inset 0 0 8px rgba(255, 255, 255, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.1),
            0 0 8px rgba(0, 0, 0, 0.6);

            
        /*backdrop-filter: blur(2px);*/ /* лёгкое стекло */
        /*transition: 0.3s ease;*/
    }
    .metal-btn {
    font-size: 3.1vw;
    font-weight: 700;
    color: #d6d6d6;

    background: rgba(255, 255, 255, 0.2); /* прозрачный фон 20% */
    border: 2px solid rgba(200, 200, 200, 0.7); /* металлическая обводка */

    border-radius: 10px;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.7);

    /* Металлический блеск */
    box-shadow:
        inset 0 0 8px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 8px rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(2px); /* лёгкое стекло */

    cursor: pointer;
    /*transition: 0.3s ease;*/
}

.metal-btn:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.28);

    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.6),
        inset 0 0 25px rgba(255, 255, 255, 0.2),
        0 0 12px rgba(255, 255, 255, 0.6);
}

.metal-btn:active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 6px rgba(0, 0, 0, 0.6);
    transform: scale(0.97);
}
.tutorial-alert {
    width:100%;
    font-size:5vmin;
    color:white;
}
.tutorial-cursor {
    background-image: "url('img/tutorial_cursor_click.png')";
    background-size: "100% 100%";
    background-repeat: "no-repeat";
    position: absolute;
}
.questPointOnMap {
    padding-left: 0.6vw;
    padding-top: 0.5vw;
    font-size: 1.6vw;
    color: yellow;

    position:relative;
    background-color:rgba(0,0,0,0.60);
    border-radius: 40%;
}

.bonus-desc .item_info_tooltip {
    top:-100%;
    z-index: 9999999;
}
.bonus-desc:hover {
    border: 0; /* IE6 fix */
}

.bonus-desc:hover .item_info_tooltip {
    visibility: visible;
}
.bonus-desc .item_info_tooltip:hover {
    visibility: hidden;
}
.bonus-column{
    display: flex;
    align-items: center;
    width: 100%;
}
.bonus-img{
    background-size: 100% 100%;
    width:18%;
    aspect-ratio: 1;
    margin-right: 0.6vw;
}
.bonus-stat{
    display: flex;
    align-items: center;
    width: 100%;
}
@keyframes pulse {
    0% {
        transform: scale(1); /* Исходный размер */
    }
    50% {
        transform: scale(0.9); /* Немного больше */
    }
    100% {
        transform: scale(1); /* Возврат к исходному размеру */
    }
}