@charset "utf-8";

/* ============================================
   ADAPTIVE CSS for PUBG-DROP.NET
   Breakpoints: 1260px, 1024px, 768px, 480px
   ============================================ */

/* --- Base responsive overrides --- */
html { min-width: 0; }
html, body {
    overflow-x: clip;
    max-width: 100vw;
}


/* ============================================
   <= 1260px — сжатие десктопа
   ============================================ */
@media (max-width: 1260px) {
    .main-width {
        width: 100%;
        max-width: 1240px;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .livedrop .main-width {
        min-width: 0;
        padding: 0;
    }

    .cases {
        width: 100%;
        max-width: 1056px;
    }

    .footer .right {
        width: auto;
    }

    .footer .copyright {
        width: auto;
        max-width: 600px;
    }

    .profile {
        width: 100%;
        max-width: 1010px;
    }

    .faq-item {
        width: 100%;
        max-width: 880px;
    }

    .table {
        max-width: 100%;
    }

    .items .list {
        width: 100%;
        max-width: 1010px;
    }
}


/* ============================================
   <= 1024px — планшеты
   ============================================ */
@media (max-width: 1024px) {
    .header {
        height: auto;
        min-height: 120px;
        padding: 10px 0 60px;
    }

    .header .logo {
        position: relative;
        left: auto;
        top: auto;
        width: 200px;
        height: 70px;
        display: block;
        margin: 0 auto 10px;
        background-size: contain;
    }

    .header .logo:before,
    .header .logo:after {
        display: none;
    }

    .header .heading {
        display: none;
    }

    .header .auth {
        position: relative;
        right: auto;
        top: auto;
        text-align: center;
        margin-bottom: 10px;
    }

    .header .auth .btn-steam,
    .header .auth .btn-vk {
        width: 140px;
        height: 65px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .header .logged {
        position: relative;
        right: auto;
        top: auto;
        text-align: center;
        padding-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header .logged .avatar {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .header .logged .btn-profile {
        width: 100px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
        background-size: 100% 100%;
    }

    .header .logged .btn-exit {
        position: relative;
        top: auto;
        right: auto;
    }

    .header .nav {
        position: relative;
        right: auto;
        top: auto;
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .header .nav li {
        float: none;
        margin-left: 0;
    }

    .cases .item {
        width: calc(33.33% - 20px);
        margin: 0 10px 40px;
    }

    .thing-cases .item,
    .exclusive-cases .item,
    .normal-cases .item {
        width: calc(33.33% - 20px);
    }

    .roulette .list {
        max-width: 100%;
    }

    .roulette .fixed-width {
        width: 100%;
        margin-left: 0;
        left: 0;
    }
}


/* ============================================
   <= 768px — основной мобильный breakpoint
   ============================================ */
@media (max-width: 768px) {

    /* --- Body padding для bottom nav --- */
    body {
        padding-bottom: 62px;
        background-size: 100% auto;
    }

    .content {
        min-height: 0 !important;
    }

    /* --- Sticky Header --- */
    .header {
        position: sticky;
        top: 0;
        z-index: 500;
        background: #222025;
        padding: 8px 0 8px;
        min-height: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .header .main-width {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 5px;
    }

    .header .logo {
        position: relative;
        left: auto;
        top: auto;
        width: 120px;
        height: 45px;
        display: block;
        flex-shrink: 0;
    }

    .header .logo:before,
    .header .logo:after {
        display: none;
    }

    .header .heading {
        display: none;
    }

    /* Auth buttons mobile */
    .header .auth {
        position: relative;
        right: auto;
        top: auto;
        display: flex;
        gap: 5px;
    }

    .header .auth .btn-steam {
        width: 100px;
        height: 45px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .header .auth .btn-vk {
        width: 100px;
        height: 45px;
        background-size: contain;
        background-repeat: no-repeat;
        margin-left: 0;
    }

    /* Logged user mobile */
    .header .logged {
        position: relative;
        right: auto;
        top: auto;
        padding-right: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header .logged .avatar {
        width: 36px;
        height: 36px;
        margin-right: 0;
        border-width: 1px;
    }

    .header .logged .avatar:after {
        display: none;
    }

    .header .logged .info {
        margin-right: 0;
    }

    .header .logged .info .name {
        font-size: 14px;
    }

    .header .logged .info .balance {
        font-size: 14px;
    }

    .header .logged .btn-profile {
        display: none;
    }

    .header .logged .btn-exit {
        position: relative;
        top: auto;
        right: auto;
    }

    /* Nav mobile */
    .header .nav {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 5px 0 0;
        order: 10;
    }

    .header .nav li {
        float: none;
        margin-left: 0;
    }

    .header .nav li a {
        font-size: 14px;
    }

    .header .nav li a:after {
        display: none;
    }


    /* --- Livedrop --- */
    .livedrop {
        margin-top: 0;
    }

    .livedrop .list {
        height: 130px;
        padding: 20px 10px 0;
    }

    .livedrop .item {
        width: 80px;
        height: 75px;
    }

    .livedrop .item > .image {
        height: 75px;
    }

    .livedrop .item > .image img {
        max-width: 70%;
        max-height: 70%;
    }

    .livedrop .item .caption {
        display: none;
    }


    /* --- Box sections --- */
    .box {
        min-height: 0;
        padding: 30px 0 0;
        background-size: 100% auto;
    }

    .box .title img {
        max-width: 90%;
        height: auto;
    }

    .box .title {
        margin-bottom: 30px;
    }


    /* --- Cases grid --- */
    .cases {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .cases .item {
        width: calc(50% - 10px) !important;
        display: inline-block;
        margin: 0 4px 30px !important;
        vertical-align: top;
    }

    .thing-cases .item .image,
    .exclusive-cases .item .image,
    .normal-cases .item .image {
        height: 150px;
    }

    .thing-cases .item .image img,
    .exclusive-cases .item .image img,
    .normal-cases .item .image img {
        max-width: 80%;
        max-height: 100%;
    }

    .thing-cases .item .image:after,
    .exclusive-cases .item .image:after {
        display: none;
    }

    .cases .case-btn {
        width: auto;
        min-width: 120px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        background-size: 100% 100%;
    }

    .cases .item .name {
        font-size: 16px;
    }

    .exclusive-cases .ico-time {
        display: none;
    }

    .star-bronze,
    .star-silver,
    .star-gold {
        transform: scale(0.7);
        top: -20px;
    }

    .timer {
        bottom: 40px;
    }


    /* --- Page title --- */
    .page-title {
        font-size: 24px;
        top: 0;
        margin-bottom: 20px;
    }

    .page-title h1 {
        font-size: 24px;
    }


    /* --- Roulette --- */
    .roulette {
        width: calc(100% - 20px);
        margin: 0 10px 20px;
        height: 160px;
        background-size: 100% 100%;
        overflow: hidden;
    }

    .roulette .list {
        height: 150px;
        overflow: hidden;
        max-width: 100%;
    }

    .roulette .list .overview {
        height: 150px;
    }

    .roulette .item {
        width: 110px !important;
        height: 145px !important;
    }

    .roulette .item img {
        max-width: 75%;
        max-height: 75%;
    }

    .roulette .spin {
        height: 160px;
        margin-left: -112px;
    }

    .roulette .spin:after {
        display: none;
    }

    .roulette .fixed-width {
        width: auto;
        position: relative;
        left: 0;
        margin-left: 0;
    }

    .roulette .disable {
        height: 150px;
        top: 5px;
    }

    .roulette .disable .align {
        width: 90%;
    }

    .roulette .disable .align .image img {
        max-height: 80px;
    }

    .roulette .disable .align .desc {
        font-size: 14px;
    }

    .roulette .disable .align .text {
        font-size: 20px;
    }

    .roulette:before,
    .roulette:after {
        width: 60px;
        height: 160px;
        background-size: 100% 100%;
    }


    /* --- Items grid (case contents / profile items) --- */
    .items {
        min-height: 0;
        background-size: 100% auto;
        margin-bottom: 20px;
    }

    .items .title {
        padding: 30px 0 0;
        margin-bottom: 20px;
    }

    .items .title img {
        max-width: 90%;
        height: auto;
    }

    .items .list {
        width: 100% !important;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .items .item {
        width: calc(50% - 6px) !important;
        height: auto !important;
        aspect-ratio: 143 / 188;
        float: none;
        margin: 0 !important;
        background-size: 100% 100% !important;
    }

    .items .item .image {
        width: 100%;
        height: 60%;
        top: 10px;
    }

    .items .item .image img {
        max-width: 65%;
        max-height: 80%;
    }

    .items .item .name {
        top: auto;
        bottom: 38px;
        font-size: 11px;
        padding: 0 8px;
    }

    .items .item .info {
        width: 100%;
        height: auto;
        background-size: 100% 100%;
        padding: 10px 8px 0;
        font-size: 12px;
    }

    .items .item .right {
        top: 8px;
        right: 8px;
    }

    .items .item .right .price {
        font-size: 11px;
        padding: 0 6px;
    }

    .items .item .rightcase {
        top: 5px;
        right: 5px;
    }

    .items .item .rightcase .price {
        font-size: 11px;
        padding: 0 6px;
    }

    .items .item:before {
        display: none;
    }

    .items.otheruser {
        margin-top: 0;
    }

    .moreitems {
        margin: 10px auto;
    }


    /* --- Buttons --- */
    .btn-normal {
        width: auto;
        min-width: 140px;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        padding: 0 20px;
    }

    .btn-normal.small {
        margin-top: 30px;
    }

    .center .btn-normal {
        margin: 0 4px 10px;
    }

    .openning {
        font-size: 18px;
        min-height: 40px;
    }

    .case-free-text {
        font-size: 16px;
    }


    /* --- Profile --- */
    .profile {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .profile .user {
        width: 100%;
        max-width: 328px;
        height: auto;
        background-size: 100% 100%;
        padding: 20px 0;
        margin-bottom: 60px;
    }

    .profile .user .avatar {
        width: 90px;
        height: 90px;
    }

    .profile .user .tabs .tab {
        width: 130px;
        height: 45px;
        line-height: 45px;
        font-size: 14px;
    }

    .steps {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-bottom: 20px;
    }

    .steps .item {
        position: relative;
        left: auto !important;
        transform: none !important;
    }

    .steps .item:last-child {
        right: auto;
    }

    .steps .item .num {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .steps .item .info .heading {
        font-size: 16px;
    }

    .steps .item .info .desc {
        font-size: 13px;
    }

    .settings {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .settings .trade-link {
        width: 100%;
        float: none;
    }

    .settings .code {
        width: 100%;
        float: none;
    }

    .settings .input {
        width: calc(100% - 100px);
        height: 45px;
        font-size: 14px;
    }

    .settings .btn {
        width: 92px;
        height: 45px;
        line-height: 45px;
        font-size: 15px;
    }

    .refs {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .refs .ref-link {
        width: 100%;
        float: none;
    }

    .refs .input {
        width: calc(100% - 100px);
        height: 45px;
        font-size: 13px;
        padding-left: 10px;
    }

    .refs .input-title {
        display: none;
    }

    .refs .ref-stat {
        float: none;
        margin-top: 0;
        display: flex;
        gap: 20px;
    }

    .refs .ref-stat .col {
        float: none;
    }

    .refs .ref-stat .col:first-child {
        margin-right: 0;
    }

    .refs .ref-stat .num {
        width: auto;
        min-width: 100px;
        height: 45px;
        line-height: 45px;
        font-size: 24px;
        background-size: 100% 100%;
    }


    /* --- Important block --- */
    .important {
        flex-direction: column;
        display: flex;
        gap: 15px;
        padding: 15px;
    }

    .important .left {
        float: none;
        width: 100%;
    }

    .important .btn-normal {
        float: none;
        margin: 0 auto;
    }


    /* --- FAQ --- */
    .faq-item {
        width: 100%;
    }

    .faq-item .heading {
        font-size: 16px;
        padding: 15px;
    }

    .faq-item .faq-content {
        font-size: 14px;
    }


    /* --- Tabs --- */
    .tabs {
        margin: -10px 0 30px;
    }

    .tabs .tab {
        width: auto;
        min-width: 100px;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
        padding: 0 15px;
    }

    .tabs .tab.big {
        width: auto;
        min-width: 160px;
    }


    /* --- Table --- */
    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 5px 8px;
    }

    .table .avatar img {
        width: 28px;
        height: 28px;
    }


    /* --- Top page (best users) --- */
    .best {
        height: auto;
        margin: 40px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .best .item {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-left: 0 !important;
        width: 250px;
    }

    .best .item .image:after {
        transform: scale(0.7);
    }


    /* --- Footer --- */
    .footer {
        padding: 30px 15px;
    }

    .footer .main-width {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer .copyright {
        float: none;
        width: 100%;
        text-align: center;
    }

    .footer .right {
        float: none;
        width: 100%;
    }

    .footer .f-stat {
        float: none;
        display: flex;
        justify-content: space-around;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer .f-stat .item {
        text-align: center;
    }

    .footer .f-stat .item .num {
        font-size: 30px;
    }

    .footer .right .col {
        float: none;
        text-align: center;
    }

    .footer .logos {
        text-align: center;
    }

    .footer .links {
        text-align: center;
    }


    /* --- Popups --- */
    .popup {
        width: 94% !important;
        left: 3% !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 25px 15px 0 !important;
        box-sizing: border-box;
        background-size: cover !important;
        height: auto !important;
        min-height: 400px;
        top: 50% !important;
        transform: translateY(-50%);
    }

    .popup.active {
        top: 50% !important;
        transform: translateY(-50%);
    }

    .popup .heading {
        margin-bottom: 20px;
    }

    .popup .heading img {
        max-width: 80%;
        height: auto;
    }

    .popup .close {
        right: 10px;
        top: 10px;
        width: 30px;
        height: 30px;
    }

    .pay-form .sub-heading {
        font-size: 16px;
        display: block;
        margin: 0 0 10px;
    }

    .pay-form .input {
        width: 100%;
        max-width: 300px;
        height: 45px;
        font-size: 20px;
    }

    .pay-form .btn-form {
        margin: 15px 0 0;
        width: 140px;
        height: 50px;
        line-height: 50px;
    }

    .refill-window__payments-list {
        padding-bottom: 20px;
        gap: 5px;
    }

    .refill-window__payment {
        flex: 0 0 30%;
    }

    .refill-window__payment-btn {
        height: 60px;
    }

    .bonuses {
        margin-top: 30px;
    }

    .bonuses .sub-heading {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .bonuses .list {
        font-size: 13px;
    }

    /* Win popup */
    .popup.win {
        width: 92% !important;
        left: 4% !important;
        height: auto !important;
        min-height: 0;
        padding: 60px 15px 30px !important;
    }

    .popup.win .image {
        height: 180px;
    }

    .popup.win .name {
        font-size: 24px;
    }

    .popup.win .desc {
        font-size: 14px;
    }

    .popup.win .btn-normal {
        margin: 5px;
        padding: 0 15px;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
    }

    /* Return popup */
    .popup#return {
        background-size: cover;
    }

    .payments .item {
        width: 120px;
        height: 60px;
        margin: 0 3px 5px;
    }


    /* --- Reviews --- */
    .reviews .last {
        display: flex;
        flex-direction: column;
        padding: 20px 15px;
    }

    .reviews .last > div {
        display: block;
    }

    .reviews .last .image {
        width: 70px;
        margin: 0 auto 10px;
    }

    .reviews .last .avatar {
        width: 70px;
        height: 70px;
    }

    .reviews .last .avatar img {
        width: 70px;
        height: 70px;
    }

    .reviews .last .last-text {
        padding-left: 0;
    }

    .reviews .form {
        width: 100% !important;
    }

    .reviews .btn-main {
        float: none;
        margin: 10px auto 0;
    }

    .reviews .last .drop {
        width: 80px;
        height: 80px;
    }

    .reviews .last .drop img {
        width: 72px;
        height: 72px;
    }


    /* --- Case limit badge --- */
    .case-limit .num {
        font-size: 12px;
    }


    /* --- JivoChat --- */
    jdiv {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.jivo-active jdiv {
        opacity: 1 !important;
        pointer-events: auto !important;
    }


    /* --- Cookie consent --- */
    .cookie-consent {
        position: fixed;
        bottom: 62px;
        left: 0;
        right: 0;
        background: #1a1b20;
        border-top: 1px solid #2a2b30;
        padding: 12px 15px;
        z-index: 590;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: #9ca3af;
    }

    .cookie-consent a {
        color: #f8c704;
    }

    .cookie-consent__btn {
        background: linear-gradient(135deg, #fff000, #e0a800);
        color: #1a1b20;
        border: none;
        border-radius: 4px;
        padding: 6px 16px;
        font-weight: bold;
        cursor: pointer;
        flex-shrink: 0;
    }


    /* --- Mobile Bottom Nav --- */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #1a1b20;
        border-top: 1px solid #2a2b30;
        z-index: 600;
        align-items: center;
        justify-content: space-around;
        padding: 0 5px;
    }

    .mobile-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #6b7280;
        font-size: 10px;
        flex: 1;
        padding: 4px 0;
        transition: color 0.2s;
    }

    .mobile-bottom-nav__item.active {
        color: #f8c704;
    }

    .mobile-bottom-nav__icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav__item--pay {
        position: relative;
        top: -5px;
    }

    .mobile-bottom-nav__pay-btn {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #fff000 0%, #e0a800 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -22px;
        box-shadow: 0 2px 12px rgba(255, 240, 0, 0.4);
    }

    .mobile-bottom-nav__pay-btn svg {
        width: 22px;
        height: 22px;
        stroke: #1a1b20;
    }


    /* --- Promo code compact --- */
    .promo-code > .main-width > .form,
    .promo-code > .main-width > .form2 {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 4px 10px;
        height: auto !important;
        gap: 2px 8px;
        text-transform: none !important;
        font-size: 11px !important;
    }

    .promo-code > .main-width > .form:after {
        display: none !important;
        content: none;
    }

    .promo-code .btn-copy {
        width: auto !important;
        height: 22px !important;
        line-height: 18px !important;
        font-size: 9px !important;
        padding: 0 10px !important;
    }


    /* --- Flipclock responsive --- */
    .flip-clock-wrapper {
        transform: scale(0.7);
        transform-origin: center center;
    }
}


/* ============================================
   <= 480px — маленькие телефоны
   ============================================ */
@media (max-width: 480px) {
    .header .logo {
        width: 90px;
        height: 35px;
    }

    .header .auth .btn-steam,
    .header .auth .btn-vk {
        width: 80px;
        height: 38px;
    }

    .header .nav li a {
        font-size: 12px;
    }

    .header .nav {
        gap: 6px;
    }

    .header .logged .info .name {
        font-size: 12px;
    }

    .header .logged .info .balance {
        font-size: 12px;
    }

    .cases .item {
        width: calc(50% - 8px) !important;
        margin: 0 3px 20px !important;
    }

    .cases .case-btn {
        font-size: 12px;
        height: 35px;
        line-height: 35px;
    }

    .cases .item .name {
        font-size: 13px;
    }

    .thing-cases .item .image,
    .exclusive-cases .item .image,
    .normal-cases .item .image {
        height: 120px;
    }

    .roulette {
        height: 130px;
    }

    .roulette .list,
    .roulette .list .overview {
        height: 120px;
    }

    .roulette .item {
        width: 85px !important;
        height: 115px !important;
    }

    .roulette .disable {
        height: 120px;
    }

    .items .item {
        width: calc(50% - 4px) !important;
    }

    .items .item .name {
        font-size: 10px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-title h1 {
        font-size: 20px;
    }

    .footer .f-stat .item .num {
        font-size: 24px;
    }

    .footer .f-stat .item .heading {
        font-size: 12px;
    }

    .popup.win .image {
        height: 140px;
    }

    .popup.win .name {
        font-size: 20px;
    }
}


/* ============================================
   <= 360px — экстра маленькие
   ============================================ */
@media (max-width: 360px) {
    .header .nav li a {
        font-size: 11px;
    }

    .cases .case-btn {
        font-size: 11px;
    }

    .roulette .item {
        width: 75px !important;
        height: 100px !important;
    }

    .items .item .name {
        font-size: 9px;
    }
}


/* --- Hide mobile-only elements on desktop --- */
.mobile-bottom-nav {
    display: none;
}

.cookie-consent {
    display: none;
}
