/* quartz — web client
 *
 * One palette, two densities: the sign-in gate is a full-bleed aurora with a
 * floating crystal; the app itself keeps a much quieter version of the same
 * colours so the messages, not the wallpaper, are the loudest thing on screen.
 */

:root {
  --void: #07070d;
  --void-2: #0c0c16;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --text: #eceaf6;
  --muted: #9a97b0;
  --faint: #6b6883;

  --violet: #8b6cff;
  --cyan: #4fd8e8;
  --pink: #f472b6;
  --accent: linear-gradient(120deg, var(--violet), var(--cyan) 55%, var(--pink));

  --unread: #f4f4ff;
  --danger: #ff7a90;
  --ok: #52e0a4;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --side-w: 340px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--void);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(139, 108, 255, .35); }

/* Scrollbars: present but quiet. */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: content-box; }

/* ── Backdrop ─────────────────────────────────────────────────────────── */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -10%, #14142a 0%, transparent 60%),
    var(--void);
}

/* Three big, very slow, very blurred colour fields. Slow enough to read as
 * weather rather than animation — 26s to 44s per drift. */
.aurora { position: absolute; inset: -25%; filter: blur(90px); opacity: .6; animation: hue 18s linear infinite; }
@keyframes hue { to { filter: blur(90px) hue-rotate(360deg); } }

.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-a {
  width: 46vmax; height: 46vmax; left: 8%; top: 4%;
  background: radial-gradient(circle, #6d4dff 0%, transparent 68%);
  animation: drift-a 9s var(--ease) infinite alternate;
}
.blob-b {
  width: 40vmax; height: 40vmax; right: 6%; top: 18%;
  background: radial-gradient(circle, #16b9d4 0%, transparent 68%);
  animation: drift-b 7s var(--ease) infinite alternate;
}
.blob-c {
  width: 38vmax; height: 38vmax; left: 34%; bottom: -6%;
  background: radial-gradient(circle, #d64a9a 0%, transparent 70%);
  animation: drift-c 11s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-12vmax, 12vmax, 0) scale(.92); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  to   { transform: translate3d(10vmax, -10vmax, 0) scale(1.2); }
}

/* Stars: sized and placed by app.js, then left alone. */
.stars { position: absolute; inset: 0; }
.star {
  box-shadow: 0 0 4px rgba(255,255,255,.7);
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: .55;
  animation: twinkle var(--dur, 4s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  from { opacity: .06; transform: translateY(0) scale(.8); }
  to   { opacity: .5;  transform: translateY(-10px) scale(1.1); }
}


/* ── Sign-in gate ─────────────────────────────────────────────────────── */

.gate {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  padding: 34px 32px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .028));
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1);
  animation: rise .8s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.brand { text-align: center; margin-bottom: 26px; }
.crystal {
  width: 46px; height: 54px;
  filter: drop-shadow(0 6px 18px rgba(139, 108, 255, .45));
}
/* A highlight travelling down the crystal, every 7s. */
.crystal-sweep { animation: sweep 3.2s var(--ease) infinite; }
@keyframes sweep {
  0%, 62%, 100% { opacity: .92; }
  70% { opacity: .62; }
  80% { opacity: 1; }
}
.crystal.big { width: 76px; height: 88px; opacity: .5; }

.brand h1 {
  margin: 12px 0 2px;
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #fff, #cfc4ff 40%, #9ce8f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { margin: 0; color: var(--muted); font-size: 14px; }

.form { gap: 14px; animation: fade .5s var(--ease) both .12s; }
.form:not([hidden]) { display: grid; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.field { display: grid; gap: 6px; }
.field > span {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  transition: border-color .18s, box-shadow .18s, background .18s;
  resize: none;
}
.field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(139, 108, 255, .7);
  background: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 4px rgba(139, 108, 255, .16);
}

.primary {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 46px;
  margin-top: 4px;
  border-radius: var(--r-md);
  background: var(--accent);
  background-size: 200% 100%;
  color: #0a0714;
  font-weight: 620;
  letter-spacing: .01em;
  transition: transform .14s var(--ease), box-shadow .2s, filter .2s;
  box-shadow: 0 10px 30px -12px rgba(139, 108, 255, .9);
}
.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.primary:active { transform: translateY(0) scale(.99); }
.primary[disabled] { cursor: progress; filter: saturate(.5) brightness(.85); }

/* The spinner is always in the DOM; the button just fades it in while busy. */
.spinner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(10, 7, 20, .3);
  border-top-color: #0a0714;
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.primary[disabled] .label { opacity: 0; }
.primary[disabled] .spinner { opacity: 1; }

.error {
  margin: 0;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 122, 144, .12);
  border: 1px solid rgba(255, 122, 144, .28);
  color: #ffc3cd;
  font-size: 13.5px;
  animation: shake .35s var(--ease);
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(79, 216, 232, .08);
  border: 1px solid rgba(79, 216, 232, .2);
  color: #cfeef4;
  font-size: 13.5px;
  line-height: 1.55;
}
.note strong { color: #fff; }

.link {
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--text); }

.install {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
  transition: color .2s, border-color .2s;
}
.install:hover { color: var(--text); border-color: var(--violet); }

.foot {
  margin: 18px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

/* ── App shell ────────────────────────────────────────────────────────── */

.app {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  height: 100dvh;
  animation: fade .5s var(--ease) both;
}

/* The backdrop stays, but drops back so text stays readable over it. */
body.in-app .aurora { opacity: .28; }

.sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  background: rgba(8, 8, 16, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
}

.side-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 12px;
}
.who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }

.avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0714;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -4px rgba(139, 108, 255, .8);
}
.who-text { display: grid; min-width: 0; }
.who-text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  color: var(--muted);
  transition: background .16s, color .16s;
}
.icon:hover { background: var(--surface-2); color: var(--text); }
.icon svg { width: 19px; height: 19px; }

.side-tools {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
}
.search {
  position: relative;
  flex: 1;
}
.search svg {
  position: absolute;
  left: 10px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 9px 10px 9px 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--surface);
  transition: border-color .16s, background .16s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.chip {
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  transition: all .16s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: rgba(139, 108, 255, .18);
  border-color: rgba(139, 108, 255, .55);
  color: #d8cdff;
}

.dms {
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
  overflow-y: auto;
  min-height: 0;
}

.dm {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .14s;
  position: relative;
}
.dm:hover { background: var(--surface); }
.dm.active { background: rgba(139, 108, 255, .16); }
.dm.active::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}
.dm .avatar { grid-row: 1 / 3; width: 42px; height: 42px; font-size: 15px; }

.dm-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dm-name {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-time { font-size: 11.5px; color: var(--faint); flex: none; }
.dm-preview {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-count {
  justify-self: end;
  min-width: 19px; height: 19px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0714;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.dm-badge {
  justify-self: end;
  color: var(--faint);
  font-size: 11px;
}
.dm-badge svg { width: 13px; height: 13px; }

/* Unread is server truth (a Matrix read receipt), so this is the same rule the
 * TUI applies: bold the row, accent the name. */
.dm.unread .dm-name { color: var(--unread); font-weight: 650; }
.dm.unread .dm-preview { color: #c3c0d6; font-weight: 550; }
.dm.mention .dm-name { color: #ffc7de; }

.chat {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-width: 0;
  min-height: 0;
}

.empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--faint);
}
.empty p { margin: 0; font-size: 14px; }

.chat-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(7, 7, 13, .92), rgba(7, 7, 13, .55) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chat-title { flex: 1; min-width: 0; display: grid; }
.chat-title strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-title small { color: var(--faint); font-size: 12px; }
.chat-actions { display: flex; gap: 2px; }
.icon.back { display: none; }

.timeline {
  grid-row: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 74px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scroll-behavior: smooth;
}

.day {
  align-self: center;
  margin: 18px 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: .03em;
}

.msg {
  position: relative;
  max-width: min(640px, 82%);
  padding: 7px 12px 7px;
  border-radius: var(--r-md);
  align-self: flex-start;
  transition: background .14s;
}
.msg:hover { background: var(--surface); }
.msg.mine { align-self: flex-end; }
.msg + .msg { margin-top: 2px; }

.msg-who {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b9aaff;
  margin-bottom: 1px;
}
.msg.mine .msg-who { color: #7fe3d2; }
.msg-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
}
.msg-time {
  float: right;
  margin: 6px 0 -2px 10px;
  font-size: 10.5px;
  color: var(--faint);
  opacity: 0;
  transition: opacity .14s;
}
.msg:hover .msg-time { opacity: 1; }

.msg.undecrypted { color: var(--faint); font-style: italic; }

.reply-quote {
  display: block;
  margin-bottom: 5px;
  padding-left: 9px;
  border-left: 2px solid rgba(139, 108, 255, .55);
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.reaction {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.msg-actions {
  position: absolute;
  top: -12px;
  right: 8px;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(16, 16, 28, .96);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -10px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s;
  z-index: 2;
}
.msg.mine .msg-actions { right: auto; left: 8px; }
.msg:hover .msg-actions, .msg-actions:hover { opacity: 1; pointer-events: auto; }
.msg-actions .icon { width: 30px; height: 30px; }
.msg-actions .icon svg { width: 16px; height: 16px; }

.media { margin-top: 7px; }
.media img, .media video {
  display: block;
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #000;
}
.media audio { width: 100%; margin-top: 3px; }
.media-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.media-file:hover { color: var(--text); }
.media-file svg { width: 17px; height: 17px; }

/* Pending sends: dimmed, and a gentle pulse until the server echoes them back. */
.msg.pending { opacity: .55; }
.msg.pending .msg-body::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.replying {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 8px 10px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: rgba(139, 108, 255, .12);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.replying .bar { width: 2px; align-self: stretch; border-radius: 2px; background: var(--accent); }
.replying-text { flex: 1; min-width: 0; display: grid; }
.replying-text small { color: #b9aaff; font-size: 11.5px; }
.replying-text span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose {
  grid-row: 3;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
  background: linear-gradient(0deg, rgba(7, 7, 13, .96), rgba(7, 7, 13, .7) 60%, transparent);
}
.compose textarea {
  flex: 1;
  max-height: 180px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
  resize: none;
  transition: border-color .16s, box-shadow .16s;
}
.compose textarea:focus {
  outline: none;
  border-color: rgba(139, 108, 255, .6);
  box-shadow: 0 0 0 4px rgba(139, 108, 255, .13);
}
.send {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--accent);
  color: #0a0714;
  transition: transform .14s var(--ease), filter .2s, opacity .2s;
}
.send svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.send:hover { filter: brightness(1.08); transform: translateY(-1px); }
.send:disabled { opacity: .35; cursor: default; transform: none; filter: none; }

.side-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background .3s;
}
.dot.live { background: var(--ok); box-shadow: 0 0 8px rgba(82, 224, 164, .8); }
.dot.down { background: var(--danger); }

/* ── Emoji picker ─────────────────────────────────────────────────────── */

.picker {
  position: fixed;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-md);
  background: rgba(16, 16, 28, .97);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: pop .16s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: scale(.92) translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.picker button {
  width: 34px; height: 34px;
  border-radius: 8px;
  font-size: 19px;
  line-height: 1;
  transition: background .12s, transform .12s;
}
.picker button:hover { background: var(--surface-2); transform: scale(1.15); }

/* ── Toasts ───────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  display: grid;
  gap: 8px;
  justify-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 34, .96);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px -14px #000;
  font-size: 13.5px;
  animation: toast-in .3s var(--ease);
}
.toast.err { border-color: rgba(255, 122, 144, .4); color: #ffc3cd; }
.toast.leaving { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(8px); } }

/* ── Narrow screens: one pane at a time ───────────────────────────────── */

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; }
  .icon.back { display: grid; }
  .chat { display: none; }
  body.viewing-chat .sidebar { display: none; }
  body.viewing-chat .chat { display: grid; }
  .msg { max-width: 88%; }
  .timeline { padding: 70px 12px 12px; }
  .compose { padding: 10px 12px 14px; }
  .card { padding: 28px 22px 22px; }
}

@media (max-width: 400px) {
  :root { --side-w: 100vw; }
  .picker { grid-template-columns: repeat(7, 1fr); }
}

/* ── Motion, honestly ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  /* The aurora keeps its colour but stops drifting. */
  .blob { animation: none; }
  .star {
  box-shadow: 0 0 4px rgba(255,255,255,.7); animation: none; opacity: .25; }
}