/* Video call strip at the bottom of the center column */
.col-center { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.center-scroll { flex: 1; min-height: 0; overflow: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; }

.callbar {
  flex: none; position: relative; display: flex; align-items: flex-end; gap: 0.6rem;
  padding: 0.55rem 0.8rem 0.6rem; border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(6, 7, 5, 0.85), rgba(12, 14, 10, 0.75));
}
.callbar.idle { align-items: center; justify-content: space-between; }
.call-cta { display: flex; align-items: center; gap: 0.8rem; }
.call-err { position: absolute; left: 0.8rem; top: -1.9rem; margin: 0; font-size: 0.85rem; color: #f0c7bb; background: rgba(40, 12, 8, 0.92); border: 1px solid rgba(207, 83, 57, 0.5); padding: 0.15rem 0.6rem; border-radius: 99px; }
.callbar.idle .call-err { position: static; }

.call-tiles { flex: 1; min-width: 0; display: flex; gap: 0.55rem; overflow-x: auto; align-items: flex-end; padding-bottom: 2px; }
.vtile {
  position: relative; flex: 1 1 0; min-width: 140px; max-width: 300px; aspect-ratio: 4 / 3;
  border-radius: 9px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1c2117, #0b0d09);
  border: 1px solid var(--line2); box-shadow: 0 10px 24px -14px #000;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.vtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vtile.self video { transform: scaleX(-1); }
.vtile.no-cam video { opacity: 0; }
.vt-avatar { position: absolute; inset: 0; display: grid; place-items: center; }
.vt-label {
  position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); display: flex; align-items: center; gap: 0.3rem;
  padding: 0.05rem 0.5rem 0.05rem 0.35rem; border-radius: 99px; background: rgba(6, 7, 5, 0.72);
  font-family: var(--caps); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--bone);
}
.vt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-muted { display: inline-grid; color: #f0a38f; }
.vt-muted svg { width: 14px; height: 14px; }
.vt-status { position: absolute; top: 6px; left: 6px; font-size: 0.78rem; color: var(--dim); background: rgba(6, 7, 5, 0.7); padding: 0 0.45rem; border-radius: 99px; }
.vt-vol { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 0.15s; background: rgba(6, 7, 5, 0.72); border-radius: 99px; padding: 0.1rem 0.45rem; display: flex; }
.vt-vol input { width: 78px; accent-color: var(--gold); }
.vtile:hover .vt-vol, .vt-vol:focus-within { opacity: 1; }

/* speaking: thin gold edge plus a tiny equalizer next to the name */
.vtile.speaking { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 16px -2px rgba(232, 199, 111, 0.55); }
.spk-bars { display: inline-flex; align-items: flex-end; gap: 1.5px; width: 12px; height: 11px; }
.spk-bars i { flex: 1; background: var(--gold-hi); border-radius: 1px; animation: spk 0.7s ease-in-out infinite; }
.spk-bars i:nth-child(2) { animation-delay: 0.15s; }
.spk-bars i:nth-child(3) { animation-delay: 0.3s; }
@keyframes spk { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.who-chip .avatar { transition: box-shadow 0.15s; }
.who-chip.speaking .avatar { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 10px rgba(232, 199, 111, 0.6); }

.vt-absent { flex: none; align-self: center; display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.2rem; opacity: 0.6; }

/* controls */
.call-ctrl { flex: none; display: flex; gap: 0.3rem; align-items: center; align-self: center; }
.cbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel2); color: var(--bone); }
.cbtn:hover { border-color: var(--gold-lo); background: var(--panel3); }
.cbtn.off { background: #3a1510; border-color: var(--blood); color: #f6cfc4; }
.cbtn.ghost { background: transparent; color: var(--dim); }
.cbtn.leave { background: linear-gradient(180deg, #b23d2b, #7d2418); border-color: #d05a42; color: #fbe9e3; }
.cbtn.leave svg { transform: rotate(135deg); }
.dev-wrap { position: relative; }
.call-devices { position: absolute; right: 0; bottom: calc(100% + 8px); width: 300px; z-index: 20; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 0.4rem 0.7rem 0.6rem; box-shadow: 0 20px 40px -10px #000; }
.call-devices select { width: 100%; }

/* collapsed: audio keeps going, tiles shrink to name chips */
.callbar.collapsed .vtile { flex: 0 0 auto; width: auto; aspect-ratio: auto; height: 34px; min-width: 110px; }
.callbar.collapsed .vtile video, .callbar.collapsed .vt-avatar, .callbar.collapsed .vt-vol, .callbar.collapsed .vt-status { display: none; }
.callbar.collapsed .vt-label { position: static; margin: 4px 6px; background: transparent; }

.vtile:fullscreen { width: 100vw; aspect-ratio: auto; border-radius: 0; }
.vtile:fullscreen video { object-fit: contain; }

/* the combat pill sits above the call strip */
.center-scroll .combat-banner { position: sticky; bottom: 0; }
