:root {
    --neon-purple: #6a3dff;
    --neon-purple-glow: 0 0 8px rgba(106, 61, 255, 0.6);
    --bg-gradient: radial-gradient(ellipse at center, #0a0a14 0%, #05020a 80%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: white;
    min-height: 100vh;
}

.game-window {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.content {
    align-items: center;
    justify-content: center;
    display: flex;
}

.game-area {
    border: 1px solid rgba(106, 61, 255, 0.15);
}


.bet-group {
    position: relative;
}

.bet-input {
    padding: 12px 96px 12px 44px;
    border: 1px solid rgba(106, 61, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.bet-input:focus {
    outline: none;
    border-color: rgba(106, 61, 255, 0.6);
    box-shadow: var(--neon-purple-glow);
}

.bet-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #f1c40f;
}

.bet-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.bet-chip {
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid rgba(229, 231, 235, 0.4);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-chip:hover {
    background: rgba(106, 61, 255, 0.2);
    border-color: rgba(106, 61, 255, 0.4);
}

.bet-button {
    background: linear-gradient(135deg, #6a3dff, #8b66ff);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.bet-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), var(--neon-purple-glow);
}

.bet-button:active:not(:disabled) {
    transform: translateY(0);
}

.bet-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


canvas {
    width: 100%;
    height: auto;
    display: block;
}

#plinkosWrapper {
    position: relative;
}

.plinko-bg {
    background: radial-gradient(ellipse at 50% 40%, rgba(106, 61, 255, 0.04) 0%, transparent 70%);
}


.slot-label {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.slot-label.animate-multiplier {
    animation: slotPop 0.5s ease;
}

@keyframes slotPop {
    0% { transform: translateX(-50%) scale(1); filter: brightness(1); }
    30% { transform: translateX(-50%) scale(1.4); filter: brightness(1.6); }
    60% { transform: translateX(-50%) scale(1.1); filter: brightness(1.2); }
    100% { transform: translateX(-50%) scale(1); filter: brightness(1); }
}


.my-recent-box {
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
}


.bottom-ui-bar {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(106, 61, 255, 0.2);
    color: #ccc;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 12px 12px;
}

.bottom-ui-bar .left-icons button {
    color: #cbd5e1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.bottom-ui-bar .left-icons button:hover {
    color: #e5e7eb;
}

.right-label {
    font-size: 13px;
    color: #999;
}


#statsModal {
    border: 1px solid rgba(106, 61, 255, 0.2);
}

#statsChart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 8px 8px;
}


.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
}


.positive { color: #4ade80; }
.negative { color: #f87171; }
