/**
 * Sun Road sequence on transition marks.
 * Mark Murphy, 2026-10-18 10:26 PM: once, on every screen, clock starts
 * in sun-road-sequence.js when the mark is fully shown. Never looped.
 * Mark Murphy, 2026-10-20: the book's order. Path 0–0.4s, horizon 0.4–0.9s,
 * sun 0.9–1.2s. The sun breaks last.
 * Ease cubic-bezier(0.33, 1, 0.68, 1).
 * This file holds the paused and final frames. It does not autoplay.
 * Reduced motion is the final frame on every mark, including a still cover.
 */

.ns-sun-road-play {
    display: block;
    overflow: visible;
    background: transparent !important;
    background-color: transparent !important;
    --ns-sun-road-sequence: 1.2s;
}

/* Full-bleed transition field. Inline paint (nsSunRoadPaintStage) is the
   first frame; these rules cover a root that only got the class. Dusk is
   the dark stage. Paper keeps the sunrise field. The 200px stage box,
   including .prls-card between the stage and the front face, stays
   transparent so it cannot read as a cream tile on either ground. */
#post-reg-logo-seq.ns-sun-road-field,
#booking-pay-logo-seq.ns-sun-road-field,
#care-transition-shell.ns-sun-road-field {
    background-color: var(--color-ink);
    background-image: none;
}

html[data-ground="paper"] :is(
    #post-reg-logo-seq,
    #booking-pay-logo-seq,
    #care-transition-shell
).ns-sun-road-field,
html:not([data-ground="dusk"]) :is(
    #post-reg-logo-seq,
    #booking-pay-logo-seq,
    #care-transition-shell
).ns-sun-road-field {
    background-image: var(--gradient-sunrise-field);
    background-color: transparent;
}

#post-reg-logo-seq .prls-stage,
#post-reg-logo-seq .prls-card,
#post-reg-logo-seq .prls-face--front,
#booking-pay-logo-seq .prls-stage,
#booking-pay-logo-seq .prls-card,
#booking-pay-logo-seq .prls-face--front {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

#post-reg-logo-seq.prls--cards-leaving .prls-face--back,
#booking-pay-logo-seq.prls--cards-leaving .prls-face--back,
#post-reg-logo-seq.prls--cards-leaving .prls-face--front,
#booking-pay-logo-seq.prls--cards-leaving .prls-face--front {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 220ms ease;
}

.ns-sun-road-play .sr-sky {
    opacity: 0;
}

.ns-sun-road-play.ns-sun-road-done .sr-sky {
    opacity: 1;
}

.ns-sun-road-play.ns-sun-road-done .sr-sun {
    transform: none;
}

.ns-sun-road-play.ns-sun-road-done .sr-beam {
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ns-sun-road-play .sr-sky {
        opacity: 1;
    }

    .ns-sun-road-play .sr-sun {
        transform: none;
    }

    .ns-sun-road-play .sr-beam {
        stroke-dashoffset: 0;
    }
}
