/* ==========================================================================================
   screens/draft.css — BAND_DRAFT strategy pick (js/screens/bandDraft.js). Research 06 §4.2: draft order on the left,
   portrait grid, detail pane with 初始生命值 and 确认选择; the 本局信息 dialog (js/ui/matchInfo.js MatchInfoDialog,
   GitHub issue #8 item 1). The 「请选择策略」 band and the 协议启动！ screen are css/screens/protocol-boot.css.
   2026-10-13 (the event's pre-game, video 6:29–7:51; the 2026-10-14 UI package by 雨千代chiyo): name-card rows, a 4-wide
   wall of portraits (since 2026-11-05 as many columns as show every portrait: ui/fitGrid.js), the detail pane sliding
   in on a tap (the order list narrows), 已选定策略 after the pick. Original drawings only; the pg-* keyframes are
   css/screens/briefing.css.
   ========================================================================================== */

/* ---- layout: order | link | wall | detail (0 wide until a portrait is tapped) ----
   The columns switch at once and the pane slides in by transform: a column that grew would carry 确认选择 across the
   screen for its first moments, and an early tap would miss it. */
.draft__main {
  position: relative; z-index: 1; flex: 1; min-height: 0;
  display: grid; grid-template-columns: 6.3rem .42rem minmax(0, 1fr) 0; grid-template-rows: minmax(0, 1fr);
  padding: .04rem .4rem .24rem .4rem;
}
/* 2026-11-16 (the owner: 「策略整体放大一点」): the order column 7.3rem → 6.3rem and the bracket .8 → .42rem give the wall
   about 1.4rem more width; the wall's gaps and paddings are tighter too (below) */
.draft--detail .draft__main { grid-template-columns: 4.7rem .16rem minmax(0, 1fr) 4.6rem; }
.draft--detail .draft-order__rows { padding: .08rem .12rem .1rem .28rem; }
.draft--detail .dorder { grid-template-columns: minmax(0, 1fr) calc(var(--drh, 1.26rem) * .873) .42rem; gap: .06rem; }
.draft--detail .dorder__box { width: calc(var(--drh, 1.26rem) * .873); height: calc(var(--drh, 1.26rem) * .873); }
.draft--detail .dorder__card { padding: 0 .1rem 0 .14rem; gap: .1rem; }
.draft--detail .dorder__name { gap: .04rem; font-size: calc(.21 * var(--t)); }
.draft--detail .dorder__medal { width: .26rem; height: .26rem; }
.draft--detail .dorder .pavatar { --pa: calc(var(--drh, 1.26rem) * .587); }

/* ---- the order: name-card rows ---- */
.draft-order {
  grid-column: 1; position: relative; display: flex; flex-direction: column; gap: .14rem; min-width: 0; min-height: 0;
  padding: .24rem 0 .18rem .3rem;
  background: linear-gradient(180deg, rgba(48, 118, 100, .26), rgba(20, 46, 40, .16) 70%, rgba(14, 24, 22, .06));
  clip-path: polygon(0 0, calc(100% - .5rem) 0, 100% .5rem, 100% 100%, 0 100%);
  animation: pg-left 460ms var(--pg-ease) 100ms backwards;
}
.draft-order__deco { flex: none; display: flex; align-items: center; gap: .05rem; height: .28rem; overflow: hidden; }
.draft-order__deco i { width: .5rem; height: .18rem; background: rgba(63, 230, 180, .4); }
.draft-order__deco i + i { width: .18rem; }
.draft-order__deco span { margin-left: .08rem; font-family: var(--font-num); font-size: calc(.1 * var(--t)); line-height: 1.15; letter-spacing: .08em; color: rgba(120, 240, 205, .55); white-space: nowrap; }
/* the rows take the height that shows them all (bandDraft.js DRAFT_ROW_REM, ui/fitGrid.js: --drh, 1.26rem at most, .96 at
   least — the owner, 2026-11-05: 「尽量不用滚动」); past that (an expanded room's 8–20 seats) the list scrolls */
.draft-order__rows { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .16rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: .06rem .5rem .08rem .3rem; scrollbar-width: none; }
/* centred in the column when they fit, so the bracket beside the wall points at them (the official 2/3 and 3/3,
   2026-11-21); auto margins give way to the scroll when they do not */
.draft-order__rows > :first-child { margin-top: auto; }
.draft-order__rows > :last-child { margin-bottom: auto; }
/* this match's battlefield (#65): the render of the stage (ui/stagePreview.js StageShot, the briefing's picture — no drawn
   map since 2026-11-21) and its name */
.draft-map { flex: none; display: flex; align-items: center; gap: .16rem; min-width: 0; margin-right: .5rem; padding: .08rem .12rem; background: rgba(6, 12, 10, .55); box-shadow: inset 0 0 0 1px rgba(120, 240, 205, .16); }
.draft--detail .draft-map { margin-right: .12rem; }
.draft-map__text { display: flex; flex-direction: column; gap: .02rem; min-width: 0; }
.draft-map__text b { font-size: calc(.18 * var(--t)); line-height: 1.25; color: var(--text-hi); overflow-wrap: anywhere; }
.draft-map__text small { font-size: calc(.13 * var(--t)); color: var(--text-dim); }
.draft-map .reg-map--shot { flex: none; width: 2.42rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
/* an experimental room's chess pools (#66) */
.draft-pool { flex: none; display: flex; flex-direction: column; gap: .12rem; padding-left: .12rem; border-left: .03rem solid var(--line-2); }
.draft-pool.is-mine { border-left-color: var(--mint-500); }
.draft-pool__head { display: flex; align-items: baseline; gap: .1rem; font-size: calc(.18 * var(--t)); color: var(--text-hi); }
.draft-pool__head small { font-size: calc(.14 * var(--t)); color: var(--text-lo); }
.draft-pool.is-mine .draft-pool__head b, .draft-pool__head .draft-pool__mine { color: var(--mint-400); }
.draft-pool__head .draft-pool__mine { margin-left: auto; }
.draft-order__tip { flex: none; margin: 0; padding-right: .5rem; font-size: calc(.14 * var(--t)); line-height: 1.55; color: var(--text-dim); }
.draft--detail .draft-order__tip, .draft--detail .draft-order__deco span { display: none; }

.dorder { position: relative; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--drh, 1.26rem) * .952) .5rem; align-items: center; gap: .1rem; height: var(--drh, 1.26rem);
  animation: pg-left 420ms var(--pg-ease) backwards; animation-delay: calc(180ms + var(--i, 0) * 70ms); }
.dorder__card { position: relative; height: 100%; display: flex; align-items: center; gap: .16rem; min-width: 0; padding: 0 .16rem 0 .2rem; overflow: hidden;
  background: linear-gradient(90deg, #1d2223, #262b2c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* the 名片干员 half-body (1:2) in a box about 1.6 rows wide at the card's right end, so the row shows the face (the full
   card width scaled it up until only the hair and forehead were left); the same box for an <img> or a background */
.dorder__art { position: absolute; top: 0; right: 0; bottom: 0; width: 2rem; max-width: 72%; height: 100%; background-size: cover; background-position: 50% 12%; object-fit: cover; object-position: 50% 12%; opacity: .7; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%); }
.dorder__face { position: relative; flex: none; }
.dorder .pavatar { --pa: calc(var(--drh, 1.26rem) * .714); box-shadow: 0 0 0 .03rem #e6e9e9; border: 0; }
.dorder__me { position: absolute; left: -.14rem; top: -.14rem; width: .32rem; height: .32rem; display: grid; place-items: center; background: var(--mint-500); color: #062019; box-shadow: 0 0 0 .02rem #062019; }
.dorder__me .icon { width: 72%; height: 72%; }
.dorder__text { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; gap: .05rem; min-width: 0; text-shadow: 0 1px 3px #000, 0 0 .1rem #000; }
/* A doctor's name, whole (the owner, 2026-11-16: 「不要出现省略号」 — 「Doctor…」 in the list the detail pane narrows): the client's
   best fit (its player card's text_name: BestFit from 18 down in one line). bandDraft.js measures it in the text column, which
   takes the card's whole width beside the avatar (ui/fitGrid.js fitNameBox):
   data-fit="one", shrunk by --nk on its line beside the trophy and the AI / 服主 tags, to a readable floor (72 % of its size or
   11 px, never above its size); data-fit="wrap" past the floor, the trophy (scaled with it) and the tags in its flow, balanced,
   a long word broken as a last resort (Japanese strict, Korean between words). Unmeasured (no ResizeObserver, the first frame)
   it wraps at its size. */
.dorder__name { display: block; gap: .06rem; min-width: 0; font-size: calc(.24 * var(--t)); font-weight: 700; color: #f2f4f4;
  line-height: calc(1.15em * var(--nk, 1)); /* the lines of the shrunk name, not of the row's own size */
  overflow-wrap: anywhere; text-wrap: balance; }
.dorder__name:lang(ja) { line-break: strict; }
.dorder__name:lang(ko) { word-break: keep-all; }
.dorder__nm { font-size: calc(1em * var(--nk, 1)); }
.dorder__nm .sp-owner-line { display: inline; max-width: none; white-space: inherit; }
.dorder__nm .sp-owner-name { overflow: visible; text-overflow: clip; white-space: inherit; }
.dorder__nm .sp-owner-badge { margin-left: 4px; }
.dorder__name .dorder__ai { display: inline-block; margin-left: .3em; }
.dorder__name[data-fit="wrap"] > .tbadge--inline { width: calc(1.35em * var(--nk, 1)); height: calc(1.35em * var(--nk, 1)); }
.dorder__name:is([data-fit="one"], [data-fit="measure"]) { display: flex; align-items: center; line-height: 1.2; white-space: nowrap; }
.dorder__name[data-fit="one"] > .dorder__nm { flex: 0 1 auto; min-width: 0; }
.dorder__name[data-fit="measure"] > .dorder__nm { flex: none; }
.dorder__name:is([data-fit="one"], [data-fit="measure"]) .sp-owner-line { display: inline-flex; }
.dorder__name:is([data-fit="one"], [data-fit="measure"]) :is(.sp-owner-badge, .dorder__ai) { margin-left: 0; }
/* a column taller than its card (a phone at 大 / 特大): at the card's top, so the card cuts the state line and the plan under
   the name, never the name */
.dorder__text[data-over] { align-self: flex-start; margin-top: 1px; }
/* the player's best trophy medal (local records) before the name, at the name's height */
.dorder__medal { flex: none; width: .34rem; height: .34rem; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.dorder__ai { flex: none; font-family: var(--font-num); font-size: calc(.11 * var(--t)); padding: 0 .04rem; background: #a9c3d8; color: #0b1520; }
.dorder__state { font-size: calc(.15 * var(--t)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dorder__box { position: relative; width: calc(var(--drh, 1.26rem) * .952); height: calc(var(--drh, 1.26rem) * .952); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .04rem; padding: 0;
  background: #2b2f30; color: #767c7e; font-size: calc(.2 * var(--t)); font-weight: 700; }
.dorder__box.is-wait .icon { width: .52rem; height: .52rem; }
.dorder__box.is-cur { background: linear-gradient(180deg, #f2f4f4, #cdd1d1); color: #15191a; box-shadow: 0 0 0 .03rem #fff, 0 .04rem .14rem rgba(0, 0, 0, .55); }
.dorder__box.is-cur .icon { width: .46rem; height: .46rem; }
.dorder__box.is-band { cursor: var(--sp-cursor-pointer, pointer); overflow: hidden; background: radial-gradient(circle at 50% 40%, #1f4a40, #0c1513 75%); box-shadow: inset 0 0 0 1px rgba(120, 240, 205, .25); }
.dorder__box.is-band .bandicon { --bi: 100%; width: 100%; height: 100%; background: transparent; }
.dorder__box.is-band:hover { box-shadow: inset 0 0 0 2px var(--mint-400); }
/* a free draft (screens/bandDraft.js header): a choice not locked yet — the band behind a dashed gold frame, 未锁定 under it */
.dorder__box.is-held { box-shadow: inset 0 0 0 1px rgba(255, 214, 120, .55); background: radial-gradient(circle at 50% 40%, #3a3320, #14120c 75%); }
.dorder__box.is-held .bandicon { opacity: .72; }
.dorder__box.is-held:hover { box-shadow: inset 0 0 0 2px #ffd678; }
.dorder__unlocked { position: absolute; left: 0; right: 0; bottom: 0; padding: .02rem 0; background: rgba(12, 12, 10, .78); color: #ffd678;
  font-size: min(calc(.13 * var(--t)), 11px); font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.2; }
.dorder__zoom { position: absolute; left: 50%; bottom: .04rem; width: .3rem; height: .3rem; transform: translateX(-50%); color: #fff; filter: drop-shadow(0 0 2px #000); }
.dorder__check { width: .44rem; height: .44rem; display: grid; place-items: center; }
.dorder.is-done .dorder__check { border: .03rem solid var(--mint-400); border-radius: .06rem; background: rgba(23, 249, 183, .12); color: var(--mint-400); box-shadow: 0 0 .14rem rgba(23, 249, 183, .45); }
.dorder__check .icon { width: 80%; height: 80%; }
/* the doctor deciding: a mint frame around card + box, ▶ on the left */
.dorder.is-cur .dorder__card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 .03rem var(--mint-400), 0 0 .22rem rgba(23, 249, 183, .3); }
.dorder.is-cur::before { content: ''; position: absolute; left: -.26rem; top: 50%; transform: translateY(-50%); border: .09rem solid transparent; border-left: .13rem solid var(--mint-400); border-right: 0;
  animation: dorder-mark 1.2s ease-in-out infinite; }
@keyframes dorder-mark { 50% { transform: translate(-.05rem, -50%); } }
/* the pick landing: a beam runs out of the box, the box flares, ✓ pops (useRise) */
.dorder.is-flash::after { content: ''; position: absolute; left: 52%; right: -1.8rem; top: 50%; height: .8rem; pointer-events: none;
  background: radial-gradient(closest-side, rgba(210, 255, 242, .95), rgba(63, 230, 180, .55) 45%, transparent); filter: blur(2px);
  transform-origin: 0 50%; animation: dorder-beam 1.1s ease-out both; }
@keyframes dorder-beam { 0% { opacity: 0; transform: translateY(-50%) scaleX(.15); } 22% { opacity: 1; transform: translateY(-50%) scaleX(1); } 100% { opacity: 0; transform: translateY(-50%) scaleX(1.12); } }
.dorder.is-flash .dorder__box { animation: pg-glow 900ms ease-out; }
.dorder.is-flash .dorder__check { animation: pg-pop 320ms var(--pg-ease) 140ms backwards; }

/* the bracket between the order and the wall */
.draft__link { grid-column: 2; position: relative; pointer-events: none; transition: opacity 200ms; }
.draft__link::before { content: ''; position: absolute; right: .06rem; top: 34%; bottom: 34%; width: .1rem; border: 1px solid rgba(255, 255, 255, .22); border-left: 0; }
.draft__link::after { content: ''; position: absolute; left: .06rem; right: .16rem; top: 50%; height: .05rem; transform: translateY(-50%);
  background: linear-gradient(90deg, var(--mint-400) .05rem, rgba(255, 255, 255, .5) .05rem calc(100% - .05rem), var(--mint-400) calc(100% - .05rem)); }
.draft--detail .draft__link { opacity: 0; }

/* ---- the wall of strategies ----
   Every portrait in view (the owner, 2026-11-05: 「尽量不用滚动」): bandDraft.js measures the wall's box and sets the column
   count and the tile size that show them all (ui/fitGrid.js fitTiles: --dcols, --dtile; 1.9rem at most, the design's 4-wide
   wall when the box is large enough, .9rem at least — past that the wall scrolls, data-fit="scroll"). Without a measure
   (no ResizeObserver) the design's 4 × 1.9rem. */
.draft-grid {
  grid-column: 3; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(var(--dcols, 4), minmax(0, var(--dtile, 1.9rem))); justify-content: center; align-content: start; gap: .16rem .14rem;
  padding: .12rem .16rem .16rem; background: linear-gradient(180deg, rgba(18, 22, 22, .6), rgba(10, 12, 12, .3)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
/* all in view: the wall sits in the middle of its box (a scrolling one keeps its top reachable); what a search finds
   starts at the top, under the box */
.draft-grid[data-fit="all"] { align-content: center; }
.draft-grid.is-search { align-content: start; }
.dband[hidden], .draft-grid__sec[hidden] { display: none; }
/* the search box (bandDraft.js, ui/bandSearch.js; the owner, 2026-11-16) in the step header's status, left of the turn
   line, over the wall: the query, × to clear it, and how many strategies it finds (按效果描述 when only descriptions
   matched). It gives way first when the header is tight (down to its icon and a few characters). 16 px on touch screens:
   iOS zooms smaller fields. */
.draft .stephead__status { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.draft-headbar { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: .3rem; min-width: 0; }
.draft-search { flex: 0 1 4.2rem; display: flex; align-items: center; gap: .08rem; min-width: max(1.3rem, 64px); height: max(.5rem, 28px); padding: 0 .06rem 0 .14rem;
  background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); border-radius: .04rem; transition: box-shadow var(--t-fast); }
.draft-search:focus-within { box-shadow: inset 0 0 0 1px var(--mint-500), 0 0 .12rem rgba(23, 249, 183, .25); }
.draft-search__icon { flex: none; width: max(.2rem, 13px); height: max(.2rem, 13px); color: #aab4b1; }
.draft-search__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; font: inherit; font-size: max(calc(.17 * var(--t)), 12px); color: #eef2f1;
  background: none; border: 0; outline: none; }
.draft-search__input::placeholder { color: rgba(225, 240, 236, .42); }
.draft-search__input::-webkit-search-cancel-button { display: none; }
.draft-search__clear { flex: none; display: grid; place-items: center; width: max(.34rem, 24px); height: max(.34rem, 24px); padding: 0; border: 0; color: #cfd8d5;
  background: rgba(255, 255, 255, .1); cursor: var(--sp-cursor-pointer, pointer); }
.draft-search__clear:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.draft-search__clear .icon { width: 62%; height: 62%; }
.draft-search__count { flex: none; display: inline-flex; align-items: baseline; gap: .04rem; padding: 0 .06rem; white-space: nowrap;
  font-size: max(calc(.15 * var(--t)), 11px); color: var(--text-lo); }
.draft-search__count b { font-size: max(calc(.19 * var(--t)), 13px); color: var(--mint-400); }
.draft-search__count small { margin-right: .04rem; font-size: inherit; color: var(--gold); }
.draft-search__count.is-none { color: #ff9d90; }
:is(.sp-touch, .sp-coarse) .draft-search__input { font-size: 16px; }
/* 规程's section headers (泛用型策略 / 盟约型策略, bandType): the icon in a small box, then the caption in brackets across
   the four columns, as the official draft */
.draft-grid__sec { grid-column: 1 / -1; display: flex; align-items: center; gap: .1rem; margin-top: .02rem; padding: .02rem .04rem;
  font-size: max(calc(.17 * var(--t)), 10px); font-weight: 700; color: rgba(225, 240, 236, .92);
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), transparent 75%); }
.draft-grid__sec .icon { box-sizing: content-box; width: calc(.15 * var(--t)); height: calc(.15 * var(--t)); padding: .04rem;
  color: rgba(225, 240, 236, .92); background: rgba(255, 255, 255, .12); border-radius: .03rem; }
.draft-grid__sec span { position: relative; padding: 0 .1rem; }
.draft-grid__sec span::before, .draft-grid__sec span::after { content: ''; position: absolute; top: -.02rem; bottom: -.02rem; width: .05rem;
  border: .02rem solid rgba(225, 240, 236, .7); }
.draft-grid__sec span::before { left: 0; border-right: 0; }
.draft-grid__sec span::after { right: 0; border-left: 0; }
.dband, .dorder__box, .draft-skip, .draft-lockbtn, .stephead__info { border: 0; font: inherit; }
.dband {
  /* the name and the marks are sized off the tile, whatever size the wall gives it: --dtile, the width ui/fitGrid.js gives the
     wall's columns (no container query: client-static, Firefox ESR 115 / Safari 15) */
  position: relative; aspect-ratio: 1; padding: 0; color: var(--text-md); background: #0e1212;
  box-shadow: 0 0 0 .03rem #30373a, inset 0 0 0 .02rem #000; transition: box-shadow var(--t-fast), transform var(--t-fast), filter var(--t-fast);
  animation: pg-card 420ms var(--pg-ease) backwards; animation-delay: calc(220ms + var(--n, 0) * 28ms);
}
.dband__frame { position: absolute; inset: .07rem; overflow: hidden; background: radial-gradient(circle at 50% 42%, #1e3f37, #0b1211 72%); }
.dband__frame .bandicon { --bi: 100%; width: 100%; height: 100%; background: transparent; }
.dband__frame img { filter: saturate(.75) contrast(1.05); }
.dband__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px), radial-gradient(circle at 50% 46%, transparent 48%, rgba(4, 10, 9, .78) 74%),
    linear-gradient(180deg, rgba(60, 230, 185, .1), rgba(60, 230, 185, .2)); }
.dband__name { position: absolute; left: .07rem; right: .07rem; bottom: .07rem; padding: .5em .06em .12em; text-align: center; pointer-events: none;
  /* the whole name, never an ellipsis (the owner, 2026-11-16): its size is taken from the tile — about six characters a
     line — with a readable floor, then fitted (below: one line, shrunk; past its floor wrapped between words). Unmeasured
     it wraps, balanced (「伊奥莱塔·/罗素」, 「“变形者/集群”」), a word longer than the tile broken as a last resort.
     文字大小 scales it (--dname-k). */
  white-space: normal; text-wrap: balance; overflow-wrap: anywhere; line-height: 1.12;
  font-size: max(9px, calc(var(--dname-k, 1) * var(--dtile, 1.9rem) * .145)); font-weight: 700; color: rgba(232, 244, 240, .9); text-shadow: 0 1px 2px #000;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, .78)); }
.dband__name:lang(ja) { line-break: strict; }
.dband__name:lang(ko) { word-break: keep-all; }
/* Measured (bandDraft.js, ui/fitGrid.js fitBandNames; the owner, 2026-11-16: Korean names were broken inside a word on a
   phone, 「에르망가|르드」): the best fit of a doctor's name — data-fit="one", shrunk by --bk on one line to a readable floor
   (72 % of its size or 11 px, never above its size: a phone's 9 px keeps it); "wrap" past the floor, at the floor, between
   words only (Korean keep-all; Japanese keep-all too, at its ・ — 「イオレッタ・/ラッセル」, not 「イオレッ/タ・ラッセル」 —
   strict) — a word wider than the tile at the floor takes "wrap" a little under it (to 85 % of the floor, not under 8 px:
   「클레멘티아」 on a phone); "break" only for a word wider even there (at the floor, anywhere, as unmeasured; Japanese then
   between its kana, strict). measure / measure-line / measure-word: the fit's own passes (its size, one line, the widest piece). */
.dband__name[data-fit] { font-size: calc(var(--bk, 1) * max(9px, calc(var(--dname-k, 1) * var(--dtile, 1.9rem) * .145))); }
.dband__name:is([data-fit="one"], [data-fit="measure"], [data-fit="measure-line"]) { white-space: nowrap; }
.dband__name:is([data-fit="wrap"], [data-fit="measure-word"]) { overflow-wrap: normal; }
.dband__name:lang(ja):is([data-fit="wrap"], [data-fit="measure-word"]) { word-break: keep-all; }
.dband__name:is([data-fit="measure-line"], [data-fit="measure-word"]) { right: auto; width: max-content; }
.dband__name[data-fit="measure-word"] { width: min-content; }
:root[data-text="md"] .draft { --dname-k: 1.08; }
:root[data-text="lg"] .draft { --dname-k: 1.18; }
:root[data-text="xl"] .draft { --dname-k: 1.3; }
.dband:hover { box-shadow: 0 0 0 .03rem rgba(120, 240, 205, .7), inset 0 0 0 .02rem #000; filter: brightness(1.12); }
.dband:active { transform: scale(.97); }
.dband:focus-visible { outline: none; box-shadow: 0 0 0 .04rem var(--mint-400); }
/* SELECTED: mint corner brackets, the word above, a notch below */
.dband.is-sel { box-shadow: 0 0 0 .03rem rgba(120, 240, 205, .5); filter: brightness(1.15); }
.dband.is-sel::before { content: ''; position: absolute; inset: -.07rem; pointer-events: none; --c: var(--mint-400); --l: .34rem; --w: .05rem;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
  filter: drop-shadow(0 0 .06rem rgba(23, 249, 183, .7)); animation: dband-sel 220ms var(--pg-ease) backwards; }
@keyframes dband-sel { from { opacity: 0; transform: scale(1.12); } }
.dband.is-sel::after { content: ''; position: absolute; left: 50%; bottom: -.2rem; transform: translateX(-50%); border: .08rem solid transparent; border-bottom: .1rem solid var(--mint-400); border-top: 0; }
/* SELECTED straddles the top edge, as the client's team_list_selected_text (75×37 at 63 px over the item's centre): the
   corner marks stay readable, drawn over its ends */
.dband__selmark { position: absolute; left: 50%; top: 0; z-index: 1; transform: translate(-50%, -55%); padding: 0 .05rem; white-space: nowrap; font-family: var(--font-num);
  font-size: max(calc(.11 * var(--t)), 7px); line-height: 1.4; letter-spacing: .1em; color: var(--mint-400); background: rgba(6, 14, 12, .85); text-shadow: 0 0 3px #000; pointer-events: none; }
.dband.is-mine { box-shadow: 0 0 0 .04rem var(--mint-400), 0 0 .2rem rgba(23, 249, 183, .35); }
/* 已被选择: dimmed, a red band across the lower third */
.dband.is-taken { cursor: not-allowed; }
.dband.is-taken .dband__frame { filter: grayscale(.7) brightness(.55); }
.dband.is-taken:hover { filter: none; box-shadow: 0 0 0 .03rem #5a2a26, inset 0 0 0 .02rem #000; }
.dband.is-taken:active { transform: none; }
.dband__taken { position: absolute; left: .07rem; right: .07rem; bottom: .07rem; height: 36%; display: grid; place-items: center; pointer-events: none;
  font-size: max(9px, min(calc(.21 * var(--t)), calc(var(--dtile, 1.9rem) * .17))); font-weight: 700; letter-spacing: .04em; white-space: nowrap; color: #ff9d90;
  background: linear-gradient(180deg, rgba(140, 20, 16, .35), rgba(176, 26, 20, .88)); box-shadow: inset 0 -.03rem 0 #ff4a3a, 0 0 .16rem rgba(255, 60, 40, .25);
  animation: dband-taken 420ms var(--pg-ease) backwards; }
@keyframes dband-taken { from { opacity: 0; transform: scaleY(.2); filter: brightness(2); } }
/* short landscape phones (≤ 520 CSS px tall): the header's status and buttons capped (§35.51: at 大 / 特大 already
   「已被 / 选择」 broke and names ended in an ellipsis; both are tile-sized since 2026-11-16, above). Each cap grows half a
   pixel a step above 中 (--t-step). [ASSUMED] the caps */
@media (max-height: 520px) {
  /* the header's status (请选择策略 over 跳过选择, whose turn it is, 策略选择完成) takes the step's name's place: at 大 / 特大
     it ran over 选择策略 and 跳过选择 broke into two lines (§35.51); 2/2 stays, and the status says what the step is */
  .draft.has-status .stephead__name { display: none; }
  /* … and the row gives the status real room (§35.51 review: at 中 – 特大 the status still ran over 2/2 in English,
     Japanese and Korean, the mode tag over 本局信息, 跳过选择 over 2/2; the row itself: below, at every size): here the
     mode tag, 本局信息 and 2/2 are capped, the status line too, beside 跳过选择 sized to its text. (`.draft` raises these
     above the base rules written further down: the §35.51 version of the 跳过选择 rule lost to its base `height: .44rem`) */
  .draft .stephead__mode .dtag { font-size: min(calc(.26 * var(--t)), calc(13px + var(--t-step))); }
  .draft .stephead__info { height: auto; min-height: .4rem; font-size: min(calc(.2 * var(--t)), calc(12px + var(--t-step))); }
  /* above 小 本局信息 shows its magnifier only (its name stays the button's title), leaving the status its line */
  :root:not([data-text="sm"]) .draft .stephead__info > span { display: none; }
  .draft .stephead__title b { font-size: min(calc(.54 * var(--t)), calc(26px + 2 * var(--t-step))); }
  .draft .stephead__of { font-size: min(calc(.34 * var(--t)), calc(17px + var(--t-step))); }
  .draft .dturn__go b { white-space: normal; text-wrap: balance; line-height: 1.15; font-size: min(calc(.4 * var(--t)), calc(15px + var(--t-step))); }
  /* above 小 the pointing finger gives the status line its width (the line says it is the player's turn) */
  :root:not([data-text="sm"]) .draft .dturn__finger { display: none; }
  .draft .dturn__txt b { font-size: min(calc(.28 * var(--t)), calc(14px + var(--t-step))); text-align: right; }
  .draft .dturn__txt span { font-size: min(calc(.24 * var(--t)), calc(12px + var(--t-step))); text-align: right; }
  .draft .draft-skip { white-space: nowrap; font-size: min(calc(.22 * var(--t)), calc(13px + var(--t-step) / 2)); }
  .draft .draft-lockbtn { white-space: nowrap; font-size: min(calc(.22 * var(--t)), calc(13px + var(--t-step) / 2)); }
  /* the order box's 选择中 / Deciding under its icon (English 「Deciding」 ran 2–6 px past the box at 大 / 特大) */
  .draft .dorder__box span { max-width: 100%; letter-spacing: 0; font-size: min(calc(.18 * var(--t)), calc(10px + var(--t-step) / 2)); }
  /* the decorative STRONGHOLD PROTOCOL / COLLABORATIVE SYSTEM gives way at 大 / 特大 (it ran past its .34rem strip) */
  :root[data-text="lg"] .draft-order__deco span, :root[data-text="xl"] .draft-order__deco span { display: none; }
  .dband__taken { letter-spacing: 0; }
  /* (a strategy's name: the tile-sized rule above — it wraps rather than end in an ellipsis; Japanese never starts a line
     with a small kana, ー or a closing mark, Korean breaks between words: §35.51) */
  /* the wall's gaps tighter still on a short screen; the search box narrower, its count without the total */
  .draft-grid { gap: max(.1rem, 4px) max(.1rem, 4px); padding: max(.08rem, 4px) max(.1rem, 4px) max(.12rem, 5px); }
  .draft-headbar { gap: .2rem; }
  .draft-search { flex-basis: 4.6rem; }
  .draft-search__count > span { display: none; }
}
.dband.is-taken .dband__name { display: none; }
/* The client's corner marks on its 140-px band item (AutoChessBandChooseBandItemView; bandDraft.js BandBadge / BandOffTag),
   placed in % of the tile as there (our portrait frame, inset .07rem, is its 120-px icon):
   * gold — team_list_victor_team 129×132 centred (13.1, 11.5) off the item's centre: the strategy's victorCount of clears
     in this browser's records (ui/stats.js strategyBadgeIds); without the local art the stats page's sprite
     (statistics/strategyBadge, its own box), then an orange rook in a box;
   * colourful (规程) — team_list_master_team_bg 115×118 over the portrait and team_list_master_team 63×64 at (45.6, 44.8):
     masterVictorCount clears (strategyMasterIds), in place of the gold one;
   * red — team_list_banned_icon 38×38 at (−39.7, 41): a bond of the strategy is off this match (no text on it). */
.dband__badge { position: absolute; left: 13.3%; top: -5.4%; width: 92.1%; height: 94.3%; z-index: 2; pointer-events: none; }
.dband__badge-art { display: block; width: 100%; height: 100%; object-fit: fill; }
.dband__badge-web { position: absolute; left: 16.45%; top: -5.73%; width: 89.4%; height: 89.9%; object-fit: contain; }
.dband__badge--master { left: 0; top: 0; width: 100%; height: 100%; }
.dband__master-bg { position: absolute; left: 8.9%; top: 7.9%; width: 82.1%; height: 84.3%; object-fit: fill; mix-blend-mode: screen; }
.dband__master-icon { position: absolute; left: 60.1%; top: -4.9%; width: 45%; height: 45.7%; object-fit: contain; filter: drop-shadow(0 0 .04rem rgba(0, 0, 0, .6)); }
.dband__medal { position: absolute; right: 20%; top: 20%; width: .36rem; height: .36rem; display: grid; place-items: center; color: #ffb03a;
  background: rgba(70, 36, 4, .7); box-shadow: inset 0 0 0 .03rem #ff9a1f, 0 0 .1rem rgba(255, 150, 30, .4); }
.dband__medal .icon { width: 70%; height: 70%; }
.dband__medal--master { left: 64%; right: auto; top: 0; width: 36%; height: 36%; color: #fff;
  background: conic-gradient(from 200deg, #6fe7ff, #b48cff, #ff8fd0, #ffe58a, #8dffc8, #6fe7ff); box-shadow: inset 0 0 0 .02rem rgba(255, 255, 255, .8); }
.dband__off { position: absolute; left: 8.1%; top: 7.1%; z-index: 3; width: max(27.1%, 14px); aspect-ratio: 1; pointer-events: none; }
.dband__off-art { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)); }
.dband__off-mark { position: absolute; inset: 0; display: grid; place-items: start; padding: 6%; color: #ffd9d4;
  background: linear-gradient(135deg, #c3221b 50%, transparent 50%); }
.dband__off-mark .icon { width: 48%; height: 48%; }
.dband__who { position: absolute; left: .1rem; top: .1rem; display: flex; flex-direction: column; gap: .02rem; pointer-events: none; }
/* the pickers' avatars move under the red corner mark */
.dband.is-off .dband__who { top: calc(8% + max(27.1%, 14px)); }
.dband__who .pavatar { --pa: .3rem; border-radius: 50%; overflow: hidden; border: 2px solid var(--mint-400); }
/* a strategy built around a bond the mode switches off (bandDraft.js BandOffTag / BandOffNote, DESIGN §21.26): information
   only, it stays selectable. The card: the client's red corner mark (above) and the portrait dimmed (rel34, the owner:
   「让玩家避免选择」); the detail pane: the note on the client's banned tip. Px floors keep it readable on phones. */
.dband.is-off:not(.is-taken) .dband__frame { filter: grayscale(.55) brightness(.72); }
.dband.is-off.is-sel:not(.is-taken) .dband__frame, .dband.is-off.is-mine:not(.is-taken) .dband__frame { filter: grayscale(.25) brightness(.9); }
.draft-detail__off { display: flex; align-items: flex-start; gap: .08rem; margin: .04rem 0 .06rem; padding: .08rem .12rem .07rem;
  font-size: max(calc(.15 * var(--t)), 9px); line-height: 1.5; color: #ff9c96; background: linear-gradient(180deg, rgba(150, 20, 16, .12), rgba(176, 26, 20, .5)); }
/* the client's bg_banned_tips (256×69: clear at the top, red at the foot) stretched over the note */
.draft-detail__off.has-art { background: var(--off-bg) center / 100% 100% no-repeat; }
.draft-detail__off .icon, .draft-detail__off-icon { width: max(.2rem, 12px); height: max(.2rem, 12px); flex: none; margin-top: .02rem; object-fit: contain; }
.draft-detail__offname { color: #ffd0cb; text-decoration: line-through; text-decoration-color: rgba(255, 84, 84, .8); }

/* ---- the detail pane (slides in from the right on a tap) ---- */
.draft-detail {
  grid-column: 4; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; margin-left: .16rem;
  padding: .26rem .26rem .1rem; background: linear-gradient(180deg, rgba(30, 84, 72, .5), rgba(14, 32, 28, .4) 55%, rgba(8, 12, 12, .2));
  animation: pg-right 280ms var(--pg-ease) backwards;
}
.draft-detail__body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; scrollbar-width: none; animation: pg-fade 200ms ease-out backwards; }
.draft-tag { align-self: flex-start; display: inline-block; height: .13rem; margin: .08rem 0 .05rem; padding: 0 .06rem; font-family: var(--font-num); font-size: calc(.09 * var(--t)); line-height: .13rem;
  letter-spacing: .12em; color: #082a20; background: rgba(63, 230, 180, .62); }
.draft-detail__art, .draft-done__art { position: relative; align-self: center; display: grid; place-items: center; width: 2.6rem; height: 2.3rem; margin: .18rem 0 .14rem; flex: none; }
.draft-detail__art::before, .draft-done__art::before { content: ''; position: absolute; inset: 0 .14rem; pointer-events: none;
  border: .03rem solid rgba(220, 240, 236, .5); clip-path: polygon(0 0, .26rem 0, .26rem 100%, 0 100%, 0 0, 100% 0, 100% 100%, calc(100% - .26rem) 100%, calc(100% - .26rem) 0, 100% 0); }
.draft-detail__art::after, .draft-done__art::after { content: '+   +'; position: absolute; inset: -.18rem -.1rem auto; text-align: justify; text-align-last: justify; font-size: calc(.3 * var(--t)); line-height: 1; color: rgba(220, 240, 236, .25); pointer-events: none; }
.draft-detail__art .bandicon, .draft-done__art .bandicon { --bi: 2.1rem; background: transparent; }
.draft-detail__art img, .draft-done__art img { filter: saturate(.8) drop-shadow(0 0 .14rem rgba(63, 230, 180, .35)); }
/* 已通过模拟 N 次 on the client's plates (bandDraft.js BandMedal): pass_time_back (54×27, 15-px caps) with pass_time_icon
   overhanging its left end and orange text (group_win_times); at masterVictorCount master_title_bg (156×65, the colourful
   badge in its 58-px left cap, 79 right, 22 top and bottom) with white text (group_master) */
.draft-detail__medal { --mh: max(.3rem, 18px); position: relative; align-self: center; display: inline-flex; align-items: center; gap: .04rem; height: var(--mh); margin: .04rem 0 .08rem;
  padding: 0 .16rem; font-size: max(calc(.16 * var(--t)), 10px); font-weight: 700; color: #ff9d1b; white-space: nowrap;
  background: rgba(70, 36, 4, .7); box-shadow: inset 0 0 0 .02rem #ff9a1f; border-radius: 1em; }
.draft-detail__medal.is-victor { padding-left: calc(var(--mh) * 1.15); }
.draft-detail__medal.is-victor.has-art { background: none; box-shadow: none; border-radius: 0; border: solid transparent; border-width: 0 calc(var(--mh) * 15 / 27);
  border-image: var(--medal-bg) 0 15 fill stretch; padding-right: .04rem; }
.draft-detail__medal-icon { position: absolute; left: calc(var(--mh) * -.45); top: 50%; width: calc(var(--mh) * 1.6); height: calc(var(--mh) * 1.6); transform: translateY(-50%); object-fit: contain; }
.draft-detail__medal.is-master { --mh: max(.46rem, 27px); padding: 0 .2rem 0 calc(var(--mh) * .95); color: #fff;
  background: linear-gradient(90deg, rgba(120, 200, 255, .35), rgba(200, 140, 255, .3) 50%, rgba(255, 180, 220, .2)); box-shadow: inset 0 0 0 .02rem rgba(255, 255, 255, .6); }
.draft-detail__medal.is-master.has-art { background: none; box-shadow: none; border-radius: 0; border: solid transparent; padding: 0 .02rem;
  border-width: calc(var(--mh) * 22 / 65) calc(var(--mh) * 79 / 65) calc(var(--mh) * 22 / 65) calc(var(--mh) * 58 / 65);
  border-image: var(--medal-bg) 22 79 22 58 fill stretch; }
.draft-detail__hp, .draft-done__hp { align-self: center; display: flex; align-items: center; gap: .1rem; font-size: calc(.24 * var(--t)); color: #e8ecec; }
.draft-detail__hp b, .draft-done__hp b { padding: 0 .08rem; font-size: calc(.22 * var(--t)); line-height: 1.35; color: #062019; background: var(--mint-500); }
.draft-detail__name { margin: 0 0 .04rem; font-size: calc(.36 * var(--t)); font-weight: 900; letter-spacing: .04em; color: #f4f6f6; }
.draft-detail__eff { min-height: 0; }
.draft-detail__desc { margin: 0; font-size: calc(.2 * var(--t)); line-height: 1.55; color: #eef2f2; }
.draft-detail__actions { flex: none; display: flex; flex-direction: column; gap: .08rem; padding: .12rem 0 .1rem; }
.draft-detail__status { display: flex; align-items: center; gap: .06rem; margin: 0; font-size: calc(.16 * var(--t)); color: var(--text-lo); }
.draft-detail__status .icon { width: .2rem; height: .2rem; flex: none; }
.draft-detail__status--taken { color: #ff8f80; }
.draft-detail__status--held { color: var(--mint-400); }
.draft-detail__btns { display: flex; gap: .1rem; }
.draft-detail__btns .btn { flex: 1; }
.draft-detail__btns .btn--lg { height: .92rem; font-size: calc(.32 * var(--t)); }
.draft-confirm.btn--primary { --btn-bg: #d8dbdb; --btn-bg-hover: #f2f4f4; --btn-fg: #111415; --btn-bd: #fff; --btn-bd-hover: #fff; --btn-glow: rgba(255, 255, 255, .35); --bk-c: #fff;
  background-image: none; box-shadow: 0 0 0 .03rem rgba(255, 255, 255, .85), 0 .06rem .2rem rgba(0, 0, 0, .5); letter-spacing: .08em; }
.draft-confirm .btn__icon { width: .4rem; height: .4rem; padding: .03rem; border: .03rem solid currentColor; border-radius: .04rem; }
.draft-confirm.btn--primary:disabled { --btn-bg: #34393a; --btn-fg: #8c9293; --btn-bd: #4a5051; box-shadow: none; opacity: 1; }

/* ---- 已选定策略 (after the pick: the wall gives way) ---- */
.draft-done {
  grid-column: 3 / 5; position: relative; min-width: 0; min-height: 0; overflow: auto; align-self: stretch;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto minmax(0, 1fr) auto; align-content: center; column-gap: .3rem; row-gap: .12rem;
  padding: .5rem .7rem .36rem .5rem;
  background: linear-gradient(180deg, rgba(36, 98, 84, .48), rgba(16, 40, 35, .42) 60%, rgba(10, 18, 16, .3));
  box-shadow: inset 0 0 0 1px rgba(63, 230, 180, .2); clip-path: polygon(0 0, 100% 0, 100% 100%, .5rem 100%, 0 calc(100% - .5rem));
  animation: draft-done-in 600ms var(--pg-ease) backwards;
}
.draft-done::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(170, 255, 232, .1) 0 2px, transparent 2px 6px);
  animation: pg-out 900ms ease-out 200ms both; }
@keyframes draft-done-in { 0% { opacity: 0; transform: translateX(1.2rem); filter: brightness(2.4) saturate(.4); clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%); }
  50% { opacity: .9; filter: brightness(1.5); clip-path: polygon(0 0, 100% 0, 100% 100%, .5rem 100%, 0 calc(100% - .5rem)); } }
.draft-done__art { grid-column: 1; grid-row: 1; justify-self: center; }
.draft-done__head { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; }
.draft-done__title { margin: 0; font-size: calc(.6 * var(--t)); font-weight: 900; letter-spacing: .04em; color: var(--mint-400); text-shadow: 0 0 .16rem rgba(23, 249, 183, .35); }
.draft-done__name { font-size: calc(.36 * var(--t)); color: #f2f4f4; }
.draft-done__hp { grid-column: 1; grid-row: 2; }
.draft-done__desc { grid-column: 1 / -1; grid-row: 3; margin: .2rem 0 0; padding: 0 .3rem; font-size: calc(.24 * var(--t)); line-height: 1.55; color: #eef2f2; }
.draft-done .draft-detail__status { grid-column: 1 / -1; grid-row: 4; justify-content: flex-end; }

/* ---- the header's turn line ---- */
.dturn { display: flex; align-items: center; gap: .16rem; }
.dturn__txt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.dturn__txt b { font-size: calc(.28 * var(--t)); color: #f2f4f4; }
.dturn__txt span { font-size: calc(.24 * var(--t)); color: #d4d8d8; }
.dturn__glass { width: .46rem; height: .46rem; color: #eceeee; animation: dturn-glass 2.4s ease-in-out infinite; }
@keyframes dturn-glass { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
.dturn.is-turn { flex-direction: column; align-items: flex-end; gap: .06rem; animation: pg-right 380ms var(--pg-ease) backwards; }
.dturn__go { display: flex; align-items: center; gap: .16rem; }
.dturn__go b { white-space: nowrap; font-size: min(calc(.4 * var(--t)), .5rem); /* a larger 文字大小 wrapped it over the header on phones */ font-weight: 900; letter-spacing: .06em; color: var(--mint-400); text-shadow: 0 0 .14rem rgba(23, 249, 183, .4); }
.dturn__finger { width: .42rem; height: .42rem; color: var(--mint-400); object-fit: contain; animation: dturn-finger 1s ease-in-out infinite; }
@keyframes dturn-finger { 50% { transform: translateX(.05rem); } }
.draft-skip, .draft-lockbtn { display: inline-flex; align-items: center; gap: .1rem; height: .44rem; padding: 0 .3rem 0 .24rem; border-radius: .22rem;
  background: rgba(70, 75, 77, .75); color: #eceeee; font-size: calc(.22 * var(--t)); font-weight: 700; transition: background var(--t-fast); }
.draft-skip:not(:disabled):hover { background: rgba(98, 104, 106, .85); }
.draft-skip:disabled, .draft-lockbtn:disabled { cursor: var(--sp-cursor-default, default); color: rgba(236, 238, 238, .45); background: rgba(50, 54, 56, .55); }
.draft-skip .icon, .draft-lockbtn .icon { width: .28rem; height: .28rem; fill: currentColor; }
.draft-skip[aria-busy="true"], .draft-lockbtn[aria-busy="true"] { opacity: .6; }
/* a free draft's 锁定 in the header, beside my held choice: the skip button's shape in mint */
.dturn.is-held { gap: .2rem; animation: pg-right 380ms var(--pg-ease) backwards; }
.draft-lockbtn { color: #06110d; background: var(--mint-400); font-weight: 700; }
.draft-lockbtn:not(:disabled):hover { background: #6ff7d2; }
.draft-lockbtn .icon { fill: currentColor; }
/* the header's row at every size (§35.51 review): the left part (离开, the mode capsule with 本局信息, 2/2) keeps its width,
   the right part takes the rest and the status line wraps in it, balanced, instead of running over 2/2 (English 「Choose
   Your Strategy」 at 中 – 特大 on phones — where it wraps, ≤ 520 px —, over 选择策略 in 1024–1280 px windows at 大 / 特大); the capsule grows with its
   tag (「绝境模拟」 cut at 特大 in a 1024×600 window); Korean breaks between words */
.draft .stephead__left { flex: none; }
.draft .stephead__right { flex: 1 1 0; justify-content: flex-end; }
.draft .stephead__status, .draft .dturn, .draft .dturn__go, .draft .dturn__txt { min-width: 0; }
.draft .stephead__mode.has-extra { height: auto; min-height: .52rem; }
.draft .dturn__go b { text-align: right; }
/* the header grows rather than cut its status (two lines in English at 特大 on a 640 px phone) and 跳过选择 sizes to its
   text (cut at 特大 in a 1024×600 window) */
.draft .stephead { height: auto; min-height: 1.3rem; }
.draft .draft-skip { height: auto; min-height: .44rem; padding-top: 2px; padding-bottom: 2px; line-height: 1.25; }
.draft .draft-lockbtn { height: auto; min-height: .44rem; padding-top: 2px; padding-bottom: 2px; line-height: 1.25; }
.dturn:lang(ko), .draft-order__tip:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
/* … and while the status shows, the step's name gives way to it in windows up to 640 px tall (1024×600), as on short
   screens, and at 大 / 特大 in any window (the 2/2 stays). §35.56: chosen by window width (up to 1440 px) it was hidden
   for nothing at 小 / 中 in laptop windows — the layout scales with the window — and still ran under the status at 大 /
   特大 in wider ones (English 「Choose Your Strategy」 over 「Choose Strategy」 at 1600×900 and 1920×1080) */
@media (max-height: 640px) {
  .draft.has-status .stephead__name { display: none; }
}
:root[data-text="lg"] .draft.has-status .stephead__name, :root[data-text="xl"] .draft.has-status .stephead__name { display: none; }
/* 玩法说明 keeps its label inside its button: the button does not shrink (English 「How to Play」 ran past it into the
   countdown at 大 / 特大 in 1600–1920 px windows) */
.draft .stephead__guide { flex: none; }

@media (prefers-reduced-motion: reduce) {
  .draft-order, .dorder, .dorder.is-cur::before, .dorder.is-flash .dorder__box, .dorder.is-flash .dorder__check, .dband, .dband.is-sel::before, .dband__taken,
  .draft-detail, .draft-detail__body, .draft-done, .dturn.is-turn, .dturn.is-held, .dturn__glass, .dturn__finger { animation: none; }
  .dorder.is-flash::after, .draft-done::after { display: none; }
}

/* the draft over (screens/game.js DRAFT_HOLD_MS = 700, inside the official 3 s BATTLE_CHECK with 协议启动！'s
   BOOT_MIN_MS): 已选定策略 / 策略选择完成 stays, then the screen goes to black for 协议启动！ (video 7:43.3–7:43.5) —
   the fade ends with the hold (480 ms + 220 ms). Only to look at: the screen is inert (bandDraft.js). */
.draft.is-held { pointer-events: none; animation: pg-out 220ms ease-in 480ms forwards; }
@media (prefers-reduced-motion: reduce) { .draft.is-held { animation: none; } }

/* ---- 本局信息 (GitHub issue #8 item 1, DESIGN §21.28): the read-only dialog (its entry: the step header's
   .stephead__info, css/screens/briefing.css) -------
   The dialog shows the briefing's own enemy, bond and banned-operator blocks (ui/matchEnemies.js, ui/matchInfo.js, #484)
   at the briefing's size on desktop; every size is max(design rem, px floor), so on a phone (1rem = 40 px) the text
   stays at ≥ 9–15 px and the dialog's body scrolls inside the screen (756×366, 844×390) while the header and the
   footer (the turn's countdown, 关闭) stay in view. 2026-11-05 (「尽量不用滚动」): tighter between the blocks, and on a screen
   wider than 16:9 up to 20rem wide (a wider bond column: the banned operators take a row less) — never closer than 1.1rem
   to the screen's sides there, so 确认选择 beside it stays on the backdrop (a tap there closes the dialog only). */
.modal__box.minfo-dlg {
  width: min(max(17rem, 32px, calc(900px * var(--sp-ui, 1)), min(20rem, calc(100vw - 2.2rem))), calc(100vw - .6rem - var(--sa-l, 0px) - var(--sa-r, 0px)));
  max-height: calc(100vh - .6rem);
  max-height: calc(100svh - .6rem);
}
.minfo-dlg .modal__head { padding: .08rem .3rem .02rem; }
.minfo-dlg .modal__head .micro { font-size: max(.11rem, 8px); }
.minfo-dlg .modal__title { font-size: max(.26rem, 15px); }
.minfo-dlg .modal__body { display: flex; flex-direction: column; gap: max(.1rem, calc(4px * var(--sp-ui, 1))); padding: .08rem .3rem .06rem; }
.minfo-dlg__content { flex: none; min-width: 0; }
.minfo-dlg__content.has-enemies { display: grid; grid-template-columns: minmax(0, 6.2rem) minmax(0, 1fr); gap: max(.2rem, calc(10px * var(--sp-ui, 1))); }
.minfo-dlg__enemies, .minfo-dlg__bonds { display: flex; flex-direction: column; gap: max(.1rem, calc(4px * var(--sp-ui, 1))); min-width: 0; }
.minfo-dlg__enemies > *, .minfo-dlg__bonds > * { flex-shrink: 0; }
/* the shared 本局遭遇敌方 block (ui/matchEnemies.js; its briefing layout is scoped under .brief) stacked into the
   dialog's column: portrait + 敌方领袖 | name, round, abilities, battlefield; the special enemies as rows under them */
.minfo-dlg .brief-enemies { padding: max(.16rem, calc(6px * var(--sp-ui, 1))) max(.2rem, calc(8px * var(--sp-ui, 1))) max(.2rem, calc(8px * var(--sp-ui, 1))); background: rgba(12, 15, 14, .8); border: 1px solid var(--line); }
.minfo-dlg .brief-enemy { display: grid; grid-template-columns: max(1.4rem, 32px, calc(70px * var(--sp-ui, 1))) minmax(0, 1fr); align-items: start; gap: max(.16rem, calc(8px * var(--sp-ui, 1))); }
.minfo-dlg .brief-boss { display: flex; flex-direction: column; align-items: center; gap: max(.04rem, calc(2px * var(--sp-ui, 1))); }
.minfo-dlg .brief-boss__art {
  position: relative; width: max(1.4rem, 32px, calc(70px * var(--sp-ui, 1))); height: max(1.4rem, 32px, calc(70px * var(--sp-ui, 1))); display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #6b3420, #2a120b 75%); box-shadow: 0 0 0 2px #4a4e50, 0 0 0 3px #1a1c1d;
}
.minfo-dlg .brief-boss__img { width: 100%; height: 100%; object-fit: cover; }
.minfo-dlg .brief-boss__q { font-size: max(.6rem, 28px); font-weight: 900; color: rgba(255, 140, 70, .6); }
.minfo-dlg .brief-boss__tag { width: 100%; padding: max(.02rem, calc(1px * var(--sp-ui, 1))) 0; text-align: center; font-size: max(.13rem, 9px); font-weight: 700; letter-spacing: .1em;
  color: #ffcf4a; background: linear-gradient(180deg, #5a4210, #3a2a08); box-shadow: inset 0 0 0 1px rgba(255, 207, 74, .25); }
.minfo-dlg .brief-boss__text { display: flex; flex-direction: column; gap: max(.06rem, calc(3px * var(--sp-ui, 1))); min-width: 0; overflow-wrap: anywhere; }
.minfo-dlg .brief-boss__name { margin: 0; font-size: max(calc(.34 * var(--t)), 16px); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.minfo-dlg .brief-boss__when { font-size: max(calc(.15 * var(--t)), 10px); color: var(--orange-hi); }
.minfo-dlg .brief-boss__abil { margin: 0; padding-left: max(.18rem, calc(12px * var(--sp-ui, 1))); display: flex; flex-direction: column; gap: .04rem; font-size: max(calc(.14 * var(--t)), 10px); line-height: 1.6; color: var(--text-md); }
.minfo-dlg .brief-stage { display: flex; flex-wrap: wrap; align-items: center; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); color: var(--text-lo); }
.minfo-dlg .brief-stage .icon { width: max(.2rem, 12px); height: max(.2rem, 12px); color: var(--mint-500); }
.minfo-dlg .brief-stage__pool { font-size: max(calc(.14 * var(--t)), 10px); }
.minfo-dlg .brief-stage__name { font-size: max(calc(.19 * var(--t)), 12px); color: var(--text-hi); }
.minfo-dlg .brief-factions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: max(.08rem, calc(4px * var(--sp-ui, 1))); min-width: 0; }
.minfo-dlg .brief-faction__tt { min-width: 0; }
.minfo-dlg .brief-faction { flex: 1; min-width: 0; display: flex; align-items: center; gap: max(.14rem, calc(6px * var(--sp-ui, 1))); padding: max(.1rem, calc(5px * var(--sp-ui, 1))) max(.14rem, calc(6px * var(--sp-ui, 1)));
  background: rgba(255, 255, 255, .03); border-left: 3px solid var(--amber); cursor: help; }
.minfo-dlg .brief-faction__icon {
  flex: none; width: max(.72rem, 32px); height: max(.72rem, 32px); display: grid; place-items: center; border-radius: 50%; outline: none;
  background: radial-gradient(circle at 50% 45%, #2a3a38, #121817 70%);
}
.minfo-dlg .brief-faction__icon:focus-visible { box-shadow: 0 0 0 2px var(--mint-400); }
.minfo-dlg .brief-faction__icon img { width: 78%; height: 78%; object-fit: contain; filter: grayscale(1) brightness(1.6); }
/* the name; the description in the tooltip (ui/matchEnemies.js, the maintainer's decision of 2026-10-22) */
.minfo-dlg .brief-faction__text { display: flex; flex-direction: column; gap: .03rem; min-width: 0; overflow-wrap: anywhere; }
.minfo-dlg .brief-faction__text b { font-size: max(calc(.2 * var(--t)), 12px); color: var(--amber); }
.minfo-dlg .modal__actions { align-items: center; padding: .08rem .3rem; }
.minfo-dlg .modal__actions .btn { height: max(.5rem, 30px); font-size: max(.18rem, 12px); }
.minfo-dlg__status { margin-right: auto; min-width: 0; }
.minfo-dlg__turn { display: inline-flex; align-items: center; gap: .06rem; font-size: max(.17rem, 11px); font-weight: 700; color: var(--gold); white-space: nowrap; }
.minfo-dlg__turn .icon { width: max(.18rem, 12px); height: max(.18rem, 12px); }
.minfo-dlg__turn b { margin-left: .04rem; font-size: max(.22rem, 14px); }
.minfo-dlg__turn.is-warn { color: var(--orange-hi); }
.minfo-dlg__turn.is-mint { color: var(--mint-400); }
.minfo-dlg__turn.is-dim { color: var(--text-lo); }
.minfo-dlg .brief-bonds, .minfo-dlg .brief-banned { padding: max(.12rem, calc(5px * var(--sp-ui, 1))) max(.2rem, calc(8px * var(--sp-ui, 1))) max(.14rem, calc(6px * var(--sp-ui, 1))); }
.minfo-dlg .brief-h { font-size: max(.21rem, 12px); margin-bottom: max(.08rem, calc(4px * var(--sp-ui, 1))); }
.minfo-dlg .brief-h::before { width: max(.06rem, 3px); height: max(.2rem, 11px); }
.minfo-dlg .brief-bonds__row { gap: max(.12rem, calc(5px * var(--sp-ui, 1))) max(.1rem, calc(4px * var(--sp-ui, 1))); }
.minfo-dlg .brief-bond { width: max(1rem, 32px, calc(50px * var(--sp-ui, 1))); }
.minfo-dlg .brief-bond .bond { --disc: max(.66rem, 32px); }
.minfo-dlg .brief-bond .bond__name { font-size: max(.16rem, 10px); }
.minfo-dlg .brief-bond__ban { font-size: max(.12rem, 9px); padding: 0 max(.05rem, calc(2px * var(--sp-ui, 1))); }
.minfo-dlg .brief-bond__ban .icon { width: max(.12rem, 9px); height: max(.12rem, 9px); }
.minfo-dlg .brief-legend { margin-top: 0; font-size: max(.14rem, 10px); }
.minfo-dlg .brief-legend__off { width: max(.16rem, 9px); height: max(.16rem, 9px); }
.minfo-dlg .brief-legend__ban { width: max(.2rem, 12px); height: max(.18rem, 11px); }
.minfo-dlg .brief-legend__ban .icon { width: max(.12rem, 8px); height: max(.12rem, 8px); }
.minfo-dlg .brief-banned__n { font-size: max(.22rem, 13px); }
.minfo-dlg .brief-banned__grid { grid-template-columns: repeat(auto-fill, minmax(max(.6rem, 32px, calc(34px * var(--sp-ui, 1))), 1fr)); gap: max(.08rem, calc(3px * var(--sp-ui, 1))); }
.minfo-dlg .brief-banned__grid .uthumb { --ut: max(.6rem, 32px, calc(34px * var(--sp-ui, 1))); }
.minfo-dlg .brief-banned__diy { font-size: max(.14rem, 12px); }
.minfo-dlg .t-dim { font-size: max(.16rem, 10px); }

/* the fork's own (2026-10): 预选盟约 under the order rows and in each row; 已指定给 AI 队友 reuses the 队友已选 look
   (.dband.is-taken); a room of up to 20 seats scrolls its rows; allowRepeat (an expanded room) names it under the list
   and shows every picker's avatar on the card (+N past four) */
.draft-order__plan { flex: none; margin-right: .5rem; width: auto; }
.draft--detail .draft-order__plan { margin-right: .12rem; }
.dorder__plan { align-self: flex-start; margin-top: .02rem; max-width: 100%; }
.draft-order__tip--repeat { font-size: max(calc(.16 * var(--t)), 12px); color: var(--mint-400); }
.dband__more { min-width: .3rem; padding: .01rem .03rem; text-align: center; font-size: max(calc(.12 * var(--t)), 11px); color: var(--mint-400); background: rgba(12, 15, 14, .9); border: 1px solid var(--mint-800); }
@media (max-width: 1000px) {
  .modal__box.minfo-dlg { width: min(max(12rem, 32px, calc(600px * var(--sp-ui, 1))), calc(100vw - .6rem - var(--sa-l, 0px) - var(--sa-r, 0px))); }
  .minfo-dlg__content.has-enemies { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 「请选择策略」 (ui/matchIntro.js TurnBanner) ---- */
.pmark { display: inline-flex; align-items: center; gap: .1rem; color: currentColor; }
.pmark__glyph { width: .5rem; height: .5rem; fill: currentColor; flex: none; }
.pmark__type { font-family: var(--font-num); font-size: calc(.17 * var(--t)); font-weight: 700; line-height: 1.05; letter-spacing: .08em; }
.tbanner { position: fixed; inset: 0; z-index: var(--z-banner, 40); display: grid; align-items: center; pointer-events: none; overflow: hidden; }
.tbanner__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; animation: tbanner-dim 1650ms linear both; }
@keyframes tbanner-dim { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
.tbanner__band { position: relative; display: flex; align-items: center; gap: .26rem; height: 2.1rem; animation: tbanner-band 1650ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tbanner-band { 0% { transform: translateX(-46%); } 12% { transform: translateX(-1.6%); } 90% { transform: translateX(1.2%) scaleY(1); }
  97% { transform: translateX(1.2%) scaleY(.06); } 100% { transform: translateX(1.2%) scaleY(0); } }
.tbanner__bar { position: relative; flex: none; width: 84vw; height: 100%; overflow: hidden; background: linear-gradient(180deg, #d5d7da, #b8bbbf); box-shadow: 0 .06rem .3rem rgba(0, 0, 0, .5); }
.tbanner__grey { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 1.3rem; color: #45494d; }
.tbanner__logo { transform: scale(1.5); transform-origin: left center; }
.tbanner__map { position: absolute; inset: 0 0 0 38%; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 72% 64%, rgba(0, 0, 0, .08) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 1.2rem);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%); mask: linear-gradient(90deg, transparent, #000 30%); }
.tbanner__mint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 2.5rem;
  background: linear-gradient(180deg, #59e6bd, #3dd1a5); clip-path: inset(0 100% 0 0); animation: tbanner-wipe 1650ms cubic-bezier(.5, 0, .2, 1) both; }
@keyframes tbanner-wipe { 0%, 34% { clip-path: inset(0 100% 0 0); } 62%, 100% { clip-path: inset(0 0 0 0); } }
.tbanner__mint .tbanner__map { inset: 0; background: repeating-radial-gradient(ellipse at 40% 50%, rgba(8, 60, 44, .13) 0 1px, transparent 1px 16px); -webkit-mask: none; mask: none; }
.tbanner__text { position: relative; padding-bottom: .06rem; font-size: calc(.52 * var(--t)); font-weight: 900; letter-spacing: .1em; color: #0b2a21; border-bottom: .05rem solid #0b2a21;
  animation: tbanner-text 1650ms ease-out both; }
@keyframes tbanner-text { 0%, 46% { opacity: 0; transform: translateX(-.4rem); } 64% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(.14rem); } }
.tbanner__ring { position: absolute; right: .7rem; top: 50%; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: .1rem solid rgba(11, 42, 33, .7);
  border-left-color: transparent; border-bottom-color: transparent; animation: tbanner-ring 1650ms ease-out both; }
@keyframes tbanner-ring { 0%, 40% { opacity: 0; transform: translateY(-50%) rotate(-150deg); } 70% { opacity: 1; } 100% { opacity: 1; transform: translateY(-50%) rotate(30deg); } }
.tbanner__bot { flex: none; width: 1.12rem; height: 1.12rem; display: grid; place-items: center; background: #3dd1a5; color: #0b2a21; box-shadow: 0 0 .2rem rgba(61, 209, 165, .6);
  animation: tbanner-bot 1650ms ease-out both; }
.tbanner__bot .icon { width: 70%; height: 70%; }
@keyframes tbanner-bot { 0%, 4% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1); } }

/* ---- 协议启动！ (ui/matchIntro.js ProtocolBoot, BATTLE_CHECK): a 16:9 stage, sizes in container units ---- */
.pboot { position: fixed; inset: 0; z-index: calc(var(--z-conn, 75) - 1); overflow: hidden; pointer-events: none;
  background: radial-gradient(50% 62% at 50% 47%, #1c5a4b, #0b2722 58%, #051311); }
.pboot::before { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; animation: pboot-black 1900ms linear backwards; }
@keyframes pboot-black { 0%, 58% { opacity: 1; } 70% { opacity: 0; } }
.pboot.is-leaving { animation: tr-out 360ms ease-in forwards; }
.pboot__stage { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(100vw, 177.78vh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); /* the browser floor has no container queries: the stage IS the container, so its cqw becomes calc(N * var(--cqw) / 100) */
  --cqw: min(100vw, 177.78vh); }
.pboot__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: tr-fade 500ms ease-out 1150ms backwards; }
.pboot__orbit { fill: rgba(40, 150, 122, .12); stroke: rgba(110, 240, 200, .22); stroke-width: 3; }
.pboot__orbit--in { fill: none; stroke-dasharray: 6 12; stroke-opacity: .5; }
.pboot__topo { fill: none; stroke: rgba(110, 240, 200, .09); stroke-width: 2; }
.pboot__cross { fill: none; stroke: rgba(110, 240, 200, .55); stroke-width: 3; }
.pboot__chip { position: absolute; left: 50%; top: 47.8%; width: 40%; aspect-ratio: 2 / 1; opacity: .3; transform: translate(-50%, -50%) rotate(-30deg) scale(.62);
  animation: pboot-chip 1900ms cubic-bezier(.3, .1, .2, 1) backwards; }
.pboot__chip svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pboot__chip rect { fill: #46e4b6; fill-opacity: var(--o); stroke: #c4fff0; stroke-width: 1.5; stroke-opacity: .75; animation: pboot-bit 240ms steps(2, end) backwards; animation-delay: calc(140ms + var(--d, 0ms)); }
.pboot__port { fill: none; stroke: #a6ffe6; stroke-width: 3; }
@keyframes pboot-bit { from { opacity: 0; } }
@keyframes pboot-chip {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-32deg) scale(2.9); filter: brightness(2.1); }
  34% { opacity: 1; transform: translate(-50%, -50%) rotate(-32deg) scale(2.45); filter: brightness(1.7); }
  62% { opacity: .9; transform: translate(-50%, -50%) rotate(-31deg) scale(.66); filter: brightness(1.1); }
}
.pboot__flash { position: absolute; left: 50%; top: 47.8%; width: 62%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .2; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(180, 255, 234, .95), rgba(63, 230, 180, .5) 28%, transparent 64%); animation: pboot-flash 1900ms ease-out backwards; }
@keyframes pboot-flash { 0%, 56% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 64% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.pboot__mark { position: absolute; left: 36.6%; top: 24.5%; color: rgba(150, 255, 225, .42); animation: tr-fade 400ms ease-out 1300ms backwards; }
.pboot__mark .pmark__glyph { width: calc(3.2 * var(--cqw) / 100); height: calc(3.2 * var(--cqw) / 100); }
.pboot__mark .pmark__type { font-size: calc(1.3 * var(--cqw) / 100); }
.pboot__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pboot__lines line { stroke: #7cf5d0; stroke-width: 3; stroke-dasharray: 1; animation: pboot-line 420ms ease-out backwards; animation-delay: calc(1520ms + var(--i, 0) * 60ms); }
@keyframes pboot-line { from { stroke-dashoffset: 1; } }
.pboot__node { fill: #7cf5d0; animation: tr-fade 200ms ease-out backwards; animation-delay: calc(1880ms + var(--i, 0) * 60ms); }
.pboot__anchor { fill: #0b2621; stroke: #7cf5d0; stroke-width: 4; animation: tr-fade 200ms ease-out backwards; animation-delay: calc(1460ms + var(--i, 0) * 60ms); }
.pcardx { position: absolute; display: flex; align-items: stretch; background: linear-gradient(180deg, #55e4ba, #3ccfa4);
  box-shadow: 0 0 0 calc(.18 * var(--cqw) / 100) rgba(210, 255, 240, .45), 0 calc(.4 * var(--cqw) / 100) calc(1.2 * var(--cqw) / 100) rgba(0, 0, 0, .35);
  animation: pcardx-in 540ms cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(1260ms + var(--i, 0) * 50ms); }
.pcardx::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(ellipse at 30% 120%, rgba(8, 60, 44, .14) 0 1px, transparent 1px calc(1.1 * var(--cqw) / 100)); }
.pcardx--l { flex-direction: row; transform-origin: 100% 50%; }
.pcardx--r { flex-direction: row-reverse; transform-origin: 0 50%; }
.pcardx--c { transform-origin: 50% 50%; }
@keyframes pcardx-in { 0% { opacity: 0; transform: scaleX(.1); filter: brightness(2.6) saturate(0); } 40% { opacity: 1; filter: brightness(2) saturate(.2); } 75% { filter: brightness(1.15); } }
.pcardx__mark { position: relative; flex: none; width: 17%; display: grid; place-items: center; }
.pcardx__mark svg { width: 52%; fill: rgba(8, 56, 42, .4); }
.pcardx__txt { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: calc(.15 * var(--cqw) / 100); padding: 0 calc(1.3 * var(--cqw) / 100); color: #0b2a21; }
.pcardx--r .pcardx__txt { align-items: flex-start; }
.pcardx__txt b { font-family: var(--font-num); font-size: calc(2.6 * var(--cqw) / 100); font-weight: 700; line-height: 1; }
.pcardx__txt span { font-family: var(--font-num); font-size: calc(.95 * var(--cqw) / 100); font-weight: 700; letter-spacing: .05em; line-height: 1; }
.pcardx__txt i { width: calc(1.5 * var(--cqw) / 100); height: calc(1.5 * var(--cqw) / 100); margin-top: calc(.35 * var(--cqw) / 100); display: grid; place-items: center; background: #0b2a21; color: #55e4ba; }
.pcardx__txt i .icon { width: 85%; height: 85%; }
.pcardx__face { position: relative; flex: none; height: 100%; aspect-ratio: 1; overflow: hidden; background: #0b2621; box-shadow: 0 0 0 calc(.2 * var(--cqw) / 100) #e8fff7; }
.pcardx__face .pavatar { --pa: 100%; border: 0; }
.pboot__title { position: absolute; left: 0; right: 0; top: 66.4%; margin: 0; text-align: center; font-size: calc(4.4 * var(--cqw) / 100); font-weight: 900; letter-spacing: calc(.3 * var(--cqw) / 100); line-height: 1.2;
  color: #4ff0c0; text-shadow: 0 0 calc(1.2 * var(--cqw) / 100) rgba(80, 255, 200, .45); animation: pboot-title 520ms cubic-bezier(.2, .8, .2, 1) 1400ms backwards; }
@keyframes pboot-title { 0% { opacity: 0; transform: scale(1.35); filter: brightness(2.2) blur(2px); } 60% { opacity: 1; filter: brightness(1.4); } }
.pboot__sub { position: absolute; left: 50%; top: 77.4%; transform: translateX(-50%); padding: calc(.12 * var(--cqw) / 100) calc(1.5 * var(--cqw) / 100); font-family: var(--font-num); font-size: calc(1.3 * var(--cqw) / 100); font-weight: 700;
  letter-spacing: calc(.08 * var(--cqw) / 100); color: #0b2a21; background: #4fe0b8; white-space: nowrap; animation: tr-fade 300ms ease-out 1560ms backwards; }
.pboot__conn { position: absolute; right: 6%; bottom: 4.5%; font-size: calc(1.6 * var(--cqw) / 100); color: rgba(120, 240, 205, .72); animation: tr-fade 400ms ease-out 2000ms backwards; }
.pboot__dots { display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; animation: tr-dots 1.2s steps(4) infinite; }
.pboot__dots::before { content: '...'; }
@media (prefers-reduced-motion: reduce) {
  .pboot::before, .pboot__bg, .pboot__chip, .pboot__chip rect, .pboot__flash, .pboot__mark, .pboot__lines line, .pboot__node, .pboot__anchor, .pcardx, .pboot__title, .pboot__sub, .pboot__conn { animation: none; }
  .pboot__dots { width: auto; animation: none; }
}

/* Phone drafts keep all primary labels readable at large text sizes. */
@media (pointer: coarse) and (max-height: 600px) {
  .draft .draft-detail__btns { flex-wrap: wrap; }
  .draft .draft-detail__btns .btn { min-width: 0; min-height: 32px; height: auto; padding: 5px 6px; font-size: 12px; white-space: normal; }
  .draft .draft-detail__btns .btn__label { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
  .draft .dband { min-width: 0; }
  .draft .dband__name { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .spov .spov__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; flex: none; }
  .spov .spov__titles { min-width: 0; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; padding: 4px 0 4px 8px; }
  .spov .spov__name { grid-column: 1; grid-row: 1; font-size: 20px; white-space: nowrap; }
  .spov .spov__bar { display: none; }
  .spov .spov__desc { grid-column: 2; grid-row: 1; align-self: center; font-size: 12px; line-height: 1.4; }
  .spov .spov__sub { grid-column: 1 / -1; grid-row: 2; font-size: 11px; line-height: 1.4; }
  .spov .spov__turn { justify-content: space-between; gap: 8px; }
  .spov .spov__turntxt { font-size: 12px; line-height: 1.3; }
  .spov .spov__grid { overflow-y: auto; grid-template-rows: repeat(2, minmax(110px, 1fr)); }
}
@media (pointer: coarse) and (max-height: 600px) {
  .spov .spcard__desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .spov .spcard { overflow-y: auto; }
}
@media (pointer: coarse) and (max-height: 600px) and (max-width: 760px) {
  .draft .draft__main { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; padding: 8px; }
  .draft .draft-order, .draft .draft-grid, .draft .draft-detail { min-width: 0; }
  .draft .draft-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); padding: 2px; }
  .draft .draft-detail { padding: 6px; gap: 5px; }
  .draft .draft-detail__art .bandicon { --bi: 50px; }
  .draft .draft-detail__name { max-width: 100%; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
  .draft .draft-detail__hp { font-size: 10px; gap: 3px; flex-wrap: wrap; }
  .draft .draft-detail__btns { gap: 4px; }
  .draft .draft-detail__btns .btn { flex-basis: 100%; }
  .draft .draft-order { overflow-y: auto; }
  .draft .dorder { grid-template-columns: auto minmax(0, 1fr); gap: 4px; }
  .draft .dorder > .pavatar, .draft .dorder__box { display: none; }
  .draft .dorder__state { font-size: 11px; }
  .draft .dorder__name { font-size: 12px; }
}
@media (pointer: coarse) and (max-height: 600px) and (max-width: 760px) {
  .draft .draft-order > .brief-h { flex-wrap: wrap; gap: 3px; font-size: 13px; }
  .draft .draft-order > .brief-h > span { white-space: nowrap; }
  .draft .draft-order > .brief-h > .micro { flex-basis: 100%; font-size: 8px; }
}
