/* ==========================================================================================
   screens/lobby.css — mode cards (独立/同盟), difficulty cards, create button, join panel.
   ========================================================================================== */

.lobby-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: calc(0.5 * var(--ui-unit, 1rem));
  width: 100%;
  max-width: calc(19.2 * var(--ui-unit, 1rem));
  margin: 0 auto;
  padding: calc(0.36 * var(--ui-unit, 1rem)) calc(0.6 * var(--ui-unit, 1rem)) calc(0.4 * var(--ui-unit, 1rem));
  align-content: start;
}
.lobby-left, .lobby-right { display: flex; flex-direction: column; min-width: 0; }

/* ---- mode cards ------------------------------------------------------------------------------------ */
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(0.24 * var(--ui-unit, 1rem)); margin-bottom: calc(0.34 * var(--ui-unit, 1rem)); }
.mode-card {
  --bk-c: transparent;
  --bk-l: calc(0.2 * var(--ui-unit, 1rem));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(0.22 * var(--ui-unit, 1rem));
  min-height: calc(4.3 * var(--ui-unit, 1rem));
  padding: calc(0.34 * var(--ui-unit, 1rem)) calc(0.32 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem));
  overflow: hidden;
  text-align: left;
  background: linear-gradient(180deg, rgba(28, 34, 31, .92), rgba(13, 16, 15, .94));
  border: 1px solid var(--line);
  color: var(--text-hi);
  transition: border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
  animation: card-in var(--t-slow) var(--ease-out) backwards;
}
.mode-card:nth-child(2) { animation-delay: 60ms; }
.mode-card:nth-child(3) { animation-delay: 120ms; }
.mode-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(78, 216, 175, .10), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px calc(0.12 * var(--ui-unit, 1rem))),
    linear-gradient(transparent 70%, rgba(0, 0, 0, .35));
  transition: opacity var(--t-med);
}
.mode-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint-500), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.mode-card__icon {
  position: relative;
  width: calc(0.88 * var(--ui-unit, 1rem));
  height: calc(0.88 * var(--ui-unit, 1rem));
  display: grid;
  place-items: center;
  background: #0c0f0e;
  border: 1px solid var(--line-2);
  color: var(--text-md);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background var(--t-med), color var(--t-med);
}
.mode-card__icon .icon { width: calc(0.44 * var(--ui-unit, 1rem)); height: calc(0.44 * var(--ui-unit, 1rem)); }
.mode-card__text { position: relative; display: flex; flex-direction: column; gap: calc(0.1 * var(--ui-unit, 1rem)); }
.mode-card__name { font-size: calc(.46 * var(--utility-text, var(--t))); font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
.mode-card__desc { font-size: calc(.17 * var(--utility-text, var(--t))); color: var(--text-lo); line-height: 1.65; max-width: calc(3.6 * var(--ui-unit, 1rem)); }
.mode-card__points { display: flex; flex-direction: column; gap: calc(0.05 * var(--ui-unit, 1rem)); margin-top: calc(0.06 * var(--ui-unit, 1rem)); font-size: calc(.15 * var(--utility-text, var(--t))); color: var(--text-md); }
.mode-card__points span::before {
  content: '';
  display: inline-block;
  width: calc(0.06 * var(--ui-unit, 1rem));
  height: calc(0.06 * var(--ui-unit, 1rem));
  margin: 0 calc(0.1 * var(--ui-unit, 1rem)) calc(0.02 * var(--ui-unit, 1rem)) 0;
  background: var(--mint-700);
  transform: rotate(45deg);
  vertical-align: middle;
}
.mode-card__check {
  position: absolute;
  top: calc(0.2 * var(--ui-unit, 1rem));
  right: calc(0.2 * var(--ui-unit, 1rem));
  display: flex;
  align-items: center;
  gap: calc(0.05 * var(--ui-unit, 1rem));
  padding: calc(0.04 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem)) calc(0.04 * var(--ui-unit, 1rem)) calc(0.08 * var(--ui-unit, 1rem));
  background: var(--mint-500);
  color: var(--text-on-mint);
  font-size: calc(.14 * var(--utility-text, var(--t)));
  font-weight: 700;
  opacity: 0;
  transform: translateY(calc(-0.06 * var(--ui-unit, 1rem)));
  transition: opacity var(--t-med), transform var(--t-med) var(--ease-out);
}
.mode-card__check .icon { width: calc(0.16 * var(--ui-unit, 1rem)); height: calc(0.16 * var(--ui-unit, 1rem)); }
.mode-card:hover { border-color: var(--line-3); --bk-c: var(--line-3); }
.mode-card:active { transform: translateY(1px); }
.mode-card.is-selected {
  --bk-c: var(--mint-400);
  border-color: var(--mint-700);
  box-shadow: 0 0 0 1px rgba(78, 216, 175, .22), 0 0 calc(0.44 * var(--ui-unit, 1rem)) rgba(23, 249, 183, .13), inset 0 0 calc(0.7 * var(--ui-unit, 1rem)) rgba(23, 249, 183, .05);
}
.mode-card.is-selected::before { transform: scaleX(1); }
.mode-card.is-selected .mode-card__icon { background: var(--mint-500); border-color: var(--mint-400); color: var(--text-on-mint); }
.mode-card.is-selected .mode-card__check { opacity: 1; transform: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(calc(0.14 * var(--ui-unit, 1rem))); } }

/* ---- join panel ------------------------------------------------------------------------------------ */
.join-panel .panel__body { display: flex; flex-direction: column; gap: calc(0.14 * var(--ui-unit, 1rem)); padding: calc(0.22 * var(--ui-unit, 1rem)) calc(0.26 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)); }

.match-queue { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(0.12 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)); min-height: calc(0.92 * var(--ui-unit, 1rem)); padding: calc(0.16 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)); overflow: hidden; border: 1px solid var(--mint-700); background: rgba(20, 57, 47, .26); }
.match-queue__scan { position: absolute; inset: 0 auto 0 0; width: 35%; pointer-events: none; background: linear-gradient(90deg, rgba(23, 249, 183, .11), transparent); animation: match-scan 2.4s ease-in-out infinite alternate; }
.match-queue__head, .match-queue__meta { position: relative; display: flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); min-width: 0; }
.match-queue__head { grid-column: 1 / -1; }
.match-queue__head > .icon { width: calc(0.24 * var(--ui-unit, 1rem)); height: calc(0.24 * var(--ui-unit, 1rem)); color: var(--mint-400); }
.match-queue__head > div { display: flex; flex-direction: column; gap: calc(0.02 * var(--ui-unit, 1rem)); }
.match-queue__head strong { font-size: calc(.19 * var(--utility-text, var(--t))); }
.match-queue__count { margin-left: auto; color: var(--mint-400); font-size: calc(.23 * var(--utility-text, var(--t))); }
.match-queue__meta { color: var(--text-lo); font-size: calc(.14 * var(--utility-text, var(--t))); }
.match-queue__meta span + span { padding-left: calc(0.12 * var(--ui-unit, 1rem)); border-left: 1px solid var(--line-2); }
.match-queue .btn { position: relative; align-self: center; }
@keyframes match-scan { from { transform: translateX(-20%); opacity: .5; } to { transform: translateX(220%); opacity: 1; } }

.join-row { display: flex; gap: calc(0.16 * var(--ui-unit, 1rem)); align-items: stretch; }
.join-row .field { flex: 1; }
.join-row .btn { height: calc(0.64 * var(--ui-unit, 1rem)); }
.join-foot { display: flex; align-items: center; flex-wrap: wrap; gap: calc(0.1 * var(--ui-unit, 1rem)); min-height: calc(0.32 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); }
.code-chip {
  padding: calc(0.03 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem)) calc(0.03 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem));
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .3);
  color: var(--amber);
  font-size: calc(.17 * var(--utility-text, 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); }

/* ---- tips -------------------------------------------------------------------------------------------- */
.tips {
  --bk-c: var(--line-3);
  margin-top: calc(0.3 * var(--ui-unit, 1rem));
  padding: calc(0.16 * var(--ui-unit, 1rem)) calc(0.22 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem));
  background: rgba(8, 10, 9, .55);
  border: 1px solid var(--line);
}
.tips__head { display: flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); font-size: calc(.16 * var(--utility-text, var(--t))); font-weight: 700; color: var(--text-md); }
.tips__head > .icon { width: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); color: var(--mint-500); }
.tips__idx { margin-left: auto; font-size: calc(.16 * var(--utility-text, var(--t))); color: var(--text-md); }
.tips__nav {
  display: grid;
  place-items: center;
  width: calc(0.3 * var(--ui-unit, 1rem));
  height: calc(0.3 * var(--ui-unit, 1rem));
  padding: 0;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-lo);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tips__nav:hover { color: var(--mint-400); border-color: var(--mint-700); }
.tips__nav .icon { width: calc(0.18 * var(--ui-unit, 1rem)); height: calc(0.18 * var(--ui-unit, 1rem)); }
.tips__text { margin-top: calc(0.1 * var(--ui-unit, 1rem)); font-size: calc(.17 * var(--utility-text, var(--t))); color: var(--text-lo); line-height: 1.6; animation: tip-in var(--t-slow) var(--ease-out); }
@keyframes tip-in { from { opacity: 0; transform: translateX(calc(0.1 * var(--ui-unit, 1rem))); } }

/* ---- difficulty cards -------------------------------------------------------------------------------- */
.diff-list { display: flex; flex-direction: column; gap: calc(0.14 * var(--ui-unit, 1rem)); }
.diff-card {
  --d-color: var(--amber);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: calc(0.06 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem));
  padding: calc(0.18 * var(--ui-unit, 1rem)) calc(0.24 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)) calc(0.36 * var(--ui-unit, 1rem));
  overflow: hidden;
  text-align: left;
  background: linear-gradient(90deg, rgba(28, 34, 31, .93), rgba(15, 19, 17, .93));
  border: 1px solid var(--line);
  color: var(--text-hi);
  transition: border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
  animation: card-in var(--t-slow) var(--ease-out) backwards;
}
.diff-card:nth-child(2) { animation-delay: 40ms; }
.diff-card:nth-child(3) { animation-delay: 80ms; }
.diff-card:nth-child(4) { animation-delay: 120ms; }
.diff-card__bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(0.06 * var(--ui-unit, 1rem)); background: var(--d-color); opacity: .45; transition: opacity var(--t-med), box-shadow var(--t-med); }
.diff-card__head { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); min-width: 0; }
.diff-card__glyph { width: calc(0.28 * var(--ui-unit, 1rem)); height: calc(0.28 * var(--ui-unit, 1rem)); color: var(--d-color); filter: drop-shadow(0 0 calc(0.05 * var(--ui-unit, 1rem)) var(--d-color)); filter: drop-shadow(0 0 calc(0.05 * var(--ui-unit, 1rem)) color-mix(in srgb, var(--d-color) 55%, transparent)); }
.diff-card__name { font-size: calc(.27 * var(--utility-text, var(--t))); font-weight: 900; letter-spacing: .06em; color: var(--d-color); }
.diff-card__code { font-size: calc(.14 * var(--utility-text, var(--t))); color: var(--text-dim); letter-spacing: .1em; }
.diff-card__meta { margin-left: auto; display: flex; align-items: center; gap: calc(0.04 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); color: var(--text-lo); white-space: nowrap; }
.diff-card__meta .num { color: var(--text-hi); font-weight: 700; font-size: calc(.17 * var(--utility-text, var(--t))); }
.diff-card__hidden {
  margin-left: calc(0.08 * var(--ui-unit, 1rem));
  padding: 0 calc(0.07 * var(--ui-unit, 1rem));
  border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--d-color) 45%, transparent);
  color: var(--d-color); color: color-mix(in srgb, var(--d-color) 80%, #fff);
  font-size: calc(.12 * var(--utility-text, var(--t)));
  line-height: 1.6;
}
.diff-card__desc { grid-column: 1; font-size: calc(.16 * var(--utility-text, var(--t))); color: var(--text-md); }
.diff-card__effects { grid-column: 1; display: flex; flex-wrap: wrap; gap: calc(0.04 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); color: var(--text-lo); }
.diff-card__effects span::before { content: '·'; margin-right: calc(0.05 * var(--ui-unit, 1rem)); color: var(--d-color); font-weight: 900; }
/* battlefield pool note (config.json modes[].stages): 战场固定为 战场#01 / 战场随机（共N张） — the last item of the
   effects row (no extra card height: the lobby must not scroll at 1280×720 / 1920×1080) */
.diff-card__effects .diff-card__stage { display: inline-flex; align-self: flex-start; align-items: center; gap: calc(0.05 * var(--ui-unit, 1rem)); }
.diff-card__effects .diff-card__stage::before { content: none; }
.diff-card__stage .icon { flex: none; width: calc(0.15 * var(--ui-unit, 1rem)); height: calc(0.15 * var(--ui-unit, 1rem)); color: var(--d-color); opacity: .85; }
.diff-card__check {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(0.03 * var(--ui-unit, 1rem));
  font-size: calc(.12 * var(--utility-text, var(--t)));
  color: var(--text-dim);
}
.diff-card__check .icon {
  width: calc(0.46 * var(--ui-unit, 1rem));
  height: calc(0.46 * var(--ui-unit, 1rem));
  padding: calc(0.09 * var(--ui-unit, 1rem));
  border-radius: 50%;
  border: 2px solid var(--line-2);
  color: transparent;
  transition: background var(--t-med), border-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-out);
}
.diff-card__check span { opacity: 0; transition: opacity var(--t-med); }
.diff-card:hover { border-color: var(--line-3); }
.diff-card.is-selected {
  border-color: var(--d-color); border-color: color-mix(in srgb, var(--d-color) 65%, transparent);
  background: linear-gradient(90deg, #151a18, rgba(15, 19, 17, .95) 70%); background: linear-gradient(90deg, color-mix(in srgb, var(--d-color) 15%, #151a18), rgba(15, 19, 17, .95) 70%);
  box-shadow: 0 0 calc(0.3 * var(--ui-unit, 1rem)) transparent; box-shadow: 0 0 calc(0.3 * var(--ui-unit, 1rem)) color-mix(in srgb, var(--d-color) 16%, transparent);
}
.diff-card.is-selected .diff-card__bar { opacity: 1; box-shadow: 0 0 calc(0.14 * var(--ui-unit, 1rem)) var(--d-color); }
.diff-card.is-selected .diff-card__check { color: var(--d-color); }
.diff-card.is-selected .diff-card__check .icon { background: var(--d-color); border-color: var(--d-color); color: #150a04; transform: rotate(-8deg); }
.diff-card.is-selected .diff-card__check span { opacity: 1; }

/* ---- create ------------------------------------------------------------------------------------------ */
.create-box { margin-top: calc(0.3 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.create-box > .match-queue { width: 100%; box-sizing: border-box; }
.create-box .btn--xl { height: calc(0.92 * var(--ui-unit, 1rem)); font-size: calc(.32 * var(--utility-text, var(--t))); letter-spacing: .3em; }
.create-box__hint { display: flex; align-items: center; justify-content: center; min-height: calc(0.3 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); color: var(--text-lo); }

/* UI b2bd17af: existing lobby/room presentation only; no fork-only service styles. */
/* Mode selection replaces the lobby; it is not a modal or a high-z-index overlay. */
.screen.protocol-screen {
  position: fixed; inset: 0; min-width: 0; min-height: 0; padding: 0;
  height: calc(var(--sp-vh, 1vh) * 100);
}
@supports (height: 100dvh) {
  .screen.protocol-screen { height: min(100dvh, calc(var(--sp-vh, 1dvh) * 100)); }
}
.protocol-screen :is(button, input):focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.lobby-hub { --hub-entry-w: calc(2.4 * var(--ui-unit, 1rem)); --hub-gap: calc(0.16 * var(--ui-unit, 1rem)); }
.lobby-hub > .hub-topbar { grid-template-columns: minmax(0, 1fr) auto; }
.lobby-hub > .hub-topbar > .topbar__right { grid-column: 2; }
.hub-entries > .match-queue { width: min(100%, calc(7.5 * var(--ui-unit, 1rem))); box-sizing: border-box; }
.hub-entry--amber { border-color: var(--amber); }
.hub-entry--amber .hub-entry__en { color: var(--amber); }
.lobby-hub {
  --sky-0: #03080a; --sky-1: #08141a; --sky-2: #12262a; --sky-3: #050909;
  --haze: rgba(92, 168, 156, .17); --cloud: rgba(140, 196, 186, .055);
  --ridge-far: #122022; --ridge-mid: #0b1516; --ridge-near: #060b0b;
  --rim: rgba(110, 226, 196, .34); --fog: rgba(54, 104, 98, .3); --beam: rgba(150, 240, 215, .1);
  --beacon: #59f4ca; --window: rgba(89, 244, 202, .7); --grid: rgba(89, 244, 202, .32);
  --mote: rgba(170, 245, 225, .7); --radar: rgba(89, 244, 202, .15);
}

.lobby-hub { --hub-entry-w: calc(2.1 * var(--ui-unit, 1rem)); --hub-gap: calc(0.14 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; overflow: hidden; background: #050909; }
.hub-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--sky-3); }
.hub-bg__sky { position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 36%, var(--sky-2) 63%, var(--sky-3) 100%); }
.hub-bg__stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%;
  animation: hub-twinkle 7s ease-in-out infinite alternate; }
.hub-bg__haze { position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 20% at 50% 64%, var(--haze), transparent 72%),
    radial-gradient(ellipse 130% 36% at 50% 72%, var(--haze), transparent 70%); }
.hub-bg__clouds { position: absolute; left: 0; top: 6%; width: 200%; height: 50%;
  background:
    radial-gradient(30% 10% at 15% 42%, var(--cloud), transparent 70%),
    radial-gradient(22% 7% at 38% 20%, var(--cloud), transparent 70%),
    radial-gradient(36% 11% at 66% 58%, var(--cloud), transparent 70%),
    radial-gradient(20% 6% at 88% 28%, var(--cloud), transparent 70%);
  background-size: 50% 100%; background-repeat: repeat-x; animation: hub-drift 180s linear infinite; }
.hub-bg__land { position: absolute; left: 0; bottom: 0; width: 100%; height: 64%; overflow: visible; }
.hub-bg__ridge--far { fill: var(--ridge-far); }
.hub-bg__ridge--mid, .hub-bg__fort { fill: var(--ridge-mid); }
.hub-bg__ridge--near { fill: var(--ridge-near); }
.hub-bg__rim { fill: none; stroke: var(--rim); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hub-fog-0 { stop-color: var(--fog); stop-opacity: 0; }
.hub-fog-1 { stop-color: var(--fog); stop-opacity: 1; }
.hub-beam-0 { stop-color: var(--beam); }
.hub-beam-1 { stop-color: var(--beam); stop-opacity: 0; }
.hub-bg__beam { transform-origin: calc(7.91 * var(--ui-unit, 1rem)) calc(3 * var(--ui-unit, 1rem)); animation: hub-beam 16s ease-in-out infinite alternate; }
.hub-bg__windows rect { fill: var(--window); animation: hub-window 9s steps(1) infinite; animation-delay: var(--dl); }
.hub-bg__beacons g { fill: var(--beacon); animation: hub-beacon 2.8s ease-in-out infinite; animation-delay: var(--dl); }
.hub-bg__beacon-glow { opacity: .22; }
.hub-bg__motes { position: absolute; inset: 0; }
.hub-bg__mote { position: absolute; border-radius: 50%; background: var(--mote); box-shadow: 0 0 calc(0.06 * var(--ui-unit, 1rem)) var(--mote); opacity: 0;
  animation: hub-mote var(--d) linear infinite; animation-delay: var(--dl); }
.hub-bg__grid { position: absolute; left: -20%; right: -20%; bottom: -6%; height: 30%; opacity: .24;
  background:
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px calc(0.64 * var(--ui-unit, 1rem))),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px calc(0.64 * var(--ui-unit, 1rem)));
  transform: perspective(calc(4.2 * var(--ui-unit, 1rem))) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(0deg, #000 5%, transparent 85%); -webkit-mask-image: linear-gradient(0deg, #000 5%, transparent 85%); }
.hub-bg__dots { position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(rgba(223, 230, 226, .6) 1px, transparent 1.2px); background-size: calc(0.22 * var(--ui-unit, 1rem)) calc(0.22 * var(--ui-unit, 1rem));
  mask-image: linear-gradient(180deg, #000, transparent 50%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 50%); }
.hub-bg__scan { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hub-bg__vignette { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42), transparent 16%),
    radial-gradient(130% 95% at 50% 42%, transparent 50%, rgba(0, 0, 0, .72)); }
.hub-bg[data-motion="off"] *, .lobby-hub .hub-bg[data-motion="off"] { animation: none !important; }
.hub-bg[data-motion="off"] .hub-bg__mote { opacity: .3; }

@keyframes hub-twinkle { from { opacity: .5; } to { opacity: 1; } }
@keyframes hub-drift { to { transform: translateX(-50%); } }
@keyframes hub-beam { from { transform: rotate(-18deg); } to { transform: rotate(24deg); } }
@keyframes hub-window { 0%, 70% { opacity: .9; } 72%, 78% { opacity: .2; } 80%, 100% { opacity: .9; } }
@keyframes hub-beacon { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes hub-mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .45; } 100% { transform: translate3d(2vw, -18vh, 0); opacity: 0; } }
@keyframes hub-snow { 0% { transform: translate3d(0, -12vh, 0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .7; } 100% { transform: translate3d(-3vw, 14vh, 0); opacity: 0; } }
@keyframes hub-sweep { to { transform: rotate(1turn); } }
@keyframes hub-pulse { 0% { box-shadow: 0 0 0 0 rgba(89, 244, 202, .55); } 100% { box-shadow: 0 0 0 calc(0.1 * var(--ui-unit, 1rem)) rgba(89, 244, 202, 0); } }

.lobby-hub > .topbar, .hub-stage { position: relative; z-index: 1; }
.lobby-hub > .topbar { z-index: 2; }
.hub-topbar { background: linear-gradient(180deg, rgba(4, 8, 8, .85), transparent); border-bottom: 0; }
.hub-stage { flex: 1 1 auto; min-height: 0; display: grid; padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.36 * var(--ui-unit, 1rem)) calc(0.36 * var(--ui-unit, 1rem));
  grid-template-columns: minmax(calc(2.6 * var(--ui-unit, 1rem)), calc(3.2 * var(--ui-unit, 1rem))) 1fr calc(var(--hub-entry-w) * 2 + var(--hub-gap));
  grid-template-rows: minmax(0, 1fr) auto; gap: calc(0.2 * var(--ui-unit, 1rem)) calc(0.4 * var(--ui-unit, 1rem)); }
.hub-center { grid-column: 1 / -1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; }
.hub-center__mark { position: relative; display: grid; place-items: center; margin-bottom: calc(0.14 * var(--ui-unit, 1rem)); }
.hub-center__mark .emblem { margin: 0; z-index: 1; }
.hub-center__en { position: relative; font: 700 calc(.2 * var(--utility-text, var(--t)))/1 ui-monospace, Consolas, monospace; letter-spacing: .32em; color: rgba(223, 230, 226, .72);
  text-shadow: 0 1px calc(0.08 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .85); }
.hub-center__en b { color: var(--mint-400); }
.hub-center__title { position: relative; margin: calc(0.1 * var(--ui-unit, 1rem)) 0 0; font-size: calc(.46 * var(--utility-text, var(--t))); font-weight: 900; letter-spacing: .14em; color: var(--text-hi);
  text-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .8); }
.hub-radar { position: absolute; left: 50%; top: 50%; width: calc(5.2 * var(--ui-unit, 1rem)); height: calc(5.2 * var(--ui-unit, 1rem)); transform: translate(-50%, -50%); }
.hub-radar svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--radar); 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, var(--radar) 360deg);
  mask-image: radial-gradient(circle, transparent 0 17%, #000 18%); -webkit-mask-image: radial-gradient(circle, transparent 0 17%, #000 18%);
  animation: hub-sweep 9s linear infinite; }
.hub-side { grid-column: 1; grid-row: 1 / -1; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start;
  gap: calc(0.14 * var(--ui-unit, 1rem)); min-width: 0; padding-top: calc(0.3 * var(--ui-unit, 1rem)); }
.hub-tile { display: flex !important; align-items: center; gap: calc(0.14 * var(--ui-unit, 1rem)); width: 100%; min-height: calc(0.74 * var(--ui-unit, 1rem)); padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem));
  background: rgba(8, 14, 13, .8); border: 1px solid rgba(223, 230, 226, .2); border-left: 3px solid var(--mint-500);
  color: var(--text-hi); text-align: left; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.hub-tile:hover { background: rgba(24, 40, 36, .9); border-color: var(--mint-a35); }
.hub-tile__icon { display: grid; place-items: center; width: calc(0.44 * var(--ui-unit, 1rem)); height: calc(0.44 * var(--ui-unit, 1rem)); flex: none; border: 1px solid var(--mint-a35); color: var(--mint-400); font-size: calc(.22 * var(--utility-text, var(--t))); }
.hub-tile__text { display: flex; flex-direction: column; gap: calc(0.02 * var(--ui-unit, 1rem)); min-width: 0; }
.hub-tile__label { font-size: calc(.2 * var(--utility-text, var(--t))); font-weight: 800; }
.hub-tile__en { font: 600 calc(.1 * var(--utility-text, var(--t)))/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; color: var(--text-dim); }
.hub-side .tips { margin-top: calc(0.04 * var(--ui-unit, 1rem)); background: rgba(8, 14, 13, .72); }
.hub-right { grid-column: 3; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; gap: calc(0.16 * var(--ui-unit, 1rem)); min-width: 0; min-height: 0; padding-top: calc(0.06 * var(--ui-unit, 1rem)); }
.hub-right__plates { display: flex; flex-direction: column; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.hub-plate { --pl-ink: #222b28; position: relative; display: flex !important; align-items: center; justify-content: flex-start !important; gap: calc(0.14 * var(--ui-unit, 1rem));
  width: 100%; height: calc(0.7 * var(--ui-unit, 1rem)) !important; min-width: 0; padding: 0 calc(0.22 * var(--ui-unit, 1rem)) 0 calc(0.2 * var(--ui-unit, 1rem)) !important; color: #111816 !important; text-align: left;
  background:
    linear-gradient(var(--pl-ink), var(--pl-ink)) left calc(0.07 * var(--ui-unit, 1rem)) center / 2px 54% no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) left calc(0.07 * var(--ui-unit, 1rem)) top 23% / calc(0.06 * var(--ui-unit, 1rem)) 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) left calc(0.07 * var(--ui-unit, 1rem)) bottom 23% / calc(0.06 * var(--ui-unit, 1rem)) 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right calc(0.07 * var(--ui-unit, 1rem)) center / 2px 54% no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right calc(0.07 * var(--ui-unit, 1rem)) top 23% / calc(0.06 * var(--ui-unit, 1rem)) 2px no-repeat,
    linear-gradient(var(--pl-ink), var(--pl-ink)) right calc(0.07 * var(--ui-unit, 1rem)) bottom 23% / calc(0.06 * var(--ui-unit, 1rem)) 2px no-repeat,
    linear-gradient(180deg, #e8edea, #c6cfcb) !important;
  border: 1px solid rgba(255, 255, 255, .5) !important; box-shadow: 0 calc(0.05 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .14); }
.hub-plate__glyph, .hub-plate .lo-entry__icon, .hub-plate > .btn__icon { width: calc(0.46 * var(--ui-unit, 1rem)) !important; height: calc(0.46 * var(--ui-unit, 1rem)) !important; flex: none; display: grid; place-items: center;
  padding: calc(0.07 * var(--ui-unit, 1rem)); background: #182120; color: var(--mint-400); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); box-sizing: border-box; }
.hub-plate__glyph svg { width: 100%; height: 100%; }
.hub-plate__label, .hub-plate .btn__label { font-size: calc(.2 * var(--utility-text, var(--t))); font-weight: 900; letter-spacing: .04em; color: #111816; white-space: nowrap; }
.hub-plate__tag { margin-left: auto; padding: calc(0.03 * var(--ui-unit, 1rem)) calc(0.07 * var(--ui-unit, 1rem)); font-size: calc(.11 * var(--utility-text, 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; }
.hub-plate--sweep { font: inherit; cursor: pointer; }
.hub-plate--sweep:hover, .hub-plate--loadout:not(:disabled):hover { filter: brightness(1.05); }
.hub-plate--sweep:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }

.hub-entries { grid-column: 2 / -1; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.hub-entries__row { display: flex; align-items: flex-end; gap: var(--hub-gap); transform: translateY(calc(-0.12 * var(--ui-unit, 1rem))); }
.hub-entry-wrap { display: flex; flex-direction: column; gap: calc(0.05 * var(--ui-unit, 1rem)); }
.hub-entry__group { display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); padding-left: calc(0.04 * var(--ui-unit, 1rem)); font-size: calc(.13 * var(--utility-text, var(--t))); color: rgba(223, 230, 226, .7); }
.hub-entry {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  width: var(--hub-entry-w); height: calc(1.34 * var(--ui-unit, 1rem)); padding: calc(0.14 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)); overflow: hidden; cursor: pointer; 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 calc(0.06 * var(--ui-unit, 1rem)) calc(0.24 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5); transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.hub-entry:hover:not(:disabled) { transform: translateY(calc(-0.04 * var(--ui-unit, 1rem))); border-color: var(--mint-400); box-shadow: 0 calc(0.08 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .55), 0 0 calc(0.2 * var(--ui-unit, 1rem)) var(--mint-a20); }
.hub-entry:disabled { opacity: .5; cursor: default; }
.hub-entry__icon { position: absolute; right: calc(0.14 * var(--ui-unit, 1rem)); top: calc(0.12 * var(--ui-unit, 1rem)); font-size: calc(.42 * var(--utility-text, var(--t))); color: var(--mint-a35); }
.hub-entry__en { font: 700 calc(.11 * var(--utility-text, var(--t)))/1 ui-monospace, Consolas, monospace; letter-spacing: .22em; color: var(--mint-400); }
.hub-entry__name { display: flex; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); margin-top: calc(0.04 * var(--ui-unit, 1rem)); font-size: calc(.3 * var(--utility-text, var(--t))); font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.hub-entry__name .mode-beta { font-size: calc(.12 * var(--utility-text, var(--t))); }
.hub-entry__count { position: absolute; left: calc(0.16 * var(--ui-unit, 1rem)); top: calc(0.12 * var(--ui-unit, 1rem)); }
.hub-entry__corner { position: absolute; right: 0; bottom: 0; width: calc(0.3 * var(--ui-unit, 1rem)); height: calc(0.3 * var(--ui-unit, 1rem));
  background: linear-gradient(135deg, transparent 50%, var(--mint-500) 50%); opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .hub-bg *, .hub-radar__sweep { animation: none !important; }
  .hub-bg__mote { opacity: .3; }
}
@media (max-aspect-ratio: 1/1) {
  .hub-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; overflow-y: auto; }
  .hub-center, .hub-side, .hub-right, .hub-entries { grid-column: 1; grid-row: auto; }
  .hub-center { order: 0; padding: calc(0.3 * var(--ui-unit, 1rem)) 0; } .hub-entries { order: 1; } .hub-right { order: 2; } .hub-side { order: 3; padding-top: 0; }
  .hub-right { justify-self: end; width: min(100%, calc(var(--hub-entry-w) * 2 + var(--hub-gap))); }
  .hub-side { justify-self: start; width: min(100%, calc(3.2 * var(--ui-unit, 1rem))); }
  .hub-entries { align-items: stretch; }
  .hub-entries__row { flex-wrap: wrap; }
}
@keyframes sw-in { from { opacity: 0; } }
.proto {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  color: #eef0ef; background: #0b0c0c; overscroll-behavior: contain; animation: sw-in 200ms var(--ease-out) backwards;
}
.proto__bg { position: absolute; inset: 0; pointer-events: none; transition: background 400ms;
  background:
    radial-gradient(46% 60% at 30% 52%, rgba(78, 216, 175, .35), transparent 70%),
    radial-gradient(40% 50% at 100% 50%, rgba(78, 216, 175, .35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px calc(0.04 * var(--ui-unit, 1rem))),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / calc(1.1 * var(--ui-unit, 1rem)) calc(1.1 * var(--ui-unit, 1rem)),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / calc(1.1 * var(--ui-unit, 1rem)) calc(1.1 * var(--ui-unit, 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) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 100% 50%, color-mix(in srgb, var(--d-color) 10%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px calc(0.04 * var(--ui-unit, 1rem))),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / calc(1.1 * var(--ui-unit, 1rem)) calc(1.1 * var(--ui-unit, 1rem)),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / calc(1.1 * var(--ui-unit, 1rem)) calc(1.1 * var(--ui-unit, 1rem)),
    radial-gradient(120% 90% at 50% 40%, #151616, #070808); }
.proto > :where(:not(.proto__bg)) { position: relative; }

.proto-top { flex: none; display: flex; align-items: flex-start; justify-content: space-between; padding: calc(0.18 * var(--ui-unit, 1rem)) calc(0.34 * var(--ui-unit, 1rem)) 0 calc(0.22 * var(--ui-unit, 1rem)); z-index: 2; }
.proto-back { display: inline-flex; align-items: center; height: max(calc(0.62 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); padding: 0; font: inherit; color: #f2f4f3; cursor: pointer;
  background: linear-gradient(180deg, #2b2c2d, #1b1c1d); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5); }
.proto-back > .icon { width: max(calc(0.4 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem))); height: max(calc(0.4 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem))); margin: 0 calc(0.3 * var(--ui-unit, 1rem)) 0 calc(0.14 * var(--ui-unit, 1rem)); }
.proto-back__home { display: grid; place-items: center; align-self: stretch; width: max(calc(2 * var(--ui-unit, 1rem)), calc(0.96 * var(--ui-unit, 1rem))); border-left: 2px solid #0d0e0e;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1px, transparent 1.6px) 0 0 / calc(0.14 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)), linear-gradient(90deg, #2f3132, #3d3f40 50%, #2f3132); }
.proto-back__home .icon { width: max(calc(0.32 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); height: max(calc(0.32 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); }
.proto-back:hover { border-color: rgba(255, 255, 255, .35); }
.proto-title { display: flex; flex-direction: column; align-items: flex-end; gap: calc(0.02 * var(--ui-unit, 1rem)); padding-top: calc(0.06 * var(--ui-unit, 1rem)); }
.proto-title h2 { margin: 0; font-size: max(calc(.36 * var(--utility-text, var(--t))), calc(0.18 * var(--ui-unit, 1rem))); font-weight: 900; letter-spacing: .06em; }
.proto-title__mode { display: inline-flex; align-items: baseline; gap: calc(0.1 * var(--ui-unit, 1rem)); font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: var(--d-color); font-weight: 700; }
.proto-title__mode i { font-style: normal; font-family: var(--font-display); font-size: .8em; letter-spacing: .16em; color: #8b8f8e; }

.proto-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) min(calc(5.6 * var(--ui-unit, 1rem)), 46vw); gap: calc(0.3 * var(--ui-unit, 1rem)); padding: 0 calc(0.34 * var(--ui-unit, 1rem)) calc(0.26 * var(--ui-unit, 1rem)) calc(0.22 * var(--ui-unit, 1rem)); }
.proto-stage { position: relative; min-width: 0; min-height: 0; }
.ps { position: absolute; inset: calc(-0.4 * var(--ui-unit, 1rem)) 0 calc(0.9 * var(--ui-unit, 1rem)); width: 100%; height: calc(100% - calc(0.5 * var(--ui-unit, 1rem))); color: var(--d-color); transition: color 400ms; }
.ps-grid line { stroke: currentColor; stroke-opacity: .13; 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 calc(0.06 * var(--ui-unit, 1rem)) rgba(78, 216, 175, .35)); filter: drop-shadow(0 0 calc(0.06 * var(--ui-unit, 1rem)) color-mix(in srgb, var(--d-color) 70%, 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: 4; stroke-opacity: .75; }
.ps-fig { animation: ps-fig 360ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes ps-fig { from { opacity: 0; transform: translateY(calc(-0.06 * var(--ui-unit, 1rem))); } }
.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; filter: drop-shadow(0 0 calc(0.04 * var(--ui-unit, 1rem)) var(--d-color)); }
.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__icon { fill: currentColor !important; fill-opacity: .25; }
.ps-call__man { fill: currentColor; }
.ps-call text { fill: currentColor; font: 700 calc(0.11 * var(--ui-unit, 1rem)) var(--font-num, monospace); letter-spacing: 2px; }
.ps-scan { stroke: currentColor; stroke-opacity: .22; stroke-width: 2; animation: ps-scan 7s linear infinite; }
@keyframes ps-scan { from { transform: translateY(calc(0.4 * var(--ui-unit, 1rem))); } to { transform: translateY(calc(6.2 * var(--ui-unit, 1rem))); } }

.proto-brief { position: absolute; left: calc(0.1 * var(--ui-unit, 1rem)); bottom: calc(0.1 * var(--ui-unit, 1rem)); max-width: min(calc(6 * var(--ui-unit, 1rem)), 92%); padding: calc(0.12 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)); 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: calc(0.1 * var(--ui-unit, 1rem)); padding: 0 calc(0.08 * var(--ui-unit, 1rem)); font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #111; background: var(--d-color); }
.proto-brief__name { font-size: max(calc(.24 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); color: var(--d-color); }
.proto-brief p { margin: calc(0.04 * var(--ui-unit, 1rem)) 0 0; font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); line-height: 1.5; color: #b7bcba; }
.proto-side { min-height: 0; display: flex; flex-direction: column; gap: calc(0.14 * var(--ui-unit, 1rem)); }
.proto-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: calc(0.2 * var(--ui-unit, 1rem)); padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.06 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem));
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.pcard { position: relative; flex: none; display: flex; flex-direction: column; gap: calc(0.04 * var(--ui-unit, 1rem)); padding: calc(0.16 * var(--ui-unit, 1rem)) calc(0.26 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)); overflow: hidden; font: inherit; text-align: left;
  color: #e9eceb; cursor: pointer; background: linear-gradient(180deg, #252627, #1a1b1c); border: 2px solid #55585a; border-radius: calc(0.2 * var(--ui-unit, 1rem));
  box-shadow: 0 calc(0.05 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5); transition: transform 220ms var(--ease-out), border-color 220ms; }
.pcard:hover:not(.is-on) { border-color: #7b7f81; }
.pcard.is-on { transform: translateX(calc(-0.44 * var(--ui-unit, 1rem))); 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(78, 216, 175, .35), 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 > :not(.pcard__glow, .pcard__stamp) { position: relative; }
.pcard.is-on > :not(.pcard__glow, .pcard__stamp) { padding-right: max(calc(1.3 * var(--ui-unit, 1rem)), calc(0.7 * var(--ui-unit, 1rem))); }
.pcard__head { display: flex; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); }
.pcard__glyph { width: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); height: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); color: var(--d-color); }
.pcard__name { font-size: max(calc(.3 * var(--utility-text, var(--t))), calc(0.16 * var(--ui-unit, 1rem))); font-weight: 900; letter-spacing: .04em; color: var(--d-color); text-shadow: 0 0 calc(0.1 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .6); }
.pcard__head [class*='matchmaking'] { margin-left: auto; }
.pcard__desc { padding-bottom: calc(0.06 * var(--ui-unit, 1rem)); font-size: max(calc(.17 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: #9a9f9d; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.pcard__effects { display: flex; flex-direction: column; padding-top: calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.19 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); line-height: 1.45; }
.pcard__effects span::before { content: '·'; margin-right: calc(0.06 * var(--ui-unit, 1rem)); }
.pcard__meta { display: flex; flex-wrap: wrap; gap: calc(0.04 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)); margin-top: calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); color: #7f8583; }
.pcard__meta b { color: #cfd3d1; }
.pcard__stamp { position: absolute; right: calc(0.2 * var(--ui-unit, 1rem)); top: 50%; display: none; width: max(calc(1.3 * var(--ui-unit, 1rem)), calc(0.7 * var(--ui-unit, 1rem))); height: max(calc(1.1 * var(--ui-unit, 1rem)), calc(0.6 * var(--ui-unit, 1rem))); transform: translateY(-50%) rotate(-6deg);
  flex-direction: column; align-items: center; justify-content: center; gap: calc(0.04 * var(--ui-unit, 1rem)); }
.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: calc(-0.1 * var(--ui-unit, 1rem)) calc(-0.14 * var(--ui-unit, 1rem)); width: calc(100% + calc(0.28 * var(--ui-unit, 1rem))); height: calc(100% + calc(0.2 * var(--ui-unit, 1rem))); }
.pcard__ring path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .9; }
.pcard__tick { display: grid; place-items: center; width: max(calc(0.46 * var(--ui-unit, 1rem)), calc(0.26 * var(--ui-unit, 1rem))); height: max(calc(0.46 * var(--ui-unit, 1rem)), calc(0.26 * var(--ui-unit, 1rem))); color: #2a1712; background: #f5f5f5; border-radius: calc(0.06 * var(--ui-unit, 1rem)); box-shadow: 0 calc(0.02 * var(--ui-unit, 1rem)) calc(0.08 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5); }
.pcard__tick .icon { width: 78%; height: 78%; color: var(--d-color); filter: brightness(.7); }
.pcard__ok { font-size: max(calc(.18 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.proto-foot { flex: none; display: flex; flex-direction: column; gap: calc(0.08 * var(--ui-unit, 1rem)); padding-left: calc(0.5 * var(--ui-unit, 1rem)); transform: translateY(calc(-0.12 * var(--ui-unit, 1rem))); }
.proto-opts { display: flex; align-items: center; justify-content: space-between; gap: calc(0.14 * var(--ui-unit, 1rem)); }
.proto-hint { margin: 0; font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #858b89; }
.proto-start { position: relative; display: flex; align-items: center; gap: calc(0.26 * var(--ui-unit, 1rem)); width: 100%; height: max(calc(1.04 * var(--ui-unit, 1rem)), calc(0.54 * var(--ui-unit, 1rem))); padding: 0 0 0 calc(0.26 * var(--ui-unit, 1rem)); overflow: hidden;
  font: inherit; color: #0d2a23; cursor: pointer; 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 calc(0.06 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .55);
  transition: filter var(--t-fast); }
.proto-start:hover:not(:disabled) { filter: brightness(1.07); }
.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: max(calc(.36 * var(--utility-text, var(--t))), calc(0.2 * var(--ui-unit, 1rem))); font-weight: 300; line-height: 1; }
.proto-start__rook i { font-style: normal; }
.proto-start__rook .icon { width: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.19 * var(--ui-unit, 1rem))); height: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.19 * var(--ui-unit, 1rem))); }
.proto-start__mark small { font-family: var(--font-display); font-size: max(calc(.08 * var(--utility-text, var(--t))), calc(0.06 * var(--ui-unit, 1rem))); font-weight: 800; letter-spacing: .06em; line-height: 1.1; text-align: center; }
.proto-start__label { display: inline-flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); font-size: max(calc(.44 * var(--utility-text, var(--t))), calc(0.22 * var(--ui-unit, 1rem))); font-weight: 900; letter-spacing: .08em; }
.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 calc(0.05 * var(--ui-unit, 1rem)), transparent calc(0.05 * var(--ui-unit, 1rem)) calc(0.11 * var(--ui-unit, 1rem))), linear-gradient(90deg, rgba(13, 42, 35, .2), rgba(13, 42, 35, .6)); }
@media (max-aspect-ratio: 1/1) {
  .proto-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@media (prefers-reduced-motion: reduce) {
  .proto, .ps-fig, .ps-spike, .pcard.is-on .pcard__stamp { animation: none; }
  .ps-scan, .ps-beacon { animation: none; }
}
.proto-side--search { justify-content: stretch; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .55) 30%); }
.proto-side--search .mf-search { flex: 1 1 auto; }
.rseat { --w: min(18vw, calc(3.4 * var(--ui-unit, 1rem)), calc((100vw - calc(1.6 * var(--ui-unit, 1rem))) / var(--n, 4) - calc(0.3 * var(--ui-unit, 1rem)))); position: relative; flex: none; width: var(--w); display: flex; flex-direction: column;
  animation: sw-in 260ms var(--ease-out) backwards; animation-delay: calc(var(--i) * 60ms); }
.rseat__clip { position: absolute; left: 50%; top: calc(-0.14 * var(--ui-unit, 1rem)); width: calc(0.16 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); transform: translateX(-50%); background: #3a3e3d; border: 2px solid #1a1c1c; z-index: 2; }
.rseat.is-ready .rseat__clip { background: #4fe8c0; }
.rseat__strip { position: relative; display: flex; align-items: center; justify-content: space-between; height: max(calc(0.26 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); padding: 0 calc(0.08 * var(--ui-unit, 1rem)); background: #2b2e2e; }
.rseat__strip i { width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.04 * var(--ui-unit, 1rem)); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 3px, transparent 3px calc(0.05 * var(--ui-unit, 1rem))); }
.rseat__strip span { font-size: max(calc(.12 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); color: #8d9391; }
.rseat.is-ready .rseat__strip { background: #4fe8c0; }
.rseat.is-ready .rseat__strip i { background: repeating-linear-gradient(90deg, rgba(8, 34, 27, .6) 0 3px, transparent 3px calc(0.05 * var(--ui-unit, 1rem))); }
.rseat.is-ready .rseat__strip span { color: #08221b; }
.rseat__art { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #1f2222, #141616);
  border: 2px solid #2b2e2e; border-top: 0; }
.rseat.is-ready .rseat__art { border-color: #4fe8c0; box-shadow: 0 0 calc(0.2 * var(--ui-unit, 1rem)) rgba(79, 232, 192, .35); }
.rseat__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.rseat.is-ready .rseat__art::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(47, 207, 159, .85)); pointer-events: none; }
.rseat__glyph { font-size: max(calc(.9 * var(--utility-text, var(--t))), calc(0.4 * var(--ui-unit, 1rem))); font-weight: 900; color: rgba(255, 255, 255, .25); }
.rseat__glyph .icon { width: max(calc(1 * var(--ui-unit, 1rem)), calc(0.5 * var(--ui-unit, 1rem))); height: max(calc(1 * var(--ui-unit, 1rem)), calc(0.5 * var(--ui-unit, 1rem))); }
.rseat__host { position: absolute; top: calc(0.14 * var(--ui-unit, 1rem)); left: 50%; transform: translateX(-50%); z-index: 1; padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)); font-size: max(calc(.18 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 800;
  color: #08221b; background: #4fe8c0; border-radius: calc(0.04 * var(--ui-unit, 1rem)); white-space: nowrap; }
.rseat__lost { position: absolute; left: 0; right: 0; top: 40%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.14 * var(--ui-unit, 1rem)) 0;
  font-size: max(calc(.24 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); font-weight: 800; color: #ff7a8a; background: rgba(80, 10, 18, .85); }
.rseat__lost .icon { width: 1.2em; height: 1.2em; }
.rseat.is-offline .rseat__art img { filter: grayscale(.8) brightness(.6); }
.rseat__state { position: absolute; left: 0; right: 0; bottom: calc(0.14 * var(--ui-unit, 1rem)); z-index: 1; display: flex; align-items: center; justify-content: center; gap: calc(0.1 * var(--ui-unit, 1rem));
  font-size: max(calc(.26 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.rseat:not(.is-ready) .rseat__state { color: #c9cecc; font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); }
.rseat__box { display: grid; place-items: center; width: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); height: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); border: 2px solid currentColor; border-radius: calc(0.04 * var(--ui-unit, 1rem)); background: rgba(0, 0, 0, .25); }
.rseat__box .icon { width: 80%; height: 80%; }
.rseat__kick { position: absolute; right: calc(-0.08 * var(--ui-unit, 1rem)); top: calc(-0.12 * var(--ui-unit, 1rem)); z-index: 3; display: inline-flex; align-items: center; height: max(calc(0.4 * var(--ui-unit, 1rem)), calc(0.24 * var(--ui-unit, 1rem))); padding: 0 calc(0.1 * var(--ui-unit, 1rem)); color: #ff8a96;
  background: #3b1218; border: 1px solid rgba(255, 120, 130, .6); border-radius: calc(9.99 * var(--ui-unit, 1rem)); cursor: pointer; }
.rseat__kick .icon { width: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); height: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); }
.rseat__kick .icon + .icon { width: max(calc(0.14 * var(--ui-unit, 1rem)), calc(0.09 * var(--ui-unit, 1rem))); margin-left: -2px; }
.rseat__kick:hover:not(:disabled) { filter: brightness(1.3); }
.rseat__plate { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(0.1 * var(--ui-unit, 1rem)); align-items: center;
  min-height: max(calc(0.76 * var(--ui-unit, 1rem)), calc(0.46 * var(--ui-unit, 1rem))); margin-top: calc(0.08 * var(--ui-unit, 1rem)); padding: calc(0.06 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); background: linear-gradient(90deg, #232626, #161818); border: 1px solid rgba(255, 255, 255, .1); }
.rseat.is-ready .rseat__plate { border-color: rgba(79, 232, 192, .55); }
.rseat.is-me .rseat__plate { background: linear-gradient(90deg, #26302d, #161a19); }
.rseat__plate .avatar { grid-row: 1 / 3; }
.rseat__who { display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); min-width: 0; font-size: max(calc(.18 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); }
.rseat__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rseat__doc { font-size: max(calc(.11 * var(--utility-text, var(--t))), calc(0.08 * var(--ui-unit, 1rem))); letter-spacing: .1em; color: #7f8583; }
.rseat__me { position: absolute; left: calc(-0.1 * var(--ui-unit, 1rem)); top: calc(-0.1 * var(--ui-unit, 1rem)); display: grid; place-items: center; width: max(calc(0.26 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); height: max(calc(0.26 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); color: #08221b;
  background: #4fe8c0; border-radius: 3px; }
.rseat__me .icon { width: 80%; height: 80%; }
.rseat__plate--empty { border-style: dashed; border-color: rgba(255, 255, 255, .12); background: none; }
.rseat--empty .rseat__art { background: linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .06) 50%, transparent 53%), #141616; }
.rseat__invite { display: flex; flex-direction: column; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.2 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); font: inherit; color: #eef0ef; background: none; border: 0; cursor: pointer; }
.rseat__plus { position: relative; width: max(calc(0.9 * var(--ui-unit, 1rem)), calc(0.46 * var(--ui-unit, 1rem))); height: max(calc(0.9 * var(--ui-unit, 1rem)), calc(0.46 * var(--ui-unit, 1rem))); }
.rseat__plus::before, .rseat__plus::after { content: ''; position: absolute; background: #f2f4f3; box-shadow: 0 0 calc(0.1 * var(--ui-unit, 1rem)) rgba(255, 255, 255, .5); }
.rseat__plus::before { left: 50%; top: 0; bottom: 0; width: calc(0.07 * var(--ui-unit, 1rem)); transform: translateX(-50%); } .rseat__plus::after { top: 50%; left: 0; right: 0; height: calc(0.07 * var(--ui-unit, 1rem)); transform: translateY(-50%); }
.rseat__invite b { font-size: max(calc(.26 * var(--utility-text, var(--t))), calc(0.15 * var(--ui-unit, 1rem))); }
.rseat__invite small { font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #8d9391; text-align: center; }
.rseat__invite:hover .rseat__plus::before, .rseat__invite:hover .rseat__plus::after { background: #5df0c6; }
.rseat__wait { display: flex; flex-direction: column; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); color: #b7bdbb; }
.rseat__wait svg { width: max(calc(0.7 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); height: auto; fill: none; stroke: currentColor; stroke-width: 3; }
.rseat__wait small { padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.08 * var(--ui-unit, 1rem)); font-family: var(--font-display); font-size: max(calc(.1 * var(--utility-text, var(--t))), calc(0.07 * var(--ui-unit, 1rem))); letter-spacing: .1em; background: rgba(255, 255, 255, .08); }
.rseat--empty.is-searching .rseat__wait { animation: mf-blip 1.6s ease-in-out infinite; }
.rseat__noinfo { position: absolute; right: calc(0.12 * var(--ui-unit, 1rem)); bottom: calc(0.3 * var(--ui-unit, 1rem)); font-family: var(--font-display); font-size: max(calc(.12 * var(--utility-text, var(--t))), calc(0.08 * var(--ui-unit, 1rem))); letter-spacing: .1em; color: rgba(255, 255, 255, .15); }
.rseat__art.is-pickable { cursor: pointer; }
.rseat__pick { position: absolute; right: calc(0.08 * var(--ui-unit, 1rem)); top: calc(0.5 * var(--ui-unit, 1rem)); z-index: 2; display: inline-flex; align-items: center; gap: calc(0.04 * var(--ui-unit, 1rem)); height: max(calc(0.36 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem))); padding: 0 calc(0.1 * var(--ui-unit, 1rem));
  font: inherit; font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); font-weight: 700; color: #eef0ef; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); border-radius: calc(9.99 * var(--ui-unit, 1rem));
  cursor: pointer; opacity: .75; transition: opacity var(--t-fast); }
.rseat__pick .icon { width: 1.1em; height: 1.1em; }
.rseat__art:hover .rseat__pick, .rseat__pick:focus-visible { opacity: 1; border-color: #5df0c6; }
@media (max-aspect-ratio: 1/1) {
  .rseat { --w: max(calc(1.8 * var(--ui-unit, 1rem)), 42vw); }
}
@media (prefers-reduced-motion: reduce) {
  .rseat, .rseat__wait { animation: none !important; }
}
:root { --tr-ease: cubic-bezier(.16, .84, .3, 1); }
@keyframes tr-fade { from { opacity: 0; } }
@keyframes tr-out { to { opacity: 0; } }
@keyframes tr-veil { from { background-color: transparent; } }
@keyframes tr-lift { to { background-color: transparent; } }
@keyframes tr-right { from { opacity: 0; transform: translateX(calc(0.36 * var(--ui-unit, 1rem))); } }
@keyframes tr-left { from { opacity: 0; transform: translateX(calc(-0.36 * var(--ui-unit, 1rem))); } }
@keyframes tr-rise { from { opacity: 0; transform: translateY(calc(0.22 * var(--ui-unit, 1rem))); } }
@keyframes tr-zoom { from { opacity: 0; transform: scale(1.04); } }
@keyframes tr-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes tr-card { from { opacity: 0; transform: translateY(calc(0.16 * var(--ui-unit, 1rem))) scale(1.03); filter: brightness(1.9) saturate(.3); } 55% { filter: none; } }
@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); } }
@keyframes tr-draw { to { stroke-dashoffset: 0; } }
.proto { animation: tr-veil 150ms linear backwards; }
.proto.is-chained { animation: none; }
.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 { 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; }
.proto::after { content: ''; position: absolute; left: 50%; bottom: max(calc(0.5 * var(--ui-unit, 1rem)), calc(0.24 * var(--ui-unit, 1rem))); z-index: 9; width: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); height: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem)));
  border: 2px solid rgba(223, 230, 226, .55); box-shadow: inset 0 0 0 3px #0a0b0b, inset 0 0 0 calc(0.05 * var(--ui-unit, 1rem)) rgba(223, 230, 226, .3); pointer-events: none; opacity: 0;
  animation: tr-diamond 720ms ease-out 60ms both; }
.proto.is-chained::after { animation-delay: 0ms; }
.proto.is-leaving { pointer-events: none; animation: tr-lift 170ms linear 130ms forwards; }
.proto.is-leaving > * { animation: tr-out 140ms ease-in forwards; }
.proto.is-leaving::after { display: none; }
@keyframes tr-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tr-dots { to { width: 1.1em; } }
.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; }
.ps { animation: tr-fade 320ms ease-out backwards; }
.lobby-hub .hub-bg { animation: tr-fade 560ms ease-out backwards; }
.lobby-hub > .topbar { animation: tr-fade 320ms ease-out 120ms backwards; }
.hub-center { animation: tr-zoom 600ms var(--tr-ease) 140ms backwards; }
.hub-side { animation: tr-left 480ms var(--tr-ease) 220ms backwards; }
.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; }
.rseat { animation: tr-card 480ms var(--tr-ease) backwards; animation-delay: calc(150ms + var(--i, 0) * 70ms); }
.rseat--empty { transition: opacity 320ms ease; }
.rseat--empty.is-searching { opacity: .5; }
.rseat.is-flash .rseat__art { animation: tr-glow 700ms ease-out; }
@keyframes tr-glow { 20% { box-shadow: 0 0 calc(0.5 * var(--ui-unit, 1rem)) rgba(120, 255, 215, .9), 0 0 calc(0.12 * var(--ui-unit, 1rem)) #b9ffe9; border-color: #b9ffe9; } }
.rseat.is-flash .rseat__art::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(214, 255, 243, .95), rgba(79, 232, 192, .7)); animation: tr-wash 700ms ease-out forwards; }
@keyframes tr-wash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
.rseat.is-flash .rseat__clip::after { content: ''; position: absolute; left: 50%; bottom: 100%; width: calc(0.06 * var(--ui-unit, 1rem)); height: calc(0.16 * var(--ui-unit, 1rem)); transform-origin: 50% 100%;
  background: linear-gradient(0deg, #c9fff0, rgba(93, 240, 198, 0)); box-shadow: 0 0 calc(0.08 * var(--ui-unit, 1rem)) #5df0c6; animation: tr-beam 700ms ease-out forwards; }
@keyframes tr-beam { 0% { opacity: 0; transform: translateX(-50%) scaleY(0); } 22% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1.3); } }
.rseat.is-flash .rseat__state { animation: tr-pop 380ms cubic-bezier(.3, 1.7, .5, 1) 100ms backwards; }
@keyframes tr-slide-out { to { opacity: 0; transform: translateX(calc(0.36 * var(--ui-unit, 1rem))); } }
@keyframes tr-pop-up { from { opacity: 0; transform: translateX(-50%) translateY(calc(0.12 * var(--ui-unit, 1rem))) scale(.96); } }
@keyframes tr-pop-down { to { opacity: 0; transform: translateX(-50%) translateY(calc(0.08 * var(--ui-unit, 1rem))) scale(.97); } }
@keyframes tr-found { 0% { clip-path: inset(0 0 0 100%); filter: brightness(2.4) saturate(.6); } 55% { clip-path: inset(0); filter: brightness(1.7); }
  100% { clip-path: inset(0); filter: none; } }
@keyframes tr-found-glow { from { box-shadow: inset 0 calc(-0.2 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem)) calc(-0.2 * var(--ui-unit, 1rem)) rgba(150, 255, 222, .2); } to { box-shadow: inset 0 calc(-0.5 * var(--ui-unit, 1rem)) calc(0.9 * var(--ui-unit, 1rem)) calc(-0.2 * var(--ui-unit, 1rem)) rgba(150, 255, 222, .6); } }
@keyframes tr-glitch-a { 0% { opacity: 1; transform: translateX(30%); } 14% { opacity: 1; transform: translateX(-8%) scaleY(1.2); } 28% { opacity: .85; transform: translateX(12%) scaleY(.5); }
  42% { opacity: .6; transform: translateX(-4%); } 56% { opacity: .9; transform: scaleY(.2); } 70%, 100% { opacity: 0; transform: none; } }
@keyframes tr-glitch-b { 0% { opacity: 0; } 10% { opacity: .95; transform: translateX(-24%); } 24% { opacity: .95; transform: translateX(10%) scaleY(.6); }
  38% { opacity: .7; transform: translateX(-6%) scaleY(1.3); } 52% { opacity: .4; transform: none; } 64%, 100% { opacity: 0; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .proto, .proto *, .proto::after, .lobby-hub * { animation-delay: 0ms !important; }
  .proto::after { display: none; }
}

/* Browser-local achievements, adapted from fork b2bd17af; no account or cloud widgets. */
.hub-ach { position: relative; width: 100%; display: flex; flex-direction: column; margin-bottom: calc(0.1 * var(--ui-unit, 1rem)); padding: 0; cursor: pointer; text-align: left; color: #eef3f1;
  background: #0c1110; border: 1px solid rgba(220, 230, 226, .16); box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .45); transition: border-color var(--t-fast, 150ms), filter var(--t-fast, 150ms); }
.hub-ach:hover, .hub-ach:focus-visible { border-color: var(--mint-a35, 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: calc(0.88 * var(--ui-unit, 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 .hub-ach__mark { position: relative; z-index: 1; display: grid; place-items: center; }
.hub-ach .hub-ach__mark .emblem { margin: 0; gap: calc(0.06 * var(--ui-unit, 1rem)); animation: none; }
.hub-ach .hub-ach__mark .emblem__svg { width: calc(0.52 * var(--ui-unit, 1rem)); height: calc(0.56 * var(--ui-unit, 1rem)); filter: drop-shadow(0 0 calc(0.04 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .6)); }
.hub-ach .hub-ach__mark .emblem__svg circle { fill: #15110c; animation: none; }
.hub-ach .hub-ach__mark .emblem__svg circle.is-accent { fill: #2cf0b8; }
.hub-ach .hub-ach__mark .emblem__bracket { height: calc(0.66 * var(--ui-unit, 1rem)); width: calc(0.07 * var(--ui-unit, 1rem)); border-width: 1px; border-color: rgba(20, 16, 10, .55); }
.hub-ach__rank { position: absolute; left: calc(0.1 * var(--ui-unit, 1rem)); top: calc(0.1 * var(--ui-unit, 1rem)); z-index: 1; width: calc(0.52 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; align-items: center; gap: calc(0.01 * var(--ui-unit, 1rem)); padding: calc(0.04 * var(--ui-unit, 1rem)) 0 calc(0.03 * var(--ui-unit, 1rem));
  background: rgba(14, 18, 17, .55); border: 1px solid rgba(240, 244, 243, .4); }
.hub-ach__rank > .icon { width: calc(0.3 * var(--ui-unit, 1rem)); height: calc(0.3 * var(--ui-unit, 1rem)); color: #eef3f1; }
.hub-ach__rank small { display: inline-flex; align-items: center; gap: calc(0.02 * var(--ui-unit, 1rem)); font-size: calc(.13 * var(--utility-text, var(--t))); color: #e6ebe9; }
.hub-ach__rank small .icon { width: calc(0.12 * var(--ui-unit, 1rem)); height: calc(0.12 * var(--ui-unit, 1rem)); }
.hub-ach__label { position: relative; display: flex; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); height: calc(0.42 * var(--ui-unit, 1rem)); padding: 0 calc(0.14 * var(--ui-unit, 1rem)); background: linear-gradient(90deg, rgba(20, 26, 25, .96), rgba(14, 18, 17, .96));
  border-top: 1px solid rgba(220, 230, 226, .14); font-size: calc(.21 * var(--utility-text, var(--t))); font-weight: 700; white-space: nowrap; }
.hub-ach__label::before, .hub-ach__label::after { content: ''; position: absolute; top: calc(0.06 * var(--ui-unit, 1rem)); bottom: calc(0.06 * var(--ui-unit, 1rem)); width: calc(0.06 * var(--ui-unit, 1rem)); border: 1px solid rgba(220, 230, 226, .3); }
.hub-ach__label::before { left: calc(0.04 * var(--ui-unit, 1rem)); border-right: 0; }
.hub-ach__label::after { right: calc(0.04 * var(--ui-unit, 1rem)); border-left: 0; }
.hub-ach__badge { width: calc(0.24 * var(--ui-unit, 1rem)); height: calc(0.24 * var(--ui-unit, 1rem)); fill: #e8eeec; flex: none; }
.hub-ach__lv { margin-left: auto; font-size: calc(.15 * var(--utility-text, var(--t))); color: var(--mint-400); font-weight: 600; }
/* Achievement panel design copied from Stardust-minus d6e96f4; local data adapters stay in JS. */
/* ---- the panel ---- */
/* the reference clip's order: the lobby blurs at once, a diamond loader while the data comes, then the panel fades in */
.ach { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; background: rgba(2, 4, 4, .62); -webkit-backdrop-filter: blur(calc(0.06 * var(--ui-unit, 1rem))); backdrop-filter: blur(calc(0.06 * var(--ui-unit, 1rem))); animation: ach-fade 140ms both; }
.ach.is-closing { animation: ach-fade 180ms reverse forwards; }
@keyframes ach-fade { from { opacity: 0; } }
.ach__loader { position: absolute; left: 50%; bottom: 9%; width: calc(0.9 * var(--ui-unit, 1rem)); height: calc(0.9 * var(--ui-unit, 1rem)); margin-left: calc(-0.45 * var(--ui-unit, 1rem)); display: grid; place-items: center; pointer-events: none; }
.ach__loader i, .ach__loader b { grid-area: 1 / 1; transform: rotate(45deg); }
.ach__loader i { width: calc(0.56 * var(--ui-unit, 1rem)); height: calc(0.56 * var(--ui-unit, 1rem)); border: 2px solid rgba(240, 244, 243, .9); animation: ach-dia 1.1s var(--ease-out) infinite; }
.ach__loader i + i { animation-delay: .55s; }
.ach__loader b { width: calc(0.24 * var(--ui-unit, 1rem)); height: calc(0.24 * var(--ui-unit, 1rem)); border: 2px solid #f4f7f6; animation: ach-dia-core 1.1s linear infinite; }
@keyframes ach-dia { from { transform: rotate(45deg) scale(.55); opacity: 1; } to { transform: rotate(45deg) scale(1.4); opacity: 0; } }
@keyframes ach-dia-core { to { transform: rotate(225deg); } }
.ach__box { position: relative; width: min(calc(17.4 * var(--ui-unit, 1rem)), calc(100vw - calc(1.1 * var(--ui-unit, 1rem)))); height: min(calc(9.06 * var(--ui-unit, 1rem)), calc(var(--sp-vh, 1vh) * 100 - calc(0.9 * var(--ui-unit, 1rem)))); display: flex; flex-direction: column;
  background: radial-gradient(60% 70% at 70% 60%, rgba(30, 70, 62, .3), transparent 70%), #0a0d0d; box-shadow: 0 0 0 1px rgba(220, 230, 226, .1), 0 calc(0.2 * var(--ui-unit, 1rem)) calc(0.6 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .7);
  animation: ach-in 240ms var(--ease-out) both;
 }
@keyframes ach-in { from { opacity: 0; transform: scale(.985); } }
.ach__box::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px calc(0.04 * var(--ui-unit, 1rem))); }
.ach__head { position: relative; flex: none; height: calc(1.27 * var(--ui-unit, 1rem)); display: flex; align-items: stretch; overflow: hidden;
  background: linear-gradient(180deg, #1b1f1e, #141716); border-bottom: 1px solid rgba(220, 230, 226, .08); }
.ach__head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(4.6 * var(--ui-unit, 1rem)); opacity: .35; pointer-events: none;
  background: linear-gradient(160deg, transparent 40%, rgba(150, 160, 158, .35) 41% 46%, transparent 47%), linear-gradient(200deg, transparent 50%, rgba(150, 160, 158, .3) 51% 55%, transparent 56%); }
.ach__logo { position: relative; display: flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); padding-left: calc(0.45 * var(--ui-unit, 1rem)); color: #a7b0ad; }
.ach__logo svg { width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.38 * var(--ui-unit, 1rem)); }
.ach__logo b { font-family: var(--font-display); font-size: calc(.17 * var(--utility-text, var(--t))); line-height: .95; font-weight: 600; }
.ach__band { position: relative; margin-left: auto; width: calc(8.7 * var(--ui-unit, 1rem)); display: flex; align-items: center; gap: calc(0.3 * var(--ui-unit, 1rem)); padding-left: calc(2.2 * var(--ui-unit, 1rem));
  background: linear-gradient(90deg, transparent, rgba(220, 128, 36, .82) 24%, #f0a23a 60%, #f3b04a); }
.ach__band::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(100deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px calc(0.09 * var(--ui-unit, 1rem))); }
.ach__dunes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ach__dunes path { fill: rgba(150, 64, 8, .3); }
.ach__dunes path.is-far { fill: rgba(255, 220, 150, .2); }
.ach__band .emblem { margin: 0; gap: calc(0.06 * var(--ui-unit, 1rem)); animation: none; }
.ach__band .emblem__svg { width: calc(0.7 * var(--ui-unit, 1rem)); height: calc(0.76 * var(--ui-unit, 1rem)); }
.ach__band .emblem__svg circle { fill: #15110c; animation: none; }
.ach__band .emblem__svg circle.is-accent { fill: #15110c; filter: none; }
.ach__band .emblem__bracket { height: calc(0.95 * var(--ui-unit, 1rem)); width: calc(0.1 * var(--ui-unit, 1rem)); border-width: 2px; border-color: rgba(20, 16, 10, .7); }
.ach__titles { position: relative; display: flex; flex-direction: column; line-height: 1.05; }
.ach__titles i { font-family: var(--font-display); font-style: normal; font-size: calc(.3 * var(--utility-text, var(--t))); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px rgba(30, 22, 12, .6); }
.ach__titles b { font-size: calc(.38 * var(--utility-text, var(--t))); font-weight: 900; color: #16110a; white-space: nowrap; }
.ach__body { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.7 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem)) calc(0.66 * var(--ui-unit, 1rem)); scrollbar-width: thin; scrollbar-color: rgba(220, 230, 226, .45) transparent; }
.ach__body::-webkit-scrollbar { width: calc(0.07 * var(--ui-unit, 1rem)); }
.ach__body::-webkit-scrollbar-thumb { background: rgba(220, 230, 226, .45); border-radius: calc(0.04 * var(--ui-unit, 1rem)); }
.ach__close { position: absolute; right: calc(-0.52 * var(--ui-unit, 1rem)); top: calc(-0.36 * var(--ui-unit, 1rem)); z-index: 2; width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.5 * var(--ui-unit, 1rem)); display: grid; place-items: center; padding: 0; border: 0; background: none; color: #f4f7f6; cursor: pointer; }
.ach__close .icon { width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.5 * var(--ui-unit, 1rem)); filter: drop-shadow(0 0 calc(0.04 * var(--ui-unit, 1rem)) #000); }
.ach__close:hover, .ach__close:focus-visible { color: var(--mint-400); outline: none; }
.ach__foot { position: absolute; right: calc(-0.06 * var(--ui-unit, 1rem)); bottom: calc(-0.16 * var(--ui-unit, 1rem)); z-index: 2; padding: calc(0.06 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)); font-size: calc(.2 * var(--utility-text, var(--t))); color: #e2e8e6; background: rgba(16, 22, 21, .94);
  box-shadow: inset 0 0 0 1px rgba(78, 216, 175, .35); }

/* the top area: plate + mode table | the 评语 hexagon */
.ach-top-area { display: grid; grid-template-columns: minmax(0, calc(9.1 * var(--ui-unit, 1rem))) minmax(0, 1fr); gap: calc(0.3 * var(--ui-unit, 1rem)); padding-top: calc(0.3 * var(--ui-unit, 1rem)); }
.ach-plate { display: flex; gap: calc(0.24 * var(--ui-unit, 1rem)); align-items: flex-start; }
.ach-card { position: relative; width: calc(6.15 * var(--ui-unit, 1rem)); height: calc(1.92 * var(--ui-unit, 1rem)); flex: none; display: flex; align-items: center; gap: calc(0.18 * var(--ui-unit, 1rem)); padding: calc(0.16 * var(--ui-unit, 1rem)); overflow: hidden; border-radius: calc(0.06 * var(--ui-unit, 1rem));
  background: linear-gradient(118deg, #e23443 0 46%, #2b2e33 46% 50%, #f2f4f3 50% 56%, #2fb6c6 56%); }
.ach-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 60%); pointer-events: none; }
.ach-card__ava { position: relative; z-index: 1; width: calc(1.6 * var(--ui-unit, 1rem)); height: calc(1.6 * var(--ui-unit, 1rem)); flex: none; display: grid; place-items: center; background: #1d2423; border: 2px solid #f4f7f6; }
.ach-card__ava img { width: 100%; height: 100%; object-fit: cover; }
button.ach-card__ava { padding: 0; font: inherit; color: inherit; cursor: pointer; }
button.ach-card__ava:hover, button.ach-card__ava:focus-visible { border-color: var(--mint-400); }
.ach-card__glyph { font-size: calc(.7 * var(--utility-text, var(--t))); font-weight: 900; color: #4af2c4; }
.ach-card__lv { position: absolute; left: calc(-0.16 * var(--ui-unit, 1rem)); top: calc(-0.14 * var(--ui-unit, 1rem)); width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.5 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: .9;
  border-radius: 50%; background: #111; border: 3px solid #ffd21e; color: #fff; }
.ach-card__lv b { font-family: var(--font-display); font-size: calc(.2 * var(--utility-text, var(--t))); }
.ach-card__lv small { font-size: calc(.09 * var(--utility-text, var(--t))); }
.ach-card__who { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(0.08 * var(--ui-unit, 1rem)); align-self: flex-start; padding-top: calc(0.16 * var(--ui-unit, 1rem)); }
.ach-card__name { font-size: calc(.3 * var(--utility-text, var(--t))); font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 calc(0.02 * var(--ui-unit, 1rem)) calc(0.04 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .5); }
.ach-card__tag { margin-left: calc(0.02 * var(--ui-unit, 1rem)); color: rgba(255, 255, 255, .8); font-weight: 400; }
.ach-card__id { align-self: flex-start; padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); font-size: calc(.19 * var(--utility-text, var(--t))); color: #f0d6d8; background: rgba(120, 10, 20, .55); border-radius: calc(0.03 * var(--ui-unit, 1rem)); white-space: nowrap; }
.ach-card__brand { position: absolute; right: calc(0.16 * var(--ui-unit, 1rem)); bottom: calc(0.12 * var(--ui-unit, 1rem)); z-index: 1; font-family: var(--font-display); font-size: calc(.15 * var(--utility-text, var(--t))); line-height: .95; font-weight: 600; color: rgba(255, 255, 255, .85); text-align: right; }
/* 已获奖杯 / 获赞数, each with its badge */
.ach-counts { display: grid; grid-template-columns: auto auto; column-gap: calc(0.12 * var(--ui-unit, 1rem)); row-gap: calc(0.14 * var(--ui-unit, 1rem)); align-items: center; padding-top: calc(0.06 * var(--ui-unit, 1rem)); }
.ach-counts__badge { width: calc(0.64 * var(--ui-unit, 1rem)); height: calc(0.64 * var(--ui-unit, 1rem)); display: grid; place-items: center; }
.ach-counts__badge svg { width: 100%; height: 100%; }
.ach-counts__badge.is-trophy .tbadge { width: 100%; height: 100%; }
.ach-counts__badge.is-like rect { fill: #e8823a; stroke: #ffe2c6; stroke-width: 2; }
.ach-counts__ink { fill: #2a1606; }
.ach-counts__row { display: flex; flex-direction: column; line-height: 1.1; }
.ach-counts__row small { display: inline-flex; align-items: center; gap: calc(0.04 * var(--ui-unit, 1rem)); font-size: calc(.22 * var(--utility-text, var(--t))); color: #b9c2bf; white-space: nowrap; }
.ach-counts__row small .icon { width: calc(0.18 * var(--ui-unit, 1rem)); height: calc(0.18 * var(--ui-unit, 1rem)); }
.ach-counts__row b { font-family: var(--font-display); font-size: calc(.3 * var(--utility-text, var(--t))); color: #f4f7f6; }
.ach-modes { margin-top: calc(0.3 * var(--ui-unit, 1rem)); background: rgba(22, 32, 30, .55); }
.ach-modes__row { display: grid; grid-template-columns: calc(1.75 * var(--ui-unit, 1rem)) repeat(3, minmax(0, 1fr)); align-items: center; height: calc(1.8 * var(--ui-unit, 1rem)); }
.ach-modes__row + .ach-modes__row .ach-modes__cell { border-top: 1px solid rgba(220, 230, 226, .1); }
.ach-modes__mode { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(0.06 * var(--ui-unit, 1rem)); background: rgba(28, 92, 80, .42); color: #4af2c4; }
.ach-modes__mode .icon { width: calc(0.24 * var(--ui-unit, 1rem)); height: calc(0.24 * var(--ui-unit, 1rem)); }
.ach-modes__mode b { font-size: calc(.28 * var(--utility-text, var(--t))); white-space: nowrap; }
.ach-modes__cell { height: calc(1.2 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; justify-content: center; padding-left: calc(0.3 * var(--ui-unit, 1rem)); }
.ach-modes__cell b { font-family: var(--font-display); font-size: calc(.42 * var(--utility-text, var(--t))); line-height: 1.05; color: #4af2c4; font-weight: 500; }
.ach-modes__cell small { font-size: calc(.25 * var(--utility-text, var(--t))); color: #a9b3b0; white-space: nowrap; }
.ach-hex { position: relative; min-height: calc(4.4 * var(--ui-unit, 1rem)); }
/* the reference's hexagon: six solid mint triangles, dark gaps, a ruler inside each outer edge, a dark hub, a soft glow */
.ach-hex__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 calc(0.14 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .3)); }
.ach-hex__seg polygon { fill: #5cd3b2; stroke: rgba(225, 255, 246, .32); stroke-width: 1.5; stroke-linejoin: round; }
.ach-hex__ticks line { stroke: rgba(8, 48, 38, .34); stroke-width: 2; }
.ach-hex__hub { fill: #0b100f; stroke: rgba(8, 48, 38, .7); stroke-width: 5; }
.ach-hex__seg { animation: ach-seg 380ms var(--ease-out) calc(60ms + var(--i) * 50ms) both; transform-origin: 0 0; }
@keyframes ach-seg { from { opacity: 0; transform: scale(.72); } }
.ach-hex__cap { position: absolute; left: calc(0.1 * var(--ui-unit, 1rem)); top: 0; display: grid; grid-template-columns: auto auto; column-gap: calc(0.08 * var(--ui-unit, 1rem)); align-items: center; font-family: var(--font-display);
  font-size: calc(.16 * var(--utility-text, var(--t))); letter-spacing: .04em; color: rgba(220, 230, 226, .3); white-space: nowrap; pointer-events: none; }
.ach-hex__cap i { width: calc(0.06 * var(--ui-unit, 1rem)); height: calc(0.06 * var(--ui-unit, 1rem)); background: var(--mint-400); }
.ach-hex__cap small { grid-column: 2; width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.08 * var(--ui-unit, 1rem)); margin-top: calc(0.04 * var(--ui-unit, 1rem)); background: rgba(74, 242, 196, .4); }
.ach-hex__label { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; line-height: 1.15; white-space: nowrap; isolation: isolate;
  animation: ach-pop 320ms var(--ease-out) calc(180ms + var(--i) * 50ms) both; }
.ach-hex__label b { position: relative; padding: 0 calc(0.1 * var(--ui-unit, 1rem)); font-family: var(--font-display); font-size: calc(.32 * var(--utility-text, var(--t))); color: #dafff4; font-weight: 600; text-shadow: 0 0 calc(0.08 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .9); }
.ach-hex__label b::before { content: ''; position: absolute; z-index: -1; inset: 18% -4%; border-radius: calc(0.2 * var(--ui-unit, 1rem)); background: rgba(74, 242, 196, .26); filter: blur(calc(0.05 * var(--ui-unit, 1rem))); }
.ach-hex__label span { font-size: calc(.25 * var(--utility-text, var(--t))); color: #dfe6e3; }

/* section bars */
.ach-bar { position: relative; display: flex; align-items: center; gap: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.66 * var(--ui-unit, 1rem)); margin: calc(0.5 * var(--ui-unit, 1rem)) 0 calc(0.3 * var(--ui-unit, 1rem)); padding: 0 calc(0.3 * var(--ui-unit, 1rem)) 0 calc(1.38 * var(--ui-unit, 1rem));
  background: linear-gradient(90deg, rgba(150, 160, 158, .34), rgba(110, 120, 118, .2) 70%, rgba(110, 120, 118, .1)); }
.ach-bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .4; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px calc(0.07 * var(--ui-unit, 1rem))); }
.ach-bar__icon { position: absolute; left: calc(0.3 * var(--ui-unit, 1rem)); top: calc(-0.2 * var(--ui-unit, 1rem)); width: calc(0.9 * var(--ui-unit, 1rem)); height: calc(1.04 * var(--ui-unit, 1rem)); display: grid; place-items: center; background: #2b302f; box-shadow: 0 0 0 2px rgba(200, 210, 206, .32); }
.ach-bar__icon svg { width: calc(0.52 * var(--ui-unit, 1rem)); height: calc(0.52 * var(--ui-unit, 1rem)); fill: #eef3f1; }
.ach-bar__title { position: relative; z-index: 1; font-size: calc(.34 * var(--utility-text, var(--t))); font-weight: 800; color: #f2f6f5; letter-spacing: .04em; }
.ach-bar__marks { position: relative; z-index: 1; margin-left: auto; display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); color: rgba(220, 230, 226, .55); }
.ach-bar__marks > i { width: calc(0.3 * var(--ui-unit, 1rem)); height: calc(0.3 * var(--ui-unit, 1rem)); display: grid; place-items: center; border: 1px solid rgba(220, 230, 226, .45); }
.ach-bar__marks > i .icon, .ach-bar__marks > i svg { width: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); }
.ach-bar__micro { margin-left: calc(0.04 * var(--ui-unit, 1rem)); line-height: 1.1; color: rgba(220, 230, 226, .5); }

/* 卫戍成就 */
.ach-best { display: grid; grid-template-columns: calc(3.2 * var(--ui-unit, 1rem)) minmax(0, 1fr); gap: calc(0.5 * var(--ui-unit, 1rem)); align-items: center; }
.ach-best__left { display: flex; flex-direction: column; align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); }
/* the emblem in its brackets, wired to the lineup's bracket (a dot, the wire, three ticks) */
.ach-best__mount { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); padding: calc(0.06 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); }
.ach-best__mount::before, .ach-best__mount::after { content: ''; position: absolute; top: 0; bottom: calc(0.1 * var(--ui-unit, 1rem)); width: calc(0.1 * var(--ui-unit, 1rem)); border: 2px solid rgba(200, 210, 206, .3); pointer-events: none; }
.ach-best__mount::before { left: 0; border-right: 0; }
.ach-best__mount::after { right: 0; border-left: 0; }
.ach-best__wire { position: absolute; left: 100%; top: calc(1.21 * var(--ui-unit, 1rem)); width: calc(0.5 * var(--ui-unit, 1rem)); height: 2px; background: rgba(200, 210, 206, .4); }
.ach-best__wire::before { content: ''; position: absolute; left: calc(-0.05 * var(--ui-unit, 1rem)); top: 50%; width: calc(0.1 * var(--ui-unit, 1rem)); height: calc(0.1 * var(--ui-unit, 1rem)); margin-top: calc(-0.05 * var(--ui-unit, 1rem)); border-radius: 50%; background: rgba(200, 210, 206, .6); }
.ach-best__wire::after { content: ''; position: absolute; right: 0; top: calc(-0.14 * var(--ui-unit, 1rem)); width: calc(0.14 * var(--ui-unit, 1rem)); height: calc(0.3 * var(--ui-unit, 1rem)); background: repeating-linear-gradient(180deg, rgba(200, 210, 206, .45) 0 2px, transparent 2px calc(0.14 * var(--ui-unit, 1rem))); }
.ach-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); padding: calc(0.04 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)); border-radius: calc(0.24 * var(--ui-unit, 1rem)); background: rgba(220, 230, 226, .14); font-size: calc(.26 * var(--utility-text, var(--t))); font-weight: 600; }
.ach-pill .icon { width: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); }
.ach-best__glyph { width: calc(2.1 * var(--ui-unit, 1rem)); height: calc(2.1 * var(--ui-unit, 1rem)); display: grid; place-items: center; margin-top: calc(0.1 * var(--ui-unit, 1rem)); background: #121716;
  box-shadow: 0 0 0 3px rgba(200, 210, 206, .32), 0 0 0 calc(0.1 * var(--ui-unit, 1rem)) #0b0f0e, 0 0 0 calc(calc(0.1 * var(--ui-unit, 1rem)) + 1px) rgba(200, 210, 206, .16); }
.ach-best__glyph .bglyph, .ach-top__frame .bglyph { width: calc(1.3 * var(--ui-unit, 1rem)); height: calc(1.3 * var(--ui-unit, 1rem)); display: grid; place-items: center; }
.ach-best__glyph .bglyph img, .ach-top__frame .bglyph img { width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) invert(84%) sepia(52%) saturate(640%) hue-rotate(106deg) drop-shadow(0 0 calc(0.1 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .6)); }
.ach-best__glyph .bglyph__txt, .ach-top__frame .bglyph__txt { font-size: calc(.8 * var(--utility-text, var(--t))); font-weight: 900; color: #4af2c4; }
.ach-best__label { font-size: calc(.27 * var(--utility-text, var(--t))); color: #dfe6e3; }
.ach-best__num { font-family: var(--font-display); font-size: calc(.66 * var(--utility-text, var(--t))); line-height: 1; color: #4af2c4; font-weight: 500; }
.ach-best__lineup { position: relative; display: flex; gap: calc(0.4 * var(--ui-unit, 1rem)); padding: calc(0.3 * var(--ui-unit, 1rem)) calc(0.4 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem)); }
.ach-best__lineup::before, .ach-best__lineup::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(0.1 * var(--ui-unit, 1rem)); border: 2px solid rgba(200, 210, 206, .35); pointer-events: none; }
.ach-best__lineup::before { left: 0; border-right: 0; }
.ach-best__lineup::after { right: 0; border-left: 0; }
.ach-best__rows { display: flex; flex-direction: column; gap: calc(0.26 * var(--ui-unit, 1rem)); }
.ach-best__row { display: flex; gap: calc(0.38 * var(--ui-unit, 1rem)); }
.ach-best__bonds { display: grid; grid-template-columns: repeat(2, auto); gap: calc(0.14 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)); align-content: start; padding-left: calc(0.1 * var(--ui-unit, 1rem)); }
.ach-maxima { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(0.3 * var(--ui-unit, 1rem)); margin-top: calc(0.4 * var(--ui-unit, 1rem)); }
.ach-max { position: relative; height: calc(1.5 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; justify-content: center; padding: 0 calc(0.3 * var(--ui-unit, 1rem)); overflow: hidden; }
.ach-max::before, .ach-max::after { content: ''; position: absolute; top: 0; bottom: 0; width: calc(0.1 * var(--ui-unit, 1rem)); border: 2px solid rgba(200, 210, 206, .32); pointer-events: none; }
.ach-max::before { left: 0; border-right: 0; }
.ach-max::after { right: 0; border-left: 0; }
.ach-max__label { position: relative; z-index: 1; font-size: calc(.25 * var(--utility-text, var(--t))); color: #d4dcd9; white-space: nowrap; }
.ach-max__num { position: relative; z-index: 1; display: flex; align-items: baseline; gap: calc(0.02 * var(--ui-unit, 1rem)); line-height: 1.05; }
.ach-max__num small { font-size: calc(.36 * var(--utility-text, var(--t))); color: #f4f7f6; }
.ach-max__num .num { font-family: var(--font-display); font-size: calc(.54 * var(--utility-text, var(--t))); font-weight: 500; color: var(--mx, #4af2c4); }
.ach-max__glyph { position: absolute; right: calc(0.36 * var(--ui-unit, 1rem)); top: 50%; width: calc(1.1 * var(--ui-unit, 1rem)); height: calc(1.1 * var(--ui-unit, 1rem)); margin-top: calc(-0.55 * var(--ui-unit, 1rem)); fill: var(--mx, #4af2c4); opacity: .45; }
.ach-max.is-gold { --mx: #ffcf1f; } .ach-max.is-orange { --mx: #ff8a2a; } .ach-max.is-mint { --mx: #3fe3b2; }

/* 盟约纪录 / 策略纪录 */
.ach-list { padding-bottom: calc(0.1 * var(--ui-unit, 1rem)); }
.ach-sub { margin: calc(0.26 * var(--ui-unit, 1rem)) 0 calc(0.2 * var(--ui-unit, 1rem)) calc(0.4 * var(--ui-unit, 1rem)); font-size: calc(.26 * var(--utility-text, var(--t))); color: #b9c2bf; }
.ach-sub::before { content: '-'; margin-right: calc(0.22 * var(--ui-unit, 1rem)); }
.ach-empty { margin: calc(0.1 * var(--ui-unit, 1rem)) 0 calc(0.1 * var(--ui-unit, 1rem)) calc(0.8 * var(--ui-unit, 1rem)); font-size: calc(.22 * var(--utility-text, var(--t))); color: #7d8784; }
.ach-tops { display: flex; gap: calc(1.45 * var(--ui-unit, 1rem)); padding-left: calc(2.1 * var(--ui-unit, 1rem)); }
.ach-top { display: flex; flex-direction: column; align-items: center; gap: calc(0.16 * var(--ui-unit, 1rem)); animation: ach-pop 380ms var(--ease-out) both; }
@keyframes ach-pop { from { opacity: 0; transform: translateY(calc(0.12 * var(--ui-unit, 1rem))); } }
.ach-top__frame { position: relative; width: calc(2.4 * var(--ui-unit, 1rem)); height: calc(2.4 * var(--ui-unit, 1rem)); display: grid; place-items: center; background: rgba(12, 18, 17, .7); box-shadow: inset 0 0 0 3px rgba(200, 210, 206, .3); }
.ach-top__rank { position: absolute; left: calc(0.12 * var(--ui-unit, 1rem)); top: calc(0.08 * var(--ui-unit, 1rem)); font-family: var(--font-display); font-style: normal; font-size: calc(.22 * var(--utility-text, var(--t))); color: rgba(220, 230, 226, .5); }
.ach-top__name { font-size: calc(.28 * var(--utility-text, var(--t))); font-weight: 700; color: #eef3f1; white-space: nowrap; }
.ach-tops--band { gap: calc(0.9 * var(--ui-unit, 1rem)); padding-left: calc(0.9 * var(--ui-unit, 1rem)); }
.ach-top--band { flex-direction: row; align-items: center; gap: calc(0.22 * var(--ui-unit, 1rem)); }
.ach-top--band .ach-top__frame { width: calc(2.1 * var(--ui-unit, 1rem)); height: calc(2.1 * var(--ui-unit, 1rem)); }
.ach-top--band .bandicon, .ach-mark__frame .bandicon { width: calc(1.6 * var(--ui-unit, 1rem)); height: calc(1.6 * var(--ui-unit, 1rem)); }
.ach-top--band .bandicon img, .ach-mark__frame .bandicon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 calc(0.08 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .45)); }
.ach-top__side { display: flex; flex-direction: column; gap: calc(0.06 * var(--ui-unit, 1rem)); }
.ach-top__count { display: flex; align-items: baseline; gap: calc(0.02 * var(--ui-unit, 1rem)); }
.ach-top__count small { font-size: calc(.28 * var(--utility-text, var(--t))); color: #eef3f1; }
.ach-top__count b { font-family: var(--font-display); font-size: calc(.44 * var(--utility-text, var(--t))); line-height: 1; color: #4af2c4; font-weight: 500; }
.ach-ops { display: flex; flex-wrap: wrap; gap: calc(0.26 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem)); padding-left: calc(0.95 * var(--ui-unit, 1rem)); }
.ach-op { position: relative; width: calc(1.5 * var(--ui-unit, 1rem)); height: calc(1.5 * var(--ui-unit, 1rem)); display: grid; place-items: center; }
.ach-op .uthumb { --ut: calc(1.36 * var(--ui-unit, 1rem)); border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(20, 26, 25, .9), 0 0 calc(0.2 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .22); }
.ach-op__tier { position: absolute; left: calc(0.02 * var(--ui-unit, 1rem)); bottom: calc(-0.02 * var(--ui-unit, 1rem)); min-width: calc(0.4 * var(--ui-unit, 1rem)); height: calc(0.36 * var(--ui-unit, 1rem)); padding: 0 calc(0.04 * var(--ui-unit, 1rem)); display: grid; place-items: center; font-family: var(--font-display); font-size: calc(.2 * var(--utility-text, var(--t)));
  font-weight: 700; line-height: 1; color: var(--tc, #e6eae8); background: #151818; border: 2px solid var(--tc, #e6eae8); border-radius: calc(0.05 * var(--ui-unit, 1rem)); }
.ach-op.sop--t5 .ach-op__tier { background: #151818; color: #ffc81e; border-color: #ffc81e; }
.ach-op.sop--t6 .ach-op__tier { background: #151818; color: #ff8a1d; border-color: #ff8a1d; }
.ach-marks { display: flex; flex-wrap: wrap; gap: calc(0.4 * var(--ui-unit, 1rem)); padding-left: calc(1.2 * var(--ui-unit, 1rem)); }
.ach-mark { display: flex; flex-direction: column; align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.ach-mark b { font-size: calc(.28 * var(--utility-text, var(--t))); font-weight: 700; }
.ach-mark__frame { position: relative; width: calc(2 * var(--ui-unit, 1rem)); height: calc(2 * var(--ui-unit, 1rem)); display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, rgba(74, 242, 196, .08) 0 calc(0.04 * var(--ui-unit, 1rem)), transparent calc(0.04 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem))), rgba(18, 40, 36, .7); box-shadow: inset 0 0 0 1px rgba(74, 242, 196, .3); }
.ach-mark__badge { position: absolute; right: calc(0.06 * var(--ui-unit, 1rem)); top: calc(0.06 * var(--ui-unit, 1rem)); width: calc(0.3 * var(--ui-unit, 1rem)); height: calc(0.3 * var(--ui-unit, 1rem)); display: grid; place-items: center; background: #1c1206; border: 2px solid #ff9a2a; color: #ffad3a; }
.ach-mark__badge svg { width: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); }
@media (prefers-reduced-motion: reduce) {
  .ach, .ach__box, .ach-hex__seg, .ach-hex__label, .ach-top, .ach__loader i, .ach__loader b { animation: none !important; }
}
.ach-marks--list { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(4.6 * var(--ui-unit, 1rem)), 1fr)); gap: calc(0.16 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)); padding-left: calc(0.8 * var(--ui-unit, 1rem)); }
.ach-mark--row { flex-direction: row; align-items: center; gap: calc(0.2 * var(--ui-unit, 1rem)); }
.ach-mark--row .ach-mark__frame { width: calc(1 * var(--ui-unit, 1rem)); height: calc(1 * var(--ui-unit, 1rem)); flex: none; color: rgba(74, 242, 196, .5); }
.ach-mark--row .ach-mark__frame > .icon { width: calc(0.5 * var(--ui-unit, 1rem)); height: calc(0.5 * var(--ui-unit, 1rem)); }
.ach-mark--row.is-done .ach-mark__frame { color: #4af2c4; box-shadow: inset 0 0 0 2px rgba(74, 242, 196, .7), 0 0 calc(0.14 * var(--ui-unit, 1rem)) rgba(74, 242, 196, .3); }
.ach-mark--row:not(.is-done) { opacity: .78; }
.ach-mark__badge .icon { width: calc(0.2 * var(--ui-unit, 1rem)); height: calc(0.2 * var(--ui-unit, 1rem)); }
.ach-mark__text { display: flex; flex-direction: column; gap: calc(0.04 * var(--ui-unit, 1rem)); min-width: 0; }
.ach-mark__text b { font-size: calc(.28 * var(--utility-text, var(--t))); }
.ach-mark__text small { font-size: calc(.22 * var(--utility-text, var(--t))); color: #a9b3b0; }
.ach-mark__got { font-size: calc(.2 * var(--utility-text, var(--t))); color: #4af2c4; }
.ach-mark__bar { position: relative; display: block; height: calc(0.26 * var(--ui-unit, 1rem)); background: rgba(220, 230, 226, .1); overflow: hidden; }
.ach-mark__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(74, 242, 196, .5); }
.ach-mark__bar em { position: relative; padding-left: calc(0.08 * var(--ui-unit, 1rem)); font-style: normal; font-size: calc(.18 * var(--utility-text, var(--t))); line-height: calc(0.26 * var(--ui-unit, 1rem)); color: #e6ecea; }
.ach-tops--titles { flex-wrap: wrap; gap: calc(0.3 * var(--ui-unit, 1rem)) calc(0.5 * var(--ui-unit, 1rem)); padding-left: calc(0.8 * var(--ui-unit, 1rem)); }
.ach-top--title .ach-top__frame { width: calc(1.4 * var(--ui-unit, 1rem)); height: calc(1.4 * var(--ui-unit, 1rem)); }
.ach-top--title .ach-top__frame img { width: 80%; height: 80%; object-fit: contain; }
.ach-top--title.is-none { opacity: .4; }
.ach-local { display: flex; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); margin: calc(0.4 * var(--ui-unit, 1rem)) 0 calc(0.1 * var(--ui-unit, 1rem)) calc(0.4 * var(--ui-unit, 1rem)); font-size: calc(.22 * var(--utility-text, var(--t))); color: #8c9894; }
.ach-local .icon { flex: none; width: 1.1em; height: 1.1em; }

/* Local-only data notices use the reference footer, not another toolbar or dashboard. */
.ach-local { overflow-wrap: anywhere; }
.ach-local__stats { margin-left: calc(0.12 * var(--ui-unit, 1rem)); padding: 0; color: var(--mint-400); font: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.ach__pending { width: min(calc(17.4 * var(--ui-unit, 1rem)), calc(100vw - calc(1.1 * var(--ui-unit, 1rem)))); height: min(calc(9.06 * var(--ui-unit, 1rem)), calc(var(--sp-vh, 1vh) * 100 - calc(0.9 * var(--ui-unit, 1rem)))); }
.ach__pending .ach__close { position: fixed; right: calc(0.3 * var(--ui-unit, 1rem)); top: calc(0.3 * var(--ui-unit, 1rem)); }
.ach :is(button, [tabindex]):focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }

/* ==========================================================================================
   S.W.E.E.P.报告 (2026-10-13, the owner's request; js/screens/sweep.js): a full-screen report over the lobby, laid out
   after the event's screen — a misty light-grey field, the top bar (back · ⓘ at the left, three tabs at the right), a
   detail column at the left and sections of dark tiles at the right; the enemy codex covers it when opened.
   ========================================================================================== */
.sw-open .community-chat { visibility: hidden; }
.sw {
  --sw-ink: #161b1a; --sw-tile: #262c2b; --sw-tile-2: #1a1f1e; --sw-panel: rgba(20, 25, 24, .8);
  position: fixed; inset: 0; z-index: 54; /* below 干员调配 (55), which a member opens over it */
  display: flex; flex-direction: column;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  color: #f1f4f3; background: #9aa3a2; overscroll-behavior: contain;
  animation: sw-in 200ms var(--ease-out) backwards;
}
@keyframes sw-in { from { opacity: 0; } }
.sw__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(90% 70% at 72% 8%, rgba(255, 255, 255, .62), transparent 62%),
    radial-gradient(70% 80% at -6% 108%, rgba(8, 11, 11, .92), rgba(8, 11, 11, .4) 55%, transparent 75%),
    linear-gradient(90deg, rgba(10, 13, 13, .62), rgba(10, 13, 13, .4) 36%, transparent 50%),
    linear-gradient(180deg, #c9d0cf, #9aa4a3 48%, #6d7877); }
/* a slow drift of mist and a few survey lines (drawn here, no picture) */
.sw__mist { position: absolute; inset: -20%; background:
    radial-gradient(30% 22% at 30% 40%, rgba(255, 255, 255, .18), transparent 70%),
    radial-gradient(26% 20% at 70% 70%, rgba(255, 255, 255, .12), transparent 70%);
  animation: sw-mist 38s ease-in-out infinite alternate; }
@keyframes sw-mist { to { transform: translate3d(4%, -3%, 0); } }
.sw__lines { position: absolute; inset: 0; opacity: .5; background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / calc(1.2 * var(--ui-unit, 1rem)) calc(1.2 * var(--ui-unit, 1rem)),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / calc(1.2 * var(--ui-unit, 1rem)) calc(1.2 * var(--ui-unit, 1rem));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent); }
.sw > :where(:not(.sw__bg, .sw-codex)) { position: relative; }

/* ---- top bar ---- */
.sw-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: calc(0.3 * var(--ui-unit, 1rem)); height: max(calc(1 * var(--ui-unit, 1rem)), calc(0.5 * var(--ui-unit, 1rem))); padding: 0 calc(0.34 * var(--ui-unit, 1rem)) 0 calc(0.26 * var(--ui-unit, 1rem)); }
.sw-top__left { display: flex; align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.sw-back { display: inline-flex; align-items: center; gap: calc(0.14 * var(--ui-unit, 1rem)); height: max(calc(0.66 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); padding: 0 calc(0.3 * var(--ui-unit, 1rem)) 0 calc(0.12 * var(--ui-unit, 1rem)); font: inherit; color: #eef2f1; cursor: pointer;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1.5px) 0 0 / calc(0.16 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)),
    linear-gradient(180deg, #2a302f, #171b1a);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .35); }
.sw-back:hover { border-color: rgba(255, 255, 255, .4); }
.sw-back .icon { width: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); height: max(calc(0.34 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); }
.sw-back__mark { padding-left: calc(0.16 * var(--ui-unit, 1rem)); border-left: 1px solid rgba(255, 255, 255, .22); font-family: var(--font-display); font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); letter-spacing: .2em; color: #c9d2cf; }
.sw-info { display: grid; place-items: center; width: max(calc(0.66 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); height: max(calc(0.66 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); padding: 0; color: #eef2f1; cursor: pointer;
  background: linear-gradient(180deg, #3a4140, #232827); border: 1px solid rgba(255, 255, 255, .14); }
.sw-info:hover { color: var(--mint-400); border-color: var(--mint-500); }
.sw-info .icon { width: 52%; height: 52%; }
.sw-tabs { display: flex; padding: 3px; background: rgba(214, 222, 221, .55); border: 1px solid rgba(22, 27, 26, .5); border-radius: calc(0.04 * var(--ui-unit, 1rem));
  box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(calc(0.04 * var(--ui-unit, 1rem))); backdrop-filter: blur(calc(0.04 * var(--ui-unit, 1rem))); min-width: 0; }
.sw-tab { display: inline-flex; align-items: center; justify-content: center; gap: calc(0.1 * var(--ui-unit, 1rem)); min-width: max(calc(2.3 * var(--ui-unit, 1rem)), calc(0.92 * var(--ui-unit, 1rem))); height: max(calc(0.66 * var(--ui-unit, 1rem)), calc(0.36 * var(--ui-unit, 1rem))); padding: 0 calc(0.22 * var(--ui-unit, 1rem));
  font: inherit; font-size: max(calc(.24 * var(--utility-text, var(--t))), calc(0.13 * var(--ui-unit, 1rem))); font-weight: 800; color: var(--sw-ink); background: none; border: 0; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.sw-tab:hover:not(.is-on) { background: rgba(255, 255, 255, .35); }
.sw-tab.is-on { color: #fff; background: linear-gradient(180deg, #2c3231, #151918); box-shadow: 0 calc(0.03 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .4); }
.sw-tab__icon { display: grid; place-items: center; }
.sw-tab__icon .icon { width: max(calc(0.28 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); height: max(calc(0.28 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); }

/* ---- body ---- */
.sw-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 4.3fr) minmax(0, 5.7fr); gap: calc(0.5 * var(--ui-unit, 1rem)); padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.34 * var(--ui-unit, 1rem)) calc(0.26 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)); }
.sw-left { min-height: 0; display: flex; flex-direction: column; }
.sw-right { min-height: 0; overflow-y: auto; padding: calc(0.2 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)) 0; scrollbar-width: thin; scrollbar-color: rgba(22, 27, 26, .55) transparent; }
.sw-loading { margin: calc(1 * var(--ui-unit, 1rem)) 0; text-align: center; color: var(--sw-ink); font-weight: 700; }

/* the left column */
.sw-detail { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: calc(0.14 * var(--ui-unit, 1rem)); animation: sw-in 160ms var(--ease-out) backwards; }
.sw-hero { flex: none; display: flex; flex-direction: column; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); }
.sw-hero__box { position: relative; display: grid; place-items: center; width: min(calc(3.3 * var(--ui-unit, 1rem)), 80%); height: max(calc(2.1 * var(--ui-unit, 1rem)), calc(0.96 * var(--ui-unit, 1rem))); background: rgba(30, 36, 35, .78);
  box-shadow: 0 calc(0.06 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .3); }
.sw-hero__box.is-art { width: max(calc(2.1 * var(--ui-unit, 1rem)), calc(0.96 * var(--ui-unit, 1rem))); }
.sw-hero__c { position: absolute; width: calc(0.26 * var(--ui-unit, 1rem)); height: calc(0.26 * var(--ui-unit, 1rem)); border: 2px solid rgba(240, 244, 243, .75); }
.sw-hero__c--tl { left: calc(-0.05 * var(--ui-unit, 1rem)); top: calc(-0.05 * var(--ui-unit, 1rem)); border-right: 0; border-bottom: 0; }
.sw-hero__c--br { right: calc(-0.05 * var(--ui-unit, 1rem)); bottom: calc(-0.05 * var(--ui-unit, 1rem)); border-left: 0; border-top: 0; }
.sw-hero__img { display: grid; place-items: center; width: max(calc(1.5 * var(--ui-unit, 1rem)), calc(0.7 * var(--ui-unit, 1rem))); height: max(calc(1.5 * var(--ui-unit, 1rem)), calc(0.7 * var(--ui-unit, 1rem))); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 66%, transparent 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.sw-hero__img img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 0 calc(0.08 * var(--ui-unit, 1rem)) rgba(255, 255, 255, .25)); }
.sw-hero__box.is-art .sw-hero__img { width: 88%; height: 88%; border-radius: 0; background: none; box-shadow: none; }
.sw-hero__box.is-art .sw-hero__img img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.sw-hero__txt { font-size: max(calc(.6 * var(--utility-text, var(--t))), calc(0.28 * var(--ui-unit, 1rem))); font-weight: 900; color: rgba(255, 255, 255, .7); }
.sw-hero__box > .sw-hero__img > .icon, .sw-hero__img > svg { width: 50%; height: 50%; color: rgba(255, 255, 255, .7); }
.sw-hero__name { margin: calc(0.04 * var(--ui-unit, 1rem)) 0 0; font-size: max(calc(.34 * var(--utility-text, var(--t))), calc(0.17 * var(--ui-unit, 1rem))); font-weight: 900; letter-spacing: .06em; text-shadow: 0 1px calc(0.08 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .55); }
.sw-hero__sub { font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: #c4ccca; }
.sw-facts { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); }
.sw-pill { display: inline-flex; align-items: baseline; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.04 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)); font-size: max(calc(.19 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); color: #dfe5e3;
  background: rgba(24, 29, 28, .86); border-radius: calc(9.99 * var(--ui-unit, 1rem)); box-shadow: 0 calc(0.03 * var(--ui-unit, 1rem)) calc(0.08 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .3); }
.sw-pill b { font-size: max(calc(.26 * var(--utility-text, var(--t))), calc(0.15 * var(--ui-unit, 1rem))); color: var(--mint-400); }
.sw-pill--ghost { background: rgba(24, 29, 28, .55); }
.sw-pill--ghost b { font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); color: #eef2f1; }
.sw-kind { margin-left: auto; font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); letter-spacing: .1em; color: rgba(240, 244, 243, .7); }
.sw-text { flex: 1 1 auto; min-height: max(calc(0.8 * var(--ui-unit, 1rem)), calc(0.4 * var(--ui-unit, 1rem))); overflow-y: auto; padding-right: calc(0.1 * var(--ui-unit, 1rem)); font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); line-height: 1.55; color: #f4f7f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.sw-text p { margin: 0; }
.sw-text .rt span, .sw-cd__desc span, .sw-cd__abil .rt span { font-size: inherit; }
.sw-text__h { margin: 0 0 calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.21 * var(--utility-text, var(--t))), calc(0.13 * var(--ui-unit, 1rem))); color: var(--mint-300, #8ff0d2); }
.sw-text__bonds { display: flex; flex-wrap: wrap; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); margin-top: calc(0.12 * var(--ui-unit, 1rem)) !important; font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: #c7cfcd; }
.sw-chip { display: inline-flex; align-items: center; gap: calc(0.05 * var(--ui-unit, 1rem)); padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)) calc(0.02 * var(--ui-unit, 1rem)) calc(0.05 * var(--ui-unit, 1rem)); font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: #eef2f1;
  background: rgba(24, 29, 28, .8); border: 1px solid rgba(255, 255, 255, .12); text-shadow: none; }
.sw-chip img { width: max(calc(0.22 * var(--ui-unit, 1rem)), calc(0.14 * var(--ui-unit, 1rem))); height: max(calc(0.22 * var(--ui-unit, 1rem)), calc(0.14 * var(--ui-unit, 1rem))); object-fit: contain; }
.sw-box { flex: none; display: flex; flex-direction: column; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.1 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)); background: var(--sw-panel); border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 calc(0.05 * var(--ui-unit, 1rem)) calc(0.2 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .3); }
.sw-box__head { display: flex; align-items: center; justify-content: space-between; gap: calc(0.12 * var(--ui-unit, 1rem)); min-height: max(calc(0.4 * var(--ui-unit, 1rem)), calc(0.26 * var(--ui-unit, 1rem))); }
.sw-box__k { display: inline-flex; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 800; }
.sw-box__k .icon { width: max(calc(0.22 * var(--ui-unit, 1rem)), calc(0.14 * var(--ui-unit, 1rem))); height: max(calc(0.22 * var(--ui-unit, 1rem)), calc(0.14 * var(--ui-unit, 1rem))); color: #c7cfcd; }
.sw-box__k small { margin-left: calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: var(--text-lo); }
.sw-box__note { min-width: 0; font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #aab4b1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-box__swap { margin-right: calc(0.06 * var(--ui-unit, 1rem)); color: #dfe5e3; }
.sw-look { display: inline-flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); height: max(calc(0.4 * var(--ui-unit, 1rem)), calc(0.26 * var(--ui-unit, 1rem))); padding: 0 calc(0.18 * var(--ui-unit, 1rem)); font: inherit; font-size: max(calc(.18 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 700;
  color: #eef2f1; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .22); border-radius: calc(9.99 * var(--ui-unit, 1rem)); cursor: pointer; }
.sw-look:hover { border-color: var(--mint-500); color: var(--mint-300, #8ff0d2); }
.sw-look .icon { width: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); height: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); }
.sw-ops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(0.1 * var(--ui-unit, 1rem)); }
.sw-op { --tc: var(--tier-1); position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, #d7dcda, #a9b1ae); border: 1px solid rgba(255, 255, 255, .5); }
.sw-op--t2 { --tc: var(--tier-2); } .sw-op--t3 { --tc: var(--tier-3); } .sw-op--t4 { --tc: var(--tier-4); }
.sw-op--t5 { --tc: var(--tier-5); } .sw-op--t6 { --tc: var(--tier-6); }
.sw-op:hover { border-color: var(--mint-400); }
.sw-op img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-op__txt { display: grid; place-items: center; height: 100%; font-weight: 900; color: rgba(17, 22, 20, .5); }
.sw-op__tier { position: absolute; left: 2px; bottom: 2px; min-width: max(calc(0.26 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); padding: 0 calc(0.03 * var(--ui-unit, 1rem)); font-family: var(--font-num); font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); font-weight: 900;
  line-height: max(calc(0.24 * var(--ui-unit, 1rem)), calc(0.15 * var(--ui-unit, 1rem))); text-align: center; color: var(--tc); background: rgba(10, 12, 12, .85); border: 1px solid var(--tc); }
.sw-op__sub { position: absolute; right: 0; top: 0; padding: 0 calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.12 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); font-weight: 800; color: #1a1a1a; background: var(--amber, #f2b544); }
.sw-op.is-standin img { filter: saturate(.55); }

/* enemy thumbnails */
.sw-ethumbs { display: flex; flex-wrap: wrap; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); }
.sw-ethumbs--grid { max-height: max(calc(1.9 * var(--ui-unit, 1rem)), calc(0.96 * var(--ui-unit, 1rem))); overflow-y: auto; scrollbar-width: thin; }
.sw-ethumbs__sep { padding: 0 calc(0.04 * var(--ui-unit, 1rem)) 0 calc(0.08 * var(--ui-unit, 1rem)); font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #aab4b1; border-left: 1px solid rgba(255, 255, 255, .18); }
.sw-eth { position: relative; display: block; flex: none; padding: 0; overflow: hidden; background: #3a3f3e; border: 1px solid rgba(255, 255, 255, .28); }
button.sw-eth { cursor: pointer; }
button.sw-eth:hover { border-color: #fff; }
.sw-eth--sm { width: max(calc(0.74 * var(--ui-unit, 1rem)), calc(0.4 * var(--ui-unit, 1rem))); height: max(calc(0.74 * var(--ui-unit, 1rem)), calc(0.4 * var(--ui-unit, 1rem))); }
.sw-eth--md { width: 100%; aspect-ratio: 1; }
.sw-eth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-eth > .icon { width: 60%; height: 60%; margin: 20%; color: rgba(255, 255, 255, .4); }
.sw-eth__no { position: absolute; left: 0; top: 0; padding: 0 calc(0.05 * var(--ui-unit, 1rem)); font-family: var(--font-num); font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); line-height: 1.25; color: #fff; background: rgba(0, 0, 0, .78); }
.sw-eth.is-elite { border-color: rgba(242, 181, 68, .7); }
.sw-eth.is-boss { border-color: rgba(255, 120, 90, .8); }
.sw-eth.is-on { border-color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 calc(0.14 * var(--ui-unit, 1rem)) rgba(255, 255, 255, .6); }

/* the right column: sections of tiles */
.sw-sec { position: relative; margin: calc(0.26 * var(--ui-unit, 1rem)) 0 calc(0.3 * var(--ui-unit, 1rem)); padding-bottom: calc(0.2 * var(--ui-unit, 1rem));
  background: linear-gradient(rgba(24, 29, 28, .74), rgba(24, 29, 28, .74)) top / 100% max(calc(0.62 * var(--ui-unit, 1rem)), calc(0.34 * var(--ui-unit, 1rem))) no-repeat, rgba(225, 232, 231, .16);
  box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .14); }
.sw-sec__head { position: relative; display: grid; place-items: center; height: max(calc(0.62 * var(--ui-unit, 1rem)), calc(0.34 * var(--ui-unit, 1rem))); }
.sw-sec__glyph { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); display: grid; place-items: center; width: max(calc(0.38 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem))); height: max(calc(0.38 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem)));
  color: var(--sw-ink); background: linear-gradient(180deg, #f2f5f4, #c5cdcb); box-shadow: 0 calc(0.02 * var(--ui-unit, 1rem)) calc(0.08 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .35); }
.sw-sec__glyph .icon { width: 64%; height: 64%; }
.sw-sec__name { display: inline-flex; align-items: center; gap: calc(0.14 * var(--ui-unit, 1rem)); font-size: max(calc(.25 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); font-weight: 800; letter-spacing: .1em; color: #f1f4f3; }
.sw-sec__name i { font-style: normal; font-weight: 300; font-size: 1.3em; color: rgba(241, 244, 243, .6); }
.sw-sec__name small { font-size: .6em; font-weight: 600; letter-spacing: 0; color: rgba(241, 244, 243, .5); }
.sw-sec__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(0.16 * var(--ui-unit, 1rem)); padding: calc(0.2 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)) 0; }
.sw-tile { position: relative; aspect-ratio: 1; padding: 0; overflow: visible; font: inherit; color: #eef2f1; cursor: pointer;
  background: linear-gradient(160deg, var(--sw-tile), var(--sw-tile-2)); border: 1px solid rgba(255, 255, 255, .07); border-radius: 3px;
  box-shadow: 0 calc(0.04 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform var(--t-fast), box-shadow var(--t-fast); }
.sw-tile:hover { transform: translateY(-2px); box-shadow: 0 calc(0.08 * var(--ui-unit, 1rem)) calc(0.18 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .08); }
.sw-tile.is-on { outline: 2px solid #f5f8f7; outline-offset: calc(0.05 * var(--ui-unit, 1rem)); box-shadow: 0 0 calc(0.2 * var(--ui-unit, 1rem)) rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.sw-tile__in { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: inherit; }
.sw-tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.06 * var(--ui-unit, 1rem)) calc(0.04 * var(--ui-unit, 1rem)); font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); line-height: 1.2; text-align: center;
  color: rgba(238, 242, 241, .78); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-tile__hp { position: absolute; right: 3px; top: 3px; padding: 0 calc(0.05 * var(--ui-unit, 1rem)); font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); font-weight: 800; line-height: 1.35; color: var(--mint-400); background: rgba(0, 0, 0, .6); }
/* 盟约: a dark glyph on a lit disc */
.sw-disc { display: grid; place-items: center; width: 64%; aspect-ratio: 1; margin-bottom: 10%; border-radius: 50%;
  background: radial-gradient(circle, #f6faf9 0 42%, #d3dddb 64%, #9fb1ae 100%); box-shadow: 0 0 calc(0.16 * var(--ui-unit, 1rem)) rgba(220, 240, 236, .45), inset 0 0 calc(0.06 * var(--ui-unit, 1rem)) rgba(0, 0, 0, .25); }
.sw-disc img { width: 70%; height: 70%; object-fit: contain; filter: brightness(0); opacity: .82; }
.sw-disc__txt { font-size: max(calc(.3 * var(--utility-text, var(--t))), calc(0.15 * var(--ui-unit, 1rem))); font-weight: 900; color: var(--sw-ink); }
/* 策略: the portrait (its own ring is part of the icon) */
.sw-face { display: grid; place-items: center; width: 92%; aspect-ratio: 1; margin-bottom: 4%; overflow: hidden; }
.sw-face img { width: 100%; height: 100%; object-fit: cover; }
.sw-face__txt { font-size: max(calc(.3 * var(--utility-text, var(--t))), calc(0.15 * var(--ui-unit, 1rem))); font-weight: 900; }
/* 领袖: the art; 特训: a white glyph */
.sw-art { display: block; width: 84%; aspect-ratio: 1; margin-bottom: 8%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.sw-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-glyph { display: grid; place-items: center; width: 72%; aspect-ratio: 1; margin-bottom: 8%; }
.sw-glyph img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 calc(0.08 * var(--ui-unit, 1rem)) rgba(255, 255, 255, .55)); }
.sw-glyph .icon { width: 70%; height: 70%; }
.sw-allcodex { display: flex; align-items: center; gap: calc(0.16 * var(--ui-unit, 1rem)); width: 100%; margin: 0 0 calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.14 * var(--ui-unit, 1rem)) calc(0.22 * var(--ui-unit, 1rem)); font: inherit; text-align: left; color: #eef2f1; cursor: pointer;
  background: linear-gradient(90deg, rgba(24, 29, 28, .86), rgba(24, 29, 28, .62)); border: 1px solid rgba(255, 255, 255, .12); }
.sw-allcodex:hover { border-color: var(--mint-500); }
.sw-allcodex > .icon { width: max(calc(0.36 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); height: max(calc(0.36 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); color: #c7cfcd; flex: none; }
.sw-allcodex > .icon:last-child { margin-left: auto; width: max(calc(0.26 * var(--ui-unit, 1rem)), calc(0.16 * var(--ui-unit, 1rem))); }
.sw-allcodex span { display: flex; flex-direction: column; }
.sw-allcodex b { font-size: max(calc(.22 * var(--utility-text, var(--t))), calc(0.13 * var(--ui-unit, 1rem))); }
.sw-allcodex small { font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #aab4b1; }

/* ---- the enemy codex ---- */
.sw-codex { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  padding: var(--sa-t, 0px) var(--sa-r, 0px) var(--sa-b, 0px) var(--sa-l, 0px);
  background: rgba(14, 17, 17, .88); -webkit-backdrop-filter: blur(calc(0.08 * var(--ui-unit, 1rem))); backdrop-filter: blur(calc(0.08 * var(--ui-unit, 1rem))); animation: sw-in 160ms var(--ease-out) backwards; }
.sw-codex__top { flex: none; display: flex; align-items: center; gap: calc(0.14 * var(--ui-unit, 1rem)); height: max(calc(1 * var(--ui-unit, 1rem)), calc(0.5 * var(--ui-unit, 1rem))); padding: 0 calc(0.34 * var(--ui-unit, 1rem)) 0 calc(0.26 * var(--ui-unit, 1rem)); }
.sw-codex__top .sw-back { padding-right: calc(0.12 * var(--ui-unit, 1rem)); }
.sw-codex__title { font-size: max(calc(.26 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); font-weight: 900; letter-spacing: .1em; }
.sw-scope { display: inline-flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); height: max(calc(0.42 * var(--ui-unit, 1rem)), calc(0.26 * var(--ui-unit, 1rem))); padding: 0 calc(0.12 * var(--ui-unit, 1rem)) 0 calc(0.16 * var(--ui-unit, 1rem)); font: inherit; font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem)));
  color: #eef2f1; background: rgba(78, 216, 175, .14); border: 1px solid var(--mint-700); border-radius: calc(9.99 * var(--ui-unit, 1rem)); cursor: pointer; white-space: nowrap; }
.sw-scope .icon { width: max(calc(0.16 * var(--ui-unit, 1rem)), calc(0.1 * var(--ui-unit, 1rem))); height: max(calc(0.16 * var(--ui-unit, 1rem)), calc(0.1 * var(--ui-unit, 1rem))); }
.sw-search { display: inline-flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); margin-left: auto; height: max(calc(0.46 * var(--ui-unit, 1rem)), calc(0.28 * var(--ui-unit, 1rem))); padding: 0 calc(0.12 * var(--ui-unit, 1rem)); background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .16); }
.sw-search .icon { width: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); height: max(calc(0.2 * var(--ui-unit, 1rem)), calc(0.12 * var(--ui-unit, 1rem))); color: #aab4b1; }
.sw-search input { width: max(calc(1.9 * var(--ui-unit, 1rem)), calc(1.1 * var(--ui-unit, 1rem))); font: inherit; font-size: max(calc(.17 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); color: #eef2f1; background: none; border: 0; outline: none; }
.sw-codex__body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: calc(0.3 * var(--ui-unit, 1rem)); padding: 0 calc(0.34 * var(--ui-unit, 1rem)) calc(0.26 * var(--ui-unit, 1rem)) calc(0.3 * var(--ui-unit, 1rem)); }
.sw-codex__list { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(calc(1.3 * var(--ui-unit, 1rem)), calc(0.64 * var(--ui-unit, 1rem))), 1fr)); align-content: start; gap: calc(0.14 * var(--ui-unit, 1rem));
  /* rows keep their square: the thumbnails (overflow: hidden, so no minimum height) were otherwise shrunk to fit the box */
  grid-auto-rows: max-content;
  padding: calc(0.06 * var(--ui-unit, 1rem)) calc(0.16 * var(--ui-unit, 1rem)) calc(0.06 * var(--ui-unit, 1rem)) calc(0.06 * var(--ui-unit, 1rem)); border-right: 2px solid rgba(255, 255, 255, .5); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.sw-codex__list .sw-eth__no { font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); }
.sw-codex__empty { grid-column: 1 / -1; margin: calc(0.6 * var(--ui-unit, 1rem)) 0; text-align: center; color: var(--text-lo); }
.sw-codex__side { min-height: 0; display: flex; flex-direction: column; gap: calc(0.12 * var(--ui-unit, 1rem)); }
.sw-ranks { flex: none; display: flex; align-items: stretch; height: max(calc(0.6 * var(--ui-unit, 1rem)), calc(0.34 * var(--ui-unit, 1rem))); background: #0c0f0f; border: 1px solid rgba(255, 255, 255, .1); }
.sw-ranks__n { display: grid; place-items: center; min-width: max(calc(0.8 * var(--ui-unit, 1rem)), calc(0.42 * var(--ui-unit, 1rem))); font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 800; color: #4cc3ee; border-right: 1px solid rgba(255, 255, 255, .1); }
.sw-ranks button { flex: 1 1 0; font: inherit; font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 700; color: #8d9794; background: none; border: 0; cursor: pointer; }
.sw-ranks button:hover:not(:disabled):not(.is-on) { color: #eef2f1; }
.sw-ranks button.is-on { color: #fff; background: #1d6f8f; }
.sw-ranks button:disabled { opacity: .35; cursor: default; }
.sw-cd { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: calc(0.12 * var(--ui-unit, 1rem)); padding-right: calc(0.08 * var(--ui-unit, 1rem)); animation: sw-in 140ms var(--ease-out) backwards;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.sw-cd__head { position: relative; display: flex; flex-direction: column; gap: calc(0.02 * var(--ui-unit, 1rem)); min-height: max(calc(1.1 * var(--ui-unit, 1rem)), calc(0.6 * var(--ui-unit, 1rem))); }
.sw-cd__cat, .sw-cd__way { font-size: max(calc(.19 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); color: #8f9a97; }
.sw-cd__name { display: flex; align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); margin: 0; padding-right: calc(1.4 * var(--ui-unit, 1rem)); font-size: max(calc(.36 * var(--utility-text, var(--t))), calc(0.18 * var(--ui-unit, 1rem))); font-weight: 900; line-height: 1.2; }
.sw-cd__no { padding: calc(0.02 * var(--ui-unit, 1rem)) calc(0.12 * var(--ui-unit, 1rem)); font-family: var(--font-num); font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 700; color: #fff; background: #000; border: 1px solid rgba(255, 255, 255, .18); }
.sw-cd__lp { position: absolute; right: calc(0.06 * var(--ui-unit, 1rem)); top: calc(0.5 * var(--ui-unit, 1rem)); z-index: 1; display: inline-flex; align-items: center; gap: calc(0.04 * var(--ui-unit, 1rem)); color: #ff5b5b; }
.sw-cd__lp .icon { width: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); height: max(calc(0.3 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); color: #f1f4f3; }
.sw-cd__lp b { font-size: max(calc(.3 * var(--utility-text, var(--t))), calc(0.17 * var(--ui-unit, 1rem))); }
.sw-cd__mark { position: absolute; right: calc(0.3 * var(--ui-unit, 1rem)); top: calc(-0.04 * var(--ui-unit, 1rem)); width: max(calc(1.3 * var(--ui-unit, 1rem)), calc(0.64 * var(--ui-unit, 1rem))); height: max(calc(1.3 * var(--ui-unit, 1rem)), calc(0.64 * var(--ui-unit, 1rem))); opacity: .14; pointer-events: none; }
.sw-cd__mark img { width: 100%; height: 100%; object-fit: contain; }
.sw-cd__main { display: grid; grid-template-columns: max(calc(1.6 * var(--ui-unit, 1rem)), calc(0.8 * var(--ui-unit, 1rem))) minmax(0, 1fr); gap: calc(0.16 * var(--ui-unit, 1rem)); align-items: start; }
.sw-cd__art { display: flex; flex-direction: column; gap: calc(0.08 * var(--ui-unit, 1rem)); }
.sw-cd__img { display: block; aspect-ratio: 1; overflow: hidden; background: #3a3f3e; border: 1px solid rgba(255, 255, 255, .2); }
.sw-cd__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-cd__img > .icon { width: 60%; height: 60%; margin: 20%; color: rgba(255, 255, 255, .4); }
.sw-cd__mass { display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); padding: calc(0.03 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: #c7cfcd; background: rgba(0, 0, 0, .55); }
.sw-cd__mass .icon { width: max(calc(0.18 * var(--ui-unit, 1rem)), calc(0.11 * var(--ui-unit, 1rem))); height: max(calc(0.18 * var(--ui-unit, 1rem)), calc(0.11 * var(--ui-unit, 1rem))); }
.sw-cd__mass b { margin-left: auto; font-size: max(calc(.26 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); color: #eef2f1; }
.sw-cd__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(0.08 * var(--ui-unit, 1rem)) calc(0.1 * var(--ui-unit, 1rem)); }
.sw-stat { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); min-height: max(calc(0.46 * var(--ui-unit, 1rem)), calc(0.28 * var(--ui-unit, 1rem))); padding: 0 calc(0.12 * var(--ui-unit, 1rem));
  background: rgba(255, 255, 255, .06); border-radius: 2px; }
.sw-stat__k { display: inline-flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); min-width: 0; font-size: max(calc(.17 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: #b9c2bf; white-space: nowrap; overflow: hidden; }
.sw-stat__k .icon { flex: none; width: max(calc(0.18 * var(--ui-unit, 1rem)), calc(0.11 * var(--ui-unit, 1rem))); height: max(calc(0.18 * var(--ui-unit, 1rem)), calc(0.11 * var(--ui-unit, 1rem))); color: #eef2f1; }
.sw-stat__v { font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.09 * var(--ui-unit, 1rem))); color: #7f8a87; }
.sw-stat__g { min-width: max(calc(0.36 * var(--ui-unit, 1rem)), calc(0.2 * var(--ui-unit, 1rem))); text-align: right; font-family: var(--font-display); font-size: max(calc(.28 * var(--utility-text, var(--t))), calc(0.15 * var(--ui-unit, 1rem))); font-weight: 800; color: #eef2f1; }
.sw-stat__g.g-S { color: #ffcf5a; } .sw-stat__g.g-Ap, .sw-stat__g.g-A { color: #ff9a5c; }
.sw-stat__g.g-C, .sw-stat__g.g-D { color: #b9c2bf; } .sw-stat__g.g-E, .sw-stat__g.g-none { color: #6f7a77; }
.sw-cd__desc { margin: 0; font-size: max(calc(.19 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-style: italic; line-height: 1.55; color: #aeb7b4; }
.sw-cd__types { display: flex; flex-wrap: wrap; gap: calc(0.08 * var(--ui-unit, 1rem)); margin: 0; }
.sw-cd__h { margin: calc(0.04 * var(--ui-unit, 1rem)) 0 0; padding: calc(0.06 * var(--ui-unit, 1rem)) calc(0.14 * var(--ui-unit, 1rem)); font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); font-weight: 800; background: rgba(255, 255, 255, .08); }
.sw-cd__abil { margin: 0; padding: 0 calc(0.1 * var(--ui-unit, 1rem)) 0 calc(0.3 * var(--ui-unit, 1rem)); display: flex; flex-direction: column; gap: calc(0.05 * var(--ui-unit, 1rem)); font-size: max(calc(.18 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); line-height: 1.5; color: #e4e9e7; }

/* phones in landscape: a lower bar, slimmer columns */
/* tall / narrow windows: the detail above the tiles */
@media (max-aspect-ratio: 1/1) {
  .sw-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: calc(0.2 * var(--ui-unit, 1rem)); }
  .sw-left { max-height: 48vh; }
  .sw-tabs .sw-tab { min-width: 0; }
  .sw-codex__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr); }
  .sw-codex__list { border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .sw, .sw-detail, .sw-codex, .sw-cd { animation: none; }
  .sw__mist { animation: none; }
  .sw-tile { transition: none; }
}

/* Full-page reference layout; no modal, backdrop, width cap or independent page zoom.
   The design rem follows theme.css, while device.js supplies the real visual viewport. */
.screen.sweep-host { position: fixed; inset: 0; z-index: 1; min-width: 0; min-height: 0; padding: 0; overflow: hidden;
  height: calc(var(--sp-vh, 1vh) * 100); }
@supports (height: 100dvh) {
  .screen.sweep-host { height: min(100dvh, calc(var(--sp-vh, 1dvh) * 100)); }
}
.sweep-host .sw-report-page { height: 100%; min-height: 0; }
.sweep-host .sw, .sweep-host .sw-codex { position: relative; inset: auto; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; }
.sweep-host .sw-codex { background: #101715; }
.sweep-host .sw-top, .sweep-host .sw-codex__top { height: auto; min-height: max(calc(1 * var(--ui-unit, 1rem)), calc(0.5 * var(--ui-unit, 1rem))); padding-block: calc(0.06 * var(--ui-unit, 1rem)); flex-wrap: wrap; }
.sweep-host .sw-left { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.sweep-host .sw-detail { flex: none; }
.sweep-host .sw-text { flex: none; overflow: visible; }
.sweep-host .sw-tile__cap { white-space: normal; color: #f1f4f3; }
.sweep-host .sw-search input { max-width: 100%; }
.sweep-host :is(button, input):focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.sweep-host .sw-eth[aria-pressed="true"] { outline: 2px solid #fff; }
.sw-grade-note { flex: none; margin: 0; font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); line-height: 1.45; color: var(--text-lo); }
.sw-codex__side .sw-cd { flex: 1 1 auto; }
.sweep-host :is(.sw-right, .sw-codex__list, .sw-cd) { overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* Room portrait/avatar controls and picker from Stardust-minus d6e96f4. */
.rseat__art.is-pickable { cursor: pointer; }
.rseat__pick { position: absolute; right: calc(0.08 * var(--ui-unit, 1rem)); top: calc(0.5 * var(--ui-unit, 1rem)); z-index: 2; display: inline-flex; align-items: center; gap: calc(0.04 * var(--ui-unit, 1rem)); height: max(calc(0.36 * var(--ui-unit, 1rem)), calc(0.22 * var(--ui-unit, 1rem))); padding: 0 calc(0.1 * var(--ui-unit, 1rem));
  font: inherit; font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); font-weight: 700; color: #eef0ef; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); border-radius: calc(9.99 * var(--ui-unit, 1rem));
  cursor: pointer; opacity: .75; transition: opacity var(--t-fast); }
.rseat__pick .icon { width: 1.1em; height: 1.1em; }
.rseat__art:hover .rseat__pick, .rseat__pick:focus-visible { opacity: 1; border-color: #5df0c6; }

.cardpick .modal__body, .cardpick { --cp-size: max(calc(0.86 * var(--ui-unit, 1rem)), calc(0.52 * var(--ui-unit, 1rem))); }
.cardpick__bar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(0.1 * var(--ui-unit, 1rem)); margin-bottom: calc(0.12 * var(--ui-unit, 1rem)); }
.cardpick__search { flex: 1 1 calc(2.4 * var(--ui-unit, 1rem)); display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); height: max(calc(0.5 * var(--ui-unit, 1rem)), calc(0.3 * var(--ui-unit, 1rem))); padding: 0 calc(0.1 * var(--ui-unit, 1rem)); background: rgba(0, 0, 0, .4); border: 1px solid var(--line-2); }
.cardpick__search .icon { width: 1.1em; height: 1.1em; color: var(--text-lo); }
.cardpick__search input { flex: 1 1 auto; min-width: 0; font: inherit; color: var(--text-hi); background: none; border: 0; outline: none; }
.cardpick__stars { display: inline-flex; border: 1px solid var(--line-2); }
.cardpick__stars button { height: max(calc(0.48 * var(--ui-unit, 1rem)), calc(0.28 * var(--ui-unit, 1rem))); padding: 0 calc(0.14 * var(--ui-unit, 1rem)); font: inherit; font-size: max(calc(.16 * var(--utility-text, var(--t))), calc(0.11 * var(--ui-unit, 1rem))); color: var(--text-md); background: none; border: 0; cursor: pointer; }
.cardpick__stars button.is-on { color: #08221b; background: var(--mint-500); }
.cardpick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cp-size), 1fr)); gap: calc(0.08 * var(--ui-unit, 1rem)); max-height: min(52vh, calc(5.4 * var(--ui-unit, 1rem))); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.cardpick__op { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; font: inherit; color: var(--text-md);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer; }
.cardpick__op:hover { border-color: var(--line-3); color: var(--text-hi); }
.cardpick__op.is-on { border-color: var(--mint-400); box-shadow: 0 0 0 1px var(--mint-400); color: var(--text-hi); }
.cardpick__img { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; background: linear-gradient(180deg, #d7dcda, #a9b1ae); }
.cardpick__img img { width: 100%; height: 100%; object-fit: cover; }
.cardpick__op--auto .cardpick__img { background: #1d2120; color: var(--mint-400); }
.cardpick__op--auto .cardpick__img .icon { width: 45%; height: 45%; }
.cardpick__name { width: 100%; font-size: max(calc(.13 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cardpick__star { position: absolute; right: 3px; top: 3px; padding: 0 3px; font-size: max(calc(.11 * var(--utility-text, var(--t))), calc(0.08 * var(--ui-unit, 1rem))); font-weight: 800; color: #111; background: #e8e8e8; }
.cardpick__star.r6 { background: #ffcf5a; } .cardpick__star.r5 { background: #f2e06b; }
.cardpick__note { display: flex; align-items: center; gap: calc(0.06 * var(--ui-unit, 1rem)); margin: calc(0.12 * var(--ui-unit, 1rem)) 0 0; font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.1 * var(--ui-unit, 1rem))); color: var(--text-lo); }
.cardpick__note .icon { flex: none; width: 1.1em; height: 1.1em; }


.rseat__avatar { display: grid; place-items: center; flex: none; padding: 0; background: none; border: 0; cursor: pointer; }
.rseat__avatar:focus-visible, .rseat__pick:focus-visible { outline: 2px solid var(--mint-400); outline-offset: 2px; }
.cardpick__img .icon { width: 55%; height: 55%; }

/* Lobby media controls, adapted from Stardust-minus d6e96f4. */
.hub-bg__photo { position: absolute; inset: calc(-0.32 * var(--ui-unit, 1rem)); background: #0b1110 center / cover no-repeat; }
.hub-bg__shade { position: absolute; inset: 0; background: #000; }
.lobby-music { display: flex; flex-direction: column; gap: calc(0.22 * var(--ui-unit, 1rem)); min-width: 0; }
.lobby-music__track { display: flex; flex-direction: column; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.2 * var(--ui-unit, 1rem)); border: 1px solid var(--mint-400); background: rgba(30, 90, 75, .12); overflow-wrap: anywhere; }
.lobby-music__track strong { font-size: max(calc(.2 * var(--utility-text, var(--t))), calc(0.14 * var(--ui-unit, 1rem))); }
.lobby-music__track :is(span, small) { font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); color: var(--mint-400); }
.lobby-media-error { color: #ff9393; overflow-wrap: anywhere; }
.hub-backdrop-panel .bgset__row, .lobby-music-panel .bgset__row { flex-wrap: wrap; }
.hub-backdrop-panel .bgset__theme { min-height: calc(0.44 * var(--ui-unit, 1rem)); }
.hub-backdrop-panel .bgset__name { white-space: normal; font-size: max(calc(.15 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); }
.hub-backdrop-panel .bgset__en { white-space: normal; overflow-wrap: anywhere; }
.hub-backdrop-panel .bgset__slider { grid-template-columns: max-content minmax(0, 1fr) max-content; }
.hub-backdrop-panel .bgset__check input { width: max(calc(0.16 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); height: max(calc(0.16 * var(--ui-unit, 1rem)), calc(0.18 * var(--ui-unit, 1rem))); flex: none; }
.hub-backdrop-panel .bgset__check { min-height: calc(0.36 * var(--ui-unit, 1rem)); }
.hub-backdrop-panel :is(.bgset__note, .bgset__slider, .bgset__check), .lobby-music-panel .bgset__note { font-size: max(calc(.14 * var(--utility-text, var(--t))), calc(0.12 * var(--ui-unit, 1rem))); line-height: 1.6; }
.lobby-hub, [data-hub-theme="night"], [data-hub-theme="custom"] {
  --sky-0: #03080a; --sky-1: #08141a; --sky-2: #12262a; --sky-3: #050909;
  --haze: rgba(92, 168, 156, .17); --cloud: rgba(140, 196, 186, .055);
  --ridge-far: #122022; --ridge-mid: #0b1516; --ridge-near: #060b0b;
  --rim: rgba(110, 226, 196, .34); --fog: rgba(54, 104, 98, .3); --beam: rgba(150, 240, 215, .1);
  --beacon: #59f4ca; --window: rgba(89, 244, 202, .7); --grid: rgba(89, 244, 202, .32);
  --mote: rgba(170, 245, 225, .7); --radar: rgba(89, 244, 202, .15);
}
[data-hub-theme="frost"] {
  --sky-0: #070c12; --sky-1: #142029; --sky-2: #34444f; --sky-3: #090d11;
  --haze: rgba(205, 226, 240, .2); --cloud: rgba(220, 236, 246, .08);
  --ridge-far: #3a4852; --ridge-mid: #212c34; --ridge-near: #0f1418;
  --rim: rgba(240, 248, 255, .62); --fog: rgba(180, 200, 214, .24); --beam: rgba(225, 240, 255, .12);
  --beacon: #9fd8ff; --window: rgba(170, 220, 255, .7); --grid: rgba(170, 215, 240, .26);
  --mote: rgba(240, 248, 255, .85); --radar: rgba(180, 220, 245, .16);
}
[data-hub-theme="ember"] {
  --sky-0: #080605; --sky-1: #120d0b; --sky-2: #251913; --sky-3: #070505;
  --haze: rgba(196, 104, 52, .15); --cloud: rgba(130, 96, 76, .08);
  --ridge-far: #211814; --ridge-mid: #150f0c; --ridge-near: #090606;
  --rim: rgba(255, 150, 80, .28); --fog: rgba(84, 52, 38, .32); --beam: transparent;
  --beacon: #ffae48; --window: rgba(255, 168, 80, .75); --grid: rgba(255, 170, 90, .22);
  --mote: rgba(255, 150, 70, .85); --radar: rgba(255, 180, 110, .14);
}
[data-hub-theme="calm"] {
  --sky-0: #040606; --sky-1: #070b0b; --sky-2: #0c1211; --sky-3: #040505;
  --haze: rgba(80, 120, 110, .07); --cloud: transparent;
  --ridge-far: #0e1514; --ridge-mid: #090e0e; --ridge-near: #050808;
  --rim: rgba(89, 244, 202, .14); --fog: rgba(30, 50, 46, .25); --beam: transparent;
  --beacon: #4ed8af; --window: rgba(78, 216, 175, .45); --grid: rgba(89, 244, 202, .22);
  --mote: transparent; --radar: rgba(89, 244, 202, .11);
}
[data-hub-theme="custom"] { --radar: rgba(235, 245, 240, .14); }

.bgset { display: flex; flex-direction: column; gap: calc(0.16 * var(--ui-unit, 1rem)); }
.bgset__themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(0.1 * var(--ui-unit, 1rem)); }
.bgset__theme { display: flex; flex-direction: column; align-items: flex-start; gap: calc(0.05 * var(--ui-unit, 1rem)); min-width: 0; padding: calc(0.06 * var(--ui-unit, 1rem)); color: var(--text-hi);
  background: rgba(223, 230, 226, .04); border: 1px solid rgba(223, 230, 226, .14); cursor: pointer; text-align: left;
  transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.bgset__theme:hover { border-color: var(--mint-a35); }
.bgset__theme.is-selected { border-color: var(--mint-400); box-shadow: inset 0 0 0 1px var(--mint-400), 0 0 calc(0.14 * var(--ui-unit, 1rem)) var(--mint-a20); }
.bgset__swatch { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-0), var(--sky-1) 40%, var(--sky-2) 66%, var(--sky-3)); }
.bgset__swatch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bgset__swatch .sw-far { fill: var(--ridge-far); }
.bgset__swatch .sw-mid { fill: var(--ridge-mid); }
.bgset__swatch .sw-near { fill: var(--ridge-near); }
.bgset__swatch .sw-beacon { fill: var(--beacon); }
.bgset__swatch--custom { display: grid; place-items: center; background: #0b1110 center / cover no-repeat; outline: 1px dashed rgba(223, 230, 226, .2); outline-offset: -1px; }
.bgset__plus { font-size: calc(.34 * var(--utility-text, var(--t))); line-height: 1; color: rgba(223, 230, 226, .5); }
.bgset__name { font-size: calc(.15 * var(--utility-text, var(--t))); font-weight: 800; white-space: nowrap; }
.bgset__en { font: 700 calc(0.09 * var(--utility-text, var(--t)))/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; color: var(--text-dim); white-space: nowrap; }
.bgset__custom { display: flex; flex-direction: column; gap: calc(0.1 * var(--ui-unit, 1rem)); padding: calc(0.12 * var(--ui-unit, 1rem)); border: 1px solid rgba(223, 230, 226, .1); background: rgba(223, 230, 226, .03); }
.bgset__row { display: flex; gap: calc(0.1 * var(--ui-unit, 1rem)); }
.bgset__slider { display: grid; grid-template-columns: calc(0.5 * var(--ui-unit, 1rem)) 1fr calc(0.56 * var(--ui-unit, 1rem)); align-items: center; gap: calc(0.12 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); color: rgba(223, 230, 226, .8); }
.bgset__slider input { width: 100%; accent-color: var(--mint-500); }
.bgset__slider b { text-align: right; color: var(--mint-400); }
.bgset__check { display: flex; align-items: center; gap: calc(0.08 * var(--ui-unit, 1rem)); font-size: calc(.14 * var(--utility-text, var(--t))); color: rgba(223, 230, 226, .85); cursor: pointer; }
.bgset__check input { width: calc(0.16 * var(--ui-unit, 1rem)); height: calc(0.16 * var(--ui-unit, 1rem)); accent-color: var(--mint-500); }
.bgset__note { margin: 0; font-size: calc(.12 * var(--utility-text, var(--t))); color: var(--text-dim); }

/* Skin portraits keep the same tall framing as operator art. */
.cardpick__variants--portrait .cardpick__img { aspect-ratio: 1 / 2; }
.cardpick__variants--portrait .cardpick__img img { object-fit: contain; }
