/* Shared reward toaster (case opening + shop) */

.case-toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
}

.case-toast-stack .case-toaster {
    position: relative;
    top: auto;
    right: auto;
}

.case-toaster {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #000000;
    z-index: 10000;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(32px, -6px, 0) scale(0.94);
    filter: blur(2px);
    will-change: opacity, transform, filter;
    transition:
        opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-toast-stack .case-toaster,
.case-toaster.case-toaster--in-stack {
    position: relative;
    top: auto;
    right: auto;
}

.case-toaster--visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.case-toaster--hiding {
    opacity: 0;
    transform: translate3d(18px, -4px, 0) scale(0.97);
    filter: blur(1px);
    transition:
        opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .case-toaster {
        transition-duration: 0.01ms;
        filter: none;
        transform: none;
    }
    .case-toaster--visible {
        transform: none;
    }
    .case-toaster--hiding {
        transform: none;
        filter: none;
    }
}

.case-toaster__img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 48px;
}

.case-toaster__texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.case-toaster__rarity {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
}

.case-toaster__title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.rarity--common { color: #5e6c84; }
.rarity--uncommon { color: #2e8b57; }
.rarity--rare { color: #3b82f6; }
.rarity--epic { color: #a855f7; }
.rarity--legendary { color: #f59e0b; }
.rarity--fighter { color: #dc2626; font-weight: 800; }
