.slot-drop-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1400;
    padding: 1.5rem;
    backdrop-filter: blur(3px);
}

.slot-drop-modal.visible {
    display: flex;
}

.slot-drop-dialog {
    background: var(--color-surface-elevated, #0f172a);
    color: var(--color-text, #f8fafc);
    border-radius: 1.5rem;
    padding: 2rem;
    width: min(720px, 100%);
    box-shadow: 0 25px 50px rgb(15 23 42 / 0.35);
    position: relative;
    overflow: hidden;
}

.slot-drop-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slot-drop-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted, #94a3b8);
    margin-bottom: 1.25rem;
}

.slot-drop-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.slot-drop-track {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.05));
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 140px;
    margin-bottom: 1.5rem;
}

.slot-drop-track::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(248, 250, 252, 0.1);
    border-radius: 1rem;
    pointer-events: none;
}

.slot-drop-track-inner {
    display: flex;
    height: 100%;
    transform: translateX(0);
    transition: transform 7s cubic-bezier(0.17, 0.88, 0.32, 1);
}

.slot-drop-tile {
    width: 140px;
    height: 100%;
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    border-right: 1px solid rgba(148, 163, 184, 0.15);
    gap: 0.5rem;
}

.slot-drop-tile:last-child {
    border-right: none;
}

.slot-drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.slot-drop-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Item Rarity Glows - Applied to parent container to avoid overflow clipping */
.slot-drop-icon:has(img.item-rarity-rare) {
    box-shadow: 0 0 12px 4px rgba(184, 134, 11, 0.6), 0 0 24px 8px rgba(218, 165, 32, 0.4);
    overflow: visible;
}

.slot-drop-icon:has(img.item-rarity-epic) {
    box-shadow: 0 0 12px 4px rgba(220, 38, 38, 0.6), 0 0 24px 8px rgba(239, 68, 68, 0.4);
    overflow: visible;
}

.slot-drop-icon:has(img.item-rarity-legendary) {
    box-shadow: 0 0 12px 4px rgba(107, 33, 168, 0.6), 0 0 24px 8px rgba(124, 58, 237, 0.4);
    overflow: visible;
}

.slot-drop-tile.empty .slot-drop-icon {
    opacity: 0.35;
}

.slot-drop-tile-label {
    font-size: 0.85rem;
    text-align: center;
    padding: 0 0.35rem;
    color: var(--color-text, #f8fafc);
}

.slot-drop-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-primary, #3b82f6);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.75);
    border-radius: 999px;
}

.slot-drop-result {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.slot-drop-result h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slot-drop-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.slot-drop-actions button {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

.slot-drop-primary {
    background: var(--color-primary, #3b82f6);
    color: #fff;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

.slot-drop-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: inherit;
}

@media (max-width: 640px) {
    .slot-drop-dialog {
        padding: 1.25rem;
    }
    
    .slot-drop-track {
        height: 120px;
    }
    
    .slot-drop-tile {
        width: 110px;
        flex-basis: 110px;
    }
}

