/* =========================================================
   Krümel — Página de pedidos (usa las variables de styles.css)
   ========================================================= */

html { scroll-padding-top: 0; }

/* Lo que tiene el atributo "hidden" se oculta siempre (aunque tenga otro display) */
[hidden] { display: none !important; }

.pedido-page {
  background: var(--crema);
  min-height: 100vh;
}
.pedido-page.has-cart { padding-bottom: 96px; }   /* lugar para la barra del carrito */

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--bordo); color: #fff; }
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.topbar-logo img { height: 40px; width: auto; display: block; }
.topbar-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  height: 42px; min-width: 42px; padding: 0 .75rem;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: background-color .2s ease;
}
.topbar-btn:hover { background: rgba(255,255,255,.12); }
.topbar-btn:first-child { justify-self: start; }
.topbar-btn:last-child  { justify-self: end; font-size: 1.15rem; }
.badge {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--rosa); color: var(--bordo);
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}

/* ---------- Intro ---------- */
.intro { background: var(--oliva); padding: 2.25rem 0 2rem; }
.intro-title {
  font-family: "Kaoly Demo", serif;
  font-size: clamp(2.4rem, 7vw, 3.5rem);
  line-height: 1.05;
}
.intro-text { margin-top: .75rem; max-width: 560px; line-height: 1.6; color: rgba(112,21,14,.85); }
.intro-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.intro-chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.45);
  font-size: .82rem; font-weight: 500;
}

/* ---------- Buscador + categorías (fijos arriba) ---------- */
.catbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(239, 239, 211, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(112,21,14,.1);
  padding-top: 12px;
}
.search {
  display: flex; align-items: center; gap: .6rem;
  height: 44px; padding: 0 1rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(112,21,14,.15);
}
.search:focus-within { border-color: var(--bordo); box-shadow: 0 0 0 3px rgba(112,21,14,.12); }
.search i { opacity: .55; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--bordo); font-size: 1rem; }
.search input::placeholder { color: rgba(112,21,14,.5); }

.cat-tabs {
  display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none;
  padding: 10px 0 12px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  padding: .45rem 1rem; border-radius: 999px;
  font-weight: 500; font-size: .92rem;
  border: 1px solid rgba(112,21,14,.25);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cat-tab:hover { border-color: var(--bordo); }
.cat-tab.active { background: var(--bordo); color: #fff; border-color: var(--bordo); }

/* ---------- Lista de productos ---------- */
.menu { padding-top: 1.5rem; padding-bottom: 3rem; }
.cat-section { scroll-margin-top: 130px; padding-top: 1rem; }
.cat-section + .cat-section { margin-top: 1.75rem; }
.cat-title { font-family: "Kaoly Demo", serif; font-size: clamp(1.9rem, 5vw, 2.4rem); line-height: 1.1; }
.cat-sub { margin-top: .25rem; color: rgba(112,21,14,.7); font-size: .95rem; }

.prod-grid { display: grid; gap: 12px; margin-top: 1rem; }
@media (min-width: 768px) { .prod-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

.prod-card {
  position: relative;
  display: flex; gap: 14px; align-items: stretch;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 2px 10px rgba(112,21,14,.06);
  transition: transform .15s ease, box-shadow .2s ease;
}
.prod-card:hover { box-shadow: 0 8px 24px rgba(112,21,14,.12); }
.prod-card:active { transform: scale(.99); }
.prod-card:focus-within { outline: 2px solid var(--bordo); outline-offset: 2px; }
.prod-open {             /* botón invisible que cubre toda la tarjeta */
  position: absolute; inset: 0; border-radius: inherit;
  cursor: pointer; outline: none;
}
.prod-open:disabled { cursor: not-allowed; }

.prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.prod-desc {
  margin-top: .3rem; font-size: .88rem; line-height: 1.45; color: rgba(112,21,14,.7);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: 1.05rem; }
.desde { font-weight: 400; font-size: .8rem; opacity: .7; margin-right: .3rem; }
.tag-out {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px;
  background: rgba(112,21,14,.1); font-size: .78rem; font-weight: 600;
}
.is-out .prod-thumb, .is-out .prod-name, .is-out .prod-desc { opacity: .5; }

.prod-thumb {
  position: relative; flex: 0 0 auto;
  width: 104px; height: 104px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--rosa));
}
@media (min-width: 480px) { .prod-thumb { width: 116px; height: 116px; } }
.prod-thumb img, .cart-thumb img, .pd-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.thumb-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: rgba(112,21,14,.45);
}
.prod-add {
  position: absolute; right: 6px; bottom: 6px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bordo); color: #fff; font-size: .85rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.no-results { padding: 2rem 16px 4rem; text-align: center; color: rgba(112,21,14,.7); }

.pedido-footer {
  padding: 1.5rem 0 2rem; text-align: center;
  font-size: .8rem; color: rgba(112,21,14,.6);
  border-top: 1px solid rgba(112,21,14,.1);
}
.pedido-footer .credit { margin-top: .3rem; font-size: .72rem; }
.pedido-footer .credit a { color: inherit; text-decoration: none; }
.pedido-footer .credit a:hover { text-decoration: underline; }

/* ---------- Barra flotante del carrito ---------- */
.cart-bar {
  position: fixed; z-index: 40;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  background: var(--bordo); color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(112,21,14,.35);
  animation: subir .3s ease;
}
.cart-bar[hidden] { display: none; }
.cart-bar:hover { background: #540F0A; }
.cart-bar-count {
  min-width: 28px; height: 28px; padding: 0 6px;
  border-radius: 999px; background: var(--rosa); color: var(--bordo);
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}
.cart-bar-label { flex: 1; text-align: left; }
@keyframes subir { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Modales tipo "hoja" ---------- */
body:has(dialog[open]) { overflow: hidden; }

dialog.sheet {
  padding: 0; border: 0; margin: 0;
  max-width: none; max-height: none;
  width: 100%;
  inset: auto 0 0 0;               /* celular: pegado abajo */
  background: transparent; color: var(--bordo);
  overflow: visible;
}
dialog.sheet::backdrop { background: rgba(40, 8, 5, .5); animation: fade .2s ease; }
dialog.sheet[open] .sheet-inner:not([hidden]) { animation: hoja .25s ease; }
dialog.sheet.closing .sheet-inner { animation: hoja-out .18s ease forwards; }
dialog.sheet.closing::backdrop { animation: fade-out .18s ease forwards; }

.sheet-inner {
  display: flex; flex-direction: column;
  max-height: 92vh; max-height: 92dvh;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.sheet-inner[hidden] { display: none; }

@media (min-width: 640px) {
  dialog.sheet { inset: 0; margin: auto; width: min(460px, calc(100% - 32px)); height: fit-content; }
  dialog.sheet-wide { width: min(520px, calc(100% - 32px)); }
  .sheet-inner { border-radius: 24px; max-height: 88vh; }
}

.sheet-head {
  display: flex; align-items: center; gap: .5rem;
  padding: 14px 14px 10px 20px;
  border-bottom: 1px solid rgba(112,21,14,.08);
}
.sheet-head .sheet-title { flex: 1; }
.sheet-head .sheet-close:first-child { margin-left: -8px; }
.sheet-title { font-family: "Kaoly Demo", serif; font-size: 1.9rem; line-height: 1.1; }
.sheet-close {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background-color .2s ease;
}
.sheet-close:hover { background: rgba(112,21,14,.08); }
.sheet-close.on-media {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.sheet-body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }
.sheet-footer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(112,21,14,.08);
  background: var(--card);
}
.sheet-footer-col { flex-direction: column; align-items: stretch; gap: 10px; }
.sheet-footer[hidden] { display: none; }

/* Modal de producto: la foto también se desplaza con el contenido */
#product-form { overflow-y: auto; }
#product-form .sheet-body { overflow: visible; flex: none; }
#product-form .sheet-footer { position: sticky; bottom: 0; }
.pd-media {
  position: relative; flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #fff, var(--rosa));
}
.pd-media .thumb-ph { font-size: 3rem; }
.pd-cat { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; opacity: .65; }
.pd-title { font-family: "Kaoly Demo", serif; font-size: 2.1rem; line-height: 1.1; margin-top: .2rem; }
.pd-desc { margin-top: .5rem; line-height: 1.55; color: rgba(112,21,14,.8); }
.pd-single { margin-top: 1rem; font-weight: 600; }

.pd-options { margin-top: 1.25rem; display: grid; gap: 8px; }
.pd-options legend, .field-label {
  display: block; margin-bottom: .5rem;
  font-weight: 600; font-size: .92rem;
}
.field-label small { font-weight: 400; opacity: .6; }
.opt {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-radius: 14px;
  border: 1.5px solid rgba(112,21,14,.18);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:has(input:checked) { border-color: var(--bordo); background: rgba(112,21,14,.05); }
.opt input { accent-color: var(--bordo); width: 18px; height: 18px; }
.opt-name { flex: 1; font-weight: 500; }
.opt-price { font-weight: 600; }

/* ---------- Armador de box ---------- */
.pd-options + .pd-options { margin-top: 1.4rem; }
.opt-compact { padding: .65rem 1rem; }
.opt input:disabled ~ span { opacity: .45; }
.opt:has(input:disabled) { cursor: not-allowed; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 14px;
  background: rgba(112,21,14,.07);
}
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .4rem .5rem; border-radius: 11px;
  text-align: center; font-weight: 500; font-size: .92rem;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg input:checked + span { background: var(--bordo); color: #fff; box-shadow: 0 2px 8px rgba(112,21,14,.25); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(112,21,14,.25); }
.opt-sub { display: block; font-size: .78rem; font-weight: 400; opacity: .65; margin-top: .1rem; }
.opt-help { font-size: .85rem; opacity: .75; margin-top: .25rem; }

.mix-counter {
  display: inline-block; margin-left: .4rem; padding: .1rem .55rem;
  border-radius: 999px; background: rgba(112,21,14,.1);
  font-size: .78rem; font-weight: 600;
}
.mix-counter.is-complete { background: var(--wa); color: #fff; }
.mix-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .45rem .5rem .45rem 1rem;
  border-radius: 14px; border: 1.5px solid rgba(112,21,14,.14);
}
.mix-name { font-weight: 500; }
/* Todas las variedades se muestran con el mismo tamaño y estilo */
.top-tag {
  display: inline-block; margin-left: .25rem; padding: .05rem .5rem;
  border-radius: 999px; background: var(--rosa); color: var(--bordo);
  font-size: .72rem; font-weight: 600; vertical-align: middle;
}
.mix-boxes { font-weight: 600; opacity: .9; }
.mix-tier {
  margin-top: .4rem; padding: .6rem .9rem; border-radius: 12px;
  background: rgba(241,137,137,.18); font-size: .88rem;
}
.mix-tier i { margin-right: .35rem; opacity: .7; }
.prod-chip {
  align-self: flex-start; margin-top: .45rem;
  padding: .1rem .55rem; border-radius: 999px;
  border: 1px solid rgba(240,137,137,.9); color: var(--bordo);
  font-size: .72rem; font-weight: 500;
}
.btn-add:disabled { background: rgba(112,21,14,.35); cursor: not-allowed; justify-content: center; }

/* Tarjeta destacada "Armá tu box surtido" */
.prod-card.is-featured { background: var(--bordo); color: #fff; }
.prod-card.is-featured .prod-desc { color: rgba(255,255,255,.8); }
.prod-card.is-featured .prod-add { background: var(--rosa); color: var(--bordo); }
.prod-card.is-featured .prod-thumb { background: linear-gradient(160deg, #fff, var(--rosa)); }
.prod-tag {
  align-self: flex-start; margin-bottom: .4rem;
  padding: .15rem .6rem; border-radius: 999px;
  background: var(--rosa); color: var(--bordo);
  font-size: .72rem; font-weight: 600;
}

/* ---------- Campos de formulario ---------- */
.field { display: block; margin-top: 1.1rem; border: 0; padding: 0; min-width: 0; }
.form-body > .field:first-child { margin-top: 0; }
.field-hint { display: block; margin: 1.1rem 0 -.6rem; font-weight: 600; font-size: .92rem; }
.field-hint small { font-weight: 400; opacity: .6; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1.5px solid rgba(112,21,14,.18);
  background: #fff; color: var(--bordo);
  font-size: 1rem;   /* 16px: evita que el iPhone haga zoom */
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--bordo); box-shadow: 0 0 0 3px rgba(112,21,14,.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-top: 1.1rem; }
.field-row .field-label { font-weight: 500; font-size: .85rem; opacity: .8; }

.field-error { display: none; margin-top: .4rem; font-size: .82rem; font-weight: 500; color: #B42318; }
.field.invalid .field-error { display: block; }
.field.invalid input[type="text"] { border-color: #B42318; }
.field.invalid .choice span { border-color: rgba(180,35,24,.5); }

.field-help { font-size: .85rem; opacity: .75; margin: -.2rem 0 .6rem; line-height: 1.45; }
.date-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 480px) { .date-grid { grid-template-columns: repeat(4, 1fr); } }
.date-choice span { min-height: 56px; gap: .1rem; padding: .5rem .25rem; }
.date-choice strong { font-size: .9rem; }
.date-choice small { font-size: .7rem; opacity: .7; font-weight: 400; }
.field.invalid .date-choice span { border-color: rgba(180,35,24,.5); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  height: 100%; min-height: 76px; padding: .7rem .5rem;
  border-radius: 14px; border: 1.5px solid rgba(112,21,14,.18);
  background: #fff;
  text-align: center; font-size: .85rem; font-weight: 500; line-height: 1.25;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice span i { font-size: 1.15rem; opacity: .8; }
.choice input:checked + span,
.field.invalid .choice input:checked + span { border: 2px solid var(--bordo); background: rgba(112,21,14,.07); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(112,21,14,.2); }

/* ---------- Stepper (cantidad) ---------- */
.stepper {
  display: inline-flex; align-items: center;
  border-radius: 999px; border: 1.5px solid rgba(112,21,14,.2);
  background: #fff;
}
.stepper button {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem;
}
.stepper button:hover:not(:disabled) { background: rgba(112,21,14,.07); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.stepper-sm button { width: 34px; height: 34px; font-size: .78rem; }

/* ---------- Botones ---------- */
.btn-main {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.25rem;
  border-radius: 999px;
  background: var(--bordo); color: #fff;
  font-weight: 600; font-size: 1rem;
  transition: background-color .2s ease, transform .1s ease;
}
.btn-main:hover { background: #540F0A; }
.btn-main:active { transform: scale(.98); }
.btn-add { justify-content: space-between; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa i { font-size: 1.3rem; }
.link-btn { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: .5rem; }

/* ---------- Carrito ---------- */
.cart-list { display: grid; gap: 14px; }
.cart-item {
  display: flex; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(112,21,14,.08);
}
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb {
  position: relative; flex: 0 0 auto;
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--rosa));
}
.cart-thumb .thumb-ph { font-size: 1.2rem; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-weight: 600; }
.cart-meta { font-size: .85rem; opacity: .7; margin-top: .1rem; }
.cart-flavors { font-size: .82rem; margin-top: .3rem; line-height: 1.4; }
.cart-note { font-size: .82rem; margin-top: .3rem; font-style: italic; opacity: .8; }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.cart-sub { font-weight: 600; }
.cart-empty { text-align: center; padding: 2.5rem 0 1.5rem; }
.cart-empty i { font-size: 2.5rem; opacity: .35; }
.cart-empty p { margin-top: .75rem; opacity: .75; }

.cat-promo {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  margin-top: .6rem; padding: .35rem .8rem; border-radius: 999px;
  background: var(--rosa); color: var(--bordo); font-size: .82rem;
}
.discount-box { display: grid; gap: .4rem; }
.discount-nudge {
  padding: .55rem .8rem; border-radius: 12px;
  background: rgba(241,137,137,.2); font-size: .85rem; line-height: 1.4;
}
.discount-nudge i { margin-right: .3rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.sum-row small { display: block; opacity: .7; font-weight: 400; font-size: .78rem; }
.sum-row .amt, .sum-row span:last-child { white-space: nowrap; }
.sum-row.discount { color: #1E7A3E; font-weight: 600; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total-row strong { font-size: 1.3rem; }
.hint { font-size: .8rem; opacity: .65; margin-top: -6px; }

/* ---------- Listo ---------- */
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.25rem 24px calc(1.75rem + env(safe-area-inset-bottom)); }
.done p { line-height: 1.6; max-width: 360px; color: rgba(112,21,14,.85); }
.done .btn-main { flex: none; width: 100%; max-width: 340px; }
.done-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; font-size: 1.6rem;
}

/* ---------- Aviso ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: 16px;
  transform: translate(-50%, -20px);
  padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--bordo); color: #fff; font-size: .9rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { margin-right: .35rem; color: var(--rosa); }

/* ---------- Animaciones ---------- */
@keyframes hoja     { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hoja-out { to   { transform: translateY(40px); opacity: 0; } }
@keyframes fade     { from { opacity: 0; } }
@keyframes fade-out { to   { opacity: 0; } }

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