/* =========================================================
   KENO WHEEL
========================================================= */

.wheel-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 80px;
}


/* =========================================================
   HEADER
========================================================= */

.wheel-header {
    text-align: center;
    margin-bottom: 38px;
}

.wheel-header .game-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 14px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.035);

    color: #a8a8b3;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;

    margin-bottom: 15px;
}

.wheel-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(36px, 5vw, 54px);
    line-height: 1;

    font-weight: 800;
    letter-spacing: -0.04em;
}

.wheel-header p {
    margin: 14px 0 0;

    color: #8d8d98;

    font-size: 15px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.wheel-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 360px;

    gap: 24px;

    align-items: start;
}


/* =========================================================
   LEFT GAME CARD
========================================================= */

.wheel-game-card {
    position: relative;

    min-height: 690px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px 35px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(116, 91, 255, 0.075),
            transparent 38%
        ),
        rgba(16, 16, 21, 0.92);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    overflow: hidden;
}


/* =========================================================
   WHEEL WRAPPER
========================================================= */

.wheel-wrapper {
    position: relative;

    width: min(540px, 100%);
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 30px;
}


/* =========================================================
   WHEEL
========================================================= */

.wheel {
    position: relative;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    transform: rotate(0deg);

    will-change: transform;

    transition:
        transform 5.4s cubic-bezier(0.12, 0.72, 0.08, 1);

    filter:
        drop-shadow(0 20px 25px rgba(0, 0, 0, 0.35));

    z-index: 2;
}


/* =========================================================
   SVG
========================================================= */

.wheel-svg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    border-radius: 50%;
}


/* =========================================================
   OUTER RING
========================================================= */

.wheel-outer-ring {
    fill: #111116;

    stroke: rgba(255, 255, 255, 0.13);
    stroke-width: 3;
}

.wheel-inner-ring {
    fill: none;

    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 2;
}


/* =========================================================
   SECTORS
========================================================= */

.wheel-sector-path {
    stroke: rgba(9, 9, 13, 0.9);
    stroke-width: 2;

    vector-effect: non-scaling-stroke;

    transition:
        filter 0.25s ease,
        opacity 0.25s ease;
}

.wheel-sector-path:hover {
    filter: brightness(1.13);
}


/* =========================================================
   SECTOR TEXT
========================================================= */

.wheel-sector-text {
    fill: #ffffff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-weight: 900;

    text-anchor: middle;
    dominant-baseline: middle;

    pointer-events: none;

    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.55);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.wheel-sector-text.normal {
    font-size: 18px;
}

.wheel-sector-text.medium {
    font-size: 15px;
}

.wheel-sector-text.small {
    font-size: 12px;
}


/* =========================================================
   TINY SECTOR LABELS
========================================================= */

.wheel-callout-line {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.5;

    fill: none;

    pointer-events: none;
}

.wheel-callout-dot {
    fill: #ffffff;

    stroke: rgba(0, 0, 0, 0.65);
    stroke-width: 2;

    pointer-events: none;
}

.wheel-callout-text {
    fill: #ffffff;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    font-weight: 900;

    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.8);
    stroke-width: 3px;

    pointer-events: none;
}


/* =========================================================
   CENTER
========================================================= */

.wheel-center {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 88px;
    height: 88px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #292934,
            #111116 68%
        );

    border: 4px solid #0a0a0d;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08),
        0 8px 22px rgba(0, 0, 0, 0.45);

    z-index: 10;

    pointer-events: none;
}

.wheel-center::before {
    content: "";

    position: absolute;

    inset: 7px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.09);
}

.wheel-center span {
    position: relative;

    color: #ffffff;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: -0.05em;
}


/* =========================================================
   POINTER
========================================================= */

.wheel-pointer {
    position: absolute;

    top: -4px;
    left: 50%;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 17px solid transparent;
    border-right: 17px solid transparent;

    border-top: 30px solid #ffffff;

    filter:
        drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));

    z-index: 30;

    font-size: 0;
}

.wheel-pointer::after {
    content: "";

    position: absolute;

    left: -8px;
    top: -28px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   CURRENT MULTIPLIER
========================================================= */

.current-multiplier {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    margin-bottom: 13px;
}

.current-multiplier span {
    color: #73737d;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.current-multiplier strong {
    min-height: 40px;

    color: #ffffff;

    font-size: 31px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -0.04em;
}


/* =========================================================
   RESULT
========================================================= */

.result-message {
    display: block;

    width: fit-content !important;
    max-width: min(90%, 650px);

    min-height: 22px;

    color: #8d8d98;

    font-size: 14px;
    line-height: 1.4;

    text-align: center;

    margin: 0 auto 20px;

    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    white-space: normal;
    overflow: visible;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.result-message.win {
    color: #8fe0a0;
}

.result-message.loss {
    color: #e57e88;
}


/* =========================================================
   SPIN BUTTON
========================================================= */

.spin-button {
    width: min(330px, 100%);
    height: 58px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #dcdce4
        );

    color: #0d0d11;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.08em;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);

    filter: brightness(1.04);

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.32);
}

.spin-button:active:not(:disabled) {
    transform: translateY(1px);
}

.spin-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.wheel-side-card {
    padding: 26px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;

    background: rgba(16, 16, 21, 0.92);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* =========================================================
   PANEL TITLE
========================================================= */

.panel-title {
    margin-bottom: 16px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}


/* =========================================================
   BET BOX
========================================================= */

.bet-box > span {
    display: block;

    margin-bottom: 9px;

    color: #73737d;

    font-size: 11px;
    font-weight: 700;
}

.bet-input-wrap {
    display: flex;
    align-items: center;

    height: 52px;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.035);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.bet-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.18);

    background: rgba(255, 255, 255, 0.05);
}

.bet-input-wrap > span {
    color: #8b8b96;

    font-size: 15px;
    font-weight: 800;

    margin-right: 7px;
}

.bet-input-wrap input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #ffffff;

    font-size: 16px;
    font-weight: 800;
}

.bet-input-wrap input::-webkit-inner-spin-button,
.bet-input-wrap input::-webkit-outer-spin-button {
    margin: 0;
}


/* =========================================================
   QUICK BETS
========================================================= */

.quick-bets {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin-top: 11px;
}

.quick-bets button {
    height: 39px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.035);

    color: #9b9ba5;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.quick-bets button:hover {
    transform: translateY(-1px);

    color: #ffffff;

    background: rgba(255, 255, 255, 0.065);
}

.quick-bets button.active {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.17);

    background: rgba(255, 255, 255, 0.09);
}


/* =========================================================
   POTENTIAL WIN
========================================================= */

.potential-win {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 20px;
    padding: 15px 16px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.025);
}

.potential-win span {
    color: #777781;

    font-size: 11px;
    font-weight: 700;
}

.potential-win strong {
    color: #ffffff;

    font-size: 15px;
    font-weight: 900;
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {
    height: 1px;

    margin: 24px 0;

    background: rgba(255, 255, 255, 0.065);
}


/* =========================================================
   MULTIPLIER LIST
========================================================= */

.multiplier-list {
    display: flex;
    flex-direction: column;

    gap: 7px;

    max-height: 390px;

    overflow-y: auto;

    padding-right: 3px;
}

.multiplier-list::-webkit-scrollbar {
    width: 4px;
}

.multiplier-list::-webkit-scrollbar-track {
    background: transparent;
}

.multiplier-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);

    border-radius: 999px;
}

.multiplier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 43px;

    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.multiplier-row.active {
    border-color: rgba(255, 255, 255, 0.17);

    background: rgba(255, 255, 255, 0.075);
}

.multiplier-row-left {
    display: flex;
    align-items: center;

    gap: 9px;
}

.multiplier-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.multiplier-name {
    color: #c2c2ca;

    font-size: 12px;
    font-weight: 700;
}

.multiplier-chance {
    color: #6f6f79;

    font-size: 10px;
    font-weight: 700;
}

.multiplier-value {
    color: #ffffff;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   HISTORY
========================================================= */

.history-section {
    margin-top: 26px;

    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;

    background: rgba(16, 16, 21, 0.9);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}

.section-heading p {
    margin: 7px 0 0;

    color: #74747e;

    font-size: 12px;
}

.history-list {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 9px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 54px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);
}

.history-item-left {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.history-item-multiplier {
    color: #ffffff;

    font-size: 13px;
    font-weight: 900;
}

.history-item-bet {
    color: #666670;

    font-size: 10px;
}

.history-item-payout {
    font-size: 13px;
    font-weight: 900;
}

.history-item.win .history-item-payout {
    color: #8fe0a0;
}

.history-item.loss .history-item-payout {
    color: #e57e88;
}

.history-empty {
    grid-column: 1 / -1;

    padding: 28px;

    border: 1px dashed rgba(255, 255, 255, 0.07);
    border-radius: 13px;

    color: #666670;

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   NOTIFICATION
   СНИЗУ ПО ЦЕНТРУ
========================================================= */

body .notification {
    position: fixed !important;

    left: 50% !important;
    right: auto !important;

    bottom: 24px !important;
    top: auto !important;

    width: max-content !important;
    max-width: min(420px, calc(100vw - 40px)) !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 10px !important;

    padding: 14px 20px !important;
    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 13px !important;

    background: rgba(18, 18, 23, 0.97) !important;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35) !important;

    opacity: 0 !important;
    visibility: hidden !important;

    transform: translate(-50%, 15px) !important;

    pointer-events: none !important;

    z-index: 9999 !important;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s !important;
}

body .notification.show {
    opacity: 1 !important;
    visibility: visible !important;

    transform: translate(-50%, 0) !important;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s !important;
}

body .notification > span {
    width: 24px !important;
    height: 24px !important;

    min-width: 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 24px !important;

    border-radius: 50% !important;

    background: rgba(143, 224, 160, 0.12) !important;

    color: #8fe0a0 !important;

    font-size: 12px !important;
    font-weight: 900 !important;
}

body .notification strong {
    display: block !important;

    width: auto !important;
    max-width: 340px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    line-height: 1.3 !important;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar.cases-navbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
}

.navbar.cases-navbar .cases-nav-left {
    display: flex;

    align-items: center;

    gap: 24px;
}

.navbar.cases-navbar .cases-nav-right {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-left: auto;
}

/* =========================
   BALANCE
========================= */

.navbar.cases-navbar .balance {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 2px !important;
}

.navbar.cases-navbar .balance strong {
    display: block !important;

    color: #ffffff !important;

    font-size: 15px !important;
    line-height: 1.2 !important;

    font-weight: 900 !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .wheel-layout {
        grid-template-columns: 1fr;
    }

    .wheel-side-card {
        width: 100%;
    }

    .multiplier-list {
        max-height: none;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .wheel-page {
        width: min(100% - 24px, 1180px);

        padding-top: 30px;
    }

    .wheel-game-card {
        min-height: auto;

        padding: 28px 16px 30px;
    }

    .wheel-wrapper {
        width: min(470px, 100%);
    }

    .wheel-center {
        width: 70px;
        height: 70px;
    }

    .wheel-center span {
        font-size: 22px;
    }

    .history-list {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 480px) {

    .wheel-page {
        width: calc(100% - 16px);
    }

    .wheel-header {
        margin-bottom: 25px;
    }

    .wheel-header h1 {
        font-size: 38px;
    }

    .wheel-header p {
        font-size: 13px;
    }

    .wheel-side-card,
    .history-section {
        padding: 20px;
    }

    .wheel-game-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .wheel-wrapper {
        width: 100%;
    }

    .multiplier-list {
        grid-template-columns: 1fr;
    }

    .history-list {
        grid-template-columns: 1fr;
    }

    .spin-button {
        height: 54px;
    }

@media (max-width: 480px) {

    /* остальное */

    .notification {
        left: 50% !important;
        right: auto !important;
        bottom: 12px !important;

        max-width: calc(100vw - 24px) !important;

        padding: 13px 16px !important;
    }

    .notification strong {
        white-space: normal !important;
    }

    .navbar.cases-navbar .balance::before {
        font-size: 10px !important;
    }

    .navbar.cases-navbar .balance strong {
        font-size: 14px !important;
    }
}

}