/* Dark Memory · Wiki — one shell for every page: fonts, tokens, header, footer and the shared pieces.
   The frames are the game's own painted UI (tools/site_art.py); each page adds only css/<page>.css. */

@font-face { font-family: "IM Fell English SC"; src: url("../fonts/im-fell-english-sc-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/im-fell-english-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0b0908;         /* the game's warm black (DMType.Ink): the page */
  --bg: #17150f;            /* soot: wells, tables */
  --bg-deep: #100e0a;
  --panel: #1f1c15;         /* worn leather: panels */
  --panel-2: #262219;
  --line: #3a3528;
  --line-2: #5a4f3c;
  --ink: #ece4d2;           /* parchment: what is read */
  --ink-2: #b9ae95;
  --ink-3: #8f846d;
  --gold: #d7b46a;
  --gold-2: #b8954f;
  --gold-hi: #f0d499;       /* names, numbers */
  --gold-soft: rgba(215, 180, 106, .12);
  --gold-line: rgba(215, 180, 106, .38);
  --blood: #8c2624;
  --blood-edge: #c0533f;
  --ember: #d0602f;
  --f-display: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --f-fell: "IM Fell English", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 2px;
  --header-h: 0px;          /* the header scrolls away: sticky panels start at the top */
  --plate: 72px;            /* height of the title plate */
  --pad: clamp(14px, 2.4vw, 32px);
  --art: url("../assets/site/backdrop-1600.webp");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #5b4a30 var(--bg-deep); }
body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--night); color: var(--ink-2); font: 400 16px/1.55 var(--f-body); }
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; letter-spacing: .03em; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 1em; }
code, kbd, samp { font-family: var(--f-data); font-size: .88em; }
strong, b { color: var(--ink); font-weight: 500; }
::selection { background: #6b4a22; color: #fff8ea; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--gold); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.label, .eyebrow { margin: 0; font: 500 13px/1.3 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.label b, .eyebrow b { color: var(--gold-hi); font-weight: 500; }
.note { font: 400 13px/1.55 var(--f-data); color: var(--ink-3); padding-left: 14px; border-left: 1px solid var(--gold-line); }
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
button, .btn {
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; font: 500 15px/1.2 var(--f-body); color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, #2a2119, #15110d); border: 1px solid rgba(204, 171, 115, .34); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, .07), 0 2px 6px rgba(0, 0, 0, .35);
  transition: color .15s, border-color .15s, box-shadow .15s, background .15s;
}
button:hover:not(:disabled), .btn:hover { color: var(--gold-hi); border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 220, 150, .1), 0 0 16px rgba(255, 150, 60, .16); }
button:disabled { cursor: not-allowed; opacity: .4; }
.btn-small { padding: 7px 14px; font-size: 14.5px; }
.primary, .btn-primary { color: #1b130a; font-weight: 700; text-shadow: 0 1px 0 rgba(255, 232, 186, .45); background: linear-gradient(180deg, #e2bb72, #9a6c2e 55%, #c49550); border-color: #f0cf8c; }
.primary:hover:not(:disabled), .btn-primary:hover { color: #120c06; background: linear-gradient(180deg, #f0cc86, #ab7a36 55%, #d4a55c); }
.subtle, .quiet { background: transparent; box-shadow: none; }
.quiet { border-color: transparent; color: var(--ink-3); }
.icon-button { padding: 2px 10px; font: 400 26px/1 var(--f-body); background: none; border: 0; box-shadow: none; color: var(--gold); }
input, select, textarea { min-width: 0; padding: 8px 10px; font: inherit; font-size: 15px; color: var(--ink); background: #0e0b09; border: 1px solid rgba(204, 171, 115, .26); border-radius: var(--radius); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240, 212, 153, .25); }
select option { background: #15110d; }
input[type=checkbox], input[type=range] { accent-color: var(--gold); }
kbd { padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); font-size: 12px; }

/* tabs and chips under a heading (page views, sections, modes, filters) */
.page-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; margin: 0 auto 30px; }
.page-tabs > a, .page-tabs > button, .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; font: 400 18px/1 var(--f-display); letter-spacing: .05em; color: var(--ink-2);
  background: linear-gradient(180deg, rgba(30, 24, 18, .85), rgba(12, 10, 8, .9)); border: 1px solid rgba(204, 171, 115, .3); border-radius: var(--radius); box-shadow: none;
}
.page-tabs > a:hover, .page-tabs > button:hover:not(:disabled), .chip:hover { color: var(--gold-hi); border-color: var(--gold); }
.page-tabs > .active, .page-tabs > [aria-current="true"], .page-tabs > [aria-selected="true"], .page-tabs > [aria-pressed="true"], .chip.is-active {
  color: var(--gold-hi); border-color: var(--gold); background: radial-gradient(120% 140% at 50% 120%, rgba(255, 150, 60, .28), transparent 60%), linear-gradient(180deg, #2c2219, #120e0b);
}
.page-tabs .count { margin-left: 6px; font: 500 13px var(--f-data); color: var(--ink-3); }

/* ---------- backdrop: the page's painting, darkened into the night ---------- */
.site-backdrop {
  position: absolute; inset: 0 0 auto; z-index: -1; height: min(1150px, 125vh); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 9, 8, .25), rgba(11, 9, 8, .1) 18%, rgba(11, 9, 8, .62) 52%, var(--night) 96%),
    radial-gradient(70% 55% at 50% 0%, rgba(160, 52, 30, .34), transparent 72%),
    linear-gradient(rgba(11, 9, 8, var(--veil, 0)), rgba(11, 9, 8, var(--veil, 0))),
    var(--art) center 30% / cover no-repeat;
}
/* game captures are busier than the paintings: a veil keeps the title readable */
.page-simulator, .page-bases, .page-lamentos { --veil: .5; }
@media (min-width: 1500px), (min-resolution: 1.5dppx) {
  .page-index, .page-ranking { --art: url("../assets/site/backdrop-2560.webp"); }
}

/* ---------- header ---------- */
.site-util { background: rgba(6, 5, 4, .86); border-bottom: 1px solid rgba(204, 171, 115, .14); font-size: 14px; color: var(--ink-3); }
.site-util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.site-util nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.site-util a { color: var(--ink-2); }
.site-util a:hover { color: var(--gold-hi); }
.site-util .util-cta { color: var(--gold-hi); }

.site-nav {
  position: relative; display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; align-items: center;
  width: min(1480px, 100%); height: 64px; margin: 34px auto 30px;
}
/* the bar is its own layer: its side fade must not clip the logo, which stands in front of it */
.site-nav::before {
  content: ""; position: absolute; inset: -5px 0; pointer-events: none;
  background: url("../assets/site/fillet.webp") center top / 100% 10px no-repeat, url("../assets/site/fillet.webp") center bottom / 100% 10px no-repeat,
              linear-gradient(180deg, rgba(10, 8, 6, .55), rgba(10, 8, 6, .82)) center / 100% calc(100% - 10px) no-repeat,
              url("../assets/site/bar-tile.webp") center / auto calc(100% - 10px) repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.site-nav ul { position: relative; display: flex; align-items: center; gap: clamp(18px, 3vw, 52px); margin: 0; padding: 0 clamp(16px, 2vw, 36px); list-style: none; }
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.site-nav ul a {
  position: relative; display: block; padding: 8px 2px; white-space: nowrap;
  font: 400 clamp(17px, 1.45vw, 21px)/1 var(--f-display); letter-spacing: .05em; color: #e3d6bb;
  text-shadow: 0 1px 1px #000, 0 0 12px rgba(0, 0, 0, .95);
}
.site-nav ul a:hover { color: var(--gold-hi); text-shadow: 0 1px 1px #000, 0 0 14px rgba(255, 170, 80, .5); }
.site-nav ul a[aria-current="page"] { color: var(--gold-hi); }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: -14%; right: -14%; bottom: -12px; height: 14px; background: radial-gradient(closest-side, rgba(255, 160, 70, .55), transparent); }
.site-logo { position: relative; z-index: 2; display: block; width: 100%; margin: -36px auto; }
.site-logo::before { content: ""; position: absolute; inset: -6% -16%; z-index: -1; background: radial-gradient(closest-side, rgba(8, 6, 5, .95), rgba(8, 6, 5, .72) 55%, transparent); }
/* the game's logo v2 in three layers (scripts/logo_web.py): iron, embers that breathe, a light over the bevels */
.logo { position: relative; display: block; transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s; }
.logo img { display: block; width: 100%; height: auto; }
.logo-iron { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .8)); }
.logo-embers { position: absolute; inset: 0; opacity: .45; pointer-events: none; transition: opacity .45s; }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 238, 210, .95) 50%, transparent 60%) 100% 0 / 250% 100% no-repeat;
  -webkit-mask: url("../assets/site/logo-shine.webp") center / 100% 100% no-repeat;
  mask: url("../assets/site/logo-shine.webp") center / 100% 100% no-repeat;
}
/* a glint on the M's crown as the light crosses it */
.logo::after { content: ""; position: absolute; left: 50%; top: 1%; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 248, 232, .95), rgba(255, 180, 110, .45) 40%, transparent),
              linear-gradient(90deg, transparent 46%, rgba(255, 240, 215, .8) 50%, transparent 54%),
              linear-gradient(0deg, transparent 46%, rgba(255, 240, 215, .8) 50%, transparent 54%); }
.site-logo:hover .logo, .site-logo:focus-visible .logo { transform: scale(1.06) translateY(-1px); filter: drop-shadow(0 0 16px rgba(255, 70, 40, .32)); }
.site-logo:hover .logo-embers, .site-logo:focus-visible .logo-embers { opacity: .95; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .logo-embers { animation: logo-breath 4.8s ease-in-out infinite alternate; }
  html:not(.reduce-motion) .logo-shine { animation: logo-shine 9s 1.5s cubic-bezier(.45, .05, .35, 1) infinite; }
  html:not(.reduce-motion) .logo::after { animation: logo-glint 9s 1.5s infinite; }
  html:not(.reduce-motion) .site-logo:hover .logo-embers { animation: none; }
  html:not(.reduce-motion) .site-logo:hover .logo-shine { animation: logo-shine-now 1.1s cubic-bezier(.45, .05, .35, 1) both; }
  html:not(.reduce-motion) .site-logo:hover .logo::after { animation: logo-glint-now 1.1s both; }
}
@keyframes logo-breath { from { opacity: .3; } to { opacity: .62; } }
@keyframes logo-shine { 0% { background-position: 100% 0; } 15%, 100% { background-position: 0% 0; } }
@keyframes logo-shine-now { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes logo-glint { 0%, 6% { opacity: 0; transform: scale(.3) rotate(0deg); } 8.5% { opacity: 1; transform: scale(1) rotate(45deg); } 12%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes logo-glint-now { 0%, 40% { opacity: 0; transform: scale(.3) rotate(0deg); } 56% { opacity: 1; transform: scale(1) rotate(45deg); } 80%, 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }

/* ---------- page heading ---------- */
.site-main { flex: 1; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }
.page-head { max-width: 920px; margin: 0 auto; padding: 26px 0 34px; text-align: center; }
.page-head .label { margin-bottom: 10px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; color: var(--gold-hi); text-shadow: 0 2px 2px #000, 0 0 30px rgba(0, 0, 0, .9), 0 0 60px rgba(255, 140, 60, .12); }
.page-head h1::after {
  content: ""; display: block; width: min(420px, 80%); height: 18px; margin: 16px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1l7 7-7 7-7-7z' fill='%23d9b56f' stroke='%23f0d499' stroke-width='.8'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
              url("../assets/site/fillet.webp") center / 100% 8px no-repeat;
}
.lead { max-width: 68ch; margin: 16px auto 0; font-size: 18px; color: var(--ink); text-shadow: 0 1px 2px #000; }
.lead a { border-bottom: 1px solid var(--gold-line); }
.page-head .note { display: inline-block; max-width: 62ch; margin-top: 18px; text-align: left; }

.metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; margin: 22px 0 0; }
.metric { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.metric strong { font: 500 26px/1.1 var(--f-data); color: var(--gold-hi); }
.metric span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- slab: a framed panel; plate-title: the game's lantern plate with rails to the panel's edges ---------- */
.slab {
  position: relative; margin: 0 0 44px; padding: 0 var(--pad) var(--pad);
  background: linear-gradient(180deg, rgba(20, 16, 12, .93), rgba(11, 9, 7, .95)), url("../assets/site/bar-tile.webp") center / 618px auto;
  border: 1px solid rgba(204, 171, 115, .3);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .85), inset 0 0 0 5px rgba(204, 171, 115, .05), 0 24px 60px rgba(0, 0, 0, .55);
}
.slab:not(:has(> .plate-title)) { padding-top: var(--pad); }
.slab.ornate::before {
  content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 2;
  background: url("../assets/site/corner-tl.webp") left top / 72px no-repeat, url("../assets/site/corner-tr.webp") right top / 72px no-repeat,
              url("../assets/site/corner-bl.webp") left bottom / 72px no-repeat, url("../assets/site/corner-br.webp") right bottom / 72px no-repeat;
}
.plate-title { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--plate); margin: 0 0 22px; }
.slab > .plate-title:first-child { margin: calc(var(--plate) / -2 - 1px) calc(-1 * var(--pad)) 20px; }
.plate-title::before, .plate-title::after { content: ""; height: 100%; }
.plate-title::before { margin-right: -8px; background: url("../assets/site/rail-l.webp") right center / auto 100% no-repeat, url("../assets/site/rail-tile.webp") left center / auto 100% repeat-x; }
.plate-title::after { margin-left: -8px; background: url("../assets/site/rail-r.webp") left center / auto 100% no-repeat, url("../assets/site/rail-tile.webp") right center / auto 100% repeat-x; }
.plate-title > h2 {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%;
  min-width: calc(var(--plate) * 3.9); padding: calc(var(--plate) * .138) calc(var(--plate) * .82) 0 calc(var(--plate) * .82 + .07em);
  font-size: calc(var(--plate) * .32); line-height: 1; letter-spacing: .07em; white-space: nowrap; color: var(--gold-hi);
  text-shadow: 0 2px 2px #000, 0 0 16px rgba(0, 0, 0, .95);
}
/* plate halves: only the plain stone between the lantern and the crest stretches */
.plate-title > h2::before, .plate-title > h2::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; width: 50.5%; border-style: solid; }
.plate-title > h2::before { left: 0; border-width: 0 calc(var(--plate) * .714) 0 calc(var(--plate) * .663); border-image: url("../assets/site/plate-l.webp") 0 140 0 130 fill / 0 calc(var(--plate) * .714) 0 calc(var(--plate) * .663) stretch; }
.plate-title > h2::after { right: 0; border-width: 0 calc(var(--plate) * .663) 0 calc(var(--plate) * .714); border-image: url("../assets/site/plate-r.webp") 0 130 0 140 fill / 0 calc(var(--plate) * .663) 0 calc(var(--plate) * .714) stretch; }
.slab-lead { max-width: 75ch; margin: -4px auto 18px; text-align: center; color: var(--ink-2); }

/* ---------- ledger: the centred table of the ranking and the reference pages ---------- */
.table-wrap, .ledger-wrap { overflow-x: auto; }
.ledger-wrap { border: 1px solid rgba(204, 171, 115, .2); }
.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { padding: 11px 12px; font: 400 15px/1.2 var(--f-display); letter-spacing: .08em; color: var(--gold); text-align: center; white-space: nowrap; background: linear-gradient(180deg, #241c15, #120e0b); border-block: 1px solid rgba(204, 171, 115, .3); }
.ledger td { padding: 11px 12px; text-align: center; vertical-align: middle; color: var(--ink-2); border-bottom: 1px solid rgba(204, 171, 115, .08); }
.ledger tbody tr:nth-child(even) { background: rgba(255, 240, 210, .018); }
.ledger tbody tr:hover { background: rgba(255, 160, 70, .05); }

/* ---------- dialogs ---------- */
dialog { padding: 0; width: min(760px, calc(100% - 32px)); max-height: 90vh; color: var(--ink-2); background: linear-gradient(180deg, #1a1511, #0e0b09); border: 1px solid rgba(204, 171, 115, .55); border-radius: 2px; box-shadow: 0 30px 100px rgba(0, 0, 0, .85); }
dialog::backdrop { background: rgba(5, 4, 3, .82); backdrop-filter: blur(5px); }
dialog h2 { color: var(--gold-hi); }

/* ---------- footer ---------- */
.site-foot { position: relative; margin-top: 40px; padding: 46px var(--gutter) 34px; text-align: center; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.site-foot::before { content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 90%); height: 10px; transform: translateX(-50%); background: url("../assets/site/fillet.webp") center / 100% 100% no-repeat; }
.foot-logo { display: inline-block; width: 190px; opacity: .9; }
.foot-logo img { display: block; width: 100%; height: auto; }
.site-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 18px 0 14px; padding: 0; list-style: none; }
.site-foot ul a { font: 400 18px var(--f-display); color: var(--ink-2); }
.site-foot ul a:hover, .site-foot ul a[aria-current="page"] { color: var(--gold-hi); }
.foot-data { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 12px; font-size: 14px; }
.foot-note { max-width: 70ch; margin: 0 auto 8px; font-size: 14px; color: var(--ink-3); }
.foot-legal { margin: 0; font: 400 12px var(--f-data); color: var(--ink-3); }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .site-util span { display: none; }
  .site-util .wrap { justify-content: center; }
  .site-nav { grid-template-columns: 1fr; height: auto; margin: 22px 0 26px; padding: 0 0 8px; }
  .site-nav::before { -webkit-mask: none; mask: none; }
  .site-logo { order: -1; width: min(270px, 72vw); margin: -20px auto -4px; }
  .site-nav ul { justify-content: center; gap: 4px 22px; padding: 4px 12px; }
  .site-nav ul a { font-size: 17px; padding: 6px 2px; }
  .site-nav ul a[aria-current="page"]::after { bottom: -6px; }
  .page-head { padding-top: 10px; }
}
@media (max-width: 560px) {
  :root { --plate: 60px; }
  .site-nav ul { gap: 2px 16px; }
  .site-nav ul a { font-size: 16px; }
  .lead { font-size: 16px; }
  .page-tabs > a, .page-tabs > button { padding: 9px 13px; font-size: 16px; }
  .slab.ornate::before { inset: -6px; background-size: 48px; }
  .ledger th, .ledger td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
