/* ============================================================
   BLINDSPOT REDESIGN — Phase 4a: Pre-Fight (Vein theme)
   The legacy `.bs-overlay` modal is hijacked: still position:fixed
   inset:0 (so showOverlay/hideOverlay continues to work), but laid
   out as a full-page screen with topline / 3-col / arena rail / CTAs.
   JS still writes into bs-prefight-{title,flavor,comparison,...}.
   We style its output classes to match the design.
   ============================================================ */

/* ---------- OVERRIDE LEGACY .bs-overlay ----------
   Keep position:fixed inset:0 (full viewport coverage) but unwind
   the modal-centering and dim background so it reads as a page.
   When `bs-overlay--hidden` is present, legacy `display:none !important`
   continues to win. */
.bs-overlay.blindspot-prefight {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
  padding: 0;
  background: var(--blindspot-bg);
  background-image: var(--blindspot-bg-pattern);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-y: auto;
  font-family: var(--blindspot-font-body);
  color: var(--blindspot-text);
}

/* Atmospheric arena bg removed — was a blurred arena image that
   obscured the standard Vein bg-pattern (red ember from below + gold
   halo from above) defined on `.bs-overlay.blindspot-prefight` via
   `background-image: var(--blindspot-bg-pattern)`. Hiding the atmo
   div so the Vein gradient is what reads behind the prefight content,
   matching login / shop / leaderboard / how-to-play. */
.blindspot-prefight__atmo {
  display: none;
}

/* Floating gold embers — same pattern as the login page. JS (bs-nav.js)
   spawns ~20 child <span>s with randomised left / bottom / delay /
   duration. Container is position:absolute behind content, pointer-
   events:none so it never blocks clicks. */
.blindspot-prefight__embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blindspot-prefight__ember {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--blindspot-accent-gold, #F5C078);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(245, 192, 120, 0.55);
  animation: blindspot-prefight-ember 4s ease-in-out infinite;
}
@keyframes blindspot-prefight-ember {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  30%  { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-160px) scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .blindspot-prefight__ember { animation: none; opacity: 0; }
}

.blindspot-prefight__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---------- TOP LINE ---------- */
.blindspot-prefight__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.blindspot-prefight__chapter {
  font-family: var(--blindspot-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
  text-align: center;
  flex: 1 1 auto;
}
.blindspot-prefight__chapter-dots {
  color: var(--blindspot-accent);
  letter-spacing: 0.05em;
}
.blindspot-prefight__pager {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--blindspot-font-mono);
  font-size: 0.78rem;
  color: var(--blindspot-text-dim);
}
.blindspot-prefight__pager-btn {
  background: var(--blindspot-surface);
  border: 1px solid var(--blindspot-border);
  border-radius: var(--blindspot-radius-button);
  width: 32px;
  height: 32px;
  color: var(--blindspot-text-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--blindspot-transition-fast),
              border-color var(--blindspot-transition-fast);
}
.blindspot-prefight__pager-btn:hover {
  color: var(--blindspot-accent);
  border-color: var(--blindspot-accent-dim);
}

/* ---------- 3-COL LAYOUT ---------- */
.blindspot-prefight__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .blindspot-prefight__layout { grid-template-columns: 1fr; }
}

.blindspot-prefight__boss,
.blindspot-prefight__you {
  text-align: center;
}

/* Visual column order — player (YOU) on the left, boss on the right.
   The HTML is authored Boss | VS | You for editorial reasons; flip via
   `order` so the layout matches the lobby/battle screen convention
   (your card always on the left, opponent on the right). */
.blindspot-prefight__you  { order: 1; }
.blindspot-prefight__vs   { order: 2; }
.blindspot-prefight__boss { order: 3; }

/* Portrait + element badge */
.blindspot-prefight__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--blindspot-border-2);
  border-radius: var(--blindspot-radius-card);
  box-shadow: var(--blindspot-shadow-card);
  overflow: hidden;
}
.blindspot-prefight__portrait-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 8, 7, 0.85));
}
/* Hover-to-play boss clip. Static avatar (background-image on the
   portrait div) is the resting state; this video sits on top and
   fades in on pointer enter. Disabled on touch-only devices where
   hover would never fire and autoplaying would chew bandwidth. */
.blindspot-prefight__portrait-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
@media (hover: hover) {
  .blindspot-prefight__portrait:hover .blindspot-prefight__portrait-video,
  .blindspot-prefight__portrait:focus-within .blindspot-prefight__portrait-video {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blindspot-prefight__portrait-video {
    display: none;
  }
}
.blindspot-prefight__el-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.6em;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--blindspot-border-2);
  font-family: var(--blindspot-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blindspot-text);
  border-radius: var(--blindspot-radius-button);
}

.blindspot-prefight__name {
  font-family: var(--blindspot-font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 1rem 0 0.2rem;
  color: var(--blindspot-text);
  letter-spacing: 0.01em;
}
.blindspot-prefight__flavor {
  color: var(--blindspot-text-dim);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
}

/* Intel rows */
.blindspot-prefight__intel {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.blindspot-intel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: var(--blindspot-surface);
  border: 1px solid var(--blindspot-border);
  border-radius: var(--blindspot-radius-tile);
  font-size: 0.85rem;
}
.blindspot-intel-row__k {
  font-family: var(--blindspot-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
}
.blindspot-intel-row__v {
  color: var(--blindspot-text);
  text-align: right;
}
.blindspot-intel-row__v--good     { color: var(--blindspot-success); }
.blindspot-intel-row__v--bad      { color: var(--blindspot-danger); }
.blindspot-intel-row__v--accent   { color: var(--blindspot-accent); }
.blindspot-intel-row__v--epic     { color: var(--blindspot-epic); }
.blindspot-intel-row__v--gold     { color: var(--blindspot-accent-gold); }

/* ---------- VS CENTER ---------- */
.blindspot-prefight__vs {
  text-align: center;
  padding: 1.5rem 0 0;
  /* Flex column so the CTA row at the bottom can use margin-top: auto
     and pin to the bottom of the column (which stretches to match the
     tallest sibling — boss / you — via the parent grid's
     align-items: stretch). */
  display: flex;
  flex-direction: column;
}
.blindspot-prefight__vs-line {
  font-family: var(--blindspot-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
}
.blindspot-prefight__vs-glyph {
  font-family: var(--blindspot-font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--blindspot-accent);
  margin: 0.3rem 0;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(200, 48, 44, 0.45);
}

/* Stat comparison rows (static + JS-output) */
.blindspot-cmp-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.blindspot-cmp {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.blindspot-cmp__lbl {
  font-family: var(--blindspot-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blindspot-text-muted);
}
.blindspot-cmp__l,
.blindspot-cmp__r {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blindspot-cmp__l { justify-content: flex-end; }
.blindspot-cmp__r { justify-content: flex-start; }
.blindspot-cmp__num {
  font-family: var(--blindspot-font-numeric);
  font-feature-settings: "tnum" on, "lnum" on;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 30px;
}
.blindspot-cmp__l .blindspot-cmp__num { color: var(--blindspot-accent); text-align: right; }
.blindspot-cmp__r .blindspot-cmp__num { color: var(--blindspot-danger); }
.blindspot-cmp__track {
  flex: 1;
  height: 6px;
  background: var(--blindspot-bg-2);
  border: 1px solid var(--blindspot-border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.blindspot-cmp__track--l { display: flex; justify-content: flex-end; }
.blindspot-cmp__fill { height: 100%; }
.blindspot-cmp__fill--you  { background: linear-gradient(90deg, transparent, var(--blindspot-accent)); }
.blindspot-cmp__fill--them { background: linear-gradient(90deg, var(--blindspot-danger), transparent); }

/* ---------- ARENAS ---------- */
.blindspot-prefight__arenas { margin-top: 2rem; }
.blindspot-prefight__arenas-label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-accent);
  margin-bottom: 0.7rem;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}
.blindspot-arena-rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.3rem 0 0.5rem;
  scrollbar-width: thin;
}
.blindspot-arena-pip {
  flex-shrink: 0;
  width: 110px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
}
.blindspot-arena-pip__img {
  width: 110px;
  height: 70px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--blindspot-border-2);
  border-radius: var(--blindspot-radius-tile);
  filter: brightness(0.6);
  transition: filter 200ms,
              border-color 200ms,
              box-shadow 200ms;
}
.blindspot-arena-pip:hover .blindspot-arena-pip__img,
.blindspot-arena-pip:focus-visible .blindspot-arena-pip__img {
  filter: none;
}
.blindspot-arena-pip.is-active .blindspot-arena-pip__img {
  border-color: var(--blindspot-accent);
  filter: none;
  box-shadow: 0 0 24px -4px rgba(200, 48, 44, 0.55);
}
.blindspot-arena-pip__name {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--blindspot-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blindspot-text-dim);
}

/* ---------- CTA ROW ----------
   Pinned to the bottom of the VS column via margin-top: auto. The VS
   column is `display: flex; flex-direction: column` and the parent
   grid uses `align-items: stretch`, so the CTA row sits flush with the
   bottom of whichever column (boss / you) is tallest. */
.blindspot-prefight__ctas {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.blindspot-prefight__retreat {
  background: transparent;
  border: 1px solid var(--blindspot-border-2);
  color: var(--blindspot-text-dim);
  font-family: var(--blindspot-font-display);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7em 1.4em;
  border-radius: var(--blindspot-radius-button);
  cursor: pointer;
  transition: color var(--blindspot-transition-fast),
              border-color var(--blindspot-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.blindspot-prefight__retreat:hover {
  color: var(--blindspot-accent);
  border-color: var(--blindspot-accent-dim);
}

/* ============================================================
   JS-OUTPUT OVERRIDES — restyle legacy markup that bs-strategy.js
   and bs-pvp.js inject into bs-prefight-comparison and the arena
   selector. Scoped to .blindspot-prefight.
   ============================================================ */

/* JS overwrites #bs-prefight-comparison with header + 5 stat rows.
   Make its output match the design's compare layout. */
.blindspot-prefight #bs-prefight-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: transparent;
  border: 0;
  padding: 0;
}
.blindspot-prefight .bs-prefight-comparison__header {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--blindspot-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
  margin-bottom: 0.5rem;
  background: transparent;
  border: 0;
  padding: 0;
}
.blindspot-prefight .bs-prefight-comparison__you   { text-align: right; color: var(--blindspot-accent); }
.blindspot-prefight .bs-prefight-comparison__vs    {
  text-align: center;
  font-family: var(--blindspot-font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--blindspot-accent);
  letter-spacing: 0.05em;
}
.blindspot-prefight .bs-prefight-comparison__boss  { text-align: left; color: var(--blindspot-danger); }

.blindspot-prefight .bs-prefight-stat-row {
  display: grid;
  grid-template-columns: 30px 1fr 50px 1fr 30px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  background: transparent;
  border: 0;
  padding: 0;
}
.blindspot-prefight .bs-prefight-stat-row__pval {
  font-family: var(--blindspot-font-numeric);
  font-feature-settings: "tnum" on, "lnum" on;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--blindspot-accent);
  text-align: right;
}
.blindspot-prefight .bs-prefight-stat-row__bval {
  font-family: var(--blindspot-font-numeric);
  font-feature-settings: "tnum" on, "lnum" on;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--blindspot-danger);
  text-align: left;
}
.blindspot-prefight .bs-prefight-stat-row__bar {
  height: 6px;
  background: var(--blindspot-bg-2);
  border: 1px solid var(--blindspot-border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.blindspot-prefight .bs-prefight-stat-row__fill {
  height: 100%;
}
.blindspot-prefight .bs-prefight-stat-row__fill--player {
  background: linear-gradient(90deg, transparent, var(--blindspot-accent));
  margin-left: auto;
}
.blindspot-prefight .bs-prefight-stat-row__fill--boss {
  background: linear-gradient(90deg, var(--blindspot-danger), transparent);
}
.blindspot-prefight .bs-prefight-stat-row__label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blindspot-text-muted);
}
.blindspot-prefight .bs-prefight-stat-row__label i {
  margin-right: 0.3em;
  color: var(--blindspot-text-dim);
}

/* JS overwrites #bs-arena-selector with a labeled rail. Restyle. */
.blindspot-prefight #bs-arena-selector {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 2rem;
}
.blindspot-prefight .bs-arena-selector__label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-accent);
  margin: 0 0 0.7rem;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
}

/* Charm/item selector inside the loadout strip — no longer a popup-style
   bordered card; sits flush as the section content under the section
   label. The legacy `.bs-charm-selector { max-width: 360px }` from
   blindspot.css (used in non-prefight contexts) is overridden here so
   the items spread the full width of the loadout column. */
.blindspot-prefight #bs-charm-selector {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  color: var(--blindspot-text);
  text-align: left;
}

/* ============================================================
   POST-REVIEW POLISH (Phase 4a follow-up)
   - Selected card now driven into YOU column (intel rows, deck thumbs,
     element badge, flavor quote).
   - Boss intel re-rendered as grouped sub-sections (Advantages / Threats /
     Properties) instead of a flat <br>-separated string.
   - Pull the arena rail up so the CTAs aren't floating in dead space.
   - Single elemental matchup callout (placed once between flavor + intel).
   - VS column eyebrow labels + larger stat-row icons.
   ============================================================ */

/* #7 Tighten the gap between the 3-col layout and the arena rail.
   Was 2rem; the YOU column is now denser so the rail can sit closer. */
.blindspot-prefight .blindspot-prefight__arenas { margin-top: 0.75rem; }
.blindspot-prefight #bs-arena-selector { margin-top: 0.75rem; }
.blindspot-prefight .blindspot-prefight__inner { padding-bottom: 2rem; }

/* #11 VS column eyebrow labels (Fighter / Opponent) above each name */
.blindspot-prefight__vs-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.blindspot-prefight__vs-eyebrow {
  font-family: var(--blindspot-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
}
.blindspot-prefight__vs-name {
  font-family: var(--blindspot-font-display);
  font-size: 1rem;
  color: var(--blindspot-text);
  letter-spacing: 0.04em;
}

/* #12 Difficulty separator + numeric */
.blindspot-prefight__chapter-sep {
  margin: 0 0.4em;
  color: var(--blindspot-text-muted);
  opacity: 0.6;
}
.blindspot-prefight__chapter-num {
  margin-left: 0.4em;
  color: var(--blindspot-text-dim);
  font-feature-settings: "tnum" on, "lnum" on;
}

/* #18 Bump stat-row icon size by ~25%, restore visibility */
.blindspot-prefight .bs-prefight-stat-row__label { font-size: 0.7rem; }
.blindspot-prefight .bs-prefight-stat-row__label i {
  font-size: 0.85rem;
  color: var(--blindspot-text-dim);
}

/* #10 Stat-bar treatment to match the lobby — mute the rainbow.
   Player + boss fills already use accent/danger gradients (not rainbow),
   but the diff text colors were vivid. Soften to the same warm tan
   accents the lobby uses for chips, then keep red-vs-green only on the
   player/boss bar fills themselves. */
.blindspot-prefight .bs-stat-advantage  { color: var(--blindspot-success); }
.blindspot-prefight .bs-stat-disadvantage { color: var(--blindspot-accent-gold); }
.blindspot-prefight .bs-stat-even       { color: var(--blindspot-text-muted); }

/* Boss intel groupings (#19) — labeled sub-sections */
.blindspot-intel-group { margin-top: 0.85rem; }
.blindspot-intel-group:first-child { margin-top: 0; }
.blindspot-intel-group__label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
  margin-bottom: 0.35rem;
  padding-left: 0.2rem;
}

/* Single matchup callout (#5) — one band, three states */
.blindspot-prefight__matchup-row {
  text-align: center;
  font-size: 0.85rem;
  margin: 0.35rem 0 0.6rem;
}
.blindspot-prefight__matchup {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: var(--blindspot-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.blindspot-prefight__matchup--good {
  background: rgba(110, 159, 74, 0.12);
  border: 1px solid var(--blindspot-success);
  color: var(--blindspot-success);
}
.blindspot-prefight__matchup--bad {
  background: rgba(200, 48, 44, 0.12);
  border: 1px solid var(--blindspot-accent);
  color: var(--blindspot-accent);
}
.blindspot-prefight__matchup--neutral {
  background: rgba(184, 154, 130, 0.08);
  border: 1px solid var(--blindspot-border);
  color: var(--blindspot-text-dim);
}

/* YOU-column deck thumbnail strip (#15) */
.blindspot-prefight__deck { margin-top: 0.75rem; }
.blindspot-prefight__deck-label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-text-muted);
  margin-bottom: 0.35rem;
  text-align: center;
}
.blindspot-prefight__deck-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.blindspot-prefight__deck-thumb {
  width: 36px;
  height: 50px;
  background-size: cover;
  background-position: center top;
  border: 1px solid var(--blindspot-border-2);
  border-radius: 4px;
  background-color: var(--blindspot-surface);
}
.blindspot-prefight__deck-thumb--empty {
  background: linear-gradient(135deg, var(--blindspot-surface), var(--blindspot-bg-2));
}

/* Arena tiles: image-filled pills with a nameplate at the bottom (#13, #14).
   The button itself is the image; the nameplate is an absolute-positioned
   band hosting the icon, name, and (when locked) the unlock requirement.
   Lock badge centers on top of the dimmed image; checkmark sits top-left
   when active. Renders the same JS output as the pip variant — these
   rules win because they're scoped under `#bs-arena-selector`. */
.blindspot-prefight #bs-arena-selector .bs-arena-options {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.blindspot-prefight #bs-arena-selector .bs-arena-option {
  position: relative;
  width: 150px;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--blindspot-surface);
  border: 1px solid var(--blindspot-border-2);
  border-radius: var(--blindspot-radius-tile);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}
.blindspot-prefight #bs-arena-selector .bs-arena-option:hover:not([disabled]) {
  transform: translateY(-2px);
  border-color: var(--blindspot-accent);
}
.blindspot-prefight #bs-arena-selector .bs-arena-option--selected,
.blindspot-prefight #bs-arena-selector .bs-arena-option--selected:hover {
  border-color: var(--blindspot-accent-gold);
  box-shadow: 0 0 0 1px var(--blindspot-accent-gold), 0 0 14px rgba(245, 192, 120, 0.35);
}
.blindspot-prefight #bs-arena-selector .bs-arena-option--locked {
  filter: grayscale(0.8) brightness(0.55);
  cursor: not-allowed;
}
.blindspot-prefight #bs-arena-selector .bs-arena-option--locked:hover { transform: none; border-color: var(--blindspot-border-2); }

/* Hide the legacy <img>/img-block rules in case any survives — the new
   structure has no <img> child; the button itself carries the image. */
.blindspot-prefight #bs-arena-selector .bs-arena-option__img { display: none; }

/* Nameplate band */
.blindspot-prefight #bs-arena-selector .bs-arena-option__plate {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.5rem 0.4rem;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, 0.78) 45%, rgba(10, 8, 6, 0.94) 100%);
}
.blindspot-prefight #bs-arena-selector .bs-arena-option__name {
  font-family: var(--blindspot-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blindspot-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.blindspot-prefight #bs-arena-selector .bs-arena-option__name i {
  color: var(--blindspot-accent-gold);
  font-size: 0.7rem;
}
.blindspot-prefight #bs-arena-selector .bs-arena-option__req {
  font-family: var(--blindspot-font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blindspot-accent-gold);
}

/* Active checkmark — top-left badge */
.blindspot-prefight #bs-arena-selector .bs-arena-option__check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blindspot-accent-gold);
  color: #0E0A06;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  z-index: 2;
  box-shadow: 0 0 6px rgba(245, 192, 120, 0.55);
}

/* Locked padlock — centered, layered above the dimmed image but below
   the nameplate band so the unlock requirement is still readable. */
.blindspot-prefight #bs-arena-selector .bs-arena-option__lock {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 8, 6, 0.7);
  border: 1px solid var(--blindspot-border-2);
  color: var(--blindspot-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 1;
}

/* Mobile: shrink pills so two fit per row at narrow widths. */
@media (max-width: 600px) {
  .blindspot-prefight #bs-arena-selector .bs-arena-option { width: calc(50% - 0.5rem); }
}

/* Player element badge: hide chrome when empty so the portrait corner
   doesn't show a stray empty pill before card load. */
.blindspot-prefight__el-badge:empty { display: none; }

/* ============================================================
   LOADOUT STRIP — Bring Items + Choose Arena
   Two labeled peer sections that sit below the 3-col layout. Both
   use the same section-label treatment for visual rhythm.
   ============================================================ */
.blindspot-prefight__loadout {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1rem;
}

.blindspot-prefight__loadout-section {
  background: var(--blindspot-surface);
  border: 1px solid var(--blindspot-border);
  border-radius: var(--blindspot-radius-tile);
  padding: 1rem 1.25rem 1.1rem;
}

.blindspot-prefight__section-label {
  font-family: var(--blindspot-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blindspot-accent);
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45em;
}
.blindspot-prefight__section-label i { color: var(--blindspot-accent-gold); }

.blindspot-prefight__section-meta {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--blindspot-text-dim);
}

/* Empty-state copy when the player has no consumables yet */
.blindspot-prefight__loadout-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--blindspot-text-muted);
  font-style: italic;
}

/* Inline arenas-label is redundant once the section provides its own;
   hide it inside the loadout section so we don't double up the heading. */
.blindspot-prefight__loadout-section--arenas .blindspot-prefight__arenas { margin-top: 0; }
.blindspot-prefight__loadout-section--arenas .blindspot-prefight__arenas-label { display: none; }
.blindspot-prefight__loadout-section--arenas .bs-arena-selector__label { display: none; }

/* Item buttons — bigger tap targets, mono caps, restored chrome.
   The base .bs-charm-option from blindspot.css is fine; we just upsize
   inside the prefight scope so they read as loadout choices, not chips. */
.blindspot-prefight__loadout-section--items .bs-charm-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
  justify-content: stretch;
}
.blindspot-prefight__loadout-section--items .bs-charm-option {
  flex-direction: column;
  min-width: 0;
  padding: 0.55rem 0.5rem 0.5rem;
  border-color: var(--blindspot-border);
  background: var(--blindspot-bg-2, var(--blindspot-surface));
  border-radius: 6px;
  font-family: var(--blindspot-font-body);
  font-size: 0.7rem;
  text-align: center;
  gap: 0.25rem;
}
.blindspot-prefight__loadout-section--items .bs-charm-option i {
  font-size: 1.05rem;
  color: var(--blindspot-accent-gold);
}
.blindspot-prefight__loadout-section--items .bs-charm-option > span:not(.bs-charm-count) {
  color: var(--blindspot-text);
  font-weight: 600;
}
.blindspot-prefight__loadout-section--items .bs-charm-count {
  font-family: var(--blindspot-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--blindspot-text-muted);
}
.blindspot-prefight__loadout-section--items .bs-charm-option--selected {
  border-color: var(--blindspot-accent-gold);
  box-shadow: 0 0 0 1px var(--blindspot-accent-gold), 0 0 10px rgba(245, 192, 120, 0.25);
}
.blindspot-prefight__loadout-section--items .bs-charm-option--selected i {
  color: var(--blindspot-accent);
}

/* Hide the JS legacy header inside the prefight scope — the section
   label already names the panel. */
.blindspot-prefight .bs-charm-selector__legacy-header { display: none; }

@media (max-width: 600px) {
  .blindspot-prefight__loadout-section { padding: 0.75rem 0.85rem 0.9rem; }
  .blindspot-prefight__loadout-section--items .bs-charm-options {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  /* ---------- MOBILE POLISH (Phase 5) ----------
     Pager buttons render at 32x32 (line 114-115) — under the 44x44
     tap floor. Add ::before invisible inset to extend hit area
     without changing visual size, same pattern as the lobby bell.
     Position: relative is already implicit on flex children but we
     set it explicitly so the pseudo anchors. */
  .blindspot-prefight__pager-btn {
    position: relative;
  }
  .blindspot-prefight__pager-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
  }

  /* Retreat ("Lobby" CTA) measured 94x44 at 375 — hits the floor
     by a hair via padding-math (font 0.9rem + padding 0.7em top/bot).
     Explicit min-height makes it resilient to font/line-height drift. */
  .blindspot-prefight__retreat {
    min-height: 44px;
  }

  /* Tiny-text floor — four labels under 10px on mobile. */
  .blindspot-intel-group__label {
    font-size: 0.65rem;     /* 0.62 -> 0.65 (~9.9 -> ~10.4) */
  }
  .blindspot-intel-row__k,
  .blindspot-prefight__vs-eyebrow {
    font-size: 0.65rem;     /* 0.6 -> 0.65 */
  }
  .blindspot-prefight #bs-arena-selector .bs-arena-option__req {
    font-size: 0.65rem;     /* 0.54 -> 0.65 (worst at 8.6px) */
  }
}
