* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
}

#chat-container {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 500px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

#chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  animation: fadeIn 0.4s ease-out;
  word-break: break-word;
}

.chat-message .author {
  font-weight: 700;
  color: #7dd3fc;
  margin-right: 8px;
}

.chat-message .text {
  color: #f0f0f0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.chat-message.removing {
  animation: fadeOut 0.3s ease-out forwards;
}
