/* Общая система — «ризограф» (tmp/design/riso.html): бумага, тёплый чёрный и три краски — жёлтая, розовая, бирюзовая.
   Плоско, как напечатано: жёсткие тени без размытия, зерно бумаги, никакого свечения и стекла. Синего нет.
   Экраны — в своих файлах: home.css, feed.css, plans.css, crypt.css. */
:root {
  --bg: #f4efe6; --surface: #ebe3d4; --raised: #e2d8c6; --line: #cfc2ad; --ink: #1c1719; --muted: #75696b;
  --lavender: #e0367f; --coral: #ff4f9a; --mint: #19b3a0; --amber: #ffcd2e; --danger: #d93a3a;
  --accent: var(--amber); --on-accent: #1c1719;
  --gold: var(--amber); /* только платное размещение */
  --scene: #1c1719; /* ночные сцены: шапка главной, полноэкранные карточки */
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif; /* заголовки и логотип */
  --r-card: 18px; --r-sm: 12px;
  --hard: 3px 3px 0 var(--ink); /* печатная тень: сдвиг без размытия */
  --shadow: 0 1px 2px rgba(28, 23, 25, .18), 0 8px 20px rgba(28, 23, 25, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1); /* отпускание с перелётом — кнопка пружинит обратно */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: calc(88px + var(--safe-b));
}
/* У раздела свой цвет — только акцент, фон и поверхности общие. */
body[data-theme="radar"] { --accent: var(--mint); }
body[data-theme="party"] { --accent: var(--coral); }
/* Тёмная зона — ночная сцена с текстом поверх: те же роли, тёмные значения (шапка главной, карточка во весь экран). */
.hh, .card.full { --bg: var(--scene); --surface: #2a2326; --raised: #3a3134; --line: #4d4245; --ink: #f4efe6; --muted: #c9bdb3; color: var(--ink); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
img { -webkit-user-drag: none; }
/* Текст подгоняется сам: длинное слово переносится по слогам (lang="ru"), а не вылезает и не обрезается посреди буквы;
   заголовки — ровными строками без одинокого слова в конце, абзацы — без «висячих» коротких строк. */
h1, h2, h3, b, strong, small, p, span, a, button, label, li { overflow-wrap: break-word; }
p, small, li { hyphens: auto; text-wrap: pretty; }
h1, h2, h3, .h-screen, .h-sec { text-wrap: balance; }
/* свайп вкладок (tabswipe.js): украшения, которые анимируются без конца, на время жеста стоят */
[data-swiping] #app * { animation-play-state: paused !important; }
#app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100svh; }
/* Зерно бумаги поверх всего — печать, а не экран. Нажатия проходят насквозь. Без mix-blend-mode: смешивание поверх
   всего экрана телефон пересчитывает на каждом кадре прокрутки и свайпа; тёмное зерно с прозрачностью — почти то же,
   а слой просто накладывается. */
body::after { content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .3;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .08  0 0 0 .45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.h-screen { margin: 0; font: 900 34px/1 var(--f-head); }
/* hidden прячет всегда: иначе display: flex у строки (место, голосование) перебивает его, и удалённое висит до перезагрузки */
[hidden] { display: none !important; }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font: 800 26px/1.05 var(--f-head); }
.h-sec a, .h-sec small { flex: none; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); }

/* ---------- кнопки ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700;
  border: 2px solid var(--ink); box-shadow: var(--hard); transition: transform .15s var(--ease), opacity .15s; }
/* Нажатие: печатная плашка вдавливается в свою тень, отпускается пружиной (переход на :active короче базового). */
.pill, .icon-btn, .round-btn { transition: transform .4s var(--spring), box-shadow .4s var(--spring), opacity .15s; }
.pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .06s; }
.pill svg { width: 18px; height: 18px; }
.pill.ghost, .ghost-pill { background: var(--bg); color: var(--ink); border: 2px solid var(--ink); }
.ghost-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.icon-btn, .round-btn { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; background: #f4efe6; border: 2px solid var(--scene); color: var(--scene); box-shadow: 2px 2px 0 var(--coral); }
.icon-btn:active, .round-btn:active { transform: scale(.9); transition-duration: .06s; }
.icon-btn svg, .round-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; font-size: 10.5px; font-weight: 800; background: var(--scene); color: var(--amber); box-shadow: 0 0 0 2px var(--amber); }
.badge.lv { top: auto; bottom: -4px; }
.lvl-ring::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--lavender) calc(var(--p) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }

/* метки: не больше 2–3 на карточке */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--raised); color: var(--ink); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; }
.tag.hot { background: var(--coral); color: var(--on-accent); }
.tag.acc { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.tag.free { background: var(--ink); color: var(--bg); }
.tag.glue { background: var(--mint); color: #1c1719; font-weight: 700; }
.tag.ad { background: var(--gold); color: #1a1405; }

/* ---------- нижнее меню ---------- */
/* Плашка-наклейка над краем экрана: бумага, чернильная рамка, печатная тень; открытая вкладка — жёлтое пятно. */
.tabbar { position: fixed; z-index: 10; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); width: calc(100% - 24px); max-width: 456px; display: flex; gap: 4px; padding: 6px;
  border-radius: 24px; background: #f4efe6; border: 2px solid var(--scene); box-shadow: 3px 3px 0 var(--scene); }
.tab { position: relative; flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 18px; font-size: 11px; font-weight: 600; color: #75696b; transition: color .15s, background .15s; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--scene); background: var(--amber); }
.tab .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--coral); color: var(--scene); font-size: 10px; font-weight: 800; }
.tab .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #f4efe6; }
/* «в эфире»: друзья видят тебя на событии — точка на «Планах» пульсирует */
.tab .air-dot { position: absolute; top: 6px; left: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #f4efe6; }
@media (prefers-reduced-motion: no-preference) { .tab .air-dot { animation: air-dot 1.6s ease-out infinite; } }
@keyframes air-dot { 0% { box-shadow: 0 0 0 2px #f4efe6, 0 0 0 2px var(--coral); } 100% { box-shadow: 0 0 0 2px #f4efe6, 0 0 0 10px transparent; } }
/* значок оценки места — свой у каждого героя (mascot.js: rateMark) */
.rmark { display: inline-flex; width: 1.05em; height: 1.05em; vertical-align: -.15em; }
.rmark svg { width: 100%; height: 100%; }
.tab.thud svg { animation: thud .45s var(--ease); }
@keyframes thud { from { transform: translateY(4px) scale(1.2, .8); } } /* кость упала в «Планы» — значок сплющился и отпружинил */

/* ---------- подсказка внизу ---------- */
#toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar-h) + 16px); transform: translate(-50%, 12px); max-width: min(420px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 14px;
  font-size: 14px; font-weight: 600; text-align: center; background: var(--ink); color: var(--bg); box-shadow: 3px 3px 0 var(--coral); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.undo-on { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
#toast.undo-on span { white-space: nowrap; }
#toast .undo { padding: 4px 8px; margin: -4px -8px -4px 0; border-radius: 8px; font-weight: 700; color: var(--amber); }

/* ---------- шторка снизу ---------- */
.sheet-lock .feed { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(28, 23, 25, .55); animation: fade .2s; transition: opacity .25s; }
.sheet-wrap.out { opacity: 0; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 88dvh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px;
  padding: 10px 18px calc(22px + var(--safe-b)); border-radius: 22px 22px 0 0; background: var(--bg); border-top: 2px solid var(--ink); color: var(--ink);
  animation: sheet-up .3s var(--ease); transition: transform .25s var(--ease); }
.grip { align-self: center; flex: none; width: 40px; height: 4px; border-radius: 9px; background: var(--line); }
.sheet-x { position: sticky; top: 0; z-index: 3; align-self: flex-end; flex: none; margin: -4px -6px -48px 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--ink); }
.sheet-x svg { width: 18px; height: 18px; }
.sheet h2 { margin: 4px 0 0; font: 800 26px/1.05 var(--f-head); }
.sheet h2.sheet-sub { margin-top: 14px; font-size: 18px; }
.sheet > .when, .sheet > h2:first-of-type, .sheet > .share-head { padding-right: 44px; }
.sheet .done { margin-top: 6px; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* переключатели и сегменты (фильтры) */
.toggle { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--raised); cursor: pointer; }
.toggle span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.toggle small { font-size: 13px; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--lavender); }
.toggle input:checked + i::after { transform: translateX(20px); background: var(--on-accent); }
.seg-wrap { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--raised); }
.seg-wrap small { color: var(--muted); font-size: 13px; }
.seg { display: flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 14px; background: var(--bg); }
.seg button { flex: 1; min-height: 40px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }

/* ---------- загрузка, пусто ---------- */
.loading { min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--muted); text-align: center; }
.spinner { width: 22px; height: 22px; display: block; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
/* Пустой экран — прямо на бумаге, без рамки: парящий призрак, заголовок, пара слов, кнопка. */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 20px 28px; text-align: center; background: none; border: 0; color: var(--muted); }
.empty b { color: var(--ink); font: 800 26px/1.05 var(--f-head); }
.empty .hero-img { animation: none !important; }

/* ---------- уровень ---------- */
.lvl { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.lvl-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lvl-row b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--lavender); color: var(--on-accent); font-weight: 700; }
.lvl-row .streak { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 13px; color: var(--amber); }
.lvl-row .streak svg { width: 14px; height: 14px; }
.lvl-bar { height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lavender); transition: width .6s var(--ease); }
.lvl small { font-size: 12px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; cursor: pointer; }
.badges span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); }
.badges span.got { border: 1px solid var(--amber); }
.badges small { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------- награды и отклики: коротко, без вспышек ---------- */
.xp-float { position: fixed; z-index: 30; transform: translate(-50%, 0); font: 700 17px var(--f-body); color: var(--amber); pointer-events: none; animation: xpup .9s ease-out forwards; }
@keyframes xpup { to { transform: translate(-50%, -50px); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: boom 1.2s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes boom { to { transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rot)); opacity: 0; } }
.celebrate { position: fixed; z-index: 35; left: 50%; top: 42%; transform: translate(-50%, -50%); min-width: 240px; padding: 22px 26px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .45s var(--ease); transition: opacity .4s, transform .4s; }
.celebrate.out { opacity: 0; transform: translate(-50%, -60%); }
.celebrate small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); }
.celebrate b { font: 800 52px/1 var(--f-body); color: var(--ink); }
.celebrate .badge-ico { font-size: 52px; }
.celebrate span { font-size: 19px; font-weight: 700; }
.celebrate em { font-style: normal; font-size: 13px; color: var(--muted); }
.celebrate .hero-img { margin: -70px 0 4px; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.85); opacity: 0; } }
.note { position: fixed; z-index: 36; top: calc(12px + var(--safe-t)); left: 50%; transform: translate(-50%, 0); max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center; padding: 10px 16px 10px 12px;
  border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); animation: note-in .35s var(--ease); transition: opacity .35s, transform .35s; pointer-events: none; }
.note b { font-size: 26px; }
.note span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; }
.note small { font-size: 11px; color: var(--amber); }
.note.out { opacity: 0; transform: translate(-50%, -20px); }
.note-badge { display: grid; place-items: center; font-size: 22px; }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, -30px); } }
/* Штамп после «Сходил?»: слово падает на экран, Костя выпрыгивает снизу */
.stamp { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; transition: opacity .35s; }
.stamp.out { opacity: 0; }
.stamp b { font: 800 60px/1 var(--f-body); letter-spacing: -.02em; transform: rotate(-6deg); -webkit-text-stroke: 3px #15131c; paint-order: stroke fill; animation: stamp-in .45s var(--ease) backwards; }
.stamp-fire b { color: var(--coral); }
.stamp-ok b { color: var(--lavender); }
.stamp-meh b { color: var(--muted); transform: rotate(4deg); }
.stamp .hero-img { animation: stamp-pop .45s var(--ease) .08s backwards; }
@keyframes stamp-in { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } }
@keyframes stamp-pop { from { transform: translateY(60px) scale(.6); opacity: 0; } }
/* «Хочу»: косточка летит в «Планы», из-под значка — комочки земли */
.dust { position: fixed; left: 0; top: 0; z-index: 59; width: 6px; height: 6px; border-radius: 50%; background: #8f897d; pointer-events: none; }
.fly-bone { position: fixed; left: 0; top: 0; z-index: 60; width: 32px; height: 32px; pointer-events: none; color: var(--ink); }
.fly-bone svg { width: 100%; height: 100%; }

/* ---------- плашка «вышла новая версия» ---------- */
.upd { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-radius: 16px;
  background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); animation: fade .3s; }
.upd span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.upd b { font-size: 14px; }
.upd small { color: var(--muted); font-size: 12px; }
.upd .pill { min-height: 36px; padding: 8px 14px; font-size: 13px; }
.upd-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.upd-x svg { width: 14px; height: 14px; }

/* ---------- Костя (нарисован кодом; свой арт — public/art) ---------- */
/* Портреты героев — с тёмным фоном (не вырезаны): края растворяем, чтобы квадрат не был виден. */
.hero-img { display: block; object-fit: contain; }
.hero-sprite { display: block; width: auto; max-width: none; filter: drop-shadow(0 5px 3px rgba(0, 0, 0, .32)); }
/* Rive-герой: холст поверх спрайта того же кадра (1:1, низ по центру); спрайт прячем, когда анимация загрузилась */
/* Призрак светлый, на бумаге теряется — обводим чернилами, как вырезанную наклейку. Тень на «полу» сжимается, когда он поднимается. */
.state-art { position: relative; display: block; width: 150px; height: 168px; }
.state-art img { position: relative; z-index: 1; display: block; width: 150px; height: 150px; object-fit: contain;
  filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 1.5px 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)) drop-shadow(3px 3px 0 var(--coral)); }
.state-art i { position: absolute; left: 50%; bottom: 2px; width: 70px; height: 10px; margin-left: -35px; border-radius: 50%; background: var(--ink); opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .state-art img { animation: levitate 3.2s ease-in-out infinite; }
  .state-art i { animation: levitate-shadow 3.2s ease-in-out infinite; }
}
@keyframes levitate { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes levitate-shadow { 50% { transform: scaleX(.72); opacity: .09; } }
.item-art { display: block; object-fit: contain; }
/* Персонаж — статичный арт; живость даём трансформациями картинки (дыхание, прыжок) — до анимаций в Rive. */

/* ---------- переходы между экранами (View Transitions) ---------- */
/* Меню внизу — отдельным слоем, чтобы не мигало при смене экрана. Афиша карточки перетекает в фото страницы события. */
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .3s var(--ease) both; }
::view-transition-group(ev-hero) { animation-duration: .42s; animation-timing-function: var(--ease); }
::view-transition-group(tabbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
/* свайп по вкладкам (tabswipe.js): старый экран уезжает в сторону пальца, новый въезжает с другой */
html[data-nav="next"]::view-transition-old(root) { animation: vt-off-l .22s ease-in both; }
html[data-nav="next"]::view-transition-new(root) { animation: vt-on-r .3s var(--ease) both; }
html[data-nav="prev"]::view-transition-old(root) { animation: vt-off-r .22s ease-in both; }
html[data-nav="prev"]::view-transition-new(root) { animation: vt-on-l .3s var(--ease) both; }
@keyframes vt-off-l { to { opacity: 0; transform: translateX(-30%); } }
@keyframes vt-off-r { to { opacity: 0; transform: translateX(30%); } }
@keyframes vt-on-r { from { opacity: 0; transform: translateX(30%); } }
@keyframes vt-on-l { from { opacity: 0; transform: translateX(-30%); } }
/* событие открыто перетеканием — своего выезда снизу у шторки нет */
.detail.morph, .detail.morph .sheet { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
