/* core_hud7.css — r47 hud (CONTRACT §6.H). Every rule here is a class/id rule the fieldbook skin can override with html.fb.
   Sources: original style-f744651e38.css (live-20261129) — .ix-tally/.ix-meso @246477-247156, @keyframes ixpop @254331,
   .ic-card.kb:after @292309 + @keyframes icKbArrow, .ic-legend[hidden] @294108, .ic-chg @294487-294999, .u2-ttl i @60244. */

/* 1. meso / kill tally: .st-hud is scaled with transform (no layout space), so the row under it was hidden.
      The scaled box (48 px, border-box) grows by 48×(st−1); that much space is reserved under it.
      Sizes follow the original .ix-tally with --ixk = the HUD scale (video 1920×912: icons 30 px, digits ≈19.5 px, kill icon at x≈143). */
.run-topleft .st-hud{margin-bottom:calc(48px * (var(--st,1.25) - 1))}
.run-counts.h7-tally{--h7k:var(--st,1.25);margin-top:0;gap:calc(11px * var(--h7k));font:700 calc(13px * var(--h7k))/1.2 Bahnschrift,"Noto Sans TC","Microsoft JhengHei",sans-serif;margin-left:-1px}
.run-counts.h7-tally span{gap:calc(4px * var(--h7k))}
.run-counts.h7-tally img{width:calc(20px * var(--h7k));height:calc(20px * var(--h7k));object-fit:contain}
.run-counts .h7-meso b{color:#ffe45c}
.run-counts .h7-kill b{color:#fff}
.run-counts .h7-gain{font-style:normal;font-size:calc(11.5px * var(--h7k));color:#a9f07c;min-width:calc(34px * var(--h7k));display:inline-block;transform-origin:0 50%}
.run-counts .h7-gain.h7-pop{animation:h7pop .22s ease-out}
@keyframes h7pop{0%{transform:scale(1.35)}to{transform:none}}

/* 2. card window: legend only when a card has an upgrade tier (the attribute is set by buildDraftDom) */
#draft .ic-legend[hidden]{display:none}
/* selection marker: ▼ above the card (original .ic-card.kb:after), replaces the old ▲ */
#draft .ic-card.sel::before{content:none;border:0}
#draft .ic-card.sel::after{content:"";position:absolute;left:50%;top:-22px;width:0;height:0;margin-left:-9px;border:9px solid transparent;border-top:12px solid #fff;border-bottom:0;filter:drop-shadow(0 2px 0 #2d3540) drop-shadow(0 0 1.5px #2d3540);animation:h7kbArrow .7s ease-in-out infinite alternate;pointer-events:none;z-index:3}
@keyframes h7kbArrow{0%{transform:translateY(-3px)}to{transform:translateY(3px)}}

/* 3. upgrade rows ol.ic-chg (original rules; tier colours --tr / --tcd from the original .ic-card[data-tier] @ .ic-card{--tcd:#56626e} block) */
#draft .ic-chg{width:100%;margin:3px 0 0;padding:0 0 0 18px;list-style:decimal;text-align:left;font-size:11.5px;line-height:1.35;color:#38414b;box-sizing:border-box}
#draft .ic-chg li{padding:1px 4px 1px 2px;border-radius:4px}
#draft .ic-chg li:nth-child(odd){background:rgba(var(--tr,120,140,160),.1)}
#draft .ic-chg li::marker{font-weight:900;color:var(--tcd,#2563c9)}
#draft .ic-chg b{font-weight:800;margin-right:5px}
#draft .ic-chg span{color:#6b7783}
#draft .ic-chg i{font-style:normal;margin:0 3px;color:#8a96a2}
#draft .ic-chg em{font-style:normal;font-weight:900;color:var(--tcd,#2563c9)}
#draft .ic-card{--tcd:#56626e;--tr:152,163,174}
#draft .ic-card[data-tier="0"]{--tcd:#2e8b3a;--tr:76,175,80}
#draft .ic-card[data-tier="1"]{--tcd:#2563c9;--tr:61,139,253}
#draft .ic-card[data-tier="2"]{--tcd:#8a3fd0;--tr:164,91,224}
#draft .ic-card[data-tier="3"]{--tcd:#a87800;--tr:230,180,34}
#draft .ic-card[data-tier="4"]{--tcd:#c0353b;--tr:229,72,77}
@media(max-height:520px){#draft .ic-chg{font-size:9.5px;line-height:1.25;padding-left:14px}}

/* 4. 出發拓荒: subtitle on the title line (original .u2-ttl i) */
.exp-title.h7-ttl{display:flex;align-items:baseline;white-space:nowrap;min-width:0}
.exp-title.h7-ttl .h7-sub{display:inline;margin-left:10px;font-size:12px;font-weight:700;color:#ffe9a8}
