/* Public invitation base. Themes only override the custom properties in :root. */
@font-face { font-family: "Marcellus"; src: url("/frontend/assets/fonts/marcellus-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; src: url("/frontend/assets/fonts/jost-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
    --bg: #f6f1e7; --surface: #fffdf8; --ink: #2f2a24; --muted: #6d6458; --accent: #627047;
    --accent-ink: #ffffff; --line: #e3d9c6; --hero-ink: #fffdf8; --hero-shade: rgba(32, 28, 22, .55);
    --heading: "Marcellus", Georgia, serif; --body: "Jost", system-ui, sans-serif; --script: "Marcellus", Georgia, serif;
    --radius: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.65; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .875rem; color: var(--muted); }
.response-panel [data-privacy] a { display: inline-flex; align-items: center; min-height: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); margin-bottom: .5rem; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.4rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button:focus-visible, .gallery-item:focus-visible, .music-toggle:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.invitation { max-width: 46rem; margin: 0 auto; }
.panel { padding: 3.5rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.75rem, 6vw, 2.4rem); color: var(--accent); margin-bottom: 1.5rem; }

.hero { min-height: 92vh; display: grid; place-items: center; color: var(--hero-ink); border: 0;
    background: linear-gradient(var(--hero-shade), var(--hero-shade)), var(--cover, linear-gradient(160deg, var(--accent), var(--ink))) center / cover; }
.hero .eyebrow { color: var(--hero-ink); opacity: .9; }
.hero-names { font-size: clamp(2.3rem, 10vw, 3.6rem); margin: .5rem 0 1rem; }
.hero-names .amp { display: block; font-family: var(--script); font-size: .7em; }
.pill { display: inline-block; padding: .35rem 1.1rem; border-radius: 999px; background: var(--hero-ink); color: var(--ink); font-weight: 600; letter-spacing: .08em; }
.hero-intro { max-width: 30rem; margin: 1rem auto 0; }

.quote blockquote { margin: 0 auto; max-width: 34rem; font-family: var(--script); font-size: 1.35rem; color: var(--muted); }
.couple-grid { display: grid; gap: 2.5rem; }
@media (min-width: 40rem) { .couple-grid { grid-template-columns: 1fr 1fr; } }
.person-photo { width: 11rem; height: 14rem; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); margin: 0 auto 1rem; }
.person h3 { font-size: 1.7rem; }
.parents { color: var(--muted); }
.socials { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.socials a { font-size: .9rem; color: var(--accent); }

.countdown { margin: 0 auto 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); max-width: 24rem; background: var(--surface); }
.countdown-value { font-family: var(--heading); font-size: 1.35rem; margin: 0; }
.event-list { display: grid; gap: 1.25rem; }
.event, .gift { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.event h3 { font-size: 1.6rem; }
.event-date { font-weight: 600; color: var(--accent); }
.event-place { font-weight: 600; margin-bottom: .25rem; }
.event-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 0; }

.story-photo { border-radius: var(--radius); margin: 0 auto 1rem; max-height: 22rem; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 1.5rem auto 0; max-width: 32rem; text-align: left; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 1.5rem 1.25rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline img { border-radius: .75rem; margin: .5rem 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 40rem) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .6rem; }
.gallery-grid figcaption { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.lightbox { border: 0; padding: .75rem; background: transparent; max-width: 96vw; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-height: 80vh; margin: 0 auto .75rem; border-radius: .5rem; }

.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.gift-list { display: grid; gap: 1rem; margin-top: 1rem; }
.gift-number { font-family: var(--heading); font-size: 1.4rem; letter-spacing: .05em; margin-bottom: .25rem; }

/* RSVP and wishes markup comes from public-responses.js. */
.responses h2 { font-family: var(--heading); color: var(--accent); font-size: clamp(1.6rem, 5vw, 2.1rem); }
.responses form { display: grid; gap: .9rem; text-align: left; max-width: 28rem; margin: 1.5rem auto; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.responses label { display: grid; gap: .3rem; font-weight: 500; }
.responses input, .responses select, .responses textarea { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .6rem; font: inherit; color: var(--ink); background: #fff; }
.responses button { min-height: 44px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--body); cursor: pointer; }
.responses ul { list-style: none; padding: 0; max-width: 32rem; margin: 1rem auto; text-align: left; }
.responses li { padding: .9rem 1rem; margin-bottom: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }

.closing { border: 0; }
.closing-names { font-family: var(--script); font-size: 2rem; color: var(--accent); }

.opening { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; color: var(--hero-ink);
    background: linear-gradient(var(--hero-shade), var(--hero-shade)), linear-gradient(170deg, var(--ink), var(--accent)); }
.opening[hidden] { display: none; }
.opening-frame { width: min(100%, 26rem); min-height: min(90vh, 44rem); display: grid; align-content: center; gap: .75rem; text-align: center; padding: 2.5rem 1.25rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12rem 12rem 1rem 1rem; }
.opening .eyebrow { color: var(--hero-ink); }
.opening-names { font-family: var(--heading); font-size: clamp(2.4rem, 12vw, 3.4rem); line-height: 1.1; margin: 0; }
.opening-names span { display: block; font-family: var(--script); font-size: .7em; }
.opening-date { letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.opening-guest { margin: 1.5rem 0 .5rem; padding: 1rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); }
.opening-guest p { margin: 0; }
.guest-name { font-family: var(--script); font-size: 1.7rem; }
.opening .small { color: var(--hero-ink); opacity: .85; }
.opening .button { justify-self: center; background: var(--hero-ink); color: var(--ink); border-color: var(--hero-ink); }

.music-toggle { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.music-toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.restricted { min-height: 100vh; display: grid; place-content: center; }

/* Guest light/dark switch (like the "Ganti tema" control in /frontend). data-scheme is only set
 * when the guest picks the opposite of the theme's own look; the theme stays the default. */
.scheme-toggle { position: fixed; right: 1rem; bottom: 4.5rem; z-index: 10; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
/* Stacked above the music button wherever it sits (page body or the guest-only fragment). */
body:not(:has(.music-toggle:not([hidden]))) .scheme-toggle { bottom: 1rem; }
.scheme-toggle[hidden] { display: none; }
.scheme-toggle svg { width: 22px; height: 22px; }
.scheme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:root[data-scheme="dark"] { color-scheme: dark; --bg: #1b1a16; --surface: #24221d; --ink: #f1ead9; --muted: #b8ad98; --accent: #a9b77f; --accent-ink: #1b1a16; --line: #3a362d; --hero-shade: rgba(0, 0, 0, .6); }
:root[data-theme="modern"][data-scheme="dark"] { --bg: #121212; --surface: #1c1c1c; --ink: #f2f2f0; --muted: #a8a8a4; --accent: #e9e9e6; --accent-ink: #121212; --line: #2e2e2c; }
:root[data-theme="garden"][data-scheme="dark"] { --bg: #161b12; --surface: #1f2619; --ink: #e9eedd; --muted: #aab597; --accent: #9cb87d; --accent-ink: #161b12; --line: #313b29; }
:root[data-scheme="dark"] .opening { background: linear-gradient(var(--hero-shade), var(--hero-shade)), linear-gradient(170deg, var(--bg), var(--accent)); }
:root[data-scheme="dark"] .opening .button { color: var(--bg); }
:root[data-theme="emerald"][data-scheme="light"] { color-scheme: light; --bg: #f4efe2; --surface: #fffaf0; --ink: #143630; --muted: #5b6b63; --accent: #8a6a2b; --accent-ink: #fffaf0; --line: #e2d6bb; --hero-ink: #f4ead2; }
:root[data-theme="emerald"][data-scheme="light"] .responses :is(input, select, textarea) { background: var(--surface); }
:root[data-scheme="dark"] .responses :is(input, select, textarea) { background: var(--bg); }

/* Janur stage 2: "Konfirmasi Kehadiran" stays in the thumb zone on every page (the theme's own
   button class gives it the theme's colours). Hidden under the cover, on the RSVP page and once
   the guest has answered. Below the light/dark switch in the stacking order, and laid out in the space to its left so the
   two never overlap on a 390 px screen. */
a.rsvp-fab { position: fixed; left: 1rem; right: calc(1rem + 48px + .75rem); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 9; width: fit-content; max-width: calc(100% - 2rem - 48px - .75rem); margin: 0 auto; padding-inline: 1.1rem; white-space: nowrap; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.rsvp-fab svg { flex: none; width: 1.1rem; height: 1.1rem; }
.rsvp-fab[hidden], body.is-locked .rsvp-fab { display: none; }
.rsvp-fab.is-away { opacity: 0; transform: translateY(1rem); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .rsvp-fab { transition: opacity .2s ease, transform .2s ease; } }
/* 320 px phones: the wide-tracked labels (Surat Bersegel, Malam Zamrud) must still fit beside the toggles. */
@media (max-width: 22.5rem) { a.rsvp-fab { padding-inline: .75rem; letter-spacing: .06em; } a.rsvp-fab svg { display: none; } }
/* Perbaikan 2026-11-17: the closing page ends above the corner switches (light/dark and music stack to
 * about 7.5rem on the right), so the logo and credit are never covered. Outranks each theme's padding. */
:root[data-theme] main > footer:last-child { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

/* Audit B3 (29 Nov 2026): which events an attending guest will come to, in the theme's own type and colour. */
.rsvp-events { display: grid; gap: .1rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; text-align: start; color: inherit; }
.rsvp-events[hidden] { display: none; }
.rsvp-events legend { margin-bottom: .35rem; padding: 0; font: inherit; font-weight: 600; }
.rsvp-event { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.rsvp-event input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: currentColor; flex: none; }

/* Audit B2 (29 Nov 2026): "Sudah mengirim hadiah?" under the gift accounts; the fields take the theme's own
   RSVP form classes, only the toggle and spacing live here, in the theme's own colour. */
.gift-confirm { margin-top: 1.25rem; text-align: start; color: inherit; }
.gift-confirm-toggle { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; color: inherit; }
.gift-confirm-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.gift-confirm-form { margin-top: .75rem; }
.cine-page .gift-confirm { text-align: center; }
.cine-page .gift-confirm-form { text-align: start; }

/* ---- Tema Fase 1 (3 Dec 2026): text effects and animated icons ---------------------------------------------------
   cine-text.js splits a line marked data-text-fx (the guest's name on every cover) into aria-hidden pieces, each with
   --i, beside a screen-reader copy; a theme sets --ct-delay to start it with its own cover. The effects fill backwards
   only, so once played nothing (filter, transform) stays on the words. Nothing moves with reduced motion (the script
   then leaves the text alone too). */
.ct-w { display: inline-block; white-space: nowrap; }
.ct-c { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
    [data-text-fx-on="rise"] .ct-c { animation: ct-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--ct-delay, .3s) + var(--i) * 45ms); }
    [data-text-fx-on="blur"] .ct-w { animation: ct-blur 1.2s ease-out backwards; animation-delay: calc(var(--ct-delay, .3s) + var(--i) * 180ms); }
    /* Typed: each letter appears in turn with the caret beside it; the caret blinks at the end, then goes. */
    [data-text-fx-on="type"] .ct-c { animation: ct-type 1ms linear backwards, ct-cursor 80ms linear backwards; animation-delay: calc(var(--ct-delay, .3s) + var(--i) * 80ms); }
    [data-text-fx-on="type"] .ct::after { content: ""; display: inline-block; width: .06em; height: .95em; margin-left: .04em; vertical-align: -.1em; background: currentColor; opacity: 0;
        animation: ct-caret .9s linear 3 forwards; animation-delay: calc(var(--ct-delay, .3s) + var(--n) * 80ms); }
    [data-text-fx-on="flicker"] .ct-c { animation: ct-flicker 1.4s linear backwards; animation-delay: calc(var(--ct-delay, .3s) + var(--i) * 40ms); }
    @supports ((background-clip: text) or (-webkit-background-clip: text)) {
        [data-text-fx-on="shimmer"] .ct { padding-block: .1em; background: linear-gradient(105deg, currentColor 42%, var(--ct-shine, #fff8e6) 50%, currentColor 58%) 100% 0 / 250% 100% no-repeat;
            -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ct-shimmer 2.4s ease-in-out 2 backwards; animation-delay: var(--ct-delay, .3s); }
    }
}
@keyframes ct-rise { from { opacity: 0; transform: translateY(.5em); } }
@keyframes ct-blur { from { opacity: 0; filter: blur(12px); transform: translateY(.15em); } }
@keyframes ct-type { from { visibility: hidden; } to { visibility: visible; } }
@keyframes ct-cursor { 0%, 95% { box-shadow: .07em 0 0 currentColor; } 100% { box-shadow: .07em 0 0 transparent; } }
@keyframes ct-caret { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes ct-flicker { 0% { opacity: 0; } 8% { opacity: .9; } 14% { opacity: .15; } 26% { opacity: 1; } 32% { opacity: .35; } 44%, 100% { opacity: 1; } }
/* The light starts beyond the left edge and leaves past the right; the gradient always covers the words. */
@keyframes ct-shimmer { to { background-position: 0% 0; } }

/* Icons from useAnimations (MIT, see /frontend/assets/icons/useanimations-LICENSE.txt), drawn as SVG and moved with
   CSS instead of their Lottie player. The music button: the waves play while the song does, a cross when paused. */
.music-toggle { display: grid; place-items: center; }
.music-toggle[hidden] { display: none; }
.music-toggle .ua-volume { width: 22px; height: 22px; overflow: visible; }
.ua-volume .ua-wave, .ua-volume .ua-mute { transition: opacity .25s ease, transform .25s ease; transform-box: fill-box; transform-origin: left center; }
.music-toggle[aria-pressed="true"] .ua-mute, .music-toggle[aria-pressed="false"] .ua-wave { opacity: 0; transform: scale(.4); }
@media (prefers-reduced-motion: no-preference) {
    .music-toggle[aria-pressed="true"] .ua-wave { animation: ua-wave 1.6s ease-in-out infinite; }
    .music-toggle[aria-pressed="true"] .ua-wave-2 { animation-delay: .25s; }
}
@keyframes ua-wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* 4 Dec 2026 (owner request): each theme's own motif (music.blade.php) moves while the song plays; paused, it
   stands still under a slash. Only without reduced motion; the label says the state either way. */
.music-toggle .mt-icon { width: 24px; height: 24px; overflow: hidden; }
.mt-icon .mt-move { transform-box: view-box; transform-origin: 12px 12px; }
.mt-icon .mt-mute { transition: opacity .25s ease; }
.music-toggle[aria-pressed="true"] .mt-mute { opacity: 0; }
.music-toggle[aria-pressed="false"] .mt-move { opacity: .7; }
.music-toggle[data-music-icon="leaf"] .mt-move { transform-origin: 5px 19px; }
.music-toggle[data-music-icon="rice"] .mt-move { transform-origin: 12px 21px; }
.music-toggle[data-music-icon="spotlight"] .mt-move { transform-origin: 12px 4px; }
.music-toggle[data-music-icon="lantern"] .mt-move { transform-origin: 12px 1.5px; }
.music-toggle[data-music-icon="candle"] .mt-move { transform-origin: 12px 8.8px; }
.music-toggle[data-music-icon="gong"] .mt-move { transform-origin: 12px 14px; }
.music-toggle[data-music-icon="moon"] .mt-move { transform-origin: 12px 13px; }
.music-toggle[data-music-icon="gem"] .mt-move { transform-origin: 20.5px 3px; }
@media (prefers-reduced-motion: no-preference) {
    .music-toggle[aria-pressed="true"]:is([data-music-icon="vinyl"], [data-music-icon="reel"]) .mt-move { animation: mt-spin 3s linear infinite; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="flower"], [data-music-icon="kawung"]) .mt-move { animation: mt-spin 9s linear infinite; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="leaf"], [data-music-icon="rice"], [data-music-icon="lantern"], [data-music-icon="spotlight"]) .mt-move { animation: mt-sway 2.4s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="seal"], [data-music-icon="stamp"], [data-music-icon="moon"]) .mt-move { animation: mt-tilt 3.2s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"][data-music-icon="aperture"] .mt-move { animation: mt-iris 2.6s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="gem"], [data-music-icon="pearl"], [data-music-icon="projector"], [data-music-icon="gate"]) .mt-move { animation: mt-glow 1.6s ease-in-out infinite; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="fog"], [data-music-icon="wave"]) .mt-move { animation: mt-drift 2.8s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="cloud"], [data-music-icon="sunset"]) .mt-move { animation: mt-float 2.6s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"]:is([data-music-icon="rain"], [data-music-icon="ink"]) .mt-move { animation: mt-fall 1.2s ease-in infinite; }
    .music-toggle[aria-pressed="true"][data-music-icon="candle"] .mt-move { animation: mt-flicker 1.1s ease-in-out infinite alternate; }
    .music-toggle[aria-pressed="true"][data-music-icon="gong"] .mt-move { animation: mt-pulse 1.4s ease-out infinite; }
    .music-toggle[aria-pressed="true"][data-music-icon="film"] .mt-move { animation: mt-scroll .8s linear infinite; }
}
@keyframes mt-spin { to { transform: rotate(360deg); } }
@keyframes mt-sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes mt-tilt { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes mt-iris { from { transform: rotate(0deg) scale(1); } to { transform: rotate(40deg) scale(.86); } }
@keyframes mt-glow { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes mt-drift { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
@keyframes mt-float { from { transform: translateY(-1.5px); } to { transform: translateY(1.5px); } }
@keyframes mt-fall { from { transform: translateY(-1px); opacity: 1; } to { transform: translateY(3px); opacity: 0; } }
@keyframes mt-flicker { from { transform: scale(1, 1); } to { transform: scale(.85, 1.12); } }
@keyframes mt-pulse { 0% { transform: scale(1); } 20% { transform: scale(.88); } 100% { transform: scale(1); } }
@keyframes mt-scroll { to { transform: translateY(4px); } }
/* Copied: a check draws in (the Sinematik family swaps its own icon; the others show it before their words). */
.ua-check { stroke-dasharray: 24; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .is-copied .ua-check, [data-copied] .ua-check { animation: ua-draw .4s ease-out both; } }
@keyframes ua-draw { from { stroke-dashoffset: 24; } }
[data-copy]:not(.cine-copy) .ua-check { display: none; width: 1em; height: 1em; margin-right: .4em; vertical-align: -.12em; }
[data-copy]:not(.cine-copy)[data-copied] .ua-check { display: inline-block; }
/* The scroll cue: a mouse whose wheel rolls down. */
.ua-scroll { width: 26px; height: 26px; overflow: visible; }
@media (prefers-reduced-motion: no-preference) { .ua-scroll .ua-wheel { animation: ua-wheel 1.8s ease-in-out infinite; } }
@keyframes ua-wheel { 0% { opacity: 0; transform: translateY(-3px); } 30%, 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(5px); } }
/* The menu's close cross (Sinematik family) draws itself as the menu opens. */
.ua-x { stroke-dasharray: 17; }
@media (prefers-reduced-motion: no-preference) {
    .is-open .ua-x { animation: ua-draw-x .35s ease-out .2s both; }
    .is-open .ua-x-2 { animation-delay: .32s; }
}
@keyframes ua-draw-x { from { stroke-dashoffset: 17; } }
/* The Sinematik family's story row: a dot per chapter, the one in view filled (cine.js). */
.cine-dots { display: flex; justify-content: center; gap: .5rem; margin: -.6rem 0 0; }
.cine-dots span { width: .45rem; height: .45rem; border-radius: 50%; border: 1px solid currentColor; opacity: .6; transition: background-color .3s ease, opacity .3s ease, width .3s ease; }
.cine-dots span.is-on { width: 1.2rem; border-radius: .25rem; background: currentColor; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cine-dots span { transition: none; } }
