/* COLLAB — making a game together: the room chip + friends' dots in the top bar, the room sheet, the join screen.
   Uses the editor's tokens (--c-*). No chat anywhere, so there is nothing here for text entry but the name. */
.ed-collab { display: none; align-items: center; gap: 8px; min-width: 0; margin-right: 8px; }
.ed-collab.on { display: flex; }
.co-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-strong);
  background: var(--c-raised); color: var(--c-text); font: 600 14px/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.co-chip b { font-family: var(--font-display); letter-spacing: .08em; font-weight: 400; }
.co-chip:hover { background: var(--c-hover); }
.co-chip.warn { border-color: var(--c-warn); }
.co-chip .co-count { color: var(--c-text-2); font-weight: 500; }
.co-live { width: 9px; height: 9px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.co-chip.warn .co-live { background: var(--c-warn); box-shadow: 0 0 0 3px rgba(240,176,65,.2); }
.co-dots { display: flex; }
.co-dots .co-av { margin-left: -6px; box-shadow: 0 0 0 2px var(--c-panel); }
.co-dots .co-av:first-child { margin-left: 0; }
.co-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #14101c; font: 700 13px/1 var(--font-body); flex: none; }
.co-av.big { width: 36px; height: 36px; font-size: 16px; }
.co-av.away { opacity: .45; }
@media (max-width: 759.98px) {
  .co-chip .co-count { display: none; }
  .co-dots { display: none; }
  .co-chip { padding: 0 10px; min-height: 44px; }
}

.co-room { display: flex; flex-direction: column; gap: 14px; }
.co-codebox { background: var(--c-input); border: 1px solid var(--c-line); border-radius: var(--c-r-3); padding: 14px; text-align: center; }
.co-codelabel { color: var(--c-text-3); font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.co-code { font: 400 40px/1.2 var(--font-display); letter-spacing: .18em; margin: 6px 0 10px; color: var(--c-text); user-select: all; }
.co-linkrow { display: flex; gap: 8px; }
.co-linkrow .field { flex: 1; min-width: 0; font-size: 14px; }
.co-warn { background: rgba(240,176,65,.12); border: 1px solid var(--c-warn); border-radius: var(--c-r-2); padding: 10px 12px; font-size: 15px; }
.co-h { margin: 4px 0 0; font: 700 13px/1 var(--font-head); color: var(--c-text-3); letter-spacing: .06em; text-transform: uppercase; }
.co-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.co-person { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--c-r-2); background: var(--c-raised); min-height: 52px; }
.co-person.away { opacity: .6; }
.co-pname { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.co-pname b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-pname small { color: var(--c-text-2); font-size: 14px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.co-actions .danger { color: var(--c-danger); }

.co-pick { display: flex; flex-direction: column; gap: 12px; }
.co-names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 30vh; overflow: auto; }
.co-name { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--c-r-2); border: 1px solid var(--c-line-strong);
  background: var(--c-raised); color: var(--c-text); font: 600 15px/1 var(--font-body); cursor: pointer; text-align: left; }
.co-name[aria-checked="true"] { border-color: var(--c-select); background: var(--c-select-bg); }
.co-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.co-note { min-height: 20px; color: var(--c-text-2); font-size: 14px; }
.co-note.bad { color: var(--c-danger); }

.co-joinwrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--c-bg); }
.co-join { max-width: 420px; width: 100%; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--c-r-3); padding: 24px; color: var(--c-text); }
.co-join h1 { margin: 0 0 8px; font: 700 26px/1.15 var(--font-head); }
.co-join p { margin: 0 0 16px; color: var(--c-text-2); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) { .co-chip.warn .co-live { animation: co-pulse 1.2s ease-in-out infinite; } }
@keyframes co-pulse { 50% { opacity: .35; } }
