/* FoxLand shop specification 1.2 — privilege cards. */
.fox-store-page { container: fox-shop / inline-size; }
.fox-store-page .fox-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}
.fox-store-page .fox-store-product {
    position: relative;
    align-self: start;
    overflow: visible;
    border: 2px solid rgba(var(--product-accent-rgb), .6);
    border-radius: 16px;
    background: var(--fox-tone-as2l1, #110b1a);
    box-shadow: 0 0 0 1px rgba(var(--product-accent-rgb), .06), 0 0 18px rgba(var(--product-accent-rgb), .1);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.fox-store-page .fox-store-product--ronin {
    --product-accent: #e8efff;
    --product-accent-rgb: 232, 239, 255;
}
.fox-store-page .fox-store-product--dayme {
    --product-accent: #ffc65b;
    --product-accent-rgb: 255, 198, 91;
}
.fox-store-page .fox-store-product--shogun {
    --product-accent: #bd62ff;
    --product-accent-rgb: 189, 98, 255;
}
.fox-store-page .fox-store-product--imperator {
    --product-accent: #ff526d;
    --product-accent-rgb: 255, 82, 109;
}
.fox-store-page .fox-store-product:hover,
.fox-store-page .fox-store-product:focus-within {
    border-color: var(--product-accent);
    box-shadow: 0 0 0 1px rgba(var(--product-accent-rgb), .1), 0 0 25px rgba(var(--product-accent-rgb), .22);
    transform: translateY(-2px);
}
.fox-store-page .fox-store-product.is-duration-open { z-index: 20; }
.fox-store-page .fox-store-product__visual {
    aspect-ratio: 896 / 1200;
    border-radius: 14px 14px 0 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.fox-store-page .fox-store-product__visual:focus {
    outline: none;
}
.fox-store-page .fox-store-product__visual:focus-visible {
    outline: 2px solid var(--product-accent);
    outline-offset: -5px;
}
.fox-store-page .fox-store-product__flip {
    transform: rotateY(0deg);
    transition: transform .68s cubic-bezier(.2, .72, .25, 1);
}
.fox-store-page .fox-store-product__visual:hover .fox-store-product__flip,
.fox-store-page .fox-store-product__visual:focus .fox-store-product__flip {
    transform: rotateY(0deg);
}
.fox-store-page .fox-store-product__visual.is-flipped .fox-store-product__flip,
.fox-store-page .fox-store-product__visual.is-flipped:hover .fox-store-product__flip,
.fox-store-page .fox-store-product__visual.is-flipped:focus .fox-store-product__flip {
    transform: rotateY(180deg);
}
.fox-store-page .fox-store-product__face {
    border-radius: 14px 14px 0 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.fox-store-page .fox-store-product__face[aria-hidden="true"] { pointer-events: none; }
.fox-store-page .fox-store-product__front img {
    object-fit: contain;
    object-position: center;
}
.fox-store-page .fox-store-product__front::after {
    background: linear-gradient(180deg, rgba(var(--fox-rgb-ts2l1, 7, 5, 12), .02) 62%, rgba(var(--fox-rgb-ts2l1, 7, 5, 12), .8));
}
.fox-store-page .fox-store-product__topline {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 9px;
    left: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    pointer-events: none;
}
.fox-store-page .fox-store-product__price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: static;
    flex: 0 1 auto;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(var(--product-accent-rgb), .8);
    border-radius: 9px;
    background: rgba(var(--fox-rgb-as2l1, 12, 7, 20), .94);
    color: var(--product-accent);
    box-shadow: 0 0 10px rgba(var(--product-accent-rgb), .2);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}
.fox-store-page .fox-store-product__badge {
    --badge-rgb:var(--fox-rgb-as4l13, 181, 67, 255);
    --badge-a: var(--fox-tone-as3l7, #532095);
    --badge-b: var(--fox-tone-as3l11, #9c33e5);
    --badge-c: var(--fox-tone-as2l10, #6530ca);
    --badge-light: var(--fox-tone-as4l15, #d78cff);
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: linear-gradient(115deg, var(--badge-a), var(--badge-b), var(--badge-c), var(--badge-a)) padding-box,
        linear-gradient(110deg, var(--badge-light), var(--badge-b), var(--badge-light)) border-box;
    background-size: 230% 100%, 260% 100%;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.8;
    letter-spacing: .035em;
    text-shadow: 0 1px 3px rgba(var(--fox-rgb-gs3l1, 15, 5, 29), clamp(0, calc(.8 * var(--fox-glow-strength, 1)), 1));
    animation: fox-shop-badge-flow 5s ease-in-out infinite alternate, fox-shop-badge-glow 3.4s ease-in-out infinite;
}
.fox-store-page .fox-store-product__badge--hit {
    --badge-rgb: 255, 187, 52;
    --badge-a: #80500c;
    --badge-b: #c58b21;
    --badge-c: #996013;
    --badge-light: #ffda82;
    color: #fff3c7;
}
.fox-store-page .fox-store-product__badge::before {
    content: '';
    position: absolute;
    inset: -20% -35%;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 64%);
    transform: translateX(-130%);
    animation: fox-shop-badge-gloss 5.7s ease-in-out infinite;
}
.fox-store-page .fox-store-product:hover .fox-store-product__badge { filter: brightness(1.12); }
.fox-store-page .fox-store-product__hint {
    bottom: 12px;
    color: var(--fox-tone-as3l19, #efdefa);
    font-size: 9px;
    text-shadow: 0 2px 4px var(--fox-tone-gs2l1, #08040e);
}
.fox-store-page .fox-store-product__back {
    padding: 20px;
    color: var(--product-accent);
}
.fox-store-page .fox-store-product__back h2 {
    color: var(--product-accent);
    font-size: clamp(17px, 1.5vw, 23px);
}
.fox-store-page .fox-store-product__back p { font-size: 13px; line-height: 1.5; }
.fox-store-page .fox-store-product__back small { font-size: 8px; color: var(--fox-tone-as1l15, #c3add5); }
.fox-store-page .fox-store-product__actions {
    border-radius: 0 0 14px 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
    padding: 9px;
    background: var(--fox-tone-as2l1, #110b1a);
}
.fox-store-page .fox-store-product .fox-store-buy {
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    padding: 5px 7px;
    border: 1px solid rgba(var(--product-accent-rgb), .8);
    border-radius: 10px;
    background: rgba(var(--product-accent-rgb), .14);
    color: var(--product-accent);
    box-shadow: inset 0 0 12px rgba(var(--product-accent-rgb), .08);
    font-size: 11px;
    line-height: 1.3;
    text-transform: none;
    cursor: pointer;
}
.fox-store-page .fox-store-product .fox-store-buy:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.fox-store-page .fox-store-buy--quick { flex-direction: row; font-size: 12px; }
.fox-store-page .fox-store-product__currency { font-size: 11px; }
.fox-store-page .fox-store-product .fox-store-buy:hover:not(:disabled) {
    background: rgba(var(--product-accent-rgb), .24);
    color: var(--product-accent);
    box-shadow: 0 0 17px rgba(var(--product-accent-rgb), .2);
}
.fox-store-page .fox-store-duration-toggle {
    min-width: 0;
    min-height: 46px;
    padding: 6px 8px;
    border: 1px solid rgba(var(--product-accent-rgb), .55);
    border-radius: 10px;
    background: rgba(var(--product-accent-rgb), .06);
    color: var(--product-accent);
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 0 11px rgba(var(--product-accent-rgb), .08);
}
.fox-store-page .fox-store-duration-toggle:hover:not(:disabled),
.fox-store-page .fox-store-duration-toggle[aria-expanded="true"] {
    border-color: var(--product-accent);
    background: rgba(var(--product-accent-rgb), .14);
    color: var(--product-accent);
    box-shadow: 0 0 16px rgba(var(--product-accent-rgb), .2);
}
.fox-store-page .fox-store-duration-toggle i {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 16px;
    border: 1px solid rgba(var(--product-accent-rgb), .42);
    border-radius: 20px;
    background: var(--fox-tone-as1l1, #100b18);
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, .6);
    transition: background .24s ease, border-color .24s ease;
}
.fox-store-page .fox-store-duration-toggle i::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--product-accent) 60%);
    box-shadow: 0 0 6px rgba(var(--product-accent-rgb), .55);
    transform: translateX(0);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.fox-store-page .fox-store-duration-toggle[aria-expanded="true"] i {
    background: rgba(var(--product-accent-rgb), .18);
    border-color: var(--product-accent);
}
.fox-store-page .fox-store-duration-toggle[aria-expanded="true"] i::after {
    transform: translateX(12px);
    box-shadow: 0 0 9px rgba(var(--product-accent-rgb), .8);
}
.fox-store-page .fox-store-duration-toggle:disabled { opacity: .5; cursor: not-allowed; }
.fox-store-page .fox-store-duration {
    position: absolute;
    z-index: 30;
    right: 8px;
    bottom: calc(100% + 7px);
    left: 8px;
    display: block;
    padding: 12px;
    border: 2px solid var(--fox-tone-as3l13, #a558ed);
    border-radius: 13px;
    background: var(--fox-tone-as2l2, #1a0e29);
    box-shadow: 0 0 22px rgba(var(--fox-rgb-gs3l12, 147, 65, 231), clamp(0, calc(.32 * var(--fox-glow-strength, 1)), 1)), 0 10px 25px rgba(var(--fox-rgb-gs3l1, 6, 2, 12), clamp(0, calc(.5 * var(--fox-glow-strength, 1)), 1));
    transform-origin: bottom center;
    animation: fox-shop-duration-open .2s ease-out both;
}
.fox-store-page .fox-store-duration[hidden],
.fox-store-page .fox-store-duration__select { display: none; }
.fox-store-page .fox-store-duration__label {
    display: block;
    margin-bottom: 8px;
    color: var(--fox-tone-as4l17, #dbaeff);
    font-size: 12px;
    font-weight: 800;
}
.fox-store-page .fox-store-duration__options {
    display: grid;
    gap: 5px;
    max-height: min(216px, 40vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--fox-tone-as3l13, #a459e8) var(--fox-tone-as2l3, #29173b);
}
.fox-store-page .fox-store-duration__option {
    width: 100%;
    padding: 8px 9px;
    border: 1px solid var(--fox-tone-as2l7, #603480);
    border-radius: 8px;
    background: var(--fox-tone-as2l3, #271537);
    color: var(--fox-tone-as3l17, #e0c4f6);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.fox-store-page .fox-store-duration__option:hover:not(:disabled),
.fox-store-page .fox-store-duration__option[aria-selected="true"] {
    border-color: var(--fox-tone-as4l15, #bf79f9);
    background: var(--fox-tone-as2l5, #46215f);
    color: var(--fox-tone-as4l19, #f7e8ff);
    box-shadow: inset 0 0 12px rgba(var(--fox-rgb-gs4l14, 189, 102, 252), clamp(0, calc(.12 * var(--fox-glow-strength, 1)), 1));
}
.fox-store-page .fox-store-duration__option:disabled { opacity: .45; cursor: not-allowed; }
.fox-store-page .fox-store-duration__summary {
    margin: 9px 0;
    color: var(--fox-tone-as2l16, #d4b7e7);
    font-size: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.fox-store-page .fox-store-product .fox-store-buy--configured {
    width: 100%;
    gap: 6px;
    min-height: 40px;
}
.fox-store-page .fox-store-duration-toggle:focus-visible,
.fox-store-page .fox-store-buy:focus-visible,
.fox-store-page .fox-store-duration__option:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #e4b5ff);
    outline-offset: 2px;
}
@keyframes fox-shop-badge-flow {
    from { background-position: 0 50%, 0 50%; }
    to { background-position: 100% 50%, 100% 50%; }
}
@keyframes fox-shop-badge-glow {
    0%, 100% { box-shadow: 0 0 9px rgba(var(--badge-rgb), .42), inset 0 0 8px rgba(var(--badge-rgb), .16); }
    50% { box-shadow: 0 0 18px rgba(var(--badge-rgb), .64), inset 0 0 11px rgba(var(--badge-rgb), .28); }
}
@keyframes fox-shop-badge-gloss {
    0%, 12% { transform: translateX(-130%); }
    48%, 100% { transform: translateX(130%); }
}
@keyframes fox-shop-duration-open {
    from { opacity: 0; transform: translateY(7px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 1120px) {
    .fox-store-page .fox-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .fox-store-page .fox-store-grid { grid-template-columns: minmax(0, 1fr); }
}
@container fox-shop (max-width: 920px) {
    .fox-store-page .fox-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container fox-shop (max-width: 480px) {
    .fox-store-page .fox-store-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .fox-store-page .fox-store-product,
    .fox-store-page .fox-store-product__flip,
    .fox-store-page .fox-store-product__badge,
    .fox-store-page .fox-store-product__badge::before,
    .fox-store-page .fox-store-duration,
    .fox-store-page .fox-store-duration-toggle i,
    .fox-store-page .fox-store-duration-toggle i::after,
    .fox-store-page .fox-store-duration__option {
        animation: none;
        transition: none;
    }
    .fox-store-page .fox-store-product:hover { transform: none; }
}

/* A hidden catalogue card must not be restored by a grid/display skin. */
.fox-store-grid .fox-store-product[hidden] { display: none !important; }
