.jackpot-hits {
    background-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0px 15px 15px -1px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    border-radius: 0 0 6px 6px
}

.jackpot-hits .items-6 .item {
    width: calc(16.66% - 15px)
}

.jackpot-hits .items-5 .item {
    width: calc(20% - 15px)
}

.jackpot-hits .items-1 .item,.jackpot-hits .items-2 .item,.jackpot-hits .items-3 .item,.jackpot-hits .items-4 .item {
    width: calc(25% - 15px)
}

.jackpot-hits .carousel-item:after {
    content: "";
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    position: absolute;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.jackpot-hits .item {
    width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 4px 20px;
    color: #959fb1;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0px 15px 15px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
    -webkit-transition: all .3s;
    transition: all .3s;
    white-space: nowrap;
    max-width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 5px;
}

.jackpot-hits .item .user {
    width: 46px;
    height: 46px;
    cursor: pointer;
}

.jackpot-hits .item .user img {
    border-radius: 3px;
    display: block;
    border: 1px solid #1c2028;
    padding: 2px;
    width: 100%;
}

.jackpot-hits .item .hit {
    font-size: 14px;
    font-weight: 700;
    margin: 2px;
}

.jackpot-hits .item.current {
    color: #fff;
    background: #62ca5b;
    border-color: #62ca5b
}

@media (max-width: 820px) {
    .jackpot-hits {
        padding:10px 30px
    }
}

@media (max-width: 820px) {
    .jackpot-hits .item .hit {
        font-size: 10px;
    }
}

.circle {
    text-align: center;
    height: 400px;
    width: 400px;
    display: block;
    position: relative;
    margin: 20px 0;
}

.fix-circle {
    position: relative;
    z-index: 2;
    /* transform: rotateY(-180deg); */
}

.circle_jackpot {
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    display: block;
    width: 400px;
    height: 400px;
    transition: all 0 ease 0;
    transform: rotate(0deg)
}

.time .spinner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    z-index: 10;
    bottom: 0;
    display: block;
    margin: auto;
    width: 0px;
    -webkit-transition: -webkit-transform 4s cubic-bezier(0.1, 0.3, 0, 1);
    transition: -webkit-transform 4s cubic-bezier(0.1, 0.3, 0, 1);
    -o-transition: transform 4s cubic-bezier(0.1, 0.3, 0, 1);
    transition: transform 4s cubic-bezier(0.1, 0.3, 0, 1);
    transition: transform 4s cubic-bezier(0.1, 0.3, 0, 1), -webkit-transform 4s cubic-bezier(0.1, 0.3, 0, 1);
}

.time .spinner svg {
    display: block;
    margin: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: default;
    z-index: 1;
    position: relative;
    bottom: 20px;
    width: 35px;
    height: 35px;
    right: calc(35px / 2);
}

.time .block {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0px 0px 20px 0px rgba(25, 29, 36, 0.20);
    border-radius: 100%;
    z-index: 1;
}

.avatars {
    width: 400px;
    height: 400px;
    position: absolute;
    top: 0;
}
.avatars .avatar {
    width: 100%;
    height: 100%;
    position: absolute;
    transform: rotate(19deg);
}
.avatars .avatar img {
    display: table;
    margin: 0 auto;
    width: 35px;
    border-radius: 50%;
    margin-top: 18px;
}

.time .block .title {
    color: #959fb1;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
}

.time .block .value {
    font-size: 42px;
    font-weight: 600;
    color: #f8bf03;
    text-shadow: 0 0 1em #f8bf03;
    font-family: Exo\ 2;
    line-height: 45px;
}

.time .block .line {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px;
}

.winner-block {
    position: absolute;
    z-index: 5;
}
/* =========================================================
   JACKPOT MODERN UI — visual-only override
   Game logic, canvas, rooms, timers and socket flow untouched.
   ========================================================= */
.jackpot-prefix {
    --jp-bg: #070b16;
    --jp-panel: rgba(15, 22, 40, .96);
    --jp-panel-2: rgba(20, 29, 52, .92);
    --jp-border: rgba(114, 86, 255, .32);
    --jp-cyan: #35e7d0;
    --jp-purple: #8057ff;
    --jp-gold: #ffc83d;
    --jp-muted: #8d99b6;
    gap: 16px;
    align-items: stretch;
}

.jackpot-prefix .game-sidebar,
.jackpot-prefix .game-component,
.bets-section .game-stats {
    border: 1px solid var(--jp-border, rgba(114,86,255,.28));
    border-radius: 18px;
    background:
      radial-gradient(circle at 12% 0%, rgba(128,87,255,.13), transparent 34%),
      linear-gradient(160deg, rgba(18,26,48,.98), rgba(7,11,22,.98));
    box-shadow: 0 22px 55px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
    overflow: hidden;
}

.jackpot-prefix .game-sidebar {
    min-width: 286px;
    max-width: 330px;
}

.jackpot-prefix .sidebar-block,
.jackpot-prefix .bet-component,
.jackpot-prefix .bet-form {
    height: 100%;
    background: transparent;
}

.jackpot-prefix .bet-form { padding: 20px; }
.jackpot-prefix .form-label { color: #dce5fb; font-weight: 700; margin-bottom: 9px; }
.jackpot-prefix .input-field {
    height: 52px;
    border: 1px solid rgba(90,231,209,.28) !important;
    border-radius: 12px 12px 0 0 !important;
    background: rgba(3,8,18,.88) !important;
    color: #fff !important;
    font-size: 19px;
    font-weight: 800;
    box-shadow: inset 0 0 20px rgba(0,0,0,.32);
}
.jackpot-prefix .btn-bet-clear { top: 4px; right: 4px; }
.jackpot-prefix .buttons-group {
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(90deg, #3db8da, #59d6e7);
}
.jackpot-prefix .buttons-group .btn-action {
    min-width: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-right: 1px solid rgba(255,255,255,.18);
}
.jackpot-prefix .buttons-group .btn-action:hover { background: rgba(255,255,255,.14); }

.jackpot-prefix .button-group__wrap {
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.025);
}
.jackpot-prefix .button-group-label {
    color: var(--jp-muted);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.jackpot-prefix .rooms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.jackpot-prefix .rooms .btn {
    margin: 0 !important;
    min-height: 42px;
    border-radius: 10px;
    color: #c8d1e6;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
}
.jackpot-prefix .rooms .btn.isActive {
    color: #fff;
    border-color: rgba(53,231,208,.68);
    background: linear-gradient(135deg, rgba(53,231,208,.22), rgba(128,87,255,.22));
    box-shadow: 0 0 22px rgba(53,231,208,.13);
}
.jackpot-prefix .btn-play {
    width: 100%;
    min-height: 58px;
    margin-top: 17px;
    border: 0;
    border-radius: 13px;
    color: #171207;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(180deg, #ffe26e, #e9a91b);
    box-shadow: 0 13px 28px rgba(232,169,27,.23), inset 0 1px rgba(255,255,255,.55);
}
.jackpot-prefix .btn-play:hover { filter: brightness(1.06); transform: translateY(-1px); }
.jackpot-prefix .bet-footer {
    gap: 8px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255,255,255,.06);
    background: rgba(4,8,17,.34);
}
.jackpot-prefix .bet-footer .btn-light {
    border-radius: 10px;
    color: #9ba7c2;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
}

.jackpot-prefix .game-component { flex: 1; min-width: 0; }
.jackpot-prefix .game-block { background: transparent; }
.jackpot-prefix .progress-wrap {
    min-height: 64px;
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(5,10,22,.58);
}
.jackpot-prefix .progress-item {
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(53,231,208,.24);
    background: rgba(13,24,39,.72);
}
.jackpot-prefix .progress-item .title { color: #dbe6fa; font-size: 13px; line-height: 1.45; }
.jackpot-prefix .progress-item.right {
    min-width: 124px;
    text-align: center;
    border-color: rgba(128,87,255,.34);
}

.jackpot-prefix .game-area__wrap,
.jackpot-prefix .game-area,
.jackpot-prefix .game-area-content {
    background: transparent;
}
.jackpot-prefix .game-area-content {
    min-height: 500px;
    padding: 28px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    background:
      radial-gradient(circle at 50% 47%, rgba(128,87,255,.14), transparent 30%),
      radial-gradient(circle at 50% 47%, rgba(53,231,208,.08), transparent 48%),
      linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, auto, 36px 36px, 36px 36px;
}
.jackpot-prefix .circle {
    width: min(430px, 72vw);
    height: min(430px, 72vw);
    max-width: 430px;
    max-height: 430px;
    margin: 10px auto 18px;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(128,87,255,.14));
}
.jackpot-prefix .circle:before,
.jackpot-prefix .circle:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.jackpot-prefix .circle:before {
    inset: -10px;
    border: 1px solid rgba(128,87,255,.28);
    box-shadow: 0 0 38px rgba(128,87,255,.14);
}
.jackpot-prefix .circle:after {
    inset: 12%;
    border: 1px solid rgba(53,231,208,.11);
}
.jackpot-prefix .fix-circle,
.jackpot-prefix .circle_jackpot { width: 100% !important; height: 100% !important; max-width: none; max-height: none; }
.jackpot-prefix .time .block {
    width: 58%;
    height: 58%;
    inset: 21%;
    border: 1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at 35% 25%, rgba(128,87,255,.18), transparent 35%), rgba(5,9,18,.92);
    box-shadow: 0 0 35px rgba(0,0,0,.38), inset 0 0 40px rgba(128,87,255,.07);
}
.jackpot-prefix .time .block .title {
    color: #8e9ab6;
    font-size: 12px;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.jackpot-prefix .time .block .value {
    color: var(--jp-gold);
    font-size: clamp(27px, 4vw, 46px);
    font-weight: 900;
    text-shadow: 0 0 24px rgba(255,200,61,.35);
}
.jackpot-prefix .time .block .line { width: 45%; background: rgba(255,255,255,.08); }
.jackpot-prefix .time .spinner svg {
    width: 42px;
    height: 42px;
    bottom: 23px;
    right: 21px;
    filter: drop-shadow(0 0 10px rgba(255,200,61,.55));
}
.jackpot-prefix .hash {
    max-width: 92%;
    padding: 8px 13px;
    border-radius: 999px;
    color: #8794b1;
    border: 1px solid rgba(255,255,255,.065);
    background: rgba(3,7,15,.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jackpot-prefix .hash .title { color: var(--jp-cyan); font-weight: 800; }

.jackpot-prefix .jackpot-hits {
    padding: 16px 20px;
    border-radius: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(5,9,18,.72);
    box-shadow: none;
}
.jackpot-prefix .jackpot-hits .carousel-item:after { background: rgba(128,87,255,.17); }
.jackpot-prefix .jackpot-hits .item {
    min-width: 76px;
    max-width: 76px;
    padding: 8px;
    border-radius: 12px;
    color: #d7def0;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.jackpot-prefix .jackpot-hits .item .user { width: 44px; height: 44px; }
.jackpot-prefix .jackpot-hits .item .user img { border-radius: 50%; background: #070b16; }
.jackpot-prefix .jackpot-hits .item .hit { color: var(--jp-cyan); }
.jackpot-prefix .jackpot-hits .btn-prev,
.jackpot-prefix .jackpot-hits .btn-next {
    border-radius: 10px;
    border: 1px solid rgba(128,87,255,.28);
    background: rgba(128,87,255,.1);
}

.bets-section { padding-top: 18px; }
.bets-section .game-stats {
    padding: 0;
    border-color: rgba(114,86,255,.24);
}
.bets-section .table-heading {
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(90deg, rgba(128,87,255,.13), rgba(53,231,208,.05));
}
.bets-section .table-heading .th {
    color: #9ba8c5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.bets-section .table-stats-wrap { min-height: 280px !important; }
.bets-section .table tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.bets-section .table tbody tr:hover { background: rgba(128,87,255,.055); }
.bets-section .table td { color: #cbd4e8; }

@media (max-width: 1050px) {
  .jackpot-prefix { flex-direction: column; }
  .jackpot-prefix .game-sidebar { min-width: 0; max-width: none; width: 100%; }
  .jackpot-prefix .bet-form { display: grid; grid-template-columns: 1.15fr .85fr auto; gap: 12px; align-items: end; }
  .jackpot-prefix .bet-form > .form-row { margin: 0; }
  .jackpot-prefix .button-group__wrap { margin: 0; }
  .jackpot-prefix .btn-play { margin: 0; min-width: 180px; }
  .jackpot-prefix .bet-footer { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .section.game-section .container { padding-left: 10px; padding-right: 10px; }
  .jackpot-prefix { gap: 10px; }
  .jackpot-prefix .game-sidebar,
  .jackpot-prefix .game-component { border-radius: 14px; }
  .jackpot-prefix .bet-form { display: block; padding: 14px; }
  .jackpot-prefix .button-group__wrap { margin-top: 14px; }
  .jackpot-prefix .btn-play { margin-top: 14px; width: 100%; min-width: 0; }
  .jackpot-prefix .bet-footer { padding: 10px 13px 14px; }
  .jackpot-prefix .progress-wrap { min-height: 54px; padding: 8px; gap: 6px; }
  .jackpot-prefix .progress-item { padding: 6px 8px; }
  .jackpot-prefix .progress-item .title { font-size: 11px; }
  .jackpot-prefix .progress-item.right { min-width: 94px; }
  .jackpot-prefix .game-area-content { min-height: 390px; padding: 18px 8px 13px; }
  .jackpot-prefix .circle { width: min(310px, 80vw); height: min(310px, 80vw); margin-top: 2px; }
  .jackpot-prefix .time .block .title { font-size: 9px; letter-spacing: .08em; }
  .jackpot-prefix .time .block .value { font-size: clamp(23px, 8vw, 34px); line-height: 1.08; }
  .jackpot-prefix .time .block .line { margin: 6px; }
  .jackpot-prefix .time .spinner svg { width: 31px; height: 31px; bottom: 17px; right: 15px; }
  .jackpot-prefix .hash { font-size: 10px; }
  .jackpot-prefix .jackpot-hits { padding: 11px 13px; }
  .jackpot-prefix .jackpot-hits .item { min-width: 64px; max-width: 64px; }
  .bets-section { padding-top: 10px; }
  .bets-section .table-heading .th,
  .bets-section .table td { font-size: 10px; padding-left: 6px; padding-right: 6px; }
}
