/* =====================================================================
   Nexus mobile — per-screen layouts for the overhaul, built on the
   primitives in css/nexus-mobile.css. Phone only (body.mobile).
   Scopes are written to outrank the legacy phone rules in
   css/bey-nexus-rebuild.css until that file's sweep removes them.
   ===================================================================== */

/* =====================================================================
   Hub — Home tiles + Battle list (#play-setup.nx-hub)
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase="modes"] > .profile-strip { order: -1; }
body.mobile #select-overlay[data-nexus-phase="modes"] #play-setup.nx-hub {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: none;
  border: 0;
}
/* Legacy hides .play-setup-micro in `modes` with !important; the hub bar is
   the phone's top bar in every phase that shows #play-setup. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-hub-bar.play-setup-micro {
  display: flex !important;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-hub-bar {
  display: flex;
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border-bottom: 1px solid var(--nx-l);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-back {
  display: inline-flex;
  visibility: visible;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
  color: var(--nx-w);
  font: 700 0.68rem/1 var(--nx-u);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub.play-setup--hub-home .nx-back { visibility: hidden; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-micro-current {
  font: 700 0.62rem/1 var(--nx-u);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-w);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-micro-icon { display: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-hub-tools { display: flex; align-items: center; gap: 6px; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-sound {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--nx-l);
  border-radius: 0;
  color: var(--nx-w);
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-sound .play-setup-tool-label { display: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-tool-icon svg { width: 20px; height: 20px; }

/* Views: Home and Battle live in the `modes` phase; select/casual hide both. */
body.mobile #play-setup.nx-hub .nx-home,
body.mobile #play-setup.nx-hub .nx-battle { display: none; }
body.mobile #play-setup.nx-hub.play-setup--hub-home .nx-home,
body.mobile #play-setup.nx-hub.play-setup--hub-battle .nx-battle {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-self: stretch;
}

/* Home portal */
body.mobile #play-setup.nx-hub .nx-home-portal {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
body.mobile #play-setup.nx-hub .nx-home-orbit { width: min(60vw, 270px, 34dvh); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-stage {
  position: relative;
  inset: auto;
  width: 86%;
  height: 86%;
  margin: 0;
  pointer-events: none;
}
body.mobile #play-setup.nx-hub .nx-home-stage canvas,
body.mobile #play-setup.nx-hub .nx-home-stage img { width: 100% !important; height: 100% !important; object-fit: contain; }
body.mobile #play-setup.nx-hub .nx-home-locked { position: absolute; left: 14px; bottom: 8px; z-index: 3; max-width: 70%; }
body.mobile #play-setup.nx-hub .nx-home-name {
  font: 900 clamp(1.6rem, 8vw, 2.4rem)/0.86 var(--nx-d);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--nx-w);
  margin-top: 4px;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-version {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  margin: 0;
  font: 600 0.5rem/1 var(--nx-u);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-m);
}

/* Home tiles */
body.mobile #play-setup.nx-hub .nx-home-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px max(12px, var(--nx-sb));
  flex: none;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-tile {
  min-height: 88px;
  width: auto;
  margin: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  font: inherit;
  animation: none;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-tile--hero { grid-column: 1 / -1; min-height: clamp(104px, 15dvh, 136px); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-tile--wide { grid-column: 1 / -1; min-height: 64px; }
body.mobile #play-setup.nx-hub .nx-tile > .nx-count,
body.mobile #play-setup.nx-hub .nx-tile > .nx-badge { position: absolute; right: 10px; top: 10px; }
body.mobile #play-setup.nx-hub .nx-home-beys {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  pointer-events: none;
}
body.mobile #play-setup.nx-hub .nx-home-beys img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin-left: -16px;
  filter: drop-shadow(0 4px 10px #000);
}
body.mobile .nx-badge--acid { color: var(--nx-a); }
body.mobile .nx-count--acid { background: var(--nx-a); }

/* Battle list */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-battle-head {
  display: block;
  position: relative;
  padding: 16px 14px 8px;
  margin: 0;
  min-height: 0;
  background: none;
  border: 0;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-battle-head .nx-h1 {
  margin: 4px 0 0;
  font: 900 clamp(3.6rem, 17vw, 5.5rem)/0.78 var(--nx-d);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--nx-w);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-modes.nx-modelist {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 4px 12px max(12px, var(--nx-sb));
  margin: 0;
  overflow-y: auto;
  background: none;
  border: 0;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode {
  position: relative;
  flex: 1 1 0;
  max-height: 112px;
  min-height: 64px;
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--nx-l);
  border-radius: 0;
  background: none;
  box-shadow: none;
  clip-path: none;
  color: var(--nx-w);
  text-align: left;
  animation: none;
  opacity: 1;
  transform: none;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode:first-child,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode.nx-press {
  background: linear-gradient(90deg, rgba(87, 233, 255, 0.13), transparent);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode::before,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode::after { content: none; display: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-battle > *,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home > * {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode .play-setup-mode-copy {
  display: block;
  min-width: 0;
  position: static;
  padding: 0;
  margin: 0;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode .nx-mode-sub {
  display: block;
  margin-top: 4px;
  font: 400 0.68rem/1.2 var(--nx-u);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--nx-m);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode .nx-mode-num {
  position: static;
  font: 900 3.6rem/0.7 var(--nx-d);
  color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode:first-child .nx-mode-num,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode.nx-press .nx-mode-num {
  color: var(--nx-c);
  text-shadow: 0 0 22px rgba(87, 233, 255, 0.33);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode .nx-mode-label {
  display: block;
  font: 800 clamp(1.5rem, 7.4vw, 1.9rem)/0.9 var(--nx-d);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--nx-w);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-battle-head::before,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-battle-head::after { content: none; display: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-mode .nx-mode-arr {
  position: static;
  align-self: center;
  margin: 0;
  font-size: 1.5rem;
  color: var(--nx-c);
  opacity: 1;
}

/* =====================================================================
   Ready-up (Tournament / Parts Draft) — a third hub view
   ===================================================================== */
body.mobile #play-setup.nx-hub .nx-ready { display: none; }
body.mobile #play-setup.nx-hub.play-setup--hub-ready .nx-ready {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-self: stretch;
}
body.mobile #play-setup.nx-hub .nx-ready-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
body.mobile #play-setup.nx-hub .nx-ready-stage .nx-slash { top: 10%; height: 34%; }
body.mobile #play-setup.nx-hub .nx-ready-ladder {
  position: absolute;
  left: 0;
  right: 0;
  top: 14%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 6px;
  padding: 0 14px;
  transform: rotate(-12deg) scale(1.02);
}
body.mobile #play-setup.nx-hub .nx-ready-rung {
  position: relative;
  aspect-ratio: 1;
  max-height: 11dvh;
  display: grid;
  place-items: center;
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
body.mobile #play-setup.nx-hub .nx-ready-rung img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  transform: rotate(12deg);
  filter: brightness(0) drop-shadow(0 0 1px rgba(255, 255, 255, 0.55));
}
body.mobile #play-setup.nx-hub .nx-ready-rung.is-next { border-color: var(--nx-w); box-shadow: 0 0 18px rgba(255, 255, 255, 0.25); }
body.mobile #play-setup.nx-hub .nx-ready-rung.is-next img { filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35)); }
body.mobile #play-setup.nx-hub .nx-ready-rung b {
  position: absolute;
  left: 4px;
  top: 3px;
  font: 900 0.9rem/1 var(--nx-d);
  color: var(--nx-m);
  transform: rotate(12deg);
}
body.mobile #play-setup.nx-hub .nx-ready-title { position: relative; z-index: 3; }
body.mobile #play-setup.nx-hub .nx-ready-title .nx-h1 { font-size: clamp(3rem, 15vw, 4.6rem); margin-top: 6px; }
body.mobile #play-setup.nx-hub .nx-ready-rows { margin: 0 12px; padding: 2px 12px; }
body.mobile #play-setup.nx-hub .nx-ready-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nx-l);
}
body.mobile #play-setup.nx-hub .nx-ready-rows > div:last-child { border-bottom: 0; }
body.mobile #play-setup.nx-hub .nx-ready-rows dt {
  font: 600 0.66rem/1 var(--nx-u);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-m);
}
body.mobile #play-setup.nx-hub .nx-ready-rows dd {
  margin: 0;
  font: 800 1.3rem/1 var(--nx-d);
  text-transform: uppercase;
  color: var(--nx-w);
  text-align: right;
}
body.mobile #play-setup.nx-hub .nx-ready-foot { padding: 10px 12px max(12px, var(--nx-sb)); }


/* =====================================================================
   Bey select dossier (selection.js, phone) — prototype 03 on live data
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier .stage.dossier-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-scroll-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-hero-card::before,
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-hero-card::after { content: none; display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-hero-main {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 220px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-dossier-slash { top: 26%; height: 42%; z-index: 0; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-vertical-name {
  position: absolute;
  left: -4px;
  top: 12px;
  z-index: 1;
  height: 58%;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 900 clamp(2.8rem, 13vw, 3.6rem)/0.8 var(--nx-d);
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-herostage-wrap {
  position: absolute;
  right: -6%;
  top: 2%;
  z-index: 2;
  width: min(80%, 52dvh);
  aspect-ratio: 1;
  margin: 0;
  filter: drop-shadow(0 0 32px rgba(87, 233, 255, 0.3));
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-herostage-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-stagecopy-meta {
  position: absolute;
  left: 24px;
  right: 14px;
  bottom: 12px;
  top: auto;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-stagecopy-meta .bey-type {
  font: 600 0.62rem/1 var(--nx-u);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--nx-c);
  margin: 0;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-stagecopy-meta .bey-name {
  font: 900 clamp(2.4rem, 11.5vw, 3.6rem)/0.82 var(--nx-d);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--nx-w);
  max-width: 10ch;
  margin: 0;
  text-shadow: 0 4px 24px rgba(7, 8, 13, 0.6);
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-moves-wrap {
  flex: none;
  padding: 8px 12px 6px;
  margin: 0;
  border-top: 1px solid var(--nx-l);
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-moves-kicker { display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .bey-lock-hint { margin: 4px 12px; font-size: 0.7rem; color: var(--nx-g); }

/* Action rail: roster, VS bar, Random + Lock In */
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas: 'strip strip' 'vs vs' 'random lock';
  gap: 8px;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 8px 12px max(12px, var(--nx-sb));
  background: none;
  border: 0;
  border-top: 1px solid var(--nx-l);
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail > .reel-row,
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail > .nx-strip { grid-area: strip; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail > .vsbar { grid-area: vs; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail > .dossier-random-row { grid-area: random; margin: 0; padding: 0; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-action-rail > .dossier-lock-footer { grid-area: lock; margin: 0; padding: 0; position: relative; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .select-mount[data-reel-layout='solo'] .reel-row,
body.mobile #select-overlay[data-nexus-phase] .select-mount[data-reel-layout='solo'] .reel-row,
body.mobile #select-overlay[data-nexus-phase] .select-mount[data-reel-layout='strip'] .reel-row { display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip {
  display: grid;
  grid-template-columns: repeat(var(--seg-count, 3), minmax(0, 1fr));
  gap: 6px;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip[hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-seg {
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px 9px;
  background: var(--nx-p);
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--nx-w);
  cursor: pointer;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-seg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--seg-color, var(--nx-c));
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-seg.on { border-color: var(--nx-c); box-shadow: 0 0 16px rgba(87, 233, 255, 0.25); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-seg.is-milestone-locked { opacity: 0.45; filter: grayscale(0.8); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-art { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-art img,
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-art canvas { width: 100%; height: 100%; object-fit: contain; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-name {
  font: 800 0.8rem/1 var(--nx-d);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-ghost { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-ghost::after { display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-plus { font: 900 1.8rem/1 var(--nx-d); color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar .kicker {
  font: 600 0.58rem/1 var(--nx-u);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-c);
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar .kicker.pink { color: var(--nx-r); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar strong { display: block; margin-top: 3px; font: 700 0.78rem/1.1 var(--nx-u); color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar strong.muted { color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar .vs { font: 900 1.6rem/1 var(--nx-d); color: var(--nx-r); text-align: center; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .vsbar-rival { text-align: right; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-lock-btn.bey-select-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--nx-c);
  color: var(--nx-v);
  clip-path: var(--nx-cta);
  box-shadow: none;
  font: 800 0.82rem/1 var(--nx-u);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-lock-btn.bey-select-btn:disabled { opacity: 0.45; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .select-random-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--nx-l);
  clip-path: none;
  color: var(--nx-w);
  font: 700 0.72rem/1 var(--nx-u);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.mobile #select-overlay[data-nexus-phase] .select-mount .card-carousel-scene--dossier {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  perspective: none;
}
body.mobile #select-overlay[data-nexus-phase] .select-mount .card-carousel-scene--dossier > .card-carousel { display: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-herostage-wrap { height: auto; max-height: none; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .dossier-herostage-slot { height: 100%; max-height: none; min-height: 0; }
body.mobile #select-overlay[data-nexus-phase] .select-mount .nx-strip-seg.carousel-dot {
  width: auto;
  min-width: 0;
  height: auto;
  border-radius: 0;
  margin: 0;
  flex: none;
}


/* =====================================================================
   Online (onlineLobby.js / rankedQueue.js) — prototype 04–06, full bleed
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase='modes'] #play-setup.nx-hub.play-setup--online-open { flex: none; }
body.mobile #play-setup.nx-hub.play-setup--online-open .nx-battle,
body.mobile #play-setup.nx-hub.play-setup--online-open .nx-home { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow.hidden { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby--nexus {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow-y: auto;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-kicker {
  padding: 14px 14px 0;
  margin: 0;
  text-align: left;
  font: 600 0.62rem/1 var(--nx-u);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--nx-c);
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-title {
  padding: 6px 14px 4px;
  margin: 0;
  text-align: left;
  font: 900 clamp(3.4rem, 16vw, 5rem)/0.8 var(--nx-d);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--nx-w);
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-title * { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-sub,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-subtitle { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-entry { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-ports:not([hidden]) {
  display: grid;
  grid-template-rows: 1fr 1fr;
  flex: 1 1 auto;
  min-height: 360px;
  gap: 1px;
  margin: 10px 0 0;
  background: var(--nx-l);
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-port {
  border-radius: 0;
  border: 0;
  padding: 18px 16px;
  min-height: 0;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-port-title { font-size: clamp(2.8rem, 13vw, 3.6rem); line-height: 0.82; }

body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-header { text-align: left; padding: 0; margin: 0; background: none; border: 0; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-status { padding: 4px 14px 0; margin: 0; text-align: left; font-size: 0.72rem; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-header { display: block; width: 100%; grid-template-columns: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-lobby-header > * { margin-left: 0; margin-right: 0; max-width: none; }


/* =====================================================================
   Workshop — exploded builder + Cosmetics (workshop.js, phone)
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  background: none;
  border: 0;
  overflow: hidden;
}
body.mobile #select-overlay:not([data-nexus-phase="workshop"]) #workshop.nx-ws { display: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-bar { padding: 0 12px; background: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-title { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-title {
  margin: 0;
  font: 800 1.05rem/1 var(--nx-d);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nx-w);
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-meta { margin: 0; font: 600 0.55rem/1 var(--nx-u); letter-spacing: 0.14em; text-transform: uppercase; color: var(--nx-c); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-slots { display: flex; gap: 6px; padding: 8px 12px; margin: 0; background: none; border: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-slot-btn {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 8px;
  background: var(--nx-p);
  border: 1px solid var(--nx-l);
  border-radius: 0;
  color: var(--nx-w);
  font: 800 0.8rem/1 var(--nx-d);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-slot-btn.is-active { border-color: var(--nx-c); background: rgba(87, 233, 255, 0.1); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-slot-btn.is-locked { color: var(--nx-m); border-style: dashed; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-slot-btn i { font-style: normal; color: var(--nx-g); font-size: 0.72rem; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--nx-l); flex: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-tabs button {
  min-height: 44px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--nx-m);
  font: 700 0.68rem/1 var(--nx-u);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-tabs button[aria-selected="true"] { color: var(--nx-c); border-bottom-color: var(--nx-c); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws.nx-ws--locked .nx-ws-tabs,
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws.nx-ws--locked .nx-ws-builder { display: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-builder {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1px;
  background: var(--nx-l);
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-partnav { display: flex; flex-direction: column; background: var(--nx-v); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-navbtn {
  position: relative;
  flex: 1;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--nx-l);
  border-radius: 0;
  background: none;
  color: var(--nx-m);
  font: 700 0.52rem/1.1 var(--nx-u);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-navbtn img { width: 40px; height: 40px; object-fit: contain; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-navbtn.is-on { background: var(--nx-c); color: var(--nx-v); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-navbtn .nx-count { position: absolute; right: 4px; top: 6px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-build { position: relative; background: var(--nx-v2); overflow: hidden; min-height: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-stage {
  position: absolute;
  inset: 0 0 36% 0;
  z-index: 2;
  margin: 0;
  width: auto;
  height: auto;
  min-height: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws.nx-ws--cosmetics .workshop-stage { inset: 24% 0 32% 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatches {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatches[hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  background: rgba(7, 8, 13, 0.82);
  border: 1px solid var(--nx-l);
  border-radius: 0;
  color: var(--nx-w);
  font: 700 0.55rem/1 var(--nx-u);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.35), 0 0 10px var(--sw);
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch b { font-weight: 700; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch small { font: 400 0.5rem/1.15 var(--nx-u); letter-spacing: 0; text-transform: none; color: var(--nx-m); text-align: center; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch[aria-pressed="true"] { border-color: var(--nx-c); box-shadow: 0 0 14px rgba(87, 233, 255, 0.3); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swatch.is-locked i { opacity: 0.35; box-shadow: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-callout { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 3; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-partname { font: 900 1.7rem/0.9 var(--nx-d); text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-partname em { font-style: normal; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-tags { display: flex; gap: 6px; flex-wrap: wrap; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stars { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.66rem; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stars .part-starline { display: flex; gap: 4px; align-items: baseline; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stars i { font-style: normal; color: var(--nx-m); letter-spacing: 0.1em; text-transform: uppercase; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stars b { color: var(--nx-g); font-weight: 400; letter-spacing: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swap { min-height: 40px; margin-top: 2px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-foot { flex: none; padding: 8px 12px max(12px, var(--nx-sb)); margin: 0; background: none; border: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-foot [data-workshop-editor] { display: flex; flex-direction: column; gap: 6px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-foot [data-workshop-editor][hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stats { display: flex; justify-content: space-between; gap: 8px; font-size: 0.66rem; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stats .part-starline { display: flex; gap: 4px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stats i { font-style: normal; color: var(--nx-m); text-transform: uppercase; letter-spacing: 0.1em; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stats b { color: var(--nx-g); font-weight: 400; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-confirm.nx-action { width: 100%; margin: 0; border-radius: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-note { margin: 0; font-size: 0.6rem; line-height: 1.3; color: var(--nx-m); text-align: center; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-lock { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-lock[hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-lock-title { font: 900 2.4rem/0.9 var(--nx-d); text-transform: uppercase; margin: 0; }
body.mobile .nx-badge--hot { color: var(--nx-r); }
body.mobile .nx-rar-grey { color: #b7bfcc; }
body.mobile .nx-rar-blue { color: #57a6ff; }
body.mobile .nx-rar-purple { color: #b57bff; }
body.mobile .nx-rar-pink { color: #ff6fd1; }
body.mobile .nx-rar-red { color: var(--nx-r); }
body.mobile .nx-rar-gold { color: var(--nx-g); }

/* Phone builder replaces the hotspot labels and the parts list; legacy rules beat [hidden]. */
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-hotspots,
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws [data-workshop-parts],
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws [data-workshop-abilities],
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .workshop-finishes { display: none !important; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-stats .part-starline { border: 0; background: none; padding: 0; min-height: 0; box-shadow: none; }


/* =====================================================================
   Shop (store.js, phone) — balance bar + slashed crate panels
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border-bottom: 1px solid var(--nx-l);
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--nx-w);
  font: 700 0.68rem/1 var(--nx-u);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-back::before { content: "\2190"; font-size: 1rem; color: var(--nx-c); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-head-copy { text-align: center; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-kicker { display: none; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-title { margin: 0; font: 700 0.62rem/1 var(--nx-u); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-balance { margin: 0; font: 800 1.1rem/1 var(--nx-d); color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-balance::before { content: "\25C6  "; font-size: 0.8rem; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-section {
  margin: 0;
  font: 600 0.62rem/1 var(--nx-u);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--nx-c);
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crates { display: grid; grid-template-columns: 1fr; gap: 8px; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate {
  --tint: var(--nx-r);
  position: relative;
  overflow: hidden;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr 96px;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 8px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--nx-l);
  border-radius: 0;
  background: var(--nx-v2);
  box-shadow: none;
  text-align: left;
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate--defense { --tint: var(--nx-c); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate--stamina { --tint: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 30%;
  height: 46%;
  background: linear-gradient(90deg, var(--tint), transparent 80%);
  opacity: 0.32;
  transform: rotate(-10deg);
  pointer-events: none;
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate > svg,
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate > .bey-crate-art,
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate > :first-child:not(.bey-store-crate-name) {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 96px;
  height: auto;
  max-height: 80px;
  position: relative;
  z-index: 1;
  align-self: center;
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate-name {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  font: 900 2.4rem/0.85 var(--nx-d);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tint);
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate-cost {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font: 600 0.7rem/1 var(--nx-u);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-m);
}
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate-cost b { font: 800 1.1rem/1 var(--nx-d); color: var(--nx-w); margin-right: 4px; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-crate-cost.is-free b { color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-shelf-head { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-shelf-timer { margin: 0; padding: 6px 8px; border: 1px solid var(--nx-l); border-radius: 0; background: none; font-size: 0.6rem; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-shelf-timer b { font-family: var(--nx-lcd); font-size: 0.9rem; color: var(--nx-a); margin-left: 6px; }
body.mobile #select-overlay[data-nexus-phase] #bey-store .bey-store-status { font-size: 0.72rem; color: var(--nx-m); margin: 0; }

/* =====================================================================
   Missions (achievements.js, phone)
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-shell { padding: 0; gap: 0; background: none; border: 0; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--nx-l);
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-back {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--nx-c);
  font-size: 1rem;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-head p { display: none; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-head h1 { margin: 0; text-align: center; font: 700 0.62rem/1 var(--nx-u); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-total { font: 800 1.1rem/1 var(--nx-d); color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card {
  position: relative;
  overflow: hidden;
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--nx-l);
  border-radius: 0;
  background: var(--nx-v2);
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 38%;
  height: 40%;
  background: linear-gradient(90deg, var(--nx-a), transparent 75%);
  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card > * { position: relative; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card p { margin: 0; font: 600 0.62rem/1 var(--nx-u); letter-spacing: 0.19em; text-transform: uppercase; color: var(--nx-c); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card h2 { margin: 6px 0 4px; font: 900 clamp(3rem, 15vw, 4.2rem)/0.82 var(--nx-d); letter-spacing: -0.04em; text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-rank-card > span { font-size: 0.7rem; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-signin,
body.mobile #select-overlay[data-nexus-phase] #achievements [data-claim] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 0;
  background: var(--nx-a);
  color: var(--nx-v);
  clip-path: var(--nx-cta);
  box-shadow: none;
  font: 800 0.74rem/1 var(--nx-u);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievements-list { padding: 0 12px 12px; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-section { border: 0; border-radius: 0; background: none; padding: 0; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-section > header { padding: 4px 0 8px; border-bottom: 1px solid var(--nx-l); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-section > header p { font: 600 0.58rem/1 var(--nx-u); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-c); margin: 0; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-section > header h2 { font: 800 1.4rem/1 var(--nx-d); text-transform: uppercase; margin: 4px 0 0; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-section-note { font-size: 0.68rem; line-height: 1.35; color: var(--nx-m); padding: 8px 0; margin: 0; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--nx-l);
  border-radius: 0;
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-copy strong { font: 800 1.3rem/1 var(--nx-d); text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-copy strong em { font: 700 0.55rem/1 var(--nx-u); letter-spacing: 0.12em; color: var(--nx-c); vertical-align: middle; margin-left: 4px; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-copy > span:not(.nx-mission-bar) { display: block; margin-top: 4px; font-size: 0.68rem; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #achievements .nx-mission-bar {
  display: block;
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--nx-c) var(--p, 0%), rgba(255, 255, 255, 0.1) var(--p, 0%));
}
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal--ready .nx-mission-bar,
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal--claimed .nx-mission-bar { background: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-status { text-align: right; }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-progress { display: block; font: 900 1.6rem/1 var(--nx-d); color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal-reward { display: block; margin-top: 4px; font: 700 0.6rem/1 var(--nx-u); letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal--ready { animation: nx-mission-ready 1.4s ease-in-out infinite; }
@keyframes nx-mission-ready { 50% { background: rgba(223, 255, 63, 0.07); } }
@media (prefers-reduced-motion: reduce) { body.mobile #select-overlay[data-nexus-phase] #achievements .achievement-goal--ready { animation: none; } }


/* =====================================================================
   Opponent analysis — RECON MODE (opponentAnalysis.js, phone)
   Deliberately rigid: square, hard grid, mono, stepped easing.
   ===================================================================== */
body.mobile .analysis-overlay.nx-recon {
  --rc: var(--nx-a);
  --rc-dim: rgba(223, 255, 63, 0.35);
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  justify-content: center;
  padding: var(--nx-st) 0 var(--nx-sb);
  background:
    linear-gradient(rgba(223, 255, 63, 0.05) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(223, 255, 63, 0.05) 1px, transparent 1px) 0 0 / 22px 100%,
    #05060a;
  color: var(--rc);
  font-family: "Share Tech Mono", var(--nx-lcd);
  text-transform: uppercase;
}
body.mobile .analysis-overlay.nx-recon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 6;
  background: rgba(223, 255, 63, 0.5);
  box-shadow: 0 0 12px var(--rc);
  animation: nx-recon-scan 3.2s steps(40) infinite;
  pointer-events: none;
}
@keyframes nx-recon-scan { to { top: 100%; } }
body.mobile .analysis-overlay.nx-recon .analysis-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.mobile .analysis-overlay.nx-recon .analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--rc-dim);
  background: none;
}
body.mobile .analysis-overlay.nx-recon .analysis-header span { font: 400 0.6rem/1 "Share Tech Mono", monospace; letter-spacing: 0.12em; color: var(--nx-g); }
body.mobile .analysis-overlay.nx-recon .analysis-header h2 { margin: 2px 0 0; font: 400 1rem/1 "Share Tech Mono", monospace; letter-spacing: 0.1em; color: var(--rc); }
body.mobile .analysis-overlay.nx-recon .analysis-header [data-done] {
  min-height: 40px;
  min-width: 64px;
  border: 1px solid var(--rc);
  border-radius: 0;
  background: none;
  color: var(--rc);
  font: 400 0.8rem/1 "Share Tech Mono", monospace;
  text-transform: uppercase;
}
body.mobile .analysis-overlay.nx-recon .nx-recon-target { margin: 0; padding: 8px 12px 0; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--nx-g); }
body.mobile .analysis-overlay.nx-recon .analysis-display {
  position: relative;
  flex: 1 1 auto;
  min-height: 180px;
  margin: 8px 12px 0;
  border: 1px solid var(--rc-dim);
  background: rgba(5, 6, 10, 0.7);
  display: block;
  overflow: hidden;
}
body.mobile .analysis-overlay.nx-recon .analysis-stage { position: absolute; inset: 0; width: auto; height: auto; filter: grayscale(1) sepia(1) hue-rotate(28deg) saturate(2.6) brightness(1.15); }
body.mobile .analysis-overlay.nx-recon .analysis-connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
body.mobile .analysis-overlay.nx-recon .analysis-connector line { stroke: var(--rc); stroke-width: 1.5; stroke-dasharray: 4 3; }
body.mobile .analysis-overlay.nx-recon .nx-recon-boot {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  pointer-events: none;
}
body.mobile .analysis-overlay.nx-recon .nx-recon-boot i { background: var(--rc); opacity: 0; animation: nx-recon-block 320ms steps(1) backwards; animation-delay: var(--d); }
@keyframes nx-recon-block { 0% { opacity: 1; } 100% { opacity: 0; } }
body.mobile .analysis-overlay.nx-recon .nx-recon-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 10px 12px 0; }
body.mobile .analysis-overlay.nx-recon .nx-recon-steps button {
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--rc-dim);
  border-radius: 0;
  background: none;
  color: var(--rc);
  font: 400 0.6rem/1.2 "Share Tech Mono", monospace;
  text-transform: uppercase;
}
body.mobile .analysis-overlay.nx-recon .nx-recon-steps button.is-done { color: var(--nx-g); border-color: rgba(255, 194, 71, 0.5); }
body.mobile .analysis-overlay.nx-recon .nx-recon-steps button[aria-current="step"] { background: var(--rc); color: #05060a; border-color: var(--rc); }
body.mobile .analysis-overlay.nx-recon .nx-recon-readout { margin: 10px 12px 0; padding: 10px; min-height: 120px; border: 1px solid var(--rc-dim); font-size: 0.78rem; line-height: 1.45; }
body.mobile .analysis-overlay.nx-recon .nx-recon-readout[hidden] { display: none; }
body.mobile .analysis-overlay.nx-recon .nx-recon-panel[hidden] { display: none; }
body.mobile .analysis-overlay.nx-recon .nx-recon-head { margin: 0; color: var(--nx-g); }
body.mobile .analysis-overlay.nx-recon .nx-recon-head b { font-weight: 400; font-size: 1.15rem; color: var(--nx-w); }
body.mobile .analysis-overlay.nx-recon .nx-recon-head .k { color: var(--rc); }
body.mobile .analysis-overlay.nx-recon .nx-recon-stats { margin: 4px 0 0; color: var(--rc); }
body.mobile .analysis-overlay.nx-recon .nx-recon-none { margin: 6px 0 0; color: var(--nx-m); text-transform: none; }
body.mobile .analysis-overlay.nx-recon .analysis-card { margin: 6px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.mobile .analysis-overlay.nx-recon .analysis-card .analysis-kicker { color: var(--nx-g); font-size: 0.7rem; }
body.mobile .analysis-overlay.nx-recon .analysis-card .analysis-move { display: block; margin-top: 2px; font: 400 1rem/1.1 "Share Tech Mono", monospace; color: var(--nx-w); }
body.mobile .analysis-overlay.nx-recon .analysis-card .analysis-move.is-attack { color: var(--nx-r); }
body.mobile .analysis-overlay.nx-recon .analysis-card .analysis-move.is-guard { color: var(--nx-c); }
body.mobile .analysis-overlay.nx-recon .analysis-card .analysis-move.is-counter { color: var(--nx-g); }
body.mobile .analysis-overlay.nx-recon .analysis-card p { margin: 3px 0 0; color: var(--nx-w); text-transform: none; font-size: 0.74rem; }
body.mobile .analysis-overlay.nx-recon .analysis-chat {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  margin: 10px 12px 0;
  padding: 10px;
  min-height: 120px;
  border: 1px solid var(--rc);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body.mobile .analysis-overlay.nx-recon .analysis-chat[hidden] { display: none; }
body.mobile .analysis-overlay.nx-recon .analysis-chat img { width: 56px; height: 56px; object-fit: cover; filter: grayscale(1) sepia(1) hue-rotate(28deg) saturate(2.4); }
body.mobile .analysis-overlay.nx-recon .analysis-chat strong { font: 400 0.8rem/1 "Share Tech Mono", monospace; color: var(--rc); }
body.mobile .analysis-overlay.nx-recon .analysis-chat strong span { color: var(--nx-m); }
body.mobile .analysis-overlay.nx-recon .analysis-chat p { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--nx-w); text-transform: none; }
body.mobile .analysis-overlay.nx-recon .nx-recon-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px 12px; }
body.mobile .analysis-overlay.nx-recon .nx-recon-nav button {
  min-height: 48px;
  border: 1px solid var(--rc);
  border-radius: 0;
  background: none;
  color: var(--rc);
  font: 400 0.82rem/1 "Share Tech Mono", monospace;
  text-transform: uppercase;
}
body.mobile .analysis-overlay.nx-recon .nx-recon-nav button.is-go { background: var(--rc); color: #05060a; }
body.mobile .analysis-overlay.nx-recon .nx-recon-nav button:disabled { opacity: 0.35; }
@media (prefers-reduced-motion: reduce) {
  body.mobile .analysis-overlay.nx-recon::before { animation: none; display: none; }
  body.mobile .analysis-overlay.nx-recon .nx-recon-boot { display: none; }
}


/* =====================================================================
   Round 2 — Home duo tile, wordmark, lit Battle modes, Draft ready-up
   ===================================================================== */

/* Battle | Online: one rectangle split on a diagonal. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: clamp(108px, 15dvh, 140px);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-duo {
  min-height: 100%;
  margin: 0;
  border: 0;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-duo--battle {
  grid-column: 1;
  margin-right: -26px;
  padding-right: 44px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 0 100%);
  background: linear-gradient(120deg, rgba(255, 53, 94, 0.55), rgba(255, 53, 94, 0.08) 70%), var(--nx-v2);
  box-shadow: inset 3px 0 0 var(--nx-r);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-duo--online {
  grid-column: 2;
  margin-left: -26px;
  padding-left: 48px;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(240deg, rgba(87, 233, 255, 0.5), rgba(87, 233, 255, 0.06) 70%), var(--nx-v2);
  box-shadow: inset -3px 0 0 var(--nx-c);
  text-align: right;
  align-items: flex-end;
}
/* The seam: a bright diagonal where the two halves meet. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(56.5% - 3px);
  width: 3px;
  background: linear-gradient(var(--nx-w), var(--nx-c) 50%, var(--nx-r));
  transform: skewX(-14deg);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-duo--online .nx-kicker { color: var(--nx-w); opacity: 0.85; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-duo .nx-tile-label { font-size: clamp(2.2rem, 10vw, 3rem); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-home-beys { right: 50px; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-home-beys img { width: 48px; height: 48px; margin-left: -14px; }

/* Wordmark */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-brand {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 3;
  margin: 0;
  font: 900 clamp(2.4rem, 12vw, 3.4rem)/0.85 var(--nx-d);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--nx-w);
  text-shadow: 0 0 28px rgba(87, 233, 255, 0.35);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-brand span { color: var(--nx-c); }

/* Every Battle mode lit with its own accent. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode] {
  --mode-c: var(--nx-c);
  --mode-glow: rgba(87, 233, 255, 0.16);
  background: linear-gradient(90deg, var(--mode-glow), transparent 75%);
  box-shadow: inset 3px 0 0 var(--mode-c);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode="tournament"] { --mode-c: var(--nx-g); --mode-glow: rgba(255, 194, 71, 0.18); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode="parts-draft"] { --mode-c: var(--nx-a); --mode-glow: rgba(223, 255, 63, 0.15); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode="practice"] { --mode-c: var(--nx-c); --mode-glow: rgba(87, 233, 255, 0.16); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode="online"] { --mode-c: var(--nx-r); --mode-glow: rgba(255, 53, 94, 0.18); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode="casual"] { --mode-c: #b57bff; --mode-glow: rgba(181, 123, 255, 0.18); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode] .nx-mode-num {
  color: var(--mode-c);
  text-shadow: 0 0 22px var(--mode-c);
  opacity: 0.9;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode] .nx-mode-arr { color: var(--mode-c); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .play-setup-mode-btn.nx-mode[data-mode].nx-press {
  background: linear-gradient(90deg, var(--mode-glow), var(--mode-glow) 40%, transparent);
  box-shadow: inset 6px 0 0 var(--mode-c), 0 0 24px var(--mode-glow);
}

/* Parts Draft ready-up: lime slash, top-10 leaderboard, the starter bey resting in the corner. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="draft"] .nx-slash { background: linear-gradient(90deg, var(--nx-a), #6f8a00); opacity: 0.78; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-board {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 2;
  /* Leave the bottom of the stage to the title and the resting bey; the list scrolls inside. */
  max-height: calc(100% - 156px);
  display: flex;
  flex-direction: column;
  padding: 0 12px 8px;
  background: rgba(7, 8, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--nx-a);
}
/* Period tabs: the Workshop's underline tabs, in this page's lime. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -12px 4px; border-bottom: 1px solid var(--nx-l); flex: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-tab {
  appearance: none;
  min-height: 44px;
  padding: 0 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--nx-m);
  font: 700 0.68rem/1 var(--nx-u);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  touch-action: manipulation;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-tab[aria-selected="true"] { color: var(--nx-a); border-bottom-color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-tab:focus-visible,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-note button:focus-visible { outline: 2px solid var(--nx-a); outline-offset: -2px; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-head,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-head { flex: none; padding: 8px 0 4px; font: 600 0.58rem/1 var(--nx-u); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-head span:last-child { text-align: right; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-list,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-you { list-style: none; margin: 0; padding: 0; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
/* With scores, the panel runs down to the title. Ten rows scroll inside it. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-board:has(.nx-board-row) { height: calc(100% - 156px); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-list > .nx-board-row { flex: 1 1 0; min-height: 40px; }
/* Short phones: the header's Sign in button carries the hint, so all five rows fit. */
@media (max-height: 860px) {
  body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-hint { display: none; }
  body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-board { max-height: calc(100% - 140px); }
  body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-board:has(.nx-board-row) { height: calc(100% - 140px); }
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-list::-webkit-scrollbar { display: none; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-list.has-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row { min-height: 40px; border-top: 1px solid var(--nx-l); font: 800 1.3rem/1 var(--nx-d); text-transform: uppercase; color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row b { font-weight: 900; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row:nth-child(-n+3) b { color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row em { font-style: normal; font-weight: 900; color: var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-row.is-you { color: var(--nx-a); background: rgba(223, 255, 63, 0.1); box-shadow: -12px 0 0 rgba(223, 255, 63, 0.1), 12px 0 0 rgba(223, 255, 63, 0.1); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-you { flex: none; border-top: 1px dashed var(--nx-a); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-you .nx-board-row { border-top: 0; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-note,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-hint { margin: 0; padding: 12px 0; font: 600 0.68rem/1.35 var(--nx-u); letter-spacing: 0.06em; color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-hint { flex: none; padding: 8px 0 0; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-board-note button { appearance: none; min-height: 44px; background: none; border: 0; padding: 0 0 0 4px; color: var(--nx-a); font: inherit; text-decoration: underline; }
/* The starter bey, spun down and lying on the "table" in the corner. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-bey {
  position: absolute;
  right: -34px;
  bottom: -58px;
  z-index: 3;
  width: min(60vw, 240px);
  aspect-ratio: 1;
  pointer-events: none;
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-bey .select-herostage-canvas { position: relative; z-index: 1; width: 100%; height: 100%; }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready-bey-shadow {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: 14%;
  height: 16%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 70%);
  filter: blur(3px);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="draft"] .nx-action--hot { background: var(--nx-a); color: var(--nx-v); }
/* Tournament board sits on the rival ladder. Gold accent, fill thin enough that the logos read through. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-ready-board {
  z-index: 2;
  background: rgba(7, 8, 13, 0.62);
  border-left-color: var(--nx-g);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-tab[aria-selected="true"] { color: var(--nx-g); border-bottom-color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-tab:focus-visible,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-note button:focus-visible { outline-color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-row:nth-child(-n+3) b,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-row em,
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-row.is-you { color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-row.is-you {
  background: rgba(255, 194, 71, 0.12);
  box-shadow: -12px 0 0 rgba(255, 194, 71, 0.12), 12px 0 0 rgba(255, 194, 71, 0.12);
}
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-you { border-top-color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-ready[data-ready-up="tournament"] .nx-board-note button { color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub .nx-home-duo .nx-home-beys { top: 12px; right: 44px; translate: none; }


/* =====================================================================
   Online bey select — same dossier as offline select (generated from the
   .select-mount rules above, rescoped to #online-flow .online-carousel-mount)
   ===================================================================== */
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier .stage.dossier-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-scroll-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-hero-card::before,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-hero-card::after { content: none; display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-hero-main {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 220px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-dossier-slash { top: 26%; height: 42%; z-index: 0; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-vertical-name {
  position: absolute;
  left: -4px;
  top: 12px;
  z-index: 1;
  height: 58%;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 900 clamp(2.8rem, 13vw, 3.6rem)/0.8 var(--nx-d);
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-herostage-wrap {
  position: absolute;
  right: -6%;
  top: 2%;
  z-index: 2;
  width: min(80%, 52dvh);
  aspect-ratio: 1;
  margin: 0;
  filter: drop-shadow(0 0 32px rgba(87, 233, 255, 0.3));
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-herostage-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-stagecopy-meta {
  position: absolute;
  left: 24px;
  right: 14px;
  bottom: 12px;
  top: auto;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-stagecopy-meta .bey-type {
  font: 600 0.62rem/1 var(--nx-u);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--nx-c);
  margin: 0;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-stagecopy-meta .bey-name {
  font: 900 clamp(2.4rem, 11.5vw, 3.6rem)/0.82 var(--nx-d);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--nx-w);
  max-width: 10ch;
  margin: 0;
  text-shadow: 0 4px 24px rgba(7, 8, 13, 0.6);
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-moves-wrap {
  flex: none;
  padding: 8px 12px 6px;
  margin: 0;
  border-top: 1px solid var(--nx-l);
  background: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-moves-kicker { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .bey-lock-hint { margin: 4px 12px; font-size: 0.7rem; color: var(--nx-g); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-areas: 'strip strip' 'vs vs' 'random lock';
  gap: 8px;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 8px 12px max(12px, var(--nx-sb));
  background: none;
  border: 0;
  border-top: 1px solid var(--nx-l);
  box-shadow: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail > .reel-row,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail > .nx-strip { grid-area: strip; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail > .vsbar { grid-area: vs; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail > .dossier-random-row { grid-area: random; margin: 0; padding: 0; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-action-rail > .dossier-lock-footer { grid-area: lock; margin: 0; padding: 0; position: relative; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .select-mount[data-reel-layout='solo'] .reel-row,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount[data-reel-layout='solo'] .reel-row,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount[data-reel-layout='strip'] .reel-row { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip {
  display: grid;
  grid-template-columns: repeat(var(--seg-count, 3), minmax(0, 1fr));
  gap: 6px;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip[hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-seg {
  position: relative;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px 9px;
  background: var(--nx-p);
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--nx-w);
  cursor: pointer;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-seg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--seg-color, var(--nx-c));
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-seg.on { border-color: var(--nx-c); box-shadow: 0 0 16px rgba(87, 233, 255, 0.25); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-seg.is-milestone-locked { opacity: 0.45; filter: grayscale(0.8); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-art { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-art img,
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-art canvas { width: 100%; height: 100%; object-fit: contain; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-name {
  font: 800 0.8rem/1 var(--nx-d);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-ghost { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-ghost::after { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-plus { font: 900 1.8rem/1 var(--nx-d); color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar .kicker {
  font: 600 0.58rem/1 var(--nx-u);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-c);
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar .kicker.pink { color: var(--nx-r); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar strong { display: block; margin-top: 3px; font: 700 0.78rem/1.1 var(--nx-u); color: var(--nx-w); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar strong.muted { color: var(--nx-m); }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar .vs { font: 900 1.6rem/1 var(--nx-d); color: var(--nx-r); text-align: center; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .vsbar-rival { text-align: right; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-lock-btn.bey-select-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--nx-c);
  color: var(--nx-v);
  clip-path: var(--nx-cta);
  box-shadow: none;
  font: 800 0.82rem/1 var(--nx-u);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-lock-btn.bey-select-btn:disabled { opacity: 0.45; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .select-random-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--nx-l);
  clip-path: none;
  color: var(--nx-w);
  font: 700 0.72rem/1 var(--nx-u);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .card-carousel-scene--dossier {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  perspective: none;
}
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .card-carousel-scene--dossier > .card-carousel { display: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-herostage-wrap { height: auto; max-height: none; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .dossier-herostage-slot { height: 100%; max-height: none; min-height: 0; }
body.mobile #select-overlay[data-nexus-phase] #online-flow .online-carousel-mount .nx-strip-seg.carousel-dot {
  width: auto;
  min-width: 0;
  height: auto;
  border-radius: 0;
  margin: 0;
  flex: none;
}


/* =====================================================================
   Round 3 — fixes from live review
   ===================================================================== */

/* [hidden] must win over the badge display (the "Free crate" badge showed for everyone). */
body.mobile .nx-badge[hidden],
body.mobile .nx-count[hidden] { display: none !important; }

/* Profile strip sits at the top on phones: the account menu drops DOWN and
   stacks above the hub (it used to open upward, off-screen). */
body.mobile #select-overlay[data-nexus-phase] > .profile-strip { z-index: 30; }
body.mobile #select-overlay[data-nexus-phase] > .profile-strip .profile-strip-menu { position: relative; }
body.mobile #select-overlay[data-nexus-phase="modes"] > .profile-strip .profile-strip-menu-panel,
body.mobile #select-overlay[data-nexus-phase="select"] > .profile-strip .profile-strip-menu-panel {
  top: calc(100% + 6px);
  bottom: auto;
  right: 0;
  left: auto;
  z-index: 60;
  min-width: 180px;
  pointer-events: auto;
}
body.mobile #select-overlay[data-nexus-phase] > .profile-strip .profile-strip-menu-panel[hidden] { display: none; }
body.mobile #select-overlay[data-nexus-phase] > .profile-strip .profile-strip-menu-item { min-height: 44px; }

/* Guests: one row — Sign in, Ranks, sound — instead of three stacked rows. */
body.mobile #select-overlay[data-nexus-phase] > .profile-strip:has(> .profile-strip-user.hidden) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
body.mobile #select-overlay[data-nexus-phase] > .profile-strip > .profile-strip-actions:not(.hidden) {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  inset: auto;
  pointer-events: auto;
}
body.mobile #select-overlay[data-nexus-phase] > .profile-strip > .profile-strip-actions .profile-strip-ranks {
  position: static;
  margin: 0;
  min-height: 44px;
}
body.mobile .profile-strip-sound {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--nx-l);
  border-radius: 0;
  background: rgba(17, 21, 32, 0.86);
  color: var(--nx-w);
  pointer-events: auto;
}
body.mobile .profile-strip-sound svg { width: 20px; height: 20px; }
body.mobile .profile-strip-sound .profile-strip-sound-on { display: none; }
body.mobile .profile-strip-sound[aria-pressed="true"] .profile-strip-sound-on { display: block; }
body.mobile .profile-strip-sound[aria-pressed="true"] .profile-strip-sound-off { display: none; }
body.mobile .profile-strip-sound[aria-pressed="true"] { color: var(--nx-c); }

/* Tournament select: the ready-up screen already says "N rivals in order". */
body.mobile #play-setup.nx-hub.play-setup--tournament .play-setup-hint { display: none; }

/* Home: the bey name always on one line. */
body.mobile #play-setup.nx-hub .nx-home-locked { right: 92px; max-width: none; }
body.mobile #play-setup.nx-hub .nx-home-name {
  font-size: clamp(1.25rem, 6.2vw, 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Workshop: Swap is a loud primary action; the callout itself is tappable. */
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-callout[data-open] { cursor: pointer; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swap {
  min-height: 48px;
  margin-top: 4px;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  animation: nx-swap-glow 2.2s ease-in-out infinite;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swap::after { content: none; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swap span { font-size: 1.1rem; }
@keyframes nx-swap-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(87, 233, 255, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(87, 233, 255, 0.75)); }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-swap { animation: none; }
}

/* Home needs no top bar (no Back, no title) unless the install prompt is showing. */
body.mobile #select-overlay[data-nexus-phase] #play-setup.nx-hub.play-setup--hub-home .nx-hub-bar.play-setup-micro:not(:has(.play-setup-install:not([hidden]))) { display: none !important; }


/* =====================================================================
   Round 4 — ringless Home bey, Workshop "Customize" slide-out
   ===================================================================== */

/* Home: the bey without the orbit rings (the box keeps its size). */
body.mobile #play-setup.nx-hub .nx-home-orbit {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* Workshop: first tap on a rail part slides a "Customize" tab out over the
   stage; a second tap on the part (or the tab) opens the part picker. */
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-partnav {
  position: relative;
  z-index: 6;
  overflow: visible;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-navbtn { overflow: visible; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-ext {
  position: absolute;
  left: 100%;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  white-space: nowrap;
  background: var(--nx-c);
  color: var(--nx-v);
  font: 800 0.64rem/1 var(--nx-u);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 0 18px rgba(87, 233, 255, 0.45);
  cursor: pointer;
  pointer-events: auto;
  animation: nx-ws-ext-in 0.42s var(--nx-ease-smooth) backwards, nx-ws-ext-glow 2s ease-in-out 0.42s infinite;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-ext b { font-size: 1rem; line-height: 1; }
@keyframes nx-ws-ext-in {
  from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); opacity: 0.4; }
}
@keyframes nx-ws-ext-glow {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 10px rgba(87, 233, 255, 0.8)) brightness(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-ext { animation: none; }
}

/* Round 5 — Workshop callout: rarity reads as a mono spec tag, the special
   move as a slanted display title, so the two never look alike. */
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-tags { align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-rarity {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  font: 400 0.72rem/1 "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-rarity::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  rotate: 45deg;
  box-shadow: 0 0 8px currentColor;
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-move {
  display: inline-flex;
  flex-direction: column;
  flex: 0 1 auto;
  max-width: 100%;
  gap: 3px;
  padding-left: 10px;
  border-left: 2px solid var(--nx-r);
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-move small {
  font: 600 0.56rem/1 var(--nx-u);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-m);
}
body.mobile #select-overlay[data-nexus-phase] #workshop.nx-ws .nx-ws-move b {
  font: italic 900 1.05rem/1 var(--nx-d);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nx-r);
  text-shadow: 0 0 12px rgba(255, 53, 94, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 2px;
}
