/* chat.css */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 25px;
  background: #ff3b3b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  z-index: 1000;
}

.chat-box {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 320px;
  background: #111;
  border: 1px solid #333;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.chat-box.hidden {
  display: none;
}

.chat-header {
  background: #ff3b3b;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 0.95rem;
  max-height: 400px; /* 🔹 Фиксированная высота окна */
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-top: 1px solid #333;
}


.chat-input {
  display: flex;
  border-top: 1px solid #333;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.chat-input button {
  background: #ff3b3b;
  border: none;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.msg {
  margin-bottom: 6px;
  word-wrap: break-word;
}
.m-letter {
  position: relative;
  display: inline-block;
}

.m-letter {
  position: relative;
  display: inline-block;
}

.m-letter {
  position: relative;
  display: inline-block;
}
.m-letter {
  position: relative;
  display: inline-block;
}

.m-letter::before {
  content: "👑";
  position: absolute;
  top: -0.9em;
  left: 45%;
  transform: translateX(-50%) rotate(-10deg);
  font-size: 0.8em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

