.welcome-back {
        position: fixed;
        left: 20px;
        bottom: 24px;
        z-index: 80;
        width: min(420px, calc(100vw - 32px));
        pointer-events: none;
    }
    .welcome-back.is-visible {
        pointer-events: auto;
    }
    .welcome-back__card {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 44px 16px 16px;
        background: #111111;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 0, 255, 0.12), 0 12px 40px rgba(157, 0, 255, 0.18);
        transform-origin: left bottom;
    }
    .welcome-back.is-in .welcome-back__card {
        animation: welcomeBackIn 0.62s cubic-bezier(0.22, 1.2, 0.36, 1) both;
    }
    .welcome-back.is-out .welcome-back__card {
        animation: welcomeBackOut 0.32s ease-in both;
    }
    .welcome-back__icon {
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, rgba(157, 0, 255, 0.28), rgba(255, 0, 255, 0.16));
        color: #FF00FF;
        box-shadow: inset 0 0 0 1px rgba(255, 0, 255, 0.28);
    }
    .welcome-back__hand {
        width: 30px;
        height: 30px;
        transform-origin: 70% 80%;
    }
    .welcome-back.is-in .welcome-back__hand {
        animation: welcomeWave 1.35s ease-in-out 0.35s 2;
    }
    .welcome-back__spark {
        opacity: 0.85;
    }
    .welcome-back__text {
        min-width: 0;
        flex: 1;
    }
    .welcome-back__title {
        margin: 0 0 3px;
        color: #fff;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    .welcome-back__subtitle {
        margin: 0;
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        line-height: 1.4;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }
    .welcome-back__heart {
        width: 15px;
        height: 15px;
        color: #FF00FF;
        flex-shrink: 0;
        transform: translateY(0.5px);
    }
    .welcome-back__close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        border-radius: 8px;
        transition: color 0.15s ease, background 0.15s ease;
    }
    .welcome-back__close svg {
        width: 16px;
        height: 16px;
    }
    .welcome-back__close:hover {
        color: #FF00FF;
        background: rgba(255, 0, 255, 0.1);
    }
    @keyframes welcomeBackIn {
        0% {
            opacity: 0;
            transform: translateY(24px) scale(0.94);
        }
        62% {
            opacity: 1;
            transform: translateY(-5px) scale(1.015);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    @keyframes welcomeBackOut {
        to {
            opacity: 0;
            transform: translateY(16px) scale(0.96);
        }
    }
    @keyframes welcomeWave {
        0%, 100% { transform: rotate(0deg); }
        18% { transform: rotate(16deg); }
        36% { transform: rotate(-10deg); }
        54% { transform: rotate(14deg); }
        72% { transform: rotate(-4deg); }
        86% { transform: rotate(8deg); }
    }
    @media (max-width: 640px) {
        .welcome-back {
            left: 12px;
            right: 12px;
            bottom: 16px;
            width: auto;
        }
        .welcome-back__title {
            font-size: 16px;
        }
        .welcome-back__subtitle {
            font-size: 13px;
        }
    }
