/* =====================================================================
   PERCTOOLS storefront - poster grid
   Every cover gets the same crimson duotone, so mismatched key art reads
   as one set. Hover brings the real colours back.
   ===================================================================== */
.adx-store {
    --adx-accent: #9900CC;
    --adx-line: rgba(255, 255, 255, 0.08);
    --adx-text: #f4f4f6;
    --adx-dim: #8d8d96;
    --adx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    font-family: 'Sora', sans-serif;
}

/* ---------- Header ---------- */
.adx-store-head { margin-bottom: clamp(20px, 3vw, 32px); }
.adx-store-title {
    margin: 0;
    font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--adx-text);
}
.adx-store-sub {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--adx-dim);
}

/* ---------- Grid ---------- */
.adx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 24px);
}
@media (max-width: 900px) {
    .adx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Card ---------- */
.adx-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #0c0c0f;
    border: 1px solid var(--adx-line);
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .4s var(--adx-ease), transform .4s var(--adx-ease);
}
.adx-card[hidden] { display: none; }
.adx-card:focus-visible { outline: 2px solid var(--adx-accent); outline-offset: 3px; }

/* Poster */
.adx-poster {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #120608;
    container-type: inline-size;
    isolation: isolate;
}
.adx-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .9s var(--adx-ease), filter .6s var(--adx-ease);
}
/* Crimson duotone: black stays black, light turns red */
.adx-poster-tone { display: none; }
/* Uploaded photos (no PERCTOOLS cover yet) get the crimson duotone so they still match the set */
.adx-poster.is-photo .adx-poster-img { filter: grayscale(1) contrast(1.25) brightness(0.95); }
.adx-poster.is-photo .adx-poster-tone {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #C266FF 0%, #6B008F 55%, #2A0F52 100%);
    mix-blend-mode: multiply;
    transition: opacity .6s var(--adx-ease);
}
.adx-poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 2, 3, 0.3) 0%, rgba(8, 2, 3, 0) 18%, rgba(8, 2, 3, 0) 70%, rgba(8, 2, 3, 0.6) 100%);
}
.adx-poster-status {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px 6px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.adx-poster-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.adx-poster-status.is-ok i { color: #2fd27c; box-shadow: 0 0 8px #2fd27c; }
.adx-poster-status.is-warn i { color: #9900CC; }
.adx-poster-status.is-bad i { color: #ff4d5e; }

/* The game name is the cover */
.adx-poster-word {
    position: absolute;
    z-index: 2;
    left: 6cqw;
    right: 6cqw;
    bottom: 5cqw;
    font-size: min(28cqw, calc(118cqw / var(--len, 5)));
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.045em;
    color: #fff;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    overflow: hidden;
}

/* Footer */
.adx-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 16px;
}
.adx-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adx-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--adx-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adx-meta { font-size: 13px; font-weight: 500; color: var(--adx-dim); }
.adx-apply { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(153,0,204,.5); background: rgba(153,0,204,.12); color: #E7D8FF; font-size: 12px; font-weight: 700; }
.adx-card:hover .adx-apply { background: rgba(153,0,204,.28); border-color: rgba(194,102,255,.7); color: #fff; }
.adx-apply.is-open { background: #9900CC; border-color: #9900CC; color: #fff; }
.adx-card:hover .adx-apply.is-open { background: #9A5BEA; border-color: #C266FF; }
.adx-from { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1; }
.adx-from small { font-size: 12px; font-weight: 500; color: var(--adx-dim); margin-bottom: 5px; }
.adx-from b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }

/* Hover: the real colours come back */
@media (hover: hover) and (pointer: fine) {
    .adx-card:hover { border-color: rgba(153,0,204, 0.55); transform: translateY(-3px); }
    .adx-card:hover .adx-poster-img { transform: scale(1.05); }
    .adx-card:hover .adx-poster.is-photo .adx-poster-img { filter: none; }
    .adx-card:hover .adx-poster-tone { opacity: 0; }
}
.adx-card.is-out { opacity: 0.55; }
.adx-card.is-out .adx-meta { color: #C266FF; }

/* Payment methods */
.adx-pay {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    color: #5e5e67;
}
.adx-pay i { font-size: 26px; }
.adx-pay b { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }

.adx-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--adx-dim);
    border: 1px dashed var(--adx-line);
    border-radius: 18px;
}

@media (max-width: 640px) {
    .adx-card { border-radius: 14px; }
    .adx-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 12px 14px; }
    .adx-from { flex-direction: row; align-items: baseline; gap: 6px; }
    .adx-from small { margin: 0; }
    .adx-from b { font-size: 17px; }
    .adx-name { font-size: 14.5px; }
    .adx-meta { font-size: 12px; }
    .adx-poster-status { top: 8px; left: 8px; font-size: 11px; padding: 5px 9px 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .adx-card, .adx-poster-img, .adx-poster-tone { transition: none; }
}

/* ---------- Character cards ----------
   A transparent cut-out of the game's character stands on a clean dark/transparent backdrop,
   with the product/game name in bold solid white readable typography IN FRONT of the character. */
.adx-poster.is-char {
    background:
        radial-gradient(85% 70% at 50% 38%, rgba(255, 255, 255, 0.045) 0%, rgba(153,0,204, 0.09) 38%, rgba(8, 8, 11, 0.94) 78%, #070709 100%);
}
.adx-poster-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(52% 40% at 50% 45%, rgba(153,0,204, 0.22), rgba(153,0,204, 0) 72%);
    pointer-events: none;
}
.adx-char {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    filter:
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85))
        drop-shadow(0 0 18px rgba(153,0,204, 0.18));
    transition: transform .6s var(--adx-ease), filter .5s var(--adx-ease);
    pointer-events: none;
}
.adx-poster.is-char .adx-poster-shade {
    z-index: 3;
    background: linear-gradient(
        180deg,
        rgba(6, 6, 8, 0.18) 0%,
        rgba(6, 6, 8, 0) 24%,
        rgba(6, 6, 8, 0) 54%,
        rgba(6, 6, 8, 0.82) 84%,
        rgba(6, 6, 8, 0.96) 100%
    );
    pointer-events: none;
}
.adx-poster.is-char .adx-poster-word {
    z-index: 4;
    top: auto;
    bottom: 5.5cqw;
    left: 5cqw;
    right: 5cqw;
    text-align: center;
    font-size: min(24cqw, calc(112cqw / var(--len, 5)));
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    -webkit-text-stroke: 0;
    background: none;
    text-shadow:
        0 4px 22px rgba(0, 0, 0, 0.98),
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 32px rgba(0, 0, 0, 0.85);
    pointer-events: none;
}
.adx-poster-status { z-index: 5; }
@media (hover: hover) and (pointer: fine) {
    .adx-card:hover .adx-char {
        transform: translateX(-50%) scale(1.045);
        filter:
            drop-shadow(0 14px 32px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 26px rgba(153,0,204, 0.36));
    }
}
@media (prefers-reduced-motion: reduce) {
    .adx-char, .adx-poster-img { transition: none; }
}

/* ---------- Clean cards (no character uploaded yet): game name is the art ---------- */
.adx-poster.is-clean .adx-poster-word {
    z-index: 2;
    top: 50%;
    bottom: auto;
    transform: translateY(-58%);
    text-align: center;
    color: #fff;
    -webkit-text-stroke: 0;
    background: linear-gradient(180deg, #ffffff 30%, rgba(200, 170, 245, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 6px 24px rgba(153,0,204, 0.35));
}
.adx-poster.is-clean .adx-poster-glow {
    background:
        radial-gradient(60% 45% at 50% 50%, rgba(153,0,204, 0.5), rgba(153,0,204, 0) 72%),
        linear-gradient(180deg, rgba(10,10,10, 0) 55%, rgba(10,10,10, 0.85) 100%);
}


/* ---------- Character cards: one consistent grade, name sits behind the art ---------- */
.adx-poster.is-char .adx-char {
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.7));
}
.adx-poster.is-char .adx-poster-shade {
    background:
        linear-gradient(200deg, rgba(194,102,255, 0.16) 0%, rgba(107,0,143, 0.10) 45%, rgba(10,10,10, 0) 70%),
        linear-gradient(180deg, rgba(10,10,10, 0.25) 0%, rgba(10,10,10, 0) 26%, rgba(10,10,10, 0) 62%, rgba(10,10,10, 0.9) 100%);
}
.adx-poster.is-char .adx-poster-word {
    z-index: 1;
    top: 15cqw;
    bottom: auto;
    font-size: min(30cqw, calc(124cqw / var(--len, 5)));
    color: rgba(255, 255, 255, 0.09);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.09);
    text-shadow: none;
    overflow: visible;
}
@media (hover: hover) and (pointer: fine) {
    .adx-card:hover .adx-poster.is-char .adx-char {
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(153,0,204, 0.45));
    }
}

/* ---------- Reveal cards: clean art by default, the product picture shows on hover / tap ---------- */
.adx-poster.is-reveal {
    background: radial-gradient(85% 70% at 50% 42%, rgba(255,255,255,.04) 0%, rgba(153,0,204,.10) 40%, rgba(8,8,11,.95) 80%, #070709 100%);
}
.adx-poster.is-reveal .adx-poster-glow {
    background: radial-gradient(50% 38% at 50% 55%, rgba(153,0,204,.38), rgba(153,0,204,0) 72%);
    transition: opacity .5s var(--adx-ease);
}
.adx-poster.is-reveal .adx-poster-word {
    z-index: 1;
    top: 15cqw;
    bottom: auto;
    left: 5cqw;
    right: 5cqw;
    text-align: center;
    font-size: min(30cqw, calc(124cqw / var(--len, 5)));
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.03em;
    color: rgba(255,255,255,.09);
    -webkit-text-fill-color: rgba(255,255,255,.09);
    text-shadow: none;
    overflow: visible;
    transition: opacity .5s var(--adx-ease);
}
.adx-mark {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 56%;
    width: 34cqw;
    height: 34cqw;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: .9;
    filter: drop-shadow(0 0 28px rgba(153,0,204,.55)) drop-shadow(0 12px 26px rgba(0,0,0,.7));
    transition: opacity .5s var(--adx-ease), transform .6s var(--adx-ease);
    pointer-events: none;
}
.adx-poster.is-reveal .adx-poster-img {
    z-index: 3;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .45s var(--adx-ease), transform .7s var(--adx-ease);
}
.adx-poster.is-reveal .adx-poster-shade {
    z-index: 4;
    background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,0) 26%, rgba(10,10,10,0) 70%, rgba(10,10,10,.75) 100%);
    pointer-events: none;
}
.adx-peek {
    position: absolute;
    z-index: 5;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    transition: opacity .3s var(--adx-ease);
    pointer-events: none;
}
.adx-peek-t { display: none; }
@media (hover: none) {
    .adx-peek-h { display: none; }
    .adx-peek-t { display: inline; }
}
.adx-poster.is-reveal.is-peek .adx-poster-img { opacity: 1; transform: scale(1); }
.adx-poster.is-reveal.is-peek .adx-mark,
.adx-poster.is-reveal.is-peek .adx-poster-word,
.adx-poster.is-reveal.is-peek .adx-peek { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .adx-card:hover .adx-poster.is-reveal .adx-poster-img { opacity: 1; transform: scale(1); }
    .adx-card:hover .adx-poster.is-reveal .adx-mark { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
    .adx-card:hover .adx-poster.is-reveal .adx-poster-word,
    .adx-card:hover .adx-poster.is-reveal .adx-peek { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .adx-poster.is-reveal .adx-poster-img, .adx-mark { transition: none; }
}

/* ---------- Game grid (SellAuth style): banner, product count, price range ---------- */
.adx-ggrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 18px);
}
@media (max-width: 1024px) { .adx-ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .adx-ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .adx-ggrid { grid-template-columns: 1fr; } }
.adx-gcard {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #16161b;
    border: 1px solid var(--adx-line);
    color: inherit;
    text-decoration: none;
    transition: border-color .3s var(--adx-ease), transform .3s var(--adx-ease), background .3s var(--adx-ease);
    -webkit-tap-highlight-color: transparent;
}
.adx-gcard:focus-visible { outline: 2px solid var(--adx-accent); outline-offset: 3px; }
.adx-gart {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(60% 60% at 50% 50%, rgba(153,0,204,.35), #0c0c0f 75%);
}
.adx-gart img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--adx-ease);
}
.adx-gart-word {
    position: absolute; inset: 0; display: grid; place-items: center;
    padding: 0 8%; text-align: center;
    font-size: clamp(18px, 2.2vw, 26px); font-weight: 900; letter-spacing: -.02em; color: #fff;
}
.adx-gcount {
    position: absolute; left: 10px; bottom: 10px;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(10,10,12,.85); border: 1px solid rgba(255,255,255,.14);
    font-size: 12px; font-weight: 700; color: #fff;
}
.adx-gfoot { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 14px; }
.adx-gname {
    font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adx-grow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adx-gprice { font-size: 15px; font-weight: 700; color: #B266FF; font-variant-numeric: tabular-nums; }
.adx-garrow {
    display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
    color: #d6d6dc; font-size: 16px;
    transition: background .25s var(--adx-ease), border-color .25s var(--adx-ease), color .25s;
}
@media (hover: hover) and (pointer: fine) {
    .adx-gcard:hover { border-color: rgba(153,0,204,.6); background: #1a1622; transform: translateY(-3px); }
    .adx-gcard:hover .adx-gart img { transform: scale(1.04); }
    .adx-gcard:hover .adx-garrow { background: #8A2BE2; border-color: #8A2BE2; color: #fff; }
}

/* ---------- Inside a game: product pictures shown as they are (16:9), no overlay ---------- */
.adx-back {
    display: inline-flex; margin-bottom: 14px;
    font-size: 13px; font-weight: 600; color: var(--adx-dim); text-decoration: none;
}
.adx-back:hover { color: #fff; }
.adx-store--cat .adx-poster { aspect-ratio: 16 / 9; }
.adx-store--cat .adx-poster.is-reveal .adx-poster-img { opacity: 1; transform: none; }
.adx-store--cat .adx-poster.is-reveal .adx-mark,
.adx-store--cat .adx-poster.is-reveal .adx-poster-word,
.adx-store--cat .adx-poster.is-reveal .adx-peek { display: none; }
.adx-store--cat .adx-poster.is-reveal .adx-poster-shade {
    background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 30%);
}
@media (hover: hover) and (pointer: fine) {
    .adx-store--cat .adx-card:hover .adx-poster.is-reveal .adx-poster-img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .adx-gcard, .adx-gart img, .adx-garrow { transition: none; }
}
