@media (max-width: 479px) {
    :root {
        --glow-blur: 80px;
        --glow-width: 200px;
        --glow-height: 200px;
    }
    html, body {
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;                    /* Включаем вертикальный скролл */
        -webkit-overflow-scrolling: touch;   /* Плавный скролл на iOS */
    }

    body {
        padding-top: var(--headerHeightDynamic, 40px);
        background: black;
    }
    #logo {
        width: 72px;
        height: 100%;
        background: url(/static/img/logo.svg) no-repeat center center / contain;
    }
    #balance-amount {
        font-size: 14px;
        font-weight: 700;
    }
    #currency {
        font-size: 14px;
        font-weight: 400;
        margin-right: 8px;
    }
    #burger-menu {
        width: 24px;
        height: 24px;
    }
    #game-container {
        width: 100%;
        height: 849px;
    }

    #left-menu {
        width: 100%;
        height: 305px;
        top: 540px;
        left: 4px;
        border-radius: 20px;
        transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    body.auto-mode-active #left-menu {
        transform: translateY(34px);
    }
    #left-menu .navigation-switcher {
        width: calc(100% - 16px);
        max-width: 100%;
        left: 0;
        margin-left: 8px;
        margin-right: 8px;
        box-sizing: border-box;
    }
    .top-tab-switcher {
        width: 100%;
        margin-top: 8px;
    }
    #left-menu .total-win-container {
        width: 100%;
    }
    #left-menu .previous-round-result {
        width: 100%;
    }
    #left-menu .top-wins-list-item {
        width: 100%;
    }
    #left-menu .data-list {
        height: 260px;
    }
    #left-menu .bets-list-header{
        padding: 0;
        gap: 8px
    }
    #left-menu .total-win-container .progress {
        height: 8px;
        padding-left: 2px;
    }

    #last-counters-wrapper {
        top: 4px;
        left: 4px;
        right: 4px;
        height: 32px;
        width: auto;
        box-sizing: border-box;
        z-index: 900 !important;
    }
    #last-counters-wrapper.history-expanded {
        z-index: 4500 !important;
    }
    #new-header {
        z-index: 5000 !important;
        background-color: #1B1C1D !important;
        justify-content: space-between !important;
    }
    #right-container {
        margin-left: auto;
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-end;
    }
    .top-game-widget {
        flex: 0 0 auto;
        min-width: 0;
        margin-right: 4px;
        max-width: calc(100vw - 120px);
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .top-game-widget::-webkit-scrollbar {
        display: none;
    }
    .top-widget-signal-status {
        flex: 0 0 auto;
        width: fit-content;
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .top-widget-deposit.top-widget-activate {
        min-width: 0;
        max-width: 112px;
        padding: 0 8px;
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #last-counters p {
        margin: 0 6px 0 0;
    }
    .show-more-btn {
        width: 38px;
        height: 28px;
        right: 10px;
    }
    .show-more-icon {
        width: 16px;
        height: 16px;
    }
    .round-history-dropdown.active {
        right: 2304px;
    }
    .dropdown-content p {
        margin: 0 0 2px 6px;
    }

    #fun-mode-banner {
        --fun-mode-banner-height: 22px;
        height: var(--fun-mode-banner-height);
    }
    #counterWrapper {
        left: 4px;
        right: 4px;
        width: auto;
        height: 200px;
        top: 40px;
        box-sizing: border-box;
    }
    #canvas {
        width: 100%;
    }
    #counter-glow {
        width: 400px;
        height: 30px;
        top: 52%;
    }

    #bottom-container {
        position: relative;
        top: 240px;
        width: 100%;
        max-width: 100%;
        height: 144px;
        left: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    #bottom-container-left.active  { position: relative !important; width: 100%; height: 144px; left: 0; top: 240px;}
    #bottom-container-right.active { position: relative !important; width: 100%; height: 144px; left: 0; top: 242px;}

    #controle-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 8px;
        box-sizing: border-box;
    }

    #bet-block-bet {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 7px;
        box-sizing: border-box;
    }

    #bet-block {
        flex: 0 0 clamp(110px, 37vw, 140px);
        width: clamp(110px, 37vw, 140px);
        min-width: 0;
        max-width: 42%;
    }

    #buttons-block {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        height: 88px;
        margin: 0;
    }

    .bottom-navigation-container {
        margin-bottom: 8px !important; /* принудительно на мобильных */
    }

}