/* FoxLand shop 1.6 update 1: centered-height title on the left and balance on the right. */
.fox-store-page .fox-store-hero {
    --fox-shop-purple-text: linear-gradient(105deg, var(--fox-tone-ts4l14, #a965ff) 0%, var(--fox-tone-ts4l16, #d5a2ff) 22%, var(--fox-tone-ts4l13, #c04fff) 45%, var(--fox-tone-ts3l13, #9254ec) 68%, var(--fox-tone-ts4l14, #a965ff) 100%);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .55fr);
    grid-template-rows: auto;
    align-items: center;
    justify-content: stretch;
    min-width: 0;
    min-height: 184px;
    gap: 20px;
    padding: 24px clamp(28px, 4vw, 48px);
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: var(--fox-tone-as2l2, #140b21);
    box-shadow: none;
    transition: transform .35s ease;
}

.fox-store-page .fox-store-hero::after {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url('../img/fox/shop-privileges-hero-title-v1.webp?v=bonuses1') center 48% / cover no-repeat;
    transform: scale(1);
    transition: transform .8s ease, filter .8s ease;
    pointer-events: none;
}

.fox-store-page .fox-store-hero:hover::after,
.fox-store-page .fox-store-hero:focus-within::after {
    transform: scale(1.045);
    filter: brightness(1.08);
}

.fox-store-page .fox-store-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .12), rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .54) 42%, rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .52) 64%, rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .38));
    pointer-events: none;
}

.fox-store-page .fox-store-hero__title {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--fox-tone-as4l15, #c78cff);
    font-size: clamp(30px, 3.3vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: center;
    text-shadow: none;
    opacity: .92;
    filter: drop-shadow(0 2px 4px var(--fox-tone-gs2l1, #0e061a)) drop-shadow(0 0 9px rgba(var(--fox-rgb-gs4l13, 166, 72, 255), clamp(0, calc(.45 * var(--fox-glow-strength, 1)), 1)));
}

.fox-store-page .fox-store-hero__balance {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    width: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--fox-tone-as4l15, #c78cff);
    text-decoration: none;
    opacity: .94;
    transition: transform .22s ease, opacity .22s ease;
}

.fox-store-page .fox-store-hero__balance:hover,
.fox-store-page .fox-store-hero__balance:focus-visible {
    border-color: transparent;
    color: var(--fox-tone-as4l17, #dbacff);
    text-decoration: none;
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: none;
}

.fox-store-page .fox-store-hero__balance:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #dcadff);
    outline-offset: 3px;
}

.fox-store-page .fox-store-hero__balance strong,
.fox-store-page .fox-store-hero__balance span {
    min-width: 0;
    margin: 0;
    color: var(--fox-tone-as4l15, #c78cff);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.fox-store-page .fox-store-hero__value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    font-variant-numeric: tabular-nums;
}

.fox-store-page .fox-store-hero__value #fox-store-balance {
    overflow-wrap: anywhere;
    text-align: right;
}

.fox-store-page .fox-store-hero__value .fox-store-hero__currency {
    flex: 0 0 auto;
}

.fox-store-page .fox-store-hero__balance .fox-store-hero__login {
    font-size: 13px;
    text-align: center;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .fox-store-page .fox-store-hero__title,
    .fox-store-page .fox-store-hero__balance span,
    .fox-store-page .fox-store-hero__balance .fox-store-hero__login {
        background: var(--fox-shop-purple-text);
        background-size: 260% 100%;
        background-position: 0 50%;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        animation: fox-shop-purple-shimmer 5.5s ease-in-out infinite alternate;
    }
}

@keyframes fox-shop-purple-shimmer {
    from { background-position: 0 50%; }
    to { background-position: 100% 50%; }
}

@media (max-width: 760px) {
    .fox-store-page .fox-store-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, .55fr);
        grid-template-rows: auto;
        min-height: 194px;
        gap: 12px;
        padding: 24px;
    }

    .fox-store-page .fox-store-hero::after {
        background-position: 47% center;
    }

    .fox-store-page .fox-store-hero::before {
        background: linear-gradient(180deg, rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .2), rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .58) 42%, rgba(var(--fox-rgb-ts2l1, 12, 6, 22), .35));
    }

    .fox-store-page .fox-store-hero__title {
        grid-column: 1;
        grid-row: 1;
        font-size: clamp(22px, 4.9vw, 34px);
    }

    .fox-store-page .fox-store-hero__balance {
        padding: 4px 0;
    }

    .fox-store-page .fox-store-hero__balance span {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fox-store-page .fox-store-hero,
    .fox-store-page .fox-store-hero::after,
    .fox-store-page .fox-store-hero__title,
    .fox-store-page .fox-store-hero__balance,
    .fox-store-page .fox-store-hero__balance span,
    .fox-store-page .fox-store-hero__balance .fox-store-hero__login {
        animation: none;
        transition: none;
    }

    .fox-store-page .fox-store-hero__balance:hover,
    .fox-store-page .fox-store-hero:hover::after,
    .fox-store-page .fox-store-hero:focus-within::after {
        transform: none;
    }
}

/* The title is part of the artwork; keep it visible on narrow banners. */
@media(max-width:620px) {
 .fox-store-page:not(.fox-bonuses-page) .fox-store-hero::after {background-position:10% center;}
 .fox-store-page:not(.fox-bonuses-page) .fox-store-hero__balance {position:absolute !important;top:17px !important;right:15px !important;padding:4px 8px;border-radius:8px;background:rgba(12,6,22,.52);}
 .fox-store-page:not(.fox-bonuses-page) .fox-store-hero__balance span {font-size:14px;}
}
