/* RESET & DASAR */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #060710;
}

    /* LATAR BELAKANG: TEMA LAPANGAN BOLA HIJAU CERAH DENGAN RUMPUT REALISTIS (TIDAK GELAP) */
    body.bg-pitch {
        background-color: #279634;
        background-image:
        /* Cahaya sorot stadion cerah dari atas */
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.25) 0%, rgba(74, 222, 128, 0.18) 45%, transparent 80%),
        /* Aksen pantulan rumput stadion segar */
        radial-gradient(circle at 15% 45%, rgba(134, 239, 172, 0.2) 0%, transparent 55%), radial-gradient(circle at 85% 45%, rgba(134, 239, 172, 0.2) 0%, transparent 55%),
        /* Tekstur serat rumput mikro (grass turf texture) */
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px, transparent 6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0px, rgba(0, 0, 0, 0.025) 2px, transparent 2px, transparent 5px),
        /* Garis potong rumput stadion hijau cerah berselang-seling (Lawn mow stripes) */
        repeating-linear-gradient( 0deg, #36b645 0px, #36b645 64px, #2a9c37 64px, #2a9c37 128px );
        background-attachment: fixed;
    }

    body.bg-cyber {
        background: radial-gradient(ellipse at 50% 15%, #180d38 0%, #0d0a21 40%, #05060f 100%);
        background-attachment: fixed;
    }

    body.bg-obsidian {
        background: radial-gradient(ellipse at 50% 20%, #151821 0%, #0c0e14 50%, #050608 100%);
        background-attachment: fixed;
    }

    body.bg-wood {
        background: radial-gradient(circle at 50% 35%, #a45a30 0%, #683518 55%, #3c1e0e 100%);
    }

    body.bg-transparent {
        background: transparent !important;
    }

    body.bg-green {
        background: #00ff00 !important;
    }

    body.bg-blue {
        background: #0022ff !important;
    }

/* GARIS PUTIH LAPANGAN BOLA & PENCAHAYAAN STADION CERAH */
.pitch-ambient-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%) rotateX(50deg);
    border: 3.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5), inset 0 0 16px rgba(255, 255, 255, 0.1);
}

.pitch-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.95);
}

.pitch-half-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.pitch-touchline-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 3.5px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.pitch-touchline-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 3.5px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.pitch-penalty-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 110px;
    border: 3.5px solid rgba(255, 255, 255, 0.7);
    border-top: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.pitch-penalty-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 110px;
    border: 3.5px solid rgba(255, 255, 255, 0.7);
    border-bottom: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stadium-floodlight-left {
    position: absolute;
    top: -80px;
    left: -90px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 240, 0.5) 0%, rgba(134, 239, 172, 0.3) 40%, transparent 72%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.stadium-floodlight-right {
    position: absolute;
    top: -80px;
    right: -90px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 240, 0.5) 0%, rgba(134, 239, 172, 0.3) 40%, transparent 72%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

/* WADAH UTAMA 9:16 (Overlay 720 x 1280 proporsional) */
#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    max-width: 720px;
    max-height: 1280px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    perspective: 1200px;
    -webkit-perspective: 1200px;
    z-index: 2;
}

/* PANGGUNG 3D MESIN (PERSPEKTIF RINGAN DARI ATAS) */
#printer-stage {
    position: relative;
    width: 640px;
    height: 980px;
    margin-top: 48px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateX(12deg) translateY(-10px);
    transition: transform 0.4s ease;
}

/* SPOTLIGHT MECHA GLOW LATAR */
.spotlight-glow {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    height: 680px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.22) 0%, rgba(16, 185, 129, 0.1) 45%, transparent 75%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* CASING ATAS DTF TEXTILE FEEDER */
.top-feeder-casing {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 72px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 60%, #020617 100%);
    border-radius: 12px 12px 4px 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 25px rgba(0, 240, 255, 0.25), inset 0 1px 1px rgba(255,255,255,0.3);
    border: 1px solid rgba(56, 189, 248, 0.4);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    transform: translateZ(24px);
}

.feeder-chamfer-top {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}

.feeder-hud-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 6, 23, 0.7);
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

.feeder-hud-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    animation: pulse-hud 1s infinite alternate;
}

@keyframes pulse-hud {
    from {
        opacity: 0.4;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1.15);
    }
}

.feeder-hud-title {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.feeder-hud-meter {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 14px;
}

    .feeder-hud-meter span {
        width: 3px;
        background: #00f0ff;
        border-radius: 1px;
        animation: meter-bounce 0.6s infinite alternate ease-in-out;
    }

        .feeder-hud-meter span:nth-child(1) {
            height: 6px;
            animation-delay: 0.1s;
        }

        .feeder-hud-meter span:nth-child(2) {
            height: 12px;
            animation-delay: 0.3s;
        }

        .feeder-hud-meter span:nth-child(3) {
            height: 9px;
            animation-delay: 0.2s;
        }

        .feeder-hud-meter span:nth-child(4) {
            height: 14px;
            animation-delay: 0.4s;
        }

        .feeder-hud-meter span:nth-child(5) {
            height: 7px;
            animation-delay: 0.15s;
        }

@keyframes meter-bounce {
    0% {
        transform: scaleY(0.4);
        opacity: 0.5;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.feeder-slot-lip {
    position: absolute;
    bottom: -6px;
    left: 45px;
    right: 45px;
    height: 10px;
    background: #04060a;
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.95);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.feeder-laser-guide {
    position: absolute;
    top: 2px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f0ff 25%, #d946ef 50%, #00f0ff 75%, transparent);
    box-shadow: 0 0 8px #00f0ff;
    opacity: 0.8;
}

.feeder-led-status {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    transition: background 0.2s, box-shadow 0.2s;
}

    .feeder-led-status.printing {
        background: #00f0ff;
        box-shadow: 0 0 16px #00f0ff, 0 0 26px #d946ef;
        animation: pulse-led 0.4s infinite alternate;
    }

@keyframes pulse-led {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

/* DUA TIANG REL PLASMA GUIDE LIGHT-PILLARS */
.rail-vertical {
    position: absolute;
    top: 30px;
    bottom: 60px;
    width: 16px;
    background: linear-gradient(90deg, #0b1120 0%, #1e293b 25%, #38bdf8 50%, #1e293b 75%, #0b1120 100%);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), 4px 4px 14px rgba(0,0,0,0.7), inset 0 0 4px rgba(0, 240, 255, 0.8);
    z-index: 25;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.rail-core {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 6px;
    width: 3px;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    border-radius: 2px;
    opacity: 0.9;
}

.rail-left {
    left: 23px;
}

.rail-right {
    right: 23px;
}

/* KLEM BRAKET MECHA DI UJUNG TIANG */
.rail-clamp {
    position: absolute;
    width: 26px;
    height: 34px;
    background: linear-gradient(135deg, #1e293b, #090d16);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7), 0 0 8px rgba(0, 240, 255, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.5);
    z-index: 28;
}

.clamp-top-left {
    top: 22px;
    left: 18px;
}

.clamp-bottom-left {
    bottom: 50px;
    left: 18px;
}

.clamp-top-right {
    top: 22px;
    right: 18px;
}

.clamp-bottom-right {
    bottom: 50px;
    right: 18px;
}

/* SUBSTRAT KERTAS/FILM TEKSTIL DTF (KANVAS CETAK) */
#paper-board {
    position: absolute;
    top: 60px;
    left: 55px;
    right: 55px;
    height: 720px;
    background: linear-gradient(180deg, #0d111c 0%, #0b0e18 50%, #070912 100%);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.85), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 0 1px rgba(0, 240, 255, 0.25), inset 0 0 40px rgba(15, 23, 42, 0.6);
    overflow: hidden;
    z-index: 10;
}

/* KANVAS 2D CETAK */
#print-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* EFEK LEMBARAN HOLOGRAFIS MELENGKUNG KE ARAH PENONTON */
.paper-curve-bottom {
    position: absolute;
    top: 778px;
    left: 55px;
    right: 55px;
    height: 140px;
    background: linear-gradient(180deg, #0b0e18 0%, #080a13 40%, #04050a 85%, #010204 100%);
    transform-origin: top center;
    transform: rotateX(-50deg);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.9), 0 0 20px rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top: none;
    z-index: 9;
    pointer-events: none;
    opacity: 0.95;
}

/* BATANG REL HORIZONTAL (GANTRY) */
#crossbar-gantry {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 42px;
    top: 130px;
    z-index: 35;
    pointer-events: none;
    transform: translateZ(12px);
    transition: top 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Batang Horizontal Logam Carbon */
.crossbar-rod {
    position: absolute;
    top: 16px;
    left: 10px;
    right: 10px;
    height: 10px;
    background: linear-gradient(180deg, #334155 0%, #1e293b 40%, #0f172a 100%);
    border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.7), 0 0 10px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.crossbar-light-strip {
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, #d946ef, #00f0ff);
    box-shadow: 0 0 6px #00f0ff;
}

/* Klem Geser Kiri & Kanan */
.slider-bracket {
    position: absolute;
    top: 3px;
    width: 28px;
    height: 36px;
    background: linear-gradient(145deg, #1e293b, #090d16);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6), 0 0 6px rgba(0, 240, 255, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.4);
}

.slider-left {
    left: 0;
}

.slider-right {
    right: 0;
}

/* KEPALA CETAK: SUBLIMATION PRINTHEAD POD */
#print-head {
    position: absolute;
    top: -5px;
    left: 270px;
    width: 64px;
    height: 52px;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.8), 0 0 15px rgba(0, 240, 255, 0.35), inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -1px 3px rgba(0,0,0,0.8);
    border: 1px solid #38bdf8;
    transition: left 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.head-optic-core {
    position: absolute;
    top: 8px;
    left: 18px;
    width: 28px;
    height: 26px;
    background: radial-gradient(circle, #00f0ff 10%, #0369a1 60%, #0f172a 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px #00f0ff;
}

.head-cooling-fins {
    position: absolute;
    top: 38px;
    left: 12px;
    right: 12px;
    height: 6px;
    background: repeating-linear-gradient(90deg, #334155 0px, #334155 3px, #0f172a 3px, #0f172a 6px);
    border-radius: 2px;
}

/* Kerucut Sinar Laser Turun ke Kartu saat Mencetak */
.laser-cone-beam {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 48px;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.7) 0%, rgba(217, 70, 239, 0.35) 60%, transparent 100%);
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    filter: blur(1px);
}

#print-head.active-printing .laser-cone-beam {
    opacity: 1;
    animation: laser-pulse 0.08s infinite alternate;
}

@keyframes laser-pulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.15);
    }
}

/* Titik Kilau Laser Focal Point */
.print-head-glow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 1) 0%, rgba(217, 70, 239, 0.8) 45%, transparent 80%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.15s;
}

#print-head.active-printing .print-head-glow {
    opacity: 1;
    animation: jitter-glow 0.07s infinite alternate;
}

#print-head.active-printing {
    animation: micro-jitter 0.06s infinite alternate;
}

@keyframes jitter-glow {
    0% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes micro-jitter {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0.8px, -0.6px);
    }
}

/* HUD STATUS ATAS KECIL */
.top-hud-bar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.hud-pill {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: auto;
}

.hud-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* TOMBOL SIMULASI CEPAT (FLOATING DOCK BAWAH) */
.simulation-dock {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(18, 24, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 60;
    max-width: 95%;
}

.btn-sim {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

    .btn-sim:hover {
        background: #334155;
        transform: translateY(-1px);
    }

    .btn-sim:active {
        transform: scale(0.96);
    }

.btn-sim-join {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #34d399;
    color: #fff;
}

    .btn-sim-join:hover {
        background: linear-gradient(135deg, #059669, #047857);
    }

.btn-sim-like {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border-color: #f87171;
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

    .btn-sim-like:hover {
        background: linear-gradient(135deg, #dc2626, #991b1b);
    }

.btn-sim-follow {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border-color: #38bdf8;
    color: #fff;
}

.btn-sim-share {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-color: #fb923c;
    color: #fff;
}

.btn-sim-gift {
    background: linear-gradient(135deg, #e11d48, #be123c);
    border-color: #fb7185;
    color: #fff;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
}

.btn-sim-demo.active {
    background: #8b5cf6;
    border-color: #a78bfa;
    color: #fff;
}

/* PANEL PENGATURAN TERSEMBUNYI (TEKAN 'S') */
#settings-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

    #settings-modal.show {
        display: flex;
    }

.settings-card {
    background: #181c24;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    color: #f1f5f9;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .settings-header h3 {
        font-size: 16px;
        font-weight: 700;
    }

.settings-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    cursor: pointer;
}

.setting-row {
    margin-bottom: 14px;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.setting-input-select, .setting-input-text {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* PARTIKEL SPARKLE GIFT */
.sparkle-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: fly-sparkle 0.8s ease-out forwards;
    z-index: 50;
}

@keyframes fly-sparkle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}
