/* ==========================================================================
   NGỐ CAPYY — PREMIUM GAMING STORE ANIMATION SYSTEM (V3 - HIGH VISIBILITY 3D)
   Style: DARK GAMING + ROBLOX + 3D + YOUTHFUL + PREMIUM + E-COMMERCE
   Palette: #070B14 (BG) | #121A28 (Card) | #FFB000 (Primary) | #FF8A00 (CTA)
            #22C7FF (Cyan) | #8B5CF6 (Purple) | #FF5CA8 (Pink)
   ========================================================================== */

:root {
    --game-bg: #070B14;
    --game-sec: #0D1320;
    --game-card: #121A28;
    --game-primary: #FFB000;
    --game-cta: #FF8A00;
    --game-cyan: #22C7FF;
    --game-purple: #8B5CF6;
    --game-pink: #FF5CA8;
}

/* --------------------------------------------------------------------------
   1. BACKGROUND SYSTEM: GAMING GRID, CANVAS PARTICLES & 3D VOXEL CUBES
   -------------------------------------------------------------------------- */
.bg-gaming-depth {
    background-color: #070B14;
    background-image:
        radial-gradient(circle at 15% 12%, rgba(255, 176, 0, 0.09) 0%, transparent 38%),
        radial-gradient(circle at 85% 18%, rgba(34, 199, 255, 0.08) 0%, transparent 36%),
        radial-gradient(circle at 50% 65%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
}

#gaming-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-voxel-stage {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* 3D Roblox-Inspired Voxel Blocks in Background */
.voxel-shape {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 176, 0, 0.28);
    background: linear-gradient(135deg, rgba(255, 176, 0, 0.16) 0%, rgba(18, 26, 40, 0.65) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        0 12px 28px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(255, 176, 0, 0.12);
    will-change: transform;
    animation: voxelFloat3D 9s ease-in-out infinite;
}

.voxel-shape--cyan {
    width: 34px;
    height: 34px;
    border-color: rgba(34, 199, 255, 0.3);
    background: linear-gradient(135deg, rgba(34, 199, 255, 0.16) 0%, rgba(18, 26, 40, 0.65) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        0 12px 28px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(34, 199, 255, 0.14);
    animation-duration: 11s;
    animation-delay: -3s;
}

.voxel-shape--purple {
    width: 32px;
    height: 32px;
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16) 0%, rgba(18, 26, 40, 0.65) 100%);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        0 12px 28px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(139, 92, 246, 0.14);
    animation-duration: 12.5s;
    animation-delay: -6s;
}

.voxel-shape--pink {
    width: 28px;
    height: 28px;
    border-color: rgba(255, 92, 168, 0.3);
    background: linear-gradient(135deg, rgba(255, 92, 168, 0.15) 0%, rgba(18, 26, 40, 0.65) 100%);
    animation-duration: 10s;
    animation-delay: -4.5s;
}

@keyframes voxelFloat3D {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(12deg) scale(1);
    }
    50% {
        transform: translate3d(12px, -26px, 0) rotate(42deg) scale(1.08);
    }
}

/* Ambient Gaming Particles */
.gaming-particle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    will-change: transform, opacity;
    animation: particleRise 6s ease-in-out infinite;
}

@keyframes particleRise {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.9);
        opacity: 0.35;
    }
    50% {
        transform: translate3d(10px, -28px, 0) scale(1.35);
        opacity: 0.85;
    }
}

/* Ensure header, main, and footer sit above background canvas */
header, main, footer {
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   2. MICRO-INTERACTIONS: GAMING BUTTONS (Hover 1.03, Active 0.97, Shimmer)
   -------------------------------------------------------------------------- */
.btn-cta,
.btn-gaming-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFC024 0%, #FF8A00 100%);
    color: #070B14;
    font-weight: 800;
    box-shadow:
        0 8px 20px -4px rgba(255, 138, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
        0 3px 0 0 #C26400;
    transition:
        transform 190ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 190ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 190ms ease;
    will-change: transform;
}

/* Periodic subtle light sweep on primary CTA buttons */
.btn-cta::after,
.btn-gaming-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.48) 50%,
        transparent 100%
    );
    transform: skewX(-22deg);
    animation: ctaShineLoop 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaShineLoop {
    0%, 65%, 100% { left: -130%; }
    35% { left: 145%; }
}

.btn-cta:hover,
.btn-gaming-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-2px) scale(1.035);
    box-shadow:
        0 14px 28px -4px rgba(255, 138, 0, 0.65),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.55),
        0 4px 0 0 #C26400;
}

.btn-cta:active,
.btn-gaming-primary:active {
    transform: translateY(1px) scale(0.975);
    box-shadow:
        0 3px 10px -2px rgba(255, 138, 0, 0.4),
        0 1px 0 0 #C26400;
}

.btn-secondary,
.btn-gaming-secondary {
    background: rgba(18, 26, 40, 0.94);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 600;
    box-shadow:
        0 6px 16px -4px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition:
        transform 190ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 190ms ease,
        background-color 190ms ease,
        box-shadow 190ms ease;
    will-change: transform;
}

.btn-secondary:hover,
.btn-gaming-secondary:hover {
    background: rgba(26, 38, 60, 0.98);
    border-color: #FFB000;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.7), 0 0 18px -4px rgba(255, 176, 0, 0.25);
}

.btn-secondary:active,
.btn-gaming-secondary:active {
    transform: translateY(1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   3. 3D CARD TILT + CURSOR SPOTLIGHT + SHINE SWEEP (Section 3)
   -------------------------------------------------------------------------- */
.perspective-stage {
    perspective: 1000px;
}

.card-3d,
.cat-card-3d {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 32, 50, 0.95) 0%, rgba(16, 24, 38, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 14px 30px -10px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition:
        transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 200ms ease,
        box-shadow 200ms ease;
    will-change: transform;
}

/* Dynamic Cursor Spotlight + Diagonal Shine Sweep */
.card-3d::before,
.cat-card-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 176, 0, 0.13),
            transparent 70%
        ),
        linear-gradient(
            115deg,
            transparent 22%,
            rgba(255, 255, 255, 0.08) 48%,
            rgba(255, 176, 0, 0.09) 52%,
            transparent 78%
        );
    background-size: 100% 100%, 240% 100%;
    background-position: 0 0, 180% 0;
    transition: background-position 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.card-3d:hover,
.cat-card-3d:hover {
    transform: perspective(1000px) translateY(-5px) rotateX(var(--tilt-x, 3deg)) rotateY(var(--tilt-y, -3deg));
    border-color: rgba(255, 176, 0, 0.55);
    box-shadow:
        0 22px 42px -10px rgba(0, 0, 0, 0.85),
        0 0 26px -6px rgba(255, 176, 0, 0.22),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}

.card-3d:hover::before,
.cat-card-3d:hover::before {
    opacity: 1;
    background-position: 0 0, -60% 0;
}

/* Product Image Hover Scale (1.045) */
.card-3d .card-img-zoom,
.cat-card-3d .card-img-zoom {
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.card-3d:hover .card-img-zoom,
.cat-card-3d:hover .card-img-zoom {
    transform: scale(1.045);
}

/* --------------------------------------------------------------------------
   4. HERO 3D STAGE & FLOATING 3D OBJECTS (Section 2 & 7)
   -------------------------------------------------------------------------- */
#hero-3d-card {
    animation: heroShowcaseFloat 5.5s ease-in-out infinite;
    position: relative;
}

#hero-3d-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 48%,
        rgba(255, 176, 0, 0.14) 52%,
        transparent 70%
    );
    background-size: 250% 100%;
    animation: heroBannerSweep 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroShowcaseFloat {
    0%, 100% {
        box-shadow: 0 25px 55px -12px rgba(0,0,0,0.85), 0 0 35px -8px rgba(255,176,0,0.22);
    }
    50% {
        box-shadow: 0 32px 65px -12px rgba(0,0,0,0.9), 0 0 45px -4px rgba(34,199,255,0.25);
    }
}

@keyframes heroBannerSweep {
    0%, 55%, 100% { background-position: 180% 0; }
    28% { background-position: -70% 0; }
}

.obj-3d-badge {
    background: linear-gradient(145deg, rgba(24, 36, 60, 0.96) 0%, rgba(11, 17, 29, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 36px -6px rgba(0, 0, 0, 0.82),
        0 0 20px -6px rgba(255, 176, 0, 0.2),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes float3dOne {
    0%, 100% { transform: translate3d(0, 0px, 20px) rotate(-3deg) scale(1); }
    50% { transform: translate3d(4px, -14px, 28px) rotate(3deg) scale(1.04); }
}

@keyframes float3dTwo {
    0%, 100% { transform: translate3d(0, 0px, 14px) rotate(3deg) scale(1); }
    50% { transform: translate3d(-5px, -15px, 22px) rotate(-3deg) scale(1.04); }
}

@keyframes float3dThree {
    0%, 100% { transform: translate3d(0, 0px, 18px) rotate(2deg) scale(1); }
    50% { transform: translate3d(5px, -13px, 26px) rotate(-4deg) scale(1.05); }
}

@keyframes float3dVoxel {
    0%, 100% { transform: translate3d(0, 0px, 10px) rotate(0deg) scale(1); }
    50% { transform: translate3d(-4px, -16px, 18px) rotate(18deg) scale(1.08); }
}

.float-obj-1 { animation: float3dOne 3.6s ease-in-out infinite; }
.float-obj-2 { animation: float3dTwo 4.1s ease-in-out infinite 0.4s; }
.float-obj-3 { animation: float3dThree 3.4s ease-in-out infinite 0.9s; }
.float-obj-4 { animation: float3dOne 4.3s ease-in-out infinite 1.3s; }
.float-obj-voxel { animation: float3dVoxel 4.6s ease-in-out infinite 0.6s; }

/* --------------------------------------------------------------------------
   5. CATEGORY-SPECIFIC PRODUCT ANIMATIONS (Section 4 - Distinct per Type)
   -------------------------------------------------------------------------- */

/* 4.1 NẠP ROBUX: 3D Spinning Coin + Gold Glow */
@keyframes coinSpin3D {
    0% {
        transform: translateY(0) rotateY(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 176, 0, 0.55));
    }
    50% {
        transform: translateY(-4px) rotateY(180deg) scale(1.14);
        filter: drop-shadow(0 0 14px rgba(255, 210, 60, 0.9));
    }
    100% {
        transform: translateY(0) rotateY(360deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 176, 0, 0.55));
    }
}

.anim-coin-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: coinSpin3D 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    transform-style: preserve-3d;
}

/* 4.2 SHOP ACC: Rotating 3D Gem/Diamond + Rare Item Shimmer */
@keyframes gemRotate3D {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateZ(-6deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(34, 199, 255, 0.55));
    }
    50% {
        transform: translateY(-5px) rotateY(180deg) rotateZ(8deg) scale(1.14);
        filter: drop-shadow(0 0 16px rgba(34, 199, 255, 0.95));
    }
}

.anim-gem-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: gemRotate3D 3.1s ease-in-out infinite;
    transform-style: preserve-3d;
}

.anim-cat-acc:hover {
    border-color: rgba(34, 199, 255, 0.6) !important;
    box-shadow:
        0 22px 42px -10px rgba(0, 0, 0, 0.85),
        0 0 28px -4px rgba(34, 199, 255, 0.28) !important;
}

.rare-item-tag {
    position: relative;
    overflow: hidden;
}

.rare-item-tag::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 15%, rgba(34, 199, 255, 0.45) 50%, transparent 85%);
    transform: translateX(-120%);
    animation: rareShimmer 2.4s ease-in-out infinite;
}

@keyframes rareShimmer {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}

/* 4.3 TÚI MÙ (MYSTERY GIFT): Continuous 3D Gift Wobble + Ribbon + Sparkle */
@keyframes giftWobble3D {
    0%, 60%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 92, 168, 0.45));
    }
    12% {
        transform: translateY(-5px) rotate(-12deg) scale(1.12);
        filter: drop-shadow(0 0 14px rgba(255, 92, 168, 0.85));
    }
    24% {
        transform: translateY(-6px) rotate(12deg) scale(1.15);
    }
    36% {
        transform: translateY(-4px) rotate(-8deg) scale(1.1);
    }
    48% {
        transform: translateY(-2px) rotate(6deg) scale(1.05);
    }
}

.anim-gift-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: giftWobble3D 2.4s ease-in-out infinite;
    transform-origin: center bottom;
}

.anim-cat-blindbag:hover {
    border-color: rgba(255, 92, 168, 0.65) !important;
    box-shadow:
        0 22px 42px -10px rgba(0, 0, 0, 0.85),
        0 0 28px -4px rgba(255, 92, 168, 0.3) !important;
}

/* 4.4 DỊCH VỤ GAME: Speed / Boost / Lightning / XP Level-Up */
@keyframes boostPulse {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(-4deg);
        filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.55));
    }
    50% {
        transform: translateY(-4px) scale(1.18) rotate(6deg);
        filter: drop-shadow(0 0 16px rgba(255, 196, 0, 0.95));
    }
}

@keyframes xpBadgeFloat {
    0%, 100% {
        transform: translateY(0) scale(0.95);
    }
    50% {
        transform: translateY(-5px) scale(1.08);
    }
}

.anim-boost-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: boostPulse 1.8s ease-in-out infinite;
}

.anim-xp-pill {
    animation: xpBadgeFloat 1.8s ease-in-out infinite;
}

/* Continuous Speed Streaks on Game Service Cards */
.speed-streak-wrap {
    position: relative;
    overflow: hidden;
}

.speed-streak-wrap::after {
    content: "";
    position: absolute;
    top: 22%;
    left: -80%;
    width: 65%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 196, 0, 0.85), rgba(34, 199, 255, 0.7), transparent);
    box-shadow: 0 0 10px rgba(255, 176, 0, 0.6);
    pointer-events: none;
    animation: speedStreakMove 2.2s linear infinite;
    z-index: 3;
}

@keyframes speedStreakMove {
    0% { left: -75%; opacity: 0; }
    20% { opacity: 0.95; }
    80% { opacity: 0.95; }
    100% { left: 125%; opacity: 0; }
}

/* 4.5 GAME PASS: Pass Card Holo Shine + Floating Icon + Sparkle */
@keyframes passIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(-6deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.55));
    }
    50% {
        transform: translateY(-5px) rotate(8deg) scale(1.14);
        filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.95));
    }
}

.anim-pass-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: passIconFloat 2.4s ease-in-out infinite;
}

.anim-cat-gamepass:hover {
    border-color: rgba(139, 92, 246, 0.65) !important;
    box-shadow:
        0 22px 42px -10px rgba(0, 0, 0, 0.85),
        0 0 28px -4px rgba(139, 92, 246, 0.3) !important;
}

/* Sparkle Star Micro-Element */
@keyframes sparkleTwinkle {
    0%, 100% {
        transform: scale(0.6) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.35) rotate(90deg);
        opacity: 1;
    }
}

.sparkle-dot {
    display: inline-block;
    pointer-events: none;
    animation: sparkleTwinkle 1.8s ease-in-out infinite;
}

.sparkle-dot--delay {
    animation-delay: 0.9s;
}

/* --------------------------------------------------------------------------
   6. SCROLL REVEAL (Opacity 0->1, translateY 20px->0, 450ms, Run Once)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   7. GAMING LOADING OVERLAY (Logo + Coin + Controller + Voxel Cube, ~0.9s)
   -------------------------------------------------------------------------- */
#gaming-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: radial-gradient(circle at center, #10192B 0%, #070B14 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 360ms ease, visibility 360ms ease;
}

#gaming-loader-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-voxel-ring {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-voxel-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2.5px solid rgba(255, 176, 0, 0.25);
    border-top-color: #FFB000;
    border-right-color: #22C7FF;
    border-bottom-color: #8B5CF6;
    animation: loaderCubeSpin 1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes loaderCubeSpin {
    0% { transform: rotate(0deg) scale(0.95); }
    50% { transform: rotate(180deg) scale(1.06); }
    100% { transform: rotate(360deg) scale(0.95); }
}

.loader-orbit-item {
    position: absolute;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: loaderItemPulse 0.9s ease-in-out infinite;
}

@keyframes loaderItemPulse {
    0%, 100% { transform: translateY(0) scale(0.92); }
    50% { transform: translateY(-6px) scale(1.18); }
}

.loader-progress-track {
    width: 180px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 14px;
}

.loader-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFB000, #FF8A00, #22C7FF);
    transform-origin: left center;
    animation: loaderBarFill 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loaderBarFill {
    0% { transform: scaleX(0.08); }
    100% { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   8. PURCHASE SUCCESS / REWARD OVERLAY (Check + Coin + Sparkle + Confetti)
   -------------------------------------------------------------------------- */
#purchase-reward-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 11, 20, 0.86);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 260ms ease, visibility 260ms ease;
}

#purchase-reward-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reward-card-pop {
    transform: scale(0.86) translateY(14px);
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

#purchase-reward-overlay.is-active .reward-card-pop {
    transform: scale(1) translateY(0);
}

@keyframes checkPopBounce {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.16); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.reward-check-badge {
    animation: checkPopBounce 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.confetti-piece {
    position: absolute;
    width: 7px;
    height: 12px;
    border-radius: 2px;
    pointer-events: none;
    will-change: transform, opacity;
    animation: confettiFall 1450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes confettiFall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--tx, 40px), var(--ty, 130px), 0) rotate(var(--rot, 260deg)) scale(0.6);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   9. MOBILE RESPONSIVE OPTIMIZATION (Section 12 & 13)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .card-3d:hover,
    .cat-card-3d:hover {
        transform: translateY(-3px) !important;
    }
    .voxel-shape:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 639px) {
    .voxel-shape:nth-child(n+2) {
        display: none;
    }
}
