/* Prismo web app (iPhone / iPad / desktop). Dark by default so wallpapers glow; light theme optional. */
:root {
  --bg: #0e0b1a; --surface: #181330; --surface2: #221b3d; --line: #2f2752;
  --text: #f1ecff; --muted: #a79fc4;
  --purple: #7f5af0; --pink: #ff4fd8; --orange: #ff8a3d; --teal: #00d1b2; --blue: #3a86ff; --magenta: #e0218a;
  --grad: linear-gradient(90deg, var(--purple), var(--pink));
  --radius: 22px;
  --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom);
  --tabbar: calc(64px + var(--safe-bottom));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fbf8ff; --surface: #f1ecfd; --surface2: #e8e1f8; --line: #d9d0ef; --text: #1b1530; --muted: #5c5478;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] { --bg: #fbf8ff; --surface: #f1ecfd; --surface2: #e8e1f8; --line: #d9d0ef; --text: #1b1530; --muted: #5c5478; color-scheme: light; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); transition: background .45s, color .45s; }
body { font: 16px/1.45 Nunito, -apple-system, system-ui, sans-serif; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 900; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#view { min-height: 100%; padding-bottom: calc(var(--tabbar) + 24px); outline: none; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.page { padding: calc(var(--safe-top) + 12px) 16px 0; max-width: 1400px; margin: 0 auto; }

/* --- Tab bar --- */
#tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: var(--tabbar); padding: 6px 8px var(--safe-bottom);
  display: flex; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 26px 26px 0 0; transition: transform .35s var(--ease);
}
#tabbar.hidden { transform: translateY(110%); }
#tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--muted); min-height: 48px; padding-top: 4px; }
#tabbar svg { width: 56px; height: 30px; padding: 4px 16px; fill: currentColor; border-radius: 15px; transition: background .3s, transform .4s var(--spring), color .3s; }
#tabbar a.on { color: var(--text); }
#tabbar a.on svg { background: var(--grad); fill: #fff; transform: scale(1.08); }

/* --- Press feedback (every button and card) --- */
.press { transition: transform .18s var(--ease); cursor: pointer; user-select: none; -webkit-user-select: none; }
.press:active { transform: scale(.95); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 28px; font-weight: 800; font-size: 16px; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px -12px var(--pink);
}
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn.ghost { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); box-shadow: none; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; box-shadow: none; }
.icon-btn { width: 48px; height: 48px; border-radius: 24px; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); color: #fff; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* --- Header + tabs --- */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 34px; font-weight: 900; background: linear-gradient(90deg, var(--purple), var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 48px; margin: 10px 0 14px; }
.tabs .pill { position: absolute; inset: 4px auto 4px 0; width: calc(100% / 3); border-radius: 24px; background: var(--grad); box-shadow: 0 8px 24px -10px var(--pink); transition: transform .45s var(--spring), width .3s; }
.tabs button { position: relative; z-index: 1; border: 0; background: none; font-weight: 800; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button svg { width: 18px; height: 18px; fill: currentColor; transition: transform .45s var(--spring); }
.tabs button.on { color: #fff; }
.tabs button.on svg { transform: scale(1.2); }
.panes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; }
.panes::-webkit-scrollbar { display: none; }
.pane { flex: 0 0 100%; scroll-snap-align: start; padding: 0 16px; min-height: 60vh; }

/* --- Chips --- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line); background: none; font-weight: 800; color: var(--muted); }
.chip.on { background: var(--orange); border-color: transparent; color: #fff; }

/* --- Masonry grid of wallpapers --- */
.grid { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .grid { columns: 3; } }
@media (min-width: 1000px) { .grid { columns: 4; } }
@media (min-width: 1300px) { .grid { columns: 5; } }
.card {
  position: relative; break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--c1, var(--purple)), var(--c2, var(--pink)));
  box-shadow: 0 10px 30px -18px var(--c2, var(--pink)); animation: pop .45s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.card img.loaded { opacity: 1; }
.card .badge { position: absolute; top: 8px; left: 8px; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28), transparent 70%); background-size: 250% 100%; animation: sheen 1.3s linear infinite; }
.card:has(img.loaded)::after { display: none; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.sentinel { height: 1px; }
.loading-bar { width: 120px; height: 8px; margin: 18px auto; border-radius: 4px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--purple) 40%, transparent); }
.loading-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: sheen 1s linear infinite; background-size: 200% 100%; }

/* --- Badges --- */
.pill-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 14px; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); }
.flame { background: linear-gradient(90deg, var(--orange), var(--magenta)); }
.flame i { display: inline-block; transform-origin: 50% 100%; animation: flicker .42s ease-in-out infinite alternate; font-style: normal; }
@keyframes flicker { from { transform: scale(.9) rotate(-6deg); } to { transform: scale(1.12) rotate(6deg); } }

/* --- Featured carousel --- */
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 30px 18px; margin: 0 -16px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 min(78%, 420px); aspect-ratio: 9 / 13; scroll-snap-align: center; border-radius: 28px; overflow: hidden; transition: transform .3s var(--ease); background: var(--surface2); }
.slide img { position: absolute; inset: -6% -15%; width: 130%; height: 112%; object-fit: cover; will-change: transform; }
.slide .scrim { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.75)); }
.slide .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.slide h3 { font-size: 22px; margin-top: 6px; }

/* --- Category cards --- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat { position: relative; aspect-ratio: 1.05; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); animation: pop .45s var(--ease) both; box-shadow: 0 12px 30px -16px var(--c2); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 72%, transparent), color-mix(in srgb, var(--c2) 72%, transparent)); overflow: hidden; }
.cat .overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.18), transparent 65%); background-size: 300% 100%; animation: sheen 4.2s linear infinite; }
.cat .meta { position: absolute; left: 16px; bottom: 14px; color: #fff; }
.cat h3 { font-size: 22px; }

/* --- Category screen --- */
.cat-head { padding: calc(var(--safe-top) + 8px) 16px 14px; background: linear-gradient(var(--c1), color-mix(in srgb, var(--c2) 0%, transparent)); color: #fff; }
.cat-head .row { display: flex; align-items: center; gap: 8px; }
.cat-head h1 { font-size: 30px; }
.gen-wrap { position: fixed; z-index: 15; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 12px); max-width: 520px; margin: 0 auto; text-align: center; }
.gen-wrap .note { font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.ring { width: 22px; height: 22px; }

/* --- Generate overlay --- */
.overlay-full { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bottom) + 20px); animation: fade .3s; text-align: center; }
@keyframes fade { from { opacity: 0; } }
.blobs { position: absolute; inset: 0; overflow: hidden; z-index: -1; filter: blur(50px); opacity: .8; }
.blobs i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; left: 50%; top: 50%; margin: -30vmax; background: var(--b); animation: orbit var(--t) linear infinite; mix-blend-mode: screen; opacity: .7; }
@keyframes orbit { from { transform: rotate(0) translateX(14vmax) rotate(0); } to { transform: rotate(360deg) translateX(14vmax) rotate(-360deg); } }
.brush { width: 160px; height: 190px; border-radius: 22px; background: #f6f3ff; position: relative; transform: rotate(-4deg); animation: tilt 3s ease-in-out infinite alternate; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
@keyframes tilt { to { transform: rotate(4deg); } }
.brush svg { position: absolute; inset: 22px 16px; width: calc(100% - 32px); }
.brush path { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: paint 3s ease-in-out infinite; }
.brush path:nth-child(2) { animation-delay: .5s; } .brush path:nth-child(3) { animation-delay: 1s; }
@keyframes paint { 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.status { font-size: 24px; font-weight: 900; margin: 26px 0 14px; min-height: 36px; animation: rise .4s var(--ease); }
.progress { width: 230px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--text) 18%, transparent); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width linear; }
.reveal-img { width: min(100%, 420px); max-height: 62vh; aspect-ratio: var(--ar); object-fit: cover; border-radius: 28px; animation: reveal .9s var(--ease) both; }
@keyframes reveal { from { clip-path: circle(0 at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
.actions { display: flex; gap: 10px; width: min(100%, 460px); margin-top: 16px; }
.actions > * { flex: 1; animation: popin .5s var(--spring) both; }
.actions > *:nth-child(2) { animation-delay: .07s; } .actions > *:nth-child(3) { animation-delay: .14s; }
@keyframes popin { from { opacity: 0; transform: scale(.4); } }

/* --- Preview --- */
.preview { position: fixed; inset: 0; z-index: 30; background: #000; touch-action: none; }
.preview .stage { position: absolute; inset: 0; transition: transform .35s var(--ease); }
.preview .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview .top { position: absolute; top: calc(var(--safe-top) + 8px); left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 3; }
.toggle { min-height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 20px 20px calc(var(--safe-bottom) + 16px); color: #fff;
  border-radius: 28px 28px 0 0; background: rgba(10, 6, 20, .45); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  animation: sheetup .55s var(--spring) both; max-width: 640px; margin: 0 auto;
}
@keyframes sheetup { from { transform: translateY(100%); } }
.sheet h2 { font-size: 24px; }
.sheet .chips-row { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.sheet .info { color: rgba(255,255,255,.8); font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.tile { min-height: 64px; border: 0; border-radius: 20px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 13px; font-weight: 800; position: relative; }
.tile svg { width: 22px; height: 22px; fill: currentColor; }
.tile.fav svg { fill: var(--pink); animation: bounce .5s var(--spring); }
@keyframes bounce { 40% { transform: scale(1.35); } }
.sheet .row2 > *, .tiles > * { animation: popin .5s var(--spring) both; }
.tiles > *:nth-child(1) { animation-delay: .12s; } .tiles > *:nth-child(2) { animation-delay: .19s; } .tiles > *:nth-child(3) { animation-delay: .26s; }
.big-heart { position: absolute; left: 50%; top: 45%; width: 120px; margin-left: -60px; z-index: 4; fill: var(--pink); pointer-events: none; animation: heart .9s var(--spring) forwards; }
@keyframes heart { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }
.particles { position: absolute; left: 50%; top: 50%; pointer-events: none; z-index: 5; }
.particles i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }
.mock { position: absolute; inset: 0; z-index: 2; color: #fff; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-top) + 70px) 24px calc(var(--safe-bottom) + 24px); animation: fade .3s; pointer-events: none; }
.mock .clock { font-size: 86px; font-weight: 700; letter-spacing: -2px; line-height: 1; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.mock .apps { margin-top: auto; display: grid; grid-template-columns: repeat(4, 60px); gap: 22px 26px; }
.mock .apps i, .mock .dock i { width: 60px; height: 60px; border-radius: 15px; background: var(--c); opacity: .92; }
.mock .dock { margin-top: 24px; display: flex; gap: 26px; padding: 16px 22px; border-radius: 30px; background: rgba(255,255,255,.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.hint { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); z-index: 4; background: rgba(0,0,0,.6); color: #fff; padding: 10px 16px; border-radius: 22px; font-weight: 800; animation: fade .3s, hintmove 1s ease-in-out infinite alternate; white-space: nowrap; }
@keyframes hintmove { to { transform: translateX(-50%) translateY(-8px); } }

/* --- Bottom sheets (set-as-wallpaper guide, install guide) --- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s; }
.modal .panel { width: min(100%, 560px); background: var(--surface); color: var(--text); border-radius: 28px 28px 0 0; padding: 22px 20px calc(var(--safe-bottom) + 20px); animation: sheetup .5s var(--spring); }
@media (min-width: 700px) { .modal { align-items: center; } .modal .panel { border-radius: 28px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-weight: 700; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; }

/* --- Lists, settings, states --- */
.section-title { font-size: 30px; margin-bottom: 4px; }
.card-block { background: var(--surface); border-radius: 24px; padding: 18px; margin-bottom: 14px; }
.card-block .label { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.seg button { border: 0; min-height: 46px; background: none; font-weight: 800; color: var(--muted); }
.seg button.on { background: color-mix(in srgb, var(--purple) 35%, transparent); color: var(--text); }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.switch-row > div { flex: 1; }
.switch { appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--surface2); position: relative; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: transform .3s var(--spring); }
.switch:checked { background: var(--purple); }
.switch:checked::after { transform: translateX(20px); }
input[type="search"], input[type="number"] { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.state { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 12px; }
.state .art { width: 120px; height: 100px; border-radius: 20px; border: 8px solid var(--pink); position: relative; animation: bob 2.4s ease-in-out infinite alternate; background: var(--surface2); }
.state .art::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 40%; background: var(--purple); clip-path: polygon(0 100%, 35% 20%, 55% 60%, 70% 35%, 100% 100%); }
.state .art::after { content: ""; position: absolute; right: 18px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
@keyframes bob { to { transform: translateY(-10px) rotate(3deg); } }

/* --- Toast + confetti --- */
#toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 60; transform: translate(-50%, -160%); padding: 12px 20px; border-radius: 20px; background: var(--grad); color: #fff; font-weight: 800; transition: transform .45s var(--spring); max-width: 90vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); }
#toast.err { background: linear-gradient(90deg, var(--magenta), #ff5f6d); }
#confetti { position: fixed; inset: 0; z-index: 55; pointer-events: none; width: 100%; height: 100%; }

/* --- Onboarding --- */
.onboard { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; padding: calc(var(--safe-top) + 12px) 24px calc(var(--safe-bottom) + 24px); text-align: center; }
.onboard .skip { align-self: flex-end; border: 0; background: none; color: var(--purple); font-weight: 900; min-height: 48px; padding: 0 12px; }
.onboard .art { flex: 1; display: grid; place-items: center; }
.onboard .cards3 { position: relative; width: 240px; height: 220px; }
.onboard .cards3 i { position: absolute; top: 20px; left: 72px; width: 96px; height: 170px; border-radius: 20px; animation: bob 1.8s ease-in-out infinite alternate; }
/* Offsets use left/rotate (not transform) so the bobbing animation doesn't stack the cards. */
.onboard .cards3 i:nth-child(1) { background: linear-gradient(#7f5af0, #ff4fd8); left: 2px; rotate: -8deg; }
.onboard .cards3 i:nth-child(2) { background: linear-gradient(#ff8a3d, #e0218a); animation-delay: .3s; z-index: 1; }
.onboard .cards3 i:nth-child(3) { background: linear-gradient(#3a86ff, #00d1b2); left: 142px; rotate: 8deg; animation-delay: .6s; }
.onboard h1 { font-size: 30px; margin: 20px 0 10px; animation: rise .4s var(--ease); }
.onboard p { color: var(--muted); font-size: 17px; margin: 0 auto 24px; max-width: 420px; animation: rise .5s var(--ease); }
.dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.dots i { width: 10px; height: 10px; border-radius: 5px; background: var(--line); transition: width .4s var(--spring), background .3s; }
.dots i.on { width: 28px; background: var(--pink); }

/* --- Pull to refresh --- */
.ptr { position: fixed; top: calc(var(--safe-top) + 6px); left: 50%; z-index: 25; width: 44px; height: 44px; margin-left: -22px; border-radius: 22px; background: var(--surface2); display: grid; place-items: center; opacity: 0; transform: translateY(-60px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.ptr i { width: 24px; height: 24px; border-radius: 50%; border: 3.5px solid transparent; border-top-color: var(--pink); border-right-color: var(--purple); border-bottom-color: var(--orange); }
.ptr.spin i { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Shared element (View Transitions, Safari 18+) --- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(hero) { animation-duration: .42s; animation-timing-function: var(--ease); }

/* --- Reduced motion: simple fades only --- */
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) * { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; } }
:root[data-motion="reduced"] * { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
