/* Global walking-card easter egg */

#customizer-walking-card {
    --customizer-walk-bottom-offset: -10px;
    position: fixed;
    left: 0;
    bottom: var(--customizer-walk-bottom-offset);
    z-index: 2147483647;
    display: block;
    width: clamp(80px, 10vw, 150px);
    max-height: 22.5vh;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    visibility: hidden;
    transform: translate3d(calc(-100% - 24px), 0, 0);
    will-change: transform;
}

#customizer-money-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    overflow: hidden;
    pointer-events: none;
    contain: strict;
}

.customizer-money-particle {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    transform-origin: center bottom;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.customizer-money-particle__image {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: block;
    max-width: none;
    transform: translateX(-50%);
    user-select: none;
}

.customizer-money-particle:hover .customizer-money-particle__image {
    filter: brightness(1.16) saturate(1.12);
}

.customizer-money-access-button {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    background: #111426;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    color: #ffffff;
    font: 700 0.78rem/1.2 system-ui, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 140ms ease-out, transform 140ms ease-out;
}

.customizer-money-access-button:focus-visible {
    outline: 3px solid #69fff1;
    outline-offset: 3px;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

#customizer-money-hologram {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 28px;
    overflow: hidden;
    background: rgba(4, 5, 14, 0.78);
    -webkit-backdrop-filter: blur(9px) saturate(0.75);
    backdrop-filter: blur(9px) saturate(0.75);
    opacity: 0;
    visibility: hidden;
    isolation: isolate;
    transition: opacity 180ms ease-out, visibility 180ms ease-out;
}

#customizer-money-hologram.customizer-money-hologram--open {
    opacity: 1;
    visibility: visible;
}

.customizer-hologram-card {
    --holo-x: 50%;
    --holo-y: 50%;
    --holo-rotate-x: 0deg;
    --holo-rotate-y: 0deg;
    position: relative;
    width: min(82vw, 330px, calc(71.428vh - 40px));
    width: min(82vw, 330px, calc(71.428dvh - 40px));
    aspect-ratio: 5 / 7;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid rgba(255, 243, 184, 0.88);
    border-radius: 24px;
    background:
        linear-gradient(135deg, #fff2a8 0%, #916eff 28%, #66fff1 52%, #ff66c4 75%, #ffd36a 100%);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.64),
        0 0 0 2px rgba(255, 255, 255, 0.22) inset,
        0 0 42px rgba(112, 238, 255, 0.22);
    opacity: 0;
    transform:
        perspective(900px)
        translateY(22px)
        scale(0.92)
        rotateX(var(--holo-rotate-x))
        rotateY(var(--holo-rotate-y));
    transform-style: preserve-3d;
    transition:
        transform 420ms cubic-bezier(0.2, 0.82, 0.24, 1),
        opacity 220ms ease-out;
}

.customizer-money-hologram--open .customizer-hologram-card {
    opacity: 1;
    transform:
        perspective(900px)
        translateY(0)
        scale(1)
        rotateX(var(--holo-rotate-x))
        rotateY(var(--holo-rotate-y));
}

.customizer-hologram-card::before,
.customizer-hologram-card::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.customizer-hologram-card::before {
    background:
        radial-gradient(circle at var(--holo-x) var(--holo-y), rgba(255, 255, 255, 0.92) 0, rgba(135, 255, 246, 0.3) 16%, transparent 38%),
        conic-gradient(from 210deg at var(--holo-x) var(--holo-y), transparent 0deg, rgba(255, 105, 219, 0.46) 55deg, rgba(105, 255, 241, 0.52) 118deg, transparent 185deg, rgba(255, 222, 111, 0.42) 250deg, transparent 330deg);
    mix-blend-mode: screen;
    opacity: 0.72;
    animation: customizer-hologram-spectrum 7s linear infinite;
}

.customizer-hologram-card::after {
    inset: 10px;
    border-radius: 15px;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 0.8px, transparent 1.2px),
        linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.18) 43%, transparent 61%);
    background-position: 0 0, var(--holo-x) var(--holo-y);
    background-size: 13px 13px, 220% 220%;
    mix-blend-mode: screen;
    opacity: 0.36;
}

.customizer-hologram-card__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 15px;
    background:
        radial-gradient(circle at 18% 12%, rgba(96, 255, 230, 0.2), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(255, 76, 190, 0.18), transparent 38%),
        #0a0d1d;
    color: #f8f4ff;
}

.customizer-hologram-card__header,
.customizer-hologram-card__footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 18px;
    text-transform: uppercase;
}

.customizer-hologram-card__header {
    min-height: 54px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.customizer-hologram-card__mark {
    color: #fff2a8;
    font-size: 1.05rem;
    text-shadow: 0 0 12px rgba(255, 234, 143, 0.8);
}

.customizer-hologram-card__art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    margin: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 45%),
        repeating-linear-gradient(125deg, rgba(94, 255, 232, 0.08) 0 8px, rgba(255, 81, 194, 0.08) 8px 16px),
        rgba(5, 7, 18, 0.82);
    box-shadow: 0 0 38px rgba(104, 255, 239, 0.08) inset;
}

.customizer-hologram-card__asset {
    position: relative;
    z-index: 2;
    display: block;
    width: 88%;
    max-height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.36));
    user-select: none;
}

.customizer-hologram-card--coin .customizer-hologram-card__asset {
    width: 72%;
}

.customizer-hologram-card__footer {
    min-height: 48px;
    justify-content: center;
    color: rgba(244, 240, 255, 0.72);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
}

.customizer-hologram-card__close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 6;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 50%;
    background: #111426;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
    color: #ffffff;
    cursor: pointer;
    font: 400 25px/1 system-ui, sans-serif;
}

.customizer-hologram-card__close:hover {
    background: #242944;
}

.customizer-hologram-card__close:focus-visible {
    outline: 3px solid #69fff1;
    outline-offset: 3px;
}

#customizer-walking-card.customizer-walking-card--active {
    visibility: visible;
    animation: customizer-walking-card-cross var(--customizer-walk-duration, 12s) linear forwards;
}

@keyframes customizer-walking-card-cross {
    from {
        transform: translate3d(calc(-100% - 24px), 0, 0);
    }

    to {
        transform: translate3d(calc(100vw + 24px), 0, 0);
    }
}

@keyframes customizer-hologram-spectrum {
    to {
        filter: hue-rotate(360deg);
    }
}

@media (max-width: 480px) {
    #customizer-money-hologram {
        padding: 24px 18px;
    }

    .customizer-hologram-card {
        width: min(84vw, 310px, calc(71.428vh - 35px));
        width: min(84vw, 310px, calc(71.428dvh - 35px));
        border-radius: 21px;
    }

    .customizer-hologram-card__header {
        min-height: 48px;
        padding-inline: 14px;
        font-size: 0.7rem;
    }
}

@media (max-height: 480px) {
    .customizer-hologram-card__header {
        min-height: 44px;
        padding-inline: 12px;
        font-size: 0.64rem;
        letter-spacing: 0.09em;
    }

    .customizer-hologram-card__art {
        margin-inline: 10px;
    }

    .customizer-hologram-card__footer {
        min-height: 40px;
        font-size: 0.56rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #customizer-money-hologram,
    .customizer-hologram-card {
        transition-duration: 0.01ms;
    }

    .customizer-hologram-card::before {
        animation: none;
    }
}
