.mascot-app-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  font-family: sans-serif;
}

.mascot-app-container.is-floating {
  position: fixed;
  width: 320px;
  bottom: 20px;
  right: 20px;
  margin: 0;
  z-index: 99999;
  pointer-events: none;
}

.mascot-app-container * {
  box-sizing: border-box;
}

.mascot-ui {
  width: 100%;
  height: 350px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 1;
  margin-bottom: -30px;
  overflow: hidden;
}

.mascot-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: mascotFadeIn 0.3s ease-out;
}

@keyframes mascotFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.user {
  background-color: #85e249;
  color: #111;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.msg.ai {
  background-color: #f1f3f4;
  color: #333;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg.error {
  background-color: #ffebee;
  color: #c62828;
}

.msg.notice {
  background-color: #e3f2fd;
  color: #1565c0;
}

.mascot-input-row {
  display: flex;
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.mascot-in {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.mascot-send-btn,
.mascot-prepare-btn {
  margin-left: 8px;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
}

.mascot-send-btn {
  background-color: #85e249;
  color: #111;
}

.mascot-prepare-btn {
  background-color: #1a73e8;
  color: #fff;
}

.mascot-send-btn:disabled,
.mascot-prepare-btn:disabled {
  background-color: #ccc;
}

.mascot-spine-canvas-area {
  width: 250px;
  height: 250px;
  z-index: 2;
  pointer-events: none;
}

.mascot-spine-canvas-area canvas {
  width: 100%;
  height: 100%;
  display: block;
}