/* Visual Effects page. Every moving effect is local to this page. Flash and blink previews run
   only from their own Play button, one at a time, for 4.5s at most (five 0.5s blinks, one a
   second), and end lit and still. The strip and the auto-roll slides have their own Pause/Play.
   "Pause all" (js/visual-effects.js) latches: .vfx-all-paused on <html> stops every animation and
   transition here. prefers-reduced-motion is honoured by CSS from the first paint. */
/* The twenty-two sample fonts for the font card. Self-hosted under the SIL Open Font License (the
   OFL-*.txt beside each file); only this page declares them, and a browser fetches each one only
   when the font card is drawn. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/oswald-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/montserrat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/cormorant-garamond-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/dm-serif-display-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/fraunces-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/quicksand-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/dancing-script-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/caveat-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/bebas-neue-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/merriweather-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/pacifico-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/space-grotesk-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/nunito-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/josefin-sans-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Black'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/archivo-black-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Abril Fatface'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/abril-fatface-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 700; font-display: swap; src: url('../../assets/fonts/libre-baskerville-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/great-vibes-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lobster'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/lobster-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Righteous'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/righteous-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Shadows Into Light'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/shadows-into-light-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.vfx { background: linear-gradient(160deg, #0b1023 0%, #1e1b4b 55%, #0f172a 100%); color: #e2e8f0; padding: 3.5rem 0 4.5rem; }
.vfx .container { max-width: 1100px; }
.vfx h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 900; line-height: 1.15; margin: 0 0 .75rem; text-align: center; }
.vfx-intro { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; font-size: 1.05rem; line-height: 1.65; color: #cbd5e1; }
.vfx-intro a { color: #fde68a; }
.vfx-bar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; margin: 0 auto 2.5rem; }
.vfx-rm-note { display: none; margin: 0; color: #fde68a; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .vfx-rm-note { display: block; } }
.vfx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.5rem; }
.vfx-card { background: rgba(15, 23, 42, .82); border: 1px solid rgba(148, 163, 184, .28); border-radius: 18px; padding: 1.35rem; box-shadow: 0 12px 30px rgba(0,0,0,.35); min-width: 0; }
.vfx-card.vfx-wide { grid-column: 1 / -1; }
.vfx-card h2 { color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0 0 .35rem; }
.vfx-card > p { margin: 0 0 1rem; color: #cbd5e1; line-height: 1.55; }
.vfx-stage { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 1rem; border-radius: 12px; background: rgba(2, 6, 23, .55); margin-bottom: 1rem; overflow: hidden; position: relative; }
.vfx-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.vfx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 12px; border: 1px solid #38bdf8; background: #0f172a; color: #e0f2fe; font: inherit; font-weight: 700; cursor: pointer; }
.vfx-btn:hover { background: #1e293b; color: #fff; }
.vfx-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vfx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.vfx-next .vfx-btn { text-decoration: none; }
.vfx-btn[aria-pressed="true"] { background: #fbbf24; border-color: #fbbf24; color: #1e1b4b; }
.vfx-pause-all { border-color: #fbbf24; color: #fde68a; }
.vfx-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.vfx-status { margin: .6rem 0 0; font-size: .9rem; color: #94a3b8; }

/* ---- the five flash forms: lit is the resting state, so every preview ends lit ---- */
.vfx-sample { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.5rem; border-radius: 14px; font-weight: 800; font-size: 1.05rem; color: #fff; position: relative; overflow: hidden; }
.vfx-f-glow { border: 1.5px solid #7dd3fc; color: #7dd3fc; box-shadow: 0 0 16px rgba(56,189,248,.9), 0 0 34px rgba(56,189,248,.55); }
.vfx-f-border { border: 3px solid #fbbf24; color: #fde68a; }
.vfx-f-fill { background: #fbbf24; color: #1e1b4b; }
.vfx-f-text { color: #fde68a; font-size: 1.5rem; text-shadow: 0 0 12px rgba(251,191,36,.95), 0 0 28px rgba(251,191,36,.55); }
.vfx-f-shine { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.vfx-f-shine::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); pointer-events: none; }
.vfx-blink { font-size: 1.6rem; font-weight: 900; color: #fde68a; }

@keyframes vfx-glow   { 0%,11.111%,22.222%,33.333%,44.444%,55.556%,66.667%,77.778%,88.889%,100% { box-shadow: 0 0 16px rgba(56,189,248,.9), 0 0 34px rgba(56,189,248,.55); } 5.556%,27.778%,50%,72.222%,94.444% { box-shadow: 0 0 0 rgba(56,189,248,0); } }
@keyframes vfx-border { 0%,11.111%,22.222%,33.333%,44.444%,55.556%,66.667%,77.778%,88.889%,100% { border-color: #fbbf24; } 5.556%,27.778%,50%,72.222%,94.444% { border-color: rgba(251,191,36,.12); } }
@keyframes vfx-fill   { 0%,11.111%,22.222%,33.333%,44.444%,55.556%,66.667%,77.778%,88.889%,100% { background-color: #fbbf24; color: #1e1b4b; } 5.556%,27.778%,50%,72.222%,94.444% { background-color: #312e81; color: #fde68a; } }
@keyframes vfx-text   { 0%,11.111%,22.222%,33.333%,44.444%,55.556%,66.667%,77.778%,88.889%,100% { text-shadow: 0 0 12px rgba(251,191,36,.95), 0 0 28px rgba(251,191,36,.55); } 5.556%,27.778%,50%,72.222%,94.444% { text-shadow: 0 0 0 rgba(251,191,36,0); } }
@keyframes vfx-shine  { 0% { transform: translateX(-120%); } 20%,100% { transform: translateX(120%); } }
@keyframes vfx-blink  { 0%,11.111%,22.222%,33.333%,44.444%,55.556%,66.667%,77.778%,88.889%,100% { opacity: 1; } 5.556%,27.778%,50%,72.222%,94.444% { opacity: .15; } }
.vfx-f-glow.is-playing   { animation: vfx-glow 4.5s linear 1; }
.vfx-f-border.is-playing { animation: vfx-border 4.5s linear 1; }
.vfx-f-fill.is-playing   { animation: vfx-fill 4.5s linear 1; }
.vfx-f-text.is-playing   { animation: vfx-text 4.5s linear 1; }
.vfx-f-shine.is-playing::after { animation: vfx-shine .9s ease-in-out 5; }
.vfx-blink.is-playing    { animation: vfx-blink 4.5s linear 1; }
.vfx-flash-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1rem; }
.vfx-flash-item { display: grid; gap: .6rem; justify-items: center; padding: 1rem; border-radius: 12px; background: rgba(2,6,23,.55); text-align: center; }
.vfx-flash-item h3 { margin: 0; font-size: 1rem; color: #fff; }

/* the header button's own flash stops for good once a preview plays, so effects never combine
   and stopping a preview never replays it */
.vfx-head-still .site-header .nav-account-btn { animation: none; }

/* ---- moving word strip ---- */
.vfx-strip { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.vfx-strip-track { display: flex; width: max-content; animation: vfx-strip 24s linear infinite; }
.vfx-strip-track span { padding: 0 1.25rem; font-size: 1.35rem; font-weight: 800; color: #fde68a; white-space: nowrap; }
.vfx-strip-track span:nth-child(even) { color: #7dd3fc; }
.vfx-strip.is-paused .vfx-strip-track { animation-play-state: paused; }
@keyframes vfx-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- slide shows ---- */
.vfx-slides { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; }
.vfx-slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.vfx-slides figure.is-current { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.vfx-slides img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-slides figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .8rem; background: rgba(2,6,23,.78); color: #fff; font-size: .9rem; font-weight: 700; }
.vfx-slides-stage { padding: 0; background: none; }

/* ---- picture morph ---- */
.vfx-morph { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; }
.vfx-morph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease, clip-path 1.4s ease; }
.vfx-morph .vfx-m-b { opacity: 0; filter: blur(12px); transform: scale(1.08); clip-path: circle(0% at 50% 50%); }
.vfx-morph.is-morphed .vfx-m-a { opacity: 0; filter: blur(12px); transform: scale(.94); }
.vfx-morph.is-morphed .vfx-m-b { opacity: 1; filter: none; transform: none; clip-path: circle(75% at 50% 50%); }

/* ---- flip cards: the hidden face is inert, so it cannot take focus ---- */
.vfx-flip { perspective: 1000px; width: 100%; max-width: 360px; margin: 0 auto 1rem; }
.vfx-flip-inner { position: relative; width: 100%; aspect-ratio: 4 / 3; transform-style: preserve-3d; transition: transform .7s ease; }
.vfx-flip.is-flipped .vfx-flip-inner { transform: rotateY(180deg); }
.vfx-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem; border-radius: 14px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; text-align: center; }
.vfx-face-front { background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; }
.vfx-face-back { background: #fde68a; color: #1e1b4b; transform: rotateY(180deg); }
.vfx-face h3 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.vfx-face p { margin: 0; line-height: 1.5; font-weight: 600; }
.vfx-face-pic { padding: 0; }
.vfx-face-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* ---- frames ---- */
.vfx-frames { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 1.25rem; }
.vfx-frames figure { margin: 0; text-align: center; flex: 0 1 220px; }
.vfx-frames img { display: block; margin: 0 auto .6rem; object-fit: cover; object-position: top center; background: #020617; }
.vfx-frame-circle { width: 180px; height: 180px; border-radius: 50%; border: 4px solid #fbbf24; }
.vfx-frame-star { width: 190px; height: 190px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.vfx-frame-oval { width: 220px; height: 160px; border-radius: 50%; border: 4px solid #38bdf8; }
.vfx-frame-hex { width: 190px; height: 166px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.vfx-frame-arch { width: 160px; height: 200px; border-radius: 80px 80px 8px 8px; border: 4px solid #fde68a; }
.vfx-frame-shield { width: 170px; height: 200px; clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
.vfx-frames .vfx-frame-photo { width: 180px; height: 190px; padding: 10px 10px 38px; background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.45); transform: rotate(-3deg); }
.vfx-frames figcaption { font-weight: 700; color: #fff; }

/* ---- font families ---- */
.vfx-fonts { content-visibility: auto; contain-intrinsic-size: auto 2400px; list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vfx-fonts li { padding: .8rem 1rem; border-radius: 12px; background: rgba(2,6,23,.55); }
.vfx-fonts .vfx-fname { display: block; font-family: 'Raleway', system-ui, sans-serif; font-size: .85rem; font-weight: 700; color: #94a3b8; margin-bottom: .2rem; }
.vfx-fonts .vfx-fsample { display: block; font-size: 1.35rem; color: #fff; line-height: 1.35; overflow-wrap: anywhere; }

/* ---- rotating headline: one word changes every 2.5s (js), Pause button; screen readers get the
   whole sentence once, from the hidden copy ---- */
.vfx-rot { margin: 0; font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: 800; color: #fff; text-align: center; }
.vfx-rot-word { display: inline-block; min-width: 4.6em; text-align: left; color: #fde68a; }
.vfx-rot-word.is-in { animation: vfx-rot-in .45s ease-out; }
@keyframes vfx-rot-in { from { opacity: 0; transform: translateY(.6em); } to { opacity: 1; transform: none; } }

/* ---- gradient words: the blend is the resting state; Play drifts it across and back ---- */
.vfx-grad { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 900; text-align: center; color: transparent; background: linear-gradient(90deg, #fde68a, #7dd3fc, #f9a8d4, #fde68a) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; }
.vfx-grad.is-playing { animation: vfx-grad 4.5s ease-in-out 1; }
@keyframes vfx-grad { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@media (forced-colors: active) { .vfx-grad { color: CanvasText; background: none; } }

/* ---- highlighter sweep: dark words on light paper, so they read before, during and after ---- */
.vfx-paper { background: #fffbeb; }
.vfx-hl { margin: 0; color: #1e1b4b; font-size: 1.15rem; font-weight: 700; line-height: 1.6; text-align: center; }
.vfx-hl mark { color: inherit; padding: 0 .15em; border-radius: .2em; background: linear-gradient(transparent 12%, #fde047 12%, #fde047 88%, transparent 88%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vfx-hl.is-playing mark { animation: vfx-hl 1.1s ease-out 1 both; }
.vfx-hl.is-playing mark:nth-of-type(2) { animation-delay: .9s; }
@keyframes vfx-hl { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* ---- line drawing: drawn is the resting state; Play draws it again, one line after another ---- */
.vfx-draw { width: 100%; max-width: 240px; height: auto; fill: none; stroke: #7dd3fc; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.vfx-draw circle, .vfx-draw path:last-child { stroke: #fde68a; }
.vfx-draw.is-playing > * { stroke-dasharray: 100; animation: vfx-draw .9s ease-in-out 1 both; }
.vfx-draw.is-playing > :nth-child(2) { animation-delay: .6s; }
.vfx-draw.is-playing > :nth-child(3) { animation-delay: 1.2s; }
.vfx-draw.is-playing > :nth-child(4) { animation-delay: 1.8s; }
.vfx-draw.is-playing > :nth-child(5) { animation-delay: 2.6s; }
@keyframes vfx-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* ---- rolling numbers (js counts; the totals are the resting state and what screen readers get) ---- */
.vfx-count { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.75rem; text-align: center; color: #cbd5e1; font-weight: 700; }
.vfx-count li { display: grid; gap: .1rem; min-width: 5.5rem; }
.vfx-num { font-size: 2rem; font-weight: 900; color: #fde68a; font-variant-numeric: tabular-nums; }

/* ---- scroll reveal: the boxes are hidden only once the script has armed them, so they always
   show without it ---- */
.vfx-reveal { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; width: 100%; }
.vfx-reveal li { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; background: #1e293b; color: #fff; font-weight: 700; transition: opacity .6s ease, transform .6s ease; }
.vfx-reveal li span { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #fbbf24; color: #1e1b4b; font-weight: 900; }
.vfx-reveal.is-armed li { opacity: 0; transform: translateY(18px); }
.vfx-reveal.is-armed.is-shown li { opacity: 1; transform: none; }
.vfx-reveal.is-reset li { transition: none; }
.vfx-reveal.is-shown li:nth-child(2) { transition-delay: .15s; }
.vfx-reveal.is-shown li:nth-child(3) { transition-delay: .3s; }

/* ---- before and after: the range input is the real control; dragging the picture moves it too ---- */
.vfx-ba { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; margin-bottom: .6rem; touch-action: pan-y; cursor: ew-resize; }
.vfx-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.vfx-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(2,6,23,.5); }
.vfx-ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; border: 3px solid #1e1b4b; }
.vfx-ba-tag { position: absolute; top: .5rem; padding: .2rem .55rem; border-radius: 6px; background: rgba(2,6,23,.85); color: #fff; font-size: .8rem; font-weight: 800; }
.vfx-ba-l { left: .5rem; } .vfx-ba-r { right: .5rem; }
.vfx-ba-label { display: block; margin: .2rem 0; font-weight: 700; color: #e2e8f0; }
.vfx-ba-range { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: #fbbf24; cursor: pointer; }
.vfx-ba-range:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---- picture zoom: hover zooms where the pointer rests; the button zooms for touch and keys ---- */
.vfx-zoom { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; margin-bottom: 1rem; cursor: zoom-in; }
.vfx-zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transform-origin: var(--zx, 50%) var(--zy, 30%); transition: transform .4s ease; }
.vfx-zoom.is-zoomed img { transform: scale(1.8); }
@media (hover: hover) { .vfx-zoom:hover img { transform: scale(1.8); } }

/* ---- caption reveal ---- */
.vfx-cap { position: relative; margin: 0 0 1rem; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; }
.vfx-cap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-cap figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; background: rgba(2,6,23,.9); color: #fff; font-weight: 700; line-height: 1.45; transform: translateY(101%); transition: transform .45s ease; }
.vfx-cap.is-open figcaption { transform: none; }
@media (hover: hover) { .vfx-cap:hover figcaption { transform: none; } }

/* ---- tilt card with a spotlight: the spotlight stays faint enough for white text to keep 4.5:1 ---- */
.vfx-tilt-wrap { perspective: 800px; margin-bottom: 1rem; }
.vfx-tilt { display: flex; flex-direction: column; justify-content: center; gap: .4rem; min-height: 150px; padding: 1.6rem 1.3rem; border-radius: 16px; color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.4); background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, #1e3a8a, #6d28d9); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; }
.vfx-tilt h3 { margin: 0; font-size: 1.35rem; font-weight: 900; color: #fff; }
.vfx-tilt p { margin: 0; font-weight: 600; line-height: 1.5; }

/* ---- picture lightbox: a native modal dialog (Esc closes it, focus returns to the picture) ---- */
.vfx-lb-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .25rem; }
.vfx-lb-open { padding: 0; border: 2px solid rgba(148,163,184,.35); border-radius: 10px; overflow: hidden; background: #020617; cursor: zoom-in; aspect-ratio: 1; min-height: 44px; }
.vfx-lb-open img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-lb-open:hover { border-color: #38bdf8; }
.vfx-lb-open:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vfx-lb { width: min(760px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1rem; border: 1px solid rgba(148,163,184,.4); border-radius: 16px; background: #0f172a; color: #fff; }
.vfx-lb[open] { animation: vfx-lb-in .3s ease-out; }
.vfx-lb::backdrop { background: rgba(2,6,23,.82); }
.vfx-lb figure { margin: 0 0 .8rem; }
.vfx-lb img { display: block; width: 100%; height: auto; border-radius: 10px; }
.vfx-lb figcaption { margin-top: .5rem; font-weight: 800; }
@keyframes vfx-lb-in { from { opacity: 0; transform: scale(.96); } }

/* ---- subtle textures: still backgrounds, nothing moves ---- */
.vfx-tex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1rem; }
.vfx-tex li { display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; min-height: 140px; padding: 1rem 1.1rem; border-radius: 12px; }
.vfx-tex strong { font-size: 1.15rem; font-weight: 900; }
.vfx-tex span { font-weight: 600; }
.vfx-tex-paper { color: #1e1b4b; background-color: #f6efdf; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vfx-tex-dots { color: #fff; background-color: #1e293b; background-image: radial-gradient(rgba(148,163,184,.35) 1px, transparent 1.5px); background-size: 14px 14px; }
.vfx-tex-linen { color: #fff; background-color: #14532d; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 4px); }

/* ---- typewriter words (js types them; the whole line is the resting state, and screen readers
   get it once, from the hidden copy) ---- */
.vfx-type { margin: 0; min-height: 1.5em; font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: 800; color: #fff; text-align: center; }
.vfx-type.is-typing #vfx-type-out::after { content: ""; display: inline-block; width: .08em; height: 1.05em; margin-left: .06em; vertical-align: -.12em; background: #fde68a; animation: vfx-caret .8s steps(1) infinite; }
@keyframes vfx-caret { 50% { opacity: 0; } }

/* ---- letters that rise: still and in place until Play ---- */
.vfx-rise { margin: 0; font-size: clamp(1.4rem, 4.5vw, 1.8rem); font-weight: 900; color: #fde68a; text-align: center; line-height: 1.3; }
.vfx-rise-w { display: inline-block; white-space: nowrap; }
.vfx-rise-w > span { display: inline-block; }
.vfx-rise.is-playing .vfx-rise-w > span { animation: vfx-rise .5s cubic-bezier(.2, .8, .3, 1.2) 1 both; animation-delay: calc(var(--i) * 70ms); }
@keyframes vfx-rise { from { opacity: 0; transform: translateY(.7em); } }

/* ---- star rating: filled to the score is the resting state; Play fills it from empty ---- */
.vfx-stars-stage { flex-direction: column; gap: .4rem; }
.vfx-stars { position: relative; font-size: 2rem; line-height: 1; letter-spacing: .1em; white-space: nowrap; }
.vfx-stars-off { color: #475569; }
.vfx-stars-on { position: absolute; top: 0; left: 0; width: 96%; overflow: hidden; color: #fbbf24; }
.vfx-stars.is-playing .vfx-stars-on { animation: vfx-fill 1.6s ease-out 1 both; }
@keyframes vfx-fill { from { width: 0; } }
.vfx-stars-text { margin: 0; color: #e2e8f0; font-weight: 700; }

/* ---- filling bars: full to their numbers at rest; Play grows them again ---- */
.vfx-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; width: 100%; }
.vfx-bars li { display: grid; gap: .3rem; color: #e2e8f0; font-weight: 700; }
.vfx-bars li span { display: flex; justify-content: space-between; gap: .5rem; }
.vfx-bars b { color: #fde68a; }
.vfx-bars i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #38bdf8, #fbbf24); transform-origin: left center; }
.vfx-bars.is-playing i { animation: vfx-bar 1.3s ease-out 1 both; }
.vfx-bars.is-playing li:nth-child(2) i { animation-delay: .2s; }
.vfx-bars.is-playing li:nth-child(3) i { animation-delay: .4s; }
@keyframes vfx-bar { from { transform: scaleX(0); } }

/* ---- slow pan picture: still until Play, then drifts in and back out again over 4.5s ---- */
.vfx-pan { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; margin-bottom: 1rem; }
.vfx-pan img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-pan.is-playing img { animation: vfx-pan 4.5s ease-in-out 1; }
@keyframes vfx-pan { 50% { transform: scale(1.3) translate(-8%, 6%); } }

/* ---- black and white to colour: hover for a mouse, the button for touch and keys ---- */
.vfx-gray { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; margin-bottom: 1rem; }
.vfx-gray img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; filter: grayscale(1); transition: filter .6s ease; }
.vfx-gray.is-colour img { filter: none; }
@media (hover: hover) { .vfx-gray:hover img { filter: none; } }

/* ---- two-colour pictures: the dark parts take one colour and the light parts the other ---- */
.vfx-duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.vfx-duo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; isolation: isolate; }
.vfx-duo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.vfx-duo::after { content: ""; position: absolute; inset: 0; mix-blend-mode: lighten; pointer-events: none; }
.vfx-duo-gold { background: #fbbf24; } .vfx-duo-gold::after { background: #1e3a8a; }
.vfx-duo-rose { background: #f9a8d4; } .vfx-duo-rose::after { background: #581c87; }

/* ---- frosted glass card: the card is dark enough for white words to keep 4.5:1 over any picture ---- */
.vfx-glass-stage { position: relative; display: flex; align-items: flex-end; min-height: 230px; padding: 1rem; border-radius: 12px; overflow: hidden; background: #020617; }
.vfx-glass-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vfx-glass { position: relative; width: 100%; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(15, 23, 42, .62); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .vfx-glass { background: rgba(15, 23, 42, .88); } }
.vfx-glass h3 { margin: 0 0 .2rem; font-size: 1.25rem; font-weight: 900; color: #fff; }
.vfx-glass p { margin: 0; font-weight: 600; }

/* ---- wavy and slanted edges: still pictures drawn with SVG ---- */
.vfx-edges { display: grid; gap: .6rem; }
.vfx-edge { position: relative; padding: .8rem 1rem 2.6rem; border-radius: 12px; overflow: hidden; font-weight: 800; color: #1e1b4b; }
.vfx-edge svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; display: block; }
.vfx-edge-wave { background: #7dd3fc; } .vfx-edge-wave svg { fill: #1e3a8a; }
.vfx-edge-slant { background: #fde68a; } .vfx-edge-slant svg { fill: #6d28d9; }
.vfx-edge-curve { background: #f9a8d4; } .vfx-edge-curve svg { fill: #14532d; }

/* ---- button ripple (js adds one ripple per press; none while paused or with reduced motion) ---- */
.vfx-ripple-btn { position: relative; overflow: hidden; min-height: 48px; padding: .7rem 1.6rem; border: 0; border-radius: 999px; background: #fbbf24; color: #1e1b4b; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.vfx-ripple-btn:hover { background: #fcd34d; }
.vfx-ripple-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vfx-ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(255,255,255,.7); pointer-events: none; animation: vfx-ripple .6s ease-out 1 forwards; }
@keyframes vfx-ripple { from { transform: scale(0); opacity: .9; } to { transform: scale(26); opacity: 0; } }

/* ---- sliding underline links: the underline grows from the left on hover and keyboard focus ---- */
.vfx-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; }
.vfx-links a { display: inline-block; padding: .6rem .1rem; color: #e0f2fe; font-weight: 800; text-decoration: none; background: linear-gradient(#fbbf24, #fbbf24) no-repeat 0 calc(100% - .35rem) / 0 3px; transition: background-size .3s ease; }
.vfx-links a:hover, .vfx-links a:focus-visible { background-size: 100% 3px; color: #fff; }
.vfx-links a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (forced-colors: active) { .vfx-links a { text-decoration: underline; } }

/* ---- smooth questions and answers: every answer shows without the script; once it runs, closed
   answers fold away and are hidden from screen readers too ---- */
.vfx-acc h3 { margin: 0; }
.vfx-acc .vfx-acc-panel + h3 { margin-top: .5rem; }
.vfx-acc-btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid rgba(148,163,184,.35); border-radius: 10px; background: #1e293b; color: #fff; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.vfx-acc-btn::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: #fde68a; transition: transform .3s ease; }
.vfx-acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.vfx-acc-btn:hover { border-color: #38bdf8; }
.vfx-acc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vfx-acc-panel { display: grid; grid-template-rows: 1fr; }
.vfx-acc-panel > div { overflow: hidden; }
.vfx-acc-panel p { margin: 0; padding: .6rem .9rem .2rem; color: #e2e8f0; line-height: 1.55; }
.vfx-acc.is-ready .vfx-acc-panel { grid-template-rows: 0fr; visibility: hidden; }
.vfx-acc.is-ready .vfx-acc-panel.is-open { grid-template-rows: 1fr; visibility: visible; }
.vfx-acc.is-live .vfx-acc-panel { transition: grid-template-rows .35s ease, visibility 0s linear .35s; }
.vfx-acc.is-live .vfx-acc-panel.is-open { transition: grid-template-rows .35s ease, visibility 0s; }

/* ---- flip cards: both sides show, one under the other, without the script; once it runs the
   card turns over on its button, and the hidden side is hidden from screen readers too ---- */
.vfx-flip { perspective: 900px; margin-bottom: 1rem; }
.vfx-flip-in { display: grid; gap: .6rem; }
.vfx-flip-face { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: 1.1rem 1.2rem; border-radius: 12px; }
.vfx-flip-face h3 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 900; color: inherit; }
.vfx-flip-face p { margin: 0; font-weight: 600; line-height: 1.5; }
.vfx-flip-front { background: linear-gradient(135deg, #1e3a8a, #6d28d9); color: #fff; }
.vfx-flip-back { background: #fde68a; color: #1e1b4b; }
.vfx-flip.is-ready .vfx-flip-in { gap: 0; transform-style: preserve-3d; transition: transform .6s ease; }
.vfx-flip.is-ready .vfx-flip-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: visibility 0s linear .3s; }
.vfx-flip.is-ready .vfx-flip-back { transform: rotateY(180deg); visibility: hidden; }
.vfx-flip.is-flipped .vfx-flip-in { transform: rotateY(180deg); }
.vfx-flip.is-flipped .vfx-flip-front { visibility: hidden; }
.vfx-flip.is-flipped .vfx-flip-back { visibility: visible; }

/* ---- "how it works" steps: the line and numbers are in place at rest; Play draws them in ---- */
.vfx-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; width: 100%; }
.vfx-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 3px; border-radius: 2px; background: #38bdf8; transform-origin: top center; }
.vfx-steps li { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start; color: #e2e8f0; line-height: 1.45; }
.vfx-steps li > span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fbbf24; color: #1e1b4b; font-weight: 900; }
.vfx-steps b { display: block; color: #fff; }
.vfx-steps.is-playing::before { animation: vfx-line 1.6s ease-out 1 both; }
.vfx-steps.is-playing li > span { animation: vfx-pop .4s cubic-bezier(.2, .8, .3, 1.4) 1 both; }
.vfx-steps.is-playing li:nth-child(2) > span { animation-delay: .7s; }
.vfx-steps.is-playing li:nth-child(3) > span { animation-delay: 1.4s; }
@keyframes vfx-line { from { transform: scaleY(0); } }
@keyframes vfx-pop { from { transform: scale(0); } }

/* ---- picture hotspots: without the script the notes are a plain numbered list under the
   picture; once it runs they sit on the picture and open one at a time ---- */
.vfx-spots-pic { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; }
.vfx-spots-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.vfx-spot-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.vfx-spot { display: flex; align-items: center; gap: .6rem; color: #e2e8f0; font-weight: 600; }
.vfx-spot-btn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #1e3a8a; color: #fff; font: inherit; font-size: .9rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.vfx-spot-btn:hover, .vfx-spot-btn[aria-expanded="true"] { background: #6d28d9; }
.vfx-spot-btn:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.vfx-spots.is-ready { position: relative; }
.vfx-spots.is-ready .vfx-spot-list { position: absolute; inset: 0; margin: 0; display: block; }
.vfx-spots.is-ready .vfx-spot { position: absolute; left: var(--x); top: var(--y); display: block; margin: -15px 0 0 -15px; }
.vfx-spots.is-ready .vfx-spot-tip { position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; width: max-content; max-width: 170px; padding: .45rem .65rem; border-radius: 8px; background: #fff; color: #1e1b4b; font-size: .9rem; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.4); visibility: hidden; }
.vfx-spots.is-ready .vfx-spot-r .vfx-spot-tip { left: auto; right: 0; }
.vfx-spots.is-ready .vfx-spot.is-open { z-index: 3; }
.vfx-spots.is-ready .vfx-spot.is-open .vfx-spot-tip { visibility: visible; }



/* ---- Pause all, and reduced motion: everything still and usable ---- */
.vfx-all-paused .vfx *, .vfx-all-paused .vfx *::before, .vfx-all-paused .vfx *::after { animation-play-state: paused !important; transition-duration: 0s !important; transition-delay: 0s !important; }
.vfx-all-paused .vfx .is-playing, .vfx-all-paused .vfx .is-playing::after, .vfx-all-paused .vfx .vfx-rot-word, .vfx-all-paused .vfx .vfx-lb[open] { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .vfx *, .vfx *::before, .vfx *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}
@media (max-width: 480px) { .vfx { padding: 2.25rem 0 3rem; } .vfx-card { padding: 1rem; } }
