* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #0f1115;
  color: #f2f2f2;
  height: 100vh;
  overflow: hidden;
}

.layout {
  display: flex;
  height: 100vh;
}

/* CENTER */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  text-align: center;
}

.big-text {
  font-size: clamp(2rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 90%;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.host-bar {
  position: absolute;
  top: 20px;
  right: 20px;
}

.host-bar button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #4f8cff;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.host-input {
  position: absolute;
  bottom: 30px;
  width: 80%;
  max-width: 700px;
  height: 90px;
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #1c1f26;
  color: #f2f2f2;
  resize: none;
}

.hidden { display: none; }

/* RIGHT: chat */
.chat {
  width: 320px;
  border-left: 1px solid #262a33;
  background: #14161c;
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.messages .msg {
  margin-bottom: 10px;
  font-size: 0.9rem;
  word-wrap: break-word;
}

.messages .msg .user {
  color: #4f8cff;
  font-weight: 600;
  margin-right: 6px;
}

.chat-form {
  display: flex;
  border-top: 1px solid #262a33;
}

.chat-form input {
  flex: 1;
  padding: 10px;
  border: none;
  background: #1c1f26;
  color: #f2f2f2;
  font-size: 0.9rem;
}

.chat-form button {
  padding: 10px 14px;
  border: none;
  background: #4f8cff;
  color: white;
  cursor: pointer;
}
