/* 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;
  }

/* El importe de «Retirar» es un <span>, es decir una caja en linea, y el
   navegador ignora `transform` en las cajas en linea: el latido de
   `pulseAmount` no llegaba a verse nunca. Con `inline-block` la escala si se
   aplica, y al ser el unico contenido de su fila no cambia la maquetacion. */
#payout {
    display: inline-block;
    transform-origin: center;
}

.game-header__logo {
    background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    height: auto;
    margin-right: auto;
    position: relative;
}

.game-header__logo a {
    display: inline-flex;
    align-items: center;
}

.game-header__logo img {
    width: clamp(96px, 18vw, 150px);
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .game-header__logo {
        width: auto;
    }

    .game-header__logo img {
        width: clamp(84px, 28vw, 110px);
    }
}

.game-header__balance-title {
    color: rgba(255, 255, 255, .6);
    margin-left: auto;
    margin-right: .375rem;
    font-weight: 600;
}

/* La etiqueta «Saldo:» sigue visible en movil: solo se compacta para que
   el logo, el saldo y el boton de ajustes quepan en una sola linea. */
@media (max-width: 600px) {
    .game-header__balance-title {
        display: block;
        white-space: nowrap;
        margin-right: .25rem;
        font-size: .7rem;
    }

    .game-header__balance {
        min-width: auto;
        padding: 0 .5rem;
    }
}

.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: 16px;
}

.game-header__balance-text {
    white-space: nowrap;
}

.game-header__button {
    border: .0625rem solid transparent;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    cursor: pointer;
    box-sizing: border-box;
    width: 1.875rem;
    height: 1.875rem;
    position: relative;
}

.game-header__button--inner {
    background: linear-gradient(320.64deg, #1e2226 -42.09%, #2f353b 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(../images/sound.svg) no-repeat center;
    mask: url(../images/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: currentColor;
    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: currentColor;
    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(../images/settings.svg) no-repeat center;
    mask: url(../images/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(50px + 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);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.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 {
    /* Decorative only: the demo has no auto-play mode, so clicks do nothing. */
    cursor: default;
    pointer-events: none;
    user-select: none;
    flex: 1;
    height: 39px;
    padding: 1px;
    font-size: 13px;
    line-height: .85;
    transition: opacity .2s linear;
}

.mode-btn:first-child {
    margin-right: 5px;
}

.mode-btn:last-child {
    margin-left: 5px;
}

/* Ronda en curso («Empezar el juego» pulsado): las pestanas se apagan.
   Valores medidos pixel a pixel sobre la captura de referencia y resueltos
   para que el color compuesto final coincida con ella:

     texto «Normal»  ->  rgb(99, 106, 113)   sobre el fondo rgb(37, 39, 43)
     texto «Auto»    ->  rgb(83,  86,  90)   sobre el fondo rgb(35, 38, 43)
     punto verde     ->  rgb(79, 116,  61)   sobre el gris rgb(41, 44, 47)

   Clave del ajuste: la referencia NO baja la opacidad del boton. Las cajas
   conservan su fondo y su relieve intactos (el fondo medido coincide con el
   degradado sin atenuar), y todo el apagado vive en el color del texto y en
   la opacidad del punto. Atenuar el boton entero oscurecia tambien el marco
   y las sombras, y dejaba «Normal» al borde de lo ilegible.

   Se apaga solo con propiedades que interpolan (`color` y `opacity`), nunca
   con `font-weight` ni `background-image`, que darian un salto en seco. */
.mode-btn.disabled .mode-btn__text {
    color: rgba(255, 255, 255, .22);
}

.mode-btn.active.disabled .mode-btn__text {
    color: rgba(214, 225, 239, .36);
}

.mode-btn.active.disabled .mode-btn__indicator:before {
    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;
    transition: color .2s linear;
}

.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;
}

/* El verde del punto activo vive en su propia capa por encima del apagado
   gris: asi se funde con `opacity` en lugar de cambiar `background-image`, que
   desaparecia de golpe. */
.mode-btn__indicator:before {
    content: "";
    background-image: radial-gradient(circle at 88% 115%, #81df49, #8de15e 70%);
    border-radius: 3px;
    width: 6px;
    height: 6px;
    opacity: 0;
    transition: opacity .2s linear;
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: 1;
}

.mode-btn.active .mode-btn__indicator:before {
    opacity: 1;
}

/* 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(../images/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(../images/diamond_shadow.svg);
}

.game-tile .bomb {
    background-image: url(../images/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;
}

/* Capa de bloqueo del juego: solo atenua, nunca desenfoca la pantalla entera.
   El desenfoque vive en `.win-screen:before`, es decir, detras del bloque. */
.win-screen__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* затемнение */
    z-index: 100; /* Чтобы было выше контента, но ниже .win-screen */
    transition: all 0.5s ease;
    /* Solo oscurece: al cobrar, «Empezar el juego» ya esta puesto debajo y
       tiene que poder pulsarse sin esperar a que el cartel se vaya. */
    pointer-events: none;
}

/* Centrado exacto sobre el tablero: `centerWinScreenOnTiles()` en
   turbo_mines.js sobreescribe `top`/`left` con el centro de `.game-tiles`.
   Los valores del 50% son solo el respaldo si el tablero no existe.

   Va `absolute` dentro de `.table-holder`, no `fixed` sobre la ventana: asi
   el navegador la desplaza junto al tablero al hacer scroll. Cuando era fija
   habia que reposicionarla desde un listener de `scroll`, que corrige la
   posicion despues de que el frame ya se ha pintado, y el cartel daba tirones
   mientras se movia la pagina. El velo de detras si sigue siendo fijo: cubre
   todo el viewport y no se mueve, asi que no tiembla.

   La aparicion se anima capa a capa con la clase `_visible`, nunca con
   `opacity` sobre `.win-screen`: un ancestro con opacidad distinta de 1 se
   convierte en "backdrop root", y mientras dura esa animacion el
   `backdrop-filter` del pseudo-elemento no ve el fondo de la pagina. Por eso
   el desenfoque llegaba medio segundo tarde, de golpe, al acabar el fundido. */
.win-screen {
    z-index: 101;
    pointer-events: none; /* el cartel tampoco bloquea los botones */
    border-radius: 17px;
    width: 219px;
    height: 174px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: none;
    transition: box-shadow 0.5s ease;
}

.win-screen._visible {
    box-shadow: 8px 12px 11px rgba(20,25,29,.35);
}

.win-screen:before,
.win-screen:after,
.win-screen__head,
.win-screen__content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.win-screen._visible:after,
.win-screen._visible .win-screen__head,
.win-screen._visible .win-screen__content {
    opacity: 1;
}

/* Unico desenfoque de la pantalla de victoria: recortado al propio bloque.
   Se atenua con su propia opacidad, que si es compatible con el desenfoque. */
.win-screen:before {
    content: "";
    z-index: -1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 17px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0
}

.win-screen._visible:before {
    opacity: .9;
}

.win-screen:after {
    content: "";
    background-image: url(../images/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
}

/* El importe y `COP` van siempre en una sola linea: el tamano de letra lo
   ajusta `fitWinAmountText()` en turbo_mines.js segun el ancho disponible. */
.win-screen__content-payout {
    text-align: center;
    color: #b3f0ff;
    padding: 20px 0;
    font-size: 23px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.1
}

.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
}

/* Adaptacion movil: el bloque nunca desborda la pantalla y gana ancho util
   para que el importe quepa entero en una linea. */
@media (max-width: 600px) {
    .win-screen {
        width: min(219px, calc(100vw - 2.2rem));
        max-width: 219px;
    }

    .win-screen:after {
        background-size: 100% 100%;
    }

    .win-screen__head {
        font-size: clamp(17px, 5.5vw, 22px);
    }

    .win-screen__content {
        padding: 0 14px;
    }
}

.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;
}

/* 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;
    align-items: center;
    height: 100%;
    padding: 10px 0;
    display: flex;
    position: relative;
    text-align: center;
}

.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);
}

/* Sin saldo suficiente para la apuesta minima, «Empezar el juego» se apaga:
   el rotulo pierde el contraste, el boton entero baja de intensidad y deja de
   admitir clics. */
.btn-new._disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: .6;
    box-shadow: -4px -2px 10px rgba(195, 200, 205, .04), 4px 4px 12px rgba(0, 0, 0, .4);
}

.btn-new._disabled .text,
.btn-new._disabled ._small {
    color: #737d8a;
}

.btn-new._disabled .btn-new__inner .indicator {
    opacity: .5;
}

@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(../images/icon-crystal.e81315df.svg);
}

.game-details__row-icon._mine {
    background-image: url(../images/icon-bomb.05e76cbf.svg);
}

.game-details__row-icon._tiles {
    background-image: url(../images/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 {
    /* Separacion con el bloque de la tabla: sin ella las pestanas se apoyan
       directamente sobre el borde superior del contenido y sus sombras se le
       montan encima. */
    margin-bottom: 20px;
    display: flex;
}

.back {
  display: flex;
  color: white;
}

.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._mines {
    background-image: url(../images/icon-mines.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;
}

.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 {
    color: white;
    z-index: 2;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

#user_id {
    color: white;
}

.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;
}

.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;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: middle;
}


.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;
}

/* El apodo es de solo lectura y comparte el color del titulo "Ajustes". */
.settings .settings-input__inner input {
    color: rgba(255, 255, 255, .5);
    opacity: 1;
    -webkit-text-fill-color: rgba(255, 255, 255, .5);
    cursor: default;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.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(../images/settings-circle.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);
    }
}
/* Cache version: 55972997 - Updated: 2025-08-23 21:16:37 */
/* Saldo: incremento flotante al cobrar una ronda ------------------------- */
/* Al aparecer el bloque «¡Tú ganas!» el importe ganado sube desde debajo de
   la caja del saldo, en verde, y se desvanece en el sitio. El contenedor es
   `.game-header__balance` (position: relative), asi que la etiqueta queda
   siempre centrada bajo el saldo aunque cambie su ancho. */
.game-header__balance-gain {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 3;
    margin-top: .125rem;
    color: #4ec97d;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 .0625rem .1875rem rgba(7, 7, 9, .8);
    opacity: 0;
    transform: translate(-50%, .5rem);
    animation: balance-gain-float 1.8s ease-out forwards;
}

@keyframes balance-gain-float {
    0% {
        opacity: 0;
        transform: translate(-50%, .5rem);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    65% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -.375rem);
    }
}

@media (max-width: 600px) {
    .game-header__balance-gain {
        font-size: .7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-header__balance-gain {
        animation-duration: 1.8s;
        animation-name: balance-gain-fade;
    }

    @keyframes balance-gain-fade {
        0%, 65% { opacity: 1; transform: translate(-50%, 0); }
        100% { opacity: 0; transform: translate(-50%, 0); }
    }
}

/* ==========================================================================
   Puerta de entrada (/co y /bo)
   --------------------------------------------------------------------------
   Se muestra entre el preloader y el tablero. El fondo es un color plano
   (#16191d) y la tarjeta reutiliza los grises de los paneles del juego
   (#17191c → #32383e, texto #d6e1ef). El unico acento es el dorado de la
   marca (#f8d65e, el de «CARGANDO...» y el brillo del logo): el boton y todo
   lo que se enciende al enfocar los campos. Aqui no se usa el cian del juego,
   a proposito.

   Va en este archivo, y no en uno nuevo, porque el <head> enlaza cinco hojas
   y cada una bloquea el primer pintado (ver AGENTS.md).
   ========================================================================== */

.login-gate {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + var(--safe-area-inset-top, 0px)) 20px calc(24px + var(--safe-area-inset-bottom, 0px));
    overflow-y: auto;
    /* Un color plano, el extremo oscuro del degradado del `body`. La pantalla
       de entrada no lleva ni resplandor ni degradado: se ve igual arriba que
       abajo. */
    background-color: #16191d;
    opacity: 1;
    transition: opacity 320ms ease;
}

/* Al entrar, la puerta se desvanece y el tablero —ya montado detras— queda
   a la vista. login-gate.js la retira del DOM al terminar la transicion. */
.login-gate._leaving {
    opacity: 0;
    pointer-events: none;
}

.login-gate._leaving .login-card {
    transform: translateY(-10px) scale(.97);
}

.login-card {
    width: 100%;
    max-width: 384px;
    box-sizing: border-box;
    padding: 30px 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(200, 213, 225, .09);
    background-image: linear-gradient(315.81deg, #17191c -42.75%, #32383e 123.05%);
    box-shadow: -6px -4px 22px rgba(195, 200, 205, .06), 10px 14px 40px rgba(0, 0, 0, .55);
    animation: loginCardIn 420ms cubic-bezier(.22, .68, .36, 1) both;
    transition: transform 320ms ease;
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.login-card__head {
    text-align: center;
    margin-bottom: 26px;
}

.login-card__logo {
    width: 164px;
    height: auto;
    max-width: 100%;
    margin: 0 auto 18px;
    display: block;
}

.login-card__title {
    color: #eef3fa;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-card__subtitle {
    color: #8b959f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.login-field {
    margin-bottom: 16px;
}

.login-field__label {
    display: block;
    color: #a8b3bf;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 8px;
}

.login-field__control {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(200, 213, 225, .11);
    background-image: linear-gradient(324.43deg, #17191c -52.28%, #1c1e22 69.89%);
    box-shadow: inset 2px 3px 10px rgba(0, 0, 0, .45);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field__control:focus-within {
    border-color: rgba(248, 214, 94, .6);
    box-shadow: inset 2px 3px 10px rgba(0, 0, 0, .45), 0 0 0 3px rgba(248, 214, 94, .13);
}

.login-field__icon {
    width: 20px;
    height: 20px;
    flex: none;
    margin-left: 14px;
    fill: none;
    stroke: #6d7883;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 160ms ease;
}

.login-field__control:focus-within .login-field__icon {
    stroke: #f8d65e;
}

.login-field__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eef3fa;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    /* El reset global de este archivo bloquea la seleccion de texto en casi
       todo el documento; en un campo de texto hay que devolverla. */
    -webkit-user-select: text;
    user-select: text;
}

.login-field__input._with-action {
    padding-right: 4px;
}

.login-field__input::placeholder {
    color: #5d666f;
    font-weight: 500;
}

/* Chrome pinta los campos autocompletados de amarillo: el `inset` de 60s lo
   tapa sin desactivar el autorrelleno, que aqui es una comodidad real. */
.login-field__input:-webkit-autofill,
.login-field__input:-webkit-autofill:hover,
.login-field__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #eef3fa;
    -webkit-box-shadow: inset 0 0 0 60s #1a1d21;
    caret-color: #eef3fa;
}

.login-field__action {
    flex: none;
    width: 46px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.login-field__action-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #6d7883;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 160ms ease;
}

.login-field__action:focus-visible {
    outline: 2px solid rgba(248, 214, 94, .55);
    outline-offset: -4px;
    border-radius: 10px;
}

/* Un solo boton con los dos iconos: se cambia cual esta visible en vez de
   reescribir el SVG desde JavaScript. */
.login-field__action ._hide,
.login-field__action._revealed ._show {
    display: none;
}

.login-field__action._revealed ._hide {
    display: block;
}

.login-field__action._revealed .login-field__action-icon {
    stroke: #f8d65e;
}

.login-field__hint {
    color: #e2b04a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 8px;
}

.login-error {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(249, 113, 142, .28);
    background-image: linear-gradient(262deg, rgba(249, 113, 142, .16) 100%, rgba(246, 68, 68, .16) 0%);
    color: #f9a3b4;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.login-card._shake {
    animation: loginShake 380ms cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes loginShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-7px); }
    40%, 60% { transform: translateX(7px); }
}

.login-submit {
    width: 100%;
    height: 56px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    /* Oscuro neutro sobre el dorado: 12.4:1 de contraste, muy por encima del
       4.5:1 que pide la WCAG para texto normal. */
    color: #17191c;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    /* El dorado de la marca, el mismo de «CARGANDO...» y del brillo del logo
       en el preloader (#f8d65e). Los dos extremos son la variacion vertical
       de ese mismo tono, no un color nuevo. */
    background-image: linear-gradient(180deg, #f9d965 0%, #f7cd53 100%);
    box-shadow: -4px -2px 16px rgba(248, 214, 94, .16), 4px 8px 20px rgba(0, 0, 0, .45);
    transition: filter 160ms ease, transform 120ms ease, opacity 160ms ease;
}

.login-submit:active {
    transform: translateY(1px);
}

.login-submit:focus-visible {
    outline: 2px solid #ffeaa0;
    outline-offset: 3px;
}

.login-submit._loading {
    cursor: progress;
    opacity: .75;
}

.login-submit__spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(23, 25, 28, .3);
    border-top-color: #17191c;
    border-radius: 50%;
    /* Fotogramas propios: `spin` existe en legacy.css y en el <style> del
       preloader, pero esta hoja no debe depender de ninguno de los dos. */
    animation: loginSpin 800ms linear infinite;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

.login-submit._loading .login-submit__spinner {
    display: block;
}

@media (max-width: 400px) {
    .login-card {
        padding: 26px 18px 22px;
    }

    .login-card__logo {
        width: 140px;
        margin-bottom: 14px;
    }

    .login-card__title {
        font-size: 20px;
    }
}

/* Estados de raton: en tactil no existen y un :hover pegajoso deja el boton
   iluminado despues de tocarlo. */
@media (hover: hover) and (pointer: fine) {
    .login-submit:hover {
        filter: brightness(1.08);
    }

    .login-field__action:hover .login-field__action-icon {
        stroke: #a8b3bf;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-card._shake {
        animation: none;
    }
}
