.wl-mplay { padding: var(--sp-5); color: var(--wl-text-2); font: var(--t-ui)/1.6 var(--wl-font-ui); }
.wl-mplay h2 { font: 500 var(--t-h2)/1.3 var(--wl-font-title); color: var(--wl-text); margin: 0; }
.wl-mplay h3 { font: 600 var(--t-body)/1.4 var(--wl-font-ui); color: var(--wl-text); margin: 0; }
.wl-mplay-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.wl-mplay-head h2, .wl-mplay-head h3, .wl-mplay-head > strong { margin-right: auto; }
.wl-mplay-button { border: 1px solid var(--wl-line-strong); border-radius: var(--r-pill); background: transparent; box-shadow: none; padding: var(--sp-2) var(--sp-4); color: var(--wl-text-2); font: 500 var(--t-help)/1.3 var(--wl-font-ui); cursor: pointer; }
.wl-mplay-button.is-primary { background: var(--wl-accent); color: var(--wl-on-accent); border-color: var(--wl-accent); }
.wl-mplay-button:disabled { opacity: .45; cursor: default; }
.wl-mplay button:focus-visible, .wl-mplay input:focus-visible, .wl-mplay select:focus-visible, .wl-mplay-actions button:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wl-mplay-button:hover:not(:disabled) { border-color: var(--wl-text-2); }
.wl-mplay-button.is-prepared { border-color: var(--wl-selection); background: var(--wl-selection-soft); color: var(--wl-text); }
.wl-turn-prepared { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--wl-selection); border-radius: var(--r-md); background: var(--wl-surface); margin-bottom: var(--sp-3); color: var(--wl-text); font: var(--t-help)/1.5 var(--wl-font-ui); }
.wl-turn-prepared-head, .wl-turn-prepared-step { display: flex; align-items: center; gap: var(--sp-2); }
.wl-turn-prepared-head { justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--sp-2); }
.wl-turn-prepared-head > span { color: var(--wl-text-3); }
.wl-turn-prepared-step > svg { width: 16px; height: 16px; flex: none; color: var(--wl-text-3); }
.wl-turn-prepared-step > span:not(.wl-turn-step-number) { overflow-wrap: anywhere; }
.wl-turn-prepared-step > button { margin-left: auto; flex: none; }
.wl-turn-step-number { color: var(--wl-text-3); min-width: 16px; font-variant-numeric: tabular-nums; }
.wl-turn-rules { color: var(--wl-text-3); font: var(--t-help)/1.5 var(--wl-font-ui); margin-bottom: var(--sp-4); }
.wl-turn-rules > summary { cursor: pointer; padding-block: var(--sp-2); }
.wl-turn-rules .wl-script-used { margin-top: var(--sp-2); }
.wl-turn-action-result { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; color: var(--wl-text-2); font: var(--t-help)/1.5 var(--wl-font-ui); margin-bottom: var(--sp-3); }
.wl-turn-action-result > svg { width: 16px; height: 16px; align-self: center; }
.wl-turn-action-result .wl-turn-rules { margin: 0; }
.wl-mplay-status, .wl-mplay-hint, .wl-mplay-empty { color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mplay-empty { padding-block: var(--sp-5); }
.wl-mplay-error { color: var(--wl-danger); font-size: var(--t-help); white-space: pre-wrap; }
.wl-mplay-scene { padding: var(--sp-4) 0 var(--sp-5); border-bottom: 1px solid var(--wl-line); }
.wl-mplay-row { display: grid; grid-template-columns: minmax(80px,1fr) minmax(0,2fr); gap: var(--sp-3); padding: var(--sp-2) 0; font-size: var(--t-help); }
.wl-mplay-row > span { color: var(--wl-text-3); }
.wl-mplay-row > b { font-weight: 500; overflow-wrap: anywhere; }
.wl-mplay-field { display: grid; gap: var(--sp-2); margin-block: var(--sp-4); font-size: var(--t-help); color: var(--wl-text-3); }
.wl-mplay-field input, .wl-mplay-field select { width: 100%; min-height: var(--wl-control); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--wl-line-strong); border-radius: var(--r-sm); background: var(--wl-inset); color: var(--wl-text); font: var(--t-ui) var(--wl-font-ui); }
.wl-mplay-time { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--sp-3); }
.wl-mplay-role { border-bottom: 1px solid var(--wl-line); padding: var(--sp-3) 0; }
.wl-mplay-role summary { cursor: pointer; color: var(--wl-text-2); }
.wl-mplay-choices { display: grid; gap: var(--sp-2); padding: var(--sp-3) 0; max-height: 240px; overflow: auto; }
.wl-mplay-choice { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--t-help); }
.wl-mplay-count { position: absolute; right: 2px; top: 2px; font: 10px var(--wl-font-ui); color: var(--wl-text-2); background: var(--wl-raised); border-radius: var(--r-sm); padding: 1px 3px; }
.is-mechanics { position: relative; }
.wl-mplay-actions, .wl-mplay-invite { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-surface); margin-bottom: var(--sp-3); font-size: var(--t-help); }
.wl-mplay-actions > .wl-mplay-button { margin: 0 var(--sp-2) var(--sp-2) 0; }
.wl-mplay-invite { display: flex; align-items: center; gap: var(--sp-4); justify-content: space-between; }
.wl-mplay-action-choice { border-top: 1px solid var(--wl-line); margin-top: var(--sp-3); padding-top: var(--sp-2); }
.wl-mplay-action-choice .wl-mplay-field { display: inline-grid; margin: var(--sp-2); min-width: 140px; }
.wl-mplay-map-head { position: relative; flex: none; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding: var(--sp-3); font: var(--t-help)/1.4 var(--wl-font-ui); color: var(--wl-text-2); border-bottom: 1px solid var(--wl-line); background: var(--wl-surface); }
.wl-mplay-map-head .wl-mplay-row { display: flex; gap: var(--sp-2); padding: 0; }
/* The scene's name on the map's header is a panel title (D-184). */
.wl-mplay-map-head > strong { font: 400 var(--t-title-panel)/1.3 var(--wl-font-title); letter-spacing: 0; text-transform: none; color: var(--wl-text); }
.wl-mplay-zone { position: absolute; z-index: 1; pointer-events: none; border: 1px solid var(--wl-selection); background: color-mix(in srgb,var(--wl-selection) 8%,transparent); color: var(--wl-text-2); font: 12px var(--wl-font-ui); padding: var(--sp-2); }
.wl-map-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; color: var(--wl-selection); }
.wl-map-trail.is-you { color: var(--wl-accent); }
.wl-map-trail.is-object { color: var(--wl-text); }
.wl-map-trail polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 8 6; stroke-linecap: round; }
.wl-map-trail.is-object polyline { stroke-dasharray: 2 6; stroke-width: 3; }
.wl-map-trail circle { fill: currentColor; stroke: none; }
.wl-map-trail.is-prepared { opacity: .8; }
.wl-map-trail.is-prepared circle { fill: var(--wl-selection-soft); stroke: currentColor; stroke-width: 2; }
.wb-game-map-canvas.is-picking-move { cursor: crosshair; }
.wl-map-action-error { position: absolute; bottom: var(--sp-6); left: var(--sp-4); right: var(--sp-4); z-index: 8; margin: 0; padding: var(--sp-3); color: var(--wl-danger); background: var(--wl-surface); border: 1px solid var(--wl-line); border-radius: var(--r-sm); font: var(--t-help)/1.5 var(--wl-font-ui); }
.wb-game-token.is-travelling { outline: 2px solid var(--wl-selection); outline-offset: 4px; }
.wb-game-token.is-travelling.is-you { outline-color: var(--wl-accent); }
.wb-game-token.is-action-target { outline: 2px solid var(--wl-selection); outline-offset: 4px; }
.wb-game-token.is-action-target.is-action-chosen { outline: 3px solid var(--wl-danger); outline-offset: 4px; }
.wl-map-move-hint { position: absolute; top: var(--sp-3); left: 50%; transform: translateX(-50%); z-index: 9; display: flex; align-items: center; gap: var(--sp-3); max-width: calc(100% - 120px); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--wl-line-strong); border-radius: var(--r-sm); background: var(--wl-surface); color: var(--wl-text); font: var(--t-help)/1.4 var(--wl-font-ui); }
.wl-map-move-hint[hidden] { display: none; }
.wl-map-move-hint button { background: transparent; color: var(--wl-text-2); border: 0; box-shadow: none; font: inherit; }
.wb-game-map .is-scene-object { margin-left: calc(24px * var(--zoom-multiplier, 1)); margin-top: calc(-16px * var(--zoom-multiplier, 1)); }
@media(prefers-reduced-motion:reduce) { .wl-map-trail:not(.is-prepared) { display: none; } .wb-game-token.is-travelling { outline: none; } }
@media(max-width:640px) { .wl-mplay { padding: var(--sp-4); } .wl-mplay-invite { flex-wrap: wrap; } .wl-mplay-button { min-height: 40px; } }
/* Your actions behind the sword (D-185). In a scene the sword leads the box's tools, lit (ice) on your turn; its panel
   rises 8px over the box on the box's left edge (placed by game-sword.mjs); the picked action sits in your words as
   a tag. Over the box only the scene's head stays. */
.wl-mplay-actions.is-sword > .wl-mplay-head { margin-bottom: 0; }
body.wb-shell .wb-game-composer button.wb-game-tool.wl-sword-tool.is-lit { color: var(--wl-selection); background: color-mix(in srgb, var(--wl-selection) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-selection) 42%, transparent), var(--wl-glow-accent); }
body.wb-shell .wb-game-composer button.wb-game-tool.wl-sword-tool.is-lit:hover { background: color-mix(in srgb, var(--wl-selection) 18%, transparent); }
body.wb-shell .wb-game-composer button.wb-game-tool.wl-sword-tool.is-lit.is-on { background: color-mix(in srgb, var(--wl-selection) 20%, transparent); }
body.wb-shell .wb-game-composer button.wl-sword-tool:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wl-sword { position: absolute; z-index: 7; box-sizing: border-box; display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: var(--sp-2) var(--sp-1); border: 1px solid var(--wl-line); border-radius: var(--r-xl); background: var(--wl-surface); box-shadow: var(--wl-elev-pop); color: var(--wl-text-2); font: var(--t-ui)/1.4 var(--wl-font-ui); animation: wl-in var(--wl-short) var(--wl-ease-out); }
.wl-sword.is-leaving { animation: wl-out var(--wl-short-out) var(--wl-ease) forwards; pointer-events: none; }
.wl-sword-head { flex: none; display: flex; align-items: center; gap: var(--sp-2); margin: 0 var(--sp-1) var(--sp-1); padding: 0 0 var(--sp-2) var(--sp-2); border-bottom: 1px solid var(--wl-line); }
.wl-sword-mark { flex: none; display: flex; color: var(--wl-text-3); }
.wl-sword.is-turn .wl-sword-mark { color: var(--wl-selection); }
.wl-sword-mark svg { width: 16px; height: 16px; display: block; }
.wl-sword-title { font-family: var(--wl-font-title); font-size: var(--t-title-panel); font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--wl-text); }
.wl-sword-count { color: var(--wl-text-3); font-size: var(--t-help); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.wb-shell button.wl-sword-close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; box-shadow: none; color: var(--wl-text-3); cursor: pointer; }
body.wb-shell button.wl-sword-close:hover { background: var(--wl-raised); color: var(--wl-text); }
.wl-sword-close .wt-glyph { display: flex; }
.wl-sword-close .wt-glyph svg { width: 16px; height: 16px; display: block; }
.wl-sword-why, .wl-sword-error, .wl-sword-hint { flex: none; margin: var(--sp-1) var(--sp-3) var(--sp-2); font-size: var(--t-help); line-height: 1.45; }
.wl-sword-why { color: var(--wl-text-2); }
.wl-sword-error { color: var(--wl-danger); }
.wl-sword-hint { margin: var(--sp-2) var(--sp-3) var(--sp-1); color: var(--wl-text-3); }
.wl-sword-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: var(--sp-1); overflow-y: auto; scrollbar-width: thin; }
.wl-sword-item { flex: none; border-radius: var(--r-md); }
.wl-sword-item.is-open { padding-bottom: var(--sp-3); background: var(--wl-raised); box-shadow: inset 3px 0 0 var(--wl-selection); }
body.wb-shell button.wl-sword-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; height: auto; min-height: 46px; margin: 0; padding: var(--sp-2); border: 0; border-radius: var(--r-md); background: transparent; box-shadow: none; color: var(--wl-text); font: inherit; text-align: left; white-space: normal; cursor: pointer; transition: background-color var(--wl-quick) var(--wl-ease); }
body.wb-shell button.wl-sword-row:hover { background: var(--wl-raised); }
body.wb-shell .wl-sword-item.is-open > button.wl-sword-row:hover { background: transparent; }
body.wb-shell button.wl-sword-row[aria-disabled="true"] { cursor: default; }
body.wb-shell button.wl-sword-row[aria-disabled="true"]:hover { background: transparent; }
body.wb-shell button.wl-sword-row:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; box-shadow: none; }
.wl-hand-pic.wl-sword-pic { width: 34px; height: 34px; border-radius: var(--r-md); }
.wl-sword-pic .wt-glyph svg { width: 15px; height: 15px; }
.wl-sword-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-sword-name { color: var(--wl-text); font-size: var(--t-ui); font-weight: 600; line-height: 1.3; }
.wl-sword-line { display: block; overflow: hidden; color: var(--wl-text-3); font-size: var(--t-help); line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.wl-sword-item.is-locked .wl-sword-line { display: flex; align-items: center; gap: var(--sp-1); }
.wl-sword-item.is-locked .wl-sword-line > span:not(.wt-glyph) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wl-sword-line .wt-glyph { flex: none; display: flex; }
.wl-sword-line .wt-glyph svg { width: 12px; height: 12px; }
.wl-sword-item.is-locked .wl-sword-pic, .wl-sword-item.is-locked .wl-sword-name { opacity: .5; }
.wl-sword:not(.is-turn) .wl-sword-item:not(.is-locked) .wl-sword-row { opacity: .7; }
.wl-sword-in { flex: none; display: flex; color: var(--wl-selection); }
.wl-sword-in svg { width: 15px; height: 15px; }
.wl-sword-what { margin: 0 var(--sp-3) var(--sp-3) calc(var(--sp-2) + 34px + var(--sp-3)); color: var(--wl-text-2); font-size: var(--t-help); line-height: 1.45; }
.wl-sword-targets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) 6px; margin: 0 var(--sp-3) 0 calc(var(--sp-2) + 34px + var(--sp-3)); }
.wl-sword-targets + .wl-sword-targets { margin-top: var(--sp-3); }
.wl-sword-targets-label { flex-basis: 100%; color: var(--wl-text-3); font-size: var(--t-help); }
body.wb-shell button.wl-sword-target { display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; margin: 0; padding: 0 var(--sp-3) 0 3px; border: 1px solid var(--wl-line-strong); border-radius: var(--r-pill); background: transparent; box-shadow: none; color: var(--wl-text); font: 500 var(--t-help)/1 var(--wl-font-ui); cursor: pointer; transition: border-color var(--wl-quick) var(--wl-ease), background-color var(--wl-quick) var(--wl-ease); }
body.wb-shell button.wl-sword-target:hover { border-color: var(--wl-selection); background: transparent; }
body.wb-shell button.wl-sword-target.is-foe:hover { border-color: color-mix(in srgb, var(--wl-danger) 60%, var(--wl-line)); }
body.wb-shell button.wl-sword-target.is-chosen { border-color: var(--wl-selection); background: var(--wl-selection-soft); }
body.wb-shell button.wl-sword-target.is-foe.is-chosen { border-color: var(--wl-danger); background: color-mix(in srgb, var(--wl-danger) 12%, transparent); }
body.wb-shell button.wl-sword-target > span:not(.wb-game-face) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.wb-shell :is(button.wl-sword-target, button.wl-sword-close):focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; box-shadow: none; }
.wl-sword-target .wb-game-face { width: 22px; height: 22px; font-size: 9px; }
.wl-composer-tag.wl-sword-tag { padding-left: 2px; border-color: color-mix(in srgb, var(--wl-selection) 38%, transparent); background: color-mix(in srgb, var(--wl-selection) 12%, transparent); color: var(--wl-text); }
body.wb-shell .wl-sword-tag > button.wl-sword-tag-open { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 22px; margin: 0; padding: 0 2px 0 0; border: 0; border-radius: var(--r-pill); background: transparent; box-shadow: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; }
body.wb-shell .wl-sword-tag > button.wl-sword-tag-open:hover { background: transparent; }
body.wb-shell .wl-sword-tag > button.wl-sword-tag-open:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; box-shadow: none; }
.wl-hand-pic.wl-sword-tag-pic { width: 20px; height: 20px; }
.wl-sword-tag-pic .wt-glyph svg { width: 11px; height: 11px; }
.wl-sword-tag-name { font-weight: 600; }
.wl-sword-tag-dim { color: var(--wl-text-3); }
.wl-sword-tag .wb-game-face { width: 18px; height: 18px; font-size: 8px; }
.wl-sword-tag-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  body.wb-shell button.wl-sword-row { min-height: 52px; }
  body.wb-shell button.wl-sword-target { height: 36px; }
  body.wb-shell button.wl-sword-close { width: 36px; height: 36px; }
}

/* ---- A move on the map (DESIGN-SYSTEM.md, Move on the map; game-fight-map.mjs paintMoments) ----
   Drawn in the map's units and sized to its tokens. --ink is what it is made of; every part starts at the move's own
   time (--t0, below zero once it has begun) so a map drawn again goes on from where it was; --lands is when it lands.
   A thin dark shade keeps a white streak readable on a pale map. */
.wl-moment-board { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wl-moment { filter: drop-shadow(0 0 1.5px var(--wl-picture-shade)); }
.wl-moment :is(line, path) { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.wl-moment .wl-moment-trail { opacity: .45; }
.wl-moment .wl-moment-core, .wl-moment .wl-moment-cut.is-core { stroke: color-mix(in srgb, var(--ink) 35%, var(--wl-on-picture)); }
.wl-moment circle.wl-moment-core { fill: color-mix(in srgb, var(--ink) 30%, var(--wl-on-picture)); stroke: none; }
.wl-moment-tail { fill: var(--ink); opacity: .5; }
.wl-moment-head { fill: var(--ink); }
.wl-moment-head.is-thing { fill: var(--wl-picture-shade); stroke: var(--ink); }
.wl-moment-glow { fill: var(--ink); opacity: .3; }
.wl-moment-shadow { fill: var(--wl-picture-shade); opacity: .5; }
.wl-moment-cone { fill: color-mix(in srgb, var(--ink) 28%, transparent); stroke: var(--ink); stroke-opacity: .3; stroke-linejoin: round; }
.wl-moment-ring { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.wl-moment-ring.is-flash { fill: color-mix(in srgb, var(--ink) 45%, transparent); stroke: none; }
.wl-moment-ring.is-burst { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.wl-moment-mote { fill: var(--ink); }
/* What travels goes from the one who acts to where it ends in the time it takes to land; a bolt gathers speed, and
   a throw lifts toward you and comes down. */
.wl-moment-fly { animation: wl-moment-fly var(--lands) linear var(--t0) both; }
.wl-moment.is-bolt .wl-moment-fly { animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
.wl-moment-lift { animation: wl-moment-lift var(--lands) ease-in-out var(--t0) both; }
.wl-moment-ripple { animation: wl-moment-ripple var(--lands) var(--wl-ease-out) calc(var(--t0) + var(--i, 0) * 60ms) both; }
.wl-moment-beam { animation: wl-moment-beam 640ms var(--wl-ease-out) var(--t0) both; }
.wl-moment-cone { animation: wl-moment-cone 620ms var(--wl-ease-out) var(--t0) both; }
/* Where it lands: a cut drawn across, claws one after another, a glow, light rising, rings when it lands. */
.wl-moment-cut { stroke-dasharray: 1; animation: wl-moment-cut 560ms var(--wl-ease-out) calc(var(--t0) + var(--i, 0) * 45ms) both; }
.wl-moment-glow.is-swell { animation: wl-moment-swell 640ms var(--wl-ease-out) var(--t0) both; }
.wl-moment-mote { animation: wl-moment-rise 960ms var(--wl-ease-out) calc(var(--t0) + var(--i, 0) * 70ms) both; }
.wl-moment-ring { animation: wl-moment-ring 520ms var(--wl-ease-out) calc(var(--t0) + var(--lands) + var(--i, 0) * 90ms) both; }
.wl-moment.is-miss :is(.wl-moment-cut, .wl-moment-glow) { opacity: .55; }
@keyframes wl-moment-fly { 0% { transform: translateX(var(--from)); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(var(--dist)); opacity: 0; } }
@keyframes wl-moment-lift { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
@keyframes wl-moment-ripple { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wl-moment-beam { 0% { transform: scaleX(0); opacity: 1; } 22% { transform: scaleX(1); opacity: 1; } 60% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes wl-moment-cone { 0% { transform: scale(.1); opacity: 1; } 42% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.03); opacity: 0; } }
@keyframes wl-moment-cut { 0% { stroke-dashoffset: 1; opacity: 1; } 30% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes wl-moment-swell { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: .5; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes wl-moment-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(var(--up)); opacity: 0; } }
@keyframes wl-moment-ring { 0% { transform: scale(.3); opacity: 0; } 8% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* Miss and Critical: a word where no number says it, the same size at any zoom, as the numbers are. */
.wl-fight-word { position: absolute; z-index: 6; padding: 0 var(--sp-2); transform-origin: 0 0; transform: scale(calc(1 / var(--zoom, 1))) translate(-50%, calc(-100% - 20px + var(--wl-rise))); border: 1px solid var(--wl-line); border-radius: var(--r-pill); background: var(--wl-raised); color: var(--wl-text-2); font: 700 12px/20px var(--wl-font-ui); letter-spacing: .02em; white-space: nowrap; pointer-events: none; animation: wl-fight-word 1300ms var(--wl-ease-out) both; }
.wl-fight-word.is-crit { transform: scale(calc(1 / var(--zoom, 1))) translate(-50%, calc(-100% - 46px + var(--wl-rise))); border-color: color-mix(in srgb, var(--wl-warning) 60%, var(--wl-line)); color: var(--wl-warning); }
@keyframes wl-fight-word { 0% { opacity: 0; --wl-rise: 6px; } 14% { opacity: 1; --wl-rise: 0px; } 72% { opacity: 1; } 100% { opacity: 0; --wl-rise: -10px; } }
/* With reduced motion nothing travels: only where it lands fades in and out. */
@media (prefers-reduced-motion: reduce) {
  .wl-moment :is(.wl-moment-fly, .wl-moment-beam, .wl-moment-cone) { display: none; }
  .wl-moment *, .wl-fight-word { animation-name: wl-moment-fade; }
  @keyframes wl-moment-fade { 0% { opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
}
