/* =========================================
   RESET
========================================= */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    background:
        radial-gradient(
            circle at 50% -20%,
            #292d35 0%,
            #101217 38%,
            #07080b 80%
        );

    color: #f4f4f4;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;

}



/* =========================================
   HEADER
========================================= */

.header {

    height: 76px;

    padding:
        0 6%;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid #292d34;

    background:
        rgba(7, 8, 11, .95);

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter:
        blur(15px);

}


.logo {

    font-size: 23px;

    font-weight: 900;

    letter-spacing: 2px;

}


.logo span {

    color: #ffb000;

}


nav {

    display: flex;

    gap: 32px;

    margin-left: 60px;

}


nav a {

    color: #777;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    transition: .2s;

}


nav a:hover {

    color: #fff;

}


.balance-box {

    margin-left: auto;

    padding:
        11px 17px;

    border:
        1px solid #30343b;

    background:
        #14171c;

    display: flex;

    gap: 8px;

    align-items: center;

    font-weight: 900;

}


.balance-icon {

    color: #ffb000;

}



/* =========================================
   MAIN
========================================= */

main {

    width: 88%;

    max-width: 1400px;

    margin:
        0 auto;

}



/* =========================================
   HERO
========================================= */

.hero {

    min-height: 570px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid #20232a;

}


.hero-content {

    max-width: 650px;

}


.online {

    color: #61d35b;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 4px;

    margin-bottom: 24px;

}


.online span {

    display: inline-block;

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background:
        #61d35b;

    margin-right: 8px;

    box-shadow:
        0 0 12px #61d35b;

}


.hero h1 {

    font-size:
        clamp(60px, 8vw, 110px);

    line-height: .82;

    letter-spacing: -6px;

    margin-bottom: 32px;

}


.hero h1 strong {

    display: block;

    color: #ffb000;

}


.hero p {

    max-width: 530px;

    color: #777;

    line-height: 1.7;

    margin-bottom: 35px;

}


.main-button {

    display: inline-block;

    padding:
        17px 27px;

    color: #111;

    background:
        #ffb000;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    transition: .2s;

}


.main-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 35px
        rgba(255,176,0,.2);

}



/* =========================================
   HERO SKIN
========================================= */

.hero-skin {

    width: 430px;

    height: 330px;

    display: flex;

    justify-content: center;

    align-items: center;

}


.hero-skin-card {

    width: 300px;

    height: 190px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background:
        linear-gradient(
            140deg,
            #292d34,
            #0d0f13
        );

    border:
        1px solid #50545b;

    transform:
        rotate(-7deg);

    box-shadow:
        30px 30px 80px #000;

    animation:
        floating 4s ease-in-out infinite;

}


@keyframes floating {

    0% {

        transform:
            rotate(-7deg)
            translateY(0);

    }

    50% {

        transform:
            rotate(-7deg)
            translateY(-12px);

    }

    100% {

        transform:
            rotate(-7deg)
            translateY(0);

    }

}


.hero-gun {

    font-size: 65px;

}


.hero-skin-name {

    color: #aaa;

    font-size: 12px;

    font-weight: 900;

}


.hero-skin-title {

    color: #ffb000;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 3px;

    margin-top: 4px;

}


.hero-skin-price {

    color: #fff;

    font-weight: 900;

    margin-top: 10px;

}



/* =========================================
   SECTIONS
========================================= */

section {

    padding:
        90px 0;

}


.section-title {

    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 35px;

}


.section-title.center {

    display: block;

    text-align: center;

}


.label {

    color: #ffb000;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 4px;

}


h2 {

    font-size: 42px;

    letter-spacing: -1px;

    margin-top: 8px;

}


.section-title p {

    color: #666;

    font-size: 13px;

    margin-top: 12px;

}



/* =========================================
   INVENTORY INFO
========================================= */

.inventory-total {

    text-align: right;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: flex-end;

}


.inventory-total span {

    color: #555;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 2px;

}


.inventory-total strong {

    color: #fff;

    font-size: 20px;

    margin-right: 12px;

}


.inventory-total strong:last-child {

    color: #ffb000;

}



/* =========================================
   EMPTY
========================================= */

.empty-box {

    border:
        1px dashed #30343b;

    background:
        #0d1014;

    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    color: #555;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;

}


.empty-box small {

    color: #333;

    font-size: 10px;

    margin-top: 10px;

    font-weight: normal;

    letter-spacing: 0;

}



/* =========================================
   INVENTORY
========================================= */

.inventory-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 13px;

}


.inventory-card,
.market-card {

    position: relative;

    overflow: hidden;

    padding: 14px;

    background:
        linear-gradient(
            145deg,
            #191c21,
            #0d0f12
        );

    border:
        1px solid #282c33;

    cursor: pointer;

    transition: .2s;

}


.inventory-card:hover,
.market-card:hover {

    transform:
        translateY(-5px);

    border-color:
        #ffb000;

}


.weapon {

    height: 105px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 48px;

    background:
        radial-gradient(
            circle,
            #2a2e35,
            #111318
        );

    margin-bottom: 12px;

}


.weapon-name {

    font-size: 12px;

    font-weight: 900;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.weapon-type {

    color: #666;

    font-size: 9px;

    margin-top: 5px;

    text-transform: uppercase;

}


.weapon-price {

    color: #ffb000;

    font-size: 13px;

    font-weight: 900;

    margin-top: 12px;

}


.card-action {

    margin-top: 12px;

    width: 100%;

    border:
        1px solid #333;

    background:
        #15181d;

    color: #aaa;

    padding:
        8px;

    cursor: pointer;

    font-size: 9px;

    font-weight: 900;

}


.card-action:hover {

    background:
        #ffb000;

    color: #111;

}


.rarity {

    position: absolute;

    left: 0;

    top: 0;

    width: 4px;

    height: 100%;

}


.common {

    background: #aaa;

}


.rare {

    background: #4b8dff;

}


.epic {

    background: #b653ff;

}


.legendary {

    background: #ff4141;

}



/* =========================================
   UPGRADER
========================================= */

.upgrader {

    border-top:
        1px solid #181b20;

    border-bottom:
        1px solid #181b20;

}


.upgrade-area {

    margin-top: 65px;

    display: grid;

    grid-template-columns:
        1fr 400px 1fr;

    align-items: center;

    gap: 45px;

}


.item-label {

    color: #555;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 3px;

    margin-bottom: 12px;

}


.selected-card {

    min-height: 280px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #20242a,
            #0c0e11
        );

    border:
        1px solid #3b4048;

}


.selected-card.target {

    border-color:
        #ffb000;

}


.selected-gun {

    font-size: 80px;

    margin-bottom: 22px;

}


.selected-weapon {

    color: #777;

    font-size: 10px;

    text-transform: uppercase;

}


.selected-name {

    font-size: 22px;

    font-weight: 900;

    margin-top: 5px;

}


.selected-price {

    color: #ffb000;

    font-size: 17px;

    font-weight: 900;

    margin-top: 12px;

}



/* =========================================
   WHEEL
========================================= */

.wheel-box {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

}


.pointer {

    position: absolute;

    top: -20px;

    z-index: 10;

    color: #ffb000;

    font-size: 32px;

    line-height: 1;

    filter:
        drop-shadow(
            0 0 8px
            rgba(255,176,0,.5)
        );

}


.wheel {

    width: 330px;

    height: 330px;

    border-radius: 50%;

    position: relative;

    background:
        conic-gradient(
            #ffb000 0deg,
            #ffb000 180deg,
            #22262d 180deg,
            #22262d 360deg
        );

    box-shadow:
        0 0 0 8px #15181d,
        0 0 60px
        rgba(255,176,0,.13);

    transition:
        transform
        4.2s
        cubic-bezier(
            .12,
            .75,
            .15,
            1
        );

}


.wheel::before {

    content: "";

    position: absolute;

    inset: 13px;

    border-radius: 50%;

    border:
        1px dashed
        rgba(255,255,255,.18);

}


.wheel-center {

    position: absolute;

    z-index: 5;

    left: 50%;

    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 110px;

    height: 110px;

    border-radius: 50%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    background:
        #0a0c0f;

    border:
        3px solid #333840;

}


.wheel-center strong {

    color: #ffb000;

    font-size: 26px;

}


.wheel-center span {

    color: #666;

    font-size: 8px;

    letter-spacing: 2px;

    margin-top: 4px;

}


.wheel-status {

    color: #555;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 4px;

    margin-top: 25px;

}



/* =========================================
   CHANCE
========================================= */

.chance-info {

    max-width: 850px;

    margin:
        60px auto 25px;

    padding:
        18px 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background:
        #111318;

    border:
        1px solid #292d34;

}


.chance-info > div:first-child {

    display: flex;

    align-items: center;

    gap: 15px;

}


.chance-info span {

    color: #666;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 2px;

}


.chance-info strong {

    color: #ffb000;

    font-size: 28px;

}


.formula {

    text-align: right;

}


.formula p {

    color: #555;

    font-size: 10px;

    margin-top: 5px;

}



/* =========================================
   UPGRADE BUTTON
========================================= */

.upgrade-button {

    display: block;

    width: 280px;

    height: 62px;

    margin:
        0 auto;

    border: none;

    background:
        #ffb000;

    color: #111;

    cursor: pointer;

    font-size: 14px;

    font-weight: 900;

    transition: .2s;

}


.upgrade-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 40px
        rgba(255,176,0,.2);

}


.upgrade-button:disabled {

    opacity: .4;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;

}


.upgrade-button span {

    margin-right: 8px;

}


.upgrade-button small {

    display: block;

    font-size: 9px;

    opacity: .6;

    margin-top: 3px;

}


.result {

    min-height: 35px;

    text-align: center;

    margin-top: 25px;

    font-size: 12px;

    font-weight: 900;

}


.result.success {

    color: #61d35b;

}


.result.fail {

    color: #ff4848;

}



/* =========================================
   SHOP
========================================= */

.shop {

    border-bottom:
        1px solid #181b20;

}


.market-count {

    text-align: right;

}


.market-count strong {

    display: block;

    color: #ffb000;

    font-size: 25px;

}


.market-count span {

    color: #555;

    font-size: 8px;

    letter-spacing: 2px;

}


.market-tools {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}


.market-tools input {

    flex: 1;

    padding:
        15px 18px;

    background:
        #111318;

    border:
        1px solid #292d34;

    outline: none;

    color: white;

    font-size: 12px;

}


.market-tools input:focus {

    border-color:
        #ffb000;

}


.market-tools select {

    width: 160px;

    background:
        #111318;

    color: white;

    border:
        1px solid #292d34;

    padding:
        0 15px;

    outline: none;

}


.shop-info {

    min-height: 20px;

    color: #555;

    font-size: 10px;

    margin-bottom: 15px;

}


.market-grid {

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 13px;

    max-height: 1050px;

    overflow-y: auto;

    padding-right: 8px;

}


.market-grid::-webkit-scrollbar {

    width: 5px;

}


.market-grid::-webkit-scrollbar-track {

    background:
        #0d0f12;

}


.market-grid::-webkit-scrollbar-thumb {

    background:
        #3b3e44;

}


.market-grid::-webkit-scrollbar-thumb:hover {

    background:
        #ffb000;

}


.buy-button {

    margin-top: 12px;

    width: 100%;

    border: none;

    background:
        #ffb000;

    color: #111;

    padding:
        10px;

    cursor: pointer;

    font-size: 9px;

    font-weight: 900;

}


.buy-button:hover {

    filter:
        brightness(1.15);

}


.buy-button:disabled {

    background:
        #25282d;

    color: #555;

    cursor: not-allowed;

}


.load-more {

    display: block;

    margin:
        30px auto 0;

    padding:
        15px 45px;

    border:
        1px solid #343840;

    background:
        #111318;

    color: #aaa;

    cursor: pointer;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;

}


.load-more:hover {

    border-color:
        #ffb000;

    color: #ffb000;

}



/* =========================================
   FOOTER
========================================= */

footer {

    border-top:
        1px solid #20232a;

    padding:
        35px 6%;

    display: flex;

    align-items: center;

    color: #444;

    font-size: 9px;

    letter-spacing: 2px;

}


footer .logo {

    margin-right: auto;

    color: #aaa;

    font-size: 17px;

}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 1050px) {

    .inventory-grid,
    .market-grid {

        grid-template-columns:
            repeat(4, 1fr);

    }


    .upgrade-area {

        grid-template-columns:
            1fr;

        max-width: 500px;

        margin-left: auto;

        margin-right: auto;

    }


    .hero-skin {

        display: none;

    }

}


@media (max-width: 700px) {

    .header {

        padding:
            0 18px;

    }


    nav {

        display: none;

    }


    main {

        width: 92%;

    }


    .hero {

        min-height: 500px;

    }


    .hero h1 {

        font-size: 62px;

        letter-spacing: -4px;

    }


    .inventory-grid,
    .market-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .section-title {

        flex-direction: column;

        align-items: start;

        gap: 20px;

    }


    .inventory-total {

        text-align: left;

        justify-content: flex-start;

    }


    .market-count {

        text-align: left;

    }


    .wheel {

        width: 290px;

        height: 290px;

    }


    .chance-info {

        flex-direction: column;

        align-items: start;

        gap: 15px;

    }


    .formula {

        text-align: left;

    }


    .market-tools {

        flex-direction: column;

    }


    .market-tools select {

        width: 100%;

        height: 45px;

    }


    footer {

        flex-direction: column;

        align-items: start;

        gap: 15px;

    }

}