/* Base Styles */
body #app {
    overflow: auto;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

body {
    background-color: #000;
    background-image: linear-gradient(315deg, #16191d 0%, #252a2e 100%);
    font-display: block;
    font-variant-numeric: tabular-nums;
    touch-action: manipulation;
    height: 100vh;
    font-family: Gilroy, sans-serif;
    line-height: 1;
    position: relative;
}

html {
    cursor: default;
    -webkit-text-size-adjust: 100%;
    font-variant-ligatures: none;
    -webkit-font-variant-ligatures: none;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 0 1px rgba(0, 0, 0, .01);
    font-size: 100%;
}

 Global Reset 
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    font-weight: inherit;
    font-style: inherit;
    vertical-align: baseline;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-display: block;
    border: 0;
    outline: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 100%;
}

* {
    zoom: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE и Edge */
  }

  html, body, * {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE и Edge */
  }
  
  ::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
  }

@keyframes pulseAmount {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  
  .payout-update {
    animation: pulseAmount 0.5s ease;
  }

@media (max-width: 600px) {
    .game-header__balance-title {
        display: none;
    }
}

.game-header__logo {
    background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    margin-top: 5px;
    height: auto;
    margin-right: auto;
    position: relative;
}

.game-header__balance-title {
    color: rgba(255, 255, 255, .6);
    margin-left: auto;
    margin-right: .375rem;
    font-weight: 600;
}

.game-header__balance {
    background-image: linear-gradient(315deg, #24282c 0%, #141619 100%);
    border-radius: .375rem;
    box-shadow: inset -.125rem -.125rem .75rem rgba(255, 255, 255, .06), inset .125rem .1875rem .5rem rgba(7, 7, 9, .8);
    color: #d6e1ef;
    align-items: center;
    min-width: 6.25rem;
    height: 1.5rem;
    padding: 0 .7rem;
    font-weight: 600;
    display: flex;
    position: relative;
    justify-content: center;
    margin-right: 55px;
}

.game-header__balance-text {
    white-space: nowrap;
}

.game-header__button {
    border: .0625rem solid transparent;
    border-radius: 50%;
    box-shadow: .1875rem .1875rem .25rem rgba(10, 9, 9, .4);
    cursor: pointer;
    box-sizing: border-box;
    width: 1.875rem;
    height: 1.875rem;
    position: relative;
}

.game-header__button--inner {
    background: linear-gradient(320.64deg, #17191c -42.09%, #32383e 167.71%);
    border-radius: 50%;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.game-header__button--inner>.iconFont {
    position: relative;
}

.iconFont {
    display: flex;
    font-size: 14px; /* Базовый размер для em */
}

i[class^=iconFont-]:before, 
i[class*=" iconFont-"]:before {
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    line-height: 1;
    font-family: iconFont !important;
    font-weight: 400 !important;
}

.iconFont-sound {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.iconFont-sound:before {
    content: "";
    -webkit-mask: url(/static/media/sound.svg) no-repeat center;
    mask: url(/static/media/sound.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
    display: block;
    width: 14px;
    height: 14px;
}

.iconFont-close-line {
    width: 70%;
    height: 1px;
    background-color: #ff0000;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none; /* Чтобы не перехватывала клики */
}

.game-header__button--inner>.iconFont:nth-child(2) {
    font-size: 1.3em;
    position: absolute;
    top: 50%;
    left: 50%;
}

.iconFont-sound.sound-off::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background-color: #ff0000;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
}

.sound-off .iconFont-sound:before {
    opacity: 0.5;
}

.sound-off .iconFont-close-line {
    opacity: 1;
}

.iconFont-settings:before {
    content: "";
    -webkit-mask: url(/static/media/settings.svg) no-repeat center;
    mask: url(/static/media/settings.svg) no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: currentColor;
    display: block;
    width: 1em;
    height: 1em;
    margin: auto; /* Дополнительное центрирование */
}

/* Game Container */
.game-container {
    padding: 0 10px 10px;
    padding-bottom: calc(20px + var(--safe-area-inset-bottom));
    position: relative;
}

/* Game History */
.game-history {
    background-image: linear-gradient(360deg, rgba(194, 108, 66, .79) 0%, rgba(35, 38, 43, 0) 100%), linear-gradient(90.51deg, #5d666f 9.05%, rgba(18, 20, 21, .33) 105.67%);
    border-radius: 5px;
    height: 41px;
    padding: 1px;
    display: flex;
    position: relative;
    overflow: hidden;
    box-shadow: inset 2px 1px 9px #070709;
}

@media (max-width: 819px) {
    .game-history {
        border-radius: 0;
        height: 35px;
        margin: 0 -10px;
        padding-left: 0;
        padding-right: 0;
    }
    .game-history__inner {
        border-radius: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .game-history__inner-container {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    .game-history__item {
        min-width: 19%;
    }
    .game-history__item-text {
        margin: 0 !important;
    }
}

.game-history__inner {
    background: linear-gradient(324.43deg, #17191c -52.28%, #1c1e22 69.89%);
    border-radius: 5px;
    flex: 1;
    max-width: 100%;
    height: 100%;
    padding: 2px;
    display: flex;
    box-shadow: inset 2px 1px 9px #070709;
}

.game-history__inner-container {
    scroll-behavior: smooth;
    background: #0c0c0e;
    border: 1px solid #1e2122;
    border-radius: 5px;
    flex: 1;
    max-width: 100%;
    height: 100%;
    padding: 2px 0;
    display: flex;
    position: relative;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.game-history__inner-container::-webkit-scrollbar {
    display: none;
}

.game-history__item {
    box-sizing: border-box;
    color: #d26d3d;
    justify-content: center;
    align-items: center;
    min-width: 16%;
    padding: 0 2px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
}

.game-history__item-text {
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #a35231;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    box-shadow: -1px -1px 10px rgba(141, 68, 37, .2);
}

.game-history__item._active .game-history__item-text {
    color: #020202;
    background: #d26d3d;
    border-color: #d26d3d;
    box-shadow: -1px -1px 10px rgba(248, 112, 106, .15);
}

/* Game Mode Tabs */
.game-mode-tabs {
    margin: 5px 0 10px;
    display: flex;
}

@media (max-width: 819px) {
    .game-mode-tabs {
        margin-bottom: 10px;
    }
}

.mode-btn {
    cursor: pointer;
    flex: 1;
    height: 39px;
    padding: 1px;
    font-size: 13px;
    line-height: .85;
}

.mode-btn:first-child {
    margin-right: 5px;
}

.mode-btn:last-child {
    margin-left: 5px;
}

.mode-btn.disabled {
    opacity: .4;
}

.mode-btn.active {
    background-image: linear-gradient(273deg, rgba(141, 142, 143, .1) 0%, rgba(163, 165, 168, .4) 100%), radial-gradient(circle at 100% 90%, rgba(0, 0, 0, .3), rgba(11, 32, 51, 0) 70%);
    border-radius: 11px;
    box-shadow: inset 2px 2px 2px rgba(26, 32, 38, .4);
}

.mode-btn__inner {
    background-image: linear-gradient(273deg, #1d2023 0%, #2a2f34 100%);
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex;
    box-shadow: 4px 4px 18px rgba(0, 0, 0, .48);
}

.mode-btn.active .mode-btn__inner {
    border: 1px solid #181b23;
}

.mode-btn__text {
    color: rgba(255, 255, 255, .5);
    margin-right: 5px;
    line-height: .85;
}

.mode-btn.active .mode-btn__text {
    color: #d6e1ef;
    font-weight: 800;
}

.mode-btn__indicator {
    background-image: linear-gradient(311deg, #5b666f 0%, #0b0f15 100%);
    border-radius: 4px;
    width: 8px;
    height: 8px;
    padding: 2px;
    position: relative;
}

.mode-btn__indicator:after {
    content: "";
    background-color: #292c2f;
    border-radius: 3px;
    width: 6px;
    height: 6px;
    position: absolute;
    top: 1px;
    left: 1px;
}

.mode-btn.active .mode-btn__indicator:after {
    background-image: radial-gradient(circle at 88% 115%, #81df49, #8de15e 70%);
}

/* Game Tiles */
.table-holder {
    position: relative;
}

.game-tiles {
    grid-gap: 10px;
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 30px;
    display: grid;
}

.game-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1;
    background-image: linear-gradient(320.64deg, #17191c -42.09%, #32383e 167.71%);
    border-radius: 13px;
    font-size: 50px;
    line-height: 100px;
    box-shadow: 3px 3px 4px rgba(10, 9, 9, 0.4);
}

.game-tile__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.game-tile__inner-possible-win {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.1s ease-in;
}

.game-tile._win .game-tile__inner-possible-win,
.game-tile._lose .game-tile__inner-possible-win {
    display: none;
}

.game-tile._win::after,
.game-tile._lose::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px;
    background-repeat: no-repeat;
    background-position: 0 center;
}

.game-tile._win::after {
    -webkit-animation: scale 0.3s ease-out forwards, glitter 1s 0.3s infinite;
    animation: scale 0.3s ease-out forwards, glitter 1s 0.3s infinite;
}

.game-tile._lose::after {
    background-image: url(/static/media/bomb-sprite.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
    animation: .5s steps(9,end) forwards play-bomb
}

.game-tile .diamond,
.game-tile .bomb {
    position: relative;
    z-index: 2;
    height: 80%;
    width: 80%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
}

.game-tile__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачный белый */
    backdrop-filter: blur(2px); /* Легкое размытие */
    z-index: 1000;
    border-radius: inherit;
}

.game-tile .diamond {
    background-image: url(/static/media/diamond_shadow.svg);
}

.game-tile .bomb {
    background-image: url(/static/media/bomb_shadow.svg);
}

.game-tile._win {
    background-image: radial-gradient(33.95% 33.95% at -8.16% 104.08%, rgba(148, 226, 251, 0.37) 5.7%, rgba(33, 38, 42, 0) 100%),
                    radial-gradient(33.68% 33.68% at 113.68% 107.89%, rgba(148, 226, 251, 0.37) 0%, rgba(33, 38, 42, 0) 100%),
                    radial-gradient(62.12% 48.25% at 49.48% -8.25%, #5cd9f5 0%, rgba(38, 42, 46, 0) 100%),
                    linear-gradient(129.86deg, #242526 -1.52%, rgba(29, 33, 36, 0.21) 107.51%);
}

.game-tile._lose {
    background-image: radial-gradient(54.74% 54.74% at 116.84% 108.42%, rgba(221, 28, 28, 0.79) 0%, rgba(30, 33, 37, 0) 100%),
                     radial-gradient(47.37% 40% at 9.47% -4.74%, rgba(242, 137, 41, 0.63) 0%, rgba(24, 26, 29, 0) 100%),
                     linear-gradient(119.79deg, #3a3e41 -9.65%, rgba(15, 16, 18, 0.58) 113%);
}

@media (max-width: 768px) {
    .game-tile._lose._opened::after {
        width: 62px;
        height: 62px;
        top: 50%;
        left: 50%;
        margin-left: 0;
        transform: translate(-50%, -50%);
    }
}

.game-tile._lose .game-tile__inner {
    transition-delay: 0.3s;
}

.game-tile._active {
    box-shadow: none;
}

.win-screen__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* затемнение */
    backdrop-filter: blur(8px); /* Размытие */
    -webkit-backdrop-filter: blur(8px);
    z-index: 100; /* Чтобы было выше контента, но ниже .win-screen */
    transition: all 0.5s ease;
}

.win-screen {
    z-index: 101;
    border-radius: 17px;
    width: 219px;
    height: 174px;
    margin-top: -15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 8px 12px 11px rgba(20,25,29,.35);
    transition: all 0.5s ease;
}

.win-screen:before {
    content: "";
    z-index: -1;
    opacity: .9;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 17px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}

.win-screen:after {
    content: "";
    background-image: url(/static/media/win-screen-bg.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}

.win-screen__head {
    z-index: 2;
    color: #fff;
    border-radius: 16px 16px 0 0;
    justify-content: center;
    align-items: center;
    height: 56px;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    position: relative
}

.win-screen__content {
    border-radius: 0 0 16px 16px;
    padding: 0 22px;
    position: relative
}

.win-screen__content-payout {
    text-align: center;
    color: #b3f0ff;
    padding: 20px 0;
    font-size: 25px;
    font-weight: 700
}

.win-screen__content-footer {
    color: #fff;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    display: flex;
    position: relative
}

.win-screen__content-footer:before {
    content: "";
    opacity: .8;
    background-image: linear-gradient(135deg,#63e6fc 0%,#45d7f7 100%);
    width: 100%;
    height: 1px;
    position: absolute;
    top: 0;
    box-shadow: 0 1px 3px rgba(175,236,246,.4)
}

.win-screen__content-text {
    text-transform: capitalize;
    font-size: 10px
}

.win-screen__content-odd {
    font-size: 13px;
    font-weight: 700
}

.game-tile._active .game-tile__inner {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background-image: linear-gradient(317.11deg, #0a0b0d -17.46%, #32383e 197.04%);
    box-shadow: inset -2px -2px 6px rgba(76, 79, 81, 0.26),
                inset 4px 4px 3px rgba(10, 9, 9, 0.49);
    border-radius: 12px;
    opacity: 1;
}

.game-tile._loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-image: url(./images/puff.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (max-width: 768px) {
    .game-tile._loading::after {
        width: 30px;
        height: 30px;
    }
}

/* Bet Slip */
.game-betslip {
    flex-direction: column;
    display: flex;
}

.game-betslip__buttons {
    margin-bottom: 20px;
    display: flex;
}

/* Buttons */
.btn-new {
    text-align: center;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    border-radius: 10px;
    flex: 1;
    height: 64px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    box-shadow: -4px -2px 16px rgba(195, 200, 205, .09), 4px 4px 18px rgba(0, 0, 0, .5);
}

.btn-bg {
    transition: opacity .5s linear !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.btn-new__border {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    border-radius: 8px;
    height: 100%;
    padding: 1px;
    transition: opacity .5s linear;
    position: relative;
    overflow: hidden;
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
}

.btn-new__inner {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    background-image: linear-gradient(320.64deg, #17191c -42.09%, #32383e 167.71%);
    border-radius: 7px;
    height: 100%;
    position: relative;
    overflow: hidden;
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
}

.btn-new__text {
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 10px 0;
    display: flex;
    position: relative;
}

.btn-new .text-wrapper {
    flex-direction: column;
    justify-content: center;
    height: 28px;
    display: flex;
}

.btn-new .text {
    color: #d6e1ef;
    font-size: 16px;
    font-weight: 800;
}

.btn-new ._bg22 {
    opacity: 0;
    transform: rotate(180deg);
}

@media (max-width: 819px) {
    .btn-new .text {
        color: #fff;
    }
    .btn-new ._bg1,
    .btn-new ._bg2 {
        opacity: 0;
    }
    .btn-new ._bg11,
    .btn-new ._bg22 {
        opacity: 1;
    }
}

.btn-new._placebet ._bg1 {
    background-image: radial-gradient(48.81% 101.72% at 50% -10.34%, rgba(18, 194, 250, .9) 0%, rgba(82, 195, 243, .19) .01%, rgba(40, 45, 49, .11) 100%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new._placebet ._bg11 {
    background-image: radial-gradient(50% 91.38% at 50% 0, rgba(82, 195, 243, .19) .01%, rgba(18, 194, 250, .54) .02%, rgba(40, 45, 49, .18) 100%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new._placebet ._bg2, .btn-new._placebet ._bg22 {
    background-image: radial-gradient(148.08% 148.08% at 1.81% 132.69%, #66a1e5 0%, rgba(38, 74, 112, 0) 100%), linear-gradient(94.46deg, rgba(200, 213, 225, .21) 45.13%, transparent 123.58%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}


.btn-new._cancel ._bg1 {
    background: radial-gradient(58.03% 100% at 50% 0, rgba(255, 82, 92, .224) 0%, rgba(40, 45, 49, .11) 100%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}
.btn-new._cancel ._bg11 {
    background: radial-gradient(58.03% 100% at 50% 0, rgba(255, 82, 92, .404) 0%, rgba(40, 45, 49, .11) 100%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new._cancel ._bg2,
.btn-new._cancel ._bg22 {
    background: radial-gradient(86.54% 994.53% at 13.55% 115.38%, rgba(254, 65, 75, .6) 0%, rgba(204, 51, 79, 0) 100%), linear-gradient(276.15deg, rgba(255, 35, 48, .38) -24.51%, rgba(91, 35, 35, .2) 82.05%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new._cashout ._bg1, .btn-new._cashout ._bg11 {
    background-image: radial-gradient(48.81% 101.72% at 50% -10.34%, rgba(244, 157, 76, .243) 0%, rgba(255, 125, 5, .19) .01%, rgba(225, 155, 90, 0) 100%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new._cashout ._bg2, .btn-new._cashout ._bg22 {
    background-image: radial-gradient(155.77% 155.77% at 0 125%, #ff9838 0%, rgba(27, 21, 15, 0) 100%), linear-gradient(94.46deg, rgba(225, 215, 200, .21) 45.13%, transparent 123.58%), linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
}

.btn-new__inner .indicator {
    z-index: 2;
    width: 24px;
    height: 3px;
    margin: 5px auto 0;
    position: relative;
}

.btn-new__inner .indicator:before,
.btn-new__inner .indicator:after {
    content: "";
    background-image: linear-gradient(92deg, #777f85 0%, #363b3f 100%);
    position: absolute;
}

.btn-new__inner .indicator:before {
    z-index: 1;
    border-radius: 2.5px;
    top: -1px;
    bottom: -1px;
    left: -1px;
    right: -1px;
}

.btn-new__inner .indicator:after {
    z-index: 2;
    border-radius: 1.5px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.btn-new__inner .indicator._placebet:before {
    background-image: linear-gradient(132.19deg, #c8d5e1 -160.75%, transparent 169.75%);
    box-shadow: inset 2px 2px 2px rgba(26, 32, 38, .4);
}

.btn-new__inner .indicator._placebet:after {
    background-image: linear-gradient(136.14deg, #44c5ee -.24%, #63e6fc 91.03%);
    box-shadow: 4px 10px 32px rgba(63, 208, 164, .4), -6px -6px 16px rgba(0, 0, 0, .6);
}

.btn-new__inner .indicator._cancel:before {
    background-image: linear-gradient(90deg, rgba(179, 179, 179, .45) -90%, rgba(0, 0, 0, .85) 141%);
    box-shadow: -1px 0 6px rgba(248, 179, 134, .42);
}

.btn-new__inner .indicator._cancel:after {
    background-image: linear-gradient(262deg, #f9718e 100%, #f64444 0%), linear-gradient(90deg, rgba(179, 179, 179, .45) -90%, rgba(0, 0, 0, .85) 141%);
}

.btn-new__inner .indicator._cashout:before {
    background: linear-gradient(136.14deg, #ee9644 -.24%, #f9e1b2 91.03%);
    box-shadow: 4px 10px 32px rgba(63, 208, 164, .4), -6px -6px 16px rgba(0, 0, 0, .6);
}

.btn-new__inner .indicator._cashout:after {
    background-image: linear-gradient(132.19deg, #c8d5e1 -160.75%, transparent 169.75%);
}

._small {
    color: #d6e1ef;
    font-size: 10px;
    font-weight: 400;
}

.btn-new__text ._small {
    margin-top: 2px;
}

/* ИНПУТ ПОД КНОПКОЙ */
.input-text__wrapper {
    text-align: center;
    position: relative;
}

.input-text__wrapper .input-button:first-child, .input-text__wrapper .button-turbo:first-child {
    left: 4px;
}

.input-text__wrapper .input-button:nth-child(2), .input-text__wrapper .button-turbo:nth-child(2) {
    left: 52px;
}

.input-text__wrapper .input-button:nth-child(3), .input-text__wrapper .button-turbo:nth-child(3) {
    right: 52px;
}

.input-text__wrapper .input-button:nth-child(4), .input-text__wrapper .button-turbo:nth-child(4) {
    right: 4px;
}

.input-text__wrapper .input-button, .input-text__wrapper .button-turbo {
    z-index: 3;
    position: absolute;
    top: 4px;
}

.input-button._sm {
    width: 44px;
}

.input-button {
    cursor: pointer;
    background-image: linear-gradient(135deg, #282c31 0%, #1e2125 100%);
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    height: 44px;
    display: flex
;
    box-shadow: 3px 3px 4px rgba(10, 9, 9, .4);
}

.input-button__text {
    opacity: .6;
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.games-input__wrapper {
    background: linear-gradient(98deg, rgba(200, 213, 225, .25) 0%, transparent 100%);
    border-radius: 11px;
    height: 52px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 2px 2px 2px rgba(26, 32, 38, .4);
}

.games-input__wrapper {
    transition: opacity .5s cubic-bezier(.075,.82,.165,1);
}

.input-text__wrapper .games-input__wrapper label {
    left: 50%;
    transform: translate(-50%);
}

.games-input__wrapper label {
    z-index: 1;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    line-height: .91;
    position: absolute;
    top: 12px;
    left: 18px;
}

.games-input__wrapper label .tooltip-box {
    position: absolute;
    top: 0;
    right: -11px;
}

.tooltip-box {
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    width: 8px;
    height: 8px;
    font-size: 6px;
    font-weight: 700;
    display: flex;
    position: relative;
}

.tooltip-hint {
    z-index: 100; /* Измените на положительное значение */
    cursor: default;
    white-space: nowrap;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    background-color: #40444a;
    border-radius: 2px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 16px;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translate(-50%);
    transition: opacity 0.2s ease, visibility 0.2s ease; /* Добавьте плавность */
}

.tooltip-hint:after {
    content: "";
    border: 5px solid transparent;
    border-top-color: #40444a;
    border-bottom: none;
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translate(-50%);
}

/* Добавьте это правило для показа тултипа */
.tooltip-box:hover .tooltip-hint {
    visibility: visible;
    opacity: 1;
}

.input-text__wrapper .games-input__wrapper input, .input-text__wrapper .games-input__wrapper .games-input__number {
    text-align: center;
    padding-left: 95px;
    padding-right: 95px;
}

.games-input__wrapper label+.games-input__number {
    padding-top: 30px;
}

.games-input__number {
    color: #d6e1ef;
    background-color: transparent;
    background-image: linear-gradient(135deg, #222326 0%, #222326 25%, #283034 100%);
    border: 1px solid #202328;
    border-radius: 10px;
    outline: none;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.14;
    position: absolute;
    top: 1px;
    left: 1px;
    box-shadow: inset -2px -2px 10px rgba(255, 255, 255, .05), inset 2px 3px 10px #070709;
}

input, textarea, select, button {
    font-display: block;
    font-variant-numeric: tabular-nums;
    font-family: Gilroy, sans-serif;
}

/* SETTINGS INPUT */
.settings-input__wrapper._mines {
    background: linear-gradient(98deg, rgba(200, 213, 225, .25) 0%, transparent 100%);
    border-radius: 11px;
    padding: 1px;
    position: relative;
    box-shadow: inset 2px 2px 2px rgba(26, 32, 38, .4);
}

.settings-input__wrapper:nth-child(3) {
    margin-bottom: 15px;
}
.settings-input__wrapper {
    margin-bottom: 20px;
    display: flex
;
    position: relative;
}

.settings-input__wrapper-inner {
    background-image: linear-gradient(315deg, #16191d 0%, #252a2e 100%);
    border-radius: 10px;
    flex: 1px;
    padding: 1px;
    display: flex
;
}

.settings-input__wrapper._mines .button-turbo:first-child {
    left: 3px;
}

.settings-input__wrapper._mines .button-turbo:nth-child(2) {
    -webkit-filter: drop-shadow(3px 3px 4px rgba(10, 9, 9, .4));
    filter: drop-shadow(3px 3px 4px rgba(10, 9, 9, .4));
    background-image: linear-gradient(270deg, rgba(97, 50, 31, .37) 0%, rgba(39, 35, 34, 0) 100%);
    height: 45px;
    top: 3px;
    left: 47px;
}

.settings-input__wrapper._mines .button-turbo:nth-child(3) {
    -webkit-filter: drop-shadow(3px 3px 4px rgba(10, 9, 9, .4));
    filter: drop-shadow(3px 3px 4px rgba(10, 9, 9, .4));
    background-image: linear-gradient(270deg, rgba(39, 35, 34, 0) 0%, rgba(97, 50, 31, .37) 100%);
    height: 45px;
    top: 3px;
    right: 47px;
}

.settings-input__wrapper._mines .button-turbo:nth-child(4) {
    right: 3px;
}

.settings-input__wrapper._mines .button-turbo._golden {
    box-shadow: none;
    background-color: transparent;
    background-image: none;
}
.settings-input__wrapper._mines .button-turbo:nth-child(5) {
    left: 92px;
}

.settings-input__wrapper._mines .button-turbo:nth-child(6) {
    right: 92px;
}

.settings-input__wrapper._mines .button-turbo {
    z-index: 1;
    border-radius: 7px;
    height: 45px;
    position: absolute;
    top: 3px;
}

.button-turbo._sm {
    width: 44px;
}

.button-turbo._sm:active, .input-button._sm:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.button-turbo {
    cursor: pointer;
    border-radius: 6px;
    height: 46px;
    padding: 1px;
    transition: opacity .5s cubic-bezier(.075,.82,.165,1);
    display: flex
;
}

.settings-input__wrapper._mines .button__inner {
    border-radius: 7px;
}

.button__inner {
    background-image: linear-gradient(135deg, #292d32 0%, #1d2024 100%);
    border-radius: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex
;
    box-shadow: 3px 3px 4px rgba(10, 9, 9, .4);
}

.button__text {
    opacity: .6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.settings-input__wrapper._mines .button-turbo._golden .button__inner {
    background-color: rgba(209, 116, 72, .1);
    background-image: none;
    border: 1px solid #a35231;
    box-shadow: -1px -1px 10px rgba(141, 68, 37, .15);
}
.settings-input__wrapper._mines .button__inner {
    border-radius: 7px;
}

.settings-input__wrapper._mines .button-turbo._golden .button__text {
    color: #d26d3d;
}

.settings-input__wrapper._mines .games-input__wrapper {
    background: radial-gradient(39.88% 38.48% at 50% 109.2%, #ba6238 0%, rgba(12, 12, 14, 0) 100%), radial-gradient(39.64% 68.64% at 50% -18.72%, #ba6238 0%, rgba(12, 12, 14, 0) 100%), #0c0c0e;
    border-radius: 9px;
    height: 47px;
}

.settings-input__wrapper .games-input__wrapper {
    width: 100%;
    margin: 0 !important;
}

.settings-input__wrapper._mines .games-input__wrapper label {
    color: #d26d3d;
    justify-content: center;
    font-size: 10px;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
}

.settings-input__wrapper label {
    align-items: center;
    min-width: 87px;
    display: flex
;
}

.settings-input__wrapper._mines .games-input__wrapper input {
    text-align: center;
    color: #d26d3d;
    background-color: #0c0c0e;
    background-image: none;
    border: none;
    padding-top: 25px;
    font-size: 17px;
    font-weight: 700;
}

/* GAME DETAILS */

.game-details {
    color: #d17448;
    background-image: linear-gradient(360deg, rgba(194, 108, 66, .79) 0%, rgba(35, 38, 43, 0) 100%), linear-gradient(90.51deg, #5d666f 9.05%, rgba(18, 20, 21, .33) 105.67%);
    border-radius: 10px;
    padding: 1px;
    font-size: 11px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 2px 1px 9px #070709;
}

.game-details:before {
    content: "";
    background: rgba(196, 196, 196, .06);
    width: 300px;
    height: 300px;
    position: absolute;
    top: -148px;
    left: -182px;
    transform: rotate(40deg);
}

.game-details__inner {
    background: linear-gradient(324.43deg, #17191c -52.28%, #1c1e22 69.89%);
    border-radius: 10px;
    padding: 2px;
    box-shadow: inset 2px 1px 9px #070709;
}

.game-details__inner-container {
    background: #0c0c0e;
    border: 1px solid #1e2122;
    border-radius: 10px;
    height: 100%;
    padding-bottom: 5px;
}

.game-details__title {
    border-bottom: 1px solid #1d1b1b;
    align-items: center;
    height: 40px;
    margin-bottom: 14px;
    padding: 0 12px;
    font-weight: 700;
    display: flex
;
}

.game-details__row {
    align-items: center;
    margin-bottom: 16px;
    padding: 0 12px;
    display: flex
;
}

.game-details__row-icon {
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.game-details__row-value {
    margin-left: auto;
    font-weight: 700;
}

.game-details__row-icon._crystal {
    background-image: url(/static/media/icon-crystal.e81315df.svg);
}

.game-details__row-icon._mine {
    background-image: url(/static/media/icon-bomb.05e76cbf.svg);
}

.game-details__row-icon._tiles {
    background-image: url(/static/media/icon-tiles.9eee718d.svg);
}

/* GAME STATISTICS */

.game-statistic {
    padding-bottom: 60px;
    position: relative;
}

.game-container .border {
    background-color: rgba(26, 28, 31, .5);
    border-radius: 3px;
    height: 1px;
    margin-bottom: 20px;
    box-shadow: 0 -1px 1px rgba(83, 89, 102, .6);
    border: none !important;
}

.tabs {
    margin-bottom: 20px;
    display: flex
;
}

.tabs__item {
    background-image: linear-gradient(294deg, #17191c 0%, #32383e 100%);
    border-radius: 11px;
    padding: 1px;
    box-shadow: -4px -4px 16px rgba(195, 200, 205, .08), 4px 4px 18px rgba(0, 0, 0, .5);
}
.tabs__item {
    cursor: pointer;
    min-width: 110px;
    transition: all .1s linear;
}

.tabs__item._active .tabs__item-inner {
    background-image: linear-gradient(282deg, #2c333a 126%, #1c1e22 25%);
    border: 1px solid #171a1e;
    box-shadow: inset -2px -2px 10px rgba(255, 255, 255, .05), inset 2px 3px 10px #070709;
}

.tabs__item-inner {
    border-radius: 10px;
}
.tabs__item-inner {
    padding: 14px 19px;
}

.tabs__item._active .text {
    opacity: 1;
    color: #d6e1ef;
    font-weight: 800;
}

.tabs__item .text {
    opacity: .5;
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: .85;
}

.tabs__item:not(:last-child) {
    margin-right: 10px;
}

.game-statistic .content {
    background-image: linear-gradient(133deg, rgba(172, 172, 172, .4) -12%, transparent 54%, rgba(0, 0, 0, .4) 123%, rgba(0, 0, 0, .4) 123%);
    border-radius: 10px;
    padding: 1px;
    box-shadow: 11px 13px 30px rgba(2, 3, 3, .4), -12px -12px 30px rgba(232, 237, 243, .05), inset -16px -6px 80px rgba(248, 249, 249, .03);
}

.game-statistic .content .tab-content {
    background-image: linear-gradient(309deg, #121416 0%, #353a40 100%), linear-gradient(131deg, rgba(172, 172, 172, .4) 0%, transparent 50%, rgba(0, 0, 0, .4) 100%);
    border-radius: 10px;
}

.game-statistic .content .tab-content .titles {
    display: flex;
}

.game-statistic .content .tab-content .titles__item:first-child {
    justify-content: flex-start;
    padding-left: 20px;
}

.game-statistic .content .tab-content .titles__item:last-child {
    justify-content: flex-end;
    padding-right: 20px;
}

.game-statistic .content .tab-content .titles__item {
    color: #acb5c5;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    font-weight: 600;
    display: flex
;
}

.game-statistic .separator {
    height: 1px;
    margin: -5px 0 5px;
}

.game-statistic .separator {
    border: 1px solid rgba(26, 28, 31, .51);
    box-shadow: 0 -1px 1px rgba(83, 89, 102, .6);
}

.game-statistic .content .tab-content .rows {
    height: 285px;
    overflow: hidden;
}

.game-statistic .content .tab-content .rows .row {
    display: flex;
    align-items: center;
    -webkit-animation-duration: 500ms;
    animation-duration: 500ms;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    cursor: pointer;
}

.game-statistic .content .tab-content .rows .row .cell .icon {
    background-repeat: no-repeat;
    background-size: contain;
    justify-content: center;
    align-items: center;
    width: 11px;
    height: 11px;
    margin: 1px 6px 0 0;
    display: flex
;
}

.row._win {
    background-color: rgba(0, 200, 0, 0.05);
}

.row._lose {
    background-color: rgba(200, 0, 0, 0.05);
}

.cell._positive {
    color: #00aa00;
}

.cell._negative {
    color: #cc0000;
}

.rows .row:hover .cell {
    opacity: 1;
}

.rows .row:nth-child(2n + 1) {
    -webkit-animation-name: row-odd;
    animation-name: row-odd;
}

.rows .row:nth-child(2n) {
    -webkit-animation-name: row-even;
    animation-name: row-even;
}

.rows .row:nth-child(11) {
    -webkit-animation-name: row-last;
    animation-name: row-last;
}

.folders-icon._dice {
    background-image: url(/static/media/icon-dice.svg);
}

.folders-icon._mines {
    background-image: url(/static/media/icon-mines.svg);
}

.folders-icon._towers {
    background-image: url(/static/media/icon-towers.svg);
}

.folders-icon._fruittowers {
    background-image: url(/static/media/icon-fruittowers.svg);
}

.folders-icon._turbomines {
    background-image: url(/static/media/icon-turbomines.svg);
}

.folders-icon._dogstreet {
    background-image: url(/static/media/icon-dogstreet.svg);
}

.folders-icon._limbo {
    background-image: url(/static/media/icon-limbo.svg);
}

.folders-icon._ballandball {
    background-image: url(/static/media/icon-ballandball.svg);
}

.folders-icon._crash {
    background-image: url(/static/media/icon-crash.svg);
}

.folders-icon._stairs {
    background-image: url(/static/media/icon-stairs.svg);
}

.folders-icon._dice {
    background-image: url(/static/media/icon-dice.svg);
}

.game-statistic .content .tab-content .rows .row {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    cursor: pointer;
    align-items: center;
    animation-duration: .5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    display: flex
;
}

.game-statistic .content .tab-content .rows .row .cell:first-child {
    justify-content: flex-start;
    padding-left: 20px;
}

.game-statistic .content .tab-content .rows .row .cell {
    opacity: .6;
    color: #fff;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    display: flex
;
}

.game-statistic .content .tab-content .rows .row .cell:last-child:not(:first-child) {
    text-align: right;
    justify-content: flex-end;
    padding-right: 20px;
    font-weight: 700;
}

.game-statistic .content .tab-content .rows .row .cell {
    opacity: .6;
    color: #fff;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    display: flex
;
}

.game-statistic .info {
    opacity: .5;
    color: #fff;
    text-align: center;
    width: 100%;
    font-size: 10px;
    position: absolute;
    bottom: 20px;
}

.folders-icon._turbomines {
    background-image: url(/static/media/icon-turbomines.svg);
}

.game-statistic .content .tab-content .rows .row * {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate(0, 0);
}

._fw600 {
    font-weight: 600;
}

._fw500 {
    font-weight: 500;
}

.game-statistic .content .tab-content._my .rows {
    height: 285px;
    overflow-y: auto;
    padding-right: 5px;
}

.game-statistic .content .tab-content._my .rows::-webkit-scrollbar {
    width: 4px;
}

.game-statistic .content .tab-content._my .rows::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.game-statistic .content .tab-content._my .rows::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.game-statistic .content .tab-content._my .rows::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.settings-modal-mobile-wrapper._open {
    display: flex
;
}
.settings-modal-mobile-wrapper {
    z-index: 20;
    justify-content: center;
    align-items: center;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.settings-modal-mobile-wrapper .modal-light {
    max-height: 100%;
    display: block;
    overflow-y: auto;
    transform: none;
    position: static !important;
}

.settings {
    z-index: 12;
    animation: .3s animation-modal-in;
    display: none;
}

.modal-light {
    -webkit-backdrop-filter: blur(1.25rem);
    backdrop-filter: blur(1.25rem);
    background: rgba(0, 0, 0, .9);
    border: 1px solid transparent;
    border-radius: 1.5rem;
    width: 22rem;
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, .5);
}

.settings-modal-mobile-wrapper .modal-light .settings__inner {
    position: relative;
}

.settings__inner {
    height: 100%;
}

.settings-modal-mobile-wrapper .modal-light .settings__close {
    top: 0;
    right: 0;
}

.settings__close {
    z-index: 2;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.iconFont-close:before, .iconFont-close:before {
    content: "X";
}

.settings__title {
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
}

.nickname-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.save-nickname-btn {
    background: linear-gradient(312.89deg, #121416 -8.2%, #353a40 103.29%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: -.1875rem -.1875rem 1rem rgba(232, 237, 243, .05), 
                .1875rem .125rem .25rem rgba(2, 3, 3, .486);
}

.save-nickname-btn:hover {
    background: linear-gradient(312.89deg, #353a40 -8.2%, #121416 103.29%);
    transform: translateY(-1px);
}

.save-nickname-btn:active {
    transform: translateY(0);
}

.modal-light__close {
    z-index: 2;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.modal-light__title {
    color: #fff;
    opacity: .5;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.modal-light__content._top {
    color: #fff;
    padding: 0 1.5rem;
    font-size: .625rem;
    font-weight: 400;
    line-height: .75rem;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: middle;
}

.modal-light._rules_modal .modal-light__content {
    overflow: hidden;
    margin: 0 -1.5rem 1.5rem;
}

/* Стили для аккордеона, соответствующие .block */
#rules-modal .accordion {
    background: transparent;
    border: none;
}

#rules-modal .accordion-item {
    color: #fff;
    background: linear-gradient(312.27deg, rgba(0, 0, 0, .125) .02%, rgba(0, 0, 0, .376) 100.02%);
    margin-bottom: 0; /* Убираем отступы между элементами */
    font-size: .625rem;
    font-weight: 400;
    line-height: .75rem;
    transition: all .3s linear;
    overflow: hidden;
    box-shadow: -.0625rem -.0625rem .125rem rgba(0, 0, 0, .25), 
                .0625rem .0625rem .125rem rgba(255, 255, 255, .25);
    border: none;
    border-radius: 0;
}

#rules-modal .accordion-button {
    color: #fff;
    background: transparent;
    padding: .75rem 1.5rem; /* Как в .block-inner */
    font-size: .875rem;
    font-weight: 700;
    line-height: .9375rem;
    border: none;
    box-shadow: none;
    max-height: 2.5rem; /* Как в .block */
    transition: all .3s linear;
}

#rules-modal .accordion-button:not(.collapsed) {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

#rules-modal .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

#rules-modal .accordion-button::after {
    background-image: url(icon-triangle-down.da9bd361.svg);
    background-size: contain;
    width: .6875rem;
    height: .4375rem;
    filter: invert(1); /* Инвертируем цвет иконки */
}

#rules-modal .accordion-button:not(.collapsed)::after {
    background-image: url(icon-triangle-down.da9bd361.svg);
    transform: rotate(-180deg);
}

/* Стили для accordion-body, соответствующие .block-inner */
#rules-modal .accordion-body {
    padding: .75rem 1.5rem; /* Как в .block-inner */
    color: #fff;
    font-size: .625rem;
    font-weight: 400;
    line-height: .75rem;
    background: transparent;
    border-top: none;
}

#rules-modal .accordion-body h3 {
    font-size: .75rem;
    font-weight: 700;
    margin: .625rem 0 .3125rem;
}

#rules-modal .accordion-body ul, 
#rules-modal .accordion-body ol {
    padding-left: 1.25rem;
    list-style-type: disc;
    margin-bottom: .625rem;
}

#rules-modal .accordion-body p {
    margin-bottom: .625rem;
}

/* Убираем стандартные отступы Bootstrap */
#rules-modal .accordion-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#rules-modal .accordion-item:last-of-type {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.modal-light__content .block {
    color: #fff;
    background: linear-gradient(312.27deg, rgba(0, 0, 0, .125) .02%, rgba(0, 0, 0, .376) 100.02%);
    max-height: 2.5rem;
    margin-bottom: .375rem;
    font-size: .625rem;
    font-weight: 400;
    line-height: .75rem;
    transition: all .3s linear;
    overflow: hidden;
    box-shadow: -.0625rem -.0625rem .125rem rgba(0, 0, 0, .25), .0625rem .0625rem .125rem rgba(255, 255, 255, .25);
}

.modal-light__content .block-inner {
    padding: .75rem 1.5rem;
}

.modal-light__content .block h2 {
    cursor: pointer;
    margin: -.75rem -1.5rem .1875rem;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 700;
    line-height: .9375rem;
    position: relative;
}

.modal-light__content .block h2:after {
    content: "";
    background-image: url(icon-triangle-down.da9bd361.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    width: .6875rem;
    height: .4375rem;
    position: absolute;
    top: 1.0625rem;
    right: 1.5rem;
}

.modal-light__content .block ul, .modal-light__content .block ol {
    padding-left: 1.25rem;
    list-style-type: disc;
}

.modal-light__content .block ul, .modal-light__content .block ol, .modal-light__content .block p {
    margin-bottom: .625rem;
}



.modal-light__block {
    background: linear-gradient(312.27deg, rgba(0, 0, 0, .125) .02%, rgba(0, 0, 0, .376) 100.02%);
    border-radius: .375rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    padding: .5rem .75rem;
    box-shadow: -.0625rem -.0625rem .125rem rgba(0, 0, 0, .25), .0625rem .0625rem .125rem rgba(255, 255, 255, .25);
}

.modal-light__block-label {
    color: rgba(255, 255, 255, .5);
    margin-bottom: .0625rem;
    font-size: .625rem;
    font-weight: 400;
    line-height: .75rem;
}

.modal-light__block-value {
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: .9375rem;
}



.settings .settings-input {
    background: linear-gradient(312.27deg, rgba(0, 0, 0, .125) .02%, rgba(0, 0, 0, .376) 100.02%);
    border-radius: .375rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: -.0625rem -.0625rem .125rem rgba(0, 0, 0, .25), .0625rem .0625rem .125rem rgba(255, 255, 255, .25);
}

.settings-input {
    background: linear-gradient(148.95deg, rgba(190, 191, 192, .8) -14.69%, rgba(35, 47, 57, .23) 180.58%);
    border-radius: .6875rem;
    height: 2.875rem;
    padding: .0625rem;
    box-shadow: inset .125rem .125rem .125rem rgba(26, 32, 38, .4);
}

.settings .settings-input__inner {
    box-shadow: none;
    background: 0 0;
    border-radius: .375rem;
}

.settings-input__inner {
    background: linear-gradient(318.44deg, #1a1b1f 21.28%, #242a30 141.88%);
    border-radius: .625rem;
    height: 100%;
    position: relative;
    box-shadow: inset .125rem .1875rem .625rem #070709, inset -.125rem -.125rem .625rem rgba(255, 255, 255, .05);
}

.settings-input__inner label {
    color: rgba(255, 255, 255, .5);
    font-size: .625rem;
    position: absolute;
    top: .5rem;
    left: .625rem;
}

.settings .settings-input__inner input {
    color: #fff;
}

.settings-input__inner input {
    color: #d6e1ef;
    background: 0 0;
    border-radius: .625rem;
    width: 100%;
    height: 100%;
    padding: 1.25rem 3.0625rem .375rem .625rem;
    font-size: .8125rem;
    font-weight: 700;
    border: none !important;
    outline: none !important;
}

.settings__link {
    background: rgba(255, 255, 255, .1);
    border: .0625rem solid rgba(255, 255, 255, .35);
    border-radius: .375rem;
    margin-bottom: .375rem;
    box-shadow: .125rem .125rem .25rem rgba(0, 0, 0, .35);
}

.settings__link, .settings__item {
    cursor: pointer;
    align-items: center;
    height: 2.25rem;
    padding: .75rem;
    display: flex
;
    position: relative;
}

.settings__icon {
    color: rgba(255, 255, 255, .5);
    border-radius: .375rem;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: .875rem;
    display: flex
;
    position: relative;
}

.settings__icon .iconFont {
    z-index: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.iconFont-limits:before {
    content: ""; /* Убираем символ шрифта */
    display: inline-block;
    width: 20px; /* Размер иконки */
    height: 20px;
    background-image: url(/static/media/settings-circle.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.iconFont-rules:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(/static/media/settings-document.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.settings__name {
    text-align: center;
    color: #fff;
    opacity: .5;
    flex: 1;
    font-size: .75rem;
    font-weight: 700;
}

.settings__link:last-child, .settings__item:last-child {
    margin-bottom: 1.5rem;
}

.settings__item {
    margin: .75rem 0;
}
.settings__link, .settings__item {
    cursor: pointer;
    align-items: center;
    height: 2.25rem;
    padding: .75rem;
    display: flex
;
    position: relative;
}

.settings__range {
    flex: 1;
    width: 100%;
}

.range-slider {
    border-radius: .5625rem;
    align-items: center;
    width: 100%;
    height: .875rem;
    display: flex
;
    position: relative;
}

.range-slider__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
    min-width: 100%;
    min-height: 100%;
    position: absolute;
}

.range-slider__bg {
    border-radius: .5625rem;
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: -.0625rem -.0625rem .125rem rgba(0, 0, 0, .25), .0625rem .0625rem .125rem rgba(255, 255, 255, .25), inset .125rem .125rem .5rem .0625rem rgba(4, 4, 5, .6);
}

.range-slider._sound .range-slider__bg-inner {
    background: linear-gradient(270deg, #01ffa4 -33.45%, rgba(0, 165, 125, .5) 100%);
}

.range-slider__bg-inner {
    -webkit-filter: blur(.25rem);
    filter: blur(.25rem);
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    padding: .25rem;
    overflow: hidden;
    box-shadow: 0 0 .625rem #a6ff60;
}

.range-slider__active {
    background: #051c18;
    min-width: 100%;
    height: 100%;
    position: relative;
    top: -.875rem;
    transform: translate(-100%);
}

.range-slider__btn-wrap {
    justify-content: flex-end;
    align-items: center;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    position: absolute;
}

.range-slider__btn {
    background: linear-gradient(312.89deg, #121416 -8.2%, #353a40 103.29%);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: .125rem;
    display: flex;
    position: absolute;
    overflow: hidden;
    box-shadow: -.1875rem -.1875rem 1rem rgba(232, 237, 243, .05), .1875rem .125rem .25rem rgba(2, 3, 3, .486), inset -1rem -.375rem 5rem rgba(248, 249, 249, .03);
}

.range-slider__btn:before {
    content: "";
    background: linear-gradient(135deg, #000 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    position: absolute;
    top: .125rem;
    bottom: .125rem;
    left: .125rem;
    right: .125rem;
}

.range-slider._sound .range-slider__btn:after {
    background: #00ff75;
    box-shadow: 0 0 .3125rem #a6ff60, 0 0 .625rem #76ff60;
}
.range-slider__btn:after {
    content: "";
    border-radius: 50%;
    position: absolute;
    top: .25rem;
    bottom: .25rem;
    left: .25rem;
    right: .25rem;
}


/* Aspect Ratio Fallback */
@supports not (aspect-ratio: 1 / 1) {
    .game-tile .bomb::before,
    .game-tile .diamond::before,
    .game-tile__inner::before,
    .game-tile::before {
        float: left;
        padding-top: 100%;
        content: '';
    }
    
    .game-tile .bomb::after,
    .game-tile .diamond::after,
    .game-tile__inner::after,
    .game-tile::after {
        display: block;
        content: '';
        clear: both;
    }
}

/* Animations */
@keyframes scale {
    0% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

@keyframes glitter {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

@keyframes play-bomb {
    to {
        opacity: 0;
        background-position: 112.5%
    }
}

@-moz-keyframes play-bomb {
    100% { background-position: calc(100% + (100% / 8)); opacity: 0; }
}

@-webkit-keyframes play-bomb {
    100% { background-position: calc(100% + (100% / 8)); opacity: 0; }
}

@keyframes play-bomb {
    100% { background-position: calc(100% + (100% / 8)); opacity: 0; }
}

/* Row odd */
@keyframes row-odd {
    0% { transform: translateY(-100%); }
}
@-webkit-keyframes row-odd {
    0% { transform: translateY(-100%); }
}

/* Row even */
@keyframes row-even {
    0% { transform: translateY(-100%); }
}
@-webkit-keyframes row-even {
    0% { transform: translateY(-100%); }
}

/* Row last */
@keyframes row-last {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}
@-webkit-keyframes row-last {
    0% {
        opacity: 1;
        transform: translateY(-100%);
    }
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}