/* ==========================================================================
   Base: reset, paper, type, the brush-paint system, buttons, chips, fields,
   the "new" stamp, ensō score, brush range, skeleton, ink loader
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}
/* the paper: a fixed sheet behind everything (composited once, never repainted on scroll) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg-tex) 0 0 / 512px 512px, var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.62;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.theme-anim, .theme-anim * { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease) !important; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; font-family: var(--f-ui); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-track { background: transparent; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--text); color: var(--on-text); padding: 10px 16px; border-radius: var(--r); font: 700 var(--fs-sm)/1.2 var(--f-ui);
  transition: top var(--t) var(--ease);
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- type */
/* numerals: set bold and tabular, like a volume number */
.num { font-family: var(--f-ui); font-weight: 800; font-stretch: 62.5%; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- brush paint
   Any element with [data-paint] gets a ::before filled with currentColor and cut
   by a brush shape. --p paints it in from the left: -20% = not yet, 118% = done
   (a transition back lifts the brush off). Components place it, colour it and
   decide when it paints; the host needs position + isolation. */
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 118%; }
[data-paint]::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: currentColor;
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask: var(--m) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  mask-composite: intersect;
  --p: -20%;
  transition: --p var(--t-paint) var(--ease), opacity var(--t) var(--ease);
}
[data-paint="swash"]::before { --m: var(--brush-swash); }
[data-paint="stroke"]::before { --m: var(--brush-stroke); }
[data-paint="under"]::before { --m: var(--brush-under); }
[data-paint="rule"]::before { --m: var(--brush-rule); }
@keyframes paint { from { --p: -20%; } to { --p: 118%; } }

/* ---------------------------------------------------------------- hand-ruled lines
   Boxes and dividers are ruled with a brush, not a pen: four thin brush lines
   (edge-*.svg) stretched along the sides, crossing a little at the corners.
   `--frame-c` colours them; every other box takes the lines the other way round. */
.btn--line::after, .chip::after, .field::after, .select-wrap::after, .segmented::after, .kbd::after,
.search-trigger::after, .chap::after, .side-card::after, .stat::after, .preview__facts span::after {
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background: var(--frame-c, var(--line-2));
  -webkit-mask: var(--frame); mask: var(--frame);
  transition: background-color var(--t-fast);
}
.chip:nth-child(even)::after, .stat:nth-child(even)::after, .side-card:nth-child(even)::after, .preview__facts span:nth-child(even)::after { -webkit-mask: var(--frame-alt); mask: var(--frame-alt); }
/* dividers: one brush line each (the component places it and may recolour it with --rule-c) */
.nav::after, .tabbar::before, .footer__bottom::before, .show__grid::after, .show__tab::after, .filters::after,
.ch::after, .chapters > .ch:first-child::before, .tabs::after, .palette__input::after,
.setting + .setting::before, .chap__art::after, .rbar--top::after, .rbar--bottom::before {
  content: ""; position: absolute; left: 0; right: 0; height: 8px; pointer-events: none;
  background: var(--rule-c, var(--line-2));
  -webkit-mask: var(--edge-h1) 0 0 / 100% 100% no-repeat; mask: var(--edge-h1) 0 0 / 100% 100% no-repeat;
}
.ch:nth-child(even)::after, .show__tab:nth-child(even)::after, .tabbar::before { -webkit-mask-image: var(--edge-h2); mask-image: var(--edge-h2); }

/* a brush fill for whatever is chosen (a status, a genre, a pressed button): painted in from the left */
.segmented button::before, .chip::before, .btn--line::before {
  content: ""; position: absolute; inset: -3px -7px -2px -6px; z-index: -1; pointer-events: none; background: var(--text);
  -webkit-mask: var(--brush-stroke) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask: var(--brush-stroke) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  mask-composite: intersect;
  --p: -20%; transition: --p .45s var(--ease);
}
.segmented button[aria-pressed="true"]::before, .chip[aria-pressed="true"]::before, .chip.is-active::before, .btn--line[aria-pressed="true"]::before { --p: 118%; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-fg: var(--text);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 46px; padding: 0 20px; border-radius: var(--r);
  color: var(--btn-fg); background: var(--btn-bg, transparent);
  font: 700 var(--fs-sm)/1 var(--f-ui); letter-spacing: .005em; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .35; pointer-events: none; }

/* primary: a loaded black brush stroke with paper words; pointing at it paints a
   red coat across it from the left. (The reader and footer keep it ink on ink: see --btn-ink.) */
.btn--primary {
  --btn-fg: var(--on-text); --btn-ink: var(--text);
  height: 50px; padding: 0 34px 0 30px; border-radius: 0; font-weight: 750; font-size: var(--fs-base);
}
.btn--primary::before, .btn--primary::after {
  content: ""; position: absolute; pointer-events: none; background: currentColor;
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask: var(--m) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 calc(var(--p) - 18%), transparent var(--p)) 0 0 / 100% 100% no-repeat;
  mask-composite: intersect;
}
.btn--primary::before { z-index: -2; inset: -6px -12px -6px -14px; color: var(--btn-ink); --m: var(--brush-stroke); --p: 118%; }
.btn--primary::after { z-index: -1; inset: -4px -10px -5px -12px; color: var(--accent); --m: var(--brush-stroke); --p: -20%; transition: --p .5s var(--ease); }
.btn--primary:hover::after, .btn--primary:focus-visible::after { --p: 118%; }
.btn--primary:hover { --btn-fg: var(--on-accent); }
.btn--primary .ico { width: 14px; height: 14px; }
.btn--primary .ico:last-child:not(:first-child) { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn--primary:hover .ico:last-child:not(:first-child) { transform: translateX(4px); }
.btn--primary:focus-visible { outline-offset: 9px; }
/* line: a box ruled by hand for secondary actions; pointing at it inks the lines */
.btn--line:hover { --frame-c: var(--text); }
.btn--line[aria-pressed="true"] { --btn-bg: transparent; }
.btn--line[aria-pressed="true"]::after { opacity: 0; }
.btn--ghost:hover { --btn-bg: var(--hover); }
/* text: a word with a brush underline that paints in */
.btn--text { height: auto; padding: 8px 2px; border-radius: 0; color: var(--text-2); }
.btn--text::before { left: -4px; right: -10px; bottom: -3px; height: 9px; color: var(--accent); }
.btn--text:hover { color: var(--text); }
.btn--text:hover::before { --p: 118%; }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.btn--sm .ico { width: 16px; height: 16px; }
.btn--primary.btn--sm { height: 38px; padding: 0 22px 0 20px; font-size: var(--fs-sm); }
.btn--lg { height: 52px; padding: 0 24px; font-size: var(--fs-base); }
.btn--primary.btn--lg { height: 56px; padding: 0 32px 0 28px; font-size: 1rem; }
.btn--icon { width: 46px; padding: 0; }
.btn--icon.btn--sm { width: 36px; }
.btn--icon.btn--lg { width: 52px; }
.btn[aria-pressed="true"] { --btn-bg: var(--text); --btn-fg: var(--on-text); box-shadow: none; }

/* icon buttons: quiet until pointed at, then an ensō is brushed around them */
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
  color: var(--text-2); transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: currentColor; opacity: .5;
  -webkit-mask: var(--brush-enso) center / contain no-repeat, conic-gradient(#000 calc(var(--v) - 6%), transparent var(--v));
  -webkit-mask-composite: source-in;
  mask: var(--brush-enso) center / contain no-repeat, conic-gradient(#000 calc(var(--v) - 6%), transparent var(--v));
  mask-composite: intersect;
  --v: 0%; transition: --v .55s var(--ease), opacity var(--t-fast);
}
.icon-btn:hover { color: var(--text); }
.icon-btn:hover::before, .icon-btn:focus-visible::before { --v: 107%; }
.icon-btn:active::before { opacity: .85; }
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  position: relative; isolation: isolate;
  height: 32px; padding: 0 12px; border-radius: var(--r);
  background: transparent; color: var(--text-2);
  font: 600 var(--fs-sm)/1 var(--f-ui); white-space: nowrap;
  transition: color var(--t-fast) .05s;
}
button.chip:hover, a.chip:hover { color: var(--text); --frame-c: var(--text); }
.chip[aria-pressed="true"], .chip.is-active { color: var(--on-text); }
.chip[aria-pressed="true"]::after, .chip.is-active::after { opacity: 0; }
.chip .num { font-size: 1.05em; opacity: .6; }
.chip--sm { height: 28px; padding: 0 10px; font-size: var(--fs-xs); }

/* "new": a vermilion chop. The red is a dry brush; the word stays sharp.
   Seals in a row each take a different brush and tilt, so a shelf of them
   doesn't read as one stamp repeated. */
.seal {
  display: inline-grid; place-items: center; position: relative; isolation: isolate; flex: none;
  padding: 4px 9px 3px; color: var(--on-accent); white-space: nowrap;
  font: 400 15px/1 var(--f-brush); letter-spacing: .03em;
  transform: rotate(var(--seal-tilt, -6deg));
}
.seal::before {
  content: ""; position: absolute; z-index: -1; inset: -8px -14px -4px -12px; background: var(--accent);
  /* a solid core under the word, then the brush as the ragged edge — the letters never leave the red */
  -webkit-mask:
    radial-gradient(closest-side, #000 62%, transparent 100%) center / 78% 86% no-repeat,
    var(--brush-stroke) center / 86% 92% no-repeat,
    var(--seal-mark, var(--brush-stroke)) var(--seal-at, center) / 100% 100% no-repeat;
  -webkit-mask-composite: source-over, source-over;
  mask:
    radial-gradient(closest-side, #000 62%, transparent 100%) center / 78% 86% no-repeat,
    var(--brush-stroke) center / 86% 92% no-repeat,
    var(--seal-mark, var(--brush-stroke)) var(--seal-at, center) / 100% 100% no-repeat;
  mask-composite: add, add;
  transform: scaleX(var(--seal-flip, 1));
}
:is(.rail__track, .grid, .chapters) > :nth-child(4n+2) .seal { --seal-mark: var(--brush-swash); --seal-tilt: 4deg; --seal-at: 18% 30%; }
:is(.rail__track, .grid, .chapters) > :nth-child(4n+3) .seal { --seal-mark: var(--brush-wipe); --seal-tilt: -2deg; --seal-flip: -1; --seal-at: 40% 10%; }
:is(.rail__track, .grid, .chapters) > :nth-child(4n+4) .seal { --seal-mark: var(--brush-swash); --seal-tilt: -11deg; --seal-flip: -1; --seal-at: 72% 55%; }
/* neighbouring shelves start on a different brush, so two rails of the same series don't match */
.section:nth-of-type(3n+2) :is(.rail__track, .grid) > :nth-child(4n+1) .seal { --seal-mark: var(--brush-wipe); --seal-tilt: 7deg; --seal-flip: -1; --seal-at: 12% 70%; }
.section:nth-of-type(3n+2) :is(.rail__track, .grid) > :nth-child(4n+2) .seal { --seal-mark: var(--brush-stroke); --seal-tilt: -9deg; --seal-flip: 1; --seal-at: 78% 15%; }
.section:nth-of-type(3n+2) :is(.rail__track, .grid) > :nth-child(4n+3) .seal { --seal-mark: var(--brush-swash); --seal-tilt: 2deg; --seal-flip: 1; --seal-at: 55% 80%; }
.section:nth-of-type(3n+2) :is(.rail__track, .grid) > :nth-child(4n+4) .seal { --seal-mark: var(--brush-wipe); --seal-tilt: -4deg; --seal-flip: 1; --seal-at: 28% 45%; }
.section:nth-of-type(3n+3) :is(.rail__track, .grid) > :nth-child(4n+1) .seal { --seal-mark: var(--brush-swash); --seal-tilt: -3deg; --seal-flip: 1; --seal-at: 64% 22%; }
.section:nth-of-type(3n+3) :is(.rail__track, .grid) > :nth-child(4n+2) .seal { --seal-mark: var(--brush-wipe); --seal-tilt: 5deg; --seal-flip: -1; --seal-at: 8% 50%; }
.section:nth-of-type(3n+3) :is(.rail__track, .grid) > :nth-child(4n+3) .seal { --seal-mark: var(--brush-stroke); --seal-tilt: -13deg; --seal-flip: -1; --seal-at: 90% 35%; }
.section:nth-of-type(3n+3) :is(.rail__track, .grid) > :nth-child(4n+4) .seal { --seal-mark: var(--brush-swash); --seal-tilt: 8deg; --seal-flip: 1; --seal-at: 36% 8%; }

/* ---------------------------------------------------------------- ensō score
   The circle is painted around to the score (--v) when it appears. */
@property --v { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.enso {
  --size: 48px;
  position: relative; display: inline-grid; place-items: center; width: var(--size); height: var(--size); flex: none;
  color: var(--accent);
}
.enso::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--brush-enso) center / contain no-repeat, conic-gradient(#000 calc(var(--v) - 6%), transparent var(--v));
  -webkit-mask-composite: source-in;
  mask: var(--brush-enso) center / contain no-repeat, conic-gradient(#000 calc(var(--v) - 6%), transparent var(--v));
  mask-composite: intersect;
  animation: enso-paint 1.6s var(--ease) .25s both;
}
.enso b { position: relative; font: 800 calc(var(--size) * .38)/1 var(--f-ui); font-stretch: 62.5%; color: var(--text); }
@keyframes enso-paint { from { --v: 0%; } }

/* ---------------------------------------------------------------- fields */
.field {
  position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  background: transparent; border-radius: var(--r);
  font-family: var(--f-ui);
}
.field:hover { --frame-c: var(--text-2); }
.field:focus-within { --frame-c: var(--text); }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: var(--fs-base); }
.field input::placeholder { color: var(--muted); }
.field input::-webkit-search-cancel-button { display: none; }
.field .ico { width: 18px; height: 18px; color: var(--muted); }
/* <span class="select-wrap"><select class="select">…</select>{icon chevronDown}</span> */
.select-wrap { position: relative; display: inline-flex; }
.select-wrap:hover { --frame-c: var(--text-2); }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--muted); pointer-events: none; }
select.select {
  appearance: none; height: 46px; padding: 0 40px 0 16px; border-radius: var(--r); border: 0; background: transparent;
  cursor: pointer; font: 600 var(--fs-sm)/1 var(--f-ui);
}
select.select option { background: var(--surface); color: var(--text); }

/* segmented: the chosen option is filled with ink */
/* segmented: the chosen option gets a stroke of ink painted under it */
.segmented { position: relative; display: inline-flex; padding: 3px 5px; gap: 2px; border-radius: var(--r); }
.segmented button {
  position: relative; isolation: isolate; height: 38px; padding: 0 14px; border-radius: 2px;
  font: 650 var(--fs-sm)/1 var(--f-ui); color: var(--muted);
  transition: color var(--t-fast) .05s;
}
.segmented button::before { inset: 1px -3px 0 -2px; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { color: var(--on-text); }

/* range: a dry-brush track that fills with ink; the input on top is see-through.
   Wrap it: <span class="range" data-range-wrap><input type="range"></span> (paintRange sets --pct). */
.range { position: relative; display: block; height: 28px; --pct: 50%; color: var(--text); }
.range::before, .range::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; pointer-events: none;
  background: currentColor;
  -webkit-mask: var(--brush-rule) 0 0 / 100% 100% no-repeat; mask: var(--brush-rule) 0 0 / 100% 100% no-repeat;
}
.range::before { opacity: .22; }
.range::after {
  -webkit-mask: var(--brush-rule) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 var(--pct), transparent var(--pct)) 0 0 / 100% 100% no-repeat;
  -webkit-mask-composite: source-in;
  mask: var(--brush-rule) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 var(--pct), transparent var(--pct)) 0 0 / 100% 100% no-repeat;
  mask-composite: intersect;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer; position: relative; z-index: 1;
}
input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; }
input[type="range"]::-moz-range-track { height: 28px; background: transparent; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: 6px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 4px var(--bg); transition: transform var(--t-fast) var(--ease);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--bg); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]:focus-visible { outline-offset: 2px; }

/* ---------------------------------------------------------------- skeleton */
.sk { position: relative; overflow: hidden; background: var(--hover); border-radius: var(--r); }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, var(--hover) 50%, transparent 70%);
  animation: sk 1.8s var(--ease-in-out) infinite;
}
@keyframes sk { to { transform: translateX(100%); } }

/* ---------------------------------------------------------------- misc */
.kbd {
  position: relative; display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px;
  border-radius: 2px;
  font: 600 10.5px/1 var(--f-mono); color: var(--muted); letter-spacing: .02em;
}

/* the loader: a drop of ink falls and spreads, again and again */
.ink-loader { position: relative; display: block; width: 72px; height: 72px; color: var(--text); }
.ink-loader::before, .ink-loader::after { content: ""; position: absolute; left: 50%; background: currentColor; }
.ink-loader::before {
  top: 2px; width: 15px; height: 26px; margin-left: -7.5px;
  -webkit-mask: url(/assets/brand/mark.png) center / contain no-repeat; mask: url(/assets/brand/mark.png) center / contain no-repeat;
  animation: drop-fall 1.5s var(--ease-in-out) infinite;
}
.ink-loader::after {
  bottom: 0; width: 64px; height: 64px; margin-left: -32px; opacity: 0;
  -webkit-mask: var(--brush-splat) center / contain no-repeat; mask: var(--brush-splat) center / contain no-repeat;
  animation: drop-splash 1.5s var(--ease) infinite;
}
@keyframes drop-fall {
  0% { transform: translateY(-14px); opacity: 0; }
  12% { opacity: 1; }
  40% { transform: translateY(24px); opacity: 1; }
  44%, 100% { transform: translateY(26px) scaleY(.2); opacity: 0; }
}
@keyframes drop-splash {
  0%, 40% { transform: scale(.08) rotate(0deg); opacity: 0; }
  44% { opacity: .9; }
  82% { transform: scale(1) rotate(8deg); opacity: .9; }
  100% { transform: scale(1.04) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .ink-loader::before { animation: none; opacity: .6; transform: translateY(18px); }
  .ink-loader::after { animation: none; }
}

/* Image-copy deterrents: no drag-out, no iOS long-press "Save image", nothing on paper. */
img, picture, canvas { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media print { body { display: none !important; } }
