:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #141821;
  --panel2: #0f1320;
  --text: #e9edf5;
  --muted: #99a2b4;
  --accent: #66a3ff;
  --danger: #ff5a6a;
  --border: rgba(255, 255, 255, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#app {
  height: 100%;
}

.screen {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

.card {
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title {
  font-size: 18px;
  font-weight: 700;
}

input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.topbar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.roomTitle {
  font-weight: 700;
}

.spacer {
  flex: 1;
}

.pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.pill.on {
  border-color: rgba(102, 163, 255, 0.6);
  background: rgba(102, 163, 255, 0.14);
}

.pill.danger {
  border-color: rgba(255, 90, 106, 0.5);
  background: rgba(255, 90, 106, 0.12);
}

.grid {
  position: absolute;
  inset: 56px 0 0 0;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.meta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nameTag {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
