:root {
    --m-gutter: 14px;
    --m-header: 56px;
    --m-bottom-nav: 62px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
    touch-action: manipulation;
}

@media (max-width: 850px) {

    body {
        padding: 0;
        background: var(--surface);
    }

    .app-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        min-height: 100dvh;

        padding-top: 0;
        padding-right: 0;
        padding-left: 0;
        padding-bottom: calc(var(--m-bottom-nav) + 12px + env(safe-area-inset-bottom));
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 16px var(--m-gutter) 0;
    }

    .sidebar-right {
        display: flex;
        gap: 16px;
    }
}

@media (max-width: 850px) {

    .top-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        min-height: var(--m-header);
        margin-bottom: 0;

        padding: calc(8px + env(safe-area-inset-top)) var(--m-gutter) 8px;

        position: sticky;
        top: 0;
        border-bottom: 1px solid var(--border);

        background: var(--surface);

        z-index: 1000;
    }

    .logo {
        font-size: 17px;
        gap: 8px;
        min-width: 0;
        flex: 0 1 auto;
        overflow: hidden;
        white-space: nowrap;
    }

    .logo img {
        height: 24px;
        flex: none;
    }

    .hamburger {
        display: flex;
        order: -1;
        padding: 8px;
        margin-left: -4px;
        flex: none;
    }

    .nav-right {
        margin-left: auto;
        gap: 8px;
        flex: none;
    }

    .balance-pill {
        padding: 3px 4px;
        gap: 3px;
    }

    .balance-pill__btn {
        width: 28px;
        height: 28px;
    }

    .balance-pill__sum {
        min-width: 0;
        padding: 0 4px;
        white-space: nowrap;
        flex: none;
    }

    .avatar {
        width: 38px;
        height: 38px;
        font-size: 15px;
        flex: none;
    }
}

@media (max-width: 850px) {

    .nav-center {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: auto;
        width: min(86vw, 330px);
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--surface);
        border-radius: 0;

        padding: calc(12px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
        padding-left: max(12px, env(safe-area-inset-left));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
        z-index: 1200;
    }

    .nav-center.mobile-open {
        transform: translateX(0);
    }

    .nav-center:not(.mobile-open) {
        visibility: hidden;
    }

    .mobile-overlay {
        z-index: 1100;
    }

    .nav-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--surface);
        color: var(--text-dim);
        cursor: pointer;
        flex: none;
        transition: all 0.2s ease;
    }

    .nav-close-btn:active {
        background: var(--surface-3);
        color: var(--accent);
    }

    .hamburger-hidden {
        display: none !important;
    }

    .nav-link {
        width: 100%;

        margin: 0;
        padding: 14px 16px;
        font-size: 15px;
        justify-content: flex-start;
        gap: 12px;
        border-radius: 14px;
        flex: none;
    }

    .nav-link.active {
        background: var(--surface-accent);
        color: var(--accent);
        box-shadow: none;
    }

    .sidebar-left {
        display: none;
    }

    .sidebar-close-btn {
        display: none;
    }

    .nav-center .promo-block {
        width: 100%;
        margin-top: 14px;
        flex: none;
    }
}

@media (max-width: 850px) {

    .pmenu {
        position: fixed;

        inset: auto 0 calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)) 0;
        width: auto;

        padding: 10px 12px 14px;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
        animation: pmenuUp 0.22s ease;

        max-height: calc(100vh - var(--m-bottom-nav) - env(safe-area-inset-bottom) - 24px);
        max-height: calc(100dvh - var(--m-bottom-nav) - env(safe-area-inset-bottom) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    @keyframes pmenuUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .pmenu::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        margin: 2px auto 10px;
        border-radius: 4px;
        background: var(--border);
    }

    .pmenu__item,
    .pmenu__pay-btn {
        min-height: 48px;
    }
}

@media (max-width: 850px) {

    .gmenu-backdrop {
        position: fixed;
        inset: 0 0 calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)) 0;
        z-index: 998;
        background: rgba(15, 23, 42, .45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        animation: gmenuFade .18s ease;
    }

    @keyframes gmenuFade {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    body.gmenu-open { overflow: hidden; }

    .gmenu {
        position: fixed;
        inset: auto 0 calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)) 0;
        width: auto;
        z-index: 999;
        padding: 10px 12px 14px;
        border-radius: 24px 24px 0 0;

        background: var(--surface);
        border: 1px solid var(--border-soft);
        border-bottom: 0;
        box-shadow: 0 -18px 44px rgba(15, 23, 42, 0.22);
        animation: gmenuUp 0.22s ease;
        max-height: calc(100vh - var(--m-bottom-nav) - env(safe-area-inset-bottom) - 24px);
        max-height: calc(100dvh - var(--m-bottom-nav) - env(safe-area-inset-bottom) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    @keyframes gmenuUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .gmenu::before {
        content: '';
        display: block;
        width: 38px;
        height: 4px;
        margin: 2px auto 10px;
        border-radius: 4px;
        background: var(--border);
    }

    .gmenu .category-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .gmenu .category-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        min-height: 84px;
        padding: 12px;
        border-radius: 18px;
        background: var(--surface-2);
        border: 1px solid var(--border-soft);
    }

    .gmenu .category-item:active {
        background: var(--surface-accent);
        transform: scale(.98);
    }

    .gmenu .cat-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.2;
    }

    .gmenu .cat-icon {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--surface-accent);
        color: var(--accent);
    }

    .gmenu .cat-icon svg { width: 18px; height: 18px; }

    .gmenu .cat-arrow { display: none; }

    .gmenu .section-title { display: none; }

    .gmenu .card { padding: 0; border: 0; background: none; box-shadow: none; }

    .gmenu .category-item {
        text-align: left;
    }
}

@media (max-width: 850px) {

    .mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        gap: 2px;
        padding: 6px 4px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));

        z-index: 999;

        background: var(--surface);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .mobile-nav-item {

        min-width: 0;
        gap: 4px;
        padding: 6px 2px;
        font-size: 10px;
        line-height: 1.2;
    }

    .mobile-nav-item span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-item img,
    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        flex: none;
    }
}

@media (max-width: 850px) {

    .promo-banners {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .promo-banner {
        min-height: 0;
        padding: 13px 14px;
        border-radius: 16px;
        gap: 10px;
        align-items: center;
    }

    .promo-banner__title {
        font-size: 15.5px;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .promo-banner__desc {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 0;
        max-width: none;

        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .promo-banner--ref .promo-banner__desc {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .promo-banner__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;

        grid-template-areas:
            'title  btn'
            'desc   btn'
            'stat   btn';
        align-items: center;
        column-gap: 12px;
        width: 100%;
    }

    .promo-banner__title { grid-area: title; align-self: end; }
    .promo-banner__desc  { grid-area: desc; }

    .promo-banner__btn {
        grid-area: btn;
        min-height: 34px;
        padding: 8px 14px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    .promo-banner__stat {
        grid-area: stat;
        align-self: start;
        margin-bottom: 0;
        font-size: 11.5px;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .promo-banner:hover {
        transform: none;
    }

    .promo-banner:active {
        transform: scale(0.99);
    }

    .promo-banner__art {
        display: none;
    }

    .promo-banner--ref {
        flex-direction: row;
        align-items: center;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 18px;
        padding: 26px 22px;
        border-radius: 22px;
        margin-bottom: 24px;
    }

    .banner-content {
        margin-bottom: 0;
        max-width: 100%;
    }

    .banner-image {
        align-self: center;
    }

    .banner-image img {
        width: 132px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        align-items: baseline;
        margin-bottom: 18px;
    }

    .section-header-left h2 {
        font-size: 19px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    }

    .quick-start-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card {
        padding: 18px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {

    .history-table td {
        padding: 10px 0;
        font-size: 12px;
    }

    .sidebar-right .history-table td:nth-child(3) {
        display: none;
    }

}

@media (max-width: 850px) {

    .pf-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .pf-hero__wallet {
        text-align: left;
    }

    .pf-hero__balance {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .pf-hero__actions {
        justify-content: stretch;
    }

    .pf-hero__actions .pf-btn {
        flex: 1;
    }

    .pf-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pf-tile {
        padding: 13px 14px;
        border-radius: 16px;
    }

    .pf-tile__value {
        font-size: 17px;
    }

    .pf-card {
        padding: 18px;
        border-radius: 18px;
    }

    .promo-form {
        flex-direction: column;
    }

    .promo-input {
        flex: 0 0 auto;
        width: 100%;
    }

    .promo-form .pf-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .pf-hero__avatar {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .pf-hero__name {
        font-size: 19px;
    }

    .pf-hero__meta {
        font-size: 12px;
    }

    .pf-tx__meta {
        font-size: 11px;
    }

    .pf-tx__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
}

@media (max-width: 850px) {

    body.modal-open {
        overflow: hidden;
    }

    .auth-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .auth-modal {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 24px 24px 0 0;
        transform: translateY(24px);
    }

    .auth-modal-overlay.open .auth-modal {
        transform: translateY(0);
    }

    .auth-container {
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        gap: 16px;
    }

    .auth-input,
    .promo-input,
    .input-group input,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px;
    }

    .auth-submit {
        min-height: 50px;
    }

    .cashier {
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .cashier__head {
        margin-bottom: 18px;
    }

    .cashier__title {
        font-size: 19px;
    }

    .cashier__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .cashier-methods {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }

    .cashier-method {
        padding: 10px 12px;
        gap: 10px;
    }

    .cashier-method__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .cashier-total__value {
        font-size: 26px;
    }

    .cashier-facts b {
        font-size: 12.5px;
    }

    .cashier-submit {
        min-height: 52px;
    }

    .cashier-tabs {
        margin-bottom: 16px;
    }

    .cashier-tab {
        padding: 10px 4px;
        font-size: 12px;
    }

    .cashier-history__list {
        max-height: none;
    }

    .cashier-history__foot {
        text-align: center;
    }

    .cashier-history__all {
        width: 100%;
        min-height: 44px;
    }

    .bonus-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .bonus-modal.enhanced {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;

    }

    .bonus-modal.enhanced,
    .bonus-modal.enhanced .bonus-content,
    .bonus-modal.enhanced .bonus-wheel-side,
    .bonus-modal.enhanced .bonus-info-side,
    .bonus-modal.enhanced .bonus-info-side > * {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bonus-modal.enhanced .bonus-content {
        overflow-x: hidden;
    }

    .bonus-overlay,
    .bonus-overlay.enhanced {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 23, 42, 0.72);
    }
}

@media (max-width: 480px) {

    .deposit-preview-amount,
    .withdraw-preview-amount {
        font-size: 32px;
    }
}

@media (max-width: 850px) {

    .game-wrapper {
        padding: 0;
    }

    .bubbles.game-field {
        height: auto;
        min-height: 0;
        padding-bottom: 0;
    }

    .gx-head__side {
        width: 100%;
        justify-content: space-between;
    }

    .gx-layout > .gx-stage { order: -1; }

    .gx-panel > .gx-action { order: -1; }

    .gx-layout { gap: 12px; }

    .gx-panel { gap: 14px; }

    .gx-block__head { margin-bottom: 8px; }

    .gx-tiles { gap: 8px; }

    .gx-tile {
        padding: 9px 8px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .gx-tile__label { font-size: 10px; }

    .gx-coeffs { margin-top: 2px; }
}

@media (max-width: 480px) {

    .gx-stage { padding: 12px 10px; }

    .gx .game-board {
        padding: 8px;
        border-radius: 18px;
        gap: 6px;
    }

    .gx .cell { border-radius: 12px; }

    .gx-action { min-height: 46px; }

    .gx-action__sub { font-size: 11px; }
}

@media (max-width: 850px) {

    .btn-primary,
    .btn-ghost,
    .btn-show-all,
    .btn-details,
    .mini-btn,
    .category-item,
    .quick-item {
        min-height: 44px;
    }

    .btn-primary {
        padding: 13px 22px;
    }

    .card:hover,
    .card-interactive:hover,
    .game-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    .game-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {

    :root {
        --m-gutter: 12px;
    }

    .promo-banner {
        padding: 20px 18px;
    }

    .promo-banner--ref .promo-banner__art {
        display: none;
    }

    .promo-banner__plane {
        width: 72px;
        height: 72px;
        padding: 15px;
    }

    .banner {
        padding: 22px 18px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-image img {
        width: 108px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card {
        aspect-ratio: 3 / 4;
        border-radius: 16px;
    }

    .game-card h4 {
        font-size: 14px;
    }

    .game-card .game-desc {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .game-card .game-stat {
        font-size: 10.5px;
    }

    .game-card .play-hint {
        display: none;
    }

    .game-card-content {
        padding: 12px;
    }

    .card {
        padding: 16px;
        border-radius: 18px;
    }

    .quick-start-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 360px) {

    .logo {
        font-size: 15px;
    }

    .balance-pill {
        padding: 2px 3px;
        gap: 1px;
    }

    .balance-pill__btn {
        width: 25px;
        height: 25px;
    }

    .balance-pill__btn svg {
        width: 12px;
        height: 12px;
    }

    .balance-pill__sum {
        font-size: 12px;
        padding: 0 2px;
    }

    .avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .mobile-nav-item {
        font-size: 9px;
    }

    .mobile-nav-item img,
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .games-grid {
        gap: 8px;
    }
}

@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {

    .auth-modal,
    .bonus-modal.enhanced {
        max-height: 96vh;
        max-height: 96dvh;
    }

    :root {
        --m-bottom-nav: 36px;
    }

    .mobile-bottom-nav {
        padding: 3px 4px;
        padding-bottom: calc(3px + env(safe-area-inset-bottom));
    }

    .mobile-nav-item {
        flex-direction: row;
        gap: 6px;
        font-size: 11px;
    }

    .mobile-nav-item img,
    .mobile-nav-item svg {
        width: 18px;
        height: 18px;
    }

    .mobile-nav-item.active::before {
        display: none;
    }
}

@media (max-width: 720px) {

    .ice .gx-stage {
        overflow: visible;
        justify-content: flex-start;

        --ice-pad: 14px;
        padding: var(--ice-pad);
        padding-bottom: 10px;
    }

    .ice { --ice-bar-h: 131px; }

    .ice .gx-layout {
        padding-bottom: calc(var(--ice-bar-h) + 10px);
    }

    .ice-live {
        position: sticky;

        top: calc(var(--m-header) + env(safe-area-inset-top));
        z-index: 20;

        margin: calc(var(--ice-pad) * -1) calc(var(--ice-pad) * -1) 12px;
        padding: 10px var(--ice-pad) 12px;
        background: var(--gx-card, var(--surface));
        border-bottom: 1px solid var(--gx-line, var(--border));
    }

    .ice-live .ice-wheel {
        height: clamp(120px, 41.6cqw, 175px);
    }

    .ice-live .ice-wheel__disc { width: 160%; }

    .ice-live .ice-wheel__pointer { width: clamp(22px, 7.8cqw, 44px); }

    .ice-live .ice-phase { margin-bottom: 8px; }

    .ice-live    { order: 1; }
    .ice-board   { order: 2; }
    .ice-allbet  { order: 3; }
    .ice-mults   { order: 4; }
    .ice-history { order: 5; }
    .ice-demo    { order: 6; }

    .ice-board { gap: 8px; margin-top: 0; }

    .ice-spot { padding: 8px 10px; gap: 4px; border-radius: 12px; }

    .ice-spot__head {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
    }

    .ice-spot__name {
        min-width: 0;
        font-size: 11.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ice-spot__mult {
        flex: none;
        font-size: 16px;
    }

    .ice-spot__live { font-size: 10.5px; }

    .ice-spot:hover { transform: none; box-shadow: 0 1px 0 rgba(9, 24, 44, .06); }

    .ice-spot__mine {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 6px;
        row-gap: 0;
        padding: 4px 9px 4px 4px;
        border-radius: 10px;
        font-size: 11.5px;
        line-height: 1.15;
    }

    .ice-spot__mine::before {
        grid-row: 1 / -1;
        width: 17px;
        height: 17px;
    }

    .ice-spot__mine b {
        grid-column: 2;
        white-space: nowrap;
    }

    .ice-spot__mine span {
        grid-column: 2;
        white-space: nowrap;
        font-size: 10.5px;
        font-weight: 700;
        opacity: .6;
    }

    .ice-spot__mine i { display: none; }

    .ice-allbet { margin-top: 8px; }

    .ice-mults, .ice-history { margin-top: 8px; }

    .ice-bar {

        min-height: var(--ice-bar-h);
        box-sizing: border-box;

        position: fixed;
        left: 0;
        right: 0;

        bottom: calc(var(--m-bottom-nav) + env(safe-area-inset-bottom));

        z-index: 940;

        margin: 0;
        gap: 8px;
        padding: 8px var(--m-gutter) 8px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;

        background: var(--surface);

        border-top: 1px solid var(--gx-line, var(--border));
        box-shadow:
            inset 0 1px 0 var(--gx-gloss, rgba(255, 255, 255, .9)),
            0 -8px 22px rgba(9, 24, 44, .18);
    }

    .ice-bar .ice-rack__head { display: none; }

    .ice-rack {
        gap: 8px;
        padding: 12px 10px 8px;
    }

    .ice-chip { width: 46px; height: 46px; }

    .ice-acts {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 6px;
        border-top: 1px solid var(--gx-line-2, var(--border-soft, var(--border)));
    }

    .ice-acts .gx-chips {
        flex: 1;
        gap: 7px;
    }

    .ice-acts .gx-chip {
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .ice-total {
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-right: 0;
        line-height: 1.15;
    }

    .ice-total__label { font-size: 9.5px; letter-spacing: .5px; }
    .ice-total__sum { font-size: 16px; }
}

@media (max-width: 720px) and (max-height: 480px) {
    .ice-live { position: static; margin: 0 0 12px; padding: 0; border-bottom: 0; }
    .ice-bar { position: static; }
    .ice .gx-layout { padding-bottom: 0; }
    .ice .gx-stage { overflow: hidden; }
}

@media (max-width: 850px) {

    .gx[data-game="dice"] .gx-panel,
    .gx[data-game="bubbles"] .gx-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: start;
    }

    .gx[data-game="bubbles"] .gx-panel > .gx-payout,
    .gx[data-game="bubbles"] .gx-panel > .gx-action,
    .gx[data-game="bubbles"] .gx-panel > .gx-switch,
    .gx[data-game="bubbles"] .gx-panel > .gx-tiles,
    .gx[data-game="bubbles"] .gx-panel > .gx-hint {
        grid-column: 1 / -1;
    }

    .gx[data-game="keno"] .gx-panel {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gx[data-game="keno"] .gx-panel > .gx-block[data-block="picks"]  { order: 1; }
    .gx[data-game="keno"] .gx-panel > .gx-payout                     { order: 2; }
    .gx[data-game="keno"] .gx-panel > .gx-block[data-block="bet"]    { order: 3; }
    .gx[data-game="keno"] .gx-panel > .gx-block[data-block="risk"]   { order: 4; }
    .gx[data-game="keno"] .gx-panel > .gx-block[data-block="format"] { order: 5; }
    .gx[data-game="keno"] .gx-panel > .gx-hint                       { order: 6; }

    .gx[data-game="keno"] .gx-stage {

        justify-content: flex-start;
        gap: 12px;
    }

    .gx[data-game="keno"] .gx-chips[data-chips="picks"] .gx-chip {
        min-height: 40px;
        font-size: 13px;
        font-weight: 700;
    }

    .gx[data-game="dice"] .gx-panel > .gx-action,
    .gx[data-game="dice"] .gx-panel > .gx-payout,
    .gx[data-game="dice"] .gx-panel > .gx-hint {
        grid-column: 1 / -1;
    }

    .gx-ctl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
        align-items: start;
    }

    .gx-ctl > .gx-payout,
    .gx-ctl > .gx-action,
    .gx-ctl > .gx-switch,
    .gx-ctl > .gx-hint {
        grid-column: 1 / -1;
    }

    .gx-ctl > .gx-action,
    .gx-ctl > .upg-go {
        grid-column: 1 / -1;
        order: -1;
        margin: 0 0 2px;
    }

    .gx[data-game="upgrader"] .gx-ctl { max-width: none; }

    .gx[data-game="keno"] .gx-ctl {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .gx[data-game="keno"] .gx-ctl > .gx-block[data-block="picks"] {
        order: -2;
    }

    .gx[data-game="keno"] .gx-ctl .gx-payout__label {
        font-size: 9.5px;
    }

    .gx[data-game="keno"] .gx-ctl .gx-action {
        min-height: 46px;
        padding-block: 8px;
    }

    .gx[data-game="keno"] .gx-chips[data-chips="bet"],
    .gx[data-game="upgrader"] .gx-chips[data-chips="bet"] {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .gx[data-game="upgrader"] .gx-chips[data-chips="mult"] {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .gx[data-game="upgrader"] .gx-chip {
        min-height: 36px;
        height: auto;
        padding: 6px 4px;
        font-size: 12px;
    }

    .gx[data-game="upgrader"] .gx-stepper__btn {
        width: 34px;
        height: 34px;
    }

    .gx[data-game="upgrader"] .gx-stepper__val { font-size: 17px; }

    .gx[data-game="upgrader"] .upg-stage { gap: 12px; }

    .gx[data-game="upgrader"] .upg-go {
        padding: 13px 20px;
        font-size: 16px;
    }

    .gx[data-game="bubbles"] .bx__head { margin-bottom: 14px; }

    .gx[data-game="bubbles"] .bx__live {
        margin-top: 2px;
        font-size: clamp(30px, 9cqw, 44px);
        letter-spacing: -1.5px;
    }

    .gx[data-game="bubbles"] .bx__ticks { margin-top: 28px; }

    .gx[data-game="bubbles"] .bx__status {
        margin-top: 8px;
        font-size: 11.5px;
    }

    .gx[data-game="bubbles"] .gx-ctl .gx-action__sub { display: none; }

    .gx[data-game="bubbles"] .gx-ctl .gx-action {
        min-height: 46px;
        padding-block: 8px;
    }

    .gx[data-game="bubbles"] .gx-stage,
    .gx[data-game="keno"] .gx-stage,
    .gx[data-game="upgrader"] .gx-stage {
        padding: 12px;
    }

    .gx[data-game="bubbles"] .gx-panel,
    .gx[data-game="keno"] .gx-panel,
    .gx[data-game="upgrader"] .gx-panel {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .gx[data-game="dice"] .dice-ctl {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: 520px;
        align-items: start;
    }

    .gx[data-game="dice"] .gx-panel {
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .gx[data-game="dice"] .gx-panel > .gx-hint {
        margin: 0;
        font-size: 11px;
        text-align: center;
    }

    .gx[data-game="dice"] .gx-dice-stage { gap: 10px; }

    .gx[data-game="dice"] .gx-roll { padding: 12px 14px 14px; }

    .gx[data-game="dice"] .dice-number-value {
        margin-top: 2px;
        font-size: clamp(32px, 11cqw, 48px);
        letter-spacing: -2px;
    }

    .gx[data-game="dice"] .dice-choices { gap: 10px; }

    .gx[data-game="dice"] .dice-choice-btn { padding: 11px 10px; }

    .gx[data-game="dice"] .gx-stage { padding: 12px; }

    .gx[data-game="dice"] .gx-dice-stage > .gx-payout {
        width: 100%;
        margin: 0;
    }

    .gx[data-game="dice"] .gx-block,
    .gx[data-game="bubbles"] .gx-block,
    .gx[data-game="keno"] .gx-block {
        min-width: 0;
    }

    .gx[data-game="dice"] .gx-block__head,
    .gx[data-game="bubbles"] .gx-block__head,
    .gx[data-game="keno"] .gx-block__head {
        margin-bottom: 6px;
        gap: 6px;
    }

    .gx[data-game="dice"] .gx-block__head,
    .gx[data-game="bubbles"] .gx-block__head {
        flex-wrap: wrap;

        align-items: baseline;
        align-content: flex-start;
        row-gap: 2px;
        line-height: 1.25;
        min-height: 31px;
    }

    .gx[data-game="dice"] .gx-label__val {
        white-space: nowrap;
    }

    .gx[data-game="dice"] .gx-chips,
    .gx[data-game="bubbles"] .gx-chips {
        grid-auto-rows: 1fr;
        align-content: start;
    }

    .gx[data-game="bubbles"] .gx-chips[data-target-chips] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gx[data-game="bubbles"] .gx-chips[data-target-chips] .gx-chip:last-child {
        grid-column: span 2;
    }

    .gx[data-game="dice"] .gx-label,
    .gx[data-game="bubbles"] .gx-label,
    .gx[data-game="keno"] .gx-label {
        font-size: 10px;
    }

    .gx[data-game="dice"] .gx-stepper,
    .gx[data-game="bubbles"] .gx-stepper,
    .gx[data-game="keno"] .gx-stepper {
        padding: 2px;
    }

    .gx[data-game="dice"] .gx-stepper__val,
    .gx[data-game="bubbles"] .gx-stepper__val,
    .gx[data-game="keno"] .gx-stepper__val {
        font-size: 17px;
        padding: 6px 2px;
    }

    .gx[data-game="bubbles"] .gx-stepper__field .gx-stepper__val--input {
        width: 4ch;
    }

    .gx[data-game="bubbles"] .gx-stepper__suffix {
        font-size: 13px;
    }

    .gx[data-game="dice"] .gx-stepper__btn,
    .gx[data-game="bubbles"] .gx-stepper__btn,
    .gx[data-game="keno"] .gx-stepper__btn {
        width: 34px;
        height: 34px;
    }

    .gx[data-game="dice"] .gx-chips,
    .gx[data-game="bubbles"] .gx-chips,
    .gx[data-game="keno"] .gx-chips {
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 6px;
    }

    .gx[data-game="dice"] .gx-chip,
    .gx[data-game="bubbles"] .gx-chip,
    .gx[data-game="keno"] .gx-chip {
        min-height: 36px;
        height: auto;
        padding: 6px 4px;
        font-size: 12px;
    }

    .gx[data-game="keno"] .gx-chips[data-chips="picks"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gx[data-game="dice"] .gx-payout,
    .gx[data-game="bubbles"] .gx-payout,
    .gx[data-game="keno"] .gx-payout {
        padding: 10px 12px;
    }

    .gx[data-game="dice"] .gx-payout__val,
    .gx[data-game="bubbles"] .gx-payout__val,
    .gx[data-game="keno"] .gx-payout__val {
        font-size: 20px;
    }

    .gx[data-game="keno"] .keno-risks {
        gap: 6px;
    }

    .gx[data-game="keno"] .keno-risks .keno-fmt {
        padding: 8px 4px;
    }

    .gx[data-game="keno"] .keno-risks .keno-fmt b { font-size: 12px; }

    .gx[data-game="keno"] .keno-formats .keno-fmt {
        padding: 8px 6px;
    }

    .gx[data-game="keno"] .keno-board {
        gap: 4px;
    }

    .gx[data-game="keno"] .keno-pay {
        padding: 9px 10px;
    }
}

@media (max-width: 850px) {

    .gx[data-game="dice"] .gx-block__head,
    .gx[data-game="keno"] .gx-block__head {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .gx[data-game="dice"] .gx-label__val,
    .gx[data-game="keno"] .gx-label__val {
        font-size: 12px;
    }

    .gx[data-game="dice"] .gx-panel > .gx-result-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 850px) {

    .auth-perks {
        gap: 10px;
        margin-top: 18px;
        padding: 16px 14px;
    }

    .auth-perks__list li {
        gap: 10px;
        padding: 10px 11px;
        border-radius: 12px;
    }

    .auth-perks__icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .auth-perks__icon svg {
        width: 16px;
        height: 16px;

        stroke-width: 1.9;
    }

    .auth-perks__list b { font-size: 13px; }

    .auth-perks__list span {
        font-size: 11.5px;
        line-height: 1.35;
    }
}
