/* ---------- group-call landing + call screen ---------- */

.gc-page {
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.gc-card { max-width: 420px; }
.gc-card .login-brand { margin-bottom: 1.1rem; }

/* live status pill */
.gc-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  width: 100%; padding: .6rem .9rem; margin-bottom: 1.2rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .85rem;
}
.gc-pill .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--faint);
  flex: none;
}
.gc-pill.live { color: var(--text); border-color: rgba(127,230,176,.4);
  background: rgba(127,230,176,.08); }
.gc-pill.live .dot { background: var(--green); animation: gc-pulse 1.6s ease-out infinite; }
@keyframes gc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(127,230,176,.5); }
  70% { box-shadow: 0 0 0 8px rgba(127,230,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,230,176,0); }
}

.gc-form { display: flex; flex-direction: column; gap: .9rem; }
.gc-count { color: var(--muted); font-size: .85rem; }

/* in-call: full-screen, same structure as the SPA call overlay */
#gc-call-view {
  position: fixed; inset: 0; background: var(--bg); z-index: 50;
  display: flex; flex-direction: column;
}
#gc-call-view .call-grid { flex: 1; min-height: 0; }
#gc-call-view .tile { position: relative; display: flex; }

/* in-call controls: one floating island at the bottom center */
.gc-controls {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(11, 28, 33, 0.9);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 60;
}
.gc-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: var(--bg-3); color: var(--text);
  cursor: pointer; transition: background .15s, color .15s, transform .1s;
}
.gc-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.gc-btn:hover { background: var(--bg-4); }
.gc-btn:active { transform: scale(0.94); }
.gc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gc-btn.off { background: rgba(255, 158, 158, 0.14); color: var(--red); }
.gc-btn.off:hover { background: rgba(255, 158, 158, 0.24); }
.gc-btn-end { background: var(--red); color: var(--accent-ink); }
.gc-btn-end:hover { background: #ffb4b4; }

/* screen share: active (presenting) state — Material expresses state with color */
.gc-btn.on { background: var(--accent); color: var(--accent-ink); }
.gc-btn.on:hover { background: var(--accent-2); }

/* shared-screen tile: letterboxed (never cropped) */
.tile.is-screen video { object-fit: contain; background: #000; }
/* ...and dominant when it is not the only tile in the grid */
#gc-grid .tile.is-screen.big { grid-column: span 2; grid-row: span 2; }
