/* ============================================================
   TypeHelden – stylesheet
   Kleuren per vinger zijn het handelsmerk: je ziet ze terug in
   het logo, het schermtoetsenbord en de legenda.
   ============================================================ */

:root {
  --brand: #6d28d9;
  --brand-2: #8b5cf6;
  --brand-soft: #ede9fe;
  --accent: #f59e0b;
  --ink: #1e1b4b;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --ok: #16a34a;
  --bad: #dc2626;

  /* vingerkleuren (links en rechts gespiegeld) */
  --f-pink: #f87171;   /* pink        */
  --f-ring: #fbbf24;   /* ringvinger  */
  --f-mid:  #34d399;   /* middelvinger*/
  --f-idx:  #60a5fa;   /* wijsvinger  */
  --f-thumb:#c4b5fd;   /* duim        */

  --radius: 20px;
  --shadow: 0 10px 30px rgba(30, 27, 75, .08);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 12% -8%, #ede9fe 0%, transparent 60%),
    radial-gradient(900px 520px at 92% 4%, #fef3c7 0%, transparent 55%),
    #f6f7fb;
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 .7em; }
a { color: var(--brand); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { justify-content: center; text-align: center; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 18px 70px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-h { margin: 26px 0 12px; }
.boot-msg { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ------------------------------------------------ kaarten & knoppen */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: .45em;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700;
  padding: 10px 16px; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(30,27,75,.12); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn.danger { color: var(--bad); border-color: #fecaca; }
.btn.danger.ghost { border-color: transparent; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.tiny { padding: 5px 11px; font-size: .84rem; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, .tab:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

.pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 3px 11px; font-size: .8rem; font-weight: 700;
}
.pill.gold { background: #fef3c7; color: #92400e; }

.form-msg { min-height: 1.4em; font-weight: 600; color: var(--brand); }

/* ------------------------------------------------ formulieren */

.pane-form { display: grid; gap: 12px; }
.pane-form label { display: grid; gap: 5px; font-weight: 600; font-size: .93rem; }
.pane-form input {
  font: inherit; padding: 11px 13px; border: 2px solid var(--line);
  border-radius: 12px; background: #fbfbfe;
}
.pane-form input:focus { border-color: var(--brand-2); outline: none; background: #fff; }
.code-input { text-transform: uppercase; letter-spacing: .18em; font-family: var(--mono); font-weight: 700; }
.note { background: #fef3c7; padding: 10px 12px; border-radius: 12px; }

.setting {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.setting:last-child { border-bottom: 0; }
.setting input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.setting small { display: block; color: var(--muted); font-weight: 400; }

/* ------------------------------------------------ inlogpagina */

.login-body { display: block; }
.login-wrap { max-width: 470px; margin: 0 auto; padding: 46px 18px 60px; }
.pane { display: block; }
.login-hero { text-align: center; margin-bottom: 20px; }
.login-hero h1 { font-size: 2.4rem; margin: 12px 0 6px; letter-spacing: -.02em; }
.tagline { color: var(--muted); }

.logo-keys { display: flex; gap: 8px; justify-content: center; }
.lk {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  font-weight: 800; font-size: 1.3rem; color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.16);
  animation: bob 2.6s ease-in-out infinite;
}
.lk:nth-child(2) { animation-delay: .15s; }
.lk:nth-child(3) { animation-delay: .3s; }
.lk:nth-child(4) { animation-delay: .45s; }
.lk.fi { background: var(--f-idx); }
.lk.fm { background: var(--f-mid); }
.lk.fr { background: var(--f-ring); }
.lk.fp { background: var(--f-pink); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.login-card { padding: 22px; }
.tabs, .subtabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab, .subtab {
  flex: 1; font: inherit; font-weight: 700; cursor: pointer;
  padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
}
.subtab { padding: 7px; font-size: .9rem; }
.tab.active, .subtab.active { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
.login-foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }

/* ------------------------------------------------ topbalk */

.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand-key {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: .95rem; box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lv-chip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; padding: 5px 14px; font-size: .88rem; font-weight: 700;
}
.xpbar { display: block; width: 90px; height: 8px; background: #ddd6fe; border-radius: 99px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #fbbf24); transition: width .5s ease; }
.streak { font-weight: 700; }

/* ------------------------------------------------ dashboard */

.hero { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.hero h1 { font-size: 1.9rem; }
.tip { background: #fffbeb; border-left: 4px solid var(--accent); padding: 9px 12px; border-radius: 0 10px 10px 0; margin-top: 10px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hstat {
  background: #f8f7ff; border: 2px solid var(--line); border-radius: 16px;
  padding: 10px 16px; text-align: center; min-width: 92px;
}
.hstat b { display: block; font-size: 1.5rem; color: var(--brand); }
.hstat span { font-size: .78rem; color: var(--muted); }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.qbtn {
  display: block; text-decoration: none; color: var(--ink); font-weight: 700;
  background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: transform .12s ease, border-color .12s ease;
}
.qbtn:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.qbtn small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.qbtn.locked { opacity: .55; pointer-events: none; }

.chap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.chap {
  display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow);
  border-left: 6px solid var(--brand-2); transition: transform .12s ease;
}
.chap:hover { transform: translateY(-3px); }
.chap.done { border-left-color: var(--ok); background: #f6fdf8; }
.chap.locked { opacity: .55; border-left-color: var(--line); pointer-events: none; }
.chap-icon { font-size: 1.9rem; }
.chap-body { display: grid; }
.chap-body b { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.chap-meta { font-size: .84rem; color: var(--muted); }

/* ------------------------------------------------ hoofdstukpagina */

.chap-head { display: flex; gap: 16px; align-items: center; }
.chap-head-icon { font-size: 2.6rem; }
.keychips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.keychip {
  font-family: var(--mono); font-weight: 700; background: var(--brand-soft); color: var(--brand);
  border-radius: 8px; padding: 3px 10px;
}
.intro-list { margin: 0; padding-left: 20px; }
.intro-list li { margin-bottom: .5em; }

.ex-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.ex-row:last-child { border-bottom: 0; }
.ex-name { flex: 1; min-width: 190px; font-weight: 600; }
.ex-name em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .84rem; }

.stars { color: #d1d5db; letter-spacing: 2px; font-size: 1.05rem; }
.stars .star.on { color: var(--accent); }
.stars.big { font-size: 2.4rem; letter-spacing: 6px; }

.game-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95); color: #fff; }
.game-card h2 { color: #fff; }
.game-card .muted { color: #c7d2fe; }
.game-card.locked { background: #f3f4f6; color: var(--muted); }
.game-card.locked h2 { color: var(--ink); }
.game-card.locked .muted { color: var(--muted); }

/* ------------------------------------------------ trainer */

.trainer-card { padding: 20px 20px 12px; }
.tr-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.tr-stats { display: flex; gap: 8px; }
.tstat {
  background: #f8f7ff; border-radius: 14px; padding: 8px 14px; text-align: center; min-width: 72px;
}
.tstat b { display: block; font-size: 1.3rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.tstat span { font-size: .72rem; color: var(--muted); }

.warn {
  background: #fee2e2; color: #991b1b; border-radius: 12px;
  padding: 9px 13px; font-weight: 700; margin: 12px 0;
}
.warn.info { background: #e0f2fe; color: #075985; font-weight: 600; }

.type-target {
  font-family: var(--mono); font-size: 1.5rem; line-height: 2.1;
  background: #fbfbfe; border: 2px solid var(--line); border-radius: 16px;
  padding: 18px; margin: 14px 0;
  max-height: 210px; overflow-y: auto; word-break: break-word;
}
.type-target .tc { padding: 1px 0; border-radius: 3px; }
.type-target .tc.done { color: var(--ok); }
.type-target .tc.cur {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, .22);
  border-radius: 4px; animation: blink 1.1s steps(1) infinite;
}
.type-target .tc.miss { background: var(--bad); color: #fff; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .72; } }
.tr-hint { font-size: .85rem; margin: 4px 0 0; }

body.blurred .type-target::after {
  content: "👆 Klik hier en typ verder";
  display: block; margin-top: 10px; font-family: system-ui, sans-serif;
  font-size: .95rem; color: var(--bad); font-weight: 700;
}

/* ------------------------------------------------ schermtoetsenbord */

.kb { display: grid; gap: 6px; margin: 6px 0 4px; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.key {
  min-width: 42px; height: 46px; padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 10px; font-family: var(--mono); font-weight: 700; font-size: .95rem;
  background: #f1f5f9; color: #334155;
  border-bottom: 3px solid rgba(0, 0, 0, .14);
  transition: transform .07s ease, filter .07s ease;
}
.key.wide { min-width: 78px; font-size: .78rem; }
.key.space { min-width: 300px; font-size: .78rem; }
.key.bump { position: relative; }
.key.bump::after {
  content: ""; position: absolute; bottom: 7px; width: 12px; height: 2px;
  border-radius: 2px; background: rgba(0, 0, 0, .35);
}
.key.fp { background: color-mix(in srgb, var(--f-pink) 34%, #fff); }
.key.fr { background: color-mix(in srgb, var(--f-ring) 34%, #fff); }
.key.fm { background: color-mix(in srgb, var(--f-mid) 34%, #fff); }
.key.fi { background: color-mix(in srgb, var(--f-idx) 34%, #fff); }
.key.ft { background: color-mix(in srgb, var(--f-thumb) 40%, #fff); }
.key.hl {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(139, 92, 246, .3);
}
.key.press { filter: brightness(1.25); transform: translateY(2px); border-bottom-width: 1px; }
.key.wrong { background: var(--bad); color: #fff; }

.kb-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.kb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.fp { background: var(--f-pink); } .dot.fr { background: var(--f-ring); }
.dot.fm { background: var(--f-mid); }  .dot.fi { background: var(--f-idx); }
.dot.ft { background: var(--f-thumb); }

/* ------------------------------------------------ resultaat */

.result-card { text-align: center; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-stats { font-size: 1.15rem; }
.big-note { background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.table.mini { font-size: .9rem; margin: 10px auto; max-width: 380px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* ------------------------------------------------ badges */

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.badge {
  text-align: center; padding: 16px 12px; border-radius: 16px;
  background: #f8fafc; border: 2px dashed var(--line); opacity: .6;
}
.badge.got { opacity: 1; background: #fffbeb; border: 2px solid var(--accent); }
.badge-icon { font-size: 2rem; display: block; filter: grayscale(1); }
.badge.got .badge-icon { filter: none; }
.badge b { display: block; margin: 4px 0 2px; }
.badge small { color: var(--muted); }

/* ------------------------------------------------ tabellen & leaderboard */

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr.podium td { background: #fffdf5; }
.table tr.p1 td { background: #fef9c3; }
.table tr.p2 td { background: #f1f5f9; }
.table tr.p3 td { background: #fef2e2; }
.table tr.me td { box-shadow: inset 3px 0 0 var(--brand); font-weight: 700; }

.chdots { display: inline-flex; gap: 3px; vertical-align: middle; }
.chdots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.chdots i.on { background: var(--ok); }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.class-card { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.class-card h3 { margin: 0; }
.class-card .row-gap { margin-top: auto; padding-top: 8px; }
.class-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.class-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.cv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code-chip {
  font-family: var(--mono); font-weight: 800; letter-spacing: .18em;
  background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 8px;
}
.code-chip.big { display: inline-block; font-size: 1.25rem; padding: 7px 14px; margin: 6px 0; }

/* ------------------------------------------------ Bug Blaster */

.bb-wrap { position: relative; }
.bb-hud {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  background: #1e1b4b; color: #fff; border-radius: 14px 14px 0 0;
  padding: 9px 14px; font-weight: 700; font-size: .92rem;
}
#bb-canvas { display: block; width: 100%; height: auto; border-radius: 0 0 14px 14px; background: #141034; }
.bb-overlay {
  position: absolute; inset: 0; display: none; place-items: center;
  background: rgba(20, 16, 52, .82); border-radius: 14px; padding: 16px;
}
.bb-overlay.show { display: grid; }
.bb-panel { background: #fff; border-radius: 18px; padding: 22px; text-align: center; max-width: 560px; }
.bb-upgrades { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.bb-upg {
  font: inherit; cursor: pointer; background: #f8f7ff; border: 2px solid var(--line);
  border-radius: 14px; padding: 14px 10px; display: grid; gap: 3px; transition: transform .12s ease, border-color .12s ease;
}
.bb-upg:hover { transform: translateY(-3px); border-color: var(--brand-2); }
.bb-upg-icon { font-size: 1.7rem; }
.bb-upg small { color: var(--muted); }
.bb-final { font-size: 1.1rem; }

/* ------------------------------------------------ Reflex! */

.rx-wrap { display: grid; gap: 6px; }
.rx-hud { display: flex; gap: 18px; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.rx-stage {
  display: grid; place-items: center; min-height: 260px;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95); border-radius: 18px; color: #fff;
}
.rx-letter { font-family: var(--mono); font-size: 8rem; font-weight: 800; color: #fde68a; animation: pop .12s ease; }
.rx-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.25); }
.rx-time { font-size: 2.4rem; font-weight: 800; color: #4ade80; }
.rx-result { text-align: center; padding: 20px; }
.rx-result h3 { font-size: 1.8rem; color: #fde68a; }

/* ------------------------------------------------ certificaat */

.cert {
  background: #fff; border-radius: 22px; padding: 10px;
  box-shadow: var(--shadow); margin-bottom: 16px;
  background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.cert.tier-brons   { background-image: linear-gradient(135deg, #b45309, #f59e0b); }
.cert.tier-zilver  { background-image: linear-gradient(135deg, #64748b, #cbd5e1); }
.cert.tier-goud    { background-image: linear-gradient(135deg, #b45309, #fcd34d); }
.cert.tier-platina { background-image: linear-gradient(135deg, #0e7490, #a5f3fc); }
.cert-inner { background: #fff; border-radius: 16px; padding: 34px 26px; text-align: center; }
.cert-brand { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .8rem; }
.cert-inner h1 { font-size: 2rem; margin-bottom: .2em; }
.cert-inner h1 span { display: block; font-size: 1.3rem; color: var(--brand); }
.cert-sub { color: var(--muted); margin-bottom: 0; }
.cert-name { font-size: 2.2rem; font-weight: 800; margin: .1em 0; }
.cert-class { color: var(--muted); }
.cert-stats { display: flex; gap: 30px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.cert-stats b { display: block; font-size: 2rem; color: var(--brand); }
.cert-stats span { font-size: .82rem; color: var(--muted); }
.cert-date { font-weight: 600; }
.cert-foot { font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------ toasts & confetti */

#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px;
  font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  animation: slidein .25s ease;
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i {
  position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px;
  animation: fall 2.4s linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(540deg); opacity: .1; }
}

/* ------------------------------------------------ printen */

@media print {
  body { background: #fff; }
  .topbar, .no-print, #toasts, .btn { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .cert { box-shadow: none; page-break-inside: avoid; }
}

/* ------------------------------------------------ klein scherm */

@media (max-width: 720px) {
  h1 { font-size: 1.4rem; }
  .type-target { font-size: 1.2rem; line-height: 1.9; }
  .key { min-width: 30px; height: 38px; font-size: .8rem; padding: 0 4px; }
  .key.wide { min-width: 50px; font-size: .62rem; }
  .key.space { min-width: 160px; }
  .rx-letter { font-size: 5rem; }
  .cert-name { font-size: 1.5rem; }
  .lv-chip .xpbar { width: 60px; }
}

/* ------------------------------------------------ minder beweging */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
