body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background-color: #0f0f0f;
}

#app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#chat-overlay-root {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  pointer-events: none;
}

.chat-overlay {
  width: 280px;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 8px;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13px;
  pointer-events: auto;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  max-height: 160px;
  margin-bottom: 8px;
}

.chat-message {
  padding: 4px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-character {
  color: #7dd3fc;
  font-weight: 600;
}

.chat-text {
  color: #fff;
}

.chat-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  box-sizing: border-box;
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
