/* === Навигация === */

@font-face {
    font-family: "Minecraft";
    src: url("../fonts/minecraft.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: "Minecraft", sans-serif;
}

.coin-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 3px;
}

nav {
    width: 100%;
    background-color: #181818;
    padding: 15px 30px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav a {
    /* font-family: 'Minecraft'; */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: linear-gradient(to right, #00ffc8, #00e1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a:hover {
    scale: 1.05;
    background: linear-gradient(to right, #00e1ff, #00ffc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#userbox {
    margin-left: auto;
}

#userbox .avatar {
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 2px;
}

#balance {
    margin-left: 10px;
    color: #ffcc00;
    /* золотой цвет для монет */
    white-space: nowrap;
}

.header_list {
    display: flex;
    gap: 15px;
}

label {
    display: none;
}

#burger-toggle {
    display: none;
}

.menu-item {
    list-style: none;
}

#loading-bar-container {
    width: 100%;
    height: 4px;
    background: #181818;
    position: absolute;
    bottom: 0;
    /* ровно под nav */
    left: 0;
    overflow: hidden;
}

#loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00bfff, #0783ff);
    transition: width 0.2s ease;
}

@media (max-width: 830px) {
    #header_list {
        display: none;
    }

    label {
        position: relative;
        display: block;
        height: 15px;
        width: 20px;
        cursor: pointer;
    }

    label::after,
    label::before,
    label span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: white;
        transition: .3s;
    }

    label::before {
        content: "";
        top: 0;
    }

    label::after {
        content: "";
        bottom: 0;
    }

    label span {
        top: 7px;
    }

    /* --- Анимация бургера --- */
    #burger-toggle:checked~label::after {
        transform: rotate(45deg);
        bottom: 6px;
    }

    #burger-toggle:checked~label::before {
        transform: rotate(-45deg);
        top: 7px;
    }

    #burger-toggle:checked~label span {
        opacity: 0;
    }

    /* --- Открытие меню --- */
    #burger-toggle:checked~.header_list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        left: 0;
    }

    .header_list {
        margin-top: 40px;
        position: fixed;
        left: -200px;
        background-color: #282828;
        padding: 30px 20px 30px 45px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        transition: all 0.5s ease;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    #header_list .menu-item {
        width: 100%;
        text-align: left;
        list-style: none;
    }

    /* #userbox,
    #balance {
        display: none;
    } */
}