.sc-upcoming-games {
    --sc-upcoming-primary: #1081df;
    --sc-upcoming-white: #ffffff;
    --sc-upcoming-muted: #c4c8cf;
    --sc-upcoming-section: #1c1e22;
    --sc-upcoming-frame: #25272d;
    --sc-upcoming-border: #30343b;
    --sc-upcoming-font: 'Vazir', 'Vazir', 'Tahoma', sans-serif;

    width: min(1640px, calc(100% - 32px));
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    direction: rtl;
    font-family: var(--sc-upcoming-font);
}

.sc-upcoming-games__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sc-upcoming-games__header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    isolation: isolate;
}

.sc-upcoming-games__bg-title {
    position: absolute;
    left: 50%;
    top: -45px;
    transform: translateX(-50%);
    z-index: -1;
    color: transparent;
    text-align: center;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(143, 150, 163, 0.20);
    font-family: iransansx;
    font-size: 80px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    white-space: nowrap;
    pointer-events: none;
    direction: ltr;
    letter-spacing: 4px;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

.sc-upcoming-games__icon,
.sc-upcoming-games__icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.sc-upcoming-games__title {
    margin: 0;
    color: var(--sc-upcoming-white);
    font-family: var(--sc-upcoming-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.sc-upcoming-games__viewport {
    width: 100%;
    overflow: hidden;
}

.sc-upcoming-games__track {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    direction: ltr;
}

.sc-upcoming-games__track.is-dragging {
    cursor: grabbing;
}

.sc-upcoming-games__strip {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.sc-upcoming-games__card {
    width: 288px;
    flex: 0 0 288px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.sc-upcoming-games__card[href] {
    cursor: pointer;
}

.sc-upcoming-games__card[href]:hover .sc-upcoming-games__image {
    transform: scale(1.04);
}

.sc-upcoming-games__image-wrap {
    position: relative;
    width: 288px;
    height: 135px;
    overflow: hidden;
    border: 2px solid var(--sc-upcoming-border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--sc-upcoming-frame);
}

.sc-upcoming-games__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-upcoming-games__shadow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    background: rgba(25, 26, 30, 0.7);
}

.sc-upcoming-games__badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    direction: ltr;
    height: 28px;
    max-width: 100%;
}

.sc-upcoming-games__badge-label,
.sc-upcoming-games__badge-days {
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sc-upcoming-white);
    font-family: var(--sc-upcoming-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-upcoming-games__badge-label {
    background: var(--sc-upcoming-frame);
    padding: 8px;
    border-radius: 4px 0 0 4px;
}

.sc-upcoming-games__badge-label--cracked {
    background: var(--sc-upcoming-primary);
    border-radius: 4px 4px 4px 4px;
}

.sc-upcoming-games__badge-days {
    background: var(--sc-upcoming-primary);
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
    direction: rtl;
}

.sc-upcoming-games__body {
    position: relative;
    width: 288px;
    height: 48px;
    overflow: hidden;
    border: 2px solid var(--sc-upcoming-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--sc-upcoming-section);
}

.sc-upcoming-games__name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 256px;
    margin: 0;
    color: var(--sc-upcoming-white);
    font-family: var(--sc-upcoming-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
}

.sc-upcoming-games__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
}

.sc-upcoming-games__nav-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: var(--sc-upcoming-frame);
    color: var(--sc-upcoming-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.sc-upcoming-games__nav-btn--prev {
    border-radius: 8px 0 0 8px;
}

.sc-upcoming-games__nav-btn--next {
    border-radius: 8px 0 0 8px;
    transform: rotate(180deg);
}

.sc-upcoming-games__nav-btn img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) saturate(100%) invert(83%) sepia(9%) saturate(333%) hue-rotate(180deg) brightness(94%) contrast(89%);
}

.sc-upcoming-games__nav-btn:hover:not(:disabled) {
    background: #30343b;
}

.sc-upcoming-games__nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sc-upcoming-games__counter {
    width: 56px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: var(--sc-upcoming-frame);
    color: var(--sc-upcoming-muted);
    font-family: var(--sc-upcoming-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    direction: rtl;
}

.sc-upcoming-games__counter-sep {
    width: 16px;
    height: 1px;
    flex: 0 0 16px;
    background: var(--sc-upcoming-muted);
    transform: rotate(-69.2deg);
    transform-origin: center;
}

@media (max-width: 767px) {
    .sc-upcoming-games {
        width: min(288px, calc(100% - 32px));
    }

    .sc-upcoming-games__bg-title {
        top: -14px;
        font-size: 44px;
    }

    .sc-upcoming-games__viewport {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-upcoming-games__nav-btn,
    .sc-upcoming-games__image {
        transition: none !important;
    }
}
