/* ==========================================================================================
   screens/lobby.css — the hub after upstream 0.3.3's (ported by hand, GPL-3.0; upstream PR #643 / #812 by @isomerpoi):
   the event's night / dusk lobby, the emblem in its radar and the title, at the left 成就统计 (the Doctor's name), 加入同盟
   and 作战提示 | 更新, at the right S.W.E.E.P.报告 / 干员调配 plates, the three entries at the bottom right (独立模拟 /
   同盟模拟 / 同盟匹配), and the two full-screen dialogs (the project's Modal): 选择模拟协议 (official picture, difficulty
   cards with the 已选定 stamp, 规则 / 人数 / 快速匹配, the start button — or the room's 确认 / read-only view) and
   选择同盟方式 (radar, 创建同盟 4 / 8 and 加入同盟 cards). Upstream's text sizes are calc(k * var(--t)); this client has no
   文字大小 setting, so --t is 1rem (upstream's 小) on these screens.
   ========================================================================================== */
.lobby-hub, .modal__box.proto, .modal__box.ally, .modal.proto-veil { --t: 1rem; --t-step: calc((1rem - 64px) / 12); }
/* ---- hub backdrop ------------------------------------------------------------------------------------- */
/* the entries' width follows 文字大小 (2.3rem at 小; upstream §35.18 review: at a fixed 2.3rem the names had to stop at 小's size) */
.lobby-hub { --hub-entry-w: calc(2.3 * var(--t)); --hub-gap: .14rem; --hub-side-w: 4.84rem; background: #050807; }
/* Korean breaks between words, not between the syllables of one (upstream §35.18 review: 「독립 시뮬레이|션」 at 小); a word too
   long for its box still breaks rather than running out of it. The hub's own stage only: 选择模拟协议's button keeps its
   two lines (「독립 시뮬레이션 시작」 took three at 特大 in a 1024×600 window by words) */
.lobby-hub:lang(ko) .hub-stage { word-break: keep-all; overflow-wrap: break-word; }
/* Japanese never starts a line with a small kana, ー or a closing mark (upstream §35.18 review: the tips' 「オペレ|ーター」 at 中 / 特大
   in a 1024×600 window; line-break: normal allows a break before them), as in the room */
.lobby-hub:lang(ja) .hub-stage { line-break: strict; }
/* a last line of one character: the hub's tips, the protocol dialog's paragraphs and its big button's label wrap `pretty`
   (upstream §35.18 review of the text-fit fixes: 「比較的所要時間が短いシミュレーショ|ン」 on a phone at 特大, 「単独演算を開|始」,
   Korean 「독립 시뮬레이션 시|작」 on desktops). Scoped as in the room (room.css): WebKit's `pretty` adds lines to short
   labels, and the lobby's other dialogs were not measured with it. The dialog's button only (`.proto-foot`): the room's
   big button shares the label's class and wraps plainly — in Safari `pretty` broke its Japanese 「シミュレーション|開始」
   inside the word, 「シミュレー|ション開始」, at 小 on the phones (review of 6f34f380), as `balance` had. `pretty`:
   Chrome 117+, Safari 26+; Firefox wraps as before */
.tips__text, .proto-brief p, .proto-hint, .proto-foot .proto-start__label { text-wrap: pretty; }
/* 选择同盟方式's note breaks Japanese between phrases in Chrome 119+ (BudouX; review of 6f34f380: 「…教えてもらう|か、招待リンク…」
   at 特大 on the phones, now 「…教えて|もらうか、招待リンクを|直接開いてください」); Safari and Firefox ignore it and wrap as
   before */
.ally-recent:lang(ja) { word-break: auto-phrase; }
/* the top bar's ping pill grows with its text at 大 / 特大, as in the room (upstream §35.18 review: its fixed .32rem cut it) */
.lobby-hub > .topbar .ping { height: auto; min-height: .32rem; padding-top: 1px; padding-bottom: 1px; }
.hub-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 50% 48%, rgba(96, 170, 186, .14), transparent 72%),
    linear-gradient(180deg, #08100f, #040606 82%);
}
/* the official layers are drawn on black: `screen` keeps only their light. Their place, size and opacity below are
   eyeballed from the event video [ASSUMED·화면: no official layout data] */
.hub-bg__glow, .hub-bg__ship { position: absolute; left: 50%; height: auto; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.hub-bg__glow { top: 46%; width: 9.6rem; opacity: .2; }
.hub-bg__ship { top: 54%; width: 13.4rem; opacity: .4; animation: hub-ship 18s ease-in-out infinite alternate; }
@keyframes hub-ship { to { transform: translate(-50%, calc(-50% - .1rem)); } }
/* a later season's own hub (ui/seasonArt.js), darkened at the top bar and under the entries */
.hub-bg__season { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hub-bg.has-season::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .3), transparent 30%, transparent 60%, rgba(0, 0, 0, .5));
}
.hub-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: .6rem .6rem;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 85%);
}
.lobby-hub .topbar { background: linear-gradient(180deg, rgba(4, 8, 8, .85), transparent); border-bottom: 0; }
/* the hub's top bar: no title in the middle — the left group and the right one (season chip, resume) */
.lobby-hub > .topbar { grid-template-columns: minmax(0, 1fr) auto; }
/* on a desktop the top bar's left group is the left column's width, its last button at the column's end (maintainer
   decision 2026-11-08: the two were sized apart, and the ping's digits moved the group's end); wider only when its content
   needs it — the touch layout's bigger tool buttons overflowed 4.84rem and squeezed the ping pills (1024×600: 291px of
   content in 258px) */
@media (min-height: 521px) {
  .lobby-hub > .topbar .topbar__left { width: var(--hub-side-w); min-width: max-content; max-width: 100%; }
  .lobby-hub > .topbar .topbar__sep { margin-left: auto; }
}
.topbar__sep { width: 1px; height: .28rem; background: var(--line-2); }
.topbar__tools { display: flex; align-items: center; gap: .14rem; }
.topbar__tools .btn--square.btn--sm { --sq: .46rem; height: var(--sq); min-width: var(--sq); }
.topbar__tools :is(.settings-btn, .fs-btn) .icon { width: max(.22rem, 18px); height: max(.22rem, 18px); }
.sp-coarse .topbar__tools { gap: max(.16rem, 10px); }
.sp-coarse .topbar__tools .btn--square.btn--sm { --sq: max(.56rem, 40px); }

/* ---- hub layout: the centre spans the first row; both columns lie above it -------------------------- */
.hub-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--hub-side-w)) minmax(0, 1fr) minmax(0, calc(var(--hub-entry-w) * 2 + var(--hub-gap)));
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "side center right" "side entries entries";
  gap: .2rem .4rem;
  width: 100%;
  padding: .1rem .36rem .36rem .44rem;
}

.hub-center {
  grid-row: 1;
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  min-width: 0;
  text-align: center;
  pointer-events: none;
  animation: card-in var(--t-slow) var(--ease-out) backwards;
}
.hub-center__mark { position: relative; display: grid; place-items: center; min-height: 1.4rem; margin-bottom: .1rem; }
.hub-center__logo { position: relative; width: 1.3rem; height: auto; filter: drop-shadow(0 0 .12rem rgba(210, 255, 240, .25)); }
.hub-center__mark .emblem { position: relative; margin-bottom: 0; }
/* a later season's logo alone (screens/lobby.js HubTitle), as large as the official hub's root_title allows here */
.hub-center__season { position: relative; height: min(42vh, 26vw); width: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.hub-center.has-season .hub-radar { display: none; }
.hub-center__en { position: relative; font-family: var(--font-display); font-size: calc(.17 * var(--t)); letter-spacing: .32em; color: rgba(223, 230, 226, .72); text-shadow: 0 1px .08rem rgba(0, 0, 0, .85); }
.hub-center__en b { color: var(--mint-400); font-weight: 700; }
.hub-center__title {
  position: relative;
  margin: 0;
  /* follows 文字大小 while it fits on one line beside the side columns (larger, it ran under the left column's tips —
     upstream §35.18 review): the centre is the stage's width (100vw less its .8rem padding) and the title's box twice the left
     column and its gap less (below);
     7 CJK characters with their spacing are 7.4–8em, so it stops at that box / 8.2 (never below .56rem at 小); the latin
     title below */
  font-size: min(calc(.56 * var(--t)), calc((100vw - .8rem - 2 * (var(--hub-side-w) + .4rem)) / 8.2));
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.15;
  color: var(--text-hi);
  text-shadow: 0 .04rem .3rem rgba(0, 0, 0, .8);
  overflow-wrap: anywhere;
}
.hub-center__title em { font-style: normal; color: var(--mint-400); }
.hub-center__title--latin { font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
/* the title is centred over the whole stage: it keeps clear of the side columns (the left column's width and its gap each
   side), and the latin one — 「STRONGHOLD PROTOCOL: ALLIANCE」, 20em of the display font — is .46 × --t while it fits on
   one line inside that, its width / 20.2 (upstream §35.18 review: at .56rem it reached under the left column's tips in English, at
   大 / 特大 in 800–1280 px windows; pinned at .46rem it no longer followed 文字大小). [ASSUMED·자료 없음] the .46 */
.hub-center__title { max-width: calc(100% - 2 * (var(--hub-side-w) + .4rem)); }
.hub-center__title--latin { font-size: min(calc(.46 * var(--t)), calc((100vw - .8rem - 2 * (var(--hub-side-w) + .4rem)) / 20.2)); }
/* the radar rings around the emblem (original drawing) */
.hub-radar { position: absolute; left: 50%; top: 50%; width: 4.6rem; height: 4.6rem; transform: translate(-50%, -50%); }
.hub-radar svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(89, 244, 202, .15); stroke-width: 1; }
.hub-radar .hub-radar__ticks { stroke-width: 5; stroke-dasharray: 1.4 9.8; }
.hub-radar__sweep {
  position: absolute;
  inset: 5.4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 292deg, rgba(89, 244, 202, .15) 360deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 17%, #000 18%);
  mask-image: radial-gradient(circle, transparent 0 17%, #000 18%);
  animation: hub-sweep 9s linear infinite;
}
@keyframes hub-sweep { to { transform: rotate(1turn); } }

/* ---- left column: 成就统计, 密钥加入, 作战提示 ------------------------------------------------------------ */
.hub-side { grid-area: side; position: relative; z-index: 1; display: flex; flex-direction: column; gap: .14rem; min-width: 0; padding-top: .3rem; }
/* 成就统计 (#643's top-left card, from the event video): a dusk scene with the emblem and the trophy medal, the label strip
   with the LV under it */
.hub-ach {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  font: inherit;
  text-align: left;
  color: #eef3f1;
  cursor: pointer;
  background: #0c1110;
  border: 1px solid rgba(220, 230, 226, .16);
  box-shadow: 0 .04rem .16rem rgba(0, 0, 0, .45);
  transition: border-color var(--t-fast), filter var(--t-fast);
}
.hub-ach:hover, .hub-ach:focus-visible { border-color: rgba(78, 216, 175, .35); filter: brightness(1.08); outline: none; }
.hub-ach:focus-visible { box-shadow: 0 0 0 2px var(--mint-400); }
.hub-ach__scene { position: relative; height: 1rem; overflow: hidden; display: grid; place-items: center; }
.hub-ach__land { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-ach__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), linear-gradient(90deg, rgba(8, 10, 10, .55), transparent 40%);
}
.hub-ach__mark { position: relative; z-index: 1; display: grid; place-items: center; }
.hub-ach__mark .emblem { margin: 0; gap: .06rem; animation: none; }
.hub-ach__mark .emblem__svg { width: .52rem; height: .56rem; filter: drop-shadow(0 0 .04rem rgba(0, 0, 0, .6)); }
.hub-ach__mark .emblem__svg circle { fill: #15110c; animation: none; }
.hub-ach__mark .emblem__svg circle.is-accent { fill: #2cf0b8; }
.hub-ach__mark .emblem__bracket { width: .07rem; height: .66rem; border-width: 1px; border-color: rgba(20, 16, 10, .55); }
.hub-ach__rank {
  position: absolute;
  left: .1rem;
  top: .1rem;
  z-index: 2;
  width: .6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .01rem;
  padding: .04rem 0 .03rem;
  background: rgba(14, 18, 17, .55);
  border: 1px solid rgba(240, 244, 243, .4);
}
.hub-ach__medal { width: .44rem; height: .44rem; object-fit: contain; }
.hub-ach__rank > .icon { width: .3rem; height: .3rem; color: #eef3f1; }
.hub-ach__rank small { display: inline-flex; align-items: center; gap: .02rem; font-size: min(calc(.13 * var(--t)), .15rem); color: #e6ebe9; }
.hub-ach__rank small .icon { width: .12rem; height: .12rem; }
.hub-ach__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .08rem;
  flex-wrap: wrap;
  min-height: .46rem;
  padding: .02rem .16rem;
  font-size: calc(.21 * var(--t));
  font-weight: 700;
  background: linear-gradient(90deg, rgba(20, 26, 25, .96), rgba(14, 18, 17, .96));
  border-top: 1px solid rgba(220, 230, 226, .14);
}
.hub-ach__label::before, .hub-ach__label::after { content: ''; position: absolute; top: .06rem; bottom: .06rem; width: .06rem; border: 1px solid rgba(220, 230, 226, .3); }
.hub-ach__label::before { left: .04rem; border-right: 0; }
.hub-ach__label::after { right: .04rem; border-left: 0; }
.hub-ach__badge { flex: none; width: .24rem; height: .24rem; fill: #e8eeec; }
.hub-ach__lv { margin-left: auto; font-size: calc(.15 * var(--t)); font-weight: 600; color: var(--mint-400); }
/* the 规则 模式 the LV counts (maintainer decision 2026-11-08: 成就统计 counts the modes apart) */
.hub-ach__rs { margin-left: auto; padding: 0 .05rem; font-size: calc(.11 * var(--t)); font-weight: 700; line-height: 1.45; white-space: nowrap; color: #f5c26b; border: 1px solid currentColor; }
.hub-ach__rs.rtag--casual { color: var(--mint-400); }
.hub-ach__rs.rtag--custom { color: var(--custom); }
.hub-ach__rs + .hub-ach__lv { margin-left: .06rem; }
.hub-tile {
  display: flex;
  align-items: center;
  gap: .14rem;
  width: 100%;
  min-height: .74rem;
  padding: .1rem .16rem;
  text-align: left;
  color: var(--text-hi);
  background: rgba(8, 14, 13, .8);
  border: 1px solid rgba(223, 230, 226, .2);
  border-left: 3px solid var(--mint-500);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hub-tile:hover, .hub-tile:focus-visible { background: rgba(24, 40, 36, .9); border-color: var(--mint-a35); }
.hub-tile__icon { flex: none; display: grid; place-items: center; width: .44rem; height: .44rem; border: 1px solid var(--mint-a35); color: var(--mint-400); }
.hub-tile__icon .icon { width: .24rem; height: .24rem; }
.hub-tile__text { display: flex; flex-direction: column; gap: .02rem; min-width: 0; }
.hub-tile__label { font-size: calc(.2 * var(--t)); font-weight: 800; }
.hub-tile__en { font-family: ui-monospace, Consolas, monospace; font-size: calc(.1 * var(--t)); font-weight: 600; letter-spacing: .18em; color: var(--text-dim); }

/* ---- right column: light plates with bracket marks (S.W.E.E.P.报告, 干员调配 = loadout.js's LoadoutButton) --------- */
.hub-right { grid-area: right; position: relative; z-index: 1; align-self: start; display: flex; flex-direction: column; gap: .12rem; min-width: 0; padding-top: .3rem; }
.lobby-hub .hub-plate {
  --pl-ink: #222b28;
  --bk-c: var(--mint-400);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: .14rem;
  width: 100%;
  height: auto;
  min-height: .7rem;
  min-width: 0;
  padding: .04rem .22rem .04rem .2rem;
  font: inherit;
  font-size: calc(.2 * var(--t));
  letter-spacing: .04em;
  color: #111816;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(var(--pl-ink), var(--pl-ink)) left .07rem center / 2px 54% no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) left .07rem top 23% / .06rem 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) left .07rem bottom 23% / .06rem 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right .07rem center / 2px 54% no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right .07rem top 23% / .06rem 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right .07rem bottom 23% / .06rem 2px no-repeat,
    linear-gradient(180deg, #e8edea, #c6cfcb);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 .05rem .18rem rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.lobby-hub .hub-plate:not(:disabled):hover { border-color: #fff; box-shadow: 0 .05rem .22rem rgba(0, 0, 0, .55), 0 0 .16rem rgba(78, 216, 175, .3); filter: brightness(1.05); }
.lobby-hub .hub-plate:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.hub-plate__glyph, .lobby-hub .hub-plate .lo-entry__icon, .lobby-hub .hub-plate > .btn__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: .46rem;
  height: .46rem;
  padding: .07rem;
  box-sizing: border-box;
  color: var(--mint-400);
  background: #182120;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hub-plate__glyph svg { width: 100%; height: 100%; }
/* (a label too long for its plate wraps beside its glyph and the plate grows, rather than an ellipsis — upstream §35.18 review:
   Japanese S.W.E.E.P.レポート beside its tag at 特大 in 800–1280 px windows. It takes the row's free width, at least its
   longest word, so only the tag drops under it when even that does not fit) */
.hub-plate__label, .lobby-hub .hub-plate .btn__label { flex: 1 1 0; min-width: min-content; font-weight: 900; letter-spacing: .04em; line-height: 1.15; white-space: normal; color: #111816; }
.hub-plate__tag { margin-left: auto; padding: .03rem .07rem; font-size: calc(.11 * var(--t)); font-weight: 700; letter-spacing: .12em; color: rgba(17, 24, 22, .6); border: 1px solid rgba(17, 24, 22, .28); white-space: nowrap; }
.lobby-hub .hub-plate .lo-entry__n { margin-left: auto; }
/* 成就统计 as a plate: only on short screens, where the left column with its card gives way (see the media block) */
.lobby-hub .hub-plate--ach, .lobby-hub .hub-plate--join { display: none; }
.hub-plate--join .hub-plate__glyph .icon { width: 70%; height: 70%; }
.hub-plate--ach .hub-plate__glyph svg { fill: currentColor; }

/* ---- entries (独立模拟 / 同盟模拟), bottom right ----------------------------------------------------------- */
/* (the card, the tips' head and the 成就统计 card's label grow or wrap rather than cut their text at
   大 / 特大 in a small window — upstream §35.18 review; the trophy count under the medal stops at .15rem, 大's size [ASSUMED·자료 없음]) */
/* (the two cards share a height: the taller one's, their text at the bottom) */
.hub-entries { grid-area: entries; position: relative; z-index: 1; display: flex; align-items: stretch; justify-content: flex-end; gap: var(--hub-gap); min-width: 0; }
.hub-entry-wrap { display: flex; flex-direction: column; min-width: 0; animation: card-in var(--t-slow) var(--ease-out) backwards; }
.hub-entry-wrap:nth-child(2) { animation-delay: 60ms; }
.hub-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 1 0 auto;
  width: var(--hub-entry-w);
  max-width: 100%;
  min-height: calc(1.34 * var(--t));
  padding: .14rem .16rem;
  /* the icon's height kept above the text (below) */
  padding-top: calc(.12rem + .42 * var(--t) + .04rem);
  overflow: hidden;
  text-align: left;
  color: var(--text-hi);
  background: linear-gradient(160deg, rgba(30, 46, 42, .94), rgba(9, 15, 14, .96));
  border: 1px solid rgba(223, 230, 226, .26);
  box-shadow: 0 .06rem .24rem rgba(0, 0, 0, .5);
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.hub-entry:hover, .hub-entry:focus-visible { transform: translateY(-.04rem); border-color: var(--mint-400); box-shadow: 0 .08rem .3rem rgba(0, 0, 0, .55), 0 0 .2rem var(--mint-a20); }
.hub-entry:active { transform: translateY(1px); }
.hub-entry__icon { position: absolute; right: .14rem; top: .12rem; color: var(--mint-a35); }
.hub-entry__icon .icon { width: calc(.42 * var(--t)); height: calc(.42 * var(--t)); }
/* 同盟匹配's badges (maintainer decision 2026-11-20): top left, across from the icon and stopping before it; a 0 keeps its
   place, dimmed (as the difficulty card's 房间 n without .is-on) */
.hub-entry__stats { position: absolute; left: .16rem; top: .12rem; right: calc(.14rem + .42 * var(--t) + .08rem); display: flex; flex-wrap: wrap; gap: .06rem; }
/* the card, its icon and its text follow 文字大小 together (2.3 × 1.34 --t, the icon .42 --t), as at 小; the text stays
   below the icon — the card's top padding is the icon's .12rem offset, its height and a gap — so a long name or the
   decorative line grows the card rather than running under it (upstream §35.18 review: 「ALLIANCE SIMULATION」 ran under the
   people icon in English, Korean names under it at 大 / 特大; a padding beside it instead wrapped the line in every
   language, Chinese 「ALLIANCE / SIMULATION」 at 小, which never reached the icon). A short card keeps its min-height */
.hub-entry__en { font-family: ui-monospace, Consolas, monospace; font-size: calc(.11 * var(--t)); font-weight: 700; letter-spacing: .22em; color: var(--mint-400); }
/* the name wraps between words (upstream §35.18 review: on one line English 「Solo Simulation」 / 「Team Simulation」 ran 25–40 px
   past the 2.3rem card at 小 in every window and 84–100 px at 特大, the card cutting it); 「Simulation」 alone is ~6.2em,
   and the card (2.3 × --t) keeps ~1.98 × --t inside for the .3 × --t name */
.hub-entry__name { margin-top: .04rem; font-size: calc(.3 * var(--t)); font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.hub-entry__corner { position: absolute; right: 0; bottom: 0; width: .3rem; height: .3rem; background: linear-gradient(135deg, transparent 50%, var(--mint-500) 50%); opacity: .8; }
/* 同盟模拟, the main way to play: bright */
.hub-entry--coop { background: linear-gradient(160deg, var(--mint-500), #1f8f72); color: #04140f; border-color: var(--mint-400); }
.hub-entry--coop .hub-entry__en { color: rgba(4, 20, 15, .75); }
.hub-entry--coop .hub-entry__icon { color: rgba(4, 20, 15, .25); }
.hub-entry--coop .hub-entry__corner { background: linear-gradient(135deg, transparent 50%, #e8fff7 50%); }
@keyframes card-in { from { opacity: 0; transform: translateY(.14rem); } }

/* ---- 作战提示 and 更新 (screens/lobby.js HubNotes; maintainer decision 2026-11-08): two cards in the left column on a
   desktop — the tips (up to three lines) and the newest release (version, date, NEW, four main lines, 查看全部) —, one
   card with the two as tabs on a short screen (the media block) ------------------------------------------------- */
.tips {
  --bk-c: var(--line-3);
  position: relative;
  padding: .12rem .18rem .14rem;
  background: rgba(8, 14, 13, .72);
  border: 1px solid rgba(223, 230, 226, .16);
}
.tips__head { display: flex; align-items: center; gap: .08rem; min-height: .3rem; font-size: calc(.17 * var(--t)); font-weight: 800; color: #e9efed; }
.tips__head .micro { color: var(--text-lo); }
.tips__name { white-space: nowrap; }
.tips__badge { flex: none; display: grid; place-items: center; width: .22rem; height: .22rem; border-radius: 50%; color: #062019; background: var(--mint-500); }
.tips__badge .icon { width: 70%; height: 70%; }
.tips__pager { display: inline-flex; align-items: center; gap: .06rem; margin-left: auto; }
.tips__idx { font-size: calc(.13 * var(--t)); color: var(--text-md); }
.tips__nav {
  display: grid;
  place-items: center;
  width: .26rem;
  height: .26rem;
  padding: 0;
  border: 1px solid var(--line-2);
  background: transparent;
  color: #cfd8d5;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tips__nav:hover:not(:disabled) { color: var(--mint-400); border-color: var(--mint-700); }
.tips__nav:disabled { opacity: .35; cursor: default; }
.tips__nav .icon { width: .16rem; height: .16rem; }
/* (three lines at most: a longer tip ends in an ellipsis — the card keeps its height while the tips step) */
.tips__text { margin: .08rem 0 0; font-size: calc(.15 * var(--t)); line-height: 1.6; color: #d6dedb; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; animation: tip-in var(--t-slow) var(--ease-out); }
@keyframes tip-in { from { opacity: 0; transform: translateX(.1rem); } }
.tips__news { animation: tip-in var(--t-slow) var(--ease-out); }
.tips__verline { display: flex; align-items: baseline; gap: .08rem; margin-top: .06rem; }
.tips__ver { font-size: calc(.2 * var(--t)); color: var(--mint-400); }
.tips__date { font-size: calc(.12 * var(--t)); color: var(--text-lo); }
.tips__new { align-self: center; padding: 0 .04rem; font-family: var(--font-num); font-size: calc(.1 * var(--t)); font-weight: 800; letter-spacing: .06em; color: #111; background: #f5c518; white-space: nowrap; }
.tips__lines { margin: .06rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .04rem; }
.tips__lines li { position: relative; padding-left: .14rem; font-size: calc(.145 * var(--t)); line-height: 1.45; color: #d6dedb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tips__lines li::before { content: ''; position: absolute; left: .02rem; top: .6em; width: .05rem; height: .05rem; background: var(--mint-400); }
.tips__lines b { color: #fff; }
.tips__lines code { font-family: var(--font-num); letter-spacing: -.06em; font-size: .9em; }
.tips__foot { display: flex; justify-content: flex-end; margin-top: .06rem; }
.tips__more { flex: none; display: inline-flex; align-items: center; gap: .02rem; padding: 0; border: 0; background: none; font: inherit;
  font-size: calc(.13 * var(--t)); font-weight: 700; color: var(--mint-400); white-space: nowrap; cursor: pointer; }
.tips__verline .tips__more { margin-left: auto; align-self: center; }
.tips__more .icon { width: 1em; height: 1em; }
.tips__more:hover { color: var(--text-hi); }
/* the tabs of the short screen's card (the approved mockup's: framed, the open one filled mint) */
.tips__tabs { display: inline-flex; gap: 2px; }
.tips__tab { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; font: inherit; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  color: #aab4b1; background: transparent; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; }
.tips__tab.is-on { color: #062019; background: var(--mint-400); border-color: var(--mint-400); }
.tips__tab .tips__new { font-size: 8px; padding: 0 2px; }

/* ---- the two full-screen dialogs (Modal .proto / .ally) --------------------------------------------- */
.modal.proto-veil { padding: 0; background: #0b0c0c; -webkit-backdrop-filter: none; backdrop-filter: none; }
.modal__box.proto, .modal__box.ally {
  position: fixed;
  inset: 0;
  width: auto;
  max-height: none;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  color: #eef0ef;
  background: #0b0c0c;
  border: 0;
  box-shadow: none;
  overscroll-behavior: contain;
  animation: proto-in 200ms var(--ease-out) backwards;
}
.modal__box.proto::after, .modal__box.proto > .modal__stripe, .modal__box.ally::after, .modal__box.ally > .modal__stripe { display: none; }
.modal__box.proto > .modal__body, .modal__box.ally > .modal__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.proto__body, .ally__body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
@keyframes proto-in { from { opacity: 0; } }
.proto__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 400ms;
  background:
    radial-gradient(46% 60% at 30% 52%, rgba(255, 255, 255, .05), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    radial-gradient(120% 90% at 50% 40%, #151616, #070808);
  background:
    radial-gradient(46% 60% at 30% 52%, color-mix(in srgb, var(--d-color, #4ed8af) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 100% 50%, color-mix(in srgb, var(--d-color, #4ed8af) 10%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    radial-gradient(120% 90% at 50% 40%, #151616, #070808);
}
.proto-top, .proto-body { position: relative; }
.proto-top { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: .2rem; padding: .18rem .34rem 0 .22rem; z-index: 2; }
.proto-back {
  display: inline-flex;
  align-items: center;
  height: max(.62rem, 32px, calc(36px * var(--sp-ui, 1)));
  padding: 0;
  font: inherit;
  color: #f2f4f3;
  background: linear-gradient(180deg, #2b2c2d, #1b1c1d);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5);
}
.proto-back > .icon { width: max(.4rem, 22px); height: max(.4rem, 22px); margin: 0 .3rem 0 .14rem; }
.proto-back__home {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: max(2rem, 32px, calc(96px * var(--sp-ui, 1)));
  border-left: 2px solid #0d0e0e;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1px, transparent 1.6px) 0 0 / .14rem .14rem, linear-gradient(90deg, #2f3132, #3d3f40 50%, #2f3132);
}
.proto-back__home .icon { width: max(.32rem, 18px); height: max(.32rem, 18px); }
.proto-back:hover, .proto-back:focus-visible { border-color: rgba(255, 255, 255, .35); }
.proto-title { display: flex; flex-direction: column; align-items: flex-end; gap: .02rem; min-width: 0; padding-top: .06rem; text-align: right; }
.proto-title .modal__title { margin: 0; font-size: calc(.36 * var(--t)); font-weight: 900; letter-spacing: .06em; color: #eef0ef; }
.proto-title__mode { display: inline-flex; align-items: center; gap: .08rem; font-size: calc(.16 * var(--t)); font-weight: 700; color: var(--d-color, var(--mint-400)); }
.proto-title__mode .icon { width: 1.1em; height: 1.1em; }
.proto-title__mode i { font-style: normal; font-family: var(--font-display); font-size: calc(.13 * var(--t)); letter-spacing: .16em; color: #8b8f8e; }

/* the cards' column 5.6rem, at least 300 px (upstream §35.18 review: in a window whose 1rem is under 54 px — 960×540, 1100×530,
   800×600 — the px floors of the glyph and the 文字大小 made 5.6rem too narrow for English 「Standard Simulation」 /
   「Ultimate Simulation」 on one line, and the unselected cards' names ended in an ellipsis), never past 46vw. [ASSUMED·자료 없음] the
   floor */
.proto-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) min(max(5.6rem, 32px, calc(300px * var(--sp-ui, 1))), 46vw); gap: .3rem; padding: 0 .34rem .26rem .22rem; }
.proto-stage { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; }

/* the official picture of the selected difficulty, with its brief at the bottom left */
/* the picture fills the column (as #643's drawn scene did: from a little above the cards down to the brief) */
.proto__pic { position: absolute; inset: -.5rem -1.8rem .9rem -.3rem; display: grid; place-items: center; min-height: 0; animation: proto-pic var(--t-slow) var(--ease-out); }
.proto__art {
  width: 100%;
  height: 100%;
  max-width: 9.4rem; /* the art is 427 × 332: up to about 2.2× before it turns soft */
  max-height: 7.3rem;
  object-fit: contain;
  filter: drop-shadow(0 0 .2rem var(--d-color));
  filter: drop-shadow(0 0 .2rem color-mix(in srgb, var(--d-color) 45%, transparent));
}
.proto__glyph { width: 2.2rem; height: 2.2rem; color: var(--d-color); opacity: .8; filter: drop-shadow(0 0 .2rem var(--d-color)); }
@keyframes proto-pic { from { opacity: 0; transform: translateX(-.14rem); } }

/* the scene (ui/protocolScene.js, PR #643 + video 5:00–5:16): the official ship on a survey grid between two squares of
   defenders, the cable with a light running down it; it reaches under the cards like the event's. A new difficulty
   remounts it: dark first, then up in the new colour. */
.proto-side { position: relative; z-index: 1; }

.ps { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--d-color); animation: ps-in 640ms ease-out backwards; }
@keyframes ps-in { 0% { opacity: 0; filter: brightness(.15); } 35% { opacity: .35; filter: brightness(.3); } 100% { opacity: 1; filter: none; } }
.ps-grid line { stroke: currentColor; stroke-opacity: .12; stroke-width: 1; }
.ps-pad polygon { fill: currentColor; fill-opacity: .1; stroke: currentColor; stroke-opacity: .55; stroke-width: 1.2; }
.ps-pad__edge { fill: none; stroke: currentColor; stroke-opacity: .7; stroke-width: 2; stroke-dasharray: 26 8; }
.ps-hull { filter: drop-shadow(0 0 6px var(--d-color)); }
.ps-ship image { filter: drop-shadow(0 0 10px var(--d-color)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--d-color) 55%, transparent)); }
.ps-face { stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; fill: currentColor; }
.ps-face--top { fill-opacity: .42; }
.ps-face--front { fill-opacity: .26; }
.ps-face--side { fill-opacity: .16; }
.ps-seam { stroke: #fff; stroke-opacity: .35; stroke-width: 1; }
.ps-beacon { fill: #fff; animation: ps-blink 1.6s steps(2) infinite; }
@keyframes ps-blink { 50% { opacity: .2; } }
.ps-cable { fill: none; stroke: currentColor; stroke-width: 5; stroke-opacity: .7; stroke-linecap: round; }
.ps-cable__pulse { fill: none; stroke: #fff6d8; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 90 1200; stroke-dashoffset: 90;
  filter: drop-shadow(0 0 6px var(--d-color)); animation: ps-pulse 2.6s cubic-bezier(.5, 0, .7, 1) 400ms infinite; }
@keyframes ps-pulse { from { stroke-dashoffset: 90; opacity: 1; } 85% { opacity: 1; } to { stroke-dashoffset: -1000; opacity: 0; } }
.ps-fig { animation: ps-fig 360ms var(--ease-out) backwards; animation-delay: calc(240ms + var(--i) * 18ms); }
@keyframes ps-fig { from { opacity: 0; transform: translateY(-6px); } }
.ps-fig__body, .ps-fig__head { fill: currentColor; fill-opacity: .88; stroke: rgba(0, 0, 0, .45); stroke-width: .8; }
.ps-fig__head { fill-opacity: 1; }
.ps-fig__shadow { fill: #000; opacity: .35; }
.ps-spike polygon { fill: currentColor; fill-opacity: .75; }
.ps-spike__x { stroke: currentColor; stroke-width: 2; stroke-opacity: .8; }
.ps-spike { animation: ps-fig 420ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 60ms + 120ms); }
.ps-call rect { fill: rgba(0, 0, 0, .55); stroke: currentColor; stroke-width: 1.5; }
.ps-call line { stroke: currentColor; stroke-width: 1.5; stroke-opacity: .8; }
.ps-call rect.ps-call__icon { fill: currentColor; fill-opacity: .25; }
.ps-call__man { fill: currentColor; }
.ps-call { animation: ps-fig 420ms var(--ease-out) 420ms backwards; }
.ps-scan { stroke: currentColor; stroke-opacity: .2; stroke-width: 2; animation: ps-scan 7s linear infinite; }
@keyframes ps-scan { from { transform: translateY(40px); } to { transform: translateY(620px); } }
.proto-brief {
  position: absolute;
  left: .1rem;
  bottom: .1rem;
  max-width: min(6rem, 92%);
  padding: .12rem .2rem .14rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .2));
  border-left: 3px solid var(--d-color);
}
.proto-brief__code { margin-right: .1rem; padding: 0 .08rem; font-size: calc(.14 * var(--t)); color: #111; background: var(--d-color); }
.proto-brief__name { font-size: calc(.26 * var(--t)); color: var(--d-color); }
.proto-brief p { margin: .04rem 0 0; font-size: calc(.16 * var(--t)); line-height: 1.5; color: #b7bcba; }

/* the difficulty cards: the chosen one slides out with a glow and the 已选定 stamp; centred while they fit (auto margins, so
   a list taller than the column still scrolls from its top). The gaps and pads a little tighter than #643's (.14rem, .1rem
   and .1 / .11rem) so the full cards fit at 小 in a 16:9 window (they were 2–26 px too tall at 1280x720 – 1920x1080:
   upstream §35.18's leftover). [ASSUMED·자료 없음] the spacing */
.proto-side { min-height: 0; display: flex; flex-direction: column; gap: .14rem; }
.proto-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .07rem .06rem .07rem .5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
/* the rule rows and the cards are one group in the column's free height, the button at the bottom (maintainer decision
   2026-11-08: the cards centred apart in the list's box left a wide gap under the rules). The list is as tall as its cards
   and shrinks (and scrolls) only when they do not fit — pickCardFit measures that overflow */
.proto-side > :first-child { margin-top: auto; }
.proto-side > .proto-list { flex: 0 1 auto; }
.proto-side > .proto-foot { margin-top: auto; }
.pcard {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: .04rem;
  padding: .08rem .26rem .09rem;
  overflow: hidden;
  font: inherit;
  text-align: left;
  color: #e9eceb;
  background: linear-gradient(180deg, #252627, #1a1b1c);
  border: 2px solid #55585a;
  border-radius: .2rem;
  box-shadow: 0 .05rem .16rem rgba(0, 0, 0, .5);
  transition: transform 220ms var(--ease-out), border-color 220ms;
}
.pcard:hover:not(.is-on), .pcard:focus-visible:not(.is-on) { border-color: #7b7f81; }
/* the room's read-only view (another doctor's: the host chooses): shown, not chosen */
.pcard:disabled { cursor: default; }
.pcard:disabled:hover:not(.is-on) { border-color: #55585a; }
.pcard.is-on { transform: translateX(-.44rem); border-color: #8f9496; }
.pcard__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms;
  background: radial-gradient(70% 140% at 100% 50%, rgba(255, 255, 255, .12), transparent 72%);
  background: radial-gradient(70% 140% at 100% 50%, color-mix(in srgb, var(--d-color) 70%, transparent), transparent 72%);
}
.pcard.is-on .pcard__glow { opacity: 1; }
.pcard__head, .pcard__desc, .pcard__effects, .pcard__meta { position: relative; }
.pcard.is-on .pcard__head, .pcard.is-on .pcard__desc, .pcard.is-on .pcard__effects, .pcard.is-on .pcard__meta { padding-right: max(1.3rem, 32px, calc(70px * var(--sp-ui, 1))); }
.pcard__head { display: flex; align-items: center; gap: .08rem; }
.pcard__glyph { width: max(.3rem, 18px); height: max(.3rem, 18px); color: var(--d-color); }
.pcard__name { font-size: min(calc(.28 * var(--t)), .36rem); font-weight: 900; letter-spacing: .04em; color: var(--d-color); text-shadow: 0 0 .1rem rgba(0, 0, 0, .6); white-space: nowrap; }
.pcard__desc { padding-bottom: .05rem; font-size: calc(.16 * var(--t)); color: #9a9f9d; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.pcard__effects { display: flex; flex-direction: column; padding-top: .04rem; font-size: calc(.17 * var(--t)); line-height: 1.4; }
.pcard__effects span::before { content: '·'; margin-right: .06rem; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .04rem .14rem; margin-top: .04rem; font-size: calc(.13 * var(--t)); color: #7f8583; }
.pcard__meta b { color: #cfd3d1; }
.pcard__stage { display: inline-flex; align-items: center; gap: .04rem; }
/* 规程等级 rows (screens/lobby.js GradeRow, maintainer decision 2026-11-12, 시안 B): one compact row a mode in the cards'
   look — the difficulty's colour as a left band, the picked row slid out with its glow and a tick. The list always
   scrolls (21 rows); the picked row is scrolled into view when it opens. [ASSUMED·화면: the official 规程 mode list
   (auto_chess_mode_choice_view) is not drawn yet — a later bundle] */
.proto-list--grades { gap: .04rem; }
.grow {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto 1em;
  align-items: center;
  gap: .12rem;
  min-height: max(.44rem, 30px);
  padding: .02rem .2rem;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  color: #e9eceb;
  background: linear-gradient(180deg, #252627, #1a1b1c);
  border: 1px solid #45484a;
  border-left: max(.08rem, 4px) solid var(--d-color);
  border-radius: .12rem;
  transition: transform 220ms var(--ease-out), border-color 220ms;
}
.grow:hover:not(.is-on), .grow:focus-visible:not(.is-on) { border-color: #7b7f81; border-left-color: var(--d-color); }
.grow:disabled { cursor: default; }
.grow.is-on {
  transform: translateX(-.3rem);
  border-color: var(--d-color);
  background: linear-gradient(90deg, #3a2a22, #1a1b1c 75%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--d-color) 55%, #151617), #1a1b1c 75%);
}
.grow__glyph { width: max(.26rem, 18px); height: max(.26rem, 18px); color: var(--d-color); }
.grow__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.grow__name b { font-size: min(calc(.2 * var(--t)), .3rem); font-weight: 900; letter-spacing: .03em; }
.grow__name small { margin-left: .08rem; font-size: calc(.13 * var(--t)); color: #9a9f9d; }
.grow.is-on .grow__name small { color: #d8dcda; }
.grow__code, .grow__rounds { font-size: calc(.13 * var(--t)); color: #8b908e; }
.grow__rounds b { color: #cfd3d1; }
.grow__tick { display: grid; place-items: center; color: #fff; }
.pcard__stage .icon { width: 1.1em; height: 1.1em; }
.pcard__stamp {
  position: absolute;
  right: .2rem;
  top: 50%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .04rem;
  width: max(1.3rem, 32px, calc(70px * var(--sp-ui, 1)));
  height: max(1.1rem, 32px, calc(60px * var(--sp-ui, 1)));
  transform: translateY(-50%) rotate(-6deg);
}
.pcard.is-on .pcard__stamp { display: flex; animation: proto-stamp 260ms var(--ease-out) backwards; }
@keyframes proto-stamp { from { opacity: 0; transform: translateY(-50%) rotate(-6deg) scale(1.4); } }
.pcard__ring { position: absolute; inset: -.1rem -.14rem; width: calc(100% + .28rem); height: calc(100% + .2rem); }
.pcard__ring path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .9; }
.pcard__tick { display: grid; place-items: center; width: max(.46rem, 26px); height: max(.46rem, 26px); color: #2a1712; background: #f5f5f5; border-radius: .06rem; box-shadow: 0 .02rem .08rem rgba(0, 0, 0, .5); }
.pcard__tick .icon { width: 78%; height: 78%; color: var(--d-color); filter: brightness(.7); }
.pcard__ok { font-size: calc(.18 * var(--t)); font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); white-space: nowrap; }

/* the foot: the test-room box, the hint, 开始独立模拟 / 创建同盟 */
.proto-foot { flex: none; display: flex; flex-direction: column; gap: .08rem; padding-left: .5rem; }
.create-box__test {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .04rem .1rem;
  color: #e8b84a; font-size: calc(.16 * var(--t));
}
.create-box__test input { width: .2rem; height: .2rem; margin: 0; flex: none; accent-color: #e8b84a; }
.create-box__test em { flex-basis: 100%; font-style: normal; }
@media (max-width: 720px) {
  .create-box__test { font-size: 16px; }
  .create-box__test input { width: 32px; height: 32px; }
  .create-box__test em { font-size: 14px; }
}
.proto-hint { display: flex; align-items: center; gap: .08rem; min-height: .24rem; margin: 0; font-size: calc(.14 * var(--t)); color: #858b89; }
.proto-hint .icon { flex: none; width: 1.1em; height: 1.1em; }
.proto-hint--ro { min-height: max(.64rem, 32px, calc(38px * var(--sp-ui, 1))); font-size: calc(.18 * var(--t)); color: #b9bfbd; }
.proto-start {
  position: relative;
  display: flex;
  align-items: center;
  gap: .26rem;
  width: 100%;
  min-height: max(1.04rem, 32px, calc(54px * var(--sp-ui, 1)));
  padding: .03rem 0 .03rem .26rem;
  overflow: hidden;
  font: inherit;
  color: #0d2a23;
  text-align: left;
  background: linear-gradient(180deg, #4fe0bf, #34c8a6);
  border: 3px solid #121313;
  box-shadow: 0 0 0 1px rgba(79, 224, 191, .5), 0 .06rem .2rem rgba(0, 0, 0, .55);
  transition: filter var(--t-fast);
}
.proto-start:hover:not(:disabled), .proto-start:focus-visible { filter: brightness(1.07); }
.proto-start:focus-visible { outline: 2px solid #eef0ef; outline-offset: 2px; }
.proto-start:disabled { filter: grayscale(.8) brightness(.6); cursor: default; }
.proto-start__mark { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.proto-start__rook { display: inline-flex; align-items: center; gap: 2px; font-size: calc(.36 * var(--t)); font-weight: 300; line-height: 1; }
.proto-start__rook i { font-style: normal; }
.proto-start__rook .icon { width: max(.34rem, 19px); height: max(.34rem, 19px); }
.proto-start__mark small { font-family: var(--font-display); font-size: calc(.08 * var(--t)); font-weight: 800; letter-spacing: .06em; line-height: 1.1; text-align: center; }
.proto-start__label { position: relative; display: inline-flex; align-items: center; gap: .1rem; min-width: 0; font-size: calc(.4 * var(--t)); font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
/* 选择模拟协议's own button (.proto-foot; the room's GoButton shares the rules above and makes its own choice in
   css/screens/room.css — upstream §35.18 review: these rules once reached it too): the label wraps onto a second line (the button
   grows: min-height above) rather than being cut, and stops at .46rem — 大's size — on a screen taller than 520 px, the
   mark's rook at .4rem (upstream §35.18's leftover: English 开始独立模拟 was cut at every desktop size, even at 小 at 1440x900;
   the short-screen block has its own caps). [ASSUMED·자료 없음] the label's caps */
.proto-foot .proto-start__label { flex: 1 1 auto; padding-right: 8%; font-size: min(calc(.4 * var(--t)), .46rem); white-space: normal; line-height: 1.1; }
.proto-foot .proto-start__rook { font-size: min(calc(.36 * var(--t)), .4rem); }
.proto-start__deco {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .28) 0 5px, transparent 5px 11px), linear-gradient(90deg, rgba(13, 42, 35, .2), rgba(13, 42, 35, .6));
}

/* ---- 选择同盟方式: the radar, the 创建同盟 / 加入同盟 cards -------------------------------------------------- */
.ally__bg {
  background:
    radial-gradient(40% 55% at 30% 52%, rgba(46, 210, 160, .12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 1.1rem 1.1rem,
    radial-gradient(120% 90% at 50% 40%, #141616, #070808);
}
.ally__mode { color: var(--mint-400); }
.ally-body { grid-template-columns: minmax(0, 1fr) min(7.4rem, 46vw); }
.ally-stage { position: relative; min-width: 0; min-height: 0; }
.mf-radar { position: absolute; inset: 0 0 .8rem; width: 100%; height: calc(100% - .8rem); }
.mf-radar__grid line { stroke: rgba(78, 216, 175, .08); stroke-width: 1; }
.mf-radar__land path { fill: rgba(150, 170, 165, .1); stroke: rgba(150, 170, 165, .2); stroke-width: 1; }
.mf-radar__ring { fill: none; stroke: rgba(78, 216, 175, .25); stroke-width: 1.5; }
.mf-radar__ring--far { fill: rgba(30, 140, 110, .1); }
.mf-radar__ring--core { stroke: rgba(78, 216, 175, .75); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(78, 216, 175, .6)); }
.mf-radar__sweep { transform-origin: 270px 250px; animation: mf-sweep 4.5s linear infinite; }
.mf-radar__sweep path { fill: rgba(60, 230, 180, .22); }
.mf-radar__sweep line { stroke: #5df0c6; stroke-width: 3; filter: drop-shadow(0 0 6px #5df0c6); }
@keyframes mf-sweep { to { transform: rotate(360deg); } }
.mf-radar__blip { fill: #ffc53d; filter: drop-shadow(0 0 8px #ffc53d); animation: mf-blip 2.2s ease-in-out infinite; }
.mf-radar__blip--b { fill: #5df0c6; filter: drop-shadow(0 0 6px #5df0c6); animation-delay: 1.1s; }
@keyframes mf-blip { 50% { opacity: .2; } }
.mf-radar__cross { stroke: #5df0c6; stroke-width: 3; }
.mf-radar__read rect { fill: rgba(0, 0, 0, .5); stroke: rgba(78, 216, 175, .45); }
.mf-radar__read text { fill: #9fe9d3; font: 700 14px var(--font-num, monospace); }
.mf-radar__frame { fill: none; stroke: rgba(78, 216, 175, .35); stroke-width: 2; }
.ally-guide {
  position: absolute;
  left: .1rem;
  bottom: .1rem;
  display: inline-flex;
  align-items: center;
  gap: .14rem;
  height: max(.64rem, 32px, calc(38px * var(--sp-ui, 1)));
  padding: 0 .3rem 0 .1rem;
  font: inherit;
  font-size: calc(.22 * var(--t));
  font-weight: 800;
  color: #1a1d1c;
  background: linear-gradient(180deg, #e9edeb, #c3cac7);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 .04rem .14rem rgba(0, 0, 0, .5);
}
.ally-guide:hover, .ally-guide:focus-visible { filter: brightness(1.06); }
.ally-guide__icon { display: grid; place-items: center; width: max(.46rem, 28px); height: max(.4rem, 24px); color: #e9edeb; background: #2a2f2d; }
.ally-guide__icon .icon { width: 64%; height: 64%; }
/* centred safely: the auto margins give way when the column is taller than its space (justify-content: center would
   push it past both ends), so a short screen's scroll (below) starts at 创建同盟 */
.ally-side { min-height: 0; display: flex; flex-direction: column; gap: .2rem; padding: .1rem 0 .1rem .3rem; }
.ally-side > :first-child { margin-top: auto; }
.ally-side > :last-child { margin-bottom: auto; }
.ally-card {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: #eef0ef;
  text-align: left;
  background: radial-gradient(70% 90% at 50% 40%, #161a19, #090a0a);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .08rem;
  box-shadow: 0 .06rem .2rem rgba(0, 0, 0, .5);
}
button.ally-card:hover, button.ally-card:focus-visible { border-color: rgba(93, 240, 198, .6); }
.ally-card__art { display: block; padding: .1rem .2rem 0; }
.mf-art { display: block; width: 100%; height: auto; max-height: 1.3rem; }
.mf-art text { font: 700 8px var(--font-display, monospace); letter-spacing: 2px; fill: currentColor; opacity: .7; }
.mf-art--join { color: #ff9a3c; }
.mf-art--join .mf-art__wire { fill: none; stroke: rgba(255, 154, 60, .6); stroke-width: 2; }
.mf-art--join .mf-art__tri { fill: #ff9a3c; }
.mf-art--join .mf-art__target { fill: rgba(255, 154, 60, .15); stroke: #ff9a3c; stroke-width: 2; }
.mf-art--join .mf-art__x { stroke: #ff9a3c; stroke-width: 3; }
.mf-blk path { stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.mf-blk__top { fill: #3a3d3d; } .mf-blk__l { fill: #2a2c2c; } .mf-blk__r { fill: #1f2121; }
.mf-blk.is-lit .mf-blk__top { fill: #f0a35a; } .mf-blk.is-lit .mf-blk__l { fill: #c96b23; } .mf-blk.is-lit .mf-blk__r { fill: #a5541a; }
.mf-blk.is-lit { animation: mf-blk 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * 120ms); }
@keyframes mf-blk { 50% { transform: translateY(-3px); } }
.ally-card__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: .14rem;
  height: max(.74rem, 32px, calc(42px * var(--sp-ui, 1)));
  padding: 0 .2rem;
  font-family: inherit;
  font-size: calc(.3 * var(--t));
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
  text-align: left;
  color: #08221b;
  background: linear-gradient(180deg, #4fe8c0, #2fcf9f);
  border: 0;
}
button.ally-card:disabled { cursor: default; }
button.ally-card:disabled .ally-card__bar { filter: grayscale(.5) brightness(.8); }
/* the test-room box under 创建同盟 (test mode only) */
.ally-test { padding: 0 .2rem; }
.ally-card__bar--join { width: 100%; color: #2a1404; background: linear-gradient(180deg, #ffb24f, #f08a26); }
.ally-card__bar--join:disabled { filter: grayscale(.6) brightness(.75); cursor: default; }
.ally-card__bar--join:hover:not(:disabled), .ally-card__bar--join:focus-visible { filter: brightness(1.06); }
.ally-card__icon { flex: none; display: grid; place-items: center; width: max(.36rem, 22px); height: max(.36rem, 22px); color: currentColor; background: rgba(0, 0, 0, .14); border: 2px solid currentColor; border-radius: 4px; }
.ally-card__icon .icon { width: 74%; height: 74%; }
/* the key field: the project's TextField (.field / .field__box / .field__input) restyled as the event's grey bar, with
   观战 beside it inside the same bar */
.ally-key {
  display: flex;
  align-items: center;
  gap: .1rem;
  height: max(.56rem, 32px, calc(34px * var(--sp-ui, 1)));
  margin: .06rem .2rem .08rem;
  padding: 0 .06rem 0 .12rem;
  background: #262929;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .06rem;
}
.ally-key:focus-within { border-color: #ff9a3c; }
.ally-key .field { flex: 1 1 auto; height: 100%; gap: 0; }
.ally-key .field__box { height: 100%; padding: 0; gap: .1rem; background: none; border: 0; box-shadow: none; }
.ally-key .field__box::after { display: none; }
.ally-key .field__icon { flex: none; width: max(.24rem, 15px); height: max(.24rem, 15px); color: #c9cecc; }
.ally-key .field__box:focus-within .field__icon { color: #ff9a3c; }
.ally-key input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  font: inherit;
  font-size: calc(.22 * var(--t));
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  text-overflow: ellipsis;
  color: #f2f4f3;
  background: none;
  border: 0;
  outline: none;
}
.ally-key input::placeholder { color: #8d9391; font-family: inherit; font-size: calc(.22 * var(--t)); font-weight: 500; letter-spacing: .04em; text-transform: none; }
.ally-key__spec {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .04rem;
  height: 80%;
  padding: 0 .12rem;
  font: inherit;
  font-size: calc(.15 * var(--t));
  color: #eef0ef;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
}
.ally-key__spec:hover:not(:disabled), .ally-key__spec:focus-visible { border-color: rgba(255, 255, 255, .5); }
.ally-key__spec:disabled { opacity: .45; cursor: default; }
.ally-key__spec .icon { width: 1.1em; height: 1.1em; }
.ally-recent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .06rem .1rem; min-height: .3rem; margin: 0 .2rem .1rem; font-size: calc(.14 * var(--t)); text-align: center; }
.code-chip {
  padding: .03rem .12rem .03rem .16rem;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .3);
  color: var(--amber);
  font-size: calc(.17 * var(--t));
  font-weight: 700;
  letter-spacing: .2em;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.code-chip:hover { border-color: var(--amber); background: rgba(246, 163, 41, .08); }

/* ---- 选择模拟协议's cards when they do not fit their column (screens/lobby.js pickCardFit: data-fit), above 520 px tall --
   (upstream §35.18's leftover there: at 大 / 特大, in a small window or a long language the list ran under 开始独立模拟 with 终极模拟
   out of view.) 'brief': the description only in the brief at the left, where the chosen difficulty's already is;
   'names': a line each, and the brief adds the chosen difficulty's effects and rounds. At both, the chosen card's name
   ends in an ellipsis beside the stamp should a long language need it (the brief names it in full); the names stop at
   .36rem (base rule: at 特大 in a 1024 px window English ran past the cards). The short-screen block below has its own
   one-line cards. [ASSUMED·자료 없음] the levels and the sizes */
.proto-brief__more { display: none; }
@media (min-height: 521px) {
  .proto__body[data-fit="brief"] .pcard__desc,
  .proto__body[data-fit="names"] .pcard__desc, .proto__body[data-fit="names"] .pcard__effects, .proto__body[data-fit="names"] .pcard__meta { display: none; }
  .proto__body[data-fit="names"] .pcard { padding-top: .08rem; padding-bottom: .08rem; }
  .proto__body[data-fit="brief"] .pcard__head, .proto__body[data-fit="names"] .pcard__head { min-width: 0; }
  .proto__body[data-fit="brief"] .pcard__glyph, .proto__body[data-fit="names"] .pcard__glyph { flex: none; }
  .proto__body[data-fit="brief"] .pcard__name, .proto__body[data-fit="names"] .pcard__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
  .proto__body[data-fit="names"] .pcard.is-on .pcard__head { padding-right: max(.9rem, calc(46px * var(--sp-ui, 1))); }
  .proto__body[data-fit="names"] .pcard.is-on .pcard__stamp { right: .1rem; width: max(.8rem, 32px, calc(40px * var(--sp-ui, 1))); height: max(.64rem, 32px, calc(34px * var(--sp-ui, 1))); }
  .proto__body[data-fit="names"] .pcard.is-on .pcard__tick { width: max(.4rem, 22px); height: max(.4rem, 22px); }
  .proto__body[data-fit="names"] .pcard__ok { display: none; }
  .proto__body[data-fit="names"] .proto-brief__more { display: flex; flex-direction: column; gap: .04rem; margin-top: .06rem; padding-top: .06rem; border-top: 1px solid rgba(255, 255, 255, .18); }
  .proto-brief__effects { display: flex; flex-direction: column; font-size: calc(.16 * var(--t)); line-height: 1.4; color: #e9eceb; }
  .proto-brief__effects span::before { content: '·'; margin-right: .06rem; }
  .proto-brief__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .04rem .14rem; font-size: calc(.13 * var(--t)); color: #7f8583; }
  .proto-brief__meta b { color: #cfd3d1; }
}

/* ---- narrow windows: the dialogs stack their halves ------------------------------------------------- */
@media (max-aspect-ratio: 1/1) {
  .proto-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, .7fr) minmax(0, 1.3fr); }
  .ally-body { grid-template-rows: minmax(0, .5fr) minmax(0, 1.5fr); }
  .proto__pic { inset: 0 0 .9rem; }
  /* the list keeps the .5rem the chosen card slides into (upstream §35.51: at .1rem its -.44rem ran past the screen's left edge) */
  .proto-foot { padding-left: .1rem; }
  .ally-side { padding-left: 0; }
  /* the cards and the button span the width here: the caps for the landscape column (a 5.6rem column) give way */
  .pcard__name { font-size: calc(.28 * var(--t)); }
  .proto-foot .proto-start__label { font-size: calc(.4 * var(--t)); }
  .proto-foot .proto-start__rook { font-size: calc(.36 * var(--t)); }
}

/* ---- short landscape phones (≤ 520 CSS px tall) ---------------------------------------------------------- */
/* The hub drops its left column and the radar; the dialogs keep the four cards and the button in view without scrolling
   at every 文字大小 (the cards keep only their names, the selected difficulty's description moves to the brief). */
@media (max-height: 520px) {
  /* the entries span the screen's width here: at least 128 px each, so a wrapped English name has a line of its own
     (at 2.1rem, 84 px, 「Simulation」 was 95 px at 小). [ASSUMED·자료 없음] the width */
  .lobby-hub { --hub-entry-w: max(2.1rem, 32px, calc(128px * var(--sp-ui, 1))); }
  .hub-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--hub-entry-w) * 2 + var(--hub-gap)));
    grid-template-areas: "center right" "entries entries";
    gap: .14rem .3rem;
    padding: .1rem .4rem .24rem;
  }
  .hub-center { grid-column: 1; }
  .hub-side, .hub-radar { display: none; }
  .hub-center__mark { min-height: 0; margin-bottom: 0; }
  .hub-center__logo { width: .9rem; }
  .hub-center__season { height: 34vh; }
  .hub-center__mark .emblem__svg { width: .9rem; height: 1rem; }
  .hub-center__title { max-width: none; font-size: calc(.46 * var(--t)); }
  .hub-right { padding-top: .1rem; }
  .lobby-hub .hub-plate { min-height: max(.7rem, 32px, calc(40px * var(--sp-ui, 1))); }
  .lobby-hub .hub-plate--ach, .lobby-hub .hub-plate--join { display: flex; }
  /* (here the hub's height is the limit: a top padding for the icon made the English and Korean cards so tall at 大 /
     特大 that the line above them ran into the title on a 640 / 740 px phone. The decorative line keeps clear of the icon
     beside it instead, .44rem — at 小 it stays on one line there in every language) */
  .hub-entry { min-height: max(1.1rem, 32px, calc(64px * var(--sp-ui, 1))); padding: .1rem .14rem; }
  .hub-entry__icon .icon { width: .42rem; height: .42rem; }

  .proto-top { padding-top: 8px; }
  /* 选择模拟协议 (upstream §35.18's leftover: at 文字大小 中 and above the four cards ran under 开始独立模拟 — 终极模拟 out of sight,
     the label cut — in every language, 844×390 and smaller): a wider column (7.4rem as 选择同盟方式's, 296 px here), the cards one
     line each — the name, 16–20 px, an ellipsis in the chosen card of a long language (the brief names it in full) —, the
     chosen difficulty's description in the brief at the left (11–13 px, the event's own place for it, as on a desktop),
     the header and the label capped (below) and the label wrapping onto a second line rather than being cut. The list
     still scrolls should a pack's names not fit. [ASSUMED·자료 없음] every cap */
  /* the column and the brief keep their unscaled widths under 界面大小 (÷ --sp-ui): the names' 16 px floor, the brief's
     11 px floor and the px paddings and stamp space do not shrink, so at 75 % a 222 px column cut 'Perilous Simulation'
     in English and the brief broke a Korean word (DESIGN upstream §35.47) */
  .proto-body { grid-template-columns: minmax(0, 1fr) min(calc(7.4rem / var(--sp-ui, 1)), 50vw); gap: 10px; padding-bottom: 10px; }
  .ally-body { grid-template-columns: minmax(0, 1fr) min(calc(7.4rem / var(--sp-ui, 1)), 54vw); }
  .proto__pic { inset: 0 0 1.6rem; }
  .proto-brief { max-width: min(calc(6.4rem / var(--sp-ui, 1)), 100%); padding: 6px 10px 7px; }
  .proto-brief p { margin-top: 2px; font-size: clamp(11px, calc(.26 * var(--t)), 13px); line-height: 1.35; }
  .proto-list { gap: 6px; padding-left: 22px; justify-content: flex-start; }
  .pcard { padding: 6px 10px; gap: 2px; border-radius: 10px; }
  .pcard.is-on { transform: translateX(-16px); }
  .pcard__desc, .pcard__effects, .pcard__meta { display: none; }
  .grow { grid-template-columns: auto minmax(0, 1fr) auto 1em; padding: 2px 10px; min-height: 30px; }
  .grow__code { display: none; }
  .grow.is-on { transform: translateX(-12px); }
  .pcard__head { min-width: 0; }
  .pcard__glyph { flex: none; }
  .pcard__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
  .pcard.is-on .pcard__head { padding-right: 46px; }
  .pcard.is-on .pcard__stamp { right: 6px; width: 40px; height: 34px; }
  .pcard.is-on .pcard__tick { width: 22px; height: 22px; }
  .pcard__ok { display: none; }
  .proto-foot { padding-left: 22px; }
  .proto-hint { display: none; }
  .proto-start { height: auto; min-height: 44px; gap: 10px; padding: 3px 0 3px 10px; }
  .proto-start__label { letter-spacing: .02em; }
  /* a column still taller than its space (a long language, the recent keys, the test-room box) scrolls rather than being
     cut off; the 4 px pad on the three other sides keeps the focus ring and the shadows inside the clip */
  .ally-side { gap: 8px; margin: -4px -4px -4px 0; padding: 4px 4px 4px 10px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .ally-card__art { display: none; }
  .ally-key { margin: 6px 10px; }
  .ally-recent { margin: 0 10px 6px; }
  .mf-radar { inset: 0 0 .6rem; height: calc(100% - .6rem); }
  /* 1rem is ~40 px here: the text gets its own sizes (still following 文字大小) */
  .hub-center__en { font-size: calc(.24 * var(--t)); }
  /* the plates' labels, the entries' names and their decorative English capped so they stay whole (upstream §35.18 review: at 大 /
     特大 the plates ended in an ellipsis and the entries cut both lines); each cap is its size at 中 and grows a pixel a
     step above it (--t-step, theme.css), the entries 7 px wider a step for the name's longest word (「Simulation」 ~6.2em).
     [ASSUMED·자료 없음] the caps */
  .lobby-hub .hub-plate { font-size: min(calc(.3 * var(--t)), calc(18px + var(--t-step))); }
  .hub-plate__tag { display: none; }
  /* the badges at the size the line above the entries had here (5 px at .13 · --t was unreadable) */
  .hub-entry__stats { left: .14rem; top: .1rem; right: calc(.14rem + .42rem + 4px); gap: 3px; }
  .hub-entry__wait { padding: 0 4px; font-size: calc(.22 * var(--t)); }
  .hub-entry { width: calc(var(--hub-entry-w) + 7 * max(0px, var(--t-step))); }
  .hub-entry__en { padding-right: .44rem; font-size: min(calc(.16 * var(--t)), calc(10px + var(--t-step))); letter-spacing: .12em; }
  .hub-entry__name { font-size: min(calc(.42 * var(--t)), calc(18px + var(--t-step))); }
  .proto-title .modal__title { font-size: min(calc(.46 * var(--t)), 24px); white-space: nowrap; }
  .proto-title__mode, .proto-title__mode i { font-size: min(calc(.24 * var(--t)), 16px); }
  /* the mode line stays one line at a big 文字大小 in a long language (en 特大 broke 「Team Simulation」 in two, the
     header growing by a line the column needs): the decorative ALLIANCE / SOLO SIMULATION stops at 15 px [ASSUMED·자료 없음] and
     drops under as a whole if it still does not fit */
  .proto-title__mode { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; white-space: nowrap; }
  .proto-title__mode i { font-size: min(calc(.24 * var(--t)), 15px); }
  .proto-brief__code { font-size: min(calc(.22 * var(--t)), 14px); }
  .proto-brief__name { font-size: min(calc(.34 * var(--t)), 20px); }
  .pcard__name { font-size: clamp(16px, calc(.4 * var(--t)), 20px); }
  .proto-foot .proto-start__label { font-size: min(calc(.5 * var(--t)), 20px); }
  .proto-foot .proto-start__rook { font-size: min(calc(.36 * var(--t)), 16px); }
  .proto-foot .proto-start__mark small { font-size: min(calc(.08 * var(--t)), 6px); }
  /* the bars' names 16–26 px here ([ASSUMED·자료 없음] the cap: en 「Create Alliance」 on its row at 特大, the column on the screen) */
  .ally-card__bar { font-size: clamp(16px, calc(.3 * var(--t)), 26px); }
  .ally-key input { font-size: calc(.32 * var(--t)); }
  /* the key field's placeholder fits beside 观战 (upstream §35.18's leftover: clipped at 特大 in English and Japanese): the short
     text (screens/lobby.js AllianceSelect `short`), 11–13 px, and 观战 at most 14 px; an ellipsis should a pack's
     name still be longer. [ASSUMED·자료 없음] the caps */
  .ally-key input::placeholder { font-size: clamp(11px, calc(.26 * var(--t)), 13px); }
  /* the empty field takes the placeholder's size, so the placeholder sits in the middle like the key will (upstream §35.51: on the
     28 px key's baseline it sat 6–9 px below the key icon and 观战 at 特大) */
  .ally-key input:placeholder-shown { font-size: clamp(11px, calc(.26 * var(--t)), 13px); }
  .ally-key__spec { font-size: min(calc(.26 * var(--t)), 14px); }
  .ally-recent { font-size: min(calc(.24 * var(--t)), 14px); line-height: 1.35; } /* [ASSUMED·자료 없음] the cap, like the difficulty line's */
  .code-chip { font-size: calc(.28 * var(--t)); }
  .ally-guide { font-size: calc(.3 * var(--t)); }
}
/* ---- 转场 (PR #643, the event's screen changes): a screen comes up from black, its panels slide in one after another ---- */
.lobby-hub, .modal__box.proto, .modal__box.ally { --tr-ease: cubic-bezier(.16, .84, .3, 1); }
@keyframes tr-fade { from { opacity: 0; } }
@keyframes tr-veil { from { background-color: transparent; } }
@keyframes tr-right { from { opacity: 0; transform: translateX(.36rem); } }
@keyframes tr-left { from { opacity: 0; transform: translateX(-.36rem); } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(.22rem); } }
@keyframes tr-zoom { from { opacity: 0; transform: scale(1.04); } }
@keyframes tr-draw { to { stroke-dashoffset: 0; } }
@keyframes tr-diamond { 0% { opacity: 0; transform: translateX(-50%) rotate(45deg) scale(.5); } 30%, 72% { opacity: 1; transform: translateX(-50%) rotate(45deg) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) rotate(45deg) scale(1.1); } }
/* the hub */
.lobby-hub .hub-bg { animation: tr-fade 560ms ease-out backwards; }
.lobby-hub > .topbar { animation: tr-fade 320ms ease-out 120ms backwards; } /* opacity only: its dialogs are fixed */
.lobby-hub .hub-center { animation: tr-zoom 600ms var(--tr-ease) 140ms backwards; }
.lobby-hub .hub-side { animation: tr-left 480ms var(--tr-ease) 220ms backwards; }
.lobby-hub .hub-right { animation: tr-right 480ms var(--tr-ease) 260ms backwards; }
.hub-entries .hub-entry-wrap { animation: tr-rise 440ms var(--tr-ease) 300ms backwards; }
.hub-entries .hub-entry-wrap:nth-child(2) { animation-delay: 360ms; }
.hub-entries .hub-entry-wrap:nth-child(3) { animation-delay: 420ms; }
.hub-entries .hub-entry-wrap:nth-child(4) { animation-delay: 480ms; }
/* 选择模拟协议 / 选择同盟方式: from black, then the title, the stage and the cards */
.modal__box.proto, .modal__box.ally { animation: tr-veil 150ms linear backwards; }
.proto__bg { animation: tr-fade 340ms ease-out 140ms backwards; }
.proto-top { animation: tr-fade 260ms ease-out 170ms backwards; }
.proto-title { animation: tr-right 400ms var(--tr-ease) 200ms backwards; }
.proto-stage, .ally-stage { animation: tr-zoom 480ms var(--tr-ease) 190ms backwards; }
.proto-list .pcard { animation: tr-right 400ms var(--tr-ease) backwards; animation-delay: calc(240ms + var(--n, 0) * 60ms); }
.proto-list .pcard:nth-child(2) { --n: 1; }
.proto-list .pcard:nth-child(3) { --n: 2; }
.proto-list .pcard:nth-child(4) { --n: 3; }
.proto-list .pcard:nth-child(5) { --n: 4; }
.proto-foot { animation: tr-rise 400ms var(--tr-ease) 440ms backwards; }
.ally-card--join { animation: tr-right 420ms var(--tr-ease) 380ms backwards; }
.ally-guide { animation: tr-rise 380ms var(--tr-ease) 450ms backwards; }
/* the diamond at the bottom while it comes up */
.proto__body::after, .ally__body::after { content: ''; position: absolute; left: 50%; bottom: .5rem; z-index: 9; width: .3rem; height: .3rem; pointer-events: none; opacity: 0;
  border: 2px solid rgba(223, 230, 226, .55); box-shadow: inset 0 0 0 3px #0a0b0b, inset 0 0 0 5px rgba(223, 230, 226, .3); animation: tr-diamond 720ms ease-out 60ms both; }
/* the stamp's ring is drawn each time a difficulty is chosen */
.pcard.is-on .pcard__ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tr-draw 380ms ease-out 90ms forwards; }
.pcard.is-on .pcard__ring path + path { animation-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  .hub-bg__ship, .hub-center, .hub-entry-wrap, .hub-radar__sweep, .proto__pic, .modal__box.proto, .modal__box.ally, .pcard.is-on .pcard__stamp,
  .mf-radar__sweep, .mf-radar__blip, .mf-blk.is-lit, .hub-bg__own, .lobby-hub .hub-bg, .lobby-hub > .topbar, .lobby-hub .hub-center, .lobby-hub .hub-side,
  .lobby-hub .hub-right, .hub-entries .hub-entry-wrap, .proto__bg, .proto-top, .proto-title, .proto-stage, .ally-stage, .proto-list .pcard, .proto-foot,
  .ally-card--join, .ally-guide, .pcard.is-on .pcard__ring path, .ps, .ps-fig, .ps-spike, .ps-call, .ps-beacon, .ps-scan { animation: none; }
  .ps-cable__pulse { display: none; }
  .pcard.is-on .pcard__ring path { stroke-dashoffset: 0; }
  .proto__body::after, .ally__body::after { display: none; }
}

/* official versions (DESIGN upstream §35.23): the version under the title, the cards' wait while a version's data loads */
.hub-center__ver { position: relative; margin-top: .04rem; font-size: calc(.22 * var(--t)); font-weight: 700; letter-spacing: .08em; color: #9fd3ff; text-shadow: 0 1px .08rem rgba(0, 0, 0, .85); overflow-wrap: anywhere; }
.proto-list__wait { display: flex; align-items: center; gap: .08rem; margin: 0; color: var(--text-lo); font-size: calc(.15 * var(--t)); }
.proto-list__wait.is-failed { flex-wrap: wrap; color: var(--amber); }
.proto-list__wait.is-failed .icon { flex: none; width: 1.1em; height: 1.1em; }

/* ==== this fork's pieces (kept from the earlier lobby) ==== */
/* ---- join panel ------------------------------------------------------------------------------------ */
.join-panel .panel__body { display: flex; flex-direction: column; gap: .14rem; padding: .22rem .26rem .18rem; }
.join-row { display: flex; gap: .16rem; align-items: stretch; }
.join-row .field { flex: 1; }
.join-row .btn { height: .64rem; }
.join-foot { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; min-height: .32rem; font-size: .14rem; }
.code-chip {
  padding: .03rem .12rem .03rem .16rem;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .3);
  color: var(--amber);
  font-size: .17rem;
  font-weight: 700;
  letter-spacing: .2em;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.code-chip:hover { border-color: var(--amber); background: rgba(246, 163, 41, .08); }

/* the 更新记录 window (ui/patchNotes.js PatchNotesModal): one <details> per release, the newest open */
.pnotes .modal__body { padding-right: .22rem; }
.pnotes__ver { border-left: 2px solid var(--line-3); padding: .02rem 0 .02rem .16rem; margin-bottom: .16rem; }
.pnotes__ver[open] { border-left-color: var(--mint-500); }
.pnotes__head { display: flex; align-items: center; gap: .1rem; cursor: pointer; list-style: none; font-size: .2rem; font-weight: 700; }
.pnotes__head::-webkit-details-marker { display: none; }
.pnotes__head::after { content: '›'; color: var(--mint-400); font-size: .2rem; transition: transform var(--t-fast) var(--ease-out); }
.pnotes__ver[open] > .pnotes__head::after { transform: rotate(90deg); }
.pnotes__v { color: var(--text-md); }
.pnotes__ver[open] .pnotes__v { color: var(--mint-400); }
.pnotes__date { color: var(--text-dim); font-size: .14rem; font-weight: 400; }
.pnotes__new { padding: .01rem .05rem; background: var(--amber); color: #1d1203; font-family: var(--font-num); font-size: .11rem; letter-spacing: .08em; }
.pnotes__p { margin: .08rem 0; font-size: .16rem; line-height: 1.65; color: var(--text-md); }
.pnotes__group { margin: .14rem 0 .04rem; font-size: .15rem; color: var(--amber); letter-spacing: .04em; }
.pnotes__list { margin: 0; padding-left: .22rem; font-size: .155rem; line-height: 1.65; color: var(--text-lo); }
.pnotes__list li { margin: .03rem 0; }
.pnotes b { color: var(--text-hi); }
.pnotes code { font-family: var(--font-num); letter-spacing: -.06em; font-size: .9em; color: var(--text-md); }

/* ---- 规则 (규칙 모드, js/ui/ruleset.js): the 经典 / 休闲 switch at the right end of the difficulty title line (its own row
   overflowed the lobby at every desktop size); in 同盟匹配 each preset shows its waiting Doctors and each card those of its
   queue ------------------------------------------------------------------------------------------------------ */
.section-label--rules { align-items: center; flex-wrap: wrap; }
.lobby-rules { display: flex; align-items: center; gap: .12rem; margin-left: auto; letter-spacing: normal; }
.lobby-rules__k { font-size: .15rem; font-weight: 700; color: var(--text-lo); }
.diff-card__wait { padding: 0 .08rem; border: 1px solid var(--line-2); font-size: .13rem; line-height: 1.6; color: var(--text-dim); white-space: nowrap; }
.diff-card__wait.is-on { border-color: var(--mint-700, var(--line-2)); color: var(--mint-400); }
/* ---- create ------------------------------------------------------------------------------------------ */
.create-box { margin-top: .3rem; display: flex; flex-direction: column; gap: .12rem; }
.create-box .btn--xl { height: .92rem; font-size: .32rem; letter-spacing: .3em; }
.create-box__hint { display: flex; align-items: center; justify-content: center; min-height: .3rem; font-size: .14rem; color: var(--text-lo); }

/* 랜덤 매칭 (ui/matchQueue.js): the lobby button and the queue / confirmation dialog */
.queue-dialog { width: min(6.4rem, 92vw); }
.queue-dialog__body { display: flex; align-items: center; gap: .3rem; }
.queue-dialog__clock { font-family: var(--font-num); letter-spacing: -.06em; font-size: .56rem; color: var(--text-hi); min-width: 1.6rem; }
.queue-dialog__lines { display: flex; flex-direction: column; gap: .06rem; font-size: .18rem; }
.queue-dialog__mode { color: var(--text-hi); font-weight: 700; }
/* 以公开联合等待's line after a minute (ui/matchQueue.js): amber, the action it offers */
.queue-dialog__offer { color: var(--amber); }
/* a custom room's settings in the confirmation (ui/matchQueue.js FoundCustom) */
.queue-dialog__custom { margin-top: .06rem; padding: .08rem .12rem; border: 1px solid rgba(160, 130, 255, .4); background: rgba(160, 130, 255, .08); font-size: .15rem; }
.queue-dialog__custom b { color: #c9b8ff; }
.queue-dialog__custom ul { margin: .04rem 0 0; padding-left: .2rem; max-height: 1.6rem; overflow-y: auto; color: var(--text-md); }
.queue-dialog__fallback { margin-top: .22rem; padding-top: .16rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .1rem; font-size: .16rem; }
.queue-options { display: flex; flex-direction: column; gap: .08rem; }
.queue-option { text-align: left; padding: .12rem .18rem; font: inherit; font-size: .17rem; color: var(--text-md); background: var(--bg-glass);
  border: 1px solid var(--line); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.queue-option:hover:not(:disabled) { color: var(--text-hi); border-color: var(--text-lo); }
.queue-option.is-on { color: var(--text-hi); border-color: var(--mint-400); box-shadow: inset .04rem 0 0 var(--mint-400); }
.queue-option:disabled { opacity: .6; cursor: default; }
.queue-dialog__wait { display: inline-flex; align-items: center; gap: .1rem; color: var(--text-lo); font-size: .16rem; }

/* the 卫戍协议 season chip of the top bar and its menu while the server offers several (ui/season.js SeasonChip) */
.season-chip-wrap { position: relative; display: inline-flex; }
.season-chip { display: inline-flex; align-items: center; gap: .06rem; height: max(.34rem, 26px); padding: 0 .1rem 0 .08rem;
  border: 1px solid var(--mint-a35); background: var(--mint-a10); color: var(--text-hi); font-size: max(.14rem, 11px); cursor: pointer; white-space: nowrap; }
.season-chip.is-open, .season-chip:hover { border-color: var(--mint-500); }
.season-chip__k { color: var(--text-lo); font-size: .9em; }
.season-chip b { color: var(--mint-400); }
.season-chip__caret { color: var(--mint-400); font-size: .8em; }
.season-menu { position: absolute; z-index: 60; left: 0; top: calc(100% + 6px); min-width: max(3.2rem, 240px); max-width: calc(100vw - 32px); padding: .06rem;
  background: rgba(10, 14, 13, .97); border: 1px solid var(--line-2); box-shadow: 0 .08rem .3rem rgba(0, 0, 0, .6); }
.topbar__right .season-menu { left: auto; right: 0; } /* the chip is at the screen's right end: the menu opens leftwards */
.season-menu__row { display: flex; width: 100%; align-items: center; gap: .1rem; padding: .08rem .1rem; border: 0; background: transparent;
  color: var(--text-md); font-size: max(.14rem, 11px); text-align: left; cursor: pointer; }
.season-menu__row + .season-menu__row { border-top: 1px solid var(--line); }
.season-menu__row:hover { background: var(--mint-a10); }
.season-menu__row.is-on { background: var(--mint-a10); color: var(--mint-400); font-weight: 700; }
.season-menu__name { flex: 1; white-space: nowrap; }
.season-menu__foot { padding: .06rem .1rem .02rem; font-size: max(.11rem, 9px); color: var(--text-lo); }

/* ---- this fork's pieces on the hub and in the dialogs (maintainer decisions 2026-11-07, the approved mockups) ---------- */
/* 成就统计's strip: the Doctor's name and number at its right (the earlier lobby's 博士 chip) */
.hub-ach__who { margin-left: auto; display: flex; align-items: baseline; gap: .08rem; min-width: 0; }
.hub-ach__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(.15 * var(--t)); font-weight: 600; color: var(--text-md); }
.hub-ach__who .micro { color: var(--mint-400); }
/* 加入同盟 (the left column): the key, 加入同盟 and 观战 in a row, the recent keys under it */
.hub-join { padding: .1rem .14rem .12rem; background: rgba(28, 20, 8, .74); border: 1px solid rgba(246, 163, 41, .28); }
.hub-join__head { display: flex; align-items: center; gap: .08rem; margin-bottom: .08rem; font-size: calc(.17 * var(--t)); font-weight: 700; color: var(--amber); }
.hub-join__head .icon { width: .18rem; height: .18rem; }
.hub-join__row { display: flex; align-items: stretch; gap: .08rem; }
.hub-join__row .field { flex: 1 1 auto; min-width: 0; }
.hub-join__row .btn { flex: none; }
.hub-join .join-foot { margin-top: .08rem; }
/* the recent keys keep one row (maintainer decision 2026-11-08: four keys wrapped and the box grew): a key that does not
   fit on it is hidden whole, the row clipped at one key's height */
.hub-join .join-foot { --chip-h: calc(.3 * var(--t)); flex-wrap: wrap; align-content: flex-start; height: var(--chip-h); min-height: 0; overflow: hidden; row-gap: .2rem; }
.hub-join .join-foot > * { height: var(--chip-h); }
.hub-join .join-foot > .t-lo { display: inline-flex; align-items: center; }
.hub-join .code-chip { display: inline-grid; place-items: center; padding-top: 0; padding-bottom: 0; }
/* 同盟匹配's line above its entry: the season's waiting Doctors */
.hub-entry__wait { padding: .01rem .07rem; font-size: calc(.13 * var(--t)); font-weight: 700; line-height: 1.5; white-space: nowrap; color: #04140f; background: var(--mint-500); }
.hub-entry__wait.is-zero { color: rgba(223, 230, 226, .55); background: transparent; box-shadow: inset 0 0 0 1px rgba(223, 230, 226, .28); }
/* the rule rows at the top of 选择模拟协议's right column (快速匹配 / 规则 / 人数); in 同盟匹配 a grid whose labels are spread
   to the widest one's width (one span a letter) and whose boxes share one width */
/* the rows' box is the cards' column: the list's .5rem / .06rem side pads (maintainer decision 2026-11-08), its tracks
   (.rtrack, room.css) sharing what the labels leave */
.proto-rules { display: flex; flex-wrap: wrap; align-items: center; gap: .06rem .14rem; margin: 0 .06rem .02rem .5rem; padding: .02rem 0 .04rem; }
.proto-rules__row { flex: 1 1 auto; display: flex; align-items: center; gap: .1rem; }
.proto-rules__k { font-size: calc(.13 * var(--t)); color: var(--text-lo); letter-spacing: .04em; white-space: nowrap; }
.proto-rules__cell { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .04rem .1rem; min-width: 0; }
.proto-rules__cell > .tt-anchor { display: block; flex: 1 1 auto; min-width: 0; }
.proto-rules .rtrack { display: flex; width: 100%; }
.proto-rules.is-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: .06rem .12rem; }
/* compact rows: the four cards keep their room below (选择模拟协议's fit levels) */
.proto-rules .rpick__opt { height: .3rem; min-height: 0; font-size: calc(.13 * var(--t)); }
.proto-rules .rpick__gear { width: .34rem; } /* as tall as the options beside it (a phone's are taller) */
.proto-rules.is-grid .proto-rules__row { display: contents; }
.proto-rules.is-grid .proto-rules__k { justify-self: stretch; display: flex; justify-content: space-between; }
.proto-rules__note { flex-basis: 100%; font-size: calc(.12 * var(--t)); color: #9fd8c8; }
.proto-rules .rpick__opt:disabled { opacity: .35; }
/* a picked 自定义's line at the end of the brief (CustomBrief) */
.proto-brief__rules { display: block; margin-top: .04rem; font-size: calc(.13 * var(--t)); color: var(--custom-hi); }
.proto-brief__rules .lobby-rules__sum { max-width: none; font-size: inherit; color: #f5c26b; }
.proto-brief__rules .lobby-rules__sum b { color: inherit; }
/* 快速匹配 (QuickRange): the official matching range switch (auto_chess_mode_choice_pop_view's btn_range_switch: range_bg,
   its range_selectbg pill over three quarters of it, wide_icon / accurate_icon), centred over the start button, the hint
   centred over it as the official tips line */
.qrange { position: relative; flex: none; align-self: center; width: 3.3rem; height: .5rem; padding: 0; font: inherit; cursor: pointer;
  border: 1px solid rgba(228, 236, 234, .24); border-radius: 999px; background: rgba(13, 13, 13, .86); }
.qrange__pill { position: absolute; top: .05rem; bottom: .05rem; left: calc(26% - .05rem); width: 74%; border-radius: 999px;
  background: var(--rtrack-pill); box-shadow: 0 .04rem .07rem rgba(0, 0, 0, .6); transition: left var(--t-med); }
.qrange.is-on .qrange__pill { left: .05rem; }
.qrange__o { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: .08rem; width: 26%;
  color: #aaa; font-size: calc(.16 * var(--t)); font-weight: 800; white-space: nowrap; transition: color var(--t-fast); }
.qrange__o--wide { left: .05rem; }
.qrange__o--exact { right: .05rem; }
.qrange__o.is-sel { width: 74%; color: #242424; }
.qrange:hover .qrange__o:not(.is-sel) { color: #e9eceb; }
.qrange__icon { flex: none; width: .24rem; height: .24rem; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.proto-foot--range .proto-hint { justify-content: center; text-align: center; }
/* 同盟匹配's target (the public room mockup's S1, maintainer decision 2026-11-20): 开始匹配's second line, small and dark on
   the mint button, the target's names in bold */
.proto-foot .proto-start__label.has-sub { gap: 0; }
.proto-start__lines { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.proto-start__sub { display: block; font-size: max(calc(.15 * var(--t)), 11px); font-weight: 700; letter-spacing: .02em; line-height: 1.25; color: #10392f; opacity: .9; white-space: nowrap; }
.proto-start__sub b { font-weight: 900; color: #0b231d; }
/* queued alone (mockup W1, ui/matchQueue.js QueueWait): the picks locked and dimmed; the target row in the range switch's
   place — the list row's read-only capsule (ModeCapsule, 所有赛季 in the plain text colour) —; the start button's box,
   dark, with the clock, the search and 取消匹配 (after a minute 以公开联合等待, 取消匹配 as its icon) */
.proto-side.is-locked .proto-rules, .proto-side.is-locked .proto-list { opacity: .42; filter: saturate(.6); pointer-events: none; }
.proto-target { display: flex; align-items: center; justify-content: center; gap: .1rem; min-height: max(.5rem, 26px); }
.proto-target__k { color: #8f9493; white-space: nowrap; }
.proto-target .rs-mode { --o: .0085rem; margin-right: 0; max-width: none; cursor: default; }
.rs-mode__season.is-all { color: var(--text-hi); }
.proto-wait { position: relative; display: flex; align-items: center; gap: .2rem; width: 100%; min-height: max(1.04rem, 32px, calc(54px * var(--sp-ui, 1)));
  padding: .06rem .12rem .06rem .22rem; overflow: hidden; color: #d8dbda; background: linear-gradient(180deg, rgba(20, 44, 38, .96), rgba(13, 28, 24, .96));
  border: 3px solid #121313; box-shadow: 0 0 0 1px rgba(79, 224, 191, .5), 0 .06rem .2rem rgba(0, 0, 0, .55); }
.proto-wait__deco { position: absolute; right: 0; top: 0; bottom: 0; width: 26%; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(79, 224, 191, .09) 0 5px, transparent 5px 11px); }
.proto-wait__clock { flex: none; font-family: var(--font-num); letter-spacing: -.06em; font-size: max(.5rem, 22px); color: #fff; line-height: 1.3; }
.proto-wait__lines { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .02rem; font-size: max(calc(.17 * var(--t)), 12px); }
.proto-wait__lines b { color: var(--mint-400); white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; }
.proto-wait__lines span { color: #9ea3a2; white-space: nowrap; font-size: .88em; }
.proto-wait .btn { position: relative; flex: none; }
.proto-wait.has-action .btn--primary { flex: 1 1 auto; min-width: 0; }
.proto-wait__offer { color: var(--amber); }
/* a difficulty card's queue (同盟匹配) */
.pcard__wait { margin-left: auto; align-self: center; padding: .02rem .08rem; border-radius: 3px; font-size: calc(.12 * var(--t)); font-weight: 700; white-space: nowrap;
  color: var(--mint-400); background: rgba(94, 236, 204, .16); }
.pcard.is-on .pcard__wait { color: #fff; background: rgba(0, 0, 0, .35); }
@media (max-height: 520px) {
  .proto-rules { margin: 0 .06rem 4px 22px; padding: 2px 0 4px; gap: 4px 8px; }
  .proto-rules.is-grid { gap: 4px 8px; }
  .proto-rules__k, .proto-rules__note { font-size: 10px; }
  .proto-rules .rtrack { padding: 3px; }
  .proto-rules .rpick__opt { min-height: 24px; padding: 0 7px; font-size: 11px; }
  .proto-rules .rpick__gear { width: 24px; }
  .proto-rules .rpick__gear .icon { width: 14px; height: 14px; }
  .proto-brief__rules { font-size: 11px; }
  .qrange { width: 210px; height: 34px; }
  .qrange__pill { top: 3px; bottom: 3px; left: calc(26% - 3px); }
  .qrange.is-on .qrange__pill { left: 3px; }
  .qrange__o { gap: 5px; font-size: 12px; }
  .qrange__o--wide { left: 3px; }
  .qrange__o--exact { right: 3px; }
  .qrange__icon { width: 15px; height: 15px; }
  .pcard__wait { padding: 1px 5px; font-size: 10px; }
  .proto-target { min-height: 30px; }
  .proto-target .rs-mode { --o: .013rem; }
  .proto-wait { gap: 8px; padding: 2px 6px 2px 10px; }
  .proto-wait__lines { font-size: 11px; }
}

/* ---- the left column on a landscape phone (maintainer decision 2026-11-08): three cards — the 成就统计 strip, 加入同盟 and
   作战提示 | 更新 as tabs —, the right keeping S.W.E.E.P.报告 and 干员调配 only. Where the phone is too narrow for the column
   beside the entries (under 760 px wide) the column gives way to the two plates as before. The key's row and the recent
   keys are touch sized (32 px and more). [ASSUMED·자료 없음] the widths and the 760 px */
@media (max-height: 520px) and (min-width: 760px) {
  .hub-stage {
    grid-template-columns: min(236px, 30vw) minmax(0, 1fr) minmax(0, calc(var(--hub-entry-w) * 2 + var(--hub-gap)));
    grid-template-areas: "side center right" "side entries entries";
    padding-left: 16px;
  }
  .hub-center { grid-column: 2; }
  .hub-side { display: flex; gap: 6px; min-height: 0; padding-top: 4px; overflow: hidden; }
  .lobby-hub .hub-plate--ach, .lobby-hub .hub-plate--join { display: none; }
  .hub-ach__scene { display: none; }
  .hub-ach__label { min-height: 30px; padding: 2px 10px; font-size: 12px; }
  .hub-join { padding: 6px 8px; }
  .hub-join__head { margin-bottom: 4px; font-size: 11px; }
  .hub-join__head .micro { font-size: 7px; }
  .hub-join__row { gap: 4px; }
  .hub-join__row > *, .hub-join__row .btn, .hub-join__row .field__box { height: 34px; min-height: 34px; }
  .hub-join__row .btn { padding: 0 8px; font-size: 11px; }
  .hub-join__row input { font-size: 12px; }
  .hub-join .field--code .field__input::placeholder { font-size: 13px; } /* the code field's .18rem was ~7 px here */
  .hub-join .join-foot { --chip-h: 32px; display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 4px; height: auto; }
  .hub-join .join-foot > .t-lo { display: none; }
  /* each recent key as wide as itself (one key no longer fills the row), touch sized */
  .hub-join .code-chip { flex: 0 1 auto; min-width: 48px; padding: 0 8px; font-size: 12px; letter-spacing: .1em; }
  .tips { padding: 6px 9px; }
  .tips__head { min-height: 0; gap: 4px; font-size: 12px; }
  .tips__head > .icon { width: 14px; height: 14px; color: var(--mint-500); }
  .tips__nav { width: 26px; height: 26px; }
  .tips__nav .icon { width: 12px; height: 12px; }
  .tips__text { margin-top: 4px; font-size: 10.5px; line-height: 1.45; }
  .tips__verline { margin-top: 4px; gap: 5px; }
  .tips__ver { font-size: 12px; }
  .tips__date { font-size: 9px; }
  .tips__more { font-size: 10px; }
  .tips__lines { margin-top: 2px; gap: 0; }
  .tips__lines li { padding-left: 9px; font-size: 10.5px; line-height: 1.5; }
  .tips__lines li::before { left: 1px; width: 3px; height: 3px; }
}

/* ---- 同盟匹配's public room list (ui/publicRooms.js; maintainer decisions 2026-11-20, mockup A 목록형 + filter F2) -------
   Over 选择模拟协议's left half, its picture and brief blurred under it. A row: the room's mode capsule (the waiting room's
   .rs-mode, room.css, in `--po` units of the event's 1280×720 canvas), host and tags, seats as squares as tall as the
   capsule, state, 参加 / 观战. One grid, the rows subgrids, so the capsule column is the widest capsule's. The custom
   room's panel is placed against the frame (.pubrooms), outside the scrolling list (which would cut it): nothing between
   them is positioned. */
.proto-stage.has-rooms > .proto__pic, .proto-stage.has-rooms > .proto-brief { filter: blur(10px) brightness(.38) saturate(.7); pointer-events: none; }
.proto-stage.has-rooms > .proto-brief { opacity: .5; }
.pubrooms { --u: .0115rem; --po: .0085rem; position: absolute; inset: calc(var(--u) * 8) 0 calc(var(--u) * 10) 0; z-index: 3; display: flex; flex-direction: column;
  min-height: 0; color: #d8dbda; font-size: calc(var(--u) * 17); }
.pubrooms__head { flex: none; display: flex; align-items: center; gap: calc(var(--u) * 18); padding: 0 calc(var(--u) * 6) calc(var(--u) * 10);
  border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pubrooms__title { display: inline-flex; align-items: baseline; gap: calc(var(--u) * 8); white-space: nowrap; }
.pubrooms__title .icon { align-self: center; width: 1.2em; height: 1.2em; color: var(--d-color); }
.pubrooms__title b { font-size: calc(var(--u) * 26); font-weight: 900; color: #fff; letter-spacing: .02em; }
.pubrooms__title i { font-style: normal; font-family: var(--font-display); font-size: calc(var(--u) * 12); letter-spacing: .2em; color: var(--d-color); }
.pubrooms__count { white-space: nowrap; color: #9ea3a2; }
.pubrooms__filter { margin-left: auto; display: inline-flex; align-items: center; gap: calc(var(--u) * 10); }
.pubrooms__season .season-chip { height: auto; min-height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 12); font-size: calc(var(--u) * 15); border-radius: 999px; }
.pubrooms__smenu { left: auto; right: 0; min-width: calc(var(--u) * 340); font-size: calc(var(--u) * 15); }
.pubrooms__smenu .season-menu__row { font-size: inherit; }
.pubrooms__smenu .season-menu__foot { font-size: calc(var(--u) * 12.5); line-height: 1.4; white-space: normal; }
.pubrooms__cur { margin-left: .5em; padding: 0 .4em; border-radius: 3px; font-size: .78em; font-weight: 600; color: var(--gold); background: rgba(255, 200, 80, .12); }
.pubrooms__sn { color: #9ea3a2; font-size: .9em; white-space: nowrap; }
.dpick__opt.pubrooms__tog { --d-color: var(--mint-400); height: auto; min-height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 8); border: 1px solid var(--line-2);
  border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: calc(var(--u) * 15); letter-spacing: .02em; white-space: nowrap; }
.dpick__opt.pubrooms__tog:last-child { border-right: 1px solid var(--line-2); }
.dpick__opt.pubrooms__tog .icon { opacity: .25; }
.dpick__opt.pubrooms__tog .icon.is-on { opacity: 1; }
.dpick__opt.pubrooms__tog.is-active { color: #e6e9e8; border-color: rgba(89, 244, 202, .45); }
.dpick__opt.pubrooms__tog:disabled { opacity: .45; }
.pubrooms__tog em { font-style: normal; font-size: .85em; color: #9ea3a2; }
.pubrooms__tog.is-active em { color: var(--mint-400); }
/* 创建公开联合 (ui/publicRooms.js NewRoom): the switches' pill in the list's action colour (参加's amber), before the
   filter — it takes the filter's push to the right */
.dpick__opt.pubrooms__new { --d-color: var(--amber); gap: .3em; margin-left: auto; padding: 0 calc(var(--u) * 14) 0 calc(var(--u) * 10); color: #ffd58c;
  border-color: rgba(246, 163, 41, .55); background: var(--amber-a20); }
.dpick__opt.pubrooms__new:last-child { border-right-color: rgba(246, 163, 41, .55); }
.dpick__opt.pubrooms__new .icon { width: 1.05em; height: 1.05em; opacity: 1; }
.dpick__opt.pubrooms__new:hover:not(:disabled) { color: #ffe2a8; background: rgba(246, 163, 41, .3); }
.pubrooms__new + .pubrooms__filter { margin-left: 0; }
.pubrooms__fold { position: relative; display: inline-flex; }
.pubrooms__fbtn { display: inline-flex; align-items: center; gap: .35em; min-height: 28px; padding: 0 10px; font: inherit; font-size: 13px; color: #e6e9e8;
  background: rgba(0, 0, 0, .5); border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pubrooms__fbtn.is-open { box-shadow: inset 0 0 0 1px var(--mint-400); }
.pubrooms__fbtn em { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 3px; background: var(--mint-400); color: #0b1512; font-weight: 700; }
.pubrooms__fpanel { position: absolute; z-index: 60; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px;
  background: rgba(10, 14, 13, .97); border: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }
.pubrooms__fpanel .pubrooms__tog { min-height: 36px; font-size: 14px; }
.pubrooms__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0; padding: calc(var(--u) * 8) 0 0; list-style: none;
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content; align-content: start; column-gap: calc(var(--u) * 14);
  row-gap: calc(var(--u) * 5); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.pubroom { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: calc(var(--u) * 62);
  padding: calc(var(--u) * 6) calc(var(--u) * 14) calc(var(--u) * 6) calc(var(--u) * 10); border-left: calc(var(--u) * 4) solid var(--dc);
  background: linear-gradient(90deg, rgba(16, 18, 18, .92), rgba(22, 24, 24, .86)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pubroom.is-fit { background: linear-gradient(90deg, rgba(14, 34, 29, .94), rgba(18, 24, 23, .88)); box-shadow: inset 0 0 0 1px rgba(89, 244, 202, .38); }
.pubroom.is-live { opacity: .82; }
.pubroom__main { display: contents; } /* a box of its own only on a short screen (the two lines beside the buttons) */
.pubroom__mode { justify-self: start; display: flex; }
.pubroom .rs-mode { --o: var(--po); margin-right: 0; max-width: none; cursor: default; }
.pubroom__who { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: calc(var(--u) * 3); white-space: nowrap; }
.pubroom__host { display: flex; align-items: baseline; gap: calc(var(--u) * 6); min-width: 0; }
.pubroom__host b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; font-size: calc(var(--u) * 18); }
.pubroom__host small { flex: none; color: #7c8180; font-size: calc(var(--u) * 13); }
.pubroom__tags { display: flex; align-items: center; gap: calc(var(--u) * 6); min-width: 0; }
.pubroom__tags:empty { display: none; }
.pubroom__fit { display: inline-flex; align-items: center; gap: .25em; padding: 0 .45em; border-radius: 3px; font-size: calc(var(--u) * 13); line-height: 1.6; font-weight: 700;
  color: #0b1512; background: var(--mint-400); white-space: nowrap; }
.pubroom__fit .icon { width: 1em; height: 1em; }
.pubroom__fit.is-quick { color: var(--mint-400); background: rgba(89, 244, 202, .12); box-shadow: inset 0 0 0 1px rgba(89, 244, 202, .4); }
.pubroom__cwrap { display: inline-flex; }
.pubroom__custom { display: inline-flex; align-items: center; gap: .35em; padding: 0 .5em 0 0; font: inherit; font-size: calc(var(--u) * 13); line-height: 1.6; color: #e5d8ff;
  background: rgba(190, 120, 255, .12); border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(190, 120, 255, .4); white-space: nowrap; cursor: pointer; }
.pubroom__custom .rtag { padding: 0 .45em; border: 0; border-right: 1px solid rgba(190, 120, 255, .4); font-size: 1em; line-height: 1.6; letter-spacing: 0; }
.pubroom__custom.is-open { box-shadow: inset 0 0 0 1px #b98cff; }
.pubroom__caret { color: #b98cff; font-size: .8em; }
.pubroom__panel { position: absolute; z-index: 60; width: min(calc(var(--u) * 400), 92%); display: flex; flex-direction: column; gap: 6px; padding: 6px; white-space: normal;
  background: rgba(12, 10, 16, .97); border: 1px solid rgba(180, 140, 255, .35); box-shadow: 0 8px 24px rgba(0, 0, 0, .65); }
.pubroom__panel .crs__list { max-height: calc(var(--u) * 220); overflow-y: auto; }
.pubroom__all { align-self: flex-end; display: inline-flex; align-items: center; gap: .35em; padding: 3px 10px; font: inherit; font-size: calc(var(--u) * 13);
  color: #d8c4ff; background: none; border: 1px solid rgba(180, 140, 255, .35); cursor: pointer; }
.pubroom__seats { display: inline-flex; align-items: center; gap: calc(var(--u) * 4); height: calc(var(--po) * 57); }
.pubroom__seat { --s: calc(var(--po) * 46); position: relative; flex: none; display: grid; place-items: center; width: var(--s); height: var(--s);
  background: #1c1f1f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #9aa19e; }
.pubroom__seats.is-8 .pubroom__seat { --s: calc(var(--po) * 36); }
.pubroom__seat img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pubroom__seat > .icon { width: 55%; height: 55%; }
.pubroom__seat.is-host { box-shadow: inset 0 0 0 1px var(--gold); }
.pubroom__crown { position: absolute; top: -.5em; right: -.4em; display: grid; place-items: center; width: 1.1em; height: 1.1em; border-radius: 50%; background: #171a19;
  color: var(--gold); font-size: calc(var(--u) * 13); }
.pubroom__crown .icon { width: .8em; height: .8em; }
.pubroom__seat.is-bot { color: #8fa3a8; background: #232a2c; }
.pubroom__seat.is-empty { color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(89, 244, 202, .3); }
.pubroom__seat.is-empty > .icon { width: 45%; height: 45%; }
.pubroom__state { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; color: #b9bdbc; font-size: calc(var(--u) * 15); }
.pubroom__state i { width: .5em; height: .5em; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 6px var(--mint-400); }
.pubroom__state.is-live { color: var(--amber); }
.pubroom__state.is-live i { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.pubroom__act { display: inline-flex; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 6); }
.pubroom__act .btn { min-height: calc(var(--u) * 36); padding: 0 calc(var(--u) * 14); font-size: calc(var(--u) * 15); }
.pubroom__act .pubroom__spec.is-square { padding: 0 calc(var(--u) * 10); }
.pubrooms__div { grid-column: 1 / -1; display: flex; align-items: baseline; gap: calc(var(--u) * 10); margin-top: calc(var(--u) * 10); padding: calc(var(--u) * 4) calc(var(--u) * 6);
  border-top: 1px solid rgba(255, 255, 255, .14); color: #8f9493; font-size: calc(var(--u) * 14); white-space: nowrap; }
.pubrooms__div b { font-size: calc(var(--u) * 16); color: var(--mint-400); }
.pubrooms__div b.is-new { color: var(--gold); }
.pubrooms__empty { grid-column: 1 / -1; padding: calc(var(--u) * 30) calc(var(--u) * 10); text-align: center; color: #8f9493; }
/* no public room at all: the line, what to do, and a larger 创建公开联合, in the list's middle */
.pubrooms__empty.is-none { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 14); padding: calc(var(--u) * 60) calc(var(--u) * 10); }
.pubrooms__empty.is-none b { color: #e6e9e8; font-size: calc(var(--u) * 20); }
.dpick__opt.pubrooms__new.is-big { margin-left: 0; min-height: calc(var(--u) * 44); padding: 0 calc(var(--u) * 20) 0 calc(var(--u) * 14); font-size: calc(var(--u) * 17); }
.pubrooms__foot { flex: none; margin: calc(var(--u) * 8) 0 0; display: flex; align-items: center; gap: .4em; color: #8f9493; font-size: calc(var(--u) * 14); }
.pubrooms__foot .icon { flex: none; }
/* a difficulty card's waiting public rooms; a short screen, and the chosen card (its head ends at the 已选定 stamp: the
   two badges ran under the ring at 1600×900), show 「n · 房间 n」 as one badge */
.pcard__wait.pcard__rooms { margin-left: .06rem; }
.pcard__both { display: none; }
.pcard.is-on .pcard__head.has-both > .pcard__wait:not(.pcard__both) { display: none; }
.pcard.is-on .pcard__head.has-both > .pcard__both { display: inline; }
@media (max-height: 520px) {
  .pubrooms { --u: .0165rem; --po: .013rem; inset: 2px 0 4px 0; }
  .pubrooms__head { gap: 8px; padding-bottom: 4px; }
  .pubrooms__title i, .pubrooms__count, .pubrooms__foot { display: none; }
  .pubrooms__season .season-chip { min-height: 28px; padding: 0 9px; font-size: 12px; }
  .dpick__opt.pubrooms__new { min-height: 28px; padding: 0 10px 0 8px; font-size: 12px; letter-spacing: 0; }
  .pubrooms__empty.is-none { gap: 8px; padding: 18px 8px; font-size: 12px; }
  .pubrooms__empty.is-none b { font-size: 14px; }
  .dpick__opt.pubrooms__new.is-big { min-height: 36px; padding: 0 14px 0 10px; font-size: 14px; }
  .pubrooms__smenu { min-width: 260px; }
  .pubrooms__list { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
  .pubrooms__list > li { flex: none; } /* a flex column shrinks its rows (a row's second line ran out of it) */
  /* the main box's two lines share no columns: capsule · host | seats · state · tags (the tags beside the host cut a long
     name); the buttons beside it, centred over both. One grid of four columns shared them: the seats sat in the capsule's
     column (a blank as wide as the capsule after them), and the tags got the 1fr remainder, narrower than the custom
     chip, which ran under the buttons. */
  .pubroom { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 3px 6px; }
  .pubroom__main { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  .pubroom__main::after { content: ''; order: 3; flex: 0 0 100%; height: 2px; } /* the line break (and the gap between the lines) */
  .pubroom__who { display: contents; }
  .pubroom__mode { order: 1; flex: none; }
  .pubroom__host { order: 2; flex: 1 1 0; }
  .pubroom__seats { order: 4; flex: none; }
  .pubroom__state { order: 5; flex: none; }
  .pubroom__tags { order: 6; flex: 0 1 auto; }
  .pubroom__act { flex: none; }
  .pubroom__host b { font-size: 13px; }
  .pubroom__fit, .pubroom__custom { font-size: 11px; }
  .pubroom__act .btn { min-height: 30px; padding: 0 9px; font-size: 12px; }
  .pubrooms__div { margin-top: 4px; padding: 2px 4px; font-size: 11px; }
  .pubrooms__div b { font-size: 13px; }
  .pubroom__panel { width: min(300px, 96%); }
  .pubroom__all { min-height: 32px; font-size: 12px; }
  .pcard__wait:not(.pcard__both) { display: none; }
  .pcard__both { display: inline; }
}
/* matchmaking's offer of a public room (ui/matchQueue.js FoundRoom) */
.queue-dialog__room { --po: .0085rem; display: flex; flex-direction: column; align-items: flex-start; gap: .06rem; }
.queue-dialog__room .rs-mode { --o: var(--po); margin-right: 0; max-width: none; cursor: default; } /* with its season part (FoundRoom) it is wider than room.css's max-width: it may not shrink, as the list's */
.queue-dialog__host { display: flex; align-items: baseline; gap: .06rem; }
.queue-dialog__host b { color: #fff; }
.queue-dialog__host small { color: #7c8180; }
@media (max-height: 520px) { .queue-dialog__room { --po: .0095rem; } }
