.dc-love-danmaku {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    contain: strict;
    overflow: hidden;
    pointer-events: none;
}

.dc-love-danmaku__item {
    position: absolute;
    left: 0;
    display: block;
    color: #ff6f9e;
    font-family: "Microsoft YaHei", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    transform: translate3d(100vw, 0, 0);
    will-change: transform;
}

.dc-love-danmaku__item.is-running {
    animation-name: dc-love-danmaku-scroll;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.dc-love-danmaku.is-paused .dc-love-danmaku__item {
    animation-play-state: paused;
}

@keyframes dc-love-danmaku-scroll {
    from { transform: translate3d(100vw, 0, 0); }
    to { transform: translate3d(calc(-100% - 40px), 0, 0); }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
    .dc-love-danmaku { display: none; }
}
