/* net/coop.css — co-op lobby, squad list and teammate tags.
   Uses the design tokens the game page defines on :root (--ink, --bone, --signal, --f-label, ...). */

/* ---- lobby ---- */
.co-lobby { position: absolute; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; pointer-events: auto;
  padding: calc(12px + var(--sat)) var(--gr) calc(12px + var(--sab)) var(--gl); background: rgba(6, 8, 10, .74); color: var(--bone); }
.co-lobby.open { display: flex; }
.co-card { width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 22px 24px 18px; background: var(--plate-solid);
  border: 1px solid var(--line); border-top: 3px solid var(--signal); }
.co-card h2, .co-card p, .co-card ul { margin: 0; padding: 0; }
.co-k { font: 600 12px/1 var(--f-label); letter-spacing: .28em; color: var(--steel); }
.co-h { font: 900 clamp(28px, 7vw, 40px)/1 var(--f-display); letter-spacing: .08em; margin: 10px 0 18px !important; }
.co-label { display: block; margin-bottom: 7px; font: 600 12px/1 var(--f-label); letter-spacing: .2em; color: var(--bone-dim); }
.co-in { display: block; width: 100%; min-height: 44px; padding: 0 12px; font: 500 16px/1 var(--f-label); letter-spacing: .04em; color: var(--bone);
  background: rgba(232, 228, 218, .06); border: 1px solid rgba(232, 228, 218, .32); border-radius: 0; outline: none;
  -webkit-user-select: text; user-select: text; }
.co-in::placeholder { color: rgba(232, 228, 218, .38); }
.co-in:focus-visible { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.co-lobby .btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.co-lobby .btn.primary:focus-visible { outline-color: var(--bone); }
.co-lobby .btn[disabled] { opacity: .45; pointer-events: none; }
.co-wide { width: 100%; margin-top: 14px; }
.co-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; font: 500 12px/1 var(--f-label); letter-spacing: .16em; color: var(--steel); }
.co-or::before, .co-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.co-join { display: flex; gap: 10px; }
.co-join .co-in { flex: 1 1 auto; min-width: 0; }
.co-join .btn { flex: none; min-height: 44px; }
.co-code-in, .co-code { font-family: var(--f-mono); letter-spacing: .3em; text-transform: uppercase; }
.co-code { color: var(--signal); margin-left: .2em; }
.co-share { display: flex; gap: 10px; margin-bottom: 16px; }
.co-share .co-in { flex: 1 1 auto; min-width: 0; min-height: 34px; font: 400 12px/1 var(--f-mono); color: var(--bone-dim); }
.co-share .btn { flex: none; }
.co-roster { list-style: none; border-top: 1px solid var(--line); }
.co-roster li { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); font: 500 16px/1.2 var(--f-label); }
.co-roster li.empty { color: rgba(232, 228, 218, .34); font-size: 14px; }
.co-pip { flex: none; width: 9px; height: 9px; background: var(--c, var(--bone-faint)); }
.co-roster .n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-badge { flex: none; padding: 3px 6px 2px; font: 600 11px/1 var(--f-label); letter-spacing: .14em; color: var(--ink); background: var(--bone); }
.co-badge.host { background: var(--signal); }
.co-line { margin-top: 14px !important; font: 400 13px/1.5 var(--f-label); color: var(--bone-dim); min-height: 1px; }
.co-err { margin-top: 12px !important; font: 500 13px/1.5 var(--f-label); color: #ffb4a8; min-height: 1px; }
.co-err:empty { margin-top: 0 !important; }
.co-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.co-note { font: 400 11px/1.5 var(--f-mono); color: var(--steel); text-align: right; }

/* ---- squad list (lives inside the objective block of the HUD) ---- */
.co-squad { display: none; margin-top: 16px; }
.co-squad.on { display: block; }
.co-squad-k { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; font: 600 11px/1 var(--f-label); letter-spacing: .26em; color: rgba(232, 228, 218, .72); }
.co-squad-k span { font: 400 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--bone-dim); }
.co-squad ul { list-style: none; margin: 0; padding: 0; }
.co-squad li { display: grid; grid-template-columns: 8px minmax(0, 1fr) 46px 40px; align-items: center; gap: 8px; height: 22px; font: 500 13px/1 var(--f-label); letter-spacing: .04em; }
.co-squad .co-pip { width: 8px; height: 8px; }
.co-squad .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-hp { display: block; height: 4px; background: rgba(232, 228, 218, .22); box-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.co-hp b { display: block; height: 100%; width: 100%; background: var(--bone); }
.co-squad .d { font: 400 11px/1 var(--f-mono); color: var(--bone-dim); text-align: right; white-space: nowrap; }
.co-squad li.down .n, .co-squad li.down .d { color: var(--alarm); }
.co-squad li.down .co-hp b { background: var(--alarm); }

/* ---- teammate tags (projected onto the 3D view) ---- */
.co-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.co-tag { position: absolute; left: 0; top: 0; display: none; text-align: center; white-space: nowrap; will-change: transform; }
.co-tag.on { display: block; }
.co-tag span { display: block; font: 600 12px/1 var(--f-label); letter-spacing: .1em; color: var(--c, var(--bone)); text-shadow: var(--shadow); }
.co-tag i { display: block; width: 44px; height: 3px; margin: 5px auto 0; background: rgba(11, 13, 15, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .6); }
.co-tag i b { display: block; height: 100%; background: var(--c, var(--bone)); }
.co-tag.down span, .co-tag.down i b { color: var(--alarm); }
.co-tag.down i b { background: var(--alarm); }

/* ---- title screen ---- */
/* On wide screens the title legend already lists the controls. The game marks this button "narrow only" but ships
   no rule for it; hiding it there keeps the action row on one line now that the row has one more button. */
@media (min-width: 1180px) and (min-height: 600px) { .m-title .m-only-narrow { display: none; } }

/* ---- shared run ---- */
/* "再次出击" while a guest waits for the host to start the next run */
.menu .btn:disabled { opacity: .55; cursor: default; pointer-events: none; }
