/* ==================== PLINKO GAME ==================== */

#screenPlinko {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 80px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: #08090d;
    min-height: 100vh;
    min-height: 100dvh;
}

#screenPlinko.active { display: flex !important; }

.plinko-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.plinko-scene {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.plinko-canvas-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.plinko-canvas-container canvas {
    display: block;
    max-width: 100%;
}

.plinko-result-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 24px 32px;
    z-index: 10;
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: result-fade-in 0.3s ease;
    white-space: nowrap;
}

.plinko-result-text {
    color: #FFD700;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.plinko-bet-section {
    width: calc(100% - 24px);
    margin: 0 12px;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 20px;
    margin-bottom: 10px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.plinko-balls-select-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    color: #d0daf0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.plinko-balls-select-btn:active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.plinko-playing-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plinko-balls-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.plinko-balls-label {
    color: #6b7daa;
    font-size: 12px;
}

.plinko-balls-count {
    color: #ffd700;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.plinko-balls-total {
    color: #6b7daa;
    font-size: 14px;
}

.plinko-auto-btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: #a0b4e0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

.plinko-auto-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.plinko-drop-btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #f0883e, #f5c842, #ffd700);
    color: #0a0f1a;
    border: 1px solid #f5c84260;
    box-shadow: 0 0 15px rgba(240, 136, 62, 0.3);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-transform: uppercase;
}

.plinko-drop-btn:active { transform: scale(0.97); }
.plinko-drop-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }