/* Обнуляющие стили */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    line-height: 100%;
}

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

body {
    background: #050505 !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none !important;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1, h2, h3, h4, h5, h6, p, label {
    margin: 0;
    padding: 0;
}

/* ===== SHARED: Buttons, Games Layout ===== */
.font-weight-500 { font-weight: 500; }
.ml-1 { margin-left: 4px; }

.game__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.button:hover { opacity: 0.9; }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.5; cursor: not-allowed; }

.button.primary {
    background: radial-gradient(90.85% 140% at 50% 100%, #F9A72A 0%, #FE0312 100%);
    color: #fff;
}

.button.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

.empty-input {
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

/* ===== Games Layout: mines-row (Dice + Mines) ===== */
.mines,
.mines.dice {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #fff;
}

.mines-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.mines-left {
    flex: 1;
    min-width: 280px;
}

.mines-right {
    width: 280px;
    flex-shrink: 0;
}

/* ===== History (slots-history) ===== */
.slots-history-wrapper {
    background: #121212;
    border-radius: 16px;
    padding: 20px;

    &.secondary {
        padding: 0;
    }
}

.slots-history__title {
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
}

.slots-history.games {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slots-history.games.secondary .slots-history__item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
}

.slots-history__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 14px;
}

.slots-history__item--image {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
}

.slots-history__item-info {
    flex: 1;
    min-width: 0;
}

.slots-history__item--username {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.slots-history__item--slot {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.slots-history__item--win {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

/* ===== JACKPOT PAGE ===== */
.jackpot-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 40px;
}

.bonuses-header {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bonuses-header__bg-link {
    display: block;
    cursor: pointer;
}

.bonuses-header__bg {
    width: 100%;
    height: auto;
    display: block;
}

.bonuses-header-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: auto;
    pointer-events: none;
}
.bonuses-header-decor.left { left: 10px; }
.bonuses-header-decor.right { right: 10px; transform: translateY(-50%) scaleX(-1); }

.jackpot-page-banner-info {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jackpot-page-banner__icon { flex-shrink: 0; }

.jackpot-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jackpot-amount__items {
    display: flex;
    align-items: center;
    gap: 2px;
}

.jackpot-amount__item {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.jackpot-page-container {
    background: #121212;
    border-radius: 20px;
    padding: 32px;
}

.jackpot-page__description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 20px 0 28px;
    max-width: 700px;
}

.jackpot-page-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.jackpot-page__card {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.jackpot-page__card--name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
    margin-bottom: 8px;
}

.jackpot-page__card--amount {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.jackpot-page__card--amount__item {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.jackpot-page__card--image {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.jackpot-page__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.jackpot-page-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.jackpot-page-filter .button {
    padding: 8px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.jackpot-page-filter .button.primary {
    background: radial-gradient(90.85% 140% at 50% 100%, #F9A72A 0%, #FE0312 100%);
}

.jackpot-page-winners {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.jackpot-page__winner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.jackpot-page__winner--avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.jackpot-page__winner--name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.jackpot-page__winner--jackpot {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.jackpot-page__winner-right {
    text-align: right;
}

.jackpot-page__winner--amount {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.jackpot-page__winner--time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.jackpot-page-winners-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.jackpot-page-winners-pages button {
    padding: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}
.jackpot-page-winners-pages button:hover {
    color: #fff;
}

.jackpot-page-winners-pages--counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.jackpot-page-faq__title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 12px;
}

.jackpot-page-faq__title:first-child { margin-top: 0; }

.jackpot-page-faq__description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.jackpot-page-faq-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.jackpot-page-faq__step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.jackpot-page-faq__step-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.jackpot-page-faq__step--number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(90.85% 140% at 50% 100%, #F9A72A 0%, #FE0312 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.jackpot-page-faq__step--name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.jackpot-page-faq__step--info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.jackpot-page-faq__bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 120px;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
}

/* ===== MINES PAGE ===== */
.mines__steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mines__steps--prev,
.mines__steps--next {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.mines__steps--prev:hover,
.mines__steps--next:hover {
    background: rgba(255, 255, 255, 0.15);
}

.stepsCoffBox {
    flex: 1;
    min-width: 0;
    min-height: 120px;
}

.stepsCoffBox .slick-list,
.stepsCoffBox .slick-track {
    display: flex;
    flex-direction: column;
}

.stepsCoffBox .slick-slide {
    height: auto;
}

.swiper-slide.stepsCoffs {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.step-number { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.step-coff { font-size: 14px; font-weight: 600; color: #fff; }

.minefields-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 24px;
}

.minefields-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #121212;
    border-radius: 16px;
    min-width: 100px;
}

.minefields__title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.minefields__image-wrapper {
    margin-bottom: 8px;
}

.minefields__image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.minefields__value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.mines-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.minefields {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 280px;
    position: relative;
}

.cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.cell.opacity:not(.win):not(.lose) {
    background: rgba(255, 255, 255, 0.12);
}
.cell.opacity:hover:not(.win):not(.lose):not(.wait) {
    background: rgba(255, 255, 255, 0.2);
}

.cell.win {
    background: linear-gradient(135deg, #22c55e33 0%, #16a34a44 100%);
}
.cell.win img { width: 70%; height: 70%; object-fit: contain; }

.cell.lose {
    background: linear-gradient(135deg, #ef444433 0%, #dc262644 100%);
}
.cell.lose img { width: 70%; height: 70%; object-fit: contain; }

.cell.wait { opacity: 0.6; pointer-events: none; }

.winBox {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.winT {
    background: #fff;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px 28px;
    text-align: center;
}

.winT .winsum { font-size: 18px; font-weight: 700; color: #22c55e; }
.winT .wincoff { font-size: 13px; color: #16a34a; }

.mobile-mines__play { display: none; }
.desktop-mines__play { display: inline-flex; }

@media (max-width: 768px) {
    .mobile-mines__play { display: inline-flex; }
    .desktop-mines__play { display: none; }
    .mines-row { flex-direction: column; }
    .mines-right { width: 100%; }
    .minefields-row { flex-direction: column; }
}

.mines-auto {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mines-auto__label { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.mines-auto__center { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.mines-control {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    padding: 24px;
    background: #121212;
    border-radius: 16px;
}

.mines-control-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}

.mines-control-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mines-control__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.mines-control__value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mines-control__value.empty-input {
    width: 100px;
}

.mines-control__button {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.mines-control__button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.mines-control__check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.mines-control__check--icon {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transition: all 0.2s;
}

.mines-control__check.active .mines-control__check--icon {
    background: radial-gradient(90.85% 140% at 50% 100%, #F9A72A 0%, #FE0312 100%);
    border-color: transparent;
}

.mines__select-wrapper select {
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* ===== DICE PAGE ===== */
.dice-settings {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.dice-settings__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dice-settings__item--button {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.dice-settings__item--button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.dice-settings__item--button.secondary {
    background: rgba(255, 255, 255, 0.05);
}

.dice-settings__item--value-wrapper {
    display: flex;
    align-items: center;
    background: #121212;
    border-radius: 10px;
    padding: 4px 12px;
}

.dice-settings__item--value__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 6px;
}

.dice-settings__item--value {
    width: 80px;
    background: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.dice-settings-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.dice-settings__play-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dice-settings__play {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background: radial-gradient(90.85% 140% at 50% 100%, #F9A72A 0%, #FE0312 100%);
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.dice-settings__play:hover {
    opacity: 0.9;
}
.dice-settings__play.center {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.dice-settings__play-col > div:not(.dice-settings__play):not(.notys) {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.noty {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
}
.noty.success { background: #22c55e33; color: #22c55e; }
.noty.error { background: #ef444433; color: #f87171; }

.dice-game {
    padding: 32px;
    background: #121212;
    border-radius: 16px;
    text-align: center;
}

.dice__result {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.dice-game > div:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 700px) {
    .dice-settings__item { flex-direction: column; align-items: stretch; }
    .dice-settings-buttons { flex-direction: column; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}
::-webkit-scrollbar-track {
    background: #202020;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FE0312 0%, #F9A72A 50%, #FE0312 100%);
    border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FE2542 0%, #FAB84A 50%, #FE2542 100%);
}
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #E85A00 #202020;
}
