/*足跡*/
#trail-container {
    position: fixed;
    inset: 0;
    /* top/right/bottom/left: 0; と同じ */
    pointer-events: none;
    /* 足跡がクリック邪魔しないように */
    z-index: 9999;
    /* 最前面に出す（必要なら微調整） */
}

.trail {
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* 軌跡用のフェードアウト */
.fadeout {
    animation: fadeout 1s ease-in-out forwards;
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* バースト（パーン！）演出用 */
.burst {
    animation: burstAnim 0.6s ease-out forwards;
}

@keyframes burstAnim {
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.8);
    }
}