
.bgs-spinner-wrap {
    --bgs-duration: 32s;
    --bgs-direction: normal;
    position: relative;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bgs-header-bar {
    display: none !important;
}

.bgs-marquee-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 4px 0;
}

.bgs-marquee-shell::before,
.bgs-marquee-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 3;
    pointer-events: none;
}

.bgs-marquee-shell::before {
    left: 0;
    background: linear-gradient(90deg, #040404 0%, rgba(4, 4, 4, 0.97) 30%, rgba(4, 4, 4, 0.76) 62%, rgba(4, 4, 4, 0) 100%);
}

.bgs-marquee-shell::after {
    right: 0;
    background: linear-gradient(270deg, #040404 0%, rgba(4, 4, 4, 0.97) 30%, rgba(4, 4, 4, 0.76) 62%, rgba(4, 4, 4, 0) 100%);
}

.bgs-marquee-track {
    display: flex;
    gap: 22px;
    width: max-content;
    align-items: stretch;
    animation: bgs-scroll var(--bgs-duration) linear infinite;
    animation-direction: var(--bgs-direction);
    will-change: transform;
}

.bgs-pause-hover:hover .bgs-marquee-track {
    animation-play-state: paused;
}

.bgs-card {
    flex: 0 0 auto;
    width: 198px;
}

.bgs-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    min-height: 198px;
    padding: 20px;
    border-radius: 24px;
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 135, 34, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(20, 20, 24, 0.98) 0%, rgba(8, 8, 10, 0.995) 100%);
    border: 1px solid rgba(255, 146, 56, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 14px 34px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 143, 48, 0.035);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.bgs-card-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 152, 72, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 18px 38px rgba(0, 0, 0, 0.42),
        0 0 26px rgba(255, 128, 36, 0.08);
}

.bgs-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,248,240,0.98) 0%, rgba(242,231,218,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.bgs-logo-box img {
    width: 76%;
    height: 76%;
    object-fit: contain;
    display: block;
}

.bgs-logo-fallback {
    color: #8a4a11;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.bgs-card-meta {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.bgs-card-name {
    color: #ffffff;
    font-size: clamp(19px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    min-height: 52px;
    max-height: 52px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.bgs-pill {
    align-self: flex-start;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 148, 61, 0.12);
    background: linear-gradient(180deg, rgba(49, 35, 24, 0.92) 0%, rgba(30, 22, 16, 0.96) 100%);
    color: rgba(255, 224, 191, 0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

@keyframes bgs-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-50% - 11px), 0, 0);
    }
}

@media (max-width: 768px) {
    .bgs-spinner-wrap {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .bgs-marquee-shell::before,
    .bgs-marquee-shell::after {
        width: 54px;
    }

    .bgs-card {
        width: 170px;
    }

    .bgs-card-link {
        min-height: 170px;
        padding: 16px;
        gap: 14px;
        border-radius: 20px;
    }

    .bgs-logo-box {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 18px;
    }

    .bgs-card-name {
        font-size: 19px;
    }

    .bgs-pill {
        font-size: 12px;
        padding: 7px 12px;
    }
}
