/**
 * 礼物全屏特效样式
 *
 * 横幅通知 + SVGA 全屏遮罩
 */

/* ==================== 横幅容器 ==================== */
#ls-gift-banner-container {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

/* ==================== 横幅条 ==================== */
.ge-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.35);
    color: #fff;
    white-space: nowrap;
    pointer-events: auto;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ge-banner-show {
    transform: translateX(0);
    opacity: 1;
}

.ge-banner-hide {
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.3s ease-in;
}

/* 头像 */
.ge-banner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.ge-banner-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    font-size: 16px;
    color: #fff;
}

/* 信息 */
.ge-banner-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.ge-banner-name {
    font-weight: 600;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ge-banner-text {
    opacity: 0.85;
    font-size: 12px;
}

/* 礼物 */
.ge-banner-gift {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    margin-left: 2px;
}

.ge-banner-gift-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.ge-banner-gift-icon {
    font-size: 18px;
}

.ge-banner-gift-name {
    font-size: 12px;
    font-weight: 600;
}

/* ==================== 全屏 SVGA 遮罩 ==================== */
.ge-svga-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
}

.ge-svga-overlay.ge-svga-show {
    opacity: 1;
}

.ge-svga-overlay canvas {
    display: block;
}
