/* Distinct teams; one blue player identity everywhere. */
.faction-mark { border: 0; box-shadow: none; }
.faction-mark > img { display: block; width: 100%; height: 100%; }
.home-screen .home-visual { border: 0; background: none; box-shadow: none; display: grid; gap: 12px; overflow: visible; }
.enemy-lineup { overflow: hidden; border: 1px solid #b69c575e; background: #25271f; }
.friendly-lineup { border: 1px solid #8bbad95e; background: #182932; box-shadow: 0 7px 20px #0003; }
.faction-heading { display: flex; align-items: center; gap: 9px; padding: 9px 13px; min-width: 0; }
.faction-heading .faction-mark { flex-shrink: 0; width: 28px; height: 28px; margin: 0; }
.faction-heading > b { font: 750 13px var(--sans); white-space: nowrap; }
.faction-heading > b > span { margin-left: 4px; }
.faction-heading .faction-task { margin-left: auto; font-size: 12px; white-space: nowrap; }
.enemy-heading { color: #e5c36d; background: #24261ddd; border-bottom: 1px solid #b69c5733; }
.friendly-heading { color: #c1e4f8; background: #203c4b; border-bottom: 1px solid #8bbad944; }
.home-screen .squad-roster { background: #182932; border: 0; }
.home-screen .squad-roster small { color: #a2b9c7; }
.role-secondary { font: 400 11px/1.35 var(--sans); color: #99b3c4; font-style: normal; letter-spacing: .2px; white-space: nowrap; }
.home-screen .squad-roster .role-secondary { display: block; margin-top: 2px; }
.intro-squad-card .role-secondary { display: block; font-size: 10px; margin-top: 2px; }
.radio-miscall b .role-secondary { display: inline; font-size: 10px; color: #afaf9d; letter-spacing: 0; }
.home-screen .squad-roster > .roster-player { position: relative; background: #69b4e523; box-shadow: inset 0 -2px #9cd3f4; }
.home-screen .squad-roster .roster-player small { color: #a7d9f9; }
.home-screen .squad-roster [data-cast="lead"] img.profile-portrait { object-position: center 15%; }
.you-marker { position: absolute; top: 4px; right: 5px; font: 700 9px var(--mono); letter-spacing: .5px; color: #acdefc; }
.profile-controls { padding: 7px 10px; border-top: 1px solid #8bbad933; }
.profile-controls button { min-height: 44px; width: 100%; padding: 8px 12px; border: 1px solid #80b5d166; background: #274151; color: #d7efff; font: 600 13px var(--sans); cursor: pointer; touch-action: manipulation; }
.profile-controls button:hover { background: #34586a; }
.profile-controls button:active { transform: translateY(1px); background: #173242; }
.profile-controls button:disabled { opacity: .65; cursor: wait; }
.profile-controls [data-profile-status] { display: block; font-size: 12px; line-height: 1.5; color: #b3cedd; }
.profile-controls [data-profile-status]:not(:empty) { padding: 6px 2px 2px; }
.commander-brief { display: flex; position: relative; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #8bbad92b; background: linear-gradient(100deg, #28435380, #14232c); }
.commander-avatar { height: 46px; width: 42px; flex-shrink: 0; overflow: hidden; }
.commander-avatar img { width: 60px; height: 60px; max-width: none; object-fit: contain; transform: translate(-9px, -3px); }
.commander-brief > div:nth-child(2) { min-width: 0; }
.commander-brief b { color: #c4e5f7; font-size: 12px; }
.commander-brief small { color: #92abbc; margin-left: 6px; font-size: 10px; }
.commander-brief p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #d0dae0; }
.commander-signal { position: absolute; top: 9px; right: 11px; color: #91c7e6; font-size: 10px; opacity: .6; }
.radio-bubble.radio-command { border-left: 2px solid #94c8e4; padding-left: 8px; background: linear-gradient(90deg, #67a1c014, transparent); }
.radio-command #radio-label { color: #c1e4f8; }
.radio-miscall { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; padding: 5px 7px; border-left: 2px solid #c2a250; background: #d2b1550d; }
.radio-miscall img.profile-portrait { width: 24px; height: 24px; flex-shrink: 0; object-fit: cover; object-position: center 15%; border: 1px solid #ad92523d; }
.radio-miscall p { margin: 0; min-width: 0; color: #b6b3a4; font: 12px/1.4 var(--sans); }
.radio-miscall b { display: block; color: #d2b665; font-size: 11px; font-weight: 650; }
.radio-miscall span { display: block; }
.radio-miscall.miscall-dead img { filter: grayscale(1); opacity: .65; }
.radio-miscall.miscall-dead b { color: #a9aaa3; }
.radio-bubble:has(.radio-miscall) > .radio-avatar { align-self: flex-end; }
.intro-screen .intro-ct { width: 156px; height: 222px; bottom: 108px; right: 24px; }
.intro-squad-card { padding: 6px; border: 1px solid #7aaac6; background: #172a37f5; box-shadow: 0 8px 20px #0005; }
.intro-squad-card img.profile-portrait { width: 100%; height: 144px; object-fit: cover; object-position: 50% 20%; display: block; }
.intro-squad-card > span { display: block; padding: 7px 3px 3px; color: #dfecf4; font-size: 13px; font-weight: 650; }
.intro-squad-card small { display: block; color: #afc7d6; margin-top: 2px; font-size: 11px; font-weight: 400; }
.intro-command-portrait { display: none; position: absolute; width: 44px; height: 53px; top: 12px; left: 9px; overflow: hidden; }
.intro-command-portrait img { width: 62px; height: 62px; max-width: none; transform: translateX(-9px); object-fit: contain; }
.intro-arena[data-step="2"] .intro-command-portrait, .intro-arena.handoff .intro-command-portrait { display: block; }
.intro-arena[data-step="2"] .intro-callout, .intro-arena.handoff .intro-callout { padding-left: 64px; border-color: #7da8c077; }
[data-player-name] { font: inherit; min-width: 0; }
.operator-name > [data-player-name] { overflow: hidden; text-overflow: ellipsis; }
.operator-name > span { flex-shrink: 0; }
.roster-player [data-player-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; max-width: 100%; }
.rank-card [data-player-name], .mvp-banner [data-player-name] { overflow-wrap: anywhere; }
/* Bilibili avatars are square; keep the original tall portrait crop as fallback. */
.player-avatar img[data-player-avatar] { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.result-audio-cue { display: flex; justify-content: center; gap: 5px; margin-top: 12px; font-size: 12px; color: #efd39a; }
.result-audio-cue::before { content: '◉'; font-size: 10px; align-self: center; }
.result-audio-cue > span { opacity: .7; }
@media (max-width: 1000px) {
  .home-screen .squad-roster > .roster-player { grid-template-columns: 43px minmax(0, 1fr); justify-content: normal; padding-right: 45px; }
  .you-marker { top: 50%; right: 12px; transform: translateY(-50%); }
}
@media (max-width: 760px) {
  .game-screen .pressure-panel .radio-miscall { padding: 3px 5px; margin-bottom: 4px; gap: 5px; }
  .game-screen .pressure-panel .radio-miscall p { font-size: 12px; line-height: 1.3; }
  .game-screen .pressure-panel .radio-miscall img.profile-portrait { width: 22px; height: 22px; }
  .home-screen .home-visual { gap: 8px; }
  .faction-heading { padding: 7px 9px; gap: 7px; }
  .faction-heading .faction-mark { width: 24px; height: 24px; }
  .faction-heading > b { font-size: 12px; }
  .faction-heading .faction-task { font-size: 11px; }
  .home-screen .squad-scene { height: 160px; }
  .home-screen .tagline b { font-weight: 600; }
  .result-audio-cue { font-size: 11px; margin-top: 8px; }
  .intro-screen .intro-ct { width: 136px; height: 200px; bottom: 121px; right: 16px; }
  .intro-squad-card img.profile-portrait { height: 124px; }
}
@media (max-width: 359px) {
  .faction-heading > b > span { margin-left: 2px; }
  .faction-heading .faction-task { font-size: 10px; }
  .intro-screen .intro-ct { height: 190px; bottom: 131px; }
  .intro-squad-card img.profile-portrait { height: 114px; }
}
/* A two-person idle conversation must not cover the password on short phones.
   Incoming-threat panels still pin under the timer immediately. */
@media (max-width: 760px) and (max-height: 700px) {
  .game-screen .pressure-panel[data-state="clear"]:has(.radio-miscall) { position: relative; top: auto; z-index: 1; }
}
