.mining-root {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 20px;
    pointer-events: all;
    align-self: stretch; /* Use stretch instead of 100% width to avoid padding overflow */
    width: auto;
    overflow: hidden;
}

.lb-title {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #27272a;
    padding: 0 20px 16px 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.mined-blocks-badge {
    background-color: #1a1a1c;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
}

.mined-blocks-icon {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", Poppins, sans-serif;
    color: #f59e0b;
}

.mined-blocks-text {
    font-size: 12px;
    font-weight: 800;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 18px;
}

.mined-blocks-value {
    font-size: 14px;
    font-weight: 900;
    color: #f8fafc;
    line-height: 20px;
}

.nonce-hunt-container {
    align-self: stretch;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 20px;
}

.hash-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #09090b;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Consolas', monospace;
}

.hash-label {
    font-size: 13px;
    color: #71717a;
    text-transform: uppercase;
    text-align: left;
    line-height: 18px;
}

.hash-value {
    font-size: 20px;
    color: #60a5fa;
    letter-spacing: 2px;
    text-align: left;
    white-space: nowrap;
    overflow: visible; /* Ensure it's never hidden */
    line-height: 28px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.target-hash .hash-value {
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.timer-bar {
    width: 100%;
    height: 12px;
    background-color: #27272a;
    border-radius: 6px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background-color: #ef4444;
    transition: width 0.1s linear;
}

.sliders-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.slider-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #a1a1aa;
    line-height: 20px;
}

.custom-slider-track {
    width: 100%;
    height: 16px;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    margin: 4px 0;
    pointer-events: all;
}

.custom-slider-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 8px;
    pointer-events: none;
}

.custom-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: #f8fafc;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Mode Selection Screen */
.selection-screen {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: stretch;
    align-items: center;
    padding: 20px;
}

.selection-title {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.casino-title {
    font-size: 22px;
    font-weight: 900;
    color: #f8fafc;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.selection-title.casino-title {
    margin-top: 10px;
}

.casino-cards {
    margin-top: -6px;
}

.mode-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-self: stretch;
    justify-content: center;
}

.mode-card {
    flex: 1;
    max-width: 250px;
    background-color: #18181b;
    border: 2px solid #27272a;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;

    &:hover {
        transform: translateY(-10px) scale(1.05);
        border-color: #3b82f6;
        background-color: #1e1b4b;
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);

        .mode-icon {
            transform: scale(1.2) rotate(5deg);
        }
    }

    &.classic {
        border-color: #7c2d12;
        background-color: #1c120a;
        &:hover {
            border-color: #f59e0b;
            background-color: #2d1b10;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
        }
    }

    &.hunt {
        border-color: #1d4ed8;
        background-color: #0b1220;
        &:hover {
            border-color: #3b82f6;
            background-color: #111827;
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
        }
    }

    &.relay {
        border-color: #0f766e;
        background-color: #0b1f1e;
        &:hover {
            border-color: #14b8a6;
            background-color: #0f2c2b;
            box-shadow: 0 10px 30px rgba(20, 184, 166, 0.25);
        }
    }

    &.casino-roulette,
    &.casino-blackjack,
    &.casino-slots {
        border-color: #334155;
        background-color: #141821;
        box-shadow: none;
    }

    &.casino-roulette {
        border-color: rgba(239, 68, 68, 0.3);
        background: linear-gradient(160deg, rgba(127, 29, 29, 0.12), rgba(20, 24, 33, 0.95));
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
    }

    &.casino-blackjack {
        border-color: rgba(34, 197, 94, 0.3);
        background: linear-gradient(160deg, rgba(21, 128, 61, 0.12), rgba(20, 24, 33, 0.95));
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.05);
    }

    &.casino-slots {
        border-color: rgba(168, 85, 247, 0.3);
        background: linear-gradient(160deg, rgba(107, 33, 168, 0.12), rgba(20, 24, 33, 0.95));
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.05);
    }

    &.casino-roulette:hover,
    &.casino-blackjack:hover,
    &.casino-slots:hover {
        transform: translateY(-4px) scale(1.02);
        background-color: #1a202b;
    }

    &.casino-roulette:hover {
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: 0 8px 22px rgba(239, 68, 68, 0.18);
    }

    &.casino-blackjack:hover {
        border-color: rgba(34, 197, 94, 0.55);
        box-shadow: 0 8px 22px rgba(34, 197, 94, 0.16);
    }

    &.casino-slots:hover {
        border-color: rgba(168, 85, 247, 0.55);
        box-shadow: 0 8px 22px rgba(168, 85, 247, 0.16);
    }
}

.mode-icon {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0px;
    padding: 0px;
    border-radius: 0px;
    background-color: transparent;
    border: none;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "Twemoji Mozilla", Poppins, sans-serif;
    transition: transform 0.2s;
}

.blackjack-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: linear-gradient(160deg, #111827, #0b1220);
    box-shadow: 0px 2px 10px rgba(2, 6, 23, 0.45);
}

.mode-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.mode-desc {
    font-size: 13px;
    color: #cbd5e1;
    text-align: center;
    line-height: 18px;
}

.back-btn {
    align-self: flex-start;
    background: linear-gradient(160deg, #1f2937, #0f172a);
    border: 1px solid #3b82f6;
    color: #e2e8f0;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 20px;
    pointer-events: all;
    box-shadow: 0 6px 0 #1e3a8a, 0 8px 16px rgba(0,0,0,0.4);
    transition: transform 0.08s, box-shadow 0.1s, background-color 0.1s;

    &:hover {
        background: linear-gradient(160deg, #2563eb, #1e40af);
        color: white;
    }

    &:active {
        transform: translateY(3px);
        box-shadow: 0 2px 0 #1e3a8a, 0 4px 8px rgba(0,0,0,0.35);
    }
}

.back-classic {
    border-color: #f59e0b;
    background: linear-gradient(160deg, #2d1b10, #111827);
    box-shadow: 0 6px 0 #b45309, 0 8px 16px rgba(0,0,0,0.4);
}

.back-hunt {
    border-color: #3b82f6;
    background: linear-gradient(160deg, #0b1220, #111827);
    box-shadow: 0 6px 0 #1e40af, 0 8px 16px rgba(0,0,0,0.4);
}

.back-relay {
    border-color: #14b8a6;
    background: linear-gradient(160deg, #0b1f1e, #0f172a);
    box-shadow: 0 6px 0 #0f766e, 0 8px 16px rgba(0,0,0,0.4);
}

.back-roulette {
    border-color: #ef4444;
    background: linear-gradient(160deg, #1a0b0b, #0b0b0f);
    box-shadow: 0 6px 0 #991b1b, 0 8px 16px rgba(0,0,0,0.4);
}

.back-blackjack {
    border-color: #22c55e;
    background: linear-gradient(160deg, #052e1b, #0a3d23);
    box-shadow: 0 6px 0 #15803d, 0 8px 16px rgba(0,0,0,0.4);
}

.back-slots {
    border-color: #a855f7;
    background: linear-gradient(160deg, #120a1f, #1a1030);
    box-shadow: 0 6px 0 #7c3aed, 0 8px 16px rgba(0,0,0,0.4);
}

/* Updated Roulette Styles */
.roulette-container {
    width: 760px;
    min-width: 760px;
    max-width: 760px;
    height: 200px;
    background-color: #09090b;
    border: 3px solid #3b82f6;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    align-self: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.roulette-container.spinning {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.45);
}

.roulette-container.spinning .roulette-pointer {
    animation: pointerTick 0.08s infinite linear;
}

.roulette-track {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    align-items: center;
    position: absolute;
    height: 100%;
    left: 0px;
    top: 0;
    transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1);
}

.roulette-item {
    width: 170px; /* Must match itemWidth in MiningPanel.razor */
    min-width: 170px;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    padding: 10px; /* The "margin" is now internal padding */
    display: flex;
    justify-content: center;
    align-items: center;
}

.roulette-item-inner {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #18181b;
    border: 3px solid #3b82f6;
    transition: transform 0.3s;
    
    &.winner {
        transform: scale(1.1);
        border-color: #f8fafc;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
        animation: rewardPulse 0.9s ease-in-out infinite;
    }
}

.roulette-item-inner.tier-0 { border-color: #71717a; box-shadow: 0 0 12px rgba(113, 113, 122, 0.35); }
.roulette-item-inner.tier-1 { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.35); }
.roulette-item-inner.tier-2 { border-color: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.35); }
.roulette-item-inner.tier-3 { border-color: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.35); }
.roulette-item-inner.tier-4 { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.35); }

@keyframes rewardPulse {
    0% { transform: scale(1.05); box-shadow: 0 0 18px rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.12); box-shadow: 0 0 28px rgba(255, 255, 255, 0.7); }
    100% { transform: scale(1.05); box-shadow: 0 0 18px rgba(255, 255, 255, 0.4); }
}

.item-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.item-icon.ui-icon {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 30px;
    padding: 0px;
}

.item-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.roulette-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 100%;
    background-color: rgba(248, 250, 252, 0.2);
    border-left: 2px solid white;
    border-right: 2px solid white;
    z-index: 10;
    pointer-events: none;

    &::after {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 15px solid #f8fafc;
    }

    &::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 15px solid #f8fafc;
    }
}

@keyframes pointerTick {
    0% { transform: translate(-50%, -50%) scaleY(1); }
    50% { transform: translate(-50%, -50%) scaleY(0.95); }
    100% { transform: translate(-50%, -50%) scaleY(1); }
}

.game-info-overlay {
    margin-bottom: 15px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.objective-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    align-self: stretch;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);

    .obj-label {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 2px;
        opacity: 0.5;
        text-transform: uppercase;
    }

    .obj-text {
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        text-align: center;
        
        .dot {
            opacity: 0.4;
            margin: 0 8px;
            color: #71717a;
        }
    }

    &.classic {
        border-left: 5px solid #f59e0b;
        background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
        .obj-label { color: #f59e0b; }
        .obj-text { color: #fcd34d; }
    }

    &.hunt {
        border-left: 5px solid #3b82f6;
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
        .obj-label { color: #60a5fa; }
        .obj-text { 
            color: #93c5fd; 
            text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
        }
        animation: subtlePulse 2.5s infinite ease-in-out;
    }

    &.relay {
        border-left: 5px solid #14b8a6;
        background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), transparent);
        .obj-label { color: #2dd4bf; }
        .obj-text { 
            color: #99f6e4; 
            font-size: 14px;
            font-weight: 900;
            text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
        }
    }
}

@keyframes subtlePulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.mini-reward-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    
    .mini-reward {
        font-size: 15px;
        font-weight: 1000;
        padding: 4px 8px;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        border-left: 3px solid #71717a;
        
        &.tier-0 { border-color: #71717a; color: #a1a1aa; }
        &.tier-1 { border-color: #3b82f6; color: #93c5fd; }
        &.tier-2 { border-color: #a855f7; color: #d8b4fe; }
        &.tier-3 { border-color: #ef4444; color: #fca5a5; }
        &.tier-4 { border-color: #f59e0b; color: #fcd34d; }
    }
}

.mini-reward-title {
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tactile-start {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 8px;
    border: none;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 0 #1e40af, 0 8px 15px rgba(0,0,0,0.4);
    transition: transform 0.1s, box-shadow 0.1s;
    pointer-events: all;
    
    &:active {
        transform: translateY(4px);
        box-shadow: 0 2px 0 #1e40af, 0 4px 8px rgba(0,0,0,0.4);
    }
}

.mini-reward-tag {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #71717a;
    margin-top: 15px;
    
    .val {
        color: #10b981;
    }
}

.classic-mine-btn {
    position: relative;
}

.mining-reward-popup {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #10b981;
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: rewardFloat 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes rewardFloat {
    0% { transform: translate(-50%, 0); opacity: 0; }
    20% { transform: translate(-50%, -15px); opacity: 1; }
    100% { transform: translate(-50%, -40px); opacity: 0; }
}

/* Relay Puzzle */
.relay-container {
    align-self: stretch;
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 20px;
}

.relay-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-items: center;
}

.relay-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(239, 68, 68, 0.2), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
    margin: 0;
}

.relay-streak {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
    min-width: 120px;
}

.timer-label {
    font-size: 11px;
    color: #fecaca;
}

.timer-val {
    font-size: 16px;
    font-weight: 900;
    color: #f87171;
}

.relay-targets,
.relay-nodes {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.relay-label {
    font-size: 11px;
    font-weight: 800;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.relay-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.relay-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0f172a, #0b1324);
    border: 2px solid #14b8a6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 22px;
    color: #99f6e4;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}

.relay-node-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.relay-node-btn {
    width: 56px;
    height: 56px;
    background: #0b1324;
    border: 2px solid #334155;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.08s, border-color 0.2s, box-shadow 0.2s;

    &:hover {
        border-color: #5eead4;
        box-shadow: 0 0 14px rgba(45, 212, 191, 0.35);
    }

    &:active {
        transform: translateY(2px) scale(0.98);
        border-color: #14b8a6;
        box-shadow: 0 0 12px rgba(20, 184, 166, 0.35);
    }
}

.relay-burst-btn {
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(160deg, #0b3d3a, #0f766e);
    border: 1px solid rgba(20, 184, 166, 0.6);
    color: #e2f5f2;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #0f4c45, 0 8px 18px rgba(0,0,0,0.25);
    transition: transform 0.08s, box-shadow 0.08s, filter 0.1s;

    &:active {
        transform: translateY(3px);
        box-shadow: 0 2px 0 #0f4c45, 0 4px 10px rgba(0,0,0,0.25);
    }

    &.disabled {
        opacity: 0.5;
        cursor: default;
    }
}

.relay-burst-btn:hover:not(.disabled) {
    filter: brightness(1.12);
}

.relay-burst-help {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

/* Casino Panels */
.casino-panel {
    align-self: stretch;
    border-radius: 16px;
    padding: 24px;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.casino-panel.busy .chip,
.casino-panel.busy .bet-controls .chip,
.casino-panel.busy .bet-quick-row .chip {
    pointer-events: none;
    opacity: 0.6;
}

.casino-panel.busy .bet-input,
.casino-panel.busy .bet-input input {
    pointer-events: none;
    opacity: 0.7;
}

.casino-panel.casino-win {
    border-color: rgba(16, 185, 129, 0.65);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 18px 34px rgba(16, 185, 129, 0.25);
    animation: casinoWinPulse 0.48s ease-out;
}

.casino-panel.casino-lose {
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 18px 34px rgba(239, 68, 68, 0.22);
    animation: casinoLosePulse 0.48s ease-out;
}

.casino-panel.casino-push {
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4), 0 14px 30px rgba(15, 23, 42, 0.24);
    animation: casinoPushPulse 0.42s ease-out;
}

@keyframes casinoWinPulse {
    0% { transform: translateY(0px) scale(1); }
    45% { transform: translateY(-2px) scale(1.006); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes casinoLosePulse {
    0% { transform: translateX(0px); }
    25% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0px); }
}

@keyframes casinoPushPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.004); }
    100% { transform: scale(1); }
}

.casino-roulette-panel {
    background: linear-gradient(160deg, #2b1216, #1c1112, #0d1424);
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 12px 40px rgba(127, 29, 29, 0.15) !important;
}

.casino-roulette-panel .casino-title {
    color: #fca5a5;
}

.casino-roulette-panel .casino-rule-title {
    color: #f87171;
}

.casino-roulette-panel .bet-amount {
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.casino-roulette-panel .casino-result,
.casino-roulette-panel .casino-rules {
    border-color: rgba(239, 68, 68, 0.25);
}

.casino-roulette-panel .casino-action.red {
    background: linear-gradient(160deg, #7f1d1d, #b91c1c);
}

.casino-roulette-panel .casino-action.black {
    background: linear-gradient(160deg, #0f172a, #020617);
}

.casino-roulette-panel .casino-action.green {
    background: linear-gradient(160deg, #065f46, #064e3b);
}

.roulette-red {
    color: #f87171;
}

.roulette-black {
    color: #e2e8f0;
}

.roulette-green {
    color: #34d399;
}

.item-icon,
.mini-reward,
.classic-mine-btn {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", Poppins, sans-serif;
}

.casino-blackjack-panel {
    background: linear-gradient(160deg, #052e1b, #0a3d23, #0d1424);
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 12px 40px rgba(21, 128, 61, 0.15) !important;
}

.casino-blackjack-panel .casino-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blackjack-title-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: linear-gradient(160deg, #111827, #0b1220);
}

.blackjack-suit {
    font-family: "Segoe UI Symbol", "Segoe UI", Poppins, sans-serif;
    font-weight: 900;
    line-height: 1em;
}

.blackjack-logo .blackjack-suit {
    font-size: 26px;
}

.blackjack-title-badge .blackjack-suit {
    font-size: 18px;
}

.blackjack-suit.spade {
    color: #e2e8f0;
}

.blackjack-suit.heart {
    color: #ef4444;
}

.casino-slots-panel {
    background: linear-gradient(160deg, #120a1f, #1a1030, #0d1424);
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 12px 40px rgba(107, 33, 168, 0.15) !important;
}

.casino-sub {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 22px;
}

.casino-bet-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.casino-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.casino-toolbar .casino-bet-row {
    flex: 1 1 520px;
}

.casino-toolbar .casino-actions {
    flex: 1 1 260px;
    justify-content: flex-end;
}

.casino-stage {
    background-color: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px;
    padding: 14px 0px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.casino-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.casino-footer .casino-delta {
    margin-left: auto;
    font-size: 20px;
}

.casino-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chip-label {
    font-size: 11px;
    font-weight: 800;
    color: #cbd5f5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.chip-row.bet-percent-row {
    margin-top: 0;
}

.chip {
    background-color: #111827;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.08s, box-shadow 0.1s, border-color 0.1s;

    &:hover {
        border-color: #60a5fa;
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
    }

    &:active {
        transform: translateY(2px);
    }
}

.chip.pct {
    background-color: #1f2937;
    border-color: #475569;
}

.chip.selected {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    color: #f8fafc;
}

.bet-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0px;
    padding: 0px;
    border-radius: 0px;
    background-color: transparent;
    border: none;
}

.bet-visual.bet-hybrid {
    gap: 12px;
}

.bet-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;

    TextEntry {
        flex: 1;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid #334155;
        background-color: #0b0f16;
        color: white;
        font-size: 16px;
        font-weight: 800;
        font-family: monospace;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
    }
}

.bet-current {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bet-current span {
    color: #f8fafc;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.bet-input-unit {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bet-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.bet-quick-actions .chip {
    min-width: 58px;
}

.bet-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.bet-visual.bet-split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.bet-visual.bet-split .bet-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 240px;
    min-width: 220px;
}

.bet-visual .chip-row {
    gap: 6px;
}

.bet-visual .chip {
    padding: 5px 8px;
    font-size: 12px;
}

.bet-visual .chip-label {
    margin-top: 0;
}

.bet-visual .bet-amount {
    font-size: 24px;
}

.bet-visual .bet-balance {
    font-size: 11px;
}

.bet-visual .bet-minmax {
    font-size: 10px;
}

.bet-label {
    font-size: 11px;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bet-amount {
    font-size: 28px;
    font-weight: 900;
    color: #f8fafc;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.bet-balance {
    font-size: 12px;
    font-weight: 800;
    color: #a5b4fc;
    letter-spacing: 0.6px;
}

.bet-minmax {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.4px;
}

.bet-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bet-controls-secondary {
    margin-top: -4px;
}

.casino-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.casino-action {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.08s, box-shadow 0.1s, filter 0.1s;

    &.red { background-color: #7f1d1d; border-color: #ef4444; }
    &.black { background-color: #0b0b0f; border-color: #64748b; }
    &.green { background-color: #064e3b; border-color: #10b981; }
    &.gold { background-color: #92400e; border-color: #f59e0b; }
    &.neon { background-color: #7c3aed; border-color: #c4b5fd; }

    &:hover {
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
    }

    &:active {
        transform: translateY(1px);
        box-shadow: none;
    }

    &.disabled {
        opacity: 0.5;
        cursor: default;
        box-shadow: none;
    }
}

.casino-result {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.casino-rules {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.casino-rules.compact,
.slot-rules.compact {
    gap: 4px;
}

.casino-rule-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fcd34d;
}

.casino-rule-row {
    font-size: 14px;
    font-weight: 700;
    color: #fef3c7;
}

.casino-result-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1.2px;
}

.casino-result-value {
    font-size: 18px;
    font-weight: 900;
    color: #e2e8f0;
}

.casino-result-value.spinning {
    animation: spinPulse 0.6s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes spinPulse {
    0% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 0.7; transform: translateY(0); }
}

.casino-result-msg {
    font-size: 12px;
    color: #a1a1aa;
}

.casino-delta {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.casino-delta.show {
    opacity: 1;
    transform: translateY(0px) scale(1);
    animation: casinoDeltaFloat 0.52s ease-out;
}

.casino-win .casino-delta {
    color: #34d399;
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
}

.casino-lose .casino-delta {
    color: #f87171;
    text-shadow: 0 0 16px rgba(248, 113, 113, 0.42);
}

.casino-push .casino-delta {
    color: #cbd5f5;
    text-shadow: 0 0 12px rgba(148, 163, 184, 0.35);
}

@keyframes casinoDeltaFloat {
    0% { transform: translateY(10px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0px) scale(1); opacity: 1; }
}

.bj-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: transparent;
    border: none;
    border-radius: 0px;
    padding: 0px;
}

.bj-hand {
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 800;
    color: #e2e8f0;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bj-label {
    color: #a7f3d0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    min-width: 70px;
}

.bj-cards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.bj-card {
    min-width: 36px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(248, 250, 252, 0.08);
    color: #f8fafc;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    border: 1px solid rgba(248, 250, 252, 0.2);
}

.bj-card.back {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #94a3b8;
}

.bj-total {
    min-width: 36px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #f8fafc;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 8px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
    margin-left: 8px;
}

.bj-score {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.slot-reels {
    display: flex;
    gap: 12px;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 0px;
    padding: 4px 0px;
}

.slot-reels.spinning .slot-symbol {
    animation: slotSpin 0.6s linear infinite;
}

.slot-symbol {
    width: 90px;
    height: 70px;
    border-radius: 12px;
    background-color: rgba(11, 11, 24, 0.4);
    border: 1px solid rgba(196, 181, 253, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 400;
    color: #f5d0fe;
    font-size: 34px;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "Twemoji Mozilla", Poppins, sans-serif;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.6);
}

@keyframes slotSpin {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.slot-rules {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-rule-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #c4b5fd;
}

.slot-rule-row {
    font-size: 14px;
    font-weight: 700;
    color: #f3e8ff;
}

.relay-reward {
    display: flex;
    align-items: center;
    gap: 10px;
}

.relay-reward-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    min-width: 220px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.reward-label {
    font-size: 11px;
    font-weight: 900;
    color: #bbf7d0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reward-val {
    color: #22c55e;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    min-width: 120px;
    text-align: right;
    font-family: Consolas, monospace;
}

.relay-reward-note {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.relay-result {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.relay-result-title {
    font-size: 14px;
    font-weight: 900;
    color: #e2e8f0;
}

.relay-result-value {
    font-size: 28px;
    font-weight: 900;
    color: #22c55e;
}

/* Classic Core Button Enhancements */
.classic-mine-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: 6px solid #b45309;
    color: white;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: 0px;
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", "Noto Emoji", "Twemoji Mozilla", Poppins, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 0 #92400e, 0 15px 30px rgba(0,0,0,0.5);
    transition: transform 0.1s, box-shadow 0.1s;
    pointer-events: all;
    margin: 40px 0;

    &:active {
        transform: translateY(8px) scale(0.98);
        box-shadow: 0 2px 0 #92400e, 0 5px 15px rgba(0,0,0,0.3);
    }
}

.start-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
    transition: transform 0.1s;
    pointer-events: all;
}

.start-btn:active {
    transform: scale(0.98);
}

/* Nonce Hunt Specific scaling */
.signal-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.signal-label {
    font-size: 15px;
    font-weight: 800;
    color: white;
    text-align: center;
    line-height: 22px;
}

.signal-meter {
    width: 100%;
    height: 24px;
    background-color: #09090b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #27272a;
}

.signal-fill {
    height: 100%;
    transition: width 0.3s ease-out, background-color 0.3s;

    &.signal-low {
        background-color: #ef4444;
    }

    &.signal-mid {
        background-color: #f59e0b;
    }

    &.signal-high {
        background-color: #10b981;
    }

    &.signal-locked {
        background-color: #3b82f6;
        box-shadow: 0 0 15px #3b82f6;
    }
}

/* Classic Mining scaling */
.classic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    align-self: stretch;
    padding: 20px;
}

.classic-hint {
    font-size: 16px;
    color: #a1a1aa;
    font-weight: 500;
    line-height: 24px;
}

/* Premium refresh + .ui-icon support */
.mining-root {
    background-color: transparent;
}

.ui-icon.mode-icon {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 30px;
    padding: 0;
    color: #e2e8f0;
}

.ui-icon.mined-blocks-icon {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 18px;
    padding: 0;
}

.classic-mine-btn .ui-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    font-size: 42px;
    padding: 0;
    color: #fff7db;
}

.mini-reward .ui-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 17px;
    padding: 0;
    margin-right: 6px;
}

.casino-panel {
    background-color: #0d1424;
    border: 1px solid rgba(93, 139, 244, 0.26);
    border-radius: 18px;
}

.casino-title {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 1.3px;
    color: #f8fafc;
}

.casino-sub {
    color: #c7d2fe;
}

.casino-action {
    min-height: 42px;
    min-width: 132px;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 0.6px;
}

.casino-action:hover:not(.disabled) {
    transform: translateY(-1px);
    filter: saturate(1.1);
}

.chip {
    border-radius: 999px;
    min-width: 54px;
    text-align: center;
}

.casino-stage {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
    overflow: hidden;
}

.casino-panel.casino-win .casino-stage::after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(110deg, transparent, rgba(52, 211, 153, 0.22), transparent);
    animation: casinoSweep 0.7s ease-out;
}

.casino-panel.casino-lose .casino-stage::after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(110deg, transparent, rgba(248, 113, 113, 0.20), transparent);
    animation: casinoSweep 0.6s ease-out;
}

@keyframes casinoSweep {
    0% { transform: translateX(-80%); opacity: 0.2; }
    100% { transform: translateX(80%); opacity: 0; }
}

.casino-delta.show {
    animation: casinoDeltaFloat 0.32s ease-out, casinoDeltaPulse 0.45s ease-out;
}

@keyframes casinoDeltaPulse {
    0% { letter-spacing: 0.4px; filter: brightness(1); }
    100% { letter-spacing: 1px; filter: brightness(1.1); }
}

.slot-symbol {
    position: relative;
}

.slot-symbol .ui-icon {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 32px;
    padding: 0;
}

.slot-reels.spinning .slot-symbol .ui-icon {
    animation: slotIconRoll 0.32s linear infinite;
}

@keyframes slotIconRoll {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.classic-progress-bar {
    width: 100%;
    background-color: #18181b;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #27272a;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.progress-label {
    font-size: 14px;
    font-weight: 700;
    color: #71717a;
    text-transform: uppercase;
    line-height: 20px;
}

.progress-value {
    font-size: 14px;
    font-weight: 800;
    color: #f59e0b;
    line-height: 20px;
}

.progress-track {
    width: 100%;
    height: 20px;
    background-color: #09090b;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #f59e0b;
    transition: width 0.1s;
}
.back-classic:hover {
    background: linear-gradient(160deg, #92400e, #2d1b10);
}

.back-hunt:hover {
    background: linear-gradient(160deg, #1d4ed8, #0b1220);
}

.back-relay:hover {
    background: linear-gradient(160deg, #0f766e, #0b1f1e);
}

.back-roulette:hover {
    background: linear-gradient(160deg, #b91c1c, #1a0b0b);
}

.back-blackjack:hover {
    background: linear-gradient(160deg, #16a34a, #052e1b);
}

.back-slots:hover {
    background: linear-gradient(160deg, #7c3aed, #120a1f);
}

/* Casino Premium Refresh (DA-aligned with Home/Market) */
.casino-panel {
    width: 100%;
    max-width: 1180px;
    margin: 0px auto;
    padding: 18px 20px;
    gap: 12px;
    background-color: #121214;
    border: 1px solid #27272a;
    border-radius: 16px;
    box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.42);
}

.casino-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #f8fafc;
    text-transform: uppercase;
}

.casino-sub {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    line-height: 19px;
}

.casino-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    background-color: rgba(24, 24, 27, 0.72);
    border: 1px solid rgba(63, 63, 70, 0.62);
    border-radius: 12px;
    padding: 12px;
}

.casino-bet-row {
    flex: 1 1 500px;
    gap: 8px;
}

.casino-label {
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bet-visual {
    gap: 10px;
}

.bet-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}



.bet-input-unit {
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bet-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    min-height: 32px;
    min-width: 54px;
    border-radius: 999px;
    border: 1px solid #334155;
    background-color: #0b1220;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.chip.selected {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 0 16px rgba(56, 189, 248, 0.34);
}

.bet-current {
    font-size: 12px;
    color: #a5b4fc;
    font-weight: 800;
}

.bet-meta-row {
    gap: 8px;
    font-size: 11px;
}

.casino-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    flex: 1 1 260px;
}

.casino-actions .casino-action {
    flex: 1 1 130px;
}

.casino-slots-panel .casino-actions .casino-action {
    flex: 0 0 220px;
    max-width: 240px;
}

.casino-slots-panel .casino-actions {
    justify-content: center;
    align-items: center;
}

.casino-action {
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    color: #f8fafc;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.casino-action.red {
    background: linear-gradient(160deg, #2b1216, #3f1b22);
    border-color: rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.casino-action.black {
    background: linear-gradient(160deg, #0f172a, #1e293b);
    border-color: rgba(148, 163, 184, 0.45);
    color: #e2e8f0;
}

.casino-action.green {
    background: linear-gradient(160deg, #10271d, #14452f);
    border-color: rgba(74, 222, 128, 0.45);
    color: #bbf7d0;
}

.casino-action.gold {
    background: linear-gradient(160deg, #2b2210, #453416);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fcd34d;
}

.casino-action.neon {
    background: linear-gradient(160deg, #14223f, #1e3a66);
    border-color: rgba(96, 165, 250, 0.5);
    color: #bfdbfe;
}

.casino-action:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
}

.casino-action.disabled {
    opacity: 0.42;
}

.casino-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 104px;
    border: 1px solid rgba(71, 85, 105, 0.38);
    border-radius: 12px;
    background-color: rgba(9, 12, 20, 0.78);
    padding: 10px 12px;
}

.casino-result-title {
    font-size: 11px;
    letter-spacing: 1.1px;
    color: #94a3b8;
}

.casino-result-value {
    font-size: 24px;
    font-weight: 900;
    color: #f8fafc;
}

.casino-result-msg {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.casino-delta {
    font-size: 24px;
    font-weight: 900;
}

.bj-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background-color: rgba(9, 12, 20, 0.78);
    border: 1px solid rgba(71, 85, 105, 0.38);
    border-radius: 12px;
}

.bj-hand {
    min-height: 78px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 8px 10px;
    background-color: rgba(24, 24, 27, 0.72);
}

.bj-label {
    min-width: 86px;
    text-align: right;
    color: #bbf7d0;
}

.bj-card {
    min-width: 48px;
    height: 64px;
    border-radius: 10px;
    font-size: 22px;
}

.bj-total {
    min-width: 44px;
    font-size: 22px;
}

.slot-reels {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    max-width: 760px;
    margin: 0px auto;
    padding: 10px;
    border: 1px solid rgba(71, 85, 105, 0.38);
    border-radius: 12px;
    background-color: rgba(9, 12, 20, 0.78);
}

.slot-reels .slot-symbol {
    flex: 1 1 0%;
}

.slot-symbol {
    width: 100%;
    min-height: 94px;
    border-radius: 12px;
    border: 1px solid rgba(196, 181, 253, 0.40);
    background-color: rgba(17, 24, 39, 0.92);
    font-size: 42px;
}

.slot-rule-row,
.casino-rule-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

/* Final polish: relay emojis + casino focus + readable bet input */
.relay-badge,
.relay-node-btn {
    width: 62px;
    height: 62px;
}

.relay-badge .ui-icon,
.relay-node-btn .ui-icon {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 30px;
    padding: 0px;
}

.casino-panel {
    max-width: 1320px;
    margin: 0px auto;
    padding: 24px 26px;
    gap: 16px;
}

.casino-title {
    font-size: 28px;
}

.casino-sub {
    font-size: 14px;
    line-height: 20px;
}

.casino-toolbar {
    gap: 14px;
    padding: 14px;
}

.casino-stage {
    min-height: 150px;
    padding: 14px 16px;
}

.casino-actions .casino-action {
    min-height: 56px;
}





.slot-reels {
    max-width: 900px;
}

.slot-symbol {
    min-height: 108px;
    font-size: 48px;
}
