/* =========================================================
   VERSUS Game Theme
   Compatible with main wallet variables:
   --bg, --card, --soft, --text, --muted, --line,
   --primary, --primary-soft, --primary-dark,
   --accent, --danger, --success, --shadow, --glow
   ========================================================= */

.game-page {
    position: relative;
    min-height: 100vh;
    padding: 16px;
    padding-bottom: 110px;
    color: var(--text, #ffffff);
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 156, 255, .14), transparent 30%),
        radial-gradient(circle at 90% 25%, rgba(0, 229, 255, .12), transparent 28%),
        transparent;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.game-header h5 {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.25px;
    color: var(--text, #ffffff);
}

.game-header small {
    display: block;
    margin-top: 2px;
    color: var(--muted, rgba(255, 255, 255, .62));
    opacity: 1;
}

.game-back {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg,
            rgba(0, 156, 255, .12),
            rgba(0, 229, 255, .08));
    border: 1px solid rgba(0, 212, 255, .16);
    color: var(--text, #ffffff);
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .10),
        0 10px 24px rgba(0, 45, 125, .10);
    transition: .18s ease;
}

.game-back:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(0, 212, 255, .42);
    box-shadow: var(--glow, 0 0 24px rgba(0, 156, 255, .22));
}

.game-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 26px;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .82),
            rgba(244, 248, 255, .68));
    border: 1px solid var(--line, rgba(15, 23, 42, .10));
    box-shadow: var(--shadow, 0 20px 50px rgba(0, 45, 125, .10));
    backdrop-filter: blur(18px);
    overflow: hidden;
}

[data-theme="dark"] .game-card {
    background:
        radial-gradient(circle at top, rgba(0, 156, 255, .12), transparent 42%),
        linear-gradient(180deg,
            rgba(8, 15, 30, .92),
            rgba(3, 9, 21, .86));
    border-color: rgba(255, 255, 255, .08);
    box-shadow:
        var(--shadow, 0 25px 60px rgba(0, 0, 0, .45)),
        var(--glow, 0 0 24px rgba(0, 156, 255, .24));
}

.game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, .16) 45%,
            transparent 70%);
    transform: translateX(-120%);
    animation: versusGameShine 5.8s infinite;
    pointer-events: none;
}

@keyframes versusGameShine {

    0%,
    58% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.game-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.game-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg,
            rgba(0, 156, 255, .18),
            rgba(0, 229, 255, .12));
    border: 1px solid rgba(0, 212, 255, .20);
    color: var(--primary, #009cff);
    font-size: 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 24px rgba(0, 156, 255, .16);
}

.game-score-value {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    text-align: right;
    color: var(--text, #ffffff);
    letter-spacing: -.5px;
}

.game-score-label {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted, rgba(255, 255, 255, .62));
    opacity: 1;
    text-align: right;
}

.spin-result {
    position: relative;
    z-index: 1;
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 17px;
    text-align: center;
    background: var(--soft, rgba(10, 22, 44, .78));
    border: 1px solid var(--line, rgba(255, 255, 255, .08));
    color: var(--text, #ffffff);
    font-size: 15px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.wheel-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding-top: 22px;
    margin-bottom: 22px;
}

.spin-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 10;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid var(--accent, #00d4ff);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, .75));
}

.lucky-spin-wheel {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(0, 212, 255, .24);
    background:
        conic-gradient(from -18deg,
            #006bff 0deg 36deg,
            #00d4ff 36deg 72deg,
            #043bff 72deg 108deg,
            #33b9ff 108deg 144deg,
            #001d8f 144deg 180deg,
            #009cff 180deg 216deg,
            #00e5ff 216deg 252deg,
            #084eff 252deg 288deg,
            #071fb8 288deg 324deg,
            #28c7ff 324deg 360deg);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, .25),
        0 0 32px rgba(0, 156, 255, .28),
        0 0 58px rgba(0, 229, 255, .12);
    transition: transform 4s cubic-bezier(.12, .75, .15, 1);
}

.lucky-spin-wheel::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    pointer-events: none;
}

.wheel-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 20px;
    margin-left: -36px;
    margin-top: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.wheel-label-1 {
    transform: rotate(0deg) translateY(-80px) rotate(0deg);
}

.wheel-label-2 {
    transform: rotate(36deg) translateY(-80px) rotate(-36deg);
}

.wheel-label-3 {
    transform: rotate(72deg) translateY(-80px) rotate(-72deg);
}

.wheel-label-4 {
    transform: rotate(108deg) translateY(-80px) rotate(-108deg);
}

.wheel-label-5 {
    transform: rotate(144deg) translateY(-80px) rotate(-144deg);
}

.wheel-label-6 {
    transform: rotate(180deg) translateY(-80px) rotate(-180deg);
}

.wheel-label-7 {
    transform: rotate(216deg) translateY(-80px) rotate(-216deg);
}

.wheel-label-8 {
    transform: rotate(252deg) translateY(-80px) rotate(-252deg);
}

.wheel-label-9 {
    transform: rotate(288deg) translateY(-80px) rotate(-288deg);
}

.wheel-label-10 {
    transform: rotate(324deg) translateY(-80px) rotate(-324deg);
}

.spin-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 229, 255, .18), transparent 34%),
        var(--card, #080f1e);
    border: 5px solid rgba(255, 255, 255, .16);
    color: var(--text, #ffffff);
    font-size: 18px;
    font-weight: 900;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 0 28px rgba(0, 156, 255, .24);
}

.spin-button {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg,
            var(--primary, #006bff),
            var(--accent, #00d4ff));
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 107, 255, .28);
    transition: .18s ease;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.spin-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

[data-theme="light"] .lucky-spin-wheel,
:root:not([data-theme="dark"]) .lucky-spin-wheel {
    border-color: rgba(0, 107, 255, .18);
}

[data-theme="light"] .spin-center,
:root:not([data-theme="dark"]) .spin-center {
    background: rgba(255, 255, 255, .92);
    color: #07101d;
    border-color: rgba(0, 107, 255, .18);
}

/* =========================================================
   Limbo
   ========================================================= */

.limbo-mobile {
    position: relative;
    min-height: 100vh;
    padding: 14px 12px 96px;
    color: var(--text, #ffffff);
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 156, 255, .16), transparent 32%),
        radial-gradient(circle at 88% 20%, rgba(0, 229, 255, .10), transparent 30%),
        transparent;
}

.limbo-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.limbo-back {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text, #ffffff);
    text-decoration: none;
    background:
        linear-gradient(135deg,
            rgba(0, 156, 255, .14),
            rgba(0, 229, 255, .08));
    border: 1px solid rgba(0, 212, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.limbo-topbar h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text, #ffffff);
}

.limbo-topbar small {
    display: block;
    margin-top: 3px;
    color: var(--muted, rgba(255, 255, 255, .58));
    font-size: 12px;
}

.limbo-balance-mini {
    margin-left: auto;
    min-width: 92px;
    text-align: right;
    padding: 7px 10px;
    border-radius: 14px;
    background: var(--soft, rgba(10, 22, 44, .78));
    border: 1px solid var(--line, rgba(255, 255, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.limbo-balance-mini span {
    display: block;
    font-size: 10px;
    color: var(--muted, rgba(255, 255, 255, .55));
}

.limbo-balance-mini strong {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 900;
    color: var(--text, #ffffff);
}

.limbo-alert {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    font-size: 12px;
    background: rgba(255, 85, 119, .14);
    color: var(--danger, #ff6686);
    border: 1px solid rgba(255, 85, 119, .20);
}

.limbo-screen {
    position: relative;
    text-align: center;
    padding: 18px 14px;
    border-radius: 24px;
    margin-bottom: 10px;
    background:
        radial-gradient(circle at top, rgba(0, 229, 255, .16), transparent 42%),
        linear-gradient(180deg, rgba(0, 107, 255, .18), rgba(3, 9, 21, .24));
    border: 1px solid rgba(0, 212, 255, .16);
    box-shadow:
        0 14px 36px rgba(0, 45, 125, .16),
        var(--glow, 0 0 24px rgba(0, 156, 255, .20));
    overflow: hidden;
}

[data-theme="dark"] .limbo-screen {
    background:
        radial-gradient(circle at top, rgba(0, 229, 255, .14), transparent 42%),
        linear-gradient(180deg, rgba(0, 107, 255, .18), rgba(0, 0, 0, .32));
}

.limbo-screen.win {
    background:
        radial-gradient(circle at top, rgba(74, 222, 128, .20), transparent 42%),
        linear-gradient(180deg, rgba(0, 229, 255, .14), rgba(0, 0, 0, .24));
    border-color: rgba(74, 222, 128, .24);
}

.limbo-screen.lose {
    background:
        radial-gradient(circle at top, rgba(255, 102, 134, .20), transparent 42%),
        linear-gradient(180deg, rgba(255, 85, 119, .14), rgba(0, 0, 0, .24));
    border-color: rgba(255, 102, 134, .24);
}

.limbo-roll-label {
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted, rgba(255, 255, 255, .50));
    margin-bottom: 4px;
    text-transform: uppercase;
}

.limbo-icon {
    font-size: 30px;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, .32));
}

.limbo-result {
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text, #ffffff);
    text-shadow: 0 0 20px rgba(0, 212, 255, .24);
}

.limbo-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted, rgba(255, 255, 255, .58));
}

.limbo-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text, #ffffff);
}

.limbo-message.muted {
    font-weight: 500;
    color: var(--muted, rgba(255, 255, 255, .52));
}

.limbo-progress {
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: rgba(0, 156, 255, .12);
    overflow: hidden;
    margin-bottom: 12px;
}

.limbo-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary, #009cff), var(--accent, #00e5ff));
    box-shadow: 0 0 14px rgba(0, 229, 255, .50);
    animation: limboProgress 1.5s linear infinite;
}

@keyframes limboProgress {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.limbo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 8px;
}

.limbo-payout-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.limbo-stats div,
.limbo-payout-box div {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 15px;
    background: var(--soft, rgba(10, 22, 44, .78));
    border: 1px solid var(--line, rgba(255, 255, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.limbo-stats span,
.limbo-payout-box span {
    display: block;
    font-size: 10px;
    color: var(--muted, rgba(255, 255, 255, .55));
    white-space: nowrap;
}

.limbo-stats strong,
.limbo-payout-box strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 900;
    color: var(--text, #ffffff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.limbo-form-card {
    padding: 12px;
    border-radius: 23px;
    background: var(--card, rgba(8, 15, 30, .85));
    border: 1px solid var(--line, rgba(255, 255, 255, .08));
    box-shadow: var(--shadow, 0 12px 30px rgba(0, 0, 0, .18));
    backdrop-filter: blur(18px);
}

.limbo-section-title {
    margin: 4px 0 9px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted, rgba(255, 255, 255, .58));
}

.limbo-form-card label {
    display: block;
    margin: 8px 0 5px;
    font-size: 11px;
    color: var(--muted, rgba(255, 255, 255, .62));
}

.limbo-form-card input,
.limbo-form-card select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line, rgba(255, 255, 255, .08));
    outline: none;
    border-radius: 14px;
    padding: 0 11px;
    color: var(--text, #ffffff);
    font-size: 13px;
    background: var(--soft, rgba(10, 22, 44, .78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.limbo-form-card input:focus,
.limbo-form-card select:focus {
    border-color: rgba(0, 212, 255, .36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 0 0 3px rgba(0, 212, 255, .10);
}

.limbo-form-card select option {
    color: #07101d;
    background: #ffffff;
}

[data-theme="dark"] .limbo-form-card select option {
    color: #ffffff;
    background: #071324;
}

.limbo-form-card input:disabled,
.limbo-form-card select:disabled {
    opacity: .65;
}

.limbo-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.limbo-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px 14px;
    background:
        linear-gradient(180deg,
            rgba(2, 6, 17, 0),
            rgba(2, 6, 17, .92) 30%);
    backdrop-filter: blur(16px);
}

[data-theme="light"] .limbo-actions,
:root:not([data-theme="dark"]) .limbo-actions {
    background:
        linear-gradient(180deg,
            rgba(237, 244, 255, 0),
            rgba(237, 244, 255, .92) 30%);
}

.limbo-play,
.limbo-auto,
.limbo-stop {
    height: 48px;
    border: none;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 900;
    transition: .18s ease;
}

.limbo-play:hover:not(:disabled),
.limbo-auto:hover:not(:disabled),
.limbo-stop:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.limbo-play {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary, #006bff), var(--accent, #00d4ff));
    box-shadow: 0 12px 26px rgba(0, 107, 255, .24);
}

.limbo-auto {
    color: #ffffff;
    background: linear-gradient(135deg, #003cff, #00a3ff);
    box-shadow: 0 12px 26px rgba(0, 60, 255, .22);
}

.limbo-stop {
    color: #ffffff;
    background: linear-gradient(135deg, var(--danger, #ff5577), #ff2f6d);
    box-shadow: 0 12px 26px rgba(255, 85, 119, .22);
}

.limbo-play:disabled,
.limbo-auto:disabled,
.limbo-stop:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.text-success {
    color: var(--success, #4ade80) !important;
}

.text-danger {
    color: var(--danger, #ff6686) !important;
}

@media (max-width: 480px) {
    .game-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .lucky-spin-wheel {
        width: 230px;
        height: 230px;
    }

    .wheel-label {
        width: 74px;
        margin-left: -37px;
        font-size: 10px;
    }

    .wheel-label-1 {
        transform: rotate(0deg) translateY(-76px) rotate(0deg);
    }

    .wheel-label-2 {
        transform: rotate(36deg) translateY(-76px) rotate(-36deg);
    }

    .wheel-label-3 {
        transform: rotate(72deg) translateY(-76px) rotate(-72deg);
    }

    .wheel-label-4 {
        transform: rotate(108deg) translateY(-76px) rotate(-108deg);
    }

    .wheel-label-5 {
        transform: rotate(144deg) translateY(-76px) rotate(-144deg);
    }

    .wheel-label-6 {
        transform: rotate(180deg) translateY(-76px) rotate(-180deg);
    }

    .wheel-label-7 {
        transform: rotate(216deg) translateY(-76px) rotate(-216deg);
    }

    .wheel-label-8 {
        transform: rotate(252deg) translateY(-76px) rotate(-252deg);
    }

    .wheel-label-9 {
        transform: rotate(288deg) translateY(-76px) rotate(-288deg);
    }

    .wheel-label-10 {
        transform: rotate(324deg) translateY(-76px) rotate(-324deg);
    }

    .spin-center {
        width: 72px;
        height: 72px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .limbo-mobile {
        padding-left: 10px;
        padding-right: 10px;
    }

    .limbo-result {
        font-size: 38px;
    }

    .limbo-stats strong,
    .limbo-payout-box strong {
        font-size: 12px;
    }

    .limbo-form-card input,
    .limbo-form-card select {
        height: 38px;
        font-size: 12px;
    }
}