/* X50 modern visual refresh. Game logic, wheel image rotation and pointer markup remain unchanged. */
.game_Wheel.x50-modern-shell {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    border: 1px solid rgba(91, 100, 255, .25);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 34%, rgba(91, 67, 255, .18), transparent 42%),
        linear-gradient(145deg, rgba(16, 20, 39, .98), rgba(8, 11, 23, .99));
    box-shadow: 0 24px 65px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.04);
}
.x50-modern-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 14px;
}
.x50-modern-head h1 {
    margin: 5px 0 0;
    color: #fff;
    font-size: clamp(22px, 2.3vw, 34px);
    line-height: 1;
    letter-spacing: -.03em;
}
.x50-kicker {
    color: #48edcb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}
.x50-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(71, 237, 202, .25);
    border-radius: 999px;
    color: #9fffea;
    background: rgba(31, 205, 168, .08);
    font-size: 11px;
    font-weight: 800;
}
.x50-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #32edb5;
    box-shadow: 0 0 12px #32edb5;
}
.x50-meta.progress-wrap {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    width: auto;
    margin: 0 24px;
    padding: 0;
}
.x50-meta .progress-item {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 160px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.x50-meta .progress-item.right { align-items: flex-end; }
.x50-meta .title {
    color: #aab3c9;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.55;
}
.x50-meta .title span { color: #fff; font-weight: 800; }
.x50-meta .icon-coin { width: 13px; height: 13px; }
.x50-wheel-stage {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 18px 10px;
    transform: none !important;
}
.x50-wheel-stage::before {
    content: '';
    position: absolute;
    width: min(570px, 76vw);
    height: min(570px, 76vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 69, 255, .18), rgba(30, 34, 63, .08) 48%, transparent 70%);
    filter: blur(2px);
}
.wheel-content {
    position: relative;
    width: min(520px, 92%);
    margin: 12px auto;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.wheel-content::before,
.wheel-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.wheel-content::before {
    inset: -12px;
    border: 1px solid rgba(125, 104, 255, .24);
    box-shadow: 0 0 40px rgba(86, 59, 255, .15);
}
.wheel-content::after {
    inset: 12%;
    background: radial-gradient(circle, rgba(9, 12, 25, .18), rgba(9, 12, 25, .05) 62%, transparent 63%);
}
.wheel-content .wheel-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 497px;
    max-height: 497px;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
    will-change: transform;
}
.wheel-content img { display: block; width: 100%; height: auto; }
/* Preserve the existing pointer element and its exact orientation. */
.wheel-content .arrow {
    position: absolute;
    z-index: 8;
    bottom: 10px;
    left: 50%;
    font-size: 32px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 8px rgba(0,0,0,.42));
}
.time .block {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}
.time .block::before {
    content: '';
    position: absolute;
    width: 42%;
    height: 42%;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    background: rgba(8, 11, 24, .88);
    box-shadow: 0 18px 45px rgba(0,0,0,.42), inset 0 0 28px rgba(104,72,255,.12);
}
.time .block .title,
.time .block .value { position: relative; z-index: 1; }
.time .block .title { color: #929bb0; font-size: 14px; font-weight: 600; }
.time .block .value {
    margin-top: 3px;
    color: #ffc94b;
    font-family: Exo\ 2, sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 184, 47, .18);
}
.x50-history { width: 100%; padding: 4px 24px 14px; }
.history_history {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 20px;
    margin: 0;
    overflow: hidden;
}
.history_item {
    flex: 1 1 0;
    width: auto;
    height: 7px;
    min-width: 10px;
    margin: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 10px transparent;
}
.history_item.history_red { background: #f15d78; box-shadow: 0 0 10px rgba(241,93,120,.25); }
.history_item.history_green { background: #54dc76; box-shadow: 0 0 10px rgba(84,220,118,.25); }
.history_item.history_black { background: #343a49; }
.history_item.history_yellow { background: #ffd24d; box-shadow: 0 0 10px rgba(255,210,77,.25); }
.x50-hash {
    width: 100%;
    padding: 13px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    background: rgba(0,0,0,.14);
    color: #8d96aa;
    font-size: 12px;
    text-align: center;
    box-shadow: none;
}
.x50-hash .title { color: #6ee8d3; font-weight: 800; }
.x50-hash .text { overflow-wrap: anywhere; }

/* Modern betting panel without changing its inputs or actions. */
.game-sidebar .sidebar-block,
.game-sidebar .bet-component {
    border-radius: 18px;
}
.game-sidebar .bet-component {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(180deg, rgba(28,32,59,.98), rgba(18,21,40,.98));
    box-shadow: 0 22px 50px rgba(0,0,0,.25);
}
.game-sidebar .bet-form { padding: 20px; }
.game-sidebar .form-label { margin-bottom: 8px; color: #cfd6e6; font-weight: 700; }
.game-sidebar .input-field {
    height: 50px;
    border-color: rgba(115, 92, 255, .3);
    border-radius: 10px 10px 0 0;
    background: #080b14;
    color: #fff;
    font-size: 16px;
}
.game-sidebar .buttons-group { overflow: hidden; border-radius: 0 0 10px 10px; }
.game-sidebar .buttons-group .btn-action { min-width: 0; font-size: 11px; }
.button-group__wrap { margin-top: 20px; }
.button-group-label { color: #9ea7bc; }
.wheel { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.wheel .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 8px 5px;
    border-radius: 10px;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wheel .btn:hover { transform: translateY(-1px); }
.wheel .btn.isActive { box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.22); }
.game-sidebar .btn-play {
    min-height: 56px;
    margin-top: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd15b, #e69a13);
    color: #181109;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(234,157,23,.22);
}
.game-sidebar .bet-footer { border-top: 1px solid rgba(255,255,255,.05); }

/* Bets list refresh */
.bets-section .game-stats {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    background: rgba(17,20,36,.86);
}
.bets-section .table-heading { background: rgba(255,255,255,.035); }
.bets-section .table tr { border-color: rgba(255,255,255,.05); }
.bet-type { display: inline-flex; min-width: 45px; justify-content: center; padding: 5px 9px; border-radius: 999px; font-weight: 800; }
.bet-type.bet_black { color: #b7c0d2; background: rgba(138,150,171,.12); }
.bet-type.bet_red { color: #ff8298; background: rgba(232,99,118,.12); }
.bet-type.bet_green { color: #79e582; background: rgba(98,202,91,.12); }
.bet-type.bet_yellow { color: #ffdb58; background: rgba(255,208,0,.12); }
.history_isAnimate { animation: shiftFromLeft .3s linear; }

@media (max-width: 1099px) {
    .x50-wheel-stage { min-height: 470px; }
    .wheel-content { width: min(430px, 88%); }
}
@media (max-width: 768px) {
    .game_Wheel.x50-modern-shell { border-radius: 17px; }
    .x50-modern-head { padding: 17px 16px 11px; }
    .x50-live { padding: 6px 9px; }
    .x50-meta.progress-wrap { margin: 0 14px; gap: 8px; }
    .x50-meta .progress-item { min-width: 0; flex: 1; padding: 9px 10px; }
    .x50-meta .title { font-size: 10px; }
    .x50-wheel-stage { min-height: 365px; padding: 8px 10px 2px; }
    .wheel-content { width: min(330px, 88vw); }
    .wheel-content .wheel-img { max-width: 330px; max-height: 330px; }
    .wheel-content .arrow { bottom: 0; }
    .time .block .title { font-size: 11px; }
    .x50-history { padding: 2px 14px 11px; }
    .history_history { gap: 5px; }
    .history_item { height: 6px; }
    .x50-hash { padding: 11px 14px; font-size: 10px; }
    .game-sidebar .bet-form { padding: 15px; }
}
@media (max-width: 420px) {
    .x50-modern-head h1 { font-size: 22px; }
    .x50-kicker { font-size: 8px; }
    .x50-wheel-stage { min-height: 315px; }
    .wheel-content { width: min(286px, 79vw); }
    .wheel-content .wheel-img { max-width: 286px; max-height: 286px; }
    .time .block .value { font-size: 31px; }
    .wheel .btn { min-height: 40px; font-size: 12px; }
}

/* 2026-07-24: X50 small visual corrections. */
/* Keep x5 unmistakably green, overriding the old global gold .btn-green skin. */
.button-group__content.wheel .btn.btn-green.btn-light,
.button-group__content.wheel .btn[data-color="green"] {
    background: linear-gradient(180deg, #39e77f 0%, #16a956 100%) !important;
    border-color: #52ef94 !important;
    color: #06150c !important;
    box-shadow: 0 8px 22px rgba(28, 205, 103, .24) !important;
}
.button-group__content.wheel .btn.btn-green.btn-light:hover,
.button-group__content.wheel .btn[data-color="green"]:hover {
    background: linear-gradient(180deg, #4cf28f 0%, #1db963 100%) !important;
    border-color: #77f5aa !important;
}
.button-group__content.wheel .btn.btn-green.btn-light.isActive,
.button-group__content.wheel .btn[data-color="green"].isActive {
    background: linear-gradient(180deg, #55f39a 0%, #18b85f 100%) !important;
    border-color: #a1ffc3 !important;
    box-shadow: 0 0 0 2px rgba(109, 255, 166, .18), 0 0 24px rgba(31, 221, 111, .32) !important;
}

/* Compact the current game counter; remove the large empty card area. */
.x50-meta .progress-item.right {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: flex-start !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border-radius: 11px !important;
}
.x50-meta .progress-item.right .title {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .x50-meta .progress-item.right {
        flex: 0 0 auto !important;
        padding: 7px 9px !important;
    }
}
