/* Patch 2.9 client promotion cards and Retro Rewind Alice claim reveal. */
.battle-pass-bottom-widget.client-fighter-shop-promo {
    --promo-accent: #ffd166;
    --promo-accent-strong: #dc8f2f;
    background-position: center, 52% 16%;
}

.battle-pass-bottom-widget.client-free-skin-promo {
    --promo-accent: #ff5aa9;
    --promo-accent-strong: #9e286f;
    background-position: center, 50% 18%;
}

.battle-pass-bottom-widget.client-free-skin-promo.is-claimed {
    --promo-accent: #7ee4c1;
    --promo-accent-strong: #278568;
}

.battle-pass-bottom-widget.client-inkweaver-promo {
    --promo-accent: #4c83ff;
    --promo-accent-strong: #1743a6;
    background-position: center, 50% center;
}

.retro-alice-claim-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 190000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.retro-alice-claim-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.retro-alice-claim-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(4, 6, 10, 0.9);
    backdrop-filter: blur(12px) saturate(0.65);
    -webkit-backdrop-filter: blur(12px) saturate(0.65);
}

.retro-alice-claim-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 54px));
    height: min(690px, calc(100% - 54px));
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0;
    clip-path: polygon(0 5px, 16% 0, 39% 4px, 62% 0, 81% 4px, 100% 1px, 99.6% 96%, 80% 100%, 58% 97%, 33% 100%, 0 98%);
    background: #11151d;
    box-shadow: 0 46px 110px rgba(0, 0, 0, 0.86), 0 0 0 4px rgba(255, 90, 169, 0.25);
    transform: translateY(22px) scale(0.975);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.retro-alice-claim-modal.active .retro-alice-claim-panel { transform: translateY(0) scale(1); }

.retro-alice-claim-art {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #11151d;
}

.retro-alice-claim-art::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 10px;
    background: #06a8b4;
    clip-path: polygon(0 0, 100% 0, 48% 12%, 100% 23%, 35% 37%, 100% 50%, 42% 66%, 100% 79%, 30% 91%, 100% 100%, 0 100%);
}

.retro-alice-claim-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 24%;
    transition: transform 700ms cubic-bezier(0.18, 0.82, 0.2, 1), filter 700ms ease;
}

.retro-alice-vhs-lines {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-size: 100% 8px;
    background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.2) 0 1px, transparent 1px 8px);
    mix-blend-mode: soft-light;
}

.retro-alice-claim-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 72px 62px 64px;
    background: #eee5d2;
    color: #13161b;
}

.retro-alice-claim-copy::before,
.retro-alice-claim-copy::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
}

.retro-alice-claim-copy::before { top: 0; background: #ff3f9a; }
.retro-alice-claim-copy::after { bottom: 0; background: #06a8b4; }

.retro-alice-free-stamp {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 11px;
    border: 2px solid #c91f73;
    color: #c91f73;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    transform: rotate(-1.5deg);
}

.retro-alice-claim-copy h2 {
    margin: 0;
    font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    font-size: clamp(2.7rem, 4vw, 4.9rem);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.retro-alice-claim-copy p {
    max-width: 440px;
    margin: 24px 0 22px;
    color: rgba(19, 22, 27, 0.75);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
}

.retro-alice-value {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 13px 0;
    border-top: 1px solid rgba(19, 22, 27, 0.28);
    border-bottom: 1px solid rgba(19, 22, 27, 0.28);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.retro-alice-value strong { color: #a71863; }

.retro-alice-claim-button {
    width: 100%;
    min-height: 58px;
    border: 2px solid #13161b;
    border-radius: 0;
    background: #c91f73;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    box-shadow: 7px 7px 0 #06a8b4;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.retro-alice-claim-button:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 #06a8b4;
}

.retro-alice-claim-button:disabled { cursor: default; opacity: 0.68; }

.retro-alice-claim-status {
    min-height: 22px;
    margin-top: 16px;
    color: rgba(19, 22, 27, 0.72);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.retro-alice-claim-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 8;
    width: 46px;
    height: 46px;
    border: 2px solid #13161b;
    border-radius: 0;
    background: #eee5d2;
    color: #13161b;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 5px 5px 0 #ff3f9a;
    cursor: pointer;
}

.retro-alice-reveal-ring,
.retro-alice-shards { position: absolute; inset: 0; pointer-events: none; }

.retro-alice-reveal-ring {
    left: 50%;
    top: 50%;
    width: 80px;
    height: 80px;
    inset: auto;
    border: 8px solid #fff;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
}

.retro-alice-shards i {
    --x: 0px;
    --y: -240px;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 34px;
    opacity: 0;
    background: #ff4fa2;
    clip-path: polygon(50% 0, 100% 100%, 0 78%);
}

.retro-alice-shards i:nth-child(2n) { background: #12bfca; }
.retro-alice-shards i:nth-child(3n) { background: #f3cf4d; }
.retro-alice-shards i:nth-child(1) { --x: -250px; --y: -180px; }
.retro-alice-shards i:nth-child(2) { --x: -150px; --y: -260px; }
.retro-alice-shards i:nth-child(3) { --x: -40px; --y: -290px; }
.retro-alice-shards i:nth-child(4) { --x: 100px; --y: -265px; }
.retro-alice-shards i:nth-child(5) { --x: 235px; --y: -190px; }
.retro-alice-shards i:nth-child(6) { --x: 280px; --y: -30px; }
.retro-alice-shards i:nth-child(7) { --x: 240px; --y: 170px; }
.retro-alice-shards i:nth-child(8) { --x: 105px; --y: 250px; }
.retro-alice-shards i:nth-child(9) { --x: -55px; --y: 270px; }
.retro-alice-shards i:nth-child(10) { --x: -190px; --y: 215px; }
.retro-alice-shards i:nth-child(11) { --x: -270px; --y: 70px; }
.retro-alice-shards i:nth-child(12) { --x: -280px; --y: -75px; }

.retro-alice-claim-modal.is-claiming .retro-alice-claim-art img {
    transform: scale(1.045);
    filter: saturate(1.35) brightness(1.08);
}

.retro-alice-claim-modal.is-claiming .retro-alice-reveal-ring {
    animation: retro-alice-ring 850ms cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

.retro-alice-claim-modal.is-claiming .retro-alice-shards i {
    animation: retro-alice-shard 900ms cubic-bezier(0.15, 0.75, 0.22, 1) forwards;
}

.retro-alice-claim-modal.is-claimed .retro-alice-claim-panel {
    box-shadow: 0 46px 110px rgba(0, 0, 0, 0.86), 0 0 0 5px rgba(18, 191, 202, 0.62);
    animation: retro-alice-settle 520ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.retro-alice-claim-modal.is-claimed .retro-alice-claim-button {
    background: #147b67;
    box-shadow: 7px 7px 0 #f3cf4d;
    opacity: 1;
}

@keyframes retro-alice-ring {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    22% { opacity: 0.92; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes retro-alice-shard {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(0deg); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.25) rotate(230deg); }
}

@keyframes retro-alice-settle {
    0% { transform: scale(1); }
    40% { transform: scale(1.018); }
    100% { transform: scale(1); }
}

@media (max-width: 760px) {
    .retro-alice-claim-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        grid-template-columns: 1fr;
        grid-template-rows: minmax(260px, 46%) minmax(0, 1fr);
    }

    .retro-alice-claim-copy { padding: 34px 28px 30px; }
    .retro-alice-claim-copy h2 { font-size: 2.45rem; }
    .retro-alice-claim-copy p { margin-block: 14px; font-size: 0.88rem; }
    .retro-alice-free-stamp { margin-bottom: 14px; }
    .retro-alice-value { margin-bottom: 18px; }
    .retro-alice-claim-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .retro-alice-claim-modal,
    .retro-alice-claim-panel,
    .retro-alice-claim-art img,
    .retro-alice-reveal-ring,
    .retro-alice-shards i { animation: none !important; transition: none !important; }
}
