#ui-online { position: absolute; inset: 0; pointer-events: none; z-index: 30; font-family: var(--font); color: var(--cream); }
#ui-online[hidden], #ui-online [hidden] { display: none !important; }
/* roster: one strip of teammate chips, top-centre under the HUD (clear of the bond list, the drum and the pause button) */
#ui-online { --onTop: max(70px, 11vh); }
#ui-online .on-roster { position: absolute; left: 50%; transform: translateX(-50%); top: var(--onTop); display: flex; flex-direction: row; gap: 6px; pointer-events: auto; }
.on-row { position: relative; box-sizing: border-box; min-height: 46px; width: clamp(112px, 12.5vw, 160px); padding: 3px 6px 4px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(rgba(118,50,42,.88), rgba(70,30,26,.88)); border: 1.5px solid rgba(230,194,126,.6); border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.on-row.me { border-color: var(--gold); }
.on-row.watched { border-color: var(--gold-hi); box-shadow: 0 0 8px rgba(255,214,120,.9); }
.on-row .l1 { display: flex; align-items: center; gap: 4px; font-size: clamp(12px, 1.7vh, 15px); line-height: 1.2; }
.on-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-row .wv { font-size: clamp(12px, 1.5vh, 13px); color: var(--gold-hi); white-space: nowrap; }
.on-row .eye { font-size: 13px; }
.on-row .lq-bar { height: 15px; margin-top: 2px; }
.on-row .hpn { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 2; }
.on-row .badge { font-size: 12px; background: #1a0503; color: #ff8a7a; border: 1px solid #ff8a7a; border-radius: 6px; padding: 0 4px; white-space: nowrap; }
.on-row.low .lq-bar > i { background: linear-gradient(#ff8a7a, #e0302a 45%, #9a1210); animation: on-blink .6s steps(2) infinite; }
.on-row.dead { filter: grayscale(.6); }
@keyframes on-blink { 50% { opacity: .35; } }
.on-hpwrap { position: relative; }
.on-banner { position: absolute; top: calc(var(--onTop) + 52px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: clamp(14px, 2.4vh, 20px); max-width: 70vw; pointer-events: auto; animation: lq-pop .25s both; }
.on-banner .txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.on-banner .back { min-height: 44px; min-width: 44px; font-size: 14px; padding: 0 14px; white-space: nowrap; flex: none; }
/* the watched teammate's bonds take the place of the player's own bond list */
.on-spec { position: absolute; left: 8px; top: calc(var(--onTop) - 6px); width: clamp(132px, 15vw, 180px); max-height: calc(100% - var(--onTop) - 90px); box-sizing: border-box; padding: 6px 8px; border-radius: 8px;
  background: rgba(70,30,26,.88); border: 2px solid var(--gold); pointer-events: auto; font-size: 13px; overflow: hidden; }
body.spectating #ui-prep .pp-bonds { visibility: hidden; pointer-events: none; }
.on-spec .info { font-size: 13px; color: var(--gold-hi); margin: 2px 0; }
.on-spec .bd { display: flex; justify-content: space-between; font-size: 12px; line-height: 1.35; }
.on-spec .bd.off { opacity: .55; }
.on-results { position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%); pointer-events: auto; min-width: 180px; min-height: 56px; font-size: 20px; padding: 0 18px; }
body.spectating #ui-prep .pp-tiles { pointer-events: none; visibility: hidden; }
body.spectating #ui-prep .pp-hero, body.spectating #ui-prep .pp-equip { visibility: hidden; pointer-events: none; }
/* shared prep countdown (sync.js): under the roster, top-centre */
.sy-panel { position: absolute; left: 50%; top: calc(max(70px, 11vh) + 52px); transform: translateX(-50%); z-index: 31; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font); color: var(--cream); animation: lq-pop .25s both; }
.sy-panel[hidden], .sy-wait[hidden] { display: none !important; }
.sy-time { font-size: clamp(16px, 2.6vh, 22px); padding: 2px 16px; border-radius: 10px; background: linear-gradient(rgba(118,50,42,.92), rgba(70,30,26,.92)); border-radius: 999px; border: 2px solid var(--gold); white-space: nowrap; }
.sy-time.hurry { color: #ffb08a; border-color: #ff7a5a; animation: on-blink .5s steps(2) infinite; }
.sy-list { display: flex; gap: 6px; }
.sy-chip { display: flex; align-items: center; gap: 4px; font-size: 13px; padding: 1px 8px; border-radius: 8px; background: rgba(70,30,26,.85); border: 1px solid #7a4810; white-space: nowrap; max-width: 130px; }
.sy-chip b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.sy-chip i { font-style: normal; color: #b9a07a; }
.sy-chip.ok { border-color: #8fd47a; } .sy-chip.ok i { color: #8fd47a; font-weight: 900; }
body.sy-on .on-banner { top: calc(var(--onTop) + 112px); }
.sy-wait { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); z-index: 40; font-family: var(--font); font-size: clamp(16px, 2.8vh, 24px); color: var(--cream); white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; pointer-events: none; animation: lq-pop .25s both; }
#ui-prep .pp-fight.sy-done { filter: saturate(.55) brightness(.9); animation: none; }
@media (max-height: 460px) {
  .sy-panel { top: 116px; left: 42%; } .sy-time { font-size: 15px; } .sy-chip { font-size: 12px; }
  body.sy-on #ui-prep .pp-fight span[data-i18n] { font-size: .78em; letter-spacing: 0; white-space: nowrap; }
  #ui-online { --onTop: 66px; }
  #ui-online .on-roster { gap: 4px; }
  .on-row { min-height: 44px; width: 112px; }
  .on-spec { width: 132px; }
}
