/* ==========================================================================================
   battle-theme-iron-banner.css — 战斗主题「乌萨斯齐心团」(ac_n_iron), phase 3: the phase banners (js/ui/ironBanner.js).
   Boxes, sprites and keyframes are GENERATED (battle-theme-iron-banner.gen.css, tools/battle-theme/iron_banner_gen.py);
   this file holds the stage, the texts and the two layout groups the prefabs size at runtime.
   ========================================================================================== */

.ibn {
  /* one native canvas px — the same scale as the themed top HUD (≈ 1.33 px at a 1080 px tall screen) */
  --bu: .0133rem;
  position: fixed; inset: 0; z-index: var(--z-banner); pointer-events: none; overflow: hidden;
  font-family: var(--font-cjk); line-height: 1;
}
.ibn :where(div) { position: absolute; box-sizing: border-box; }
.ibn .is-hidden { display: none; }
/* the stage sits a little above the screen's centre, as in the official battle view */
.ibn > div { margin-top: -6vh; }

/* texts: MiddleCenter in their boxes, bold like the official title font */
.ibn .ibn__txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 700; }
.ibn [class$="-img-title-text-title"] .ibn__txt { justify-content: flex-start; font-weight: 900; letter-spacing: .04em; }
.ibn [class$="-text-round"] .ibn__txt, .ibn [class$="-text-round-before"] .ibn__txt { font-family: var(--font-num); font-weight: 400; }
.ibn--turn .ib-turn-img-pop-text-desc .ibn__txt { font-weight: 900; letter-spacing: .04em; }

/* 获得 +N: the HorizontalLayoutGroup sizes itself to the number; icon and + hang off its left edge */
.ibn .ib-round-psources-gsources { height: calc(29 * var(--bu)); width: auto; display: flex; align-items: center; }
.ibn .ib-round-psources-gsources-text-num { position: static; transform: none; width: auto; height: auto; }
.ibn .ibn__gain { position: relative; font-size: calc(26 * var(--bu)); color: #ffba00; font-family: var(--font-num); }
.ibn .ibn__gain::before { content: '+'; }

/* 生命值减少 ♜N: the count's layout group, the icon before the number */
.ibn .ib-miss-tag-miss-layout { height: calc(30 * var(--bu)); width: auto; display: flex; align-items: center; }
.ibn .ib-miss-tag-miss-layout-text-count { position: static; transform: none; width: auto; height: auto; display: none; }
.ibn .ibn__loss { position: relative; font-size: calc(20 * var(--bu)); color: #ed5122; font-family: var(--font-num); padding-left: calc(10 * var(--bu)); }
.ibn .ibn__loss::before {
  content: ''; position: absolute; left: calc(-6 * var(--bu)); top: 50%; width: calc(13 * var(--bu)); height: calc(19 * var(--bu)); transform: translateY(-50%);
  background-color: #ed5122;
  -webkit-mask: var(--iron-asset-banner-tag-round-end-miss-icon, none) center / 100% 100% no-repeat;
  mask: var(--iron-asset-banner-tag-round-end-miss-icon, none) center / 100% 100% no-repeat;
}

/* the round countdown strip's text is revealed by its mask (RectMask2D) */
.ibn .ib-round-round-countdown-mask { overflow: hidden; }

/* reduced motion: the end pose of the entrance, no keyframes */
.ibn.is-still * { animation: none !important; }

@media (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  .ibn { --bu: min(.0133rem, calc(100vh * .5 / 309)); }
}
