/* ======================================================
   🟢 STAKE / ROOBET STYLE PLINKO PYRAMID
   ====================================================== */

.plinko-modal {
    background: linear-gradient(180deg, #0e121d 0%, #090c15 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95), 0 0 50px rgba(16, 185, 129, 0.15);
    transform: scale(0.96) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .plinko-modal {
    transform: scale(1) translateY(0);
}

.plinko-body {
    display: grid;
    grid-template-columns: 1fr 310px;
    min-height: 540px;
}

@media (max-width: 840px) {
    .plinko-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Sol Plinko Piramit Alanı */
.plinko-canvas-container {
    background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.06) 0%, #07090f 80%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 10px;
    border-right: 1px solid #1c2235;
    overflow: hidden;
}

#plinkoCanvas {
    width: 100%;
    height: 440px;
    display: block;
}

/* Alttaki Çarpan Kutuları (Buckets) */
.plinko-buckets-row {
    display: flex;
    gap: 4px;
    width: 100%;
    max-width: 580px;
    margin-top: 6px;
    padding: 0 4px;
    justify-content: space-between;
}

.plinko-bucket {
    flex: 1;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    user-select: none;
}

.plinko-bucket.hit {
    transform: translateY(4px) scale(1.15);
    filter: brightness(1.6);
    box-shadow: 0 0 15px currentColor;
    z-index: 5;
}

/* Risk Butonları */
.risk-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.btn-risk {
    padding: 10px 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: #141828;
    border: 1px solid #20273d;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-risk:hover {
    color: #fff;
    background: #1c2238;
}

.btn-risk.active[data-risk="low"] {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.btn-risk.active[data-risk="medium"] {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-risk.active[data-risk="high"] {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #fb7185;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

/* Plinko Büyük Bırak Butonu */
.btn-plinko-drop {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(16, 185, 129, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-plinko-drop:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -8px rgba(16, 185, 129, 0.7);
}

.btn-plinko-drop:active {
    transform: translateY(1px);
}

/* Sağ Canlı Kazanç Ticker */
.plinko-recent-wins {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

.plinko-win-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: #151928;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

@media (max-width: 840px) {
    .plinko-modal {
        max-width: 100%;
        height: 94vh;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }

    .plinko-body {
        grid-template-columns: 1fr;
        min-height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .plinko-canvas-container {
        height: auto;
        min-height: 310px;
        padding: 12px 8px 8px;
        border-right: none;
        border-bottom: 1px solid #1c2235;
        flex-shrink: 0;
    }

    #plinkoCanvas {
        height: 260px;
        width: 100%;
        max-width: 360px;
    }

    .plinko-buckets-row {
        max-width: 360px;
        gap: 2px;
    }

    .plinko-bucket {
        height: 24px;
        font-size: 9px;
        border-radius: 4px;
    }

    .plinko-controls {
        padding: 16px 14px 24px;
        flex-grow: 1;
    }

    .btn-plinko-drop {
        padding: 15px;
        font-size: 15px;
    }
}
