/* ==========================================================================================
   hud-art.css — the official prep-screen HUD look (local patch, docs/LOCAL-PATCH.md "정비 화면 HUD"), over
   screens/game.css. Only under `.gm.has-hud-art` (js/ui/hudArt.js sets it with the sprite variables when the web manifest
   has the official hudPanel / hudBondItem / prepReady / bondBoardIcon sprites). Geometry from the client's prefabs
   (ui/autochess/[uc]autochessbattle.ab): autochess_hud_panel (round bar 510×68: board 473×40, end circles 103×85 at ±250,
   deco boxes 120×11 at ±162, the 休息一下 pill bg_rest 157×45 in its frame 183×51, round number on bg_round, 🔍 buttons on
   bg_check_btn 81×44 at ±305), autochess_hud_bond_item (83×84: board 80×80, icon 36×36, number 16 px on matte_num
   42×25, name 14 px), panel_prep_ready (ready_bg 152×49 in ready_frame 161×57, icon 25, text 18 px). Same scale as the
   shop (css/shop-art.css): the client's, 1 unit = 1.5 px at 1920×1080 (1280×720 canvas, no scaled parent).
   ========================================================================================== */

/* The one official-look unit (`--ui-u`, docs/LOCAL-PATCH.md 「크기 단위」): 1 unit of the client's 1280×720 canvas
   (CanvasScaler ScaleWithScreenSize, match width) × the PC client's UI scale — StandaloneCanvasScaleHelper
   MIN_SCALE_FACTOR .9 / MAX_SCALE_FACTOR 1 (client constants; setting key UI_SCALER). Responsive [추정]:
   1 (the prefab's 1.5 px at 1920 → 1 px at 1280) up to a 1280×720 frame (rem 66.7 px) — phones / small windows keep
   today's size — then a straight line down to .9 at 1920×1080 (rem 100 px) and .9 above (the KR 3838-wide PC capture:
   🔍 buttons 1649 px apart = 610 units × 2.70 px = .9 × 3838 / 1280). u = .0105 rem + .3 px meets both ends.
   hud-art (--u), shop-art (--u), phase-art (--pu) all take it. */
/* (2nd pass: Settings 「UI 크기」 = `--ui-k`, .9–1, ui/hudArt.js UiScaleSetting) the factor is 1 up to the 1280×720 frame and
   `--ui-k` from 1920×1080: u = (.045k − .03) rem + (3 − 3k) px between, clamped to [.015k rem, .015 rem] — k .9 gives the
   line above (.0105 rem + .3 px), k 1 gives today's .015 rem everywhere. */
:root { --ui-k: .9; --ui-u: clamp(calc(.015rem * var(--ui-k)), calc((.045 * var(--ui-k) - .03) * 1rem + (3 - 3 * var(--ui-k)) * 1px), .015rem); }
.gm.has-hud-art { --u: var(--ui-u, .015rem); }

/* ---- round bar ---- */
.gm.has-hud-art .gtop__center {
  height: calc(var(--u) * 85); width: calc(var(--u) * 692); padding: 0; gap: 0; justify-content: space-between;
  /* centre 34 units under the screen's top (player_info_view: top-anchored, 156 tall; group_hud 44 above its centre) — .gtop's .2rem padding taken back */
  margin-top: calc(var(--u) * -8.5 - .2rem);
  background: none; border: 0; box-shadow: none;
}
.gm.has-hud-art .gtop__center > :not(.tip-wrap):not(.tooltip-anchor) { position: relative; z-index: 1; }
/* the board, the two end circles and the deco boxes (root_bg), centred */
/* (.brackets: upstream's corner brackets use the same pseudo-elements — taken over here) */
.gm.has-hud-art .gtop__center.brackets::before, .gm.has-hud-art .gtop__center::before {
  content: ''; border: 0; right: auto; bottom: auto; position: absolute; z-index: 0; left: 50%; top: 50%; width: calc(var(--u) * 603); height: calc(var(--u) * 85);
  transform: translate(-50%, -50%); pointer-events: none;
  background:
    var(--ha-circle-l) left center / calc(var(--u) * 103) calc(var(--u) * 85) no-repeat,
    var(--ha-circle-r) right center / calc(var(--u) * 103) calc(var(--u) * 85) no-repeat,
    var(--ha-deco-box) calc(var(--u) * 79.5) center / calc(var(--u) * 120) calc(var(--u) * 11) no-repeat,
    var(--ha-deco-box) calc(100% - var(--u) * 79.5) center / calc(var(--u) * 120) calc(var(--u) * 11) no-repeat,
    var(--ha-board) center / calc(var(--u) * 473) calc(var(--u) * 40) no-repeat,
    /* the dark side panels behind 回合 / LP (group_normal frame_left, 150×30 each side) — a band in the screenshots */
    linear-gradient(rgba(6, 9, 8, .62), rgba(6, 9, 8, .62)) center calc(50% + var(--u) * 2) / calc(var(--u) * 560) calc(var(--u) * 34) no-repeat;
}
.gm.has-hud-art .gtop__center.brackets::after, .gm.has-hud-art .gtop__center::after { /* the deco texts over the bar (root_deco) */
  content: ''; right: auto; bottom: auto; position: absolute; z-index: 0; left: 50%; top: 50%; width: calc(var(--u) * 470); height: calc(var(--u) * 56);
  transform: translate(-50%, calc(-50% - var(--u) * 4)); pointer-events: none; display: block; border: 0;
  background:
    var(--ha-deco-1) calc(var(--u) * 21) top calc(var(--u) * 9) / calc(var(--u) * 103) calc(var(--u) * 6) no-repeat,
    var(--ha-deco-2) center top / calc(var(--u) * 53) calc(var(--u) * 5) no-repeat,
    var(--ha-deco-3) calc(100% - var(--u) * 19) top calc(var(--u) * 9) / calc(var(--u) * 103) calc(var(--u) * 6) no-repeat;
}
/* 回合 + number on bg_round (14 px #a8a8a8, the number 20 px #171717) */
.gm.has-hud-art .roundbox { gap: calc(var(--u) * 6); }
.gm.has-hud-art .roundbox__label { font-size: calc(var(--u) * 14); color: #a8a8a8; letter-spacing: .04em; }
.gm.has-hud-art .roundbox__num {
  min-width: calc(var(--u) * 35); height: calc(var(--u) * 22); padding: 0 calc(var(--u) * 6); clip-path: none;
  background: var(--ha-round) center / 100% 100% no-repeat; color: #171717; font-size: calc(var(--u) * 20);
}
/* the HUD counters' font: Novecentowide-Medium as the client's round / HP / kill Text nodes (root_round text_num,
   root_hp text_hp, group_battle text_num: DynFontLoader; docs/rules/ui.md 「HUD 숫자 글꼴」, maintainer decision
   2026-11-11). No free Medium face may be embedded: Lexend Exa (SIL OFL) stands in at the same digit height, 500, its
   digits .06 em wider taken back by the spacing (maintainer decision 2026-11-11) */
.gm.has-hud-art .roundbox__num, .gm.has-hud-art .capsule__kills, .gm.has-hud-art .gtop__center .lp--lg {
  font-family: 'Lexend Exa', 'Novecento Wide', var(--font-num); font-weight: 500; letter-spacing: -.06em;
}
.gm.has-hud-art .capsule__kills b { font-weight: 500; }
/* the phase pill: bg_rest in frame_mid_normal (休息一下: icon_rest + 17 px #40b196); battle / 联防 their own pills */
.gm.has-hud-art .capsule {
  height: calc(var(--u) * 51); min-width: calc(var(--u) * 183); padding: 0 calc(var(--u) * 22); gap: calc(var(--u) * 8); justify-content: center;
  border: 0; border-radius: 0; box-shadow: none;
  /* frame_mid_normal is a 9-slice sprite (183×34, borders top 18 / bottom 12): border-image, not stretched */
  border-image: var(--ha-frame-mid) 18 0 12 fill / calc(var(--u) * 18) 0 calc(var(--u) * 12);
  background: var(--ha-rest) center / calc(var(--u) * 157) calc(var(--u) * 45) no-repeat;
}
.gm.has-hud-art .capsule--combat { background: var(--ha-battle) center / calc(var(--u) * 155) calc(var(--u) * 43) no-repeat; }
.gm.has-hud-art .capsule--unite { background: var(--ha-coop) center / calc(var(--u) * 155) calc(var(--u) * 43) no-repeat; }
.gm.has-hud-art .capsule--boss { background: rgba(10, 14, 12, .85); border: 1px solid rgba(255, 122, 51, .5); border-image: none; }
.gm.has-hud-art .capsule__icon { width: calc(var(--u) * 30); height: calc(var(--u) * 36); }
.gm.has-hud-art .capsule__label { font-size: calc(var(--u) * 17); color: #40b196; letter-spacing: .06em; }
.gm.has-hud-art .capsule__kills { font-size: calc(var(--u) * 18); color: #cecece; }
.gm.has-hud-art .capsule__kills b { font-size: calc(var(--u) * 20); }
/* LP: icon_hp + 20 px #a8a8a8 */
.gm.has-hud-art .gtop__center .lp--lg { font-size: calc(var(--u) * 20); color: #a8a8a8; }
.gm.has-hud-art .gtop__center .lp--lg .lp__icon { width: calc(var(--u) * 16); height: calc(var(--u) * 19); }
.gm.has-hud-art .gtop__center .lp--danger { color: var(--red-premium); }
/* the −N tick on the official bg_lose_hp plate (the HUD's _loseHpGrp; maintainer decision 2026-10-16) */
.gm.has-hud-art .gtop__center .lp__pend {
  padding: .1em .42em; background: var(--ha-lose-hp, #d8262a) center / 100% 100% no-repeat; clip-path: none; box-shadow: none;
}
/* 🔍 buttons on bg_check_btn (81×44); the sprite inside at its own size (35×29, 61×29 with chevrons) */
.gm.has-hud-art .gtop__iconbtn.has-sprite, .gm.has-hud-art .enemybtn.has-sprite,
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-wide, .gm.has-hud-art .enemybtn.has-sprite.is-wide {
  width: calc(var(--u) * 81); height: calc(var(--u) * 44); min-width: 0; border: 0; border-radius: 0; margin-top: calc(var(--u) * -13);
  background: var(--chk-sprite) center / calc(var(--u) * 35) calc(var(--u) * 29) no-repeat, var(--ha-check) center / 100% 100% no-repeat;
}
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-wide, .gm.has-hud-art .enemybtn.has-sprite.is-wide {
  background: var(--chk-sprite) center / calc(var(--u) * 61) calc(var(--u) * 29) no-repeat, var(--ha-check) center / 100% 100% no-repeat;
}
.gm.has-hud-art .gtop__iconbtn.has-sprite:hover, .gm.has-hud-art .enemybtn.has-sprite:hover:not(.is-grey),
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-on { background: var(--chk-sprite) center / calc(var(--u) * 35) calc(var(--u) * 29) no-repeat, var(--ha-check) center / 100% 100% no-repeat; filter: brightness(1.15); box-shadow: none; }
.gm.has-hud-art .enemybtn.has-sprite.is-wide:hover:not(.is-grey) { background: var(--chk-sprite) center / calc(var(--u) * 61) calc(var(--u) * 29) no-repeat, var(--ha-check) center / 100% 100% no-repeat; }

/* ---- 准备就绪 (panel_prep_ready: ready_bg + ready_icon + 18 px black; ready → cancel_bg + cancel_icon + #2f2f2f). The
   button box is the frame (161×57, 9-slice ready_frame 23×20, borders l 9 / b 7 / r 10 / t 8); the plate (152×49, 9-slice
   ready_bg 48×49, borders 23) sits 3.1 units left and 1.3 lower; the text is centred 17.6 right of the plate's centre with
   the icon 19.7 left of the text's left edge (panel_content) — as a row (icon, 7.2 gap, text) centred 1.6 left of the box. ---- */
.gm.has-hud-art .readybtn {
  position: relative; width: calc(var(--u) * 161); min-width: 0; height: calc(var(--u) * 57); padding: 0; gap: calc(var(--u) * 7.2); justify-content: center;
  border: 0; box-shadow: none; color: #000; font-size: calc(var(--u) * 18); letter-spacing: .06em; background: none;
  border-image: var(--ha-ready-frame) 8 10 7 9 fill / calc(var(--u) * 8) calc(var(--u) * 10) calc(var(--u) * 7) calc(var(--u) * 9);
}
.gm.has-hud-art .readybtn::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: calc(var(--u) * 152); height: calc(var(--u) * 49);
  transform: translate(calc(-50% - var(--u) * 3.1), calc(-50% + var(--u) * 1.3));
  border-image: var(--ha-ready) 23 fill / calc(var(--u) * 23);
}
.gm.has-hud-art .readybtn > .readybtn__box, .gm.has-hud-art .readybtn > .readybtn__label { position: relative; left: calc(var(--u) * -1.6); }
.gm.has-hud-art .readybtn { isolation: isolate; }
.gm.has-hud-art .readybtn__box { width: calc(var(--u) * 25); height: calc(var(--u) * 25); border: 0; background: var(--ha-ready-icon) center / contain no-repeat; }
.gm.has-hud-art .readybtn__box .icon { display: none; }
.gm.has-hud-art .readybtn__label { flex: none; }
.gm.has-hud-art .readybtn__key { position: absolute; left: 50%; top: 100%; transform: translate(-50%, calc(var(--u) * 6));
  color: #e8e8e8; background: rgba(20, 20, 20, .85); border-color: rgba(255, 255, 255, .25); }
.gm.has-hud-art .readybtn:hover:not(:disabled) { background: none; filter: brightness(1.08); box-shadow: none; }
/* ready: the cancel plate (cancel_bg 51×49, 9-slice: l 24 / b 22 / r 24 / t 21); no frame */
.gm.has-hud-art .readybtn.is-on { background: none; color: #2f2f2f; border-image: none; }
.gm.has-hud-art .readybtn.is-on::before { border-image: var(--ha-cancel) 21 24 22 24 fill / calc(var(--u) * 21) calc(var(--u) * 24) calc(var(--u) * 22) calc(var(--u) * 24); }
.gm.has-hud-art .readybtn.is-on .readybtn__box { width: calc(var(--u) * 23); height: calc(var(--u) * 23); background-image: var(--ha-cancel-icon); }
.gm.has-hud-art .readybtn:disabled { background: none; color: rgba(0, 0, 0, .6); border-image: none; }
.gm.has-hud-art .readybtn:disabled::before { filter: grayscale(1) brightness(.75); }

/* ---- bond discs (autochess_hud_bond_item) on the bond list's matte ---- */
/* matte_bg 420×96 (at least), the 9-slice matte (360×96, borders l / r 178); the 84-tall items at its top */
/* (2026-10-06 2nd pass) the matte is on the list box; the strip is bond_list_info_view's scroll_view: its viewport grows
   with the items up to `_limitedWidth` 600 units (RectMask2D, softness 15 at the left / right edge), the content scrolls
   sideways — 7 items of 80 fit, the 8th is cut (KR capture: 7 full discs + half of 라테). The 8 / 6 units above / below
   keep the full disc's shadow and the names inside the clip. */
.gm.has-hud-art .gm__bond-list { display: flex; justify-content: center; max-width: 100%; padding: 0 calc(var(--u) * 12) calc(var(--u) * 12); min-width: calc(var(--u) * 420);
  border-image: var(--ha-matte) 0 178 fill / 0 calc(var(--u) * 178); }
.gm.has-hud-art .bstrip { gap: 0; padding: calc(var(--u) * 8) 0 calc(var(--u) * 6); margin: calc(var(--u) * -8) 0 calc(var(--u) * -6); min-width: 0;
  max-width: calc(var(--u) * 600); justify-content: flex-start; background: none; border: 0; border-image: none;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask: linear-gradient(90deg, transparent, #000 calc(var(--u) * 15), #000 calc(100% - var(--u) * 15), transparent);
  mask: linear-gradient(90deg, transparent, #000 calc(var(--u) * 15), #000 calc(100% - var(--u) * 15), transparent); }
.gm.has-hud-art .bstrip::-webkit-scrollbar { display: none; }
.gm.has-hud-art .bstrip:not(.bstrip--empty) { user-select: none; -webkit-user-select: none; }
.gm.has-hud-art .bstrip.is-dragging, .gm.has-hud-art .bstrip.is-dragging * { cursor: grabbing; }
/* local patch: the no-bond hint (BONDS + text) clear of the 15-unit edge fade — it ate the first and last letters */
.gm.has-hud-art .bstrip--empty { padding-left: calc(var(--u) * 15); padding-right: calc(var(--u) * 15); }
/* item width = the LayoutElement's preferred 80 (the layout group controls the width; the RectTransform's 83 is unused) */
.gm.has-hud-art .bslot { flex: none; width: calc(var(--u) * 80); height: calc(var(--u) * 84); }
.gm.has-hud-art .bslot .bond { --disc: calc(var(--u) * 58); position: relative; width: 100%; height: 100%; display: block; }
/* the board (bg 80×80): every bondBoardIcon sprite is 77×77 in the client, but the ring ones (`1_0`, `<max>_<n>` below
   the full disc) are tight-packed — their texture is 64.86×64.86 centred in the 77 rect, and the web PNGs are that
   texture (65 px). Unity draws the padding, so the rings go at 64.86 / 77 = 84.2 % of the board and only the full discs
   at 100 % — stretching both to one box made the rings 14 % bigger than an active disc. */
.gm.has-hud-art .bslot .bond__disc {
  position: absolute; left: 50%; top: calc(50% - var(--u) * 9); width: calc(var(--u) * 80); height: calc(var(--u) * 80); transform: translate(-50%, -50%);
  background: var(--bb) center / var(--bb-sz, 84.2%) var(--bb-sz, 84.2%) no-repeat;
}
.gm.has-hud-art .bslot[data-full] .bond__disc { background-size: var(--bb-sz, 100%) var(--bb-sz, 100%); }
.gm.has-hud-art .bslot .bond__ring { display: none; }
.gm.has-hud-art .bslot .bond__core { width: calc(var(--u) * 36); height: calc(var(--u) * 36); background: none !important; box-shadow: none !important; border: 0; }
.gm.has-hud-art .bslot .bond__icon { width: 100%; height: 100%; filter: brightness(0) invert(.78); }
/* (2026-10-07) the glyph sprites (icon_<bond>, [uc]autochesscommon) are 128×128 rects drawn into the 36-unit icon box,
   their ~100 px textures tight-packed in the middle; the web PNGs are those textures, so filling the box made the glyph
   ~25 % bigger than the client's (CN 联防 capture: glyph ≈ .5 of the ring vs .66 here). Natural px × 36 / 128 units
   (`--nw` / `--nh` from ui/components.js natSizeVars), centred — the textures sit within 1–2 px of the rect's middle. */
.gm.has-hud-art .bslot .bond__icon, .gm.has-hud-art .bpop__disc .bglyph img {
  width: calc(var(--u) * 36 / 128 * var(--nw, 100)); height: calc(var(--u) * 36 / 128 * var(--nh, 100)); max-width: none; max-height: none; object-fit: fill;
}
.gm.has-hud-art .bslot[data-full] .bond__icon { filter: brightness(0); }
/* the stack number on matte_num (42×25, 16 px white), on the ring's lower edge (KR captures: ≈ .75 of the radius under
   the centre; the prefab's 8 units looked too high in play, maintainer 2026-10-06). (2026-10-07) the CN prep capture puts the
   digits' centre .35 of the ring (53 units across) under its centre, over its bottom edge — 15 here gave .27 → 19.5.
   The prefab's 16 px drew the digits .22 of the ring tall in Bender against the capture's .17, so 12.4 units stood in
   (maintainer decision 2026-10-12). The client font is Novecentowide-Medium (text_num's DynFontLoader; docs/rules/ui.md
   「HUD 숫자 글꼴」): in it the prefab's 16 px gives the captures' width — 16 again (maintainer decision 2026-11-11), the
   Lexend Exa standing in for Medium (500, -.06 em; maintainer decision 2026-11-11) */
.gm.has-hud-art .bslot .bond__count {
  position: absolute; left: 50%; top: calc(50% + var(--u) * 19.5); right: auto; bottom: auto; transform: translate(-50%, -50%);
  min-width: calc(var(--u) * 42); height: calc(var(--u) * 25); padding: 0 calc(var(--u) * 4); display: grid; place-items: center;
  background: var(--ha-num) center / 100% 100% no-repeat; border: 0; border-radius: 0; color: #fff; font-size: calc(var(--u) * 16); box-shadow: none;
  font-family: 'Lexend Exa', 'Novecento Wide', var(--font-num); font-weight: 500; letter-spacing: -.06em;
}
/* the name: text_name (74×22 at 31 under the item's centre, 14 px, UpperCenter, line spacing .8) — its line hangs from the
   box's top 20 under the centre, the glyphs ≈ 36 under the disc's centre (CN 联防 capture .73 of the ring; upstream-style
   centring in that box put them 42 under, maintainer 2026-10-07) */
.gm.has-hud-art .bslot .bond__name {
  position: absolute; left: 50%; top: calc(50% + var(--u) * 20); transform: translateX(-50%); font-size: calc(var(--u) * 14); line-height: 1; color: #fff; font-weight: 500;
}
/* the count / next threshold is not on the official disc (its tooltip keeps it) */
.gm.has-hud-art .bslot__count:not(.bslot__off) { display: none; }
.gm.has-hud-art .bslot .bond.is-clickable:hover .bond__core { transform: none; }
.gm.has-hud-art .bslot .bond.is-clickable:hover .bond__disc { filter: brightness(1.15); }

/* the bond list sits centred under the round bar (bond_list_info_view: top-centre anchored, its top 55 units under the screen's top) */
.gm.has-hud-art .gm__bonds { left: 50%; right: auto; transform: translateX(-50%); max-width: calc(100% - 3.2rem); top: calc(var(--u) * 55); }
/* the ready count goes under the key hint */
.gm.has-hud-art .readywrap { gap: calc(var(--u) * 30); }
/* once ready, the players' bars replace the count (panel_prep_ready panel_player under 取消准备: player_bg 163×41 9-sliced
   33 | 33, the player_frame brackets 7×29, one panel_prep_ready_player per player 19.5 apart — player_ready 13×33, white
   15 % until that player is ready, then #00ffc4 72 %; the count of ready players lights the first bars, as the client) */
.readywrap__bars { display: none; }
.gm.has-hud-art.has-hud-ready .readywrap.is-ready .readywrap__count { display: none; }
.gm.has-hud-art.has-hud-ready .readywrap.is-ready .readywrap__bars {
  position: relative; display: flex; align-items: center; justify-content: center; align-self: center; width: calc(var(--u) * 163); height: calc(var(--u) * 41);
  margin-top: calc(var(--u) * -14); box-sizing: border-box; border-style: solid; border-color: transparent; border-width: 0 calc(var(--u) * 33);
  border-image: var(--ha-pr-bg) 0 33 fill / 0 calc(var(--u) * 33); }
.gm.has-hud-art.has-hud-ready .readywrap__bars::before, .gm.has-hud-art.has-hud-ready .readywrap__bars::after { content: ''; position: absolute; top: 50%;
  width: calc(var(--u) * 7); height: calc(var(--u) * 29); margin-top: calc(var(--u) * (-14.5 - 2.2)); background: var(--ha-pr-frame) center / 100% 100% no-repeat; }
.gm.has-hud-art.has-hud-ready .readywrap__bars::before { left: calc(50% + var(--u) * (-42.1 - 2.8 - 3.5)); }
.gm.has-hud-art.has-hud-ready .readywrap__bars::after { left: calc(50% + var(--u) * (53.2 - 2.8 - 3.5)); transform: scaleX(-1); }
.gm.has-hud-art.has-hud-ready .readywrap__bars i { width: calc(var(--u) * 19.5); height: calc(var(--u) * 33); margin-top: calc(var(--u) * -2.84);
  background: rgba(255, 255, 255, .15); -webkit-mask: var(--ha-pr-bar) center / calc(var(--u) * 13) calc(var(--u) * 33) no-repeat;
  mask: var(--ha-pr-bar) center / calc(var(--u) * 13) calc(var(--u) * 33) no-repeat; transition: background-color .33s; }
.gm.has-hud-art.has-hud-ready .readywrap__bars i.is-ready { background: rgba(0, 255, 196, .72); }
/* (2026-10-06 2nd pass) the effects list starts under that count: upstream's fixed 2.4rem put its EFFECTS label / first
   icon over 「준비 완료 n/4」 (and the Space hint at 1280×720). The column's bottom measures 1.21rem + 113.3 units at
   every size (countdown .7rem + gaps in rem, the ready button / hint / count in units) → .1rem under it; the
   readiness reason line adds its own row as upstream does. */
.gm.has-hud-art .gm__effects { top: max(2.4rem, calc(1.31rem + var(--u) * 114)); }
.gm.has-hud-art.has-readywhy .gm__effects { top: calc(max(2.4rem, calc(1.31rem + var(--u) * 114)) + max(.3rem, 16px)); }

/* ---- bond disc, inactive (autochess_hud_bond_item _inactiveColorConfig: name #f4f4f4 at 70 %, stack #b2b2b2) ---- */
.gm.has-hud-art .bslot:not(.is-active) .bond__name { color: rgba(244, 244, 244, .7); }
.gm.has-hud-art .bslot:not(.is-active) .bond__count { color: #b2b2b2; }
.gm.has-hud-art .bslot.has-temp .bond__count { color: #f2c510; } /* 临时层数 (screens/game.css), inactive or not */

/* ---- the bond list's fold tab (bond_list_info_view btn_synergy, `has-hud-fold`): under the open list the small
   btn_close (37×17, "︽") on the bottom edge of the matte (its centre 3 units above it); folded, btn_open (102×37) with
   two btn_open_arrow chevrons (14×8, #94ffe2 at 50 % / 100 %). The label stays for screen readers; the hit area keeps
   upstream's 44 px minimum (GitHub #142). ---- */
.gm.has-hud-art.has-hud-fold .gm__bonds { flex-direction: column; align-items: center; gap: 0; }
.gm.has-hud-art.has-hud-fold .gm__bond-list { order: 1; }
/* local patch: folded (收起, `hidden`) — the display: flex above outranked the UA [hidden] rule, so folding left the list on screen */
.gm.has-hud-art .gm__bond-list[hidden] { display: none; }
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle {
  order: 2; position: relative; min-width: calc(var(--u) * 102); min-height: 0; height: calc(var(--u) * 26); padding: 0;
  margin-top: calc(var(--u) * 2); border: 0; color: transparent; /* under the names (KR captures; at −11.5 it covered them) */ font-size: 0;
  background: var(--ha-close) center top / calc(var(--u) * 37) calc(var(--u) * 17) no-repeat;
}
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle > * { display: none; }
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle:hover { filter: brightness(1.35); }
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="false"] {
  margin-top: 0; height: calc(var(--u) * 37); background: var(--ha-open) center / calc(var(--u) * 102) calc(var(--u) * 37) no-repeat;
}
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="false"]::before,
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="false"]::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 14); height: calc(var(--u) * 8);
  background: #94ffe2; -webkit-mask: var(--ha-open-arrow) center / 100% 100% no-repeat; mask: var(--ha-open-arrow) center / 100% 100% no-repeat;
}
/* local patch: on phones / touch the open tab's hit box is its picture (btn_close 37×17), not 102×26 — the wider box lay
   over the far edge of row-12 tiles 4–6 and a tap on a back-row unit there folded the strip. Width floor 24 px (at
   844×390 the picture is 22×10 px; 24 px = the WCAG 2.5.8 minimum); the height stays the picture's, because the tab
   already sits on row 12 and every extra pixel lands on tile 5. The folded btn_open keeps its 102×37 picture. */
@media (pointer: coarse), (max-height: 540px) {
  .gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="true"] {
    min-width: 0; width: max(calc(var(--u) * 37), 24px); height: calc(var(--u) * 17);
  }
}
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="false"]::before { opacity: .5; transform: translate(-50%, calc(-50% - var(--u) * 8)); }
.gm.has-hud-art.has-hud-fold .gm__bonds .bonds-toggle[aria-expanded="false"]::after { transform: translate(-50%, calc(-50% - var(--u) * 2)); }

/* ---- countdown (auto_chess_countdown_view, `has-hud-cd`): the `countdown` label sprite (70×21) under the number, the
   gauge bar_solid (24×63) over bar_shadow (33×71) in #00ffc4, #ef5510 in the last seconds (_colGreen / _colOrange),
   and the pulsing light at the right edge (light_green #187d65, 2 s; light_orange #b94d22, 0.5 s — [추정] a soft
   ellipse: the light's material is not extracted). Upstream's 5 gauge steps stay (each lit step shows its slice). ---- */
.gm.has-hud-art.has-hud-cd .gtop__right .countdown { position: relative; isolation: isolate; align-items: center; gap: calc(var(--u) * 6); }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown::before {
  content: ''; position: absolute; z-index: -1; right: calc(var(--u) * -120); top: 50%; width: calc(var(--u) * 344); height: calc(var(--u) * 265);
  transform: translateY(-50%); pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(24, 125, 101, .55), rgba(24, 125, 101, 0)); animation: ha-cd-light 2s ease-in-out infinite alternate;
}
.gm.has-hud-art.has-hud-cd .gtop__right .countdown.is-warn::before {
  background: radial-gradient(closest-side, rgba(185, 77, 34, .6), rgba(185, 77, 34, 0)); animation-duration: .5s;
}
@keyframes ha-cd-light { from { opacity: .25; } to { opacity: 1; } }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__label {
  width: calc(var(--u) * 70); height: calc(var(--u) * 21); margin-top: calc(var(--u) * 2); font-size: 0; color: transparent;
  background: var(--ha-cd-label) center / 100% 100% no-repeat;
}
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge {
  position: relative; width: calc(var(--u) * 24); height: calc(var(--u) * 63); justify-content: flex-start; gap: 0;
}
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: calc(var(--u) * 33); height: calc(var(--u) * 71);
  transform: translate(-50%, -50%); background: var(--ha-cd-shadow) center / 100% 100% no-repeat;
}
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i { height: 20%; background: none; box-shadow: none; }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i.on {
  background: #00ffc4; box-shadow: none;
  -webkit-mask: var(--ha-cd-solid) 0 0 / calc(var(--u) * 24) calc(var(--u) * 63) no-repeat; mask: var(--ha-cd-solid) 0 0 / calc(var(--u) * 24) calc(var(--u) * 63) no-repeat;
}
.gm.has-hud-art.has-hud-cd .gtop__right .countdown.is-warn .countdown__gauge i.on { background: #ef5510; }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i:nth-child(2) { -webkit-mask-position: 0 calc(var(--u) * -12.6); mask-position: 0 calc(var(--u) * -12.6); }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i:nth-child(3) { -webkit-mask-position: 0 calc(var(--u) * -25.2); mask-position: 0 calc(var(--u) * -25.2); }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i:nth-child(4) { -webkit-mask-position: 0 calc(var(--u) * -37.8); mask-position: 0 calc(var(--u) * -37.8); }
.gm.has-hud-art.has-hud-cd .gtop__right .countdown__gauge i:nth-child(5) { -webkit-mask-position: 0 calc(var(--u) * -50.4); mask-position: 0 calc(var(--u) * -50.4); }

/* ---- the left player list (panel_player_status / player_status_item, `has-hud-team`): 80×80 portraits 17 apart on
   bg_player_list, the list centred on the left edge 34 units above the middle; each portrait in bg_team_border (100×100,
   #59ffd2 on the board shown — [추정] the view / other groups of the item read as "the watched board / the rest", white
   otherwise), icon_self (32×32) at its top-left corner, the LP on bg_hp (57×24, icon_hp, 16 px #f3f3f3) at its bottom,
   the status icon (21×21) just right of its bottom corner. Upstream's 联防 tag, eye and 前往查看 stay beside it; the
   name is hidden (the official item has none — CN 联防 capture, maintainer 2026-10-07; the portrait's tooltip keeps it). ---- */
.gm.has-hud-art.has-hud-team .team {
  left: calc(var(--u) * 23); top: calc(50% - var(--u) * 34); transform: translateY(-50%); gap: calc(var(--u) * 17); padding: calc(var(--u) * 10) 0; isolation: isolate;
}
.gm.has-hud-art.has-hud-team .team::before {
  /* bg: the list's rect (portraits + padding 7 / 10) grown 23 × 12 and moved 1.5 right → 17 left of the portraits, 117 wide;
     bg_player_list is a 9-slice sprite (115×402, borders l / r 30, t / b 25) */
  content: ''; position: absolute; z-index: -1; left: calc(var(--u) * -17); top: calc(var(--u) * -6); bottom: calc(var(--u) * -6); width: calc(var(--u) * 117);
  border-image: var(--ha-plist) 25 30 fill / calc(var(--u) * 25) calc(var(--u) * 30); pointer-events: none;
}
.gm.has-hud-art.has-hud-team .team__row { min-height: calc(var(--u) * 80); gap: calc(var(--u) * 40); align-items: flex-start; }
.gm.has-hud-art.has-hud-team .team__btn:hover { transform: none; filter: brightness(1.12); }
.gm.has-hud-art.has-hud-team .team .pavatar { --pa: calc(var(--u) * 80); border: 0; background: #383838; box-shadow: none !important; }
.gm.has-hud-art.has-hud-team .team__btn::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 100); height: calc(var(--u) * 100); transform: translate(-50%, -50%);
  pointer-events: none; background: #fff;
  -webkit-mask: var(--ha-border) center / 100% 100% no-repeat; mask: var(--ha-border) center / 100% 100% no-repeat;
}
.gm.has-hud-art.has-hud-team .team__row.is-watched .team__btn::after,
.gm.has-hud-art.has-hud-team .team:not(.has-watched) .team__row.is-self .team__btn::after { background: #59ffd2; }
.gm.has-hud-art.has-hud-team .team__row.is-open .team__btn::after { background: #59ffd2; filter: drop-shadow(0 0 .06rem rgba(89, 255, 210, .7)); }
/* the emote bubble (autochess_emoji_pop_item, pivot (0.08, 0.52) = its tail's tip) at the item's emoji_ref_rect (87×87 on
   the 80×80 portrait's centre): the tip 3.5 right of the portrait, at its middle — [추정] the tip on the rect's right
   edge (the placing code is not in the dump). The row's width (the hidden name, the LP, upstream's tags) used to push
   it ~50 units further out (maintainer report). The tip is .09rem into the bubble (css/emotes.css). */
.gm.has-hud-art.has-hud-team .team__bubble { left: calc(var(--u) * 83.5 - .09rem); top: calc(var(--u) * 40); transform: translateY(-48%); }
/* 最终攻势 / 隐秘核心: the viewer's pair (upstream ef101647 .team__frame, a second bg_team_border over this one — two frames
   on each portrait) wears this frame alone, in the green of the board shown (docs/LOCAL-PATCH.md 「0.2.0 병합」 
   [추정]: no capture of a boss round's player list) */
.gm.has-hud-art.has-hud-team .team__frame { display: none; }
.gm.has-hud-art.has-hud-team .team__row.is-team .team__btn::after { background: #59ffd2; }
.gm.has-hud-art.has-hud-team .team__you {
  left: calc(var(--u) * -7); top: calc(var(--u) * -7); right: auto; width: calc(var(--u) * 32); height: calc(var(--u) * 32); z-index: 1;
  clip-path: none; background: var(--ha-self) center / 100% 100% no-repeat;
}
.gm.has-hud-art.has-hud-team .team__you .icon { display: none; }
.gm.has-hud-art.has-hud-team .team__row.is-self .team__seat { left: auto; right: calc(var(--u) * -2); }
.gm.has-hud-art.has-hud-team .team__info { padding: calc(var(--u) * 4) calc(var(--u) * 10) calc(var(--u) * 4) 0; background: none; }
.gm.has-hud-art.has-hud-team .team__name { display: none; }
.gm.has-hud-art.has-hud-team .team__line { min-height: 0; }
.gm.has-hud-art.has-hud-team .team__line .lp {
  position: absolute; left: calc(var(--u) * 40); bottom: calc(var(--u) * -4); transform: translateX(-50%); z-index: 1;
  width: calc(var(--u) * 57); height: calc(var(--u) * 24); justify-content: center; gap: calc(var(--u) * 6);
  font-size: calc(var(--u) * 16); color: #f3f3f3; background: var(--ha-php) center / 100% 100% no-repeat;
}
.gm.has-hud-art.has-hud-team .team__line .lp .lp__icon { width: calc(var(--u) * 9); height: calc(var(--u) * 13); filter: none; }
.gm.has-hud-art.has-hud-team .team__line .lp.lp--danger { color: var(--red-premium); }
/* the official HP colours of player_status_item (_colorHpIconNormal #3bd8b5; _colorHpIconTweening / _colorHpTextTweening
   #ec4645, worn while its number tweens down at the settlement) — a pending loss wears the tweening red; the −N tick on
   bg_lose_hp against the pill's right end, the pair centred under the portrait (pill 57 + plate 42 − 1); the ×N tag
   (MissTag) straddles the portrait's top edge, 64 × 20 (bg_miss_enemy 77 × 24 scaled) — maintainer decision 2026-10-16 */
.gm.has-hud-art.has-hud-team .team__line .lp .lp__icon--tint { background: #3bd8b5; }
.gm.has-hud-art.has-hud-team .team__line .lp.is-pending .lp__icon--tint { background: #ec4645; }
.gm.has-hud-art.has-hud-team .team__line .lp.is-pending .lp__val { color: #ec4645; }
.gm.has-hud-art.has-hud-team .team__line .lp.has-pend { left: calc(var(--u) * 19.5); }
.gm.has-hud-art.has-hud-team .team__line .lp__pend {
  position: absolute; left: 100%; top: 0; margin-left: calc(var(--u) * -1); width: calc(var(--u) * 42); height: calc(var(--u) * 24);
  display: grid; place-items: center; padding: 0; font-size: calc(var(--u) * 16); line-height: 1;
  background: var(--ha-lose-hp, #d8262a) center / 100% 100% no-repeat; clip-path: none; box-shadow: none;
}
.gm.has-hud-art.has-hud-team .team__btn .misstag {
  left: calc(var(--u) * 40); width: calc(var(--u) * 64); height: calc(var(--u) * 20); min-width: 0; padding: 0 calc(var(--u) * 7) 0 0;
}
.gm.has-hud-art.has-hud-team .team__btn .misstag__n { font-size: calc(var(--u) * 16); }
.gm.has-hud-art.has-hud-team .team__status {
  position: absolute; left: calc(var(--u) * 91); top: calc(var(--u) * 59); width: calc(var(--u) * 21); height: calc(var(--u) * 21);
}
.gm.has-hud-art.has-hud-team .team__status.has-sprite .lsprite { width: 100%; height: 100%; }
/* (2026-10-10, the official card's states — player_status_item, `has-hud-card`) connect_status: the eliminated
   (#565656 · 80 % + icon_dead 57, 6 below the middle), a departed seat (#303030 · 80 % + icon_lost_connect 58 × 57,
   4 below), a dropped connection (#303030 · 80 % + icon_reconnect 49 × 55); icon_watch_other (40 × 35) at the top-right
   of the card shown; action_status at the card's bottom-right outside: icon_complete 21 (ready / done) or three
   icon_doing dots 12 apart 13 (deciding, acting, fighting) [추정: their blink — moving_part has an Animation]; the
   前往查看 / 返回战场 buttons as the official squares over the portrait (btn_ob_other / btn_return_self 98 × 98, the
   caption in their lower third, white / #4f4f4f) */
.gm.has-hud-art.has-hud-card .team__btn { position: relative; }
.gm.has-hud-art.has-hud-card .team__mask { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 80); height: calc(var(--u) * 80); transform: translate(-50%, -50%);
  z-index: 1; background: rgba(48, 48, 48, .8); pointer-events: none; }
.gm.has-hud-art.has-hud-card .team__mask.is-dead { background: rgba(86, 86, 86, .8); }
.gm.has-hud-art.has-hud-card .team__mask i { position: absolute; left: 50%; top: 50%; display: block; transform: translate(-50%, -50%); background: center / 100% 100% no-repeat; }
.gm.has-hud-art.has-hud-card .team__mask.is-dead i { width: calc(var(--u) * 57); height: calc(var(--u) * 57); margin-top: calc(var(--u) * 6); background-image: var(--ha-m-dead); }
.gm.has-hud-art.has-hud-card .team__mask.is-quit i { width: calc(var(--u) * 58); height: calc(var(--u) * 57); margin-top: calc(var(--u) * 4); background-image: var(--ha-m-quit); }
.gm.has-hud-art.has-hud-card .team__mask.is-reconnect i { width: calc(var(--u) * 49); height: calc(var(--u) * 55); background-image: var(--ha-m-rec); }
.gm.has-hud-art.has-hud-card .team__watch { position: absolute; right: 0; top: 0; z-index: 2; width: calc(var(--u) * 40); height: calc(var(--u) * 35);
  background: var(--ha-watch) center / 100% 100% no-repeat; pointer-events: none; }
.gm.has-hud-art.has-hud-card .team__eye { display: none; }
.gm.has-hud-art.has-hud-card .team__status.is-act-doing > :not(.team__dots) { display: none; }
/* (maintainer report 2026-10-10) the dots stand alone — no box or outline of upstream's status chip — and a card with no
   action_status (deciding, not ready yet, out) shows nothing there */
.gm.has-hud-art.has-hud-card .team__status.is-act-doing { border: 0; background: none; box-shadow: none; animation: none; }
.gm.has-hud-art.has-hud-card .team__status.is-act-none:not(.is-offline) { display: none; }
.team__dots { display: none; }
.gm.has-hud-art.has-hud-card .team__status.is-act-doing { width: calc(var(--u) * 50); height: calc(var(--u) * 12); top: calc(var(--u) * 68); left: calc(var(--u) * 89); }
.gm.has-hud-art.has-hud-card .team__status.is-act-doing .team__dots { display: flex; gap: calc(var(--u) * 1); }
.gm.has-hud-art.has-hud-card .team__dots i { width: calc(var(--u) * 12); height: calc(var(--u) * 12); background: var(--ha-doing) center / 100% 100% no-repeat;
  animation: team-doing 1.2s steps(1) infinite; }
.gm.has-hud-art.has-hud-card .team__dots i:nth-child(2) { animation-delay: .4s; } .gm.has-hud-art.has-hud-card .team__dots i:nth-child(3) { animation-delay: .8s; }
@keyframes team-doing { 0% { opacity: 1; } 33% { opacity: .35; } }
.gm.has-hud-art.has-hud-card .team__ob, .gm.has-hud-art.has-hud-card .team__back { position: absolute; z-index: 3; margin: 0; padding: 0 0 calc(var(--u) * 12); min-width: 0;
  left: calc(var(--u) * -9); top: calc(var(--u) * -9); width: calc(var(--u) * 98); height: calc(var(--u) * 98); align-items: flex-end; justify-content: center;
  border: 0; border-radius: 0; box-shadow: none; background: var(--ha-ob-btn) center / 100% 100% no-repeat; color: #fff; font-size: calc(var(--u) * 15); }
.gm.has-hud-art.has-hud-card .team__back { background-image: var(--ha-ob-back); color: #4f4f4f; }
.gm.has-hud-art.has-hud-card .team__ob .btn__label, .gm.has-hud-art.has-hud-card .team__back .btn__label { letter-spacing: .04em; }

/* ---- bond popup (ui/bondStrip.js BondPopup) = the client's autochess_hud_bond_detail_dialog (KR captures 2026-10-06:
   the panel measures 602×391 units there, the prefab 584×379). detail_view_root top-centre anchored, its centre 322 under
   the screen's top → the panel's top at 132.5; detail_bg plate; header 104 tall: the bond's own disc (icon_view 80×80
   centred 43.4 / 49.2 from the top-left: the bondBoardIcon board + icon 36), the name (20 px best-fit, from x 80), the
   count pill (inactive_group: bond_inactive_bg red, title_char_icon #b6b6b6, "n/m" 18 px Novecento, 비활성화 16 px #fd6969;
   active_group: bond_active_bg, the icon #00f0b4, active_icon) centred 61.9 down from x 81.3, "중첩 수 n" (16 px #d0d0d0 / white)
   right-aligned 25 from the right, 34.5 down; then the scrolling content (padding 24 / 20 / 30, gap 19): the bond text
   (18 px) and the member grid (cells 88×88, 5 a row, gaps 25.5 × 38: autochess_hud_bond_char_item — avatar 76, avatar_border
   83, avatar_active_border 92×90 on members on the field, #3b3b3b 50 % on the others, the tier badge at the bottom left,
   the name 16 px under it). The text is the layer-resolved effect only (当前效果, see below); upstream's 同构 / 调和 /
   本局禁用 marks stay. The < > arrows (btn_prev / btn_next 100×100, arrow 87×86) sit 344 / 339 from the centre (ui/hudArt.js BondNav). ---- */
.bpop__need, .bpop__stack { display: none; } /* (upstream look: its own facts row) */
.gm.has-hud-art .bpop {
  /* KR 3838-wide captures: ≈ 620 px wide at 1920, .71 of the prefab's 584 units at 1.5 px — fitted to a .9-scaled capture,
     so .71 / .9 = .789 of `--ui-u` (same size at 1920 as before); a smaller unit, not a transform: a scaled scroller left a stale layer under it */
  --u: calc(var(--ui-u, .0135rem) * .789);
  left: 50%; right: auto; top: calc(var(--ui-u, .0135rem) * 147.2); bottom: auto; transform: translateX(-50%); z-index: 10;
  width: calc(var(--u) * 584); height: calc(var(--u) * 379); max-height: none; padding: 0 calc(var(--u) * 20) calc(var(--u) * 30) calc(var(--u) * 24);
  display: flex; flex-direction: column; gap: calc(var(--u) * 19); border: 0; box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .5);
  background: var(--ha-detail-bg, none) center / 100% 100% no-repeat, rgba(30, 30, 30, .94);
  scrollbar-width: thin; scrollbar-color: rgba(141, 141, 141, .5) transparent;
}
.gm.has-hud-art .bpop.brackets::before, .gm.has-hud-art .bpop.brackets::after { display: none; }
.gm.has-hud-art .bpop__head {
  position: sticky; top: 0; z-index: 2; flex: none; display: block; height: calc(var(--u) * 104); margin: 0 calc(var(--u) * -20) 0 calc(var(--u) * -24);
  background: var(--ha-detail-bg, none) center top / calc(var(--u) * 584) calc(var(--u) * 379) no-repeat, rgb(30, 30, 30);
}
.gm.has-hud-art .bpop__disc {
  position: absolute; left: calc(var(--u) * 3.4); top: calc(var(--u) * 9.2); width: calc(var(--u) * 80); height: calc(var(--u) * 80);
  border: 0; border-radius: 0; box-shadow: none; background: var(--bb) center / var(--bb-sz, 84.2%) var(--bb-sz, 84.2%) no-repeat; /* the ring sprites' padding: see .bslot .bond__disc */
}
.gm.has-hud-art .bpop__disc[data-full] { background-size: var(--bb-sz, 100%) var(--bb-sz, 100%); }
.gm.has-hud-art .bpop__disc .bglyph { width: calc(var(--u) * 36); height: calc(var(--u) * 36); }
.gm.has-hud-art .bpop__disc .bglyph img { filter: brightness(0) invert(.72); opacity: .8; }
.gm.has-hud-art .bpop__disc[data-full] .bglyph img { filter: brightness(0); opacity: 1; }
.gm.has-hud-art .bpop__titles { position: absolute; inset: 0; display: block; }
.gm.has-hud-art .bpop__titles > .micro, .gm.has-hud-art .bpop__facts { display: none; }
.gm.has-hud-art .bpop__name {
  position: absolute; left: calc(var(--u) * 80); top: calc(var(--u) * 34.5); transform: translateY(-50%); margin: 0;
  font-size: calc(var(--u) * 24); font-weight: 500; letter-spacing: 0; color: #ececec;
}
.gm.has-hud-art .bpop__owner { position: absolute; left: calc(var(--u) * 80); top: calc(var(--u) * 82); font-size: calc(var(--u) * 13); }
.gm.has-hud-art .bpop__need {
  position: absolute; left: calc(var(--u) * 81.3); top: calc(var(--u) * 61.9); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: calc(var(--u) * 6); height: calc(var(--u) * 25); padding: 0 calc(var(--u) * 8) 0 calc(var(--u) * 4);
  background: var(--ha-bd-off, none) center / 100% 100% no-repeat, rgba(170, 40, 40, .75); color: #fff; font-size: calc(var(--u) * 16);
}
.gm.has-hud-art .bpop__need.is-active { background: var(--ha-bd-on, none) center / 100% 100% no-repeat, rgba(70, 70, 70, .8); }
.gm.has-hud-art .bpop__need b { font-family: 'Lexend Exa', 'Novecento Wide', var(--font-num); font-size: calc(var(--u) * 18); font-weight: 500; letter-spacing: -.06em; } /* text_char_cnt: Novecentowide-Medium (Lexend Exa in its place) */
/* the count's colours: CN main_text AUTO_CHESS_BATTLE_BOND_INACTIVE_CHAR_COUNT_FORMAT <color=#F0F0F0>{0}</color><color=#A3A3A3>/{1}</color>,
   …_ACTIVE_… <color=#25FFCD>{0}</color><color=#B0B0B0>/{1}</color> ({1} = the bond's one activeCount) */
.gm.has-hud-art .bpop__needn { color: #f0f0f0; }
.gm.has-hud-art .bpop__needm { color: #a3a3a3; }
.gm.has-hud-art .bpop__need.is-active .bpop__needn { color: #25ffcd; }
.gm.has-hud-art .bpop__need.is-active .bpop__needm { color: #b0b0b0; }
.gm.has-hud-art .bpop__need em { font-style: normal; color: #fd6969; }
.gm.has-hud-art .bpop__needicon { width: calc(var(--u) * 15); height: calc(var(--u) * 17); background: #b6b6b6;
  -webkit-mask: var(--ha-bd-people) center / contain no-repeat; mask: var(--ha-bd-people) center / contain no-repeat; }
.gm.has-hud-art .bpop__need.is-active .bpop__needicon { background: #00f0b4; }
.gm.has-hud-art .bpop__needok { width: calc(var(--u) * 18); height: calc(var(--u) * 18); background: var(--ha-bd-ok) center / contain no-repeat; }
.gm.has-hud-art .bpop__stack {
  display: block; position: absolute; right: calc(var(--u) * 25); top: calc(var(--u) * 34.5); transform: translateY(-50%); color: #d0d0d0; font-size: calc(var(--u) * 16);
}
.gm.has-hud-art .bpop__stack b { color: #fff; font-family: 'Lexend Exa', 'Novecento Wide', var(--font-num); font-weight: 500; letter-spacing: -.06em; margin-left: calc(var(--u) * 4); } /* text_cur_stack: Novecentowide-Medium (Lexend Exa in its place) */
/* + the 临时层数 under 层数, right-aligned with it (CN capture 2026-11-11: 「层数 49」 then a yellow 「+ 144」 one line lower) */
.gm.has-hud-art .bpop__stack .bpop__temp {
  position: absolute; right: 0; top: 100%; margin: calc(var(--u) * 4) 0 0; font-family: 'Lexend Exa', 'Novecento Wide', var(--font-num); font-size: 1em; font-weight: 500; letter-spacing: -.06em; white-space: nowrap;
}
.gm.has-hud-art .bpop__close { position: absolute; z-index: 3; right: calc(var(--u) * 4); top: calc(var(--u) * 4); width: calc(var(--u) * 20); height: calc(var(--u) * 20); border: 0; opacity: .6; }
/* the content is the client's one _descText (AutoChessBattleUIBondDetailView._RenderContent → AutoChessBattleUtil.GetBondDesc
   (bondId, stack): the bond effect's text with its numbers at the current layers = our 当前效果, formatBondEffect), then the
   members: no tier row, no 当前效果 heading, no full 盟约 text (KR capture 2026-10-13). test_desc 18 px, lineSpacing .9;
   _activeDescColor white .9, _inactiveDescColor white .8. A bond without that block (本局禁用) keeps the full text. */
.gm.has-hud-art .bpop > .bpop__tiers, .gm.has-hud-art .bpop > .bpop__sec--now + .bpop__sec { display: none; }
.gm.has-hud-art .bpop > .bpop__sec > h4 { display: none; }
.gm.has-hud-art .bpop__desc { font-size: calc(var(--u) * 18); line-height: 1.35; color: rgba(255, 255, 255, .8); }
.gm.has-hud-art .bpop__sec--now { padding: 0; background: none; border: 0; }
.gm.has-hud-art .bpop__sec--now.is-active .bpop__desc { color: rgba(255, 255, 255, .9); }
.gm.has-hud-art .bpop .rt-vup, .gm.has-hud-art .dpanel .rt-vup { color: #0098dc; }
.gm.has-hud-art .bpop .rt-vdown, .gm.has-hud-art .dpanel .rt-vdown { color: #ff6237; }
.gm.has-hud-art .bpop .rt-rem, .gm.has-hud-art .dpanel .rt-rem { color: #f49800; }
.gm.has-hud-art .bpop .rt-kw, .gm.has-hud-art .dpanel .rt-kw { color: #00b0ff; }
.gm.has-hud-art .bpop .rt-note, .gm.has-hud-art .dpanel .rt-note { color: #777; }
.gm.has-hud-art .bpop .rt-mint, .gm.has-hud-art .dpanel .rt-mint { color: #40b196; }
/* the member grid (char_group: 5 cells of 88, gaps 25.5 × 38) */
.gm.has-hud-art .bpop__sec:last-child > h4 { display: none; }
.gm.has-hud-art .bpop__members { grid-template-columns: repeat(5, calc(var(--u) * 88)); column-gap: calc(var(--u) * 25.5); row-gap: calc(var(--u) * 38);
  padding-top: calc(var(--u) * 9); margin-left: calc(var(--u) * -3); }
.gm.has-hud-art .bpop__member { width: calc(var(--u) * 88); height: calc(var(--u) * 88); padding: 0; border: 0; gap: 0; justify-content: center; overflow: visible; }
.gm.has-hud-art .bpop__member:hover { background: none; border: 0; filter: brightness(1.12); }
.gm.has-hud-art .bpop__member .uthumb { --ut: calc(var(--u) * 76); position: relative; }
.gm.has-hud-art .bpop__member .uthumb__art { border: 0; border-radius: 0; box-shadow: none !important; }
.gm.has-hud-art .bpop__member .uthumb::after { /* avatar_border 83 */
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 83); height: calc(var(--u) * 83); transform: translate(-50%, -50%);
  background: var(--ha-bd-border, none) center / 100% 100% no-repeat; box-shadow: inset 0 0 0 calc(var(--u) * 3) rgba(120, 120, 120, .55); pointer-events: none;
}
.gm.has-hud-art .bpop__member.is-on .uthumb::after { /* avatar_active_border 92×90 */
  width: calc(var(--u) * 92); height: calc(var(--u) * 90); background-image: var(--ha-bd-border-on); box-shadow: inset 0 0 0 calc(var(--u) * 3) #2fe0b9;
}
.gm.has-hud-art .bpop__member:not(.is-on) .uthumb__art::after { content: ''; position: absolute; inset: 0; background: rgba(59, 59, 59, .5); }
/* common_chess_level 30×30 centred 33.5 left / 30 under the item's centre */
.gm.has-hud-art .bpop__member .uthumb__tier { left: calc(var(--u) * -10.5); top: auto; bottom: calc(var(--u) * -7); transform: none; z-index: 1; }
/* char_name_text: its rect centred 66.8 under the item's, text top-aligned (upper centre) → the name's top ≈ 11 under the avatar */
.gm.has-hud-art .bpop__mname { position: absolute; left: 50%; top: calc(var(--u) * 93); transform: translateX(-50%); width: calc(var(--u) * 112);
  font-size: calc(var(--u) * 16); color: #fff; text-align: center; white-space: normal; overflow: visible; line-height: 1.1; }
.gm.has-hud-art .bpop__member.is-on .bpop__mname, .gm.has-hud-art .bpop__member.is-owned .bpop__mname { color: #fff; }
/* the < > arrows outside the panel (btn_prev / btn_next, 100×100 at −344 / +339, 12.8 above the panel's centre) */
.bpop-nav { display: contents; }
.bpop-nav__btn {
  position: absolute; z-index: 11; top: calc(var(--u) * (132.5 + 189.5 * .71 - 12.8 * .71)); width: calc(var(--u) * 71); height: calc(var(--u) * 71); /* the popup's .71 scale */ transform: translate(-50%, -50%);
  border: 0; padding: 0; cursor: pointer; background: var(--ha-bd-arrow, none) center / calc(var(--u) * 62) calc(var(--u) * 61) no-repeat;
}
.bpop-nav__btn--prev { left: calc(50% - var(--u) * 344 * .71); }
.bpop-nav__btn--next { left: calc(50% + var(--u) * 339 * .71); transform: translate(-50%, -50%) scaleX(-1); }
.bpop-nav__btn:hover { filter: brightness(1.2); }
/* the open bond's disc in the strip: group_select — select_glow behind, select_frame brackets left / right (21×61, ±34.5, 8.4 up) */
.gm.has-hud-art .bslot.is-open { position: relative; }
.gm.has-hud-art .bslot.is-open::before, .gm.has-hud-art .bslot.is-open::after {
  content: ''; position: absolute; z-index: 2; top: calc(50% - var(--u) * 8.4); width: calc(var(--u) * 21); height: calc(var(--u) * 61);
  background: var(--ha-sel-frame) center / 100% 100% no-repeat; pointer-events: none;
}
.gm.has-hud-art .bslot.is-open::before { left: calc(50% + var(--u) * 34.5); transform: translate(-50%, -50%); }
.gm.has-hud-art .bslot.is-open::after { left: calc(50% - var(--u) * 34.5); transform: translate(-50%, -50%) scaleX(-1); }
.gm.has-hud-art .bslot.is-open .bond__disc { box-shadow: 0 0 calc(var(--u) * 14) rgba(47, 224, 185, .35); border-radius: 50%; }

/* ---- operator card (ui/detailArt.js ChessDetailArt), as the client's: no box — the art on the left edge at full height,
   fading out to the right, the texts over it. The subpanels are 735 units wide on the client's 1920×1080 battle canvas
   (1 unit = 1 px at 1080p = .01rem); measured against the maintainer's screenshots (深巡 / 盟约·辅助干员): class icon centred
   79 / 119 from the left / top, name 33 px, the tier row, the stat list (21 px, rows 24.5, labels and values #b2b2b2,
   阻挡 / 费用 white), the 攻击范围 tile (136×105) and bond tiles (112×105) right of it, the HP bar (slider_hp 555×22) with
   生命 and the value box at its end, the tabs (650 wide, 24 px #ababab, the open one white on darker), the tab text on a
   dark gradient. Upstream's extras (攻击间隔 / 再部署, ± differences, counts, merge hint, module, loadout tags) stay. ---- */
.gm.has-hud-art .dpanel--chess {
  left: 0; right: auto; top: 0; bottom: 0; width: 8.6rem; max-height: none; padding: 0; z-index: 9; pointer-events: none;
  background: none; border: 0; box-shadow: none; animation: dart-in var(--t-med) var(--ease-out);
}
@keyframes dart-in { from { opacity: 0; transform: translateX(-.2rem); } }
.gm.has-hud-art .dpanel--chess.brackets::before, .gm.has-hud-art .dpanel--chess.brackets::after { display: none; }
/* no close button (GitHub #3, maintainer decision 2026-10-14: the client's character panel has none) — a press elsewhere
   closes the card (gameLogic/shortcuts.js closesOnFieldPress / closesOnOutsidePress) */
.dart__tabs { pointer-events: auto; }
/* local patch (2026-10-06, maintainer report): the tab text lies over the left bench pads (bench row y ≈ the pane) — the
   pane passes presses through to the board; only its buttons / chips / thumbnails / tooltip targets take them */
.gm.has-hud-art .dpanel--chess .dart__pane { pointer-events: none; }
/* the header and the stats / tiles row pass presses through to the board too (maintainer report 2026-10-14: on the right
   half of a co-op boss prep the mirrored board puts its columns 6–10 under the card, and pieces there could be neither
   picked nor dragged): only their buttons (the bond chips) and tooltip targets take them */
.gm.has-hud-art .dpanel--chess :is(.dart__head, .dart__mid) :is(button, a, [title], [role="button"], .uthumb) { pointer-events: auto; }
/* local patch (2026-10-06, maintainer report): the selection diamond (ui/underframe.js .uframe--dia) goes under the card
   (z 9) — a bench pad under the card showed the dashed diamond over its text; the 撤退 / 出售 buttons stay at z 12 */
.gm.has-hud-art .gm__hud > .uframe--dia { z-index: 8; }
.gm.has-hud-art .dpanel--chess .dart__pane :is(button, a, [title], [role="button"], .uthumb) { pointer-events: auto; }
.gm.has-hud-art .dpanel--chess .dpanel__scroll { position: static; height: 100%; padding: 0; overflow: hidden auto; scrollbar-width: thin; display: flex; flex-direction: column; }
/* KR captures at 2000×1125 (1rem = 104 px): class icon top ≈ 1.97rem, x .24rem */
.dart { position: static; display: flex; flex-direction: column; isolation: isolate; padding: 1.97rem 0 0 .24rem; }
/* the art behind the whole card: placed on the panel (the scroller and .dart are static), so it neither scrolls nor clips */
.dart__bg {
  position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; background: rgba(12, 12, 12, .42); /* the board shows through (KR captures) */
  /* the art fades out between ≈ 6.7rem and 8.6rem (KR captures) */
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}
.dart__bg::after { /* darkened behind the texts (left), and below the tabs */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, .55), rgba(8, 8, 8, .15) 40%, rgba(8, 8, 8, 0) 60%),
              linear-gradient(180deg, rgba(8, 8, 8, 0) 46%, rgba(8, 8, 8, .65) 56%, rgba(8, 8, 8, .78));
}
/* the 180×360 portrait: the whole half body, its head near the top (the 立绘, when extracted, is drawn larger) */
.dart__bg img { position: absolute; left: 1.6rem; top: .9rem; height: 62%; width: auto; max-width: none; opacity: .82; }
/* the 立绘 by the client card's frame (illust_<charId>_2, else _1, or a skin's illust_<skin>: the prefab's stored
   ILLUST_SIZE / ILLUST_OFFSET, else its RectTransform — size --fw × --fh, centre offset --fx / --fy from the frame's
   centre, y up; tools/local-extract/chararts_extract.py illust_frame, and it writes the part the card shows and that
   part's frame): k = .01448rem a frame unit, the frame's centre at (3.593rem, 6.057rem) — measured on the maintainer's
   1920×1080 screenshots of the official card (雪猎's E2 art, 史尔特尔's and 哈洛德's skin arts: 1.448 px a frame unit, the
   centre at (359.3, 605.7) px, all three within 0.5 %). The extractor crops by these three values and the panel's
   width: test/local-extract.test.js holds them equal */
.dart.has-full-art .dart__bg { --k: .01448rem; --cx: 3.593rem; --cy: 6.057rem; }
.dart.has-full-art .dart__bg img { left: -1.2rem; top: -.4rem; height: auto; width: 10.8rem; }
.dart.has-frame .dart__bg img {
  width: calc(var(--fw) * var(--k)); height: calc(var(--fh) * var(--k));
  left: calc(var(--cx) + (var(--fx) - var(--fw) / 2) * var(--k)); top: calc(var(--cy) - (var(--fy) + var(--fh) / 2) * var(--k));
}
.dart__head { display: flex; flex-direction: column; align-items: flex-start; gap: .06rem; }
.dart__prof { width: .96rem; height: .96rem; display: grid; place-items: center; background: rgba(10, 10, 10, .85); border: .03rem solid #e3b53f; box-shadow: 0 0 .12rem rgba(227, 181, 63, .5); }
.dart.is-token .dart__prof { border-color: #36d3e6; box-shadow: 0 0 .12rem rgba(54, 211, 230, .5); }
/* prof/icon_*.png is the label sprite (名称 + the square class glyph on its right): its right square only */
.dart__prof i { width: 80%; height: 80%; background: right center / auto 100% no-repeat; }
/* a stage device's card (ui/detailArt.js DeviceDetailArt, GitHub #3): the same card without art — a TRAP's class box
   (.dart__prof.is-sprite below; an info glyph without the sprite), the device tag where an operator's tier row is */
.dart.is-device .dart__prof .icon { width: 56%; height: 56%; color: #e3b53f; }
.dart.is-device .dart__tier .dtag-kind { font-size: .17rem; padding: .02rem .1rem; color: #d8d8d8; border-color: rgba(255, 255, 255, .35); background: rgba(10, 10, 10, .55); }
.dart.is-device .dart__stats { min-width: 1.6rem; }
/* an enemy's card (ui/detailArt.js EnemyDetailArt, GitHub #3 — the client opens none: the maintainer's choice): the same
   card, the enemy's icon in the class box (grey frame, gold for an elite, red for a leader), the rank / ground or air /
   count chips where the tier row is, the factions under it, the HP bar red. [ASSUMED] layout and colours */
.dart.is-enemy .dart__prof { border-color: #8a8a8a; box-shadow: none; overflow: hidden; }
.dart.is-enemy.is-elite .dart__prof { border-color: #e3b53f; box-shadow: 0 0 .12rem rgba(227, 181, 63, .5); }
.dart.is-enemy.is-boss .dart__prof { border-color: #ff3d3d; box-shadow: 0 0 .12rem rgba(255, 61, 61, .55); }
.dart.is-enemy .dart__prof img { width: 100%; height: 100%; object-fit: contain; }
.dart.is-enemy .dart__prof .icon { width: 56%; height: 56%; color: #d8d8d8; }
.dart.is-enemy .dart__tier .drank { font-size: .17rem; padding: .02rem .1rem; }
.dart.is-enemy .dart__tier .dtag-kind { font-size: .17rem; padding: .02rem .1rem; color: #d8d8d8; border-color: rgba(255, 255, 255, .35); background: rgba(10, 10, 10, .55); }
.dart__factions { display: flex; flex-wrap: wrap; gap: .06rem; margin-top: .04rem; max-width: 5rem; }
.dart__factions .dfaction { font-size: .15rem; color: #e8c27a; background: rgba(10, 10, 10, .6); border-color: rgba(227, 181, 63, .45); }
.dart__factions .dfaction img { width: .24rem; height: .24rem; object-fit: contain; }
.dart.is-enemy .dart__stats { min-width: 1.9rem; }
.dart.is-enemy .dart__hp > i { background: #e5383b; box-shadow: 0 0 .08rem rgba(229, 56, 59, .6); }
.dart.is-enemy .dart__hp b { background: #c42b2e; }
.dart__pane .dabil { font-size: .17rem; line-height: 1.55; color: #f2f2f2; }
/* an item's card (ui/detailArt.js ItemDetailArt — in the client an item is a trap, maintainer decision 2026-10-14; the
   maintainer's capture of 不屈弹射器): the class box white-framed on black, no art; the tab 技能 with the item's art as the
   skill icon in a white frame, the effect name large, a grey 被动 tag. [ASSUMED] sizes (measured off the capture only) */
.dart.is-item .dart__prof { border-color: #d8d8d8; box-shadow: 0 0 .12rem rgba(255, 255, 255, .3); }
.dart.is-item .dart__prof .icon { width: 56%; height: 56%; color: #fff; }
.dart.is-item.is-golden .dart__prof { border-color: #e3b53f; box-shadow: 0 0 .12rem rgba(227, 181, 63, .5); }
.dart__pane--skill .dskill__icon--item { width: .92rem; height: .92rem; padding: .04rem; object-fit: contain; border: .03rem solid #e6e6e6; background: rgba(70, 70, 70, .55); }
.dart__pane--skill .dskill[data-item] { gap: .2rem; align-items: flex-start; }
.dart__pane--skill .dskill[data-item] .dskill__name { font-size: .26rem; font-weight: 500; color: #e8e8e8; }
.dart__pane--skill .dskill[data-item] .dsp--trig { padding: .02rem .26rem; background: #8a8a8a; border: 0; border-radius: .05rem; color: #fff; font-size: .19rem; }
.dart__pane .dart__flavor { color: #b8b8b8; font-style: italic; white-space: pre-line; }
/* a summon's card (ui/detailArt.js TokenDetailArt — a token is a character of the client, maintainer decision 2026-10-14):
   the operator card without art and bond boxes, a TOKEN's class box (.dart__prof.is-sprite below; without the sprite the
   cyan box holding the summon's avatar), 召唤物 / 干员 and the count beside the tier */
.dart.is-summon .dart__prof { overflow: hidden; }
.dart.is-summon .dart__prof img { width: 100%; height: 100%; object-fit: contain; }
.dart.is-summon .dart__prof .icon { width: 56%; height: 56%; color: #d8d8d8; }
.dart.is-token .dart__tier :is(.dtag-token, .dtag-kind) { font-size: .17rem; padding: .02rem .1rem; }
.dart.is-token .dart__tier .dtag-kind { color: #d8d8d8; border-color: rgba(255, 255, 255, .35); background: rgba(10, 10, 10, .55); }
/* the class box of a TRAP / TOKEN character — device, item, summon (ui/detailArt.js ClassBox, maintainer decision
   2026-10-14): the client's icon_profession_token_lighten (local client ui/battlecommon) is the whole box — its glowing
   white rim, the half-dark fill and the drone glyph, 128 px as image_profession — so the box's own border, fill and
   glow go (after the device / item / golden / token rules, which it overrides) */
.dart .dart__head > .dart__prof.is-sprite { border: 0; background: none; box-shadow: none; overflow: visible; }
.dart__prof.is-sprite > .dart__profsprite { width: 100%; height: 100%; object-fit: contain; }
.dart__name { margin-top: .1rem; font-size: .28rem; font-weight: 500; color: #fff; text-shadow: 0 1px 3px #000; }
/* 0.2.0 补位: 「X的替补」 under a stand-in's name (ui/detailArt.js; [ASSUMED] placement, as ChessDetail's dhead__for) */
.dart__for { margin-top: -.04rem; font-size: .15rem; color: #b2b2b2; text-shadow: 0 1px 2px #000; }
.dart__tier { display: flex; align-items: center; gap: .12rem; }
.dart__split { width: .02rem; height: .3rem; background: #8a8a8a; }
.dart__elite { width: .38rem; height: .34rem; object-fit: contain; }
.dart__lv { display: flex; align-items: flex-start; gap: .04rem; color: #fff; }
/* the operator card's numbers (act3autochess_character_info_subpanel_status: text_lvl 54 / text_lvl_prefix 15, the five stats 21,
   text_hp / text_sp 22) are Novecentowide-Normal — the free Novecento Wide Normal (maintainer decision 2026-11-11;
   docs/rules/ui.md 「HUD 숫자 글꼴」) */
.dart__lv small { font-size: .15rem; margin-top: .06rem; font-family: 'Novecento Wide', var(--font-num); letter-spacing: 0; }
.dart__lv b { font-size: .44rem; font-weight: 400; line-height: .8; font-family: 'Novecento Wide', var(--font-num); letter-spacing: 0; }
.dart__mid { display: flex; align-items: flex-end; gap: .1rem; margin-top: .04rem; padding-left: .06rem; }
.dart__stats { display: flex; flex-direction: column; min-width: 1.2rem; }
.dart__stat { display: flex; align-items: baseline; gap: .04rem; font-size: .175rem; line-height: .22rem; color: #b2b2b2; text-shadow: 0 1px 2px #000; }
.dart__stat b { font-weight: 400; color: #b2b2b2; font-family: 'Novecento Wide', var(--font-num); letter-spacing: 0; }
.dart__stat.is-white b { color: #fff; }
.dart__stat.is-extra { font-size: .14rem; line-height: .18rem; opacity: .8; }
.dart__stat.is-up b, .dart__stat.is-up small { color: #3fd08f; }
.dart__stat.is-down b, .dart__stat.is-down small { color: #ff6237; }
.dart__stat small { font-size: .14rem; font-family: 'Novecento Wide', var(--font-num); letter-spacing: 0; }
.dart__tiles { display: flex; flex-wrap: wrap; gap: .06rem; max-width: 4.6rem; margin-bottom: .04rem; }
.dart__tiles .dbonds { display: contents; }
/* tile widths as an official play video (16:10, measured in 1920-wide units): 攻击范围 ≈ 110, a bond tile ≈ 91, both 93 high */
.dart__tile, .dart__tiles .dbond {
  width: .91rem; height: .93rem; padding: .07rem .04rem .05rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: rgba(20, 20, 20, .8); border: 0; border-radius: 0; color: #fff; font-size: .17rem; text-align: center;
}
.dart__range { width: 1.1rem; }
.dart__range .rgrid, .dart__range > :first-child { margin: auto 0; }
/* the 攻击范围 cells in the client's colours (maintainer decision 2026-10-14), on every official-form card: the prefab's
   panel_atk_range_grid is a UICharacterAttackRangeWidget whose sprites (arts/ui/[uc]battlecommon.ab) are attack_range_stand
   — the unit's own cell, solid white — and attack_range_attack — 16 px with a 2 px #fe7800 edge round rgba(253,122,63,.4);
   RenderAttackRange tints both white (as drawn) and an empty cell Colors.TRANSPARENT. The edge is an eighth of the cell as
   in the sprite, inside the cell's grid track (the gap between cells shows, as the client's 1.5 spacing) */
.dart__range .rgrid i {
  box-sizing: border-box; width: var(--rg); height: var(--rg);
  border: max(1px, calc(var(--rg) / 8)) solid transparent; background: none;
}
.dart__range .rgrid i.on { border-color: #fe7800; background: rgba(253, 122, 63, .4); }
.dart__range .rgrid i.self { border-color: #fff; background: #fff; }
.dart__range .rgrid-all { color: #fff; border-color: #fe7800; background: rgba(253, 122, 63, .4); }
/* a bond box holds the bond's icon and name only (maintainer decision 2026-10-14): the client's camp_tag_group_* (prefab
   act2autochess_character_info_subpanel_status) is a camp_tag image and a text_camp label, both #d0d0d0, no count, tier
   or active mark (UICharacterInfoStatusSubPanelInAutochess._SetCampIcon sets the two). The count, the tier and whether
   the bond is active stay in the box's title, and a press still opens the bond's popup */
.dart__tiles .dbond .dbond__icon { width: .42rem; height: .42rem; }
.dart__tiles .dbond .dbond__icon img { filter: brightness(0) invert(.816); }
.dart__tiles .dbond .dbond__name { font-size: .17rem; color: #d0d0d0; }
.dart__tiles .dbond .dbond__count, .dart__tiles .dbond .dbond__tiers { display: none; }
.dart__tiles .dbond:hover { background: rgba(48, 48, 48, .9); }
/* the bond cells read on any art: the same translucent black as the range cell (maintainer 2026-10-06) */
.gm.has-hud-art .dpanel--chess .dart__tiles .dbond { background: rgba(20, 20, 20, .8); border: 0; }
.gm.has-hud-art .dpanel--chess .dart__tiles .dbond:hover { background: rgba(48, 48, 48, .9); }
/* the bar from the screen's left edge to 5.0rem, 체력 + the value box (≈ 1.25rem) after it, just below */
.dart__hp { position: relative; height: .07rem; width: 5rem; margin: .08rem 0 .36rem -.24rem; background: rgba(255, 255, 255, .15); }
.dart__hp > i { position: absolute; left: 0; top: 0; bottom: 0; background: #1e9fff; box-shadow: 0 0 .08rem rgba(30, 159, 255, .6); }
.dart__hp > span { position: absolute; right: 0; top: .05rem; display: flex; align-items: center; gap: .1rem; white-space: nowrap; font-size: .2rem; text-shadow: 0 1px 2px #000; }
.dart__hp em { font-style: normal; color: #fff; }
.dart__hp em { font-weight: 700; }
.dart__hp b { position: absolute; left: calc(100% + .1rem); top: 0; min-width: 1.25rem; font-weight: 400; color: #fff; background: #1e8de0; padding: .02rem .08rem; text-align: center; font-size: .22rem;
  font-family: 'Novecento Wide', var(--font-num); letter-spacing: 0; }
.dart__hp > span { right: 0; }
.dart__hp > span > em { margin-right: 0; }
/* (positioned: .dart's stacking context — the art — would paint over in-flow blocks) */
.dart__tabs, .dart__pane, .dpanel--chess .dhint { position: relative; z-index: 1; }
.dart__tabs { display: flex; width: 5.86rem; margin: .02rem 0 0 -.24rem; background: rgba(40, 40, 40, .8); }
.dart__tab { flex: 1; height: .34rem; background: none; border: 0; color: #ababab; font-size: .19rem; }
.dart__tab.is-on { color: #fff; background: rgba(12, 12, 12, .9); }
.dart__pane { display: flex; flex-direction: column; gap: .1rem; padding: .14rem .24rem .3rem .3rem; width: 6.6rem; flex: 1;
  background: linear-gradient(90deg, rgba(14, 14, 14, .55), rgba(14, 14, 14, .35) 70%, rgba(14, 14, 14, 0)); }
/* each tab scrolls on its own (the client's group_* scroll_desc; maintainer report 2026-10-12: the equipped items' texts
   were cut at the screen's bottom): the pane takes the card's height left under the tabs (at least 1.6rem — less, and
   the card scrolls as before), no scrollbar, its end padded to clear the bottom-left corner buttons, an edge fades while
   more text is there (ui/components.js useScrollEdges). It takes wheel / touch only while it scrolls (.is-scroll) — a
   short tab still passes presses to the bench pads under it (2026-10-06 rule above). */
.dpanel--chess .dart__pane { flex: 1 1 auto; min-height: 1.6rem; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none;
  padding-bottom: calc(.34rem + max(.56rem, 34px)); --dp-fade: .36rem; }
.dpanel--chess .dart__pane > * { flex: none; }
.dpanel--chess .dart__pane::-webkit-scrollbar { display: none; }
.gm.has-hud-art .dpanel--chess .dart__pane.is-scroll { pointer-events: auto; touch-action: pan-y; }
.dpanel--chess .dart__pane.has-down { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--dp-fade)), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - var(--dp-fade)), transparent); }
.dpanel--chess .dart__pane.has-up { -webkit-mask-image: linear-gradient(0deg, #000 calc(100% - var(--dp-fade)), transparent); mask-image: linear-gradient(0deg, #000 calc(100% - var(--dp-fade)), transparent); }
.dpanel--chess .dart__pane.has-up.has-down {
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 var(--dp-fade), #000 calc(100% - var(--dp-fade)), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 var(--dp-fade), #000 calc(100% - var(--dp-fade)), transparent);
}
.dart__pane .dtext, .dart__pane .dgarrison__text, .dart__pane .ditem__desc { font-size: .17rem; line-height: 1.55; color: #f2f2f2; }
.dart__pane .rt-vup, .dart__pane .rt-kw { color: #0098dc; }
/* section chips: the talent names on grey boxes, the 特质 type on the green 作战能力 chip */
.dart__pane .dtalent { display: flex; flex-direction: column; align-items: flex-start; gap: .06rem; }
.dart__pane .dtalent > b { padding: .02rem .1rem; background: rgba(110, 110, 110, .75); color: #fff; font-size: .19rem; font-weight: 500; }
.dart__pane .ditem { align-items: center; gap: .16rem; margin-top: .1rem; }
.dart__pane .ditem .uthumb { --ut: .86rem; }
/* image_autochess_ability_decorator: acbattle_img_bg_bond_desc (629×112, 58 %) behind the 特质 block */
.dart__pane--garrison .dgarrison { margin: -.16rem -.2rem 0; padding: .16rem .2rem .2rem; border: 0;
  background: var(--ha-ability-bg, linear-gradient(rgba(27, 180, 141, .25), rgba(27, 180, 141, 0))) left top / 100% 100% no-repeat; }
.dart__pane--garrison .dgarrison__k { display: none; }
.dart__pane--garrison .dgarrison__type {
  display: inline-flex; align-items: center; gap: .05rem; padding: .02rem .1rem .02rem .06rem; color: #161616; font-size: .19rem;
  background: #1bb48d; border-radius: .04rem;
  border-image: var(--ha-ability-title) 8 9 6 9 fill / calc(var(--u) * 8) calc(var(--u) * 9) calc(var(--u) * 6) calc(var(--u) * 9);
}
.dart__pane--garrison .dgarrison__icon { filter: brightness(0); }
.dart + .dart__tabs + .dhint, .dart__tabs + .dhint { margin: .08rem .2rem 0; }
.dart__pane .dsec__title { display: none; }
/* while a piece is being placed (dragged, or waiting for its direction) the same card, its art more transparent (KR
   captures), and it never takes the pointer (screens/game.js .dart-placing) */
.dart-placing .dpanel--chess, .dart-placing .dpanel--chess * { pointer-events: none !important; }
.dart-placing .dart__bg { opacity: .55; }

/* ---- battle HUD (KR capture, 2000×1125, in battle): the round bar's pill is bg_battle + icon_battle with the kills
   "6/9" (the killed number amber) — already above; the DP counter is the base game's battle cost panel (not in the
   autochess bundles — from the capture, [추정]): no box, a white diamond "C" icon, the number ≈ .8rem white, a white
   underline across, on a faint dark plate, at the right edge about three quarters down (its baseline ≈ 2.3rem above the
   bottom). Upstream's COST label is not on it. ---- */
.gm.has-hud-art .capsule__kills b { color: #f7a43b; }
.gm.has-hud-art .dpbox {
  top: auto; bottom: 2.3rem; right: .1rem; transform: none; flex-direction: row; align-items: center; gap: .16rem;
  padding: .02rem .1rem .04rem .16rem; border: 0; border-bottom: .05rem solid #fff;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0), rgba(20, 20, 20, .5) 25%, rgba(20, 20, 20, .5));
}
.gm.has-hud-art .dpbox .micro { display: none; }
.gm.has-hud-art .dpbox b { font-family: 'Novecento Wide', var(--font-num); font-size: .66rem; font-weight: 400; line-height: 1.1; letter-spacing: 0; text-shadow: 0 .02rem .06rem rgba(0, 0, 0, .5); }
.gm.has-hud-art .dpbox__icon {
  position: relative; width: .34rem; height: .34rem; color: transparent; overflow: visible;
}
.gm.has-hud-art .dpbox__icon * { display: none; }
.gm.has-hud-art .dpbox::before, .gm.has-hud-art .dpbox::after { /* the white diamond, and the dark "C" on it (unrotated) */
  content: ''; position: absolute; left: .18rem; top: 50%; width: .3rem; height: .3rem; transform: translateY(-50%) rotate(45deg); background: #fff;
}
.gm.has-hud-art .dpbox::after {
  content: 'C'; background: none; transform: translateY(-50%); display: grid; place-items: center; color: #1a1a1a; font: 900 .22rem/1 var(--font-num);
}

/* the 8-player mode: eight rows at .6 of the unit (portraits 48, 10 apart) fit between the top bar and the shop bar [추정] */
.gm.has-hud-art.has-hud-team .team.is-8 { --u: calc(var(--ui-u, .015rem) * .6); }
/* the official list is not shown in a solo game (the KR solo captures, prep and battle: no list) [추정: solo only]: its
   row and plate go, the empty list stays at the top as the anchor of the phone's round damage chip (ui/roundDamage.js,
   css/screens/game-panels.css — with the whole list hidden the chip was gone too) */
.gm.has-hud-art .team.is-solo { top: max(1.3rem, 52px); transform: none; padding: 0; }
.gm.has-hud-art .team.is-solo::before, .gm.has-hud-art .team.is-solo > .team__row { display: none; }
/* (bond popup members) the tier badge at the client's 30 units; members not on the field are only darkened (img_inactive_mask), not grey */
.gm.has-hud-art .bpop__member .uthumb__tier { --tier-h: calc(var(--u) * 30); transform: none; } /* common_chess_level 30×30 (img_chess_level_N: rect = texture 45, no margin) */
.gm.has-hud-art .bpop__member .uthumb.is-dim .uthumb__art, .gm.has-hud-art .bpop__member .uthumb.is-dim .uthumb__art img { filter: none; opacity: 1; }

/* ---- the shop card's first tap (autochess_shop_card_item btn_double_check; KR capture 20): group_able — bg_doublecheck1
   (158×125, teal) over the card's lower part (its centre 25.5 under the card's), 确认购买 22 px Heavy #dcfff7 centred 62
   under the card's centre, the art dimmed behind; group_disable (cannot buy) — bg_doublecheck2 grey, #e4e4e4. The upstream
   "再次点击" hint and the lift stay (the hint small under the label). ---- */
.gm.has-hud-art .shopbar.has-shop-art .scard.is-armed .scard__art { filter: brightness(.5); }
.gm.has-hud-art .shopbar.has-shop-art .scard__confirm {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; top: auto; height: calc(var(--u) * 92); transform: none; /* smaller than the prefab's 125 (maintainer 2026-10-06: too big) */
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0; padding: 0 0 calc(var(--u) * 10);
  background: var(--ha-dc1, none) center / 100% 100% no-repeat, rgba(27, 170, 140, .82); color: #dcfff7; border: 0; box-shadow: none;
  /* fades out upwards (KR captures) */
  -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent); mask-image: linear-gradient(0deg, #000 55%, transparent);
}
.gm.has-hud-art .shopbar.has-shop-art .scard__confirm b { font-size: calc(var(--u) * 18); font-weight: 900; letter-spacing: .04em; padding: 0; line-height: 1.2; }
.gm.has-hud-art .shopbar.has-shop-art .scard__confirm small { font-size: calc(var(--u) * 10); opacity: .7; }
.gm.has-hud-art .shopbar.has-shop-art .scard__confirm.is-no { background: var(--ha-dc2, none) center / 100% 100% no-repeat, rgba(90, 90, 90, .85); color: #e4e4e4; }
.gm.has-hud-art .shopbar.has-shop-art .scard__confirm.is-no small { color: #f0c8c2; }

/* (2026-10-10) 联防 / boss rounds outside 规程 (gameLogic bondLayersPaused): the bond list's pause tip (bond_list_info_view root_pause: matte_pause 157 × 47, 暂停叠层
   15 #d7fff3 — KR 「중첩수 사용제한」, the maintainer's capture), centred on the list 17 above its middle */
.bpause { display: none; }
.gm.has-hud-art .gm__bond-list { position: relative; }
.gm.has-hud-art .bpause { position: absolute; left: 50%; top: calc(50% - var(--u) * 17); z-index: 2; display: flex; align-items: center; justify-content: center;
  width: calc(var(--u) * 157); height: calc(var(--u) * 47); transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  background: var(--ha-pause, rgba(0, 0, 0, .6)) center / 100% 100% no-repeat; font-size: calc(var(--u) * 15); font-weight: 700; color: #d7fff3; letter-spacing: .04em; }

/* 🔍 buttons of a later season's UI theme (规程 ac_n_initial, ui/hud.js checkSprite): the theme's own art at 73×41, 6 units
   below the button's centre, with no bg_check_btn plate (img_normal of the CN autochess_hud_panel) */
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-theme, .gm.has-hud-art .enemybtn.has-sprite.is-theme,
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-theme:hover, .gm.has-hud-art .enemybtn.has-sprite.is-theme:hover:not(.is-grey),
.gm.has-hud-art .gtop__iconbtn.has-sprite.is-theme.is-on, .gm.has-hud-art .enemybtn.has-sprite.is-theme.is-wide:hover:not(.is-grey) {
  background: var(--chk-sprite) center calc(50% + var(--u) * 6) / calc(var(--u) * 73) calc(var(--u) * 41) no-repeat;
}

/* ---- 规程's bond phase (ui/bondStrip.js bondPhaseOf; seasonFeature 'bondPhase'): Ⅰ·Ⅱ·Ⅲ over an active disc — the HUD bond
   item's img_level, 24×24 centred 31.3 above the item's centre (the disc's 9 above it), bondphaseicon/bond_level_N — and
   阶段 Ⅱ after the count pill of the bond dialog (bond_phase/phase_text; a CN capture 2026-11-11: a mint plate, dark text) ---- */
.bslot__phase {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--u, .015rem) * -2); width: calc(var(--u, .015rem) * 24); height: calc(var(--u, .015rem) * 24);
  transform: translateX(-50%); display: grid; place-items: center; pointer-events: none; font-style: normal;
  color: #fff; font-size: calc(var(--u, .015rem) * 17); font-weight: 700; line-height: 1; text-shadow: 0 0 calc(var(--u, .015rem) * 3) #000;
}
.bslot__phase.has-sprite { background: var(--phase) center / contain no-repeat; }
.bpop__phase {
  display: inline-flex; align-items: center; margin: 0 calc(var(--u, .015rem) * -8) 0 calc(var(--u, .015rem) * 6); align-self: stretch;
  padding: 0 calc(var(--u, .015rem) * 8); background: #00e6b0; color: #02140f; font-size: calc(var(--u, .015rem) * 16); font-weight: 700; white-space: nowrap;
}
