html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Syne Mono', monospace;
  overflow: hidden;
}

canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Chat layout */

#chat-ui {
  position: absolute;
  right: 7vw;
  top: 10vh;
  width: 37vw;
  height: 76vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Title */

#chat-title {
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  color: #111;
}

/* Message area */

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 6px 18px 6px;
  box-sizing: border-box;
}

/* Message grouping */

.message-group {
  margin-bottom: 18px;
}

/* Labels */

.message-label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #111;
}

.user-label {
  text-align: right;
}

.bot-label {
  text-align: left;
}

/* Chat bubbles */

.message {
  max-width: 76%;
  padding: 14px 18px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 14px;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-sizing: border-box;
}

/* User bubble */

.message.user {
  margin-left: auto;
  background: linear-gradient(90deg, #4f14ff, #2a00ff);
  color: white;
}

/* Bot bubble */

.message.bot {
  margin-right: auto;
  background: #e8e8e8;
  color: #111;
  border: 1px solid #222;
}

/* Input row */

#input-row {
  display: flex;
  gap: 14px;
  padding-top: 10px;
}

/* Text box */

#user-input {
  flex: 1;
  height: 54px;
  border: 1px solid #222;
  border-radius: 12px;
  background: #f8f8f8;
  padding: 0 16px;
  font-family: 'Syne Mono', monospace;
  font-size: 14px;
  outline: none;
}

#user-input::placeholder {
  color: #777;
}

/* Send button */

#send-btn {
  width: 108px;
  height: 54px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #4f14ff, #2a00ff);
  color: white;
  font-family: 'Syne Mono', monospace;
  font-size: 14px;
  cursor: pointer;
}

#send-btn:hover {
  opacity: 0.92;
}