body {
  font-family: 'Noto Sans KR', sans-serif;
  background: radial-gradient(circle at 30% 20%, #150c2a, #090a1a 75%);
  color: white;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 🌠 별빛 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 2s infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* 🧱 헤더 - 중앙 정렬 고정 */
.hud-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  text-align: center;
  z-index: 5;
}

.tft-logo {
  height: 36px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 10px rgba(120, 180, 255, 0.4));
}

/* 🌈 TFT ChatBot 글씨 */
.hud-title {
  font-size: 35px;
  font-weight: 700;
  background: linear-gradient(90deg, #b78aff, #9fc8ff, #6ee6ff);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(130, 190, 255, 0.8);
  letter-spacing: 1.2px;
  animation: shimmerFlow 10s ease-in-out infinite;
  margin: 0px 0 20px 0; /* 💎 제목과 패치 간격 명시 */
}

/* ✨ 그라데이션 흐름 애니메이션 */
@keyframes shimmerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 💠 Patch & Beta */
.hud-patch {
  font-size: 13px;
  color: #b8d4ff;
  background: rgba(30, 45, 80, 0.6);
  border-radius: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(130, 160, 255, 0.25);
  text-shadow: 0 0 6px rgba(100, 180, 255, 0.4);
  position: relative;
  top: 3px; /* 🎯 확실히 아래로 이동 */
}

/* 💬 채팅창 */
.chat-container {
  width: 90%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 70vh;
  box-shadow: 0 0 45px rgba(140, 80, 255, 0.25);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 100, 255, 0.15);
}

/* 채팅 영역 */
#chatbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

/* 🗨️ 말풍선 */
.bubble {
  padding: 12px 16px;
  max-width: 70%;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
  display: inline-block;
  font-size: 15px;
  opacity: 0;
  animation: fadeInBubble 0.4s ease forwards;
}

/* 🙋 유저 메시지 */
.chat-row.user {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.user-bubble {
  background: linear-gradient(135deg, #5b8cff, #8aa8ff);
  color: white;
  border-radius: 14px 14px 0 14px;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.4);
}

/* 🤖 봇 메시지 */
.chat-row.bot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.bot-bubble {
  background: rgba(45, 35, 90, 0.7);
  color: #e8e4ff;
  border-radius: 14px 14px 14px 0;
  box-shadow: 0 0 15px rgba(160, 100, 255, 0.25);
  border: 1px solid rgba(120, 100, 255, 0.15);
}

/* 🤖 봇 아이콘 */
.bot-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(160, 130, 255, 0.4);
  box-shadow: 0 0 12px rgba(160, 120, 255, 0.4);
}

/* ✍️ 입력창 */
.input-area {
  display: flex;
  margin-top: 10px;
}
.input-area input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 14px;
}
.input-area input::placeholder {
  color: rgba(220, 220, 255, 0.5);
}
.input-area button {
  margin-left: 10px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #5bd3ff, #4c82ff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.input-area button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
}

/* ✨ 말풍선 애니메이션 */
@keyframes fadeInBubble {
  0% { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 스크롤바 */
#chatbox::-webkit-scrollbar {
  width: 6px;
}
#chatbox::-webkit-scrollbar-thumb {
  background: rgba(130, 100, 255, 0.3);
  border-radius: 10px;
}
 /* 🎯 시너지 시뮬레이터 버튼 스타일 */
    .simulator-btn {
      display: inline-block;
      margin: 5px auto 0;
      margin-bottom: 10px;
      padding: 10px 18px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      color: white;
      font-weight: 600;
      border-radius: 10px;
      text-decoration: none;
      text-align: center;
      box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
      transition: all 0.25s ease;
    }
    .simulator-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
    }
    .simulator-btn i {
      margin-right: 6px;
    }

   