/* Förrädarna — scenes.
   Every dramatic moment takes over the whole screen. Same rules as everywhere:
   type on the ground, hairlines, circles only for seals. No cards, no panels. */

/* ---------- the takeover ---------- */

.fx {
  --fx-pad: clamp(22px, 6.4vw, 96px);
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  isolation: isolate;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--f-text);
  /* the tints follow this scene's own ground, not the page's */
  --dim: color-mix(in srgb, var(--fg) 58%, var(--ground));
  --faint: color-mix(in srgb, var(--fg) 18%, var(--ground));
  --whisper: color-mix(in srgb, var(--fg) 7%, var(--ground));
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  outline: none;
  transition: background-color 1.1s var(--ease-drama), color 1.1s var(--ease-drama);
}
.fx[data-tone="ink"]     { --ground: var(--ink); --fg: var(--bone); --accent: var(--blood-hot); color-scheme: dark; }
.fx[data-tone="bone"]    { --ground: var(--bone); --fg: var(--ink); --accent: var(--blood); color-scheme: light; }
.fx[data-tone="blood"]   { --ground: var(--blood-black); --fg: color-mix(in srgb, var(--bone) 88%, var(--blood-hot)); --accent: var(--blood-hot); color-scheme: dark; }
.fx[data-tone="ash"]     { --ground: color-mix(in srgb, var(--ink) 88%, var(--ash)); --fg: color-mix(in srgb, var(--bone) 64%, var(--ash)); --accent: var(--bone); color-scheme: dark; }
.fx[data-tone="crimson"] { --ground: var(--blood); --fg: var(--bone); --accent: var(--blood-black); color-scheme: dark; }
/* small type on blood needs more bone than the usual tint to stay readable (≈ 4.3:1) */
.fx[data-tone="crimson"] { --dim: color-mix(in srgb, var(--bone) 85%, var(--blood)); }

/* the day screen shows through until something covers it */
.fx.is-clear { background: transparent; transition: none; }

/* scenes sit above the page grain, so they carry their own */
.fx::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 6;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.fx[data-tone="bone"]::after { opacity: .12; }

/* the page underneath holds still, and its feedback line rises above the scene */
html[data-fx] body { overflow: hidden; }
html[data-fx] #say { z-index: 110; left: var(--pad); background: none; }
html[data-fx="ink"] #say, html[data-fx="blood"] #say { color: var(--blood-hot); }
html[data-fx="bone"] #say { color: var(--blood); }
html[data-fx="ash"] #say, html[data-fx="crimson"] #say { color: var(--bone); }

.fx button:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }

.fx-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- composition ---------- */

/* one column of type on the ground; layers stack by z: ground 0, words 1, shards 2, flashes 3, controls 5 */
.fx-col {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: calc(var(--safe-t) + 64px) var(--fx-pad) calc(var(--safe-b) + 96px);
}
.fx-col.is-top { justify-content: flex-start; }
.fx-col.is-bottom { justify-content: flex-end; }
.fx :is(h1, h2, h3, p, ul, ol) { margin: 0; }

.fx-word {
  font-family: var(--f-ritual);
  font-weight: 800;
  font-size: clamp(92px, 31vw, 260px);
  line-height: .78;
  letter-spacing: -.012em;
  white-space: nowrap;
}
.fx-word > span, .fx-title > span { display: block; }
.fx-word.is-crop { margin-left: -.07em; }

.fx-title {
  font-family: var(--f-ritual);
  font-weight: 700;
  font-size: clamp(50px, 15vw, 112px);
  line-height: .88;
  max-width: 10ch;
  text-wrap: balance;
}
.fx-title.is-long { font-size: clamp(42px, 11.5vw, 88px); max-width: 13ch; }
.fx-title.is-small { font-size: clamp(36px, 10.5vw, 64px); max-width: none; }
.fx-title.is-quiet { color: var(--dim); }

.fx-name {
  font-weight: 700;
  font-size: clamp(56px, 19vw, 180px);
  line-height: .92;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.fx-name.is-gothic { font-family: var(--f-ritual); font-weight: 800; letter-spacing: 0; line-height: .84; }
/* a name in two parts, each line sized to the full width on its own */
.fx-name.is-stacked > span { display: block; }

.fx-line {
  font-size: clamp(21px, 5.9vw, 30px);
  line-height: 1.25;
  letter-spacing: -.015em;
  max-width: 22ch;
  text-wrap: pretty;
}
.fx-line.is-quiet { color: var(--dim); }
.fx-line.is-loud { font-size: clamp(28px, 8.6vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; max-width: 18ch; }

.fx .is-blood { color: var(--accent); }

/* anything that enters by animation waits, invisible but in place, for its entrance */
.fx .fx-in { opacity: 0; }

/* "Tryck för att fortsätta" — only once the information has landed */
.fx-tap {
  position: absolute;
  z-index: 5;
  left: var(--fx-pad);
  bottom: calc(var(--safe-b) + 32px);
  margin: 0;
  pointer-events: none;
  animation: fx-tap-in .9s .35s var(--ease-out) both, fx-breathe 3s 1.6s ease-in-out infinite;
}
@keyframes fx-tap-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fx-breathe { 50% { opacity: .65; } }

/* leaving an interactive scene without choosing */
.fx-later {
  position: absolute;
  z-index: 5;
  top: calc(var(--safe-t) + 8px);
  right: var(--fx-pad);
  min-height: 44px;
  padding: 12px 0;
  color: var(--dim);
}

.fx .band { position: absolute; left: 0; right: 0; max-width: none; z-index: 5; }

/* controls resting on the ground near the thumb */
.fx-foot {
  position: absolute;
  z-index: 5;
  left: var(--fx-pad);
  right: var(--fx-pad);
  bottom: calc(var(--safe-b) + 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.fx-foot.is-above-band { bottom: calc(var(--band-h) + var(--safe-b) + 46px); }

/* a text button you hold: the underline fills in blood */
.fx-hold-text {
  --p: 0;
  min-height: 44px;
  padding: 14px 0 12px;
  font-size: 13px;
  text-decoration: none;
  touch-action: none;
  -webkit-touch-callout: none;
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / calc(var(--p) * 100%) 2px,
    linear-gradient(var(--dim), var(--dim)) no-repeat 0 100% / 100% 1px;
}
.fx-hold-text.is-holding { color: var(--accent); }

/* ---------- the omen gate ---------- */

.fx-gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: calc(var(--safe-t) + 30px) var(--fx-pad) calc(var(--safe-b) + 34px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  row-gap: 22px;
  justify-items: start;
  align-items: center;
  cursor: pointer;
}
.fx-gate:focus-visible { outline: none; }
.fx-gate:focus-visible .fx-gate-seal { border-color: var(--accent); }
.fx-gate-seal {
  position: relative;
  justify-self: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: fx-omen 3.2s ease-in-out infinite;
}
.fx-gate-seal::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: fx-omen-echo 3.2s ease-out infinite;
}
.fx-gate-seal svg { width: 52%; height: 52%; }
.fx-gate-seal.is-broken, .fx-gate-seal.is-broken::after { animation: none; }
.fx-gate-seal.is-broken::after { opacity: 0; }
.fx-gate-omen {
  font-family: var(--f-ritual);
  font-weight: 700;
  font-size: clamp(42px, 12.5vw, 84px);
  line-height: .9;
  max-width: 9ch;
}
.fx-gate-hint { color: var(--fg); }
@keyframes fx-omen { 0%, 100% { transform: scale(.95); opacity: .7; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes fx-omen-echo { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- grounds that move: curtain, dawn, floods, stains, flashes ---------- */

.fx-curtain {
  position: absolute;
  inset: 0 0 -5% 0;
  z-index: 0;
  background: var(--ink);
}
.fx-dawn { position: absolute; inset: 0; z-index: 0; background: var(--bone); }
.fx-sheet { position: absolute; inset: 0; z-index: 0; background: var(--bone); transform-origin: 20% 100%; }
.fx-flood { position: absolute; inset: 0; z-index: 0; }
.fx-flood.is-blood { background: var(--blood); }
.fx-flood.is-bone { background: var(--bone); }
.fx-stain { position: absolute; inset: 0; z-index: 0; background: var(--blood); }
.fx-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx-flash.is-blood { background: var(--blood); }
.fx-flash.is-bone { background: var(--bone); }

/* ---------- roles: the veil ---------- */

.fx-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--ink);
  background-size: 100% 100%;
  /* torn cloth: long horizontal fibres */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='1200' preserveAspectRatio='none'><filter id='f' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.0025 .05' numOctaves='5' seed='3'/><feColorMatrix values='0 0 0 0 .92  0 0 0 0 .9  0 0 0 0 .87  .52 0 0 0 -.21'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}
.fx-veil.is-rim { background-color: var(--ash-deep); }
/* bone on ink for both roles: under the veil only the words differ, never the light */
.fx-reveal { position: absolute; inset: 0; z-index: 1; --ground: var(--ink); --fg: var(--bone); background: var(--ink); color: var(--bone); }
.fx-reveal-col { justify-content: flex-start; padding-top: calc(var(--safe-t) + 19vh); }
.fx-reveal .kicker { color: color-mix(in srgb, var(--fg) 58%, var(--ground)); }
.fx-reveal .fx-line.is-quiet { color: color-mix(in srgb, var(--fg) 62%, var(--ground)); }
.fx-veil-controls {
  z-index: 2;
  justify-content: space-between;
  padding-top: calc(var(--safe-t) + 26px);
  padding-bottom: calc(var(--band-h) + var(--safe-b) + 26px);
  pointer-events: none;
}
.fx-veil-hold { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
.fx-veil-hold .fx-line { font-size: 17px; max-width: 18ch; }
.fx-seal { pointer-events: auto; --size: 124px; flex: none; }
.fx-seal svg { color: var(--accent); }

/* ---------- night ---------- */

.fx-blunda { transform-origin: 50% 55%; }

.fx-eye-holder { display: flex; justify-content: center; margin: 0 calc(var(--fx-pad) * -1) 18px; }
.fx-eye { position: relative; width: min(90vw, 680px); aspect-ratio: 3.4; }
.fx-eye-lid { position: absolute; inset: 0; background: var(--blood-hot); transform-origin: 50% 50%; }
.fx-eye-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.5%;
  height: 94%;
  background: var(--ink);
  clip-path: polygon(50% 0, 72% 22%, 82% 50%, 72% 78%, 50% 100%, 28% 78%, 18% 50%, 28% 22%);
}

/* murdered: the last heartbeats, then the name on two halves of the screen */
.fx-life {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blood-hot);
  transform: translate(-50%, -50%);
}
.fx-half {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 var(--fx-pad);
  background: var(--ink);
  color: var(--bone);
  will-change: transform;
}
.fx-half.is-high { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 62%); }
.fx-half.is-low { clip-path: polygon(0 62%, 100% 40%, 100% 100%, 0 100%); }
.fx-cut { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; fill: var(--blood-hot); pointer-events: none; }
.fx-void { justify-content: center; }

/* ---------- morning ---------- */

.fx-morning { gap: 22px; transition: opacity 1.4s var(--ease-drama), filter 1.4s var(--ease-drama); }
/* the table empties around the verdict */
.fx-morning.is-hushed { opacity: .07; filter: blur(1.5px); }
.fx-morning-head .fx-word { font-size: clamp(84px, 27vw, 220px); }

.fx-cast > li { border-top: 0; position: relative; padding: 9px 0 7px; }
.fx-cast > li:last-child { border-bottom: 0; }
.fx-cast > li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--faint);
  transform-origin: left;
  animation: fx-rule .9s var(--ease-out) both;
}
.fx-cast .name { font-size: clamp(25px, 7.4vw, 36px); }
.fx-cast.is-dense > li { padding: 6px 0 5px; }
.fx-cast.is-dense .name { font-size: clamp(21px, 6vw, 30px); }
@keyframes fx-rule { from { transform: scaleX(0); } }

.fx-missing { z-index: 2; gap: 10px; }
.fx-struck { position: relative; width: max-content; max-width: 100%; }
.fx-strike {
  position: absolute;
  left: -5%;
  top: 0;
  width: 110%;
  height: 100%;
  overflow: visible;
  color: var(--accent);
  pointer-events: none;
}
/* the missing name is already blood: an ink stroke is what cuts it */
.fx-missing .fx-strike { color: var(--fg); }

.fx-saved { align-items: flex-start; }
.fx-ringed { position: relative; align-self: stretch; display: grid; place-items: center; min-height: min(78vw, 420px); }
.fx-ringed .fx-frost { position: absolute; width: min(82vw, 440px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.fx-ringed .fx-title { position: relative; text-align: center; max-width: 8ch; }
.fx-frost { color: var(--frost); overflow: visible; }
.fx[data-tone="bone"] .fx-frost { color: color-mix(in srgb, var(--frost) 70%, var(--ink)); }

/* ---------- strokes drawn like ink (paths carry pathLength="1") ---------- */

.fx .ink { stroke-dasharray: 1 2; stroke-dashoffset: 1; }

/* ---------- council ---------- */

.fx-table {
  position: absolute;
  z-index: 0;
  width: max(112vmin, 300px);
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.fx-table svg { width: 100%; height: 100%; overflow: visible; }
.fx-table circle { stroke: var(--fg); stroke-width: .35; }

.fx-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: 62vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--fg);
  pointer-events: none;
}
.fx-ring.is-wide { width: 110vmin; border-color: var(--accent); }

.fx-vote { gap: 14px; }
.fx-double-vote { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.fx-double-vote svg { width: 26px; height: 26px; color: var(--steel); }
.fx[data-tone="bone"] .fx-double-vote svg { color: color-mix(in srgb, var(--steel) 55%, var(--ink)); }
.fx-tally { margin-top: 14px; }
.fx-tally .tally-strokes svg { width: auto; height: 34px; }

.fx-banished { gap: 12px; }
.fx-rise-self { flex-direction: row; align-items: center; gap: 22px; }
.fx-rise-self .fx-title { margin: 0 0 6px; }
.fx-rise-self .fx-line { font-size: 17px; max-width: 16ch; }

.fx-unmask { gap: 10px; }
.fx-verdict { z-index: 2; }
.fx-verdict-word { line-height: .8; }
.fx[data-tone="crimson"] .fx-verdict-word { color: var(--accent); }

/* ---------- recruitment ---------- */

.fx-drop {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--blood-hot);
  transform-origin: 50% 100%;
}
.fx-drop svg { display: block; width: 100%; height: 100%; }
.fx-recruit { gap: 16px; }
.fx-sigil-big { width: 64px; height: 64px; color: var(--accent); }
.fx-sigil-big svg { width: 100%; height: 100%; }

/* ---------- gifts ---------- */

.fx-gift { gap: 14px; }
.fx-emblem {
  position: relative;
  align-self: center;
  width: min(66vw, 340px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  color: var(--frost);
}
.fx-emblem .fx-frost { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-emblem-sigil { position: absolute; left: 32%; top: 30%; width: 36%; height: 40%; }

.fx-blade {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  z-index: 1;
  height: 22px;
  margin-top: -11px;
  overflow: hidden;
  background: var(--steel);
  clip-path: polygon(0 28%, 97% 47%, 100% 50%, 97% 53%, 0 72%);
}
.fx-blade-shine { position: absolute; top: 0; bottom: 0; left: 0; width: 22vw; background: var(--bone); opacity: .9; }
.fx-double {
  font-weight: 400;
  font-size: clamp(140px, 50vw, 340px);
  line-height: .8;
  letter-spacing: -.07em;
  color: var(--steel);
  margin-left: -.06em;
}

/* ---------- letters ---------- */

.fx-letter { gap: 26px; }
.fx-letter-head { display: flex; flex-direction: column; gap: 10px; }
.fx-letter-text {
  font-size: clamp(21px, 6vw, 30px);
  line-height: 1.32;
  letter-spacing: -.012em;
  max-width: 27ch;
  min-height: 4em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.fx-letter-text.is-long { font-size: clamp(17px, 4.8vw, 22px); }

.fx-wax {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 64%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.fx-wax-half { position: absolute; inset: 0; }
.fx-wax-art { display: block; width: 100%; height: 100%; }
.fx-wax-blob { fill: var(--blood); }
.fx-wax-rim { fill: none; stroke: var(--blood-black); stroke-opacity: .5; stroke-width: 2.4; }
.fx-wax-mark { position: absolute; left: 29%; top: 29%; width: 42%; height: 42%; color: var(--blood-black); opacity: .75; }
.fx-wax-hint { position: absolute; z-index: 5; left: 0; right: 0; top: calc(64% + 92px); text-align: center; }

/* ---------- finale ---------- */

.fx-stamped { position: relative; width: max-content; max-width: 100%; }
.fx-stamp {
  position: absolute;
  left: 50%;
  top: 54%;
  font-family: var(--f-ritual);
  font-weight: 900;
  font-size: clamp(54px, 17vw, 150px);
  line-height: 1;
  color: var(--blood-hot);
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-9deg);
  /* uneven ink, like a stamp pressed by hand */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='120'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -7 4.7'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='120'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -7 4.7'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* ---------- tally strokes (also used by the player and host views) ---------- */

.cast.tally > li { grid-template-columns: 2.7em minmax(0, 1fr) auto; align-items: center; padding: 10px 0 8px; }
.cast.tally .name { font-size: 24px; }
.cast.tally > li.is-hit .name { color: var(--accent); }
.tally-strokes { color: var(--accent); line-height: 0; }
.tally-strokes svg { display: block; overflow: visible; }
.tally .ink { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.tally .is-fresh .ink {
  stroke-dashoffset: 1;
  animation: fx-ink .46s cubic-bezier(.5, 0, .2, 1) forwards;
  animation-delay: calc(var(--fx-delay, 0ms) + var(--i, 0) * 300ms);
}
@keyframes fx-ink {
  0% { stroke-dashoffset: 1; opacity: 0; }
  6% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.tally-none { margin: 0; color: var(--dim); }

/* ---------- desktop: same scenes, composed for a wide screen ---------- */

@media (min-width: 720px) {
  .fx-col { padding-top: calc(var(--safe-t) + 9vh); padding-bottom: calc(var(--safe-b) + 12vh); }
  .fx-line { max-width: 28ch; }
  .fx-reveal-col { padding-top: 18vh; }
  .fx-wax-hint { top: calc(64% + 96px); }
}

/* ---------- without color-mix (iOS 16.0/16.1): the same tints, as plain colours ----------
   Each value is fg · p + ground · (1 − p) of its tone: dim 58%, faint 18%, whisper 7%. */

@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .fx[data-tone="ink"]     { --dim: #8d8b87; --faint: #343333; --whisper: #1c1a1c; }
  .fx[data-tone="bone"]    { --dim: #6a6766; --faint: #c3bfba; --whisper: #dbd8d1; }
  .fx[data-tone="blood"]   { --fg: #edd0cf; --dim: #94797c; --faint: #3f252d; --whisper: #280f18; }
  .fx[data-tone="ash"]     { --ground: #1b1a1b; --fg: #c8c4be; --dim: #7f7d7a; --faint: #3a3938; --whisper: #272626; }
  .fx[data-tone="crimson"] { --dim: #e3c4c5; --faint: #bf2a4d; --whisper: #b9103a; }
  .fx-reveal .kicker { color: #8d8b87; }
  .fx-reveal .fx-line.is-quiet { color: #969390; }
  .fx[data-tone="bone"] .fx-frost { color: #718ba4; }
  .fx[data-tone="bone"] .fx-double-vote svg { color: #62666d; }
}

/* ---------- reduced motion: the same information, crossfaded ---------- */

@media (prefers-reduced-motion: reduce) {
  .fx-gate-seal { animation: fx-glow 3.2s ease-in-out infinite; }
  .fx-gate-seal::after { animation: none; opacity: 0; }
  .fx-tap { animation: fx-fade .9s .35s both, fx-breathe 3s 1.6s ease-in-out infinite; }
  .fx-cast > li::before { animation: fx-fade .9s both; }
  .tally .is-fresh .ink { stroke-dashoffset: 0; animation-name: fx-fade; }
}
@keyframes fx-glow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes fx-fade { from { opacity: 0; } }
