/* Memories of the Fallen.
 * .mem-*  one memory, full screen (layouts/memories)
 * .mof-*  the hall at /memories, inside the site's normal layout
 * The memory is deliberately dark only: it is a scene, not a document. */

:root {
  --mem-void: #07070b;
  --mem-ink: #e9e4d8;
  --mem-ink-dim: #9a968e;
  --mem-stone: #1b1a20;
  --mem-stone-edge: #3a3842;
  --mem-ember: #e8b75a;
  --mem-line: #ffffff;
  --mem-display: "Cinzel", "Marcellus SC", "Trajan Pro", Georgia, serif;
  --mem-prose: "IM Fell English", "Iowan Old Style", Georgia, serif;
}

/* ---------- Full-screen memory ---------- */

html:has(body.mem-body), body.mem-body { height: 100%; }
body.mem-body {
  margin: 0;
  background: var(--mem-void);
  color: var(--mem-ink);
  font-family: var(--mem-prose);
  color-scheme: dark;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}
.mem-fog { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.mem-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; }
.mem-flash.go { animation: mem-flash 1.6s ease-out; }
@keyframes mem-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.mem-app {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 12px;
  box-sizing: border-box;
}
.mem-veil { transition: opacity 1.2s ease; }
.mem-app.is-dark .mem-veil { opacity: 0; }

.mem-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 3; }
.mem-top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mem-back {
  font-family: var(--mem-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mem-ink-dim); text-decoration: none;
}
.mem-back::before { content: "\2039  "; }
.mem-back:hover { color: var(--mem-ink); }
.mem-chip {
  font-family: var(--mem-display); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mem-ink-dim); border: 1px solid var(--mem-stone-edge); padding: 4px 8px; border-radius: 2px;
}
.mem-chip.is-public { color: var(--mem-ember); border-color: color-mix(in srgb, var(--mem-ember) 50%, transparent); }

.mem-eyebrow {
  text-align: center; margin-top: 10px;
  font-family: var(--mem-display); font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--mem-line); opacity: 0.7; min-height: 1.4em;
}
.mem-app.is-dark .mem-eyebrow { opacity: 0; }

.mem-lines {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 0.9em; text-align: center; min-height: 0; overflow: hidden;
}
.mem-line {
  max-width: 30ch;
  font-size: clamp(1.25rem, 3.4vw, 2.15rem);
  line-height: 1.3;
  color: var(--mem-line);
  text-shadow: 0 0 22px color-mix(in srgb, var(--mem-line) 45%, transparent);
  text-wrap: balance;
  animation: mem-line-in 1.6s ease-out both;
  transition: opacity 1s ease, font-size 1s ease;
}
.mem-line.is-quote { font-style: italic; max-width: 40ch; font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
.mem-quote-text::before { content: "\201C"; }
.mem-quote-text::after { content: "\201D"; }
.mem-quote-by {
  display: block; margin-top: 0.5em; font-style: normal;
  font-family: var(--mem-display); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7;
}
.mem-line.is-past { opacity: 0.32; font-size: clamp(1rem, 2.2vw, 1.3rem); text-shadow: none; }
.mem-line.is-gone { display: none; }
.mem-num { font-variant-numeric: tabular-nums; display: inline-grid; justify-items: end; }
.mem-num > span { grid-area: 1 / 1; }
.mem-num .mem-ghost { visibility: hidden; }
@keyframes mem-line-in {
  from { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.mem-echoes {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(14px, 4vw, 40px); min-height: 132px; padding-block: 8px 18px;
}
.mem-echo { display: grid; justify-items: center; gap: 8px; width: 112px; text-align: center; animation: mem-echo-in 2s ease-out both; }
.mem-medal {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-family: var(--mem-display); font-size: 1.9rem;
  --glow: var(--mem-ink-dim);
  color: var(--glow);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--glow) 30%, var(--mem-void)) 0%, var(--mem-void) 70%);
  border: 1px solid color-mix(in srgb, var(--glow) 60%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--glow) 40%, transparent);
  transition: transform 1.4s ease, opacity 1.4s ease, box-shadow 0.6s ease, filter 1s ease;
}
.mem-medal-lg { width: 96px; height: 96px; font-size: 2.4rem; }
.mem-echo-cap b { display: block; font-weight: 400; font-size: 0.98rem; color: var(--mem-ink); line-height: 1.2; }
.mem-echo-cap small {
  display: block; margin-top: 3px;
  font-family: var(--mem-display); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mem-ink-dim);
}
@keyframes mem-echo-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Echo styles mirror DEATH_MEMORY__ECHO_STYLE_* in cs_deathmemory */
.mem-echo[data-style="slain"] .mem-medal { transform: rotate(90deg); opacity: 0.55; }
.mem-echo[data-style="hunted"] .mem-medal { opacity: 0.6; filter: grayscale(0.4); }
.mem-echo[data-style="foe"] .mem-medal { animation: mem-taunt 2.4s ease-in-out infinite; }
.mem-echo[data-style="foe"] .mem-medal::after {
  content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--mem-ink);
  transform: rotate(-35deg) scaleX(0); transition: transform 0.7s ease-out;
}
.mem-echo[data-style="foe"].is-fallen .mem-medal { animation: none; opacity: 0.45; filter: grayscale(0.8); box-shadow: none; }
.mem-echo[data-style="foe"].is-fallen .mem-medal::after { transform: rotate(-35deg) scaleX(1); }
.mem-echo[data-style="foe"].is-fallen .mem-echo-cap small::after { content: " \00B7  Slain"; }
.mem-echo.is-saluting .mem-medal { transform: translateY(-8px); box-shadow: 0 0 46px var(--glow); }
.mem-echo[data-style="killer"] { animation: mem-rise 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mem-taunt { 0%, 100% { transform: none; } 50% { transform: translateY(-5px) scale(1.04); } }
@keyframes mem-rise { from { opacity: 0; transform: translateY(40px) scale(0.8); } to { opacity: 1; transform: none; } }

/* The life track under Threshold: one dot per level gained */
.mem-life { width: min(36rem, 100%); align-self: center; padding-top: 18px; animation: mem-echo-in 2s ease-out both; }
.mem-life-bar { position: relative; height: 2px; background: color-mix(in srgb, var(--mem-line) 30%, transparent); }
.mem-life-dot {
  position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mem-line); transform: translate(-50%, -50%);
  animation: mem-echo-in 0.8s ease-out both;
}
.mem-life-dot.is-end { background: #c94a43; width: 9px; height: 9px; }
.mem-life-labels {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: var(--mem-display); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mem-ink-dim);
}

.mem-app.is-shaking .mem-lines, .mem-app.is-shaking .mem-echoes { animation: mem-shake 0.5s linear; }
@keyframes mem-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }

/* Player bar */
.mem-bar { display: grid; gap: 10px; padding-top: 6px; }
.mem-app.is-ended .mem-bar { visibility: hidden; }
.mem-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.mem-seg {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 6px 0 0;
  display: grid; gap: 6px; color: var(--mem-ink-dim); text-align: left;
  font-family: var(--mem-display); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.mem-seg i { display: block; height: 2px; background: var(--mem-stone-edge); border-radius: 1px; overflow: hidden; }
.mem-seg i::after { content: ""; display: block; height: 100%; width: var(--fill, 0%); background: var(--seg-color, var(--mem-ink)); }
.mem-seg.is-on { color: var(--mem-ink); }
.mem-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.mem-controls form { margin: 0; }
.mem-btn {
  appearance: none; cursor: pointer; text-decoration: none; display: inline-block;
  background: color-mix(in srgb, var(--mem-stone) 80%, transparent); color: var(--mem-ink);
  border: 1px solid var(--mem-stone-edge); border-radius: 2px; padding: 8px 14px;
  font-family: var(--mem-display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.mem-btn:hover { border-color: var(--mem-ink-dim); color: var(--mem-ink); }
.mem-btn-primary { border-color: color-mix(in srgb, var(--mem-ember) 70%, transparent); color: var(--mem-ember); }
.mem-btn.is-static { cursor: default; color: var(--mem-ember); border-color: transparent; background: none; }
.mem-link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--mem-ink-dim); font: inherit; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px;
}
.mem-link:hover { color: var(--mem-ink); }
.mem-btn:focus-visible, .mem-seg:focus-visible, .mem-link:focus-visible, .mem-back:focus-visible { outline: 1px solid var(--mem-ember); outline-offset: 3px; }

/* Intro and gravestone cards */
.mem-card {
  position: fixed; inset: 0; z-index: 2;
  display: grid; place-items: center; overflow-y: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 64px 32px; box-sizing: border-box; text-align: center;
}
.mem-card[hidden] { display: none; }
.mem-card-inner { display: grid; gap: 14px; justify-items: center; max-width: 34rem; }
.mem-kicker { margin: 0; font-family: var(--mem-display); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mem-ink-dim); }
.mem-name { margin: 0; font-family: var(--mem-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; letter-spacing: 0.04em; text-wrap: balance; color: var(--mem-ink); }
.mem-facts { margin: 0; font-style: italic; font-size: 1.1rem; color: var(--mem-ink-dim); }
.mem-note { margin: 6px 0 0; font-size: 0.95rem; color: var(--mem-ink-dim); max-width: 46ch; line-height: 1.5; }
.mem-flash-msg { margin: 0; color: var(--mem-ember); font-size: 0.95rem; }
.mem-portrait { width: 128px; height: 200px; object-fit: cover; border: 1px solid var(--mem-stone-edge); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.mem-portrait.is-faded { filter: grayscale(1) brightness(0.8); width: 96px; height: 150px; }
.mem-missing { background: var(--mem-void); }

.mem-end-col { display: grid; gap: 28px; justify-items: center; width: min(30rem, 100%); }
.mem-stone {
  background: linear-gradient(var(--mem-stone), color-mix(in srgb, var(--mem-stone) 70%, var(--mem-void)));
  border: 1px solid var(--mem-stone-edge);
  border-radius: 999px 999px 4px 4px / 220px 220px 4px 4px;
  padding: 56px 32px 28px; width: 100%; box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: mem-echo-in 2.2s ease-out both;
}
.mem-stone .mem-name { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.mem-epitaph { margin: 4px 0; font-size: 1.2rem; font-style: italic; line-height: 1.4; }
.mem-rule { width: 60px; height: 1px; background: var(--mem-stone-edge); }
.mem-candles { font-family: var(--mem-display); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mem-ember); }

.mem-tributes { width: 100%; display: grid; gap: 12px; text-align: left; }
.mem-tributes .mem-kicker { text-align: center; }
.mem-tribute { background: color-mix(in srgb, var(--mem-stone) 85%, transparent); border-left: 2px solid var(--mem-stone-edge); padding: 10px 14px; }
.mem-tribute p { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.45; }
.mem-tribute footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--mem-ink-dim); }
.mem-tribute footer form { margin: 0; }
.mem-tribute-form { display: grid; gap: 8px; }
.mem-tribute-form label { font-size: 0.95rem; color: var(--mem-ink-dim); }
.mem-tribute-form button { justify-self: start; }
.mem-tribute-form textarea, .mem-field input[type="text"], .mem-field select {
  width: 100%; box-sizing: border-box; padding: 8px 10px;
  background: var(--mem-void); color: var(--mem-ink); border: 1px solid var(--mem-stone-edge); border-radius: 2px;
  font: inherit; font-size: 1rem;
}
.mem-tribute-form textarea:focus, .mem-field input:focus, .mem-field select:focus { outline: 1px solid var(--mem-ember); outline-offset: 1px; }

/* Owner settings drawer */
.mem-drawer { position: fixed; inset: 0; z-index: 5; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: flex-end; }
.mem-drawer[hidden] { display: none; }
.mem-drawer-panel {
  width: min(28rem, 100%); height: 100%; overflow-y: auto; box-sizing: border-box;
  background: var(--mem-stone); border-left: 1px solid var(--mem-stone-edge);
  padding: 20px max(20px, env(safe-area-inset-right, 0px)) 28px 20px;
  display: grid; align-content: start; gap: 20px;
}
.mem-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mem-drawer-head h2 { margin: 0; font-family: var(--mem-display); font-weight: 400; font-size: 1.3rem; letter-spacing: 0.06em; }
.mem-field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.mem-field legend, .mem-field > label:not(.mem-check) {
  padding: 0; margin-bottom: 4px;
  font-family: var(--mem-display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mem-ink-dim);
}
.mem-check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.mem-check input { margin-top: 4px; accent-color: var(--mem-ember); }
.mem-check input:disabled + span { opacity: 0.5; }
.mem-hint { margin: 0; font-size: 0.9rem; color: var(--mem-ink-dim); line-height: 1.45; }

@media (max-width: 560px) {
  .mem-seg span { display: none; }
  .mem-echo { width: 92px; }
  .mem-medal { width: 60px; height: 60px; font-size: 1.5rem; }
  .mem-echoes { min-height: 116px; }
  .mem-card { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .mem-line, .mem-echo, .mem-stone, .mem-life, .mem-life-dot { animation: none; }
  .mem-echo[data-style="foe"] .mem-medal { animation: none; }
  .mem-app.is-shaking .mem-lines, .mem-app.is-shaking .mem-echoes { animation: none; }
}

.mem-datacheck { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 4;
                 max-width: min(420px, calc(100vw - 24px)); background: var(--mem-stone); border: 1px solid var(--mem-stone-edge); border-radius: 4px; padding: 6px 12px; font-size: 0.9rem; }
.mem-datacheck summary { cursor: pointer; color: var(--mem-ink-dim); font-family: var(--mem-display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; }
.mem-datacheck table { margin: 10px 0; border-collapse: collapse; width: 100%; }
.mem-datacheck th { text-align: left; font-weight: 400; color: var(--mem-ink-dim); padding: 3px 12px 3px 0; }
.mem-datacheck td { text-align: right; font-variant-numeric: tabular-nums; }
.mem-datacheck form { margin: 0 0 6px; }

/* ---------- The hall ---------- */

.mof { --mof-gold: #e8b75a; --mof-line: rgba(255, 255, 255, 0.09); --mof-soft: rgba(255, 255, 255, 0.035); --mof-muted: rgba(255, 255, 255, 0.6); }
.mof [hidden] { display: none !important; }
.mof-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.mof-head-text { max-width: 46rem; min-width: 0; }
.mof-sub { font-size: 1.1rem; line-height: 1.55; opacity: 0.85; }
.mof-sub-small { font-size: 0.95rem; opacity: 0.65; }

/* "Your fallen": closed until asked for */
.mof-yours-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px; cursor: pointer;
  background: var(--mof-soft); color: inherit; border: 1px solid var(--mof-line); border-radius: 999px; font-size: 0.95rem;
}
.mof-yours-toggle:hover, .mof-yours-toggle[aria-expanded="true"] { border-color: rgba(232, 183, 90, 0.55); }
.mof-yours-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.mof-yours-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.mof-yours-toggle-count { font-size: 0.8rem; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.mof-yours-toggle-ready { font-size: 0.8rem; color: var(--mof-gold); }
.mof-yours { margin-top: 18px; padding: 16px; background: var(--mof-soft); border: 1px solid var(--mof-line); border-radius: 6px; }
.mof-yours-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mof-yours-head p { margin: 0; font-size: 0.92rem; opacity: 0.7; }
.mof-yours-filter, .mof-search, .mof-sort select {
  background: rgba(0, 0, 0, 0.35); color: inherit; border: 1px solid var(--mof-line); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: 0.92rem;
}
.mof-yours-filter { width: 220px; max-width: 100%; }
.mof-yours-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.mof-yours-item { display: grid; gap: 2px; padding: 9px 12px; color: inherit; text-decoration: none; border: 1px solid var(--mof-line); border-radius: 4px; background: rgba(0, 0, 0, 0.2); }
.mof-yours-item:hover, .mof-yours-item:focus-visible { border-color: rgba(232, 183, 90, 0.55); color: inherit; text-decoration: none; }
.mof-yours-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mof-yours-line { font-size: 0.82rem; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mof-state { justify-self: start; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.04em; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--mof-muted); }
.mof-state.is-public { background: rgba(111, 207, 151, 0.14); color: #8fdcae; }
.mof-state.is-ready { background: rgba(232, 183, 90, 0.16); color: var(--mof-gold); }

/* Search and sort */
.mof-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 28px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mof-line); }
.mof-search { flex: 1 1 240px; max-width: 340px; min-width: 0; }
.mof-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: 0.92rem; opacity: 0.85; }
.mof-count { margin-left: auto; font-size: 0.9rem; opacity: 0.6; }

/* Shared memories: equal cards, date and candles pinned to the foot */
.mof-empty { margin-top: 24px; padding: 28px; text-align: center; border: 1px dashed rgba(255, 255, 255, 0.15); opacity: 0.85; }
.mof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.mof-grid > li { display: flex; }
.mof-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 16px 14px; color: inherit; text-decoration: none;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--mof-line); border-radius: 110px 110px 4px 4px / 56px 56px 4px 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mof-card:hover, .mof-card:focus-visible { border-color: rgba(232, 183, 90, 0.6); transform: translateY(-2px); color: inherit; text-decoration: none; }
.mof-face { position: relative; width: 64px; height: 64px; margin-bottom: 8px; }
.mof-medal {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mem-display); font-size: 1.6rem; color: var(--mof-gold);
  border: 1px solid rgba(232, 183, 90, 0.45); background: radial-gradient(circle, rgba(232, 183, 90, 0.18), transparent 70%);
}
.mof-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; filter: grayscale(0.6); border: 1px solid rgba(232, 183, 90, 0.45); }
.mof-name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.mof-line { font-size: 0.88rem; opacity: 0.7; }
.mof-epitaph { margin-top: 6px; font-style: italic; font-size: 0.92rem; line-height: 1.4; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mof-meta { margin-top: auto; padding-top: 12px; width: 100%; display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; opacity: 0.6; border-top: 1px solid var(--mof-line); }
.mof-candles { color: var(--mof-gold); }
.mof-pages { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
@media (max-width: 575px) {
  .mof-count { margin-left: 0; }
}
