/* css/cxbar.css */
/* 1.21 / 2.19 · the newest-contestants bar (partials/cxbar.php) — the same on both sites */
.cxb { --cxb-bg: #1A0F2E; --cxb-ink: #F6EEF9; --cxb-mute: #C9B8D9; --cxb-acc: #E9C46A;
  position: relative; display: flex; align-items: stretch; min-height: 50px; background: var(--cxb-bg); color: var(--cxb-ink); overflow: hidden; border-block: 1px solid rgba(233,196,106,.22); isolation: isolate; }
.cxb__tag { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; flex: none; padding: 0 16px; font-weight: 800; font-size: 13.5px; color: #2A1A05; text-decoration: none;
  background: linear-gradient(135deg, #F7D774, #E2A93B); }
.cxb__tag::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -14px; width: 14px; background: inherit; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[dir="rtl"] .cxb__tag::after { clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.cxb__crown { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.4); }
.cxb__crown svg { width: 15px; height: 15px; }
.cxb__view { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.cxb__track { display: flex; width: max-content; height: 100%; animation: cxb-run var(--cxb-dur, 60s) linear infinite; }
[dir="rtl"] .cxb__track { animation-name: cxb-run-rtl; }
.cxb:hover .cxb__track, .cxb:focus-within .cxb__track { animation-play-state: paused; }
@keyframes cxb-run { to { transform: translateX(-50%); } }
@keyframes cxb-run-rtl { to { transform: translateX(50%); } }
.cxb__list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 22px; list-style: none; }
.cxb__item { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; color: inherit; text-decoration: none; white-space: nowrap; transition: background-color .18s ease; }
[dir="rtl"] .cxb__item { padding: 6px 6px 6px 14px; }
.cxb__item:hover, .cxb__item:focus-visible { background: rgba(255,255,255,.08); }
.cxb__item:focus-visible { outline: 2px solid var(--cxb-acc); outline-offset: 1px; }
.cxb__av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: #3A2556; box-shadow: 0 0 0 2px var(--cxb-acc); }
.cxb__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cxb__av i { font-style: normal; font-weight: 800; font-size: 14px; color: var(--cxb-acc); }
.cxb__name { font-weight: 700; font-size: 14px; }
.cxb__age { font-size: 12.5px; color: var(--cxb-mute); padding-inline-start: 8px; border-inline-start: 1px solid rgba(255,255,255,.18); }
@media (max-width: 640px) { .cxb { min-height: 46px; } .cxb__tag span:last-child { display: none; } .cxb__tag { padding: 0 12px; } .cxb__av { width: 30px; height: 30px; } .cxb__name { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .cxb__track { animation: none; } .cxb__view { overflow-x: auto; scrollbar-width: none; } .cxb__list[aria-hidden] { display: none; } }

/* 1.24 / 2.23 · item 15 · the bar in the news ticker's style everywhere: a rounded glass strip with a clear edge, a gold
   label with the ticker's slanted cut (no arrow tip), both ends of the moving row fading out */
.cxb, .cxb--landing, .cxb--site, .cxb--shs { min-height: 44px; height: 44px; margin: 8px auto; width: min(1280px, calc(100% - 24px)); border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(14, 10, 32, .72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.ld-hero__bars .cxb, .cxb--landing { width: 100%; margin: 0; }
.cxb__tag { padding: 0 16px; padding-inline-end: 26px; gap: 7px; font-size: 13px; font-weight: 900; color: #2A1A05;
  background: linear-gradient(120deg, #F7D774, #E2A93B); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
[dir="rtl"] .cxb__tag { clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%); }
.cxb__tag::after, [dir="rtl"] .cxb__tag::after { content: none; }
.cxb__crown { width: 22px; height: 22px; background: rgba(255, 255, 255, .45); }
.cxb__view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cxb__item { padding-block: 4px; }
.cxb__av { width: 30px; height: 30px; }
html[data-mode="light"] .cxb--site, html[data-mode="light"] .cxb--shs { background: rgba(26, 15, 46, .9); }
.cxb--dusk { position: absolute; inset: auto 12px 12px; width: auto; margin: 0; }
@media (max-width: 640px) { .cxb, .cxb--site, .cxb--shs { height: 42px; min-height: 42px; width: calc(100% - 16px); border-radius: 14px; } .cxb__tag { padding: 0 10px; padding-inline-end: 20px; } .cxb__av { width: 28px; height: 28px; } }

/* 1.26 / 2.24 · item 1 · on IPN TV the bar matches the news bar above it exactly (full width, same height, flush);
   on the contest site it is full width with no gap above or below. The welcome page keeps the hero's width. */
.cxb.cxb--site, .cxb.cxb--shs { width: 100%; margin: 0; border-radius: 0; border-width: 0 0 1px; border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.cxb.cxb--site { height: 40px; min-height: 40px; }
.cxb.cxb--site .cxb__tag, .cxb.cxb--shs .cxb__tag { clip-path: none; padding-inline-end: 16px; }
.cxb.cxb--site .cxb__av { width: 28px; height: 28px; }
@media (max-width: 640px) { .cxb.cxb--site, .cxb.cxb--shs { width: 100%; border-radius: 0; } .cxb.cxb--site { height: 40px; min-height: 40px; } }

/* css/kinetic.css */
/* 1.26 / 2.24 · item 2 · "Kinetic" — the project's motion kit, in the spirit of D3 Motion's components (springy, rolling
   numbers, gliding pills, cascading cards, heart shockwave). Our own code; same file on both sites; reduced motion = off. */
:root { --kx-spring: cubic-bezier(.2, 1.35, .4, 1); --kx-out: cubic-bezier(.2, .9, .25, 1); }

/* cascade: cards and panels rise in, one after another, the first time they scroll into view */
.kx-pre { opacity: 0; transform: translateY(14px) scale(.985); }
.kx-in { opacity: 1; transform: none; transition: opacity .55s var(--kx-out) calc(var(--kx-d, 0) * 1ms), transform .7s var(--kx-spring) calc(var(--kx-d, 0) * 1ms); }

/* rolling numbers: digits slide while they count */
.kx-roll { display: inline-block; font-variant-numeric: tabular-nums; }
.kx-rolling { animation: kx-tick .12s linear infinite; }
@keyframes kx-tick { 50% { transform: translateY(-1px); } }

/* gliding pill under the active tab (any tab set the script finds) */
.kx-glide-host { position: relative !important; isolation: isolate; }
.kx-glide { position: absolute; z-index: -1; left: 0; top: 0; border-radius: 999px; pointer-events: none; opacity: 0;
  background: color-mix(in srgb, currentColor 12%, transparent); transition: transform .45s var(--kx-spring), width .45s var(--kx-spring), height .3s, opacity .25s; }
.kx-glide.is-on { opacity: 1; }

/* buttons: a springy press */
:is(.btn, .ac-btn, .pp-btn, .st-btn, .inb-btn, .ab-btn, .cx2-btn, .vpop__btn, .vpop__ytbtn, .pfxbox__go, .fq, .ac-go__a) { transition-property: transform, filter, background, border-color, box-shadow, color; }
:is(.btn, .ac-btn, .pp-btn, .st-btn, .inb-btn, .ab-btn, .cx2-btn, .vpop__btn, .vpop__ytbtn, .pfxbox__go, .fq, .ac-go__a):active { transform: scale(.96) !important; transition-duration: .08s; }

/* heart shockwave + sparks on a vote / like */
.kx-burst { position: fixed; z-index: 2000; width: 0; height: 0; pointer-events: none; }
.kx-burst i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c, #FF4D7E); animation: kx-spark .75s var(--kx-out) forwards; }
.kx-burst b { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #FF4D7E; animation: kx-wave .6s var(--kx-out) forwards; }
@keyframes kx-spark { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-46px) scale(.3); opacity: 0; } }
@keyframes kx-wave { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.4); opacity: 0; border-width: 1px; } }
.kx-pop { animation: kx-pop .5s var(--kx-spring); }
@keyframes kx-pop { 30% { transform: scale(1.18); } }

/* live dots and badges breathe */
:is(.ac-tabs a b, .ntc__n, .inb-tabs b, .ac-nav b) { animation: kx-breathe 2.4s ease-in-out infinite; }
@keyframes kx-breathe { 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .kx-pre { opacity: 1; transform: none; } .kx-in { transition: none; }
  .kx-glide { transition: none; } .kx-burst { display: none; } .kx-pop, .kx-rolling { animation: none; }
  :is(.ac-tabs a b, .ntc__n, .inb-tabs b, .ac-nav b) { animation: none; }
}

/* ======================================================================================================================
   1.30 / 2.28 · Motion 3 — one motion language for every page of both sites, after the categories of the Animation
   Handbook: page changes, scrolling, text, buttons, image cards, backgrounds, menus & forms, loading & messages.
   Our own code. Three levels from Studio → Settings → Look (html[data-motion] = full | calm | off) and two zones
   (html[data-zone] = public: landing and site pages, app: Studio, contest admin, account areas). The expressive
   effects (tilt, magnetic, word reveal, aurora, spotlight) live only in the public zone at the "full" level; the app
   zone gets the quiet ones (page crossfade, ripples, loading buttons, dialogs, accordions). The visitor's
   "reduce motion" switches everything off.
   ====================================================================================================================== */
:root {
  --mo-fast: 160ms; --mo-base: 280ms; --mo-slow: 560ms;
  --mo-out: cubic-bezier(.16, 1, .3, 1);          /* expo-out: arrivals */
  --mo-in: cubic-bezier(.7, 0, .84, 0);           /* expo-in: departures */
  --mo-spring: cubic-bezier(.34, 1.56, .64, 1);   /* a small overshoot: presses, pops */
  --mo-accent: var(--p-accent, #E8313F);
}

/* ---- page changes: View Transitions between pages (Chrome, Edge, Safari 18+; others just load) ---------------- */
@view-transition { navigation: auto; }
html:not(.mk-vt)::view-transition-old(root) { animation: mo-vt-out var(--mo-fast) var(--mo-in) both; }
html:not(.mk-vt)::view-transition-new(root) { animation: mo-vt-in var(--mo-base) var(--mo-out) both; }
@keyframes mo-vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(2px); } }
@keyframes mo-vt-in { from { opacity: 0; transform: translateY(10px); } }
html[data-zone="app"]:not(.mk-vt)::view-transition-new(root) { animation-name: mo-vt-fade; animation-duration: 200ms; }
html[data-zone="app"]:not(.mk-vt)::view-transition-old(root) { animation-name: mo-vt-fade-out; animation-duration: 120ms; }
@keyframes mo-vt-fade { from { opacity: 0; } } @keyframes mo-vt-fade-out { to { opacity: 0; } }
/* the header and the side rail stay put while the page under them changes (names given by kinetic.js, one each) */
::view-transition-group(mo-head), ::view-transition-group(mo-side) { animation-duration: 0s; }
/* a blog card's picture grows into the post's cover (shared element) */
::view-transition-group(mo-cover) { animation-duration: var(--mo-slow); animation-timing-function: var(--mo-out); }
html[data-motion="off"]::view-transition-group(*), html[data-motion="off"]::view-transition-old(*), html[data-motion="off"]::view-transition-new(*) { animation: none !important; }

/* ---- a thin load bar while the next page is on its way ------------------------------------------------------------ */
.mo-load { position: fixed; z-index: 3000; inset: 0 0 auto; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
  background: linear-gradient(90deg, var(--mo-accent), color-mix(in srgb, var(--mo-accent) 50%, #FFC23D)); box-shadow: 0 0 8px var(--mo-accent); }
[dir="rtl"] .mo-load { transform-origin: 100% 50%; }
.mo-load.is-on { opacity: 1; animation: mo-load 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes mo-load { 0% { transform: scaleX(0); } 12% { transform: scaleX(.35); } 100% { transform: scaleX(.92); } }

/* ---- scrolling ---------------------------------------------------------------------------------------------------- */
/* reading progress on articles and pages (scroll-driven; nothing in browsers without it) */
.mo-progress { position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--mo-accent); }
[dir="rtl"] .mo-progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) { .mo-progress { animation: mo-grow linear both; animation-timeline: scroll(root); } }
@keyframes mo-grow { to { transform: scaleX(1); } }
/* a header that steps aside while reading down and comes back on the way up */
.mo-hide-ready { transition: transform var(--mo-base) var(--mo-out), box-shadow var(--mo-base); will-change: transform; }
.mo-hide-ready.is-away { transform: translateY(calc(-100% - 16px)); }
.mo-hide-ready.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
/* sections and titles: a soft rise with a little blur (public), a plain fade (app) */
.mo-reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.mo-reveal.is-in { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--mo-out) calc(var(--mo-d, 0) * 1ms), transform .9s var(--mo-out) calc(var(--mo-d, 0) * 1ms), filter .7s var(--mo-out) calc(var(--mo-d, 0) * 1ms); }
/* the hero drifts and fades a little as it leaves (scroll-driven parallax) */
@supports (animation-timeline: view()) {
  html[data-zone="public"]:not([data-motion="calm"]):not([data-motion="off"]) :is(.ld-hero, .pp-hero, .ph) > :is(img, picture, video, .ld-hero__bg, .pp-hero__bg, .ph__bg) {
    animation: mo-parallax linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
}
@keyframes mo-parallax { to { transform: translateY(18%) scale(1.06); opacity: .55; } }

/* ---- text --------------------------------------------------------------------------------------------------------- */
/* word-by-word title: each word rises out of its own line box */
.mo-words { display: inline; }
.mo-w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: bottom; padding-block: .06em; }
.mo-w > span { display: inline-block; transform: translateY(105%); opacity: 0; }
.mo-words.is-in .mo-w > span { transform: none; opacity: 1; transition: transform .9s var(--mo-out) calc(var(--i) * 70ms + 80ms), opacity .5s ease calc(var(--i) * 70ms + 80ms); }
/* section titles: an underline that draws itself */
.mo-title { position: relative; }
.mo-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -.18em; height: 3px; width: 2.2em; border-radius: 3px; background: var(--mo-accent); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .mo-title::after { transform-origin: 100% 50%; }
.mo-title.is-in::after { transform: scaleX(1); transition: transform .8s var(--mo-out) .25s; }
/* highlighter sweep for <mark> in articles and pages */
:is(.prose, .blg-prose, .page-body, .ld-sec) mark { background: linear-gradient(transparent 58%, color-mix(in srgb, #FFC23D 60%, transparent) 58%) 0 0 / 0% 100% no-repeat; color: inherit; padding: 0 .1em; }
[dir="rtl"] :is(.prose, .blg-prose, .page-body, .ld-sec) mark { background-position: 100% 0; }
:is(.prose, .blg-prose, .page-body, .ld-sec) mark.is-in { background-size: 100% 100%; transition: background-size 1s var(--mo-out) .2s; }

/* ---- buttons ------------------------------------------------------------------------------------------------------ */
/* ripple from the point of the click */
.mo-rip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.mo-ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .22; background: currentColor; animation: mo-ripple .6s var(--mo-out) forwards; }
@keyframes mo-ripple { to { transform: scale(1); opacity: 0; } }
/* spotlight: a soft glow follows the pointer across primary buttons and cards (public) */
.mo-spot { --mx: 50%; --my: 50%; }
.mo-spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity var(--mo-base);
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(255,255,255,.22), transparent 60%); }
.mo-spot:hover::before { opacity: 1; }
/* hover lift for primary actions */
html:not([data-motion="off"]) :is(.btn--red, .btn--primary, .btn--gold, .pp-btn--grad, .pp-btn--live, .ld-pill:not(.ld-pill--ghost), .ac-btn--primary, .me-btn) { transition: transform var(--mo-base) var(--mo-spring), box-shadow var(--mo-base), filter var(--mo-base), background var(--mo-fast); }
html:not([data-motion="off"]) :is(.btn--red, .btn--primary, .btn--gold, .pp-btn--grad, .pp-btn--live, .ld-pill:not(.ld-pill--ghost), .ac-btn--primary, .me-btn):hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--mo-accent) 70%, transparent); }
/* the button that sent a form shows that it is working, and cannot be pressed twice */
.mo-busy { position: relative; pointer-events: none; cursor: progress; }
.mo-busy > * { opacity: .35; }
.mo-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 1.05em; height: 1.05em; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: pk-spin .7s linear infinite; }
@keyframes pk-spin { to { transform: rotate(1turn); } }
/* magnetic: the main call to action leans toward the pointer (public, full) */
.mo-magnet { transition: transform .4s var(--mo-spring); }
/* one animated gradient border around the main call to action of a landing page */
@property --mo-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mo-ring { position: relative; }
.mo-ring::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--mo-ang), transparent 0 60%, #FFC23D, var(--mo-accent), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: mo-ang 3.6s linear infinite; }
@keyframes mo-ang { to { --mo-ang: 360deg; } }
/* keyboard focus: the ring arrives instead of blinking on */
:focus-visible { transition: outline-offset var(--mo-fast) var(--mo-out); }
:is(a, button, input, select, textarea, summary):focus-visible { outline-offset: 3px; }

/* ---- image cards ---------------------------------------------------------------------------------------------- */
/* pictures fade and sharpen in as they arrive */
img.mo-img { opacity: 0; filter: blur(10px); transform: scale(1.02); }
img.mo-img.is-loaded { opacity: 1; filter: none; transform: none; transition: opacity .6s var(--mo-out), filter .8s var(--mo-out), transform .9s var(--mo-out); }
.mo-shimmer { background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%) !important; background-size: 220% 100% !important; animation: mo-shimmer 1.3s linear infinite; }
@keyframes mo-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
/* tilt with a glare: cards lean toward the pointer (public, full, mouse only) */
.mo-tilt { transform-style: preserve-3d; transition: transform .5s var(--mo-out); will-change: transform; }
.mo-tilt.is-tilting { transition: transform .08s linear; }
.mo-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity var(--mo-base);
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), transparent 60%); mix-blend-mode: soft-light; }
.mo-tilt.is-tilting .mo-glare { opacity: 1; }
/* the picture inside a card eases in a little on hover */
html:not([data-motion="off"]) :is(.vcard, .ld-spot, .pp-card, .blg-card, .ev-card, .pp-cx2, .shw-card) :is(img, .vcard__img) { transition: transform 1.1s var(--mo-out), filter .5s; }
html:not([data-motion="off"]) :is(.vcard, .ld-spot, .pp-card, .ev-card, .pp-cx2, .shw-card):hover :is(img, .vcard__img) { transform: scale(1.045); }

/* ---- backgrounds (public landing heroes only) --------------------------------------------------------------- */
.mo-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: .55; filter: blur(60px) saturate(1.2);
  background: radial-gradient(40% 35% at 20% 30%, color-mix(in srgb, var(--mo-accent) 55%, transparent), transparent 70%),
              radial-gradient(35% 30% at 80% 20%, rgba(255,194,61,.35), transparent 70%),
              radial-gradient(45% 40% at 60% 80%, rgba(124,92,255,.35), transparent 70%);
  animation: mo-aurora 26s ease-in-out infinite alternate; }
@keyframes mo-aurora { 33% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.05); } 66% { transform: translate3d(-5%, 4%, 0) rotate(-6deg) scale(.98); } 100% { transform: translate3d(2%, 2%, 0) rotate(4deg) scale(1.04); } }
.mo-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mo-bg-host { isolation: isolate; }
.mo-bg-host > :is(.mo-aurora, .mo-grain) { z-index: -1; }

/* ---- menus, forms, messages ------------------------------------------------------------------------------------ */
/* dialogs open and close with a scale, their backdrop fades */
dialog[open] { animation: mo-dlg var(--mo-base) var(--mo-out); }
dialog[open]::backdrop { animation: mo-fade var(--mo-base) ease; }
@keyframes mo-dlg { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes mo-fade { from { opacity: 0; } }
/* accordions (details) open smoothly where the browser can animate to "auto" */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size var(--mo-base) var(--mo-out), content-visibility var(--mo-base) allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
details > summary .glyph:last-child, details > summary > svg:last-child { transition: transform var(--mo-base) var(--mo-out); }
/* a field that was refused shakes once */
.mo-shake { animation: mo-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes mo-shake { 15%, 85% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 45%, 55% { transform: translateX(-5px); } }
/* messages slide in; success messages draw their tick */
:is(.flash, .alert, .st-flash, .ac-flash, .toast, .mk-toast) { animation: mo-msg .5s var(--mo-out) both; }
@keyframes mo-msg { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.mo-tick { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.2em; margin-inline-end: .35em; }
.mo-tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: mo-draw .5s var(--mo-out) .15s forwards; }
@keyframes mo-draw { to { stroke-dashoffset: 0; } }
/* menus that open (user menu, more menus) drop in */
details[open] > :is(.umenu__panel, .dd__panel, .menu, .st-menu, .ac-menu, [role="menu"]) { animation: mo-drop .26s var(--mo-out); transform-origin: top; }
@keyframes mo-drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---- levels ------------------------------------------------------------------------------------------------- */
html[data-motion="calm"] :is(.mo-aurora, .mo-grain) { display: none; }
html[data-motion="calm"] .mo-reveal { filter: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
html[data-motion="off"] :is(.mo-reveal, .kx-pre, img.mo-img, .mo-w > span) { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .mo-reveal, img.mo-img, .mo-w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  :is(.mo-aurora, .mo-load, .mo-ring::after) { animation: none !important; }
  .mo-busy::after, .mo-ripple, .mo-shimmer { animation: none !important; }
  :is(.flash, .alert, .st-flash, .ac-flash, .toast, .mk-toast), dialog[open], details[open] > * { animation: none !important; }
  .mo-title::after { transform: scaleX(1); }
  details::details-content { transition: none !important; }
}

