body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
  min-width: 320px;
}

#chatFeed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-behavior: smooth;
  gap: 0.8rem;

  /* Fade top */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;

  /* Hide scrollbar */
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE 10+ */
}

#chatFeed::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* ANIMASI KHUSUS CHAT BARU */
.chat-line.animate {
  transform: translateY(100%);
  animation: flickerSlideUp 0.8s ease-out forwards;
}

@keyframes flickerSlideUp {
  0%   { opacity: 0; transform: translateY(50%); }
  10%  { opacity: 1; transform: translateY(40%); }
  20%  { opacity: 0.3; transform: translateY(30%); }
  30%  { opacity: 1; transform: translateY(20%); }
  40%  { opacity: 0.5; transform: translateY(15%); }
  50%  { opacity: 1; transform: translateY(10%); }
  60%  { opacity: 0.2; transform: translateY(5%); }
  70%  { opacity: 1; transform: translateY(2%); }
  80%  { opacity: 0.6; transform: translateY(1%); }
  100% { opacity: 1; transform: translateY(0); }
}

.chat-line strong {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #ffd700;
}

.chat-line > span {
  display: block;
  font-size: 1.6rem;
  color: #eee;
}


.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #f0f0f0;
}

.panel-header button {
  margin: 0;
}

.tag-word {
  display: inline;
  color: var(--nickname-color) !important;
  font-weight: normal;
}
