.ez-promo {
    --ez-promo-fox: #f07a1a;
    --ez-promo-gold: #f5b43c;
    --ez-promo-violet: #8b8cff;
    --ez-promo-inner: var(--color-surface-raised, #2a2d33);
    --ez-promo-line: rgba(255, 255, 255, 0.06);
    --ez-promo-mut: var(--color-text-muted, #9095a0);
    position: relative;
    z-index: 5;
    padding: 12px 0 10px;
}

.ez-promo[hidden] {
    display: none !important;
}

.ez-promo__shell {
    padding-left: 16px;
    padding-right: 16px;
}

.ez-promo__inner {
    position: relative;
    background: var(--color-surface, #1e2024);
    border: 1px solid var(--ez-promo-line);
    border-radius: 20px;
    padding: 6px 44px 10px 6px;
}

.ez-promo__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.ez-promo__item {
    --tone: var(--ez-promo-fox);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 52px;
    padding: 0 10px 0 8px;
    border-radius: 15px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ez-promo__item[data-tone="gold"] {
    --tone: var(--ez-promo-gold);
}

.ez-promo__item[data-tone="violet"] {
    --tone: var(--ez-promo-violet);
}

a.ez-promo__item:hover,
.ez-promo__item:focus-within {
    background: var(--ez-promo-inner);
}

a.ez-promo__item:focus-visible,
.ez-promo__item:focus-visible {
    outline: 2px solid var(--tone);
    outline-offset: 2px;
}

.ez-promo__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tone) 14%, transparent);
    color: var(--tone);
}

.ez-promo__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ez-promo__icon svg.fill {
    fill: currentColor;
    stroke: none;
}

.ez-promo__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.ez-promo__text strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text, #ecedef);
}

.ez-promo__text span {
    font-size: 12.5px;
    color: var(--ez-promo-mut);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ez-promo__text b {
    color: var(--tone);
    font-weight: 600;
}

.ez-promo__cta {
    margin-left: auto;
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ez-promo-mut);
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--ez-promo-inner);
    transition: color 0.2s ease, background 0.2s ease;
}

a.ez-promo__item:hover .ez-promo__cta {
    color: var(--color-text, #ecedef);
    background: #33363d;
}

.ez-promo__code {
    margin-left: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 600 12.5px/1 var(--font-sans, system-ui, sans-serif);
    letter-spacing: 0.04em;
    color: var(--color-text, #ecedef);
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--ez-promo-inner);
    border: 1px dashed color-mix(in srgb, var(--ez-promo-violet) 55%, transparent);
    cursor: pointer;
    transition: background 0.2s ease;
}

.ez-promo__code:hover {
    background: #33363d;
}

.ez-promo__code:focus-visible {
    outline: 2px solid var(--ez-promo-violet);
    outline-offset: 2px;
}

.ez-promo__code svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--ez-promo-violet);
    stroke-width: 2;
}

.ez-promo__code.is-copied {
    border-style: solid;
    color: var(--ez-promo-violet);
}

.ez-promo__close {
    position: absolute;
    right: 8px;
    top: 50%;
    translate: 0 -50%;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ez-promo-mut);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ez-promo__close:hover {
    background: var(--ez-promo-inner);
    color: var(--color-text, #ecedef);
}

.ez-promo__close svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

.ez-promo__dots {
    display: none;
}

.ez-promo__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 9px 8px 0;
    font-size: 12px;
    color: var(--ez-promo-mut);
}

.ez-promo__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ez-promo__meta-announce {
    margin-left: auto;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ez-promo__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3bc97a;
    flex: none;
}

html.has-game-hero .ez-promo {
    padding-top: 10px;
}

html.has-game-hero .ez-promo__inner {
    background: color-mix(in srgb, var(--color-surface, #1e2024) 82%, transparent);
    backdrop-filter: blur(8px);
}

@media (max-width: 820px) {
    .ez-promo {
        padding-top: 10px;
    }

    .ez-promo__shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ez-promo__inner {
        padding: 5px 40px 8px 5px;
        border-radius: 18px;
    }

    .ez-promo__track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        border-radius: 14px;
    }

    .ez-promo__track::-webkit-scrollbar {
        display: none;
    }

    .ez-promo__item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        height: 50px;
    }

    .ez-promo__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .ez-promo__text strong {
        font-size: 13.5px;
    }

    .ez-promo__text span {
        font-size: 12px;
    }

    .ez-promo__cta {
        display: none;
    }

    .ez-promo__dots {
        display: flex;
        gap: 4px;
        position: absolute;
        left: 50%;
        bottom: -11px;
        translate: -50% 0;
    }

    .ez-promo__dots i {
        width: 5px;
        height: 5px;
        border-radius: 99px;
        background: #3a3d44;
        transition: width 0.25s ease, background 0.25s ease;
    }

    .ez-promo__dots i.on {
        width: 14px;
        background: var(--ez-promo-fox);
    }

    .ez-promo__meta {
        padding-top: 16px;
        font-size: 11.5px;
    }

    .ez-promo__meta-announce {
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 420px) {
    .ez-promo__text span b {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ez-promo * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
