/* Lobby v3 owns the entire staging surface; legacy seat-row/control-grid rules
   are intentionally not reused. Final key art is approved by Sol and remains
   a replaceable asset slot rather than a generated runtime fallback. */
.app-shell[data-menu-v2="1"][data-mode="lobby"] {
  --lobby-bg: #080b0d;
  --lobby-ink: #edf1ed;
  --lobby-muted: #a7b0ad;
  --lobby-line: rgba(221, 232, 226, .24);
  --lobby-amber: #e6a437;
  --lobby-cyan: #65c7d0;
  min-height: 100dvh;
  background: var(--lobby-bg);
  color: var(--lobby-ink);
}

.app-shell[data-menu-v2="1"][data-mode="lobby"] .top-bar,
.app-shell[data-menu-v2="1"][data-mode="lobby"] .log-bar,
.app-shell[data-menu-v2="1"][data-mode="lobby"] .panel-actions,
.app-shell[data-menu-v2="1"][data-mode="lobby"] .panel-objective,
.app-shell[data-menu-v2="1"][data-mode="lobby"] .panel-comms { display: none; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] .play-layout { display: block; width: 100%; height: 100dvh; min-height: 0; padding: 0; overflow: hidden; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] .stage-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none !important;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 9, 11, .12), rgba(5, 9, 11, .55)), url("../assets/art/lobby-v3/squad-staging-hangar-v1.png?v=lobby-v3-20260814-v6") center / cover no-repeat #12191c !important;
}
.app-shell[data-menu-v2="1"][data-mode="lobby"] #gameCanvas { display: none; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] .side-panel { display: block; position: fixed; inset: 0; z-index: 4; width: 100%; max-width: none; padding: 0; overflow: hidden; background: transparent !important; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] .panel-room { display: block; position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent !important; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] .panel-room > h2,
.app-shell[data-menu-v2="1"][data-mode="lobby"] #roomPanel { display: none; }
.app-shell[data-menu-v2="1"][data-mode="lobby"] #seatPanel { position: absolute; inset: 0; margin: 0; padding: 0; }

.squad-lobby-v3 {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 2.6vw, 44px) clamp(22px, 5vw, 96px) clamp(16px, 2vw, 30px);
  overflow: hidden;
  color: var(--lobby-ink);
}
.squad-lobby-v3::before,
.squad-lobby-v3::after { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; }
.squad-lobby-v3::before { background: linear-gradient(180deg, rgba(3, 7, 9, .64), rgba(3, 7, 9, .08) 35%, rgba(3, 7, 9, .82) 100%); }
.squad-lobby-v3::after { background: radial-gradient(ellipse at 50% 42%, transparent 32%, rgba(2, 5, 7, .35) 100%); }

.squad-topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: clamp(18px, 3vw, 54px); min-width: 0; padding-bottom: 13px; border-bottom: 1px solid var(--lobby-line); }
.squad-topbar strong { display: block; margin-top: 5px; font-size: clamp(20px, 2vw, 32px); letter-spacing: .08em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.squad-kicker { display: block; color: #c0cbc7; font: 11px/1.2 "Barlow Condensed", ui-sans-serif, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.squad-top-status { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; color: var(--lobby-muted); font-size: 12px; text-shadow: 0 1px 8px #000; }
.squad-top-status span { white-space: nowrap; }
.squad-top-commands { display: inline-flex; align-items: center; justify-content: end; gap: 14px; }
.squad-fill-command, .squad-exit-command { min-height: 28px; padding: 0; border: 0 !important; border-bottom: 1px solid transparent !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 12px; text-shadow: 0 1px 8px #000; }
.squad-fill-command { color: var(--lobby-cyan); }
.squad-fill-command:hover, .squad-fill-command:focus-visible { border-color: var(--lobby-cyan); color: var(--lobby-ink); }
.squad-exit-command { color: var(--lobby-muted); }
.squad-exit-command:hover, .squad-exit-command:focus-visible { border-color: var(--lobby-ink); color: var(--lobby-ink); }
.squad-six-seat-summary { position: absolute; top: clamp(88px, 12vh, 142px); right: clamp(22px, 5vw, 96px); z-index: 4; width: min(350px, 31vw); color: var(--lobby-muted); text-shadow: 0 1px 8px #000; }
.squad-enemy-signal { margin-bottom: 6px; color: #d292d4; font: 11px/1.2 "Barlow Condensed", ui-sans-serif, sans-serif; letter-spacing: .12em; }
.squad-side-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(221, 232, 226, .22); border-bottom: 1px solid rgba(221, 232, 226, .16); padding: 7px 0 6px; background: linear-gradient(90deg, rgba(4, 8, 10, .12), rgba(4, 8, 10, .42), rgba(4, 8, 10, .12)); }
.squad-side-summary { min-width: 0; }
.squad-side-summary + .squad-side-summary { border-left: 1px solid rgba(221, 232, 226, .18); padding-left: 12px; }
.squad-side-summary header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--lobby-ink); font-size: 11px; }
.squad-side-summary header span { color: var(--lobby-amber); font: 12px/1 "Barlow Condensed", sans-serif; }
.squad-side-summary ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.squad-seat-summary-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "seat name role" "seat status status"; column-gap: 5px; min-width: 0; font-size: 10px; line-height: 1.15; }
.squad-seat-summary-seat { grid-area: seat; color: var(--lobby-amber); font: 11px/1.25 "Barlow Condensed", sans-serif; }
.squad-seat-summary-name { grid-area: name; overflow: hidden; color: var(--lobby-ink); text-overflow: ellipsis; white-space: nowrap; }
.squad-seat-summary-role { grid-area: role; color: var(--lobby-muted); white-space: nowrap; }
.squad-seat-summary-status { grid-area: status; overflow: hidden; color: var(--lobby-muted); text-overflow: ellipsis; white-space: nowrap; }
.squad-seat-summary-row[data-seat-status="ready"] .squad-seat-summary-status { color: var(--lobby-cyan); }
.squad-seat-summary-row[data-seat-status="connecting"] .squad-seat-summary-status { color: var(--lobby-amber); }
.squad-seat-summary-row[data-seat-kind="empty"] { opacity: .65; }
.squad-seat-totals { margin: 6px 0 0; color: var(--lobby-muted); font-size: 10px; text-align: right; }

.squad-stage { display: grid; align-items: end; min-height: 0; padding: clamp(10px, 2vh, 26px) 0 clamp(4px, 1vh, 14px); }
.squad-roster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr) minmax(0, 1fr); align-items: end; gap: clamp(10px, 2.2vw, 38px); width: min(1540px, 100%); height: 100%; margin: 0 auto; min-height: 0; }
.squad-member { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-bottom: 1px solid rgba(230, 164, 55, .34); transition: opacity 0.25s ease; }
.squad-member-art { position: relative; display: grid; place-items: end center; min-height: 0; overflow: visible; background: radial-gradient(ellipse at 50% 92%, rgba(101, 199, 208, .26), transparent 58%); }
.squad-member-art::after { position: absolute; right: 10%; bottom: 6px; left: 10%; height: 2px; content: ""; background: linear-gradient(90deg, transparent, rgba(230, 164, 55, .86), transparent); box-shadow: 0 0 18px rgba(230, 164, 55, .36); }
.squad-member-art img { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .7)); transition: filter 0.3s ease, transform 0.3s ease; }
.squad-member[data-role="infantry"] .squad-member-art img { width: auto; height: min(47vh, 560px); transform: translateY(20px); transform-origin: center bottom; }
.squad-member[data-role="tank"] .squad-member-art img,
.squad-member[data-role="minelayer"] .squad-member-art img { width: min(38vw, 510px); height: auto; max-height: 47vh; }
.squad-member[data-role="tank"][data-roster-position="left"] .squad-member-art img { transform: scaleX(-1); }

/* Teammates: slightly dimmed, muted saturation, keeping battlefield presence without stealing spotlight */
.squad-member--support { opacity: .82; }
.squad-member--support .squad-member-art { min-height: 30vh; background: radial-gradient(ellipse at 50% 92%, rgba(101, 199, 208, .12), transparent 54%); }
.squad-member--support .squad-member-art img { filter: brightness(0.68) saturate(0.72) drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
.squad-member--support:hover .squad-member-art img { filter: brightness(0.85) saturate(0.88) drop-shadow(0 16px 18px rgba(0, 0, 0, .7)); }
.squad-member--support .squad-member-art::after { opacity: .35; }
.squad-member--support .squad-member-reticle { opacity: .35; border-color: rgba(101, 199, 208, 0.45); }
.squad-member--support .squad-member-meta strong { color: #8da19b; }

/* Local Player (Self): High prominence spotlight, rich gold aura, crisp hero presentation */
.squad-member--focus,
.squad-member[data-local-seat="true"] { opacity: 1 !important; z-index: 2; border-bottom: 2px solid #e6a437 !important; }
.squad-member--focus .squad-member-art,
.squad-member[data-local-seat="true"] .squad-member-art { min-height: 45vh; background: radial-gradient(ellipse at 50% 90%, rgba(243, 200, 120, .45), rgba(101, 199, 208, .22) 38%, transparent 68%) !important; }
.squad-member--focus .squad-member-art::after,
.squad-member[data-local-seat="true"] .squad-member-art::after { height: 3px !important; background: linear-gradient(90deg, transparent, #ffda87 35%, #e6a437 65%, transparent) !important; box-shadow: 0 0 24px rgba(230, 164, 55, .75), 0 0 8px rgba(255, 218, 135, .8) !important; opacity: 1 !important; }
.squad-member--focus .squad-member-art img,
.squad-member[data-local-seat="true"] .squad-member-art img { filter: brightness(1.16) saturate(1.22) drop-shadow(0 22px 26px rgba(0, 0, 0, .85)) drop-shadow(0 0 22px rgba(230, 164, 55, .45)) !important; transform: scale(1.03); transform-origin: center bottom; }
.squad-member--focus[data-role="infantry"] .squad-member-art img,
.squad-member[data-local-seat="true"][data-role="infantry"] .squad-member-art img { transform: translateY(20px) scale(1.03); }
.squad-member--focus .squad-member-reticle,
.squad-member[data-local-seat="true"] .squad-member-reticle { width: 112px !important; height: 30px !important; border: 2px solid #ffda87 !important; box-shadow: 0 0 20px rgba(230, 164, 55, 0.75), inset 0 0 10px rgba(230, 164, 55, 0.45) !important; opacity: 1 !important; }
.squad-member--focus .squad-member-meta strong,
.squad-member[data-local-seat="true"] .squad-member-meta strong { color: #ffda87 !important; font-size: clamp(15px, 1.35vw, 20px) !important; font-weight: 800 !important; text-shadow: 0 0 16px rgba(230, 164, 55, 0.65), 0 2px 4px #000 !important; }
.squad-member--focus .squad-member-meta span,
.squad-member[data-local-seat="true"] .squad-member-meta span { color: #edf2ed !important; font-weight: 600 !important; }
.squad-member--focus .squad-member-meta::before,
.squad-member[data-local-seat="true"] .squad-member-meta::before { width: 44px !important; height: 3px !important; content: "" !important; background: linear-gradient(90deg, #ffda87, #e6a437) !important; box-shadow: 0 0 10px rgba(230, 164, 55, 0.8) !important; }

.squad-member[data-seat-kind="empty"] .squad-member-art { opacity: .35; }
.squad-member[data-seat-kind="empty"] .squad-member-art::before { width: 48%; height: 48%; content: ""; border: 1px solid rgba(218, 227, 220, .42); border-radius: 50% 50% 18% 18%; }
.squad-member-reticle { position: absolute; right: 50%; bottom: 6px; width: 78px; height: 22px; border: 1px solid rgba(230, 164, 55, .72); border-radius: 50%; transform: translateX(50%); opacity: .82; }
.squad-member-meta { display: grid; gap: 4px; padding: 9px 3px 8px; text-shadow: 0 1px 8px #000; }
.squad-member-meta strong { overflow: hidden; color: var(--lobby-ink); font-size: clamp(13px, 1.2vw, 18px); text-overflow: ellipsis; white-space: nowrap; }
.squad-member-meta span { overflow: hidden; color: var(--lobby-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.squad-member.is-selected .squad-member-meta strong { color: var(--lobby-amber); }

.squad-loadout-strip { display: grid; gap: 8px; padding: 11px 0 9px; border-top: 1px solid var(--lobby-line); border-bottom: 1px solid var(--lobby-line); background: linear-gradient(90deg, transparent, rgba(4, 8, 10, .38) 18%, rgba(4, 8, 10, .52) 82%, transparent); }
.squad-loadout-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; min-width: 0; }
.squad-loadout-head h2 { margin: 3px 0 1px; font-size: clamp(18px, 1.6vw, 25px); text-shadow: 0 1px 8px #000; }
.squad-loadout-head p { margin: 0; color: var(--lobby-muted); font-size: 12px; }
.squad-role-switch-status { color: var(--lobby-amber) !important; }
.squad-role-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.squad-role-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 8px; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: none !important; color: var(--lobby-muted); box-shadow: none !important; font-size: 12px; }
.squad-role-tab:hover, .squad-role-tab:focus-visible { border-color: var(--lobby-amber); color: var(--lobby-ink); }
.squad-role-tab.is-active { border-color: var(--lobby-amber); color: var(--lobby-amber); }
.squad-role-code { color: inherit; font: 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; }
.squad-equipment-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.squad-equipment-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 3px 8px 3px 0; border-right: 1px solid var(--lobby-line); }
.squad-equipment-item img { width: 38px; height: 38px; object-fit: cover; background: rgba(5, 8, 10, .7); }
.squad-equipment-item span { display: grid; gap: 2px; min-width: 0; }
.squad-equipment-item strong { color: var(--lobby-ink); font-size: 11.5px; line-height: 1.25; white-space: normal; word-break: break-word; }
.squad-equipment-item small { color: var(--lobby-cyan); font-size: 10px; line-height: 1.2; white-space: normal; }
.squad-equipment-empty { color: var(--lobby-muted); font-size: 12px; }
.squad-showcase { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; color: #c1cbc7; font-size: 12px; line-height: 1.35; }
.squad-showcase-badge { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--lobby-amber); }
.squad-showcase-badge img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .65)); }
.squad-showcase-badge b { color: var(--lobby-amber); font-weight: 600; }
.squad-showcase-placeholder { color: var(--lobby-muted); font-size: 11px; }
.squad-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; }
.squad-status { color: var(--lobby-muted); font-size: 12px; text-shadow: 0 1px 8px #000; }
.squad-status[data-state="ERROR"] { color: #f29a84; }
.squad-ready-cta { min-width: 190px; min-height: 44px; border: 1px solid #ffc65e !important; border-radius: 2px !important; background: #e6a437 !important; color: #18120a !important; box-shadow: 0 5px 24px rgba(230, 164, 55, .22) !important; font-weight: 800; letter-spacing: .08em; }
.squad-ready-cta:hover, .squad-ready-cta:focus-visible { border-color: #ffda87 !important; background: #ffc65e !important; }
.squad-ready-cta:disabled { border-color: rgba(255,255,255,.18) !important; background: rgba(80, 85, 83, .55) !important; color: #a0a7a3 !important; box-shadow: none !important; }
.squad-legacy-a11y { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.squad-member-lvl-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(10, 16, 20, 0.88);
  border: 1px solid rgba(121, 203, 208, 0.45);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  font-family: 'Barlow Condensed', 'JetBrains Mono', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.squad-member-lvl-pill .squad-lvl-tag {
  font-size: 9px;
  font-weight: 700;
  color: #79cbd0;
}
.squad-member-lvl-pill .squad-lvl-num {
  font-size: 12px;
  font-weight: 800;
  color: #edf2ed;
}
.squad-member-lvl-pill.is-prestige {
  background: linear-gradient(135deg, rgba(38, 27, 8, 0.95), rgba(18, 14, 6, 0.98));
  border: 1px solid rgba(243, 200, 120, 0.85);
  box-shadow: 0 0 10px rgba(243, 200, 120, 0.4), inset 0 0 6px rgba(243, 200, 120, 0.2);
}
.squad-member-lvl-pill.is-prestige .squad-lvl-tag {
  color: #ffe082;
  text-shadow: 0 0 4px rgba(255, 224, 130, 0.8);
}
.squad-member-lvl-pill.is-prestige .squad-lvl-num {
  color: #fff9e6;
  text-shadow: 0 0 6px rgba(255, 224, 130, 0.7);
}
.squad-showcase .is-prestige {
  color: #ffe082 !important;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 224, 130, 0.4);
}

/* Host & Self & Swap Tactical HUD Extensions */
.squad-member-badge-strip--right {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.squad-member-badge-strip--right .squad-member-host-pill,
.squad-member-badge-strip--right .squad-member-self-pill {
  position: relative;
  top: auto;
  right: auto;
}

.squad-member-self-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: linear-gradient(135deg, rgba(230, 164, 55, 0.96), rgba(160, 105, 15, 0.98));
  border: 1px solid #ffda87;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  font-family: 'Barlow Condensed', 'JetBrains Mono', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(230, 164, 55, 0.6), inset 0 0 6px rgba(255, 218, 135, 0.3);
  pointer-events: none;
}
.squad-member-self-pill .squad-self-icon {
  color: #fff9e6;
  font-size: 8px;
  text-shadow: 0 0 4px rgba(255, 218, 135, 0.8);
}
.squad-member-self-pill .squad-self-tag {
  color: #140f06;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.squad-member-host-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: linear-gradient(135deg, rgba(40, 28, 8, 0.95), rgba(20, 14, 5, 0.98));
  border: 1px solid rgba(243, 200, 120, 0.85);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  font-family: 'Barlow Condensed', 'JetBrains Mono', sans-serif;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(243, 200, 120, 0.35), inset 0 0 6px rgba(243, 200, 120, 0.15);
  pointer-events: none;
}
.squad-member-host-pill .squad-host-star {
  color: #ffe082;
  font-size: 10px;
  text-shadow: 0 0 4px rgba(255, 224, 130, 0.8);
}
.squad-member-host-pill .squad-host-tag {
  color: #fff9e6;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 224, 130, 0.7);
}

.squad-member-swap-action {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.squad-member-swap-action--ai {
  background: rgba(6, 24, 30, 0.92);
  border: 1px solid rgba(101, 199, 208, 0.75) !important;
  color: #65c7d0 !important;
  box-shadow: 0 0 12px rgba(101, 199, 208, 0.25) !important;
}
.squad-member-swap-action--ai:hover {
  background: #65c7d0;
  color: #06181e !important;
  box-shadow: 0 0 18px rgba(101, 199, 208, 0.6) !important;
}
.squad-member-swap-action--human {
  background: rgba(22, 20, 14, 0.92);
  border: 1px solid rgba(230, 164, 55, 0.7) !important;
  color: #e6a437 !important;
  box-shadow: 0 0 12px rgba(230, 164, 55, 0.25) !important;
}
.squad-member-swap-action--human:hover {
  background: #e6a437;
  color: #16140e !important;
  box-shadow: 0 0 18px rgba(230, 164, 55, 0.6) !important;
}

.squad-member-swap-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  pointer-events: none;
  white-space: nowrap;
}
.squad-member-swap-tag--pending {
  background: rgba(36, 26, 8, 0.92);
  border: 1px solid rgba(243, 200, 120, 0.8);
  color: #ffe082;
  box-shadow: 0 0 10px rgba(243, 200, 120, 0.4);
  animation: swapPulse 1.8s infinite ease-in-out;
}
.squad-member-swap-tag--locked {
  background: rgba(18, 22, 24, 0.92);
  border: 1px solid rgba(160, 170, 166, 0.4);
  color: #9ba4a0;
}

.squad-swap-banner {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(8, 26, 34, 0.95), rgba(12, 18, 24, 0.95));
  border: 1px solid rgba(101, 199, 208, 0.55);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(101, 199, 208, 0.1);
  padding: 8px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.squad-swap-banner-main {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.squad-swap-banner-badge {
  padding: 1px 6px;
  background: #65c7d0;
  color: #06181e;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.squad-swap-banner-desc {
  flex: 1;
  color: #edf1ed;
}
.squad-swap-banner-desc strong {
  color: #65c7d0;
}
.squad-swap-countdown-pill {
  font-family: 'Barlow Condensed', 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #e6a437;
  padding: 1px 6px;
  background: rgba(230, 164, 55, 0.15);
  border: 1px solid rgba(230, 164, 55, 0.4);
}
.squad-swap-cancel-btn {
  background: transparent !important;
  border: 1px solid rgba(220, 80, 80, 0.6) !important;
  color: #f87171 !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.squad-swap-cancel-btn:hover {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5) !important;
}

.squad-swap-observer-notice {
  position: relative;
  z-index: 5;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(14, 18, 22, 0.92);
  border: 1px solid rgba(230, 164, 55, 0.45);
  border-left: 3px solid #e6a437;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #c0cbc7;
}
.squad-swap-lock-badge {
  color: #e6a437;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.squad-swap-observer-text strong {
  color: #edf1ed;
}

/* Incoming Tactical Swap Modal */
.squad-swap-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 10, 0.86);
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.squad-swap-modal {
  position: relative;
  width: min(580px, 94vw);
  background: linear-gradient(180deg, rgba(14, 22, 30, 0.98), rgba(8, 12, 16, 0.98));
  border: 1px solid rgba(101, 199, 208, 0.65);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(101, 199, 208, 0.25), inset 0 0 25px rgba(101, 199, 208, 0.08);
  padding: clamp(18px, 2.5vw, 26px);
  display: grid;
  gap: 18px;
  overflow: hidden;
}
.squad-swap-modal-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent, transparent 3px, rgba(101, 199, 208, 0.03) 3px, rgba(101, 199, 208, 0.03) 6px);
}
.squad-swap-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(101, 199, 208, 0.25);
  padding-bottom: 12px;
}
.squad-swap-modal-header h3 {
  margin: 4px 0 0;
  font-size: clamp(16px, 1.8vw, 22px);
  color: #edf1ed;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.squad-swap-modal-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.squad-swap-timer-num {
  font-family: 'Barlow Condensed', 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  color: #e6a437;
  text-shadow: 0 0 8px rgba(230, 164, 55, 0.6);
}
.squad-swap-modal-timer small {
  font-size: 10px;
  color: var(--lobby-muted);
}

.squad-swap-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}
.squad-swap-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(6, 12, 16, 0.85);
  border: 1px solid rgba(101, 199, 208, 0.3);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.squad-swap-card-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lobby-muted);
  text-transform: uppercase;
}
.squad-swap-card--sender .squad-swap-card-kicker {
  color: #65c7d0;
}
.squad-swap-card--receiver .squad-swap-card-kicker {
  color: #e6a437;
}
.squad-swap-card-avatar {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(101, 199, 208, 0.18), transparent 70%);
}
.squad-swap-card-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}
.squad-swap-card-name {
  font-size: 14px;
  color: #edf1ed;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.squad-swap-card-role {
  font-size: 11px;
  color: #65c7d0;
  font-weight: 600;
}
.squad-swap-card--receiver .squad-swap-card-role {
  color: #e6a437;
}

.squad-swap-nexus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.squad-swap-arrows {
  width: 44px;
  height: 44px;
  animation: nexusGlow 2.4s infinite ease-in-out;
}
.squad-swap-nexus-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lobby-muted);
}

.squad-swap-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.squad-swap-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #65c7d0, #e6a437);
  transition: width 0.3s linear;
}

.squad-swap-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
}
.squad-swap-modal-btn {
  height: 42px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.squad-swap-modal-btn--decline {
  background: rgba(24, 28, 32, 0.9) !important;
  border: 1px solid rgba(160, 170, 166, 0.45) !important;
  color: #c0cbc7 !important;
}
.squad-swap-modal-btn--decline:hover {
  background: rgba(180, 50, 50, 0.2) !important;
  border-color: #f87171 !important;
  color: #f87171 !important;
}
.squad-swap-modal-btn--accept {
  background: #65c7d0 !important;
  border: 1px solid #7fe5ee !important;
  color: #06181e !important;
  box-shadow: 0 0 20px rgba(101, 199, 208, 0.4) !important;
}
.squad-swap-modal-btn--accept:hover {
  background: #7fe5ee !important;
  box-shadow: 0 0 28px rgba(101, 199, 208, 0.7) !important;
}

@keyframes swapPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.75; transform: translateX(-50%) scale(0.97); }
}
@keyframes nexusGlow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(101, 199, 208, 0.6)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(230, 164, 55, 0.8)); }
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
  .squad-lobby-v3 { padding-inline: 24px; }
  .squad-top-status { gap: 8px 14px; }
  .squad-roster { gap: 8px; }
  .squad-member[data-role="infantry"] .squad-member-art img { height: min(36vh, 345px); }
  .squad-member[data-role="tank"] .squad-member-art img,
  .squad-member[data-role="minelayer"] .squad-member-art img { width: min(35vw, 330px); max-height: 34vh; }
  .squad-member--support .squad-member-art { min-height: 28vh; }
  .squad-member--focus .squad-member-art { min-height: 36vh; }
}
@media (max-width: 820px) {
  .squad-lobby-v3 { padding: 14px 16px 12px; overflow: auto; }
  .squad-topbar { grid-template-columns: 1fr auto; align-items: start; }
  .squad-top-status { grid-column: 1 / -1; justify-content: start; order: 3; }
  .squad-six-seat-summary { top: 92px; right: 16px; width: min(310px, 48vw); }
  .squad-stage { min-height: 245px; padding-block: 10px 6px; }
  .squad-member[data-role="infantry"] .squad-member-art img { height: min(32vh, 255px); }
  .squad-member[data-role="tank"] .squad-member-art img,
  .squad-member[data-role="minelayer"] .squad-member-art img { width: min(34vw, 260px); max-height: 29vh; }
  .squad-member--support .squad-member-art { min-height: 24vh; }
  .squad-member--focus .squad-member-art { min-height: 30vh; }
  .squad-member-meta { padding-top: 6px; }
  .squad-loadout-head { align-items: start; flex-direction: column; gap: 7px; }
  .squad-role-tabs { justify-content: start; }
  .squad-equipment-list { gap: 5px; }
  .squad-equipment-item { grid-template-columns: 34px minmax(0, 1fr); gap: 5px; padding-right: 4px; }
  .squad-equipment-item img { width: 32px; height: 32px; }
  .squad-actions { position: sticky; bottom: 0; z-index: 3; margin-inline: -16px; padding: 9px 16px; background: rgba(8, 11, 13, .94); }
  .squad-ready-cta { min-width: 152px; }
}
@media (max-width: 560px) {
  .squad-six-seat-summary { position: relative; top: auto; right: auto; width: 100%; margin-top: 8px; }
  .squad-roster { grid-template-columns: 1fr 1.15fr 1fr; }
  .squad-member[data-role="infantry"] .squad-member-art img { height: min(27vh, 210px); }
  .squad-member[data-role="tank"] .squad-member-art img,
  .squad-member[data-role="minelayer"] .squad-member-art img { width: min(32vw, 190px); }
  .squad-member-meta strong { font-size: 12px; }
  .squad-member-meta span { font-size: 10px; }
  .squad-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .squad-ready-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .squad-lobby-v3 *, .squad-lobby-v3 *::before, .squad-lobby-v3 *::after { animation: none !important; transition: none !important; }
}
