/* Shared dark game screens — Crash / Slots */

body.gm-game-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #0b0b0b;
    color: #fff;
    font-family: var(--font, "Onest", sans-serif);
    position: relative;
    overflow-x: hidden;
}

.gm-page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(120% 60% at 90% 70%, rgba(224, 127, 18, 0.28), transparent 60%),
        radial-gradient(80% 40% at 10% 100%, rgba(224, 127, 18, 0.18), transparent 70%),
        #0b0b0b;
}

/* Mines: jungle bg как в макете */
body.gm-game-page.gm-mines .gm-page-bg {
    background-color: #1a120a;
    background-image: url("/assets/bg.png?v=4");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body.gm-game-page #header,
body.gm-game-page .game-container {
    position: relative;
    z-index: 1;
}

body.gm-game-page #header_logo_svg {
    height: 32px;
    max-width: 180px;
}

.game-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 6px 17px 28px;
    box-sizing: border-box;
}

/* .gm-back — базовые стили в main.css */

/* Toast: стили в approveWindow.css (.gm-toast fixed + left:50%).
   Здесь специально НЕ переопределяем — иначе left:0 + translate(-50%) уезжает влево. */

/* ---------- Tabs (currency) — football style ---------- */
.currency-selector {
    display: flex;
    gap: 0;
    padding: 4px;
    margin-top: 18px;
    border-radius: 16px;
    background: #000000;
    border: none;
    height: auto;
    overflow: visible;
}

.curr-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    height: auto;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: 0.15s ease;
    background: transparent;
    border: 1.5px solid transparent;
    box-sizing: border-box;
}

.curr-btn img,
.curr-btn .star_asset {
    width: 16px;
    height: 16px;
}

.curr-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #2B2B2B;
    box-shadow: none;
}

.curr-btn.active .star_icon path,
.curr-btn.active svg path {
    fill: #f6b01e;
}

/* ---------- Bet card (football) ---------- */
.bet-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #0D0D0D;
    border: 1.5px solid #2B2B2B;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.bet-card::before {
    content: "";
    position: absolute;
    right: -6%;
    top: -15%;
    width: 42%;
    height: 90%;
    background: #2D200E;
    filter: blur(28px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bet-card-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.bet-card .bet-area {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.bet-card #betSection {
    display: flex;
}

.bet-card #betSection.is-hidden {
    display: none !important;
}

.bet-card #betGiftSection {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
}

.bet-card #betGiftSection.is-open {
    display: flex !important;
}

.bet-card .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    font-weight: 600;
    margin: 0;
}

.bet-card .stars-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    width: fit-content;
    margin: 0;
    padding: 0;
}

.bet-amount-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
}

.bet-amount-display {
    display: flex;
    align-items: baseline;
    font-size: 36px;
    font-weight: 400;
    font-family: 'Onest', var(--font, sans-serif);
    line-height: 1;
    color: #fff;
    pointer-events: none;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.bet-amount-display.is-empty {
    color: rgba(255, 255, 255, 0.35);
}

.bet-digit {
    display: inline-block;
}

.bet-digit.is-1 {
    margin-right: -0.08em;
}

.bet-card #betAmount {
    position: absolute;
    inset: 0;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font-size: 36px;
    font-weight: 400;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: #fff;
    outline: none;
    font-family: 'Onest', var(--font, sans-serif);
    z-index: 2;
    text-align: left;
    line-height: 1;
    max-width: none;
}

.bet-card .stars-input-row .star_asset {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.bet-card .stars-input-row::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 55%;
    width: 36px;
    height: 36px;
    background: #2D200E;
    filter: blur(14px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-20%);
}

.bet-card .range-hint {
    color: #868686;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    display: block;
}

.bet-card #betGiftSection .GiftSelector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 8px;
}

.bet-card #betGiftSection .giftItem {
    width: 72px;
    height: 72px;
    position: relative;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bet-card #betGiftSection .giftItem svg path {
    fill: rgba(255, 255, 255, 0.55);
}

.bet-card #placeBetBtn {
    flex-shrink: 0;
    align-self: center;
    width: auto;
    min-width: 118px;
    height: 48px;
    border: none;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    background: linear-gradient(180deg, #FBBB22 0%, #DF7F11 100%);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: transform 0.1s ease, opacity 0.15s ease;
    position: relative;
    z-index: 1;
    margin: 0;
}

.bet-card #placeBetBtn:active {
    transform: scale(0.96);
}

.bet-card #placeBetBtn #star_count,
.bet-card #placeBetBtn #starsIcon {
    display: none !important;
}

.bet-coef-card {
    margin-top: 12px;
    padding: 14px 13px 12px;
    border-radius: 18px;
    background: #0D0D0D;
    border: 1.5px solid #2B2B2B;
}

.bet-coef-card .label {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #cfcfcf;
    font-weight: 500;
}

.bet-coef-card #betCoefficent {
    width: 100%;
    max-width: 100%;
    font-size: 24px;
    font-weight: 500;
    color: #9a9a9a;
    background: transparent;
    border: none;
    outline: none;
    padding: 4px 0 0;
    font-family: inherit;
}

/* ---------- Play button (slots / fallback) ---------- */
.bet-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 8px;
}

#placeBetBtn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #f9b827, #e2800f);
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    transition: opacity 0.15s, transform 0.1s;
}

#placeBetBtn:active {
    transform: scale(0.98);
}

#placeBetBtn:disabled,
#placeBetBtn.gm-play--disabled {
    background: rgba(246, 176, 30, 0.55);
    color: rgba(255, 255, 255, 0.45);
    cursor: default;
}

#placeBetBtn .playText {
    width: auto !important;
}

#star_count {
    font-weight: 600;
}

/* ---------- Bet fields ---------- */
.bet-area {
    display: block;
    margin-top: 12px;
    padding: 14px 13px 12px;
    border-radius: 14px;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid #2c2c2c;
    margin-bottom: 0;
    box-sizing: border-box;
}

#betGiftSection {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.currency-selector + .bet-area {
    margin-top: 12px;
}

.bet-area .label {
    display: block;
    font-size: 12.5px;
    color: #cfcfcf;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
}

.stars-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.stars-input-row input,
.bet-area input[type="number"] {
    width: auto;
    max-width: 70%;
    font-size: 24px;
    font-weight: 500;
    color: #9a9a9a;
    padding: 2px 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
}

#coefficent_enter .stars-input-row input,
#coefficent_enter input {
    width: 100%;
    max-width: 100%;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    display: none;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.range-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #6f6f6f;
    margin-top: 6px;
}

.range-hint svg {
    width: 12px;
    height: 12px;
}

.field-star {
    color: #f6b01e;
    display: flex;
    flex-shrink: 0;
}

/* ====== Crash arena ====== */
.crashField {
    --crash-accent: #ff9d1c;
    --crash-safe: #4cc26a;
    --crash-danger: #ff4d4d;
    position: relative;
    height: min(52vw, 320px);
    min-height: 240px;
    max-height: 340px;
    margin-top: 6px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font, "Onest", sans-serif);
    color: var(--crash-accent);
    background:
        radial-gradient(120% 80% at 50% 120%, rgba(224, 127, 18, 0.22), transparent 55%),
        radial-gradient(80% 50% at 70% 10%, rgba(80, 140, 255, 0.12), transparent 50%),
        linear-gradient(180deg, #0a1020 0%, #0b0b0f 55%, #120c08 100%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.crashField.is-safe {
    --crash-accent: var(--crash-safe);
    border-color: rgba(76, 194, 106, 0.25);
    box-shadow: 0 0 40px rgba(76, 194, 106, 0.08) inset;
}

.crashField.is-hot {
    --crash-accent: #ff9d1c;
    border-color: rgba(255, 157, 28, 0.28);
}

.crashField.is-crashed {
    --crash-accent: var(--crash-danger);
    border-color: rgba(255, 77, 77, 0.45);
    animation: crashShake 0.45s ease-out;
}

.crashField.is-won {
    --crash-accent: var(--crash-safe);
    border-color: rgba(76, 194, 106, 0.4);
}

@keyframes crashShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

.gm-crash__sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gm-crash__star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    animation: crashTwinkle 2.4s ease-in-out infinite;
}

@keyframes crashTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.6); }
}

.gm-crash__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gm-crash__hud {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

#yourCoefficent {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.02em;
}

.gm-crash__status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gm-crash__stage {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

#coefficentMain {
    position: relative;
    z-index: 4;
    line-height: 1;
    font-size: clamp(34px, 10vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    color: var(--crash-accent);
    text-shadow: 0 0 28px color-mix(in srgb, var(--crash-accent) 45%, transparent);
    transition: color 0.2s ease, transform 0.25s ease;
    margin-bottom: 2px;
}

.gm-crash__label {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gm-crash__rocket-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 2;
    transform: translate3d(0, 18px, 0);
    transform-origin: 50% 50%;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease, opacity 0.3s ease;
    will-change: transform;
    pointer-events: none;
}

.gm-crash__rocket-wrap tgs-player {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(255, 140, 40, 0.35));
}

.crashField.is-betting .gm-crash__rocket-wrap {
    transform: translate3d(0, 18px, 0);
}

.crashField.is-flying .gm-crash__rocket-wrap {
    transform: translate3d(0, -10px, 0);
}

.crashField.is-flying .gm-crash__rocket-wrap tgs-player {
    filter: drop-shadow(0 10px 22px rgba(255, 140, 40, 0.5));
}

.crashField.is-crashed .gm-crash__rocket-wrap {
    transform: translate3d(0, -160%, 0) scale(0.85);
    opacity: 0;
    filter: brightness(1.3);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease;
}

.crashField.is-won .gm-crash__rocket-wrap {
    transform: translate3d(0, -10px, 0);
}

.gm-crash__blast {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 200, 80, 0.9) 0%, rgba(255, 80, 40, 0.45) 40%, transparent 70%);
}

.crashField.is-crashed .gm-crash__blast {
    animation: crashBlast 0.55s ease-out forwards;
}

@keyframes crashBlast {
    0% { width: 0; height: 0; opacity: 0.9; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

.gm-crash__history {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 2px 2px;
    margin-top: 8px;
    scrollbar-width: none;
}

.gm-crash__history::-webkit-scrollbar { display: none; }

.gm-crash__chip {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ff9d1c;
}

.gm-crash__chip.is-low { color: #ff6b6b; }
.gm-crash__chip.is-mid { color: #ffb347; }
.gm-crash__chip.is-high { color: #4cc26a; }

/* legacy aliases kept for old class toggles */
.crashField.noApprove { /* idle/safe default handled via is-safe */ }
.spark { display: none; }
.gm-ticks { display: none; }
.gm-crash__mascot { display: none; }

/* Gift selector (crash + slots) */
.GiftSelector {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

.GiftSelector--single {
    justify-content: flex-start;
}

.GiftSelector--single .giftItem {
    width: 96px;
    height: 96px;
}

.GiftSelector--single > svg,
.GiftSelector--single #totalGift {
    display: none !important;
}

.bet-card #betGiftSection .GiftSelector--single {
    justify-content: flex-start;
}

.bet-card #betGiftSection .GiftSelector--single .giftItem {
    width: 88px;
    height: 88px;
}

.giftItem {
    width: 108px;
    height: 108px;
    border-radius: 14px;
    background: #2b2b2b !important;
    position: relative;
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: none;
}

.giftItem svg {
    width: 40px !important;
    height: 40px !important;
    position: absolute;
    margin: auto;
    inset: 0;
    z-index: 2;
}

.giftItem svg path {
    fill: #fff;
}

.gm-gift-x {
    width: 62px;
    height: 54px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f9b827, #e2800f);
    flex: none;
}

.gm-gift-x img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.gm-gift-pick-label {
    position: absolute;
    bottom: 10px;
    left: 8px;
    right: 8px;
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
    color: #fff;
    z-index: 3;
    pointer-events: none;
}

.gm-gift-pick-plus {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 28px;
    line-height: 36px;
    font-weight: 400;
    text-align: center;
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#giftUser.has-gift .gm-gift-pick-plus,
#giftUser.has-gift .gm-gift-pick-label {
    display: none;
}

.starPriceInfo {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    padding: 3px 6px;
    z-index: 4;
}

.starPrice {
    font-size: 12px;
    color: #fff;
}

/* ====== Slots reels ====== */
.giant-dice,
#animate.giant-dice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 6px 0 0;
    height: 137px;
    position: relative;
    border-radius: 0;
    background: transparent;
}

.giant-dice > tgs-player,
#animate > tgs-player {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 14px;
    background: #1d1d1d;
    border: 1px solid #242424;
    overflow: hidden;
    display: block;
}

/* назад больше не внутри .giant-dice */

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 4px #f9b827); }
    100% { filter: drop-shadow(0 0 16px #e2800f); }
}

.rolling-effect tgs-player {
    animation: pulseGlow 0.35s infinite alternate;
}

/* Slots payouts */
.gm-payouts {
    margin-top: 10px;
    padding: 11px 12px 4px;
    border-radius: 16px;
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid #262626;
}

.gm-payouts__title {
    font-size: 12.5px;
    font-weight: 400;
    color: #e6e6e6;
    margin: 4px 0 8px;
}

.gm-payout {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 70px;
    border-top: 1px solid #262626;
}

.gm-payout__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}

.gm-payout__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.gm-payout__title {
    flex: 1;
    font-size: 14px;
    color: #e8e8e8;
}

.gm-payout__mult {
    font-size: 16px;
    font-weight: 600;
}

.gm-payout__mult--green { color: #4cc26a; }
.gm-payout__mult--blue { color: #3d82f0; }

.sides-panel {
    display: none;
}

/* Drawer dark */
body.gm-game-page .drawer {
    background: #141414;
    color: #fff;
}

body.gm-game-page .TitleText {
    color: #fff;
}

body.gm-game-page #noGiftsText {
    color: rgba(255, 255, 255, 0.45);
}

body.gm-game-page .podarokItem {
    background: #2b2b2b !important;
    border-radius: 12px;
}

body.gm-game-page .giftSelectorIN {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow: auto;
    max-height: 55vh;
}

.gift_icon {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.loader,
#waitGifts {
    display: none !important;
}

@keyframes gm-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Mines ---------- */
.mines-field {
    --mines-gold: linear-gradient(
        155deg,
        #FFF6CA 0%,
        #FFE192 18%,
        #FFC224 42%,
        #EFA11B 68%,
        #DF7F11 100%
    );
    --mines-gold-stroke: linear-gradient(180deg, #FFB400 0%, #D97F00 55%, #B25800 100%);
    --mines-low: linear-gradient(180deg, #D7DBFF 0%, #A8AFE8 55%, #8E96D8 100%);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 4px;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.mines-field.mines-size-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mines-field.mines-size-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.mines-field.mines-size-10 {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
}

.mines-field.mines-size-10 .itScuer {
    border-radius: 8px;
    font-size: clamp(8px, 2.2vw, 11px);
}

.mines-field.mines-size-10 .mines-bomb {
    width: 70%;
    height: 70%;
}

.mines-size-selector {
    margin-top: 10px !important;
}

.mines-bombs-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0D0D0D;
    border: 1.5px solid #2B2B2B;
    box-sizing: border-box;
}

.mines-bombs-label {
    font-family: var(--font, "Onest", sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.mines-bombs-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mines-bombs-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #2B2B2B;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, filter 0.12s ease, background 0.15s ease;
}

.mines-bombs-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
}

.mines-bombs-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.mines-bombs-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.mines-bombs-value {
    flex: 1;
    text-align: center;
    font-family: var(--font, "Onest", sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.mines-bombs-hint {
    font-family: var(--font, "Onest", sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

#minesBetCard.is-playing ~ .mines-size-selector,
body.gm-mines.playing .mines-size-selector {
    pointer-events: none;
}

.mines-field:not(.is-live) {
    opacity: 0.92;
    pointer-events: none;
}

.mines-field .itScuer {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1C120A;
    background-image: url("/assets/games/tabb.svg?v=3");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
    color: #fff;
    font-family: var(--font, "Onest", sans-serif);
    font-weight: 700;
    font-size: clamp(12px, 3.6vw, 16px);
    cursor: default;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mines-field.is-live .itScuer:not(.openScuer):not(.bombScuer) {
    cursor: pointer;
}

.mines-field.is-live .itScuer:not(.openScuer):not(.bombScuer):hover {
    transform: scale(1.05);
    filter: brightness(1.18);
    box-shadow: 0 0 0 1px rgba(196, 150, 90, 0.35);
}

.mines-field.is-live .itScuer:not(.openScuer):not(.bombScuer):active {
    transform: scale(0.93);
    filter: brightness(0.92);
    box-shadow: none;
    transition-duration: 0.08s;
}

.mines-field .itScuer.openScuer,
.mines-field .itScuer.bombScuer {
    cursor: default;
    pointer-events: none;
    transform: none;
    filter: none;
    box-shadow: none;
}

.mines-field .openScuer--gold,
.mines-field .openScuer--low {
    background-color: transparent;
    background-image: url("/assets/games/mines-tile-gold.svg?v=1");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
    color: #fff;
    text-shadow: 0 1px 1px rgba(120, 60, 0, 0.35);
}

.mines-field .mines-coef {
    letter-spacing: -0.02em;
    line-height: 1;
}

.mines-field .bombScuer {
    background-color: #1C120A;
    background-image: url("/assets/games/tabb.svg?v=3");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}

.mines-field .mines-bomb {
    width: 58%;
    height: 58%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

#minesBetCard.is-playing {
    display: none;
}

.mines-bet-action {
    margin-top: 14px;
}

.mines-bet-action #placeBetBtn {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(
        155deg,
        #FFF6CA 0%,
        #FFE192 18%,
        #FFC224 42%,
        #EFA11B 68%,
        #DF7F11 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    gap: 6px;
}

.mines-bet-action #placeBetBtn .star_asset,
.mines-bet-action #placeBetBtn #starsIcon {
    width: 16px;
    height: 16px;
    display: inline-block !important;
}

.mines-bet-action #placeBetBtn #star_count {
    display: inline !important;
    font-weight: 700;
}

/* mines: bet card full width (button below, not beside) */
body.gm-game-page #minesBetCard.bet-card {
    display: block;
}

body.gm-game-page #minesBetCard .bet-card-left {
    width: 100%;
}
