/* Guild of Old Magick: the fight viewer (play/js/fightview.js).
   Two open spell books on a night table, health and statuses above each, bolts on a canvas over everything.
   Tokens match assets/site.css; they are repeated on .fv so the viewer also works on its own. */

@font-face { font-family: "Alegreya"; src: url("../../fonts/alegreya.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../../fonts/im-fell-english.woff") format("woff"); font-weight: 400; font-display: swap; }

.fv {
  --night: #0e0c15;
  --text: #ebe0c8;
  --text-2: #cfc3a8;
  --text-3: #a3957a;
  --gold: #d9ae5f;
  --gold-hi: #f0cf86;
  --gold-deep: #a9802f;
  --line: rgb(217 174 95 / .18);
  --parchment: #efe4c8;
  --ink: #2a2018;
  --ink-3: #6e5b46;
  --leather-a: #4a1c13;
  --leather-b: #18264a;
  --leather-m: #2a2214;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "IM Fell English", "Alegreya", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --row: 1.375rem;           /* one ruled line */
  --page-w: 17.5rem;         /* one page at full size */
  --pages: 2;

  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  container: fv / inline-size;
  min-height: 100%;
  overflow: hidden;
  padding: 16px clamp(12px, 2.4vw, 32px) 22px;
  color: var(--text);
  background: var(--night);
  font: 400 1rem/1.5 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-text-size-adjust: 100%;
}
.fv *, .fv *::before, .fv *::after { box-sizing: border-box; }
.fv :focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 2px; }
.fv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The room: the round's painting under a dark tint and vignette, or a candlelit gradient ---- */
.fv-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 62% at 24% 58%, rgb(255 160 70 / .11), transparent 70%),
    radial-gradient(ellipse 42% 62% at 76% 58%, rgb(110 140 255 / .09), transparent 70%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / .012) 0 2px, transparent 2px 7px),
    linear-gradient(170deg, #1b1624 0%, #120f1a 55%, #0b0910 100%);
}
.fv-bg.has-art {
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 30%, rgb(8 6 12 / .85) 100%),
    linear-gradient(rgb(14 12 21 / .8), rgb(14 12 21 / .9)),
    var(--fv-art) center / cover no-repeat,
    #120f1a;
}
.fv[data-kind="monster"] .fv-bg:not(.has-art) {
  background:
    radial-gradient(ellipse 42% 62% at 24% 58%, rgb(255 160 70 / .11), transparent 70%),
    radial-gradient(ellipse 42% 62% at 76% 58%, rgb(150 190 90 / .08), transparent 70%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / .012) 0 2px, transparent 2px 7px),
    linear-gradient(170deg, #1a1820 0%, #12100f 55%, #0b0a09 100%);
}

/* ---- Layout: head A, the clock, head B; then the two books with the open table between them ---- */
.fv-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, auto) minmax(0, 1fr);
  grid-template-areas: "ha mid hb" "ba arena bb";
  column-gap: clamp(16px, 2.5vw, 32px);
  row-gap: 14px;
  max-width: 90rem;
  margin-inline: auto;
}
.fv-head-a { grid-area: ha; }
.fv-head-b { grid-area: hb; }
.fv-mid { grid-area: mid; }
.fv-book-a { grid-area: ba; }
.fv-book-b { grid-area: bb; }
.fv-head, .fv-book { width: min(100%, calc(var(--pages) * var(--page-w) + 32px)); }
.fv-head-a, .fv-book-a { justify-self: end; }
.fv-head-b, .fv-book-b { justify-self: start; }

/* ---- Heads: name, health with Shield, statuses ---- */
.fv-head { display: grid; gap: 6px; align-content: start; align-self: start; min-width: 0; }
.fv-who { display: flex; align-items: baseline; gap: 4px 12px; min-width: 0; }
.fv-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.375rem/1.2 var(--display); color: var(--gold); text-shadow: 0 0 18px rgb(217 174 95 / .25); }
.fv-who span { flex: none; color: var(--text-3); font-size: .875rem; }
.fv-head-b .fv-who { flex-direction: row-reverse; }

.fv-hp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.fv-head-b .fv-hp { grid-template-columns: auto minmax(0, 1fr); }
.fv-head-b .fv-hpn { order: -1; text-align: left; }
.fv-bar {
  position: relative; height: 16px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(180deg, rgb(0 0 0 / .55), rgb(30 20 20 / .55));
  box-shadow: inset 0 0 0 1px rgb(217 174 95 / .5), 0 0 0 1px rgb(0 0 0 / .55), 0 0 18px -6px rgb(0 0 0 / .8);
}
.fv-bar > i { position: absolute; top: 2px; bottom: 2px; left: 2px; right: 2px; transform-origin: left center; will-change: transform; }
.fv-head-b .fv-bar > i { transform-origin: right center; }
.fv-chip { background: rgb(240 207 134 / .7); }
.fv-fill { background: linear-gradient(180deg, #e0613f 0%, #b3301f 45%, #7d1a12 100%); box-shadow: inset 0 1px 0 rgb(255 200 160 / .35); }
.fv-bar > .fv-shield {
  right: auto; width: calc((100% - 4px) * var(--sw, 0)); left: calc(2px + (100% - 4px) * var(--s0, 0));
  background: repeating-linear-gradient(135deg, rgb(236 241 248 / .92) 0 3px, rgb(168 181 200 / .92) 3px 6px);
  box-shadow: 0 0 8px rgb(220 230 245 / .6);
}
.fv-head-b .fv-bar > .fv-shield { left: auto; right: calc(2px + (100% - 4px) * var(--s0, 0)); }
.fv-hpn { text-align: right; white-space: nowrap; color: var(--text-2); font-size: .9375rem; line-height: 1; }
.fv-hpn b { color: var(--text); font-weight: 700; font-size: 1.0625rem; }
.fv-shn { margin-inline: 6px; color: #d6dfec; font-weight: 600; }
.fv-shn:empty { display: none; }

.fv-badges { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 5px; min-height: 3.25rem; margin: 2px 0 0; padding: 0; list-style: none; }
.fv-head-b .fv-badges { justify-content: flex-end; }
.fv-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 1.5rem; padding: 0 8px 0 6px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 3px;
  background: color-mix(in srgb, var(--c) 12%, rgb(14 12 21 / .82));
  color: var(--text); font-size: .8125rem; line-height: 1; white-space: nowrap;
}
.fv-badge[hidden] { display: none; }
.fv-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.fv-badge b { font-weight: 700; color: var(--c); }

/* ---- The clock and controls between the heads ---- */
.fv-mid { display: grid; justify-items: center; align-content: start; gap: 8px; }
.fv-clock { display: grid; justify-items: center; line-height: 1; }
.fv-clock b { font: 600 2rem/1 var(--serif); color: var(--text); letter-spacing: .01em; }
.fv-clock b small { margin-left: 2px; font-size: .5em; font-weight: 400; color: var(--text-3); }
.fv-clock span { min-height: 1.1em; margin-top: 4px; color: var(--text-3); font-size: .8125rem; font-style: italic; }
.fv.is-overtime .fv-clock b { color: #ffb37a; text-shadow: 0 0 14px rgb(255 120 60 / .5); }
.fv.is-overtime .fv-clock span { color: #e7a07a; }
.fv-ctrls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fv-speed { display: inline-flex; }
.fv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; min-width: 34px; padding: 0 10px;
  border: 1px solid rgb(217 174 95 / .7); border-radius: 4px; background: rgb(14 12 21 / .55); color: var(--gold);
  font: 600 .875rem/1 var(--serif); cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.fv-btn:hover { background: rgb(217 174 95 / .14); color: var(--gold-hi); }
.fv-btn svg { width: 12px; height: 12px; fill: currentColor; }
.fv-speed .fv-btn { border-radius: 0; margin-left: -1px; padding: 0 9px; }
.fv-speed .fv-btn:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.fv-speed .fv-btn:last-child { border-radius: 0 4px 4px 0; }
.fv-speed .fv-btn[aria-pressed="true"] { position: relative; background: var(--gold); color: var(--night); box-shadow: 0 0 14px rgb(240 207 134 / .3); }
.fv-btn:disabled { opacity: .45; cursor: default; }
@media (pointer: coarse) { .fv-btn { min-height: 44px; min-width: 44px; } }

/* ---- The books: leather, gold tooling, parchment pages with numbered ruled lines ---- */
.fv-book { position: relative; min-width: 0; }
.fv-cover {
  position: relative; padding: 16px; border-radius: 10px;
  background:
    radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .06), transparent 60%),
    repeating-linear-gradient(115deg, rgb(0 0 0 / .08) 0 2px, transparent 2px 6px),
    var(--leather-a);
  box-shadow: inset 0 0 0 1px rgb(240 207 134 / .35), 0 2px 0 rgb(0 0 0 / .4), 0 30px 60px -24px #000, 0 0 90px -24px rgb(255 150 60 / .3);
  transition: box-shadow 600ms var(--ease);
  will-change: transform;
}
.fv-book-b .fv-cover {
  background:
    radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .06), transparent 60%),
    repeating-linear-gradient(115deg, rgb(0 0 0 / .08) 0 2px, transparent 2px 6px),
    var(--leather-b);
  box-shadow: inset 0 0 0 1px rgb(240 207 134 / .35), 0 2px 0 rgb(0 0 0 / .4), 0 30px 60px -24px #000, 0 0 90px -24px rgb(110 140 255 / .32);
}
.fv[data-kind="monster"] .fv-book-b .fv-cover {
  background:
    radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .05), transparent 60%),
    repeating-radial-gradient(circle at 70% 30%, rgb(0 0 0 / .1) 0 2px, transparent 2px 7px),
    var(--leather-m);
  box-shadow: inset 0 0 0 1px rgb(200 190 150 / .3), 0 2px 0 rgb(0 0 0 / .4), 0 30px 60px -24px #000, 0 0 90px -24px rgb(150 190 90 / .25);
}
.fv-cover::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgb(217 174 95 / .5); border-radius: 7px; pointer-events: none; }
.fv-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 10px;
  background:
    radial-gradient(circle at 6px 6px, var(--gold) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 6px) 6px, var(--gold) 0 2.5px, transparent 3px),
    radial-gradient(circle at 6px calc(100% - 6px), var(--gold) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), var(--gold) 0 2.5px, transparent 3px);
}
.fv-spread { position: relative; display: grid; grid-template-columns: repeat(var(--pages), minmax(0, 1fr)); border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
.fv-spread::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 250ms var(--ease); }
.fv-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; box-shadow: inset 0 0 50px var(--fc, rgb(255 120 50 / .3)); }
.fv-page {
  position: relative; display: grid; grid-auto-rows: minmax(var(--row), auto); align-content: start;
  margin: 0; padding: 12px 14px 24px 6px; list-style: none;
  background: linear-gradient(90deg, #e2d2ab 0%, var(--parchment) 4%, var(--parchment) 90%, #d3bf92 100%);
}
.fv-page + .fv-page { background: linear-gradient(90deg, #d3bf92 0%, var(--parchment) 8%, var(--parchment) 96%, #e2d2ab 100%); }
.fv-folio { position: absolute; bottom: 6px; right: 14px; color: var(--ink-3); font-size: .75rem; font-style: italic; }
.fv-page + .fv-page .fv-folio { right: auto; left: 14px; }

.fv-line {
  position: relative; display: grid; grid-template-columns: 1.55rem 15px minmax(0, 1fr); align-items: center;
  border-bottom: 1px solid rgb(110 91 70 / .13);
  color: var(--el, var(--ink));
  font-size: .9375rem; line-height: 1.15;
}
.fv-n { padding-right: 4px; text-align: right; color: var(--ink-3); font-size: .6875rem; opacity: .8; }
.fv-ink { display: grid; place-items: center; height: 100%; }
.fv-ink svg { width: 13px; height: 13px; overflow: visible; }
.fv-w { position: relative; align-self: stretch; display: flex; align-items: center; min-width: 0; padding: 2px 0 3px 7px; border-left: 1px solid rgb(163 38 27 / .28); }
.fv-t { position: relative; isolation: isolate; display: inline-block; min-width: 0; overflow-wrap: anywhere; }
.fv-glow { position: absolute; inset: -7px -16px; z-index: -1; opacity: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g, #ffb35c) 70%, transparent), color-mix(in srgb, var(--g, #ffb35c) 22%, transparent) 60%, transparent); }
.fv-line.is-active .fv-t { font-weight: 700; letter-spacing: .035em; }
.fv-line.is-passive .fv-t { font-style: italic; font-weight: 400; opacity: .92; }
.fv-lvl { margin-left: .35em; font-size: .72em; font-style: normal; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.fv-line.is-empty .fv-n { opacity: .45; }
.fv.is-two-page .fv-line { grid-template-columns: 1.35rem 14px minmax(0, 1fr); font-size: .875rem; }
.fv.is-two-page .fv-line.is-active .fv-t { letter-spacing: .02em; }
.fv.is-two-page .fv-w { padding-left: 6px; }
.fv-cd { position: absolute; left: 7px; bottom: 1px; width: min(calc(100% - 7px), 8rem); height: 2px; background: rgb(169 128 47 / .2); overflow: hidden; }
.fv-cd i { display: block; height: 100%; background: var(--gold-deep); transform-origin: left center; transform: scaleX(0); will-change: transform; }
.fv-line.is-ready .fv-cd i { background: #c99a3c; box-shadow: 0 0 6px rgb(240 190 90 / .9); }
.fv-note { display: none; }

/* Book states */
.fv-book.is-frozen .fv-spread::after { opacity: 1; background: linear-gradient(180deg, rgb(185 228 255 / .26), rgb(185 228 255 / .1)); box-shadow: inset 0 0 0 2px rgb(200 236 255 / .55), inset 0 0 40px rgb(140 200 255 / .45); }
.fv-book.is-stunned .fv-spread::after { opacity: 1; background: rgb(240 207 134 / .14); box-shadow: inset 0 0 0 2px rgb(240 207 134 / .45); }
.fv-book.is-fallen .fv-spread { filter: grayscale(.8) sepia(.25) brightness(.62); transition: filter 1400ms var(--ease); }
.fv-book.is-fallen .fv-cover { box-shadow: inset 0 0 0 1px rgb(240 207 134 / .15), 0 30px 60px -24px #000; }
.fv-book.is-winner .fv-cover { box-shadow: inset 0 0 0 1px rgb(240 207 134 / .6), 0 2px 0 rgb(0 0 0 / .4), 0 30px 60px -24px #000, 0 0 70px -8px rgb(240 207 134 / .55); }

/* The open table between the books: the landing page's seal, turning slowly while the fight runs. */
.fv-arena { grid-area: arena; position: relative; align-self: center; justify-self: center; width: min(11rem, 100%); aspect-ratio: 1; pointer-events: none; }
/* The sigil between the books: dark gold, so it sits behind the duel instead of competing with it. */
.fv-arena svg { display: block; width: 100%; height: 100%; fill: none; stroke: rgb(140 104 40 / .2); stroke-width: 1; filter: drop-shadow(0 0 4px rgb(120 80 30 / .18)); transition: stroke 800ms var(--ease); }
.fv.is-done .fv-arena svg { stroke: rgb(169 128 47 / .3); }
@media (prefers-reduced-motion: no-preference) {
  .fv:not(.is-reduced) .fv-arena svg { animation: fv-turn 60s linear infinite; }
  .fv.is-paused .fv-arena svg, .fv.is-done .fv-arena svg { animation-play-state: paused; }
}
@keyframes fv-turn { to { transform: rotate(360deg); } }

/* ---- Canvas over everything: bolts, sparks, numbers ---- */
.fv-fx { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

/* ---- The ending ---- */
.fv-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.fv-end[hidden] { display: none; }
.fv-end-card {
  pointer-events: auto; width: min(26rem, 100%); padding: 22px 26px 20px; text-align: center;
  border: 4px double rgb(217 174 95 / .8); border-radius: 6px;
  background: radial-gradient(ellipse at 50% 0%, rgb(217 174 95 / .14), transparent 70%), rgb(16 13 22 / .94);
  box-shadow: 0 30px 80px -20px #000, 0 0 60px -20px rgb(240 207 134 / .35);
}
.fv-end-title { margin: 0; font: 400 3.25rem/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 26px rgb(255 190 90 / .55); }
.fv-end.is-defeat .fv-end-title { color: #d9c6a8; text-shadow: 0 0 22px rgb(160 40 30 / .6); }
.fv-end.is-defeat .fv-end-card { border-color: rgb(170 120 90 / .7); }
.fv-end-line { margin: 10px 0 0; color: var(--text-2); font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
.fv-end-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.fv-end-stats div { min-width: 0; }
.fv-end-stats dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: .875rem; }
.fv-end-stats dd { margin: 2px 0 0; color: var(--text); font-size: 1.125rem; font-weight: 700; }
.fv-end-stats dd span { color: var(--text-3); font-weight: 400; font-size: .875rem; }
.fv-end-card .fv-btn { margin-top: 16px; }

/* Entrance: the books settle onto the table once. */
@media (prefers-reduced-motion: no-preference) {
  .fv.is-opening .fv-book { animation: fv-settle 520ms var(--ease) both; }
  .fv.is-opening .fv-book-b { animation-delay: 80ms; }
  .fv-end:not([hidden]) .fv-end-card { animation: fv-card 420ms var(--ease) both; }
}
@keyframes fv-settle { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fv-card { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Medium: the clock moves above, the books take the full width ---- */
@container fv (max-width: 1079px) {
  .fv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "mid mid" "ha hb" "ba bb"; column-gap: clamp(20px, 4cqi, 40px); }
  .fv-arena { display: none; }
  .fv-mid { grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 8px 20px; }
  .fv-clock { justify-items: start; }
  .fv-line { font-size: .875rem; }
  .fv-page { padding-right: 10px; }
}

/* ---- Phones: each book shows only its active spells, statuses as short chips ---- */
@container fv (max-width: 719px) {
  .fv { --row: 1.3rem; }
  .fv-grid { column-gap: 12px; row-gap: 10px; }
  .fv-head, .fv-book { width: 100%; }
  .fv-mid { grid-template-columns: auto auto; gap: 6px 12px; }
  .fv-clock { grid-auto-flow: column; align-items: baseline; gap: 8px; }
  .fv-clock b { font-size: 1.5rem; }
  .fv-clock span { margin: 0; }
  .fv-ctrls { gap: 4px; }
  .fv-btn { padding: 0 8px; font-size: .8125rem; }
  .fv-who { display: grid; gap: 0; }
  .fv-who b { font-size: 1.125rem; }
  .fv-who span { min-height: 1.25em; font-size: .75rem; }
  .fv-head-b .fv-who { justify-items: end; text-align: right; }
  .fv-hp { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .fv-head-b .fv-hp { grid-template-columns: minmax(0, 1fr); }
  .fv-head-b .fv-hpn { order: 0; text-align: right; }
  .fv-hpn { text-align: left; font-size: .8125rem; }
  .fv-hpn b { font-size: .9375rem; }
  .fv-bar { height: 12px; }
  .fv-badges { gap: 3px; min-height: 2.6rem; }
  .fv-badge { height: 1.2rem; gap: 3px; padding: 0 4px; font-size: .6875rem; }
  .fv-badge::before { display: none; }
  .fv-cover { padding: 7px; border-radius: 7px; }
  .fv-cover::before { inset: 3px; border-radius: 5px; }
  .fv-cover::after { display: none; }
  .fv-spread { display: block; }
  .fv-page, .fv-page + .fv-page { padding: 4px 6px 4px 2px; background: linear-gradient(90deg, #e2d2ab 0%, var(--parchment) 5%, var(--parchment) 95%, #e2d2ab 100%); }
  .fv-page:first-child { padding-top: 8px; }
  .fv-page:last-child { padding-bottom: 8px; }
  .fv-folio { display: none; }
  .fv-line.is-passive, .fv-line.is-empty { display: none; }
  .fv-line, .fv.is-two-page .fv-line { grid-template-columns: 1.15rem 12px minmax(0, 1fr); font-size: .75rem; }
  .fv-n { font-size: .5625rem; padding-right: 2px; }
  .fv-ink svg { width: 10px; height: 10px; }
  .fv-w, .fv.is-two-page .fv-w { padding-left: 4px; }
  .fv-line.is-active .fv-t { letter-spacing: .01em; }
  .fv-cd { left: 4px; width: calc(100% - 4px); }
  .fv-note { display: block; margin: 6px 2px 0; color: var(--text-3); font-size: .75rem; font-style: italic; }
  .fv-end { align-items: start; padding-top: 120px; }
  .fv-end-title { font-size: 2.5rem; }
  .fv-end-card { padding: 18px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fv *, .fv *::before, .fv *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.fv.is-reduced *, .fv.is-reduced *::before, .fv.is-reduced *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

/* ---- Targeted Freeze and Haste (GOOM.settings.targeted): one line at a time ----
   A Frozen spell's line frosts over and its cooldown line stops; a Hasted spell's line glows warm and fills faster. */
.fv-line.is-frozen .fv-w { background: linear-gradient(90deg, rgb(178 225 255 / .62), rgb(205 238 255 / .3) 70%, rgb(205 238 255 / .12)); box-shadow: inset 0 0 0 1px rgb(120 190 235 / .75); }
.fv-line.is-frozen .fv-t { text-shadow: 0 0 5px rgb(255 255 255 / .95); }
.fv-line.is-frozen .fv-cd { background: rgb(90 160 210 / .3); }
.fv-line.is-frozen .fv-cd i { background: #4f9fcf; box-shadow: none; }
.fv-line.is-frozen .fv-w::after, .fv-line.is-hasted .fv-w::after { content: ""; position: absolute; right: 3px; top: 50%; width: 11px; height: 11px; margin-top: -6px; background: center / contain no-repeat; pointer-events: none; }
.fv-line.is-frozen .fv-w::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5v13M2.4 4.8l11.2 6.4M2.4 11.2l11.2-6.4M6.3 2.6 8 4.3l1.7-1.7M6.3 13.4 8 11.7l1.7 1.7' fill='none' stroke='%23246f99' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fv-line.is-hasted .fv-w { background: linear-gradient(90deg, rgb(255 196 92 / .5), rgb(255 214 140 / .2) 70%, rgb(255 214 140 / .06)); box-shadow: inset 2px 0 0 #d8901f; }
.fv-line.is-hasted .fv-cd i { background: #d2861c; box-shadow: 0 0 6px rgb(255 180 70 / .9); }
.fv-line.is-hasted .fv-w::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3.5 7.5 8 3 12.5M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23a2600c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) {
  .fv:not(.is-reduced) .fv-line.is-hasted .fv-w { animation: fv-haste 900ms ease-in-out infinite alternate; }
}
@keyframes fv-haste { from { box-shadow: inset 2px 0 0 #d8901f; } to { box-shadow: inset 2px 0 0 #d8901f, inset 0 0 12px rgb(255 190 80 / .55); } }
