  @import url('https://fonts.googleapis.com/css2?family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap');

#motivation-block-9271 {
  font-family: 'Shantell Sans', cursive;
  margin: 0;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.mb-container-9271 {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.mb-message-wrapper-9271 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mb-message-9271 {
  background: linear-gradient(135deg, #f8f4ff, #f0e8ff);
  border-radius: 20px;
  padding: 15px 20px;
  position: relative;
  box-shadow: 0 4px 18px rgba(107, 13, 173, 0.135);
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(139, 95, 191, 0.1);
  margin-bottom: 10px;
  transition: all 0.5s ease;
  min-width: 280px;
}

.mb-message-9271.secret-mode {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: mb-secretTransition-9271 1.2s ease-out;
}

.mb-message-content-9271 {
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.mb-sender-container-9271 {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.mb-avatar-9271 {
  flex-shrink: 0;
  cursor: pointer;
  margin-right: 10px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.mb-avatar-9271.disabled {
  cursor: not-allowed;
}

.mb-avatar-letter-9271 {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #8B5FBF, #6A0DAD);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 2px 9px rgba(107, 13, 173, 0.27);
  transition: all 0.5s ease;
}

.mb-avatar-9271:hover:not(.disabled) .mb-avatar-letter-9271 {
  transform: scale(1.1);
}

.mb-avatar-9271.disabled .mb-avatar-letter-9271 {
  background: linear-gradient(135deg, #cccccc, #999999);
  animation: mb-grayPulse-9271 0.8s ease-out;
}

.mb-sender-9271 {
  font-weight: 600;
  margin: 0;
  font-size: 16px;
  color: #6A0DAD;
  transition: all 0.5s ease;
  position: relative;
  z-index: 2;
}

.mb-sender-9271.clickable {
  cursor: pointer;
}

.mb-sender-9271.clickable:hover {
  text-decoration: underline;
}

.mb-sender-9271.anonymous {
  color: #666;
  cursor: default;
}

.mb-sender-9271.anonymous:hover {
  text-decoration: none;
}

.mb-sender-9271.angry {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mb-angryTransition-9271 0.8s ease-out;
}

.mb-text-container-9271 {
  position: relative;
}

.mb-text-9271 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: normal;
  position: relative;
  z-index: 2;
  min-height: 1.4em;
  transition: all 0.5s ease;
}

.mb-text-9271.reaction-mode {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.mb-text-9271.typing::after {
  content: '|';
  animation: mb-cursorBlink-9271 1s infinite;
  color: #000;
  font-weight: bold;
  margin-left: 2px;
}

.mb-time-9271 {
  font-size: 12px;
  color: #8B5FBF;
  text-align: right;
  margin-top: 5px;
  transition: all 0.5s ease;
}

.mb-time-9271.secret-mode {
  color: #666;
}

/* Контейнер для кнопки */
.mb-button-container-9271 {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

/* Обновленная кнопка секрета - минималистичная */
.mb-secret-button-9271 {
  background: transparent;
  color: #8B5FBF;
  border: 2px solid #8B5FBF;
  border-radius: 16px;
  padding: 7px 14px;
  font-family: 'Shantell Sans', cursive;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 120px;
}

.mb-secret-button-9271:hover:not(.shrinking) {
  background: rgba(139, 95, 191, 0.05);
  border-color: #6A0DAD;
  color: #6A0DAD;
  transform: translateY(-1px);
}

.mb-secret-button-9271.shrinking {
  animation: mb-buttonShrink-9271 0.8s ease-in-out forwards;
  pointer-events: none;
}

.mb-button-text-9271 {
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.mb-button-particles-9271 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Плавающие иконки на фоне */
.mb-floating-icons-9271 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  z-index: 1;
}

.mb-floating-icon-9271 {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.2;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: mb-iconFloat-9271 8s infinite ease-in-out;
}

/* Плавающие знаки вопроса */
.mb-question-icon-9271 {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.15;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: mb-iconFloat-9271 10s infinite ease-in-out;
  z-index: 1;
}

/* Плавающие слова СЕКРЕТ */
.mb-secret-word-9271 {
  position: absolute;
  font-size: 14px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.08);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  font-family: 'Shantell Sans', cursive;
  animation: mb-secretFloat-9271 20s infinite linear;
}

/* Секретная иконка для серого фона */
.mb-secret-bg-icon-9271 {
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.08);
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Shantell Sans', cursive;
  animation: mb-secretBgFloat-9271 15s infinite ease-in-out;
  opacity: 0.3;
}

/* Анимированная реплика от аватарки - СЛЕВА */
.mb-avatar-reply-9271 {
  position: absolute;
  background: white;
  border-radius: 15px;
  padding: 8px 12px;
  font-size: 14px;
  color: #6A0DAD;
  box-shadow: 0 3px 13.5px rgba(107, 13, 173, 0.18);
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  border: 1px solid rgba(139, 95, 191, 0.2);
  font-weight: 600;
  animation: mb-replyAppearLeft-9271 2s ease-out;
  right: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
}

/* Анимации */
@keyframes mb-grayPulse-9271 {
  0% { 
    background: linear-gradient(135deg, #8B5FBF, #6A0DAD);
    transform: scale(1);
  }
  50% { 
    background: linear-gradient(135deg, #cccccc, #999999);
    transform: scale(1.1);
  }
  100% { 
    background: linear-gradient(135deg, #cccccc, #999999);
    transform: scale(1);
  }
}

@keyframes mb-angryTransition-9271 {
  0% { 
    background: linear-gradient(135deg, #6A0DAD, #8B5FBF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1);
  }
  50% { 
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
  }
  100% { 
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1);
  }
}

@keyframes mb-secretTransition-9271 {
  0% { 
    background: linear-gradient(135deg, #f8f4ff, #f0e8ff);
    transform: scale(1);
    border-radius: 20px;
  }
  30% { 
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    transform: scale(0.95);
    border-radius: 18px;
  }
  70% { 
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    transform: scale(0.95);
    border-radius: 18px;
  }
  100% { 
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    transform: scale(1);
    border-radius: 20px;
  }
}

@keyframes mb-replyAppearLeft-9271 {
  0% { 
    opacity: 0; 
    transform: translateY(-50%) translateX(5px) scale(0.9); 
  }
  20% { 
    opacity: 1; 
    transform: translateY(-50%) translateX(0) scale(1.05); 
  }
  30% { 
    transform: translateY(-50%) translateX(0) scale(1); 
  }
  80% { 
    opacity: 1; 
    transform: translateY(-50%) translateX(0) scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-50%) translateX(-5px) scale(0.9); 
  }
}

@keyframes mb-secretFloat-9271 {
  0% { 
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% { 
    transform: translate(150px, 120px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes mb-secretBgFloat-9271 {
  0% { 
    transform: translate(0, 0) rotate(0deg);
  }
  25% { 
    transform: translate(20px, 15px) rotate(5deg);
  }
  50% { 
    transform: translate(10px, 25px) rotate(0deg);
  }
  75% { 
    transform: translate(-15px, 20px) rotate(-5deg);
  }
  100% { 
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes mb-cursorBlink-9271 {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes mb-buttonShrink-9271 {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes mb-particleExplosion-9271 {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

@keyframes mb-iconFloat-9271 {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, 10px) rotate(5deg); }
  50% { transform: translate(5px, 20px) rotate(0deg); }
  75% { transform: translate(-10px, 15px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .mb-container-9271 {
    max-width: 100%;
  }
  
  .mb-message-9271 {
    max-width: 90%;
    min-width: 250px;
  }
  
  .mb-avatar-reply-9271 {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
  }
  
  .mb-avatar-letter-9271 {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  
  .mb-sender-9271 {
    font-size: 15px;
  }
  
  .mb-text-9271 {
    font-size: 16px;
  }
  
  .mb-secret-button-9271 {
    font-size: 12px;
    padding: 6px 12px;
    min-width: 110px;
  }
  
  /* Отключаем кликабельность аватара и имени на мобильных */
  .mb-avatar-9271 {
    cursor: default;
    pointer-events: none;
  }
  
  .mb-sender-9271.clickable {
    cursor: default;
    pointer-events: none;
  }
  
  .mb-sender-9271.clickable:hover {
    text-decoration: none;
  }
}