/* FightUI styles (fightui.js). Every rule sits under the .fu root, so nothing reaches game.css; the kit's own hk- parts
   (kit.css: frames, icons, bars, sheet, buttons) are reused as they are. Card sizes come from fightui.js layout().
   Ported from demo/variants/mockups/fight-screen/fight.css. */
.fu { position: fixed; inset: 0; z-index: 30; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
.fu button { font: inherit; color: inherit; }
.fu .hk-bar { position: relative; }
.fu .fu-cn.is-gain-hp .hk-icon { color: var(--hk-blood); }
.fu .fu-cn.is-eff .hk-icon { color: var(--hk-bone); }
.fu .fu-cn.is-eff.is-fire .hk-icon { color: #f0a050; }
.fu .fu-cn.is-eff.is-heal .hk-icon { color: var(--hk-blood); }
.fu .fu-cn.is-eff.is-mana .hk-icon { color: var(--hk-mana); }
.fu .fu-cn.is-armour { background-color: #2b2f33; }
.fu .fu-floor { appearance: none; border: 0; cursor: pointer; flex: none; width: 52px; min-height: 52px; padding: 4px; display: grid; place-items: center;
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone);
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-floor img { width: 40px; height: 40px; object-fit: cover; }
.fu .fu-floor.is-off img { filter: grayscale(1) brightness(.62); }   /* greyed as a greyed move card's picture: still readable */
.fu .fu-endbar.is-off { filter: grayscale(1) brightness(.6); }
/* (a url inside --hk-icon resolves against kit.css, so these set the mask image directly) */
.fu .fu-i-stamina { -webkit-mask: url("fightui/icons/stamina.webp?v=ec80804bb75c") center / contain no-repeat; mask: url("fightui/icons/stamina.webp?v=ec80804bb75c") center / contain no-repeat; }
.fu .fu-i-ward { -webkit-mask: url("fightui/icons/ward.webp?v=e12f3df7bcc4") center / contain no-repeat; mask: url("fightui/icons/ward.webp?v=e12f3df7bcc4") center / contain no-repeat; }
.fu .fu-i-hook { -webkit-mask: url("fightui/icons/hook.webp?v=35bcbe0138d4") center / contain no-repeat; mask: url("fightui/icons/hook.webp?v=35bcbe0138d4") center / contain no-repeat; }
.fu .fu-i-rise { -webkit-mask: url("fightui/icons/rise.webp?v=5a426280863a") center / contain no-repeat; mask: url("fightui/icons/rise.webp?v=5a426280863a") center / contain no-repeat; }
.fu .fu-i-cleave { -webkit-mask: url("fightui/icons/cleave.webp?v=eb5ff2d27b47") center / contain no-repeat; mask: url("fightui/icons/cleave.webp?v=eb5ff2d27b47") center / contain no-repeat; }
.fu .fu-i-burst { -webkit-mask: url("fightui/icons/burst.webp?v=92b2ff75e3b8") center / contain no-repeat; mask: url("fightui/icons/burst.webp?v=92b2ff75e3b8") center / contain no-repeat; }


/* drag to play: no pan, pinch or rubber-band inside the game; the sheet keeps its own vertical scroll */
.fu .fu-app { touch-action: none; }
.fu .fu-sheet { touch-action: pan-y; }
.fu .fu-app { position: fixed; inset: 0; display: grid; gap: 8px; padding: calc(6px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom)); box-sizing: border-box; }

/* ---------- top: where, the three resources with the damage warning, pile, menu ---------- */
.fu .fu-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.fu .fu-where, .fu .fu-pile { appearance: none; border: 0; background: none; padding: 0 6px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
/* a long delve and room name wraps at its dots (delve · depth · room) instead of pushing the round counter off the screen */
.fu .fu-where .fu-pl { font: 600 15px/1.15 var(--hk-title); letter-spacing: .05em; color: var(--hk-bone); min-width: 0; text-align: left; }
.fu .fu-where .fu-plp { white-space: nowrap; }
.fu .fu-where .fu-rd { flex: none; display: inline-flex; align-items: center; gap: 3px; font: 700 16px/1 var(--hk-text); color: var(--hk-bone-dim); }
.fu .fu-where .fu-rd .hk-icon { width: 15px; height: 15px; }
/* the stair's depth track: the depths behind you dim, the next one lit, the master's last */
.fu .fu-where .fu-track { gap: 2px; }
.fu .fu-track .fu-tk { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 20px; border-radius: 10px; padding: 0 3px; }
.fu .fu-track .fu-tk.is-done { opacity: .45; }
.fu .fu-track .fu-tk.is-next { color: var(--hk-bone); box-shadow: inset 0 0 0 1.5px var(--hk-bone); }
.fu .fu-track .fu-tkd { width: 6px; height: 1.5px; background: currentColor; opacity: .5; }
.fu .fu-pile { gap: 4px; font: 700 16px/1 var(--hk-text); color: var(--hk-bone-dim); margin-left: auto; }
.fu .fu-pile .hk-icon { width: 22px; height: 22px; }
/* a delve's clock and raid (the game's own chips) with the pile or light, at the row's right end */
.fu .fu-time { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fu .fu-time .hk-chip { padding: 0 8px 0 6px; }
.fu .fu-time .fu-pile { margin-left: 0; }
.fu .fu-stats { display: flex; align-items: stretch; gap: 6px; min-width: 0; }

.fu .fu-res { appearance: none; border: 0; cursor: pointer; position: relative; min-height: 44px; min-width: 44px; padding: 4px 10px 5px 8px; box-sizing: border-box;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 6px; align-items: center;
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone);
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-res .hk-icon { width: 22px; height: 22px; grid-row: 1 / span 2; }
.fu .fu-res-hp .hk-icon { color: var(--hk-blood); } .fu .fu-res-st .hk-icon { color: var(--hk-stamina); } .fu .fu-res-mp .hk-icon { color: var(--hk-mana); }
.fu .fu-res .fu-num { font: 700 20px/1 var(--hk-text); font-variant-numeric: tabular-nums; color: var(--hk-bone); white-space: nowrap; }
.fu .fu-res .fu-num small { font-size: 12px; font-weight: 500; color: var(--hk-bone-faint); }
.fu .fu-res .hk-bar { height: 7px; min-width: 36px; grid-column: 2; }
.fu .fu-res-hp { flex: 1.5 1 0; } .fu .fu-res-st, .fu .fu-res-mp { flex: 1 1 0; }
/* the part of health that ending the round takes: a darker, hatched stretch of the bar */
.fu .fu-res .hk-bar .fu-ghost { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); z-index: 1;
  background: repeating-linear-gradient(-45deg, rgba(20, 4, 2, .75) 0 3px, rgba(20, 4, 2, .35) 3px 6px); }
/* saved stamina: what the next round starts with if the round ended now, past what is left: a faint stretch beyond the fill */
.fu .fu-res .hk-bar .fu-ghost.fu-save { background: repeating-linear-gradient(-45deg, rgba(210, 196, 159, .55) 0 3px, rgba(210, 196, 159, .2) 3px 6px); }

/* the damage warning: one plate beside health, icon + number; a skull when ending the round kills you */
.fu .fu-warn { appearance: none; border: 0; cursor: pointer; min-height: 44px; min-width: 52px; padding: 0 10px 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none;
  color: var(--hk-bone); font: 700 20px/1 var(--hk-text); font-variant-numeric: tabular-nums;
  background: linear-gradient(rgba(255, 220, 200, .08), rgba(0, 0, 0, .3)), url("assets/ui/textures/umber.webp?v=d5e58909ddf9") center / 160px, #6e2a20; background-blend-mode: normal, soft-light, normal;
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-warn .hk-icon { width: 20px; height: 20px; color: #f1c9b8; }
.fu .fu-warn .hk-icon.fu-g { width: 18px; height: 18px; color: var(--hk-bone-dim); }
.fu .fu-warn .hk-icon.fu-t { width: 18px; height: 18px; color: var(--hk-bone-dim); margin-right: -2px; }
.fu .fu-warn.is-dead { background-color: #8d1f14; animation: fu-throb 1.6s ease-in-out infinite; }
@keyframes fu-throb { 50% { filter: brightness(1.35); } }

/* ---------- cards: picture first, name, values only in the corners ---------- */
.fu .fu-card { --w: var(--fu-rw); --h: var(--fu-rh); appearance: none; position: relative; flex: none; width: var(--w); height: var(--h); padding: 0; margin: 0; cursor: pointer; overflow: hidden; box-sizing: border-box;
  border: var(--hk-card-frame) solid transparent; border-image: url("assets/ui/frames/frame-ash.webp?v=e763be59fc5a") var(--hk-frame-slice) / var(--hk-card-frame) / 0 round;
  background: var(--hk-soot); background-clip: padding-box; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); transition: transform .12s, filter .12s;
  --c: clamp(24px, calc(var(--w) * .3), 38px); }
.fu .fu-card .fu-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; pointer-events: none; }
.fu .fu-card .fu-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 4px calc(var(--c) + 4px); text-align: center; pointer-events: none;
  font: 600 clamp(11px, calc(var(--w) * .13), 17px) / 1.1 var(--hk-title); letter-spacing: .02em; color: var(--hk-bone);
  background: linear-gradient(transparent, rgba(10, 11, 12, .78) 40%, rgba(10, 11, 12, .94)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu .fu-cn { position: absolute; z-index: 2; height: var(--c); min-width: var(--c); box-sizing: border-box; padding: 0 4px 0 2px; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  font: 800 calc(var(--c) * .64) / 1 var(--hk-text); color: var(--hk-bone); font-variant-numeric: tabular-nums; pointer-events: none;
  background: url("assets/ui/textures/umber.webp?v=d5e58909ddf9") center / 80px, #2a211b; background-blend-mode: soft-light;
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-cn .hk-icon { width: max(18px, calc(var(--c) * .62)); height: max(18px, calc(var(--c) * .62)); }
.fu .fu-cn-tl { top: 2px; left: 2px; } .fu .fu-cn-tr { top: 2px; right: 2px; } .fu .fu-cn-bl { bottom: 2px; left: 2px; } .fu .fu-cn-br { bottom: 2px; right: 2px; }
.fu .fu-cn.is-mark { padding: 0; width: var(--c); background-color: #1d2226; }
.fu .fu-cn.is-mark .hk-icon { width: max(18px, calc(var(--c) * .78)); height: max(18px, calc(var(--c) * .78)); color: var(--hk-bone); }
.fu .fu-cn.is-hit { background-color: #6e2a20; } .fu .fu-cn.is-hit .hk-icon { color: #f1c9b8; }
/* a Smash (#t7665): hitting it does not stop it; its own icon and gold mark it apart from an ordinary hit */
.fu .fu-cn.is-smash { background-color: #9a2416; } .fu .fu-cn.is-smash .hk-icon, .fu .fu-cn.is-smash b { color: #f3c34f; }
.fu .fu-cn.is-foes .hk-icon { color: var(--hk-bone); }   /* a count of monsters: the plain plate, never the damage red */
.fu .fu-cn-br .hk-icon { color: var(--hk-blood); }
.fu .fu-rc .fu-cn-br { background-color: #1d2226; } .fu .fu-rc .fu-cn-br .hk-icon { color: #d4574a; }
.fu .fu-cn.is-hurt b { color: var(--hk-amber-hi); }
.fu .fu-cn.is-preview { outline: 2px solid var(--hk-amber-hi); outline-offset: -2px; animation: fu-throb 1s ease-in-out infinite; }
.fu .fu-cn.is-cost .hk-icon { color: var(--hk-stamina); } .fu .fu-cn.is-mp .hk-icon { color: var(--hk-mana); }
.fu .fu-cn.is-cost { background-color: #2b2a24; } .fu .fu-cn.is-mp { background-color: #1f2b33; }
.fu .fu-cn.is-gain .hk-icon { color: var(--hk-mana); }
.fu .fu-cn.is-count .hk-icon { color: var(--hk-bone-dim); }
/* a count you carry (Herb): the number on two stacked plates */
.fu .fu-cn.is-stack { -webkit-mask: none; mask: none; background: none; padding: 0; width: calc(var(--c) + 5px); height: calc(var(--c) + 5px); }
.fu .fu-cn.is-stack .fu-st { position: absolute; width: var(--c); height: var(--c); right: 0; top: 0; background: url("assets/ui/textures/umber.webp?v=d5e58909ddf9") center / 80px, #8a7560; background-blend-mode: soft-light;
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-cn.is-stack .fu-st + .fu-st { right: 5px; top: 5px; background-color: #2a211b; }
.fu .fu-cn.is-stack b { position: absolute; right: 5px; top: 5px; width: var(--c); height: var(--c); display: grid; place-items: center; }
/* move cards are small (a belt holds up to 16): the corner plates hug the frame so two fit side by side on a 76 px card */
.fu .fu-mv { --c: clamp(25px, calc(var(--w) * .3), 38px); }   /* 25 px keeps the corner number at 16 px (0.64 of the plate) */
.fu .fu-mv .fu-cn { padding: 0 3px 0 1px; } .fu .fu-mv .fu-cn-tl { top: 1px; left: 1px; } .fu .fu-mv .fu-cn-tr { top: 1px; right: 1px; } .fu .fu-mv .fu-cn-bl { bottom: 1px; left: 1px; } .fu .fu-mv .fu-cn-br { bottom: 1px; right: 1px; }
.fu .fu-mv .fu-pic { object-position: 50% 30%; }
.fu .fu-cn.is-lethal { background-color: #8d1f14; padding: 0; width: var(--c); } .fu .fu-cn.is-lethal .hk-icon { color: #fff0e8; width: calc(var(--c) * .75); height: calc(var(--c) * .75); }

.fu .fu-card.is-target { border-image-source: url("assets/ui/frames/frame-amber.webp?v=0d3aaa1fa1a5"); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(214, 156, 92, .5), 0 0 18px rgba(214, 156, 92, .4), 0 8px 18px rgba(0, 0, 0, .6); }
.fu .fu-card.is-gone .fu-pic { filter: grayscale(1) brightness(.4); }
.fu .fu-card:active { transform: scale(.97); }

/* move cards: the painted glyph is the picture */
.fu .fu-mv { --w: var(--fu-mw); --h: var(--fu-mh);
  background: radial-gradient(ellipse at 50% 40%, rgba(143, 160, 167, .22), transparent 70%), linear-gradient(rgba(20, 22, 24, .3), rgba(12, 13, 15, .8)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 200px, var(--hk-stone); background-clip: padding-box; }
/* the move's picture: the painted ground with its glyph, full bleed like the art of a room card; the glyph sits above the name */
.fu .fu-mv .fu-glyph { position: absolute; inset: 0; padding-bottom: 34%; box-sizing: border-box; display: grid; place-items: center; pointer-events: none; }
.fu .fu-mv .fu-glyph .hk-icon { width: calc(var(--w) * .52); height: calc(var(--w) * .52); max-height: 100%; color: var(--hk-bone); filter: drop-shadow(0 2px 3px #000); }
.fu .fu-mv.is-armed { border-image-source: url("assets/ui/frames/frame-amber.webp?v=0d3aaa1fa1a5"); transform: translateY(-4px); }
.fu .fu-mv.is-lethal { box-shadow: 0 0 0 2px #8d1f14, 0 0 16px rgba(170, 30, 20, .55); }
/* greyed: still a card with its corners; value drops so it differs without colour */
.fu .fu-card.is-off .fu-pic, .fu .fu-card.is-off .fu-glyph { filter: grayscale(1) brightness(.42); }
.fu .fu-card.is-off .fu-nm { color: var(--hk-bone-faint); }
.fu .fu-card.is-off .fu-cn { filter: grayscale(1) brightness(.7); }
.fu .fu-card.is-off { box-shadow: none; }
/* the move cards are small (69x79 on a phone): light see-through corners and a name without a dark band, so the picture still reads around them */
.fu .fu-mv .fu-cn:not(.is-stack) { background: rgba(14, 13, 12, .6); -webkit-mask: none; mask: none; border-radius: 5px; }
.fu .fu-mv .fu-cn.is-lethal { background-color: #8d1f14; }
.fu .fu-mv .fu-nm { padding: 0 2px; bottom: calc(var(--c) + 1px); background: none; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 1px 2px #000; }
.fu .fu-mv.is-off .fu-pic, .fu .fu-mv.is-off .fu-glyph { filter: grayscale(1) brightness(.62); }
.fu .fu-i-swap { -webkit-mask: url("fightui/icons/swap.webp?v=69a846800b7c") center / contain no-repeat; mask: url("fightui/icons/swap.webp?v=69a846800b7c") center / contain no-repeat; }
/* Bleed is blood: its mark is tinted, apart from the bone-white marks and the blue of mana */
.fu .fu-cn .hk-icon.fu-i-bleed { color: #d4574a; }

/* ---------- the room row, the move panel, the End bar ---------- */
.fu .fu-room { display: grid; grid-template-columns: repeat(var(--fu-rc, 4), var(--fu-rw)); grid-auto-rows: var(--fu-rh); justify-content: center; align-content: center; gap: 8px; min-height: 0; }
/* a board too full to fit at a readable size scrolls in its own row (fightui.js fitMeasured), never over the bars */
.fu .fu-room.is-scroll { overflow-y: auto; align-content: start; touch-action: pan-y; overscroll-behavior: contain; }
.fu .fu-moves { display: grid; grid-template-columns: repeat(var(--fu-mc, 4), var(--fu-mw)); grid-auto-rows: var(--fu-mh); gap: 8px; justify-content: center; align-content: end; }
/* the End row: Leave (a door, only before your first move) and End round */
.fu .fu-endrow { display: flex; gap: 8px; min-width: 0; }
.fu .fu-door { appearance: none; border: 0; cursor: pointer; flex: none; width: 56px; min-height: 52px; display: grid; place-items: center; color: var(--hk-bone);
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone);
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-door .hk-icon { width: 26px; height: 26px; }
.fu .fu-door.is-off .hk-icon { color: var(--hk-bone-faint); opacity: .55; }
.fu .fu-endbar { appearance: none; border: 0; cursor: pointer; min-height: 52px; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #23170e; font: 700 17px/1 var(--hk-title); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(rgba(255, 230, 180, .25), rgba(120, 60, 10, .25)), url("assets/ui/textures/umber.webp?v=d5e58909ddf9") center / 200px, var(--hk-amber); background-blend-mode: normal, soft-light, normal;
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-endbar .hk-icon { width: 24px; height: 24px; }
.fu .fu-endbar.is-lethal { color: #fff0e8; background-color: #8d1f14; animation: fu-throb 1.6s ease-in-out infinite; }
.fu .fu-endbar.is-armed { filter: brightness(1.15); }

/* portrait phone: top / stats / room / moves / End */
.fu[data-fu-mode="port"] .fu-app { grid-template-rows: auto 1fr auto auto; }
.fu[data-fu-mode="port"] .fu-top { gap: 4px 6px; }
.fu[data-fu-mode="port"] .fu-stats { order: 5; flex: 1 0 100%; }
.fu[data-fu-mode="port"] .fu-room { align-items: center; }

/* landscape phone: one top row; cards left, moves right; End across the bottom */
.fu[data-fu-mode="land"] .fu-app { grid-template-columns: 1fr var(--fu-right); grid-template-rows: auto 1fr auto; padding-left: calc(10px + env(safe-area-inset-left)); padding-right: calc(10px + env(safe-area-inset-right)); }
.fu[data-fu-mode="land"] .fu-top { grid-column: 1 / -1; flex-wrap: nowrap; }
.fu[data-fu-mode="land"] .fu-stats { flex: 1 1 auto; max-width: 480px; }
.fu[data-fu-mode="land"] .fu-where .fu-pl { font-size: 14px; }
.fu[data-fu-mode="land"] .fu-room { grid-column: 1; }
.fu[data-fu-mode="land"] .fu-moves { grid-column: 2; align-content: center; gap: 6px; }
.fu[data-fu-mode="land"] .fu-endrow { grid-column: 1 / -1; } .fu[data-fu-mode="land"] .fu-endbar, .fu[data-fu-mode="land"] .fu-door { min-height: 48px; }

/* desktop: centred table */
.fu[data-fu-mode="desk"] .fu-app { grid-template-columns: var(--fu-cw); justify-content: center; grid-template-rows: auto 1fr auto auto; gap: 16px; padding-top: 16px; padding-bottom: 20px; }
.fu[data-fu-mode="desk"] .fu-top { flex-wrap: nowrap; gap: 12px; }
.fu[data-fu-mode="desk"] .fu-stats { flex: 0 1 680px; gap: 10px; }
.fu[data-fu-mode="desk"] .fu-top:has(.fu-time) .fu-where { flex: none; }   /* a delve's clock in the row: the bars give way, not the place's name */
.fu[data-fu-mode="desk"] .fu-res { min-height: 54px; } .fu[data-fu-mode="desk"] .fu-res .fu-num { font-size: 26px; } .fu[data-fu-mode="desk"] .fu-res .fu-num small { font-size: 15px; }
.fu[data-fu-mode="desk"] .fu-res .hk-icon { width: 28px; height: 28px; } .fu[data-fu-mode="desk"] .fu-warn { min-height: 54px; font-size: 26px; } .fu[data-fu-mode="desk"] .fu-warn .hk-icon { width: 24px; height: 24px; }
.fu[data-fu-mode="desk"] .fu-where .fu-pl { font-size: 18px; }
.fu[data-fu-mode="desk"] .fu-moves { gap: 12px; }
.fu[data-fu-mode="desk"] .fu-room { gap: 16px; }
.fu[data-fu-mode="desk"] .fu-endrow { width: calc(var(--fu-mw) * var(--fu-mc) + (var(--fu-mc) - 1) * 12px); justify-self: center; }
.fu[data-fu-mode="desk"] .fu-endbar, .fu[data-fu-mode="desk"] .fu-door { min-height: 60px; } .fu[data-fu-mode="desk"] .fu-endbar { font-size: 19px; }

/* ---------- the explanation sheet: covers the move panel, never the monsters ---------- */
.fu .fu-sheet { max-height: 58vh; max-height: 58dvh; }
.fu .hk-sheet__art { width: 30%; max-width: 132px; }
.fu .fu-shglyph { flex: none; width: 76px; height: 76px; display: grid; place-items: center; border: 6px solid transparent; border-image: url("assets/ui/frames/frame-ash.webp?v=e763be59fc5a") 16 / 6px / 0 round; background: var(--hk-soot); }
.fu .fu-shglyph .hk-icon { width: 46px; height: 46px; }
.fu .fu-shglyph.is-off .hk-icon { color: var(--hk-bone-faint); }
.fu .hk-sheet__art.is-off { filter: grayscale(1) brightness(.55); }   /* a greyed move: its painting greys out, as on the card front */
.fu .hk-sheet__body p { margin: 0 0 6px; }
.fu .fu-bad, .fu .fu-why { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; font: 600 16px/1.35 var(--hk-text); }
.fu .fu-bad { color: #ffd9cc; background: rgba(141, 31, 20, .55); }
.fu .fu-why { color: var(--hk-bone); background: rgba(69, 80, 86, .55); }
.fu .fu-bad .hk-icon, .fu .fu-why .hk-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.fu[data-fu-mode="land"] .fu-sheet { left: auto; right: 0; top: 0; bottom: 0; width: var(--fu-sheetw, calc(var(--fu-right) + 20px)); max-height: none; transform: translateX(105%); opacity: 1; pointer-events: auto; }
.fu[data-fu-mode="land"] .fu-sheet.is-open { transform: none; }
/* the side panel fills the screen's height: its close row sits at the panel's foot, not under a short text; the text keeps
   its own block (fu-sheet-in), so its spacing is the same as in a sheet that is not a column */
.fu[data-fu-mode="land"] .fu-sheet { display: flex; flex-direction: column; }
.fu[data-fu-mode="land"] .fu-sheet > .fu-sheet-in { flex: none; }
.fu[data-fu-mode="land"] .fu-sheet > .hk-foot { margin-top: auto; }
.fu[data-fu-mode="land"] .hk-sheet__head { padding-right: 40px; }
.fu[data-fu-mode="land"] .hk-sheet__art { width: 84px; }
.fu[data-fu-mode="desk"] .fu-sheet { top: auto; bottom: 0; left: 50%; width: 600px; max-height: 50vh; transform: translate(-50%, 105%); opacity: 1; }
.fu[data-fu-mode="desk"] .fu-sheet.is-open { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { .fu-warn.is-dead, .fu .fu-endbar.is-lethal, .fu .fu-cn.is-preview { animation: none; } .fu .pop { animation-duration: .01s; } }

/* drag to play */
.fu .fu-mv.is-lifted, .fu .fu-rc.is-lifted { opacity: .3; }
.fu .fu-ghost-card { position: fixed; z-index: 80; margin: 0; pointer-events: none; transition: none; transform-origin: 0 0; opacity: .94; box-shadow: 0 18px 32px rgba(0, 0, 0, .75); }
/* while a card is dragged, only the monster under it glows: the tap target's frame steps back */
.fu.is-dragging .fu-card.is-target:not(.is-drop-ok) { border-image-source: url("assets/ui/frames/frame-ash.webp?v=e763be59fc5a"); transform: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .6); }
.fu .fu-card.is-drop-ok { border-image-source: url("assets/ui/frames/frame-amber.webp?v=0d3aaa1fa1a5"); transform: scale(1.05); box-shadow: 0 0 0 2px var(--hk-amber-hi), 0 0 26px rgba(214, 156, 92, .75), 0 8px 18px rgba(0, 0, 0, .6); }
.fu .fu-card.is-drop-no { filter: saturate(.35) brightness(.6); box-shadow: 0 0 0 2px #8d1f14; }
.fu .fu-room.is-drop-ok { outline: 2px dashed rgba(214, 156, 92, .75); outline-offset: 4px; border-radius: 10px; }
/* a lifted pack card: the floor's place in the end row, where it can be dropped (fightui.js bind) */
.fu .fu-floorzone { border: 1.5px dashed rgba(214, 156, 92, .55); border-radius: 6px; background: rgba(0, 0, 0, .3); color: var(--hk-bone); }
.fu .fu-floor.is-drop-ok { outline: 2px solid var(--hk-amber-hi); box-shadow: 0 0 14px rgba(243, 197, 130, .6); }
.fu.is-dragging, .fu.is-dragging * { cursor: grabbing !important; }
.fu .fu-note { position: fixed; z-index: 85; max-width: min(320px, 90vw); box-sizing: border-box; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); pointer-events: none; background: rgba(40, 46, 50, .96); animation: fu-note 2.8s ease-out forwards; }
@keyframes fu-note { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- v22: keyword marks, status, pack, fight log, the stair ---------- */
.fu .fu-i-venom { -webkit-mask: url("fightui/icons/venom.webp?v=09174a6d109b") center / contain no-repeat; mask: url("fightui/icons/venom.webp?v=09174a6d109b") center / contain no-repeat; }
.fu .fu-i-chill { -webkit-mask: url("fightui/icons/chill.webp?v=477464948cb4") center / contain no-repeat; mask: url("fightui/icons/chill.webp?v=477464948cb4") center / contain no-repeat; }
.fu .fu-i-ethereal { -webkit-mask: url("fightui/icons/ethereal.webp?v=4ddc68303b82") center / contain no-repeat; mask: url("fightui/icons/ethereal.webp?v=4ddc68303b82") center / contain no-repeat; }
.fu .fu-i-brood { -webkit-mask: url("fightui/icons/brood.webp?v=f954faddcd90") center / contain no-repeat; mask: url("fightui/icons/brood.webp?v=f954faddcd90") center / contain no-repeat; }
.fu .fu-i-armour { -webkit-mask: url("fightui/icons/armour.webp?v=8cdf51024383") center / contain no-repeat; mask: url("fightui/icons/armour.webp?v=8cdf51024383") center / contain no-repeat; }
.fu .fu-i-pierce { -webkit-mask: url("fightui/icons/pierce.webp?v=5ce1621271d5") center / contain no-repeat; mask: url("fightui/icons/pierce.webp?v=5ce1621271d5") center / contain no-repeat; }
.fu .fu-i-crush { -webkit-mask: url("fightui/icons/crush.webp?v=4bceb9e45eb3") center / contain no-repeat; mask: url("fightui/icons/crush.webp?v=4bceb9e45eb3") center / contain no-repeat; }
.fu .fu-i-sweep { -webkit-mask: url("fightui/icons/sweep.webp?v=b25ada2317c4") center / contain no-repeat; mask: url("fightui/icons/sweep.webp?v=b25ada2317c4") center / contain no-repeat; }
.fu .fu-i-bleed { -webkit-mask: url("fightui/icons/bleed.webp?v=439437581e37") center / contain no-repeat; mask: url("fightui/icons/bleed.webp?v=439437581e37") center / contain no-repeat; }
.fu .fu-i-blessed { -webkit-mask: url("fightui/icons/blessed.webp?v=ed70123b2ddf") center / contain no-repeat; mask: url("fightui/icons/blessed.webp?v=ed70123b2ddf") center / contain no-repeat; }
.fu .fu-i-quick { -webkit-mask: url("fightui/icons/quick.webp?v=e8fb7335eba0") center / contain no-repeat; mask: url("fightui/icons/quick.webp?v=e8fb7335eba0") center / contain no-repeat; }
.fu .fu-i-stun { -webkit-mask: url("fightui/icons/stun.webp?v=3aa6dfb3d855") center / contain no-repeat; mask: url("fightui/icons/stun.webp?v=3aa6dfb3d855") center / contain no-repeat; }
.fu .fu-i-plate { -webkit-mask: url("fightui/icons/plate.webp?v=e3d65d256a91") center / contain no-repeat; mask: url("fightui/icons/plate.webp?v=e3d65d256a91") center / contain no-repeat; }
.fu .fu-i-weight { -webkit-mask: url("fightui/icons/weight.webp?v=7f7f90a482e7") center / contain no-repeat; mask: url("fightui/icons/weight.webp?v=7f7f90a482e7") center / contain no-repeat; }
.fu .fu-i-tier { -webkit-mask: url("fightui/icons/tier.webp?v=e02da851c68d") center / contain no-repeat; mask: url("fightui/icons/tier.webp?v=e02da851c68d") center / contain no-repeat; }
.fu .fu-i-foes { -webkit-mask: url("fightui/icons/foes.webp?v=4b447d9c7ccd") center / contain no-repeat; mask: url("fightui/icons/foes.webp?v=4b447d9c7ccd") center / contain no-repeat; }
.fu .fu-i-raid { -webkit-mask: url("fightui/icons/raid.webp?v=bc91b2e17103") center / contain no-repeat; mask: url("fightui/icons/raid.webp?v=bc91b2e17103") center / contain no-repeat; }
.fu .fu-i-pick { -webkit-mask: url("fightui/icons/pick.webp?v=74a7a43e742a") center / contain no-repeat; mask: url("fightui/icons/pick.webp?v=74a7a43e742a") center / contain no-repeat; }
.fu .fu-i-spade { -webkit-mask: url("fightui/icons/spade.webp?v=4dd00fee0f09") center / contain no-repeat; mask: url("fightui/icons/spade.webp?v=4dd00fee0f09") center / contain no-repeat; }
.fu .fu-i-sickle { -webkit-mask: url("fightui/icons/sickle.webp?v=de81771d3621") center / contain no-repeat; mask: url("fightui/icons/sickle.webp?v=de81771d3621") center / contain no-repeat; }
.fu .fu-i-rope { -webkit-mask: url("fightui/icons/rope.webp?v=c717b043968c") center / contain no-repeat; mask: url("fightui/icons/rope.webp?v=c717b043968c") center / contain no-repeat; }
.fu .fu-i-boat { -webkit-mask: url("fightui/icons/boat.webp?v=c660fc678e5e") center / contain no-repeat; mask: url("fightui/icons/boat.webp?v=c660fc678e5e") center / contain no-repeat; }
/* one hue per keyword family, the same on cards, in the top bar and in the detail; health red stays health's own */
.fu .hk-icon.fu-i-venom { color: #9ccf6e; } .fu .hk-icon.fu-i-chill { color: #a9d4f2; } .fu .hk-icon.fu-i-ethereal { color: #cfc6ff; } .fu .hk-icon.fu-i-brood { color: #d6ab7d; }
.fu .hk-icon.fu-i-bleed { color: #e0705f; } .fu .hk-icon.fu-i-blessed { color: #ecd58e; } .fu .hk-icon.fu-i-stun { color: #f0e2b0; }
.fu .fu-cn.is-kw { background-color: #1d2226; }
.fu .fu-cn.is-mark.is-kw.has-n { width: auto; padding: 0 4px 0 1px; }
.fu .fu-cn.is-mark.is-kw.has-n .hk-icon { width: max(18px, calc(var(--c) * .62)); height: max(18px, calc(var(--c) * .62)); }
/* a blow the monster takes when the round ends (a Brace, a Parry's riposte): a warm plate with an amber icon, first in its corner */
.fu .fu-cn.is-kw.is-blow { background-color: #6a4418; }
.fu .fu-cn.is-blow .hk-icon { color: var(--hk-amber-hi); }
.fu .fu-cn.is-blow b { color: var(--hk-bone); }
.fu .fu-cn-tr2 { top: calc(var(--c) + 5px); right: 2px; }
.fu .fu-mv .fu-cn-tr2 { top: calc(var(--c) + 3px); right: 1px; }
.fu .fu-cn-tl2 { top: calc(var(--c) + 5px); left: 2px; }
.fu .fu-mv .fu-cn-tl2 { top: calc(var(--c) + 3px); left: 1px; }
.fu .fu-cn.is-more { padding: 0; width: var(--c); background-color: #1d2226; font-size: calc(var(--c) * .5); }
.fu .fu-cn.is-hp .hk-icon { color: var(--hk-blood); } .fu .fu-cn.is-hp { background-color: #3a1c18; }
/* a hand card is too narrow for the stamina plate and "−3" side by side: there the red plate alone says it is a cost */
.fu .fu-mv .fu-cn-tr.is-hp .fu-neg { display: none; } .fu .fu-mv .fu-cn-tr.is-hp { padding: 0 2px 0 0; }
/* Proof: the keyword's icon, struck through (your armour keeps it off) */
.fu .fu-x { position: relative; display: inline-grid; place-items: center; }
.fu .fu-x::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; margin-top: -1.5px; background: #f3ead8; box-shadow: 0 0 0 1px #111; transform: rotate(-38deg); border-radius: 2px; }
.fu .fu-x .hk-icon { opacity: .6; }
/* what is on you: one plate in the stats row, its marks inside */
.fu .fu-status { appearance: none; border: 0; cursor: pointer; flex: none; min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px;
  font: 700 18px/1 var(--hk-text); color: var(--hk-bone); background: rgba(16, 18, 20, .72); border-radius: 4px; }
.fu .fu-status .fu-sx { display: inline-flex; align-items: center; gap: 2px; }
.fu .fu-status .hk-icon { width: 22px; height: 22px; }
/* the pack: a plate at the start of the End row (icon and slots used) */
.fu .fu-pack { appearance: none; border: 0; cursor: pointer; flex: none; min-width: 64px; min-height: 52px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--hk-bone); font: 700 18px/1 var(--hk-text); font-variant-numeric: tabular-nums;
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone);
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-pack .hk-icon { width: 24px; height: 24px; }
.fu .fu-pack small { font-size: 13px; font-weight: 500; color: var(--hk-bone-faint); }
.fu[data-fu-mode="land"] .fu-pack { min-height: 48px; } .fu[data-fu-mode="desk"] .fu-pack { min-height: 60px; }
.fu .fu-pklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fu .fu-pk { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.fu .fu-pk img { width: 44px; height: 44px; object-fit: cover; flex: none; border: 3px solid transparent; border-image: url("assets/ui/frames/frame-ash.webp?v=e763be59fc5a") 16 / 3px / 0 round; }
.fu .fu-pk .fu-pk-n { flex: 1 1 auto; min-width: 0; } .fu .fu-pk .fu-pk-why { display: block; font: 600 13px/1.3 var(--hk-text); color: var(--hk-bone); opacity: .8; } .fu .fu-pk > b { font-variant-numeric: tabular-nums; }
.fu .fu-pk .hk-btn { min-height: 44px; padding: 0 12px; }
.fu .fu-sline { display: flex; gap: 8px; align-items: flex-start; } .fu .fu-sline .hk-icon { flex: none; width: 22px; height: 22px; }
/* the fight log: newest first, a round mark between rounds */
.fu .fu-log { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font: 500 15px/1.3 var(--hk-text); }
.fu .fu-log li { display: flex; gap: 8px; align-items: flex-start; } .fu .fu-log li .hk-icon { flex: none; margin-top: 1px; }
.fu .fu-log .fu-log-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(236, 228, 212, .14); color: var(--hk-bone-dim); font-weight: 700; }
.fu .fu-log:empty { display: none; }
/* the stair: the ways down are the cards */
.fu .fu-app.fu-stair:not(.has-floor) { grid-template-rows: auto 1fr auto; }   /* with a floor: as the won room's rows */
.fu .fu-sc.is-dark .fu-pic { filter: brightness(.45) saturate(.6); }
.fu .fu-sc.is-off .fu-pic { filter: grayscale(1) brightness(.42); }
.fu .fu-cn.is-depth { background-color: #1d2226; }
.fu .fu-minis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fu .fu-mini { position: relative; width: 52px; height: 72px; overflow: hidden; background: var(--hk-soot); border: 3px solid transparent; border-image: url("assets/ui/frames/frame-ash.webp?v=e763be59fc5a") 16 / 3px / 0 round; }
.fu .fu-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fu .fu-mini.is-boss { border-image-source: url("assets/ui/frames/frame-amber.webp?v=0d3aaa1fa1a5"); }
.fu .fu-mini.is-known { opacity: .55; }
.fu .fu-mini b { position: absolute; right: 1px; bottom: 1px; min-width: 18px; padding: 1px 3px; font: 800 13px/1 var(--hk-text); text-align: center; color: var(--hk-bone); background: rgba(16, 18, 20, .85); }
.fu .fu-mini b:empty { display: none; }
.fu .fu-mini.is-mon b { color: #f1c9b8; background: #6e2a20; }
.fu .fu-cn.is-depth .hk-icon { transform: rotate(180deg); }

/* a greyed card's reason on its face: the cause's icon crossed through, in a dark seal on its greyed picture */
.fu .fu-off { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none;
  width: calc(var(--c, 30px) * 1.15); height: calc(var(--c, 30px) * 1.15); border-radius: 50%; display: grid; place-items: center;
  background: rgba(12, 11, 10, .82); box-shadow: 0 0 0 1.5px rgba(214, 200, 170, .55), 0 2px 6px rgba(0, 0, 0, .6); }
.fu .fu-off .fu-x .hk-icon { opacity: 1; color: var(--hk-bone); width: calc(var(--c, 30px) * .7); height: calc(var(--c, 30px) * .7); }
.fu .fu-off .fu-x::after { height: 2.5px; margin-top: -1.25px; }
/* on a move card it takes the effect's corner: the card has no free middle; a floor stack's too, so its picture and
   count stay in view */
.fu .fu-mv .fu-off, .fu .fu-floor .fu-off, .fu .hk-card.is-floor .fu-off { left: 1px; top: auto; bottom: 1px; transform: none; width: var(--c); height: var(--c); }
.fu .fu-mv .fu-off .fu-x .hk-icon, .fu .fu-floor .fu-off .fu-x .hk-icon, .fu .hk-card.is-floor .fu-off .fu-x .hk-icon { width: calc(var(--c) * .66); height: calc(var(--c) * .66); }
.fu .fu-floor, .fu .fu-door { position: relative; }
.fu .fu-floor .fu-off { --c: 20px; }
.fu .hk-card.is-floor .fu-off { --c: 22px; left: 3px; bottom: 3px; }
.fu .hk-card.is-floor.is-off { filter: grayscale(1) brightness(.62); }   /* as a floor stack's greyed picture: still readable */
.fu .hk-card.is-floor.is-off .hk-card__name { padding-bottom: 27px; }   /* the name above the badge, as a card with a corner value */
.fu .fu-door .fu-off { --c: 24px; top: 50%; }
/* active skills in their slots: a socket rim inside the frame, by kind (spells cold silver, techniques dark iron, tool
   skills brass); basics and pack cards have none */
.fu .fu-mv.is-skill { box-shadow: inset 0 0 0 2px var(--rim), inset 0 0 0 4px rgba(0, 0, 0, .55); }
.fu .fu-mv.is-k-spell { --rim: rgba(196, 210, 222, .7); }
.fu .fu-mv.is-k-tech { --rim: rgba(78, 82, 88, .95); }
.fu .fu-mv.is-k-tool { --rim: rgba(176, 134, 72, .85); }
/* the pack in the hand's place: the Pack plate is pressed; "+n" opens the pack list */
.fu .fu-pack.is-on { background: linear-gradient(rgba(214, 156, 92, .28), rgba(0, 0, 0, .5)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone); color: #f3dcb6; }
.fu .fu-more .hk-icon { position: absolute; inset: 18% 25% auto; width: 50%; height: auto; aspect-ratio: 1; color: var(--hk-bone-faint); }
.fu .fu-more .fu-nm { font-size: 20px; } .fu .fu-mv.fu-more .fu-nm { line-height: 1.2; }   /* the box holds the whole word: Cinzel's capitals stand 23 px tall at 20 px */
/* Swap: a plate in the End row showing the spare it swaps to, a swap glyph and its stamina price */
.fu .fu-swap { appearance: none; border: 0; cursor: pointer; flex: none; position: relative; width: 56px; min-height: 52px; padding: 4px; display: grid; place-items: center; color: var(--hk-bone);
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .55)), url("assets/ui/textures/slate.webp?v=77eaf512bb2d") center / 160px, var(--hk-stone);
  -webkit-mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; mask: url("assets/ui/masks/plate.webp?v=70bbb975dac7") center / 100% 100% no-repeat; }
.fu .fu-swap img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.fu .fu-swap .fu-swg { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(14, 13, 12, .8); }
.fu .fu-swap .fu-swc { position: absolute; left: 2px; top: 2px; display: inline-flex; align-items: center; gap: 1px; padding: 0 3px; border-radius: 4px; background: rgba(14, 13, 12, .8); font: 700 13px/18px var(--hk-text); }
.fu .fu-swap .hk-icon--sm { width: 14px; height: 14px; }
.fu .fu-swap.is-armed { transform: translateY(-3px); box-shadow: 0 0 12px rgba(214, 156, 92, .6); }
.fu .fu-swap.is-off img { filter: grayscale(1) brightness(.5); }
.fu[data-fu-mode="land"] .fu-swap { min-height: 48px; } .fu[data-fu-mode="desk"] .fu-swap { min-height: 60px; width: 64px; }
/* a two-word skill name (Second wind, Oil the blade) takes two lines in the hand, as on the Active tab, never an ellipsis */
.fu .fu-mv .fu-nm { white-space: normal; text-overflow: clip; line-height: 1; overflow-wrap: break-word; padding: 0; letter-spacing: 0; }   /* the full width, so a long word (Cauterise, Antidote) stays whole on a 69 px card */
/* a move or pack card's name takes two lines between its corners: the corners shrink to 20 px on a phone (the same from
   83 px cards up) and the name keeps clear of the bottom ones; under 76 px a move's name shrinks with the card, so the
   longest word (Hamstring, Sanctuary) stays whole; a pack card's count is one small badge the size of a corner */
.fu .fu-mv:not(.fu-more) { --c: clamp(20px, calc(var(--w) * .3), 38px); }
.fu .fu-mv:not(.fu-more) .fu-nm { bottom: calc(var(--c) + 4px); }
.fu .fu-mv:not(.fu-more):not(.is-pk) .fu-nm { font-size: max(9px, min(calc(var(--w) * .145), clamp(11px, calc(var(--w) * .13), 17px))); }
/* a room card's name takes two lines rather than an ellipsis, breaking only between words; on a card under 137 px the
   name shrinks with it, so the longest word (Broodqueen, Gatewarden) stays whole on a 115 px card */
.fu .fu-rc .fu-nm { white-space: normal; text-overflow: clip; overflow-wrap: normal; padding-left: 2px; padding-right: 2px;
  font-size: min(clamp(11px, calc(var(--w) * .13), 17px), calc(var(--w) * .124)); }
.fu .fu-mv.is-pk .fu-cn.is-stack { width: var(--c); height: var(--c); }
.fu .fu-mv.is-pk .fu-cn.is-stack .fu-st, .fu .fu-mv.is-pk .fu-cn.is-stack b { width: calc(var(--c) - 3px); height: calc(var(--c) - 3px); }
.fu .fu-mv.is-pk .fu-cn.is-stack .fu-st + .fu-st, .fu .fu-mv.is-pk .fu-cn.is-stack b { right: 3px; top: 3px; }

/* look-alike monsters: their number, left to right, after the name on the board and on every button that names one */
.fu .fu-rc .fu-nm .fu-no { display: inline-block; min-width: 1.15em; padding: 0 .2em; border-radius: 3px; background: rgba(214, 156, 92, .28); color: var(--hk-amber-hi); font-variant-numeric: tabular-nums; }
/* a button that aims at one monster: that monster's picture and health, as its board card shows them */
.fu .hk-sheet__actions .hk-btn.fu-aimbtn { flex-basis: 100%; gap: 6px; white-space: nowrap; }
.fu .fu-aimbtn .fu-aimpic { width: 28px; height: 28px; object-fit: cover; object-position: 50% 42%; border-radius: 3px; flex: none; }
.fu .fu-aimbtn .fu-aimhp { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }

/* ---------- the floor, held for a swap (fightui.js holdHand, floorEl, floorCards) ---------- */
/* the room's floor stacks: one row in the End row that scrolls sideways when they do not fit; a finger moving up lifts
   a stack (drag.js dir "up"), so the row and the rows it sits in let a sideways pan through */
.fu .fu-endrow, .fu .fu-moves.is-spoils { touch-action: pan-x; }
/* End round takes what the row leaves, never less than its words need (its longest word on a line); the strip of floor
   stacks gives up width before that and scrolls */
.fu .fu-endrow .fu-endbar { flex: 1 1 0; min-width: min-content; }
.fu .fu-flstrip { display: flex; gap: 6px; flex: 0 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; }
.fu .fu-flstrip::-webkit-scrollbar { display: none; }
.fu .fu-floor { touch-action: pan-x; }
.fu .fu-fln { position: absolute; right: 3px; bottom: 3px; min-width: 18px; padding: 0 3px; border-radius: 9px; background: #4a3a2a; color: var(--hk-bone); font: 700 11px/18px var(--hk-text); text-align: center; }
.fu .fu-flsw { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(14, 12, 10, .8); }
.fu .fu-flsw .hk-icon { width: 15px; height: 15px; color: var(--hk-amber-hi); }
.fu .fu-floor.is-held, .fu .hk-card.is-floor.is-held { outline: 2px solid var(--hk-amber-hi); outline-offset: -2px; box-shadow: 0 0 16px rgba(243, 197, 130, .65); }
.fu .fu-floor.is-held { transform: translateY(-4px); }
/* the pack's kinds while a stack is held or lifted: each one it can replace glows with the swap mark, the others dim */
.fu .fu-swapto.is-swapto { border-image-source: url("assets/ui/frames/frame-amber.webp?v=0d3aaa1fa1a5"); box-shadow: 0 0 0 2px rgba(214, 156, 92, .45), 0 0 18px rgba(214, 156, 92, .45); }
.fu .fu-swapto.is-off .fu-pic, .fu .fu-swapto.is-swapoff .fu-pic { filter: grayscale(.8) brightness(.55); }
.fu .fu-more { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--hk-bone-dim); }
.fu .fu-pack.is-target { box-shadow: 0 0 0 2px var(--hk-amber-hi), 0 0 16px rgba(243, 197, 130, .6); color: #f3dcb6; }
/* the won room: its floor as a place's floor cards, the pack's kinds below them to swap one in */
.fu .fu-moves.is-spoils { display: flex; flex-direction: column; justify-content: end; gap: 8px; min-width: 0; }
.fu .fu-flcards { justify-content: safe center; touch-action: pan-x; padding-bottom: 2px; }
.fu .fu-swaprow { display: grid; grid-template-columns: repeat(var(--fu-mc, 4), var(--fu-mw)); grid-auto-rows: var(--fu-mh); gap: inherit; justify-content: center; }
/* ---------- the keyword glossary under a sheet's words (keywordBlock): every keyword it names, one plain line each ---------- */
.kw-gloss { margin: 10px 0 4px; padding: 8px 0 0; border-top: 1px solid rgba(236, 228, 212, .18); }
.kw-gloss .kw-line { margin: 0 0 6px; font: 500 15px/1.35 var(--hk-text); color: var(--hk-bone-dim); }
.kw-gloss .kw-line b { color: var(--hk-bone); }
.rv-side .kw-gloss { max-width: 34ch; text-align: left; }
