/* ==========================================================================================
   screens/briefing.css — INFO_CHECK briefing (js/screens/briefing.js) + the pre-game step header
   shared with the band draft (js/ui/matchChrome.js StepHeader). Research 06 §4.1 / §11.6.
   The bond rows, the legend and the banned operators (.brief-bonds / .brief-legend / .brief-banned) are
   js/ui/matchInfo.js MatchInfo — also shown by the band draft's 本局信息 dialog (css/screens/draft.css .minfo-dlg).
   2026-10-13 (the owner's request: the event's pre-game, video 6:29–7:51): one column of sections under grey header
   bars, 已就绪 and the big 准备就绪 in the bottom-right corner; the header with the step on the left and the countdown on
   the right. Original drawings only (CSS / inline SVG).
   ========================================================================================== */

/* ---- shared pre-game backdrop + header ---- */
.brief__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    radial-gradient(60% 50% at 8% 6%, rgba(160, 166, 170, .12), transparent 70%),
    radial-gradient(40% 30% at 96% 4%, rgba(63, 230, 180, .16), transparent 70%),
    radial-gradient(70% 60% at 90% 100%, rgba(120, 128, 132, .08), transparent 70%),
    linear-gradient(180deg, #0c0e0e, #090a0a);
}
.stephead {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: .3rem;
  height: 1.3rem; padding: 0 .5rem 0 .38rem;
  background: linear-gradient(180deg, rgba(5, 7, 7, .92), rgba(5, 7, 7, 0));
}
.stephead__left { display: flex; align-items: center; gap: .26rem; min-width: 0; }
.stephead__exit { display: flex; flex-direction: column; align-items: center; gap: .03rem; flex: none; }
.stephead__exit .btn--danger {
  --sq: .66rem; height: .66rem; --btn-bg: #d9dcdc; --btn-bg-hover: #f1f3f3; --btn-fg: #1a1d1e; --btn-bd: #f4f6f6; --btn-bd-hover: #fff;
  --btn-glow: rgba(255, 255, 255, .3); --bk-c: #fff; background-image: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 .04rem .1rem rgba(0, 0, 0, .6);
}
.stephead__exit .ping { font-size: calc(.15 * var(--t)); }
.stephead__exit .ping__icon { display: none; }
.stephead__mode { display: flex; align-items: center; gap: .14rem; flex: none; }
.stephead__mode .dtag { font-size: calc(.26 * var(--t)); gap: .08rem; }
.stephead__mode .dtag__icon { width: .34rem; height: .34rem; }
.stephead__mode.has-extra { height: .52rem; padding: 0 .1rem 0 .16rem; border-radius: .26rem; background: rgba(60, 64, 66, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.stephead__info {
  display: inline-flex; align-items: center; gap: .05rem; height: .4rem; padding: 0 .12rem; border-radius: .2rem;
  font-size: calc(.2 * var(--t)); font-weight: 700; color: var(--text-hi); transition: background var(--t-fast);
}
.stephead__info:hover { background: rgba(255, 255, 255, .1); }
.stephead__info .icon { width: .26rem; height: .26rem; }
.stephead__sep { flex: none; width: 1px; height: .5rem; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent); }
.stephead__title { display: flex; align-items: baseline; gap: .02rem; margin: 0; font-size: calc(.32 * var(--t)); font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.stephead__title b { font-size: calc(.54 * var(--t)); line-height: 1; color: var(--mint-400); text-shadow: 0 0 .16rem rgba(23, 249, 183, .35); }
.stephead__of { font-size: calc(.34 * var(--t)); color: var(--text-lo); margin-right: .16rem; }
.stephead__micro { align-self: flex-end; margin-bottom: .22rem; opacity: .35; white-space: nowrap; overflow: hidden; }
.draft .stephead__micro { display: none; }
.stephead__right { display: flex; align-items: center; gap: .24rem; min-width: 0; }
.stephead__right .countdown { --cd-h: .74rem; }
.stephead__status { min-width: 0; }

.brief-h { display: flex; align-items: baseline; gap: .12rem; font-size: calc(.21 * var(--t)); font-weight: 700; letter-spacing: .1em; margin-bottom: .12rem; }
.brief-h::before { content: ''; width: .06rem; height: .2rem; background: var(--mint-500); align-self: center; }

/* ---- the shared match-info blocks (briefing + the draft's 本局信息 dialog) ---- */
/* a match with gameplay plugins (DESIGN §32.6): the unofficial mark under the step header */
.brief__modmark { position: relative; z-index: 2; align-self: flex-start; margin: .06rem .5rem 0; }

.brief-bonds { padding: .16rem .2rem .2rem; background: rgba(12, 15, 14, .8); border: 1px solid var(--line); }
.brief-bonds__row { display: flex; flex-wrap: wrap; gap: .16rem .1rem; }
.brief-bond { position: relative; min-width: 1rem; width: max-content; max-width: 100%; display: flex; justify-content: center; }
.brief-bond .bond { --disc: .66rem; max-width: 100%; }
.brief-bond .bond__name { font-size: calc(.16 * var(--t)); max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.brief-bond__ban { position: absolute; top: -.04rem; right: .08rem; display: inline-flex; align-items: center; gap: .01rem; font-size: calc(.12 * var(--t)); font-weight: 700; padding: 0 .05rem; background: var(--red); color: #fff; line-height: 1.5; box-shadow: 0 0 0 1px #000; }
.brief-bond__ban .icon { width: .12rem; height: .12rem; }
.brief-bond.is-partial .bond__core { box-shadow: 0 0 0 2px rgba(255, 84, 84, .5); }
/* the box beside a bond's tooltip (matchInfo.js BondBannedAside): its banned members with avatar, name and bonds */
.brief-bantip { display: flex; flex-direction: column; gap: .06rem; }
.brief-bantip__h { font-size: calc(.12 * var(--t)); font-weight: 700; letter-spacing: .06em; color: var(--red); }
.brief-bantip__op { display: flex; align-items: center; gap: .08rem; }
.brief-bantip__op .uthumb { flex: none; }
.brief-bantip__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brief-bantip__txt b { font-size: calc(.14 * var(--t)); color: var(--text-hi); }
.brief-bantip__txt > span { font-size: calc(.12 * var(--t)); color: var(--text-lo); }
.brief-bantip__txt .is-this { color: var(--mint-400); }
.brief-legend { display: flex; align-items: center; gap: .08rem; flex-wrap: wrap; font-size: calc(.14 * var(--t)); color: var(--text-dim); margin-top: -.06rem; }
.brief-legend__off { width: .16rem; height: .16rem; border-radius: 50%; background: #3a403d; border: 2px solid #555; }
.brief-legend__ban { display: inline-grid; place-items: center; width: .2rem; height: .18rem; background: var(--red); color: #fff; }
.brief-legend__ban .icon { width: .12rem; height: .12rem; }

.brief-banned { padding: .16rem .2rem .2rem; background: rgba(12, 15, 14, .8); border: 1px solid var(--line); }
.brief-banned__n { margin-left: auto; font-size: calc(.22 * var(--t)); color: var(--red-premium); }
.brief-banned__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(.6rem, 1fr)); gap: .08rem; }
.brief-banned__grid .uthumb { --ut: .6rem; }
/* 0.2.0: the player's own 自选 pieces out of the shop this match (ui/matchInfo.js DiyBannedLine; m.private.diyBanned) */
.brief-banned__diy { margin: .1rem 0 0; font-size: calc(.14 * var(--t)); line-height: 1.5; color: var(--text-dim, #b8c2bf); }
.diybanned__tag { display: inline-block; margin-right: .06rem; padding: .01rem .06rem; font-size: calc(.12 * var(--t)); font-weight: 700;
  letter-spacing: .08em; background: var(--mint-500); color: var(--text-on-mint); vertical-align: .01rem; }

/* ---- briefing: one column of sections ---- */
.brief__main {
  position: relative; z-index: 1; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .2rem; padding: .06rem .5rem 1.5rem .56rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.brief-sec { flex: none; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(30, 33, 34, .55), rgba(14, 16, 16, .35)); }
.brief-sec > .brief-bonds, .brief-sec > .brief-banned { padding: 0; background: none; border: 0; }
/* the grey header bar: icon, title, a faint plate on the right */
.brief .brief-h {
  position: relative; display: flex; align-items: center; gap: .14rem; margin: 0; height: .66rem; padding: 0 .3rem 0 .22rem;
  font-size: calc(.32 * var(--t)); font-weight: 700; letter-spacing: .06em; color: #f2f4f4;
  background: linear-gradient(90deg, rgba(122, 126, 128, .5), rgba(92, 96, 98, .42) 60%, rgba(80, 84, 86, .36));
}
.brief .brief-h::before {
  content: ''; flex: none; width: .44rem; height: .44rem; background: #e9ecec; align-self: center;
  -webkit-mask: var(--sec-icon) center / contain no-repeat; mask: var(--sec-icon) center / contain no-repeat;
}
.brief .brief-h .micro { margin-left: auto; padding-left: .5rem; opacity: .4; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brief .brief-h .micro::before { content: ''; display: inline-block; width: .2rem; height: .2rem; margin-right: .08rem; vertical-align: -.04rem;
  border: 2px solid currentColor; box-shadow: .3rem 0 0 -0px transparent; }
.brief .brief-banned__n { margin-left: .2rem; font-size: calc(.3 * var(--t)); }
.brief-sec--enemy { --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 1h2v3.2l3-1.7 1 1.7-3 1.8 4.6 2.7-1 1.7-4.6-2.6v2.4h3V22H8V10.2h3V7.8L6.4 10.4l-1-1.7L10 6 7 4.2l1-1.7 3 1.7z'/%3E%3C/svg%3E"); }
.brief-sec--core { --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l1.6 7.2L19.8 4l-4.2 6.2L23 12l-7.4 1.8 4.2 6.2-6.2-4.2L12 23l-1.6-7.2L4.2 20l4.2-6.2L1 12l7.4-1.8L4.2 4l6.2 4.2z'/%3E%3C/svg%3E"); }
.brief-sec--addon { --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 6l22-3-7 18-4-7-5 4 1-6zm6 3.6 6.3 2.8L19.5 5.6z'/%3E%3C/svg%3E"); }
.brief-sec--banned { --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2a3.2 3.2 0 1 1 0 6.4A3.2 3.2 0 0 1 9 2zM3 22v-6a6 6 0 0 1 10.4-4.1L12 13.3A4 4 0 0 0 5 16v6zm11.1-6.3 1.4-1.4 2.5 2.5 2.5-2.5 1.4 1.4-2.5 2.5 2.5 2.5-1.4 1.4-2.5-2.5-2.5 2.5-1.4-1.4 2.5-2.5z'/%3E%3C/svg%3E"); }

/* 本局遭遇敌方: portrait + 敌方领袖 | name, round, abilities, battlefield | the 特训敌人 */
.brief-enemy { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .4rem; padding: .3rem .4rem .34rem .6rem; }
.brief-boss { position: relative; display: flex; flex-direction: column; align-items: center; }
.brief-boss__art {
  position: relative; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #6b3420, #2a120b 75%); box-shadow: 0 0 0 .04rem #4a4e50, 0 0 0 .06rem #1a1c1d, 0 .06rem .2rem rgba(0, 0, 0, .6);
}
.brief-boss__art::before, .brief-boss__art::after { content: ''; position: absolute; width: .5rem; height: .5rem; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.brief-boss__art::before { left: -.26rem; top: -.26rem; border-width: 0 1px 1px 0; }
.brief-boss__art::after { right: -.26rem; bottom: -.26rem; border-width: 1px 0 0 1px; }
.brief-boss__img { width: 100%; height: 100%; object-fit: cover; }
.brief-boss__q { font-size: 1rem; font-weight: 900; color: rgba(255, 140, 70, .6); }
.brief-boss__tag { margin-top: -.02rem; width: 2.05rem; padding: .03rem 0; text-align: center; font-size: calc(.2 * var(--t)); font-weight: 700; letter-spacing: .14em;
  color: #ffcf4a; background: linear-gradient(180deg, #5a4210, #3a2a08); box-shadow: inset 0 0 0 1px rgba(255, 207, 74, .25); }
.brief-boss__text { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.brief-boss__name { margin: 0; font-size: calc(.36 * var(--t)); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.brief-boss__when { font-size: calc(.17 * var(--t)); color: var(--orange-hi); }
.brief-boss__abil { margin: .02rem 0 0; padding-left: .2rem; display: flex; flex-direction: column; gap: .04rem; font-size: calc(.18 * var(--t)); line-height: 1.55; color: #a9aeb0; }
.brief-stage { display: inline-flex; align-items: center; gap: .08rem; margin-top: .04rem; font-size: calc(.16 * var(--t)); color: var(--text-lo); }
.brief-stage .icon { width: .2rem; height: .2rem; color: var(--mint-500); }
.brief-stage b { color: var(--text-hi); }
.brief-stage__pool { color: var(--text-dim); }
.brief-factions { display: flex; align-items: flex-start; gap: .3rem; padding-right: .3rem; }
.brief-faction { display: flex; flex-direction: column; align-items: center; gap: .14rem; width: 1.9rem; outline: none; }
.brief-faction__icon {
  width: 1.12rem; height: 1.12rem; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #2a3a38, #121817 70%); box-shadow: 0 0 .22rem rgba(140, 255, 225, .14), inset 0 0 .16rem rgba(0, 0, 0, .7);
}
.brief-faction__icon img { width: 78%; height: 78%; object-fit: contain; filter: grayscale(1) brightness(1.6) drop-shadow(0 0 .06rem rgba(160, 255, 230, .6)); }
.brief-faction__name { font-size: calc(.22 * var(--t)); font-weight: 700; color: #e6eaea; text-align: center; white-space: nowrap; }
.brief-faction:focus-visible .brief-faction__icon { box-shadow: 0 0 0 2px var(--mint-400); }
/* 无限火力 1.0: its rules above the sections */

/* the bond rows and banned operators at the event's size */
.brief .brief-bonds__row { gap: .24rem .3rem; padding: .32rem .4rem .3rem .78rem; }
.brief .brief-bond { min-width: 1.3rem; }
.brief .brief-bond .bond { --disc: 1.1rem; }
.brief .brief-bond .bond__name { font-size: calc(.22 * var(--t)); color: #d6dada; }
.brief .brief-bond__ban { font-size: calc(.14 * var(--t)); right: .1rem; }
.brief .brief-legend { margin: -.1rem .4rem .22rem .78rem; font-size: calc(.16 * var(--t)); }
.brief .brief-banned__grid { grid-template-columns: repeat(auto-fill, minmax(1.2rem, 1fr)); gap: .14rem; padding: .28rem .4rem .3rem .78rem; }
.brief .brief-banned__grid .uthumb { --ut: 1.2rem; }
.brief .brief-banned > .t-dim, .brief .brief-banned__diy { margin: .2rem .4rem .26rem .78rem; }

/* 已就绪 x/N over the bracketed pips, 准备就绪 */
.brief__foot {
  position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: flex-end; gap: .36rem;
  padding: .3rem .4rem .26rem; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 8, .78) 45%, rgba(6, 8, 8, .92));
}
.brief__foot > * { pointer-events: auto; }
.brief-ready { display: flex; flex-direction: column; align-items: center; gap: .06rem; }
.brief-ready__txt { display: flex; align-items: baseline; gap: .06rem; font-size: calc(.24 * var(--t)); color: #e6eaea; }
.brief-ready__txt b { margin-left: .08rem; font-size: calc(.5 * var(--t)); line-height: 1; color: var(--mint-400); text-shadow: 0 0 .12rem rgba(23, 249, 183, .4); }
.brief-ready__txt span { font-size: calc(.34 * var(--t)); color: #d6dada; }
.brief-ready__pips { position: relative; display: flex; gap: .04rem; padding: 0 .1rem; }
.brief-ready__pips::before, .brief-ready__pips::after { content: ''; position: absolute; top: -.02rem; bottom: -.02rem; width: .07rem; border: 2px solid rgba(255, 255, 255, .3); }
.brief-ready__pips::before { left: 0; border-right: 0; }
.brief-ready__pips::after { right: 0; border-left: 0; }
.brief-ready__pips i { width: .34rem; height: .4rem; display: grid; place-items: center; color: #4c5152; transition: color var(--t-med), filter var(--t-med); }
.brief-ready__pips i .icon { width: 100%; height: 100%; }
.brief-ready__pips i.on { color: var(--mint-400); filter: drop-shadow(0 0 .06rem rgba(23, 249, 183, .6)); animation: brief-pip .5s var(--tr-ease, ease-out); }
@keyframes brief-pip { from { transform: translateY(-.08rem) scale(1.3); filter: brightness(2.2); } }
.brief-go.btn--xl { height: .98rem; min-width: 3.9rem; padding: 0 .5rem 0 .3rem; justify-content: flex-start; font-size: calc(.38 * var(--t)); letter-spacing: .08em;
  --btn-bg: #33d6a5; --btn-bg-hover: #4ee6b8; box-shadow: 0 0 0 .03rem rgba(255, 255, 255, .85), 0 .06rem .2rem rgba(0, 0, 0, .55); }
.brief-go .btn__icon { width: .44rem; height: .44rem; }
.brief-go.is-active, .brief-go:disabled { --btn-bg: #3f4344; --btn-fg: #f2f4f4; --btn-bd: #6b7071; box-shadow: 0 0 0 .03rem rgba(255, 255, 255, .55); opacity: 1; }
.brief-go.is-loading { --btn-bg: var(--mint-700); }

/* Full setup reroll: consent stays visible alongside the information being confirmed. */
.brief-reroll {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: .2rem;
  margin: .1rem .5rem 1.4rem; padding: .14rem .2rem;
  background: rgba(12, 15, 14, .9); border: 1px solid var(--mint-700);
}
.brief-reroll__text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; font-size: calc(.16 * var(--t)); }
.brief-reroll__text strong { font-size: calc(.2 * var(--t)); color: var(--mint-400); }
.brief-reroll__text > span { color: var(--text-lo); }
.brief-reroll__players { display: flex; flex-wrap: wrap; gap: .08rem .2rem; color: var(--text-dim); }
.brief-reroll__players .is-agreed { color: var(--mint-400); }
.brief-reroll__players .is-rejected { color: var(--red); }
.brief-reroll__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem; flex-shrink: 0; }
@media (max-width: 900px) {
  .brief-reroll { margin-inline: .3rem; gap: .1rem; padding: .1rem .14rem; }
  .brief-reroll__actions { flex-shrink: 1; }
  .brief-reroll__actions .btn { min-height: .44rem; padding-inline: .12rem; }
}

/* ---- 开局转场 (the event's): the header drops in, the sections come in from the right one after another, the corner
   controls rise ---- */
.brief .stephead, .draft .stephead { animation: tr-fade 360ms var(--tr-ease) backwards; }
.stephead__title { animation: tr-right 420ms var(--tr-ease) 120ms backwards; }
.brief-sec { animation: tr-right 460ms var(--tr-ease) backwards; animation-delay: calc(160ms + var(--i, 0) * 80ms); }
.brief-sec .brief-bonds__row > *, .brief-sec .brief-banned__grid > * { animation: tr-pop 340ms var(--tr-ease) backwards; animation-delay: calc(360ms + var(--i, 0) * 80ms); }
.brief__foot .brief-ready, .brief__foot .brief-loadout { animation: tr-rise 420ms var(--tr-ease) 420ms backwards; }
.brief-go { animation: brief-go-in 520ms var(--tr-ease) 480ms backwards; }
@keyframes brief-go-in { 0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: brightness(2.2); } 60% { opacity: 1; clip-path: inset(0); filter: brightness(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .brief .stephead, .draft .stephead, .stephead__title, .brief-sec, .brief-sec .brief-bonds__row > *, .brief-sec .brief-banned__grid > *,
  .brief__foot .brief-ready, .brief__foot .brief-loadout, .brief-go, .brief-ready__pips i.on { animation: none; }
}
