/* Christmas Game - Trò chơi click cây thông (Offline only) */

/* Game Hint - Chỉ dẫn cạnh cây thông (rất nhỏ gọn) */
.christmas-game-hint {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 235, 59, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  animation: hintPulse 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: auto;
}

.christmas-game-hint:hover {
  border-color: rgba(255, 235, 59, 0.7);
  box-shadow: 0 0 12px rgba(255, 235, 59, 0.5);
}

.christmas-game-hint-icon {
  font-size: 0.75rem;
  animation: hintBounce 1s ease-in-out infinite;
  flex-shrink: 0;
  line-height: 1;
}

.christmas-game-hint-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: #ffeb3b;
  text-shadow: 0 0 5px rgba(255, 235, 59, 0.6);
  line-height: 1.2;
}

.christmas-game-hint-subtext {
  display: none;
}

@keyframes hintPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 235, 59, 0.5);
  }
}

@keyframes hintBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Milestone Announcement - Hiển thị trên cây thông */
.christmas-killstreak {
  position: absolute;
  top: -135px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100004;
  pointer-events: none;
  text-align: center;
  animation: killstreakShow 0.1s ease-out forwards;
  width: 100%;
  max-width: 300px;
}

.christmas-killstreak.hidden {
  display: none;
}

.christmas-killstreak-text {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px currentColor, 0 0 30px currentColor,
    0 0 45px currentColor, 0 0 60px currentColor, 0 3px 6px rgba(0, 0, 0, 0.9),
    0 0 0 2px rgba(0, 0, 0, 0.5);
  animation: killstreakPulse 0.5s ease-in-out;
  line-height: 1.2;
  margin-bottom: 5px;
  filter: brightness(1.2) saturate(1.3);
}

.christmas-killstreak-subtext {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px currentColor, 0 0 15px currentColor,
    0 1px 2px rgba(0, 0, 0, 0.8);
  animation: killstreakSlide 0.5s ease-out;
}

/* Milestone Colors - Màu sắc sặc sỡ, đậm đà */
.christmas-killstreak.first-blood .christmas-killstreak-text {
  color: #00ff00; /* Xanh lá đậm - Christmas Spirit */
  filter: brightness(1.3) saturate(1.5);
}

.christmas-killstreak.double-kill .christmas-killstreak-text {
  color: #ffd700; /* Vàng đậm - Santa's Favorite */
  filter: brightness(1.3) saturate(1.5);
}

.christmas-killstreak.triple-kill .christmas-killstreak-text {
  color: #ff00ff; /* Tím đậm - Magical Moment */
  filter: brightness(1.3) saturate(1.5);
}

.christmas-killstreak.rampage .christmas-killstreak-text {
  color: #ff1493; /* Hồng đậm - Gift Master */
  filter: brightness(1.3) saturate(1.5);
  animation: killstreakPulse 0.5s ease-in-out, killstreakShake 0.5s ease-in-out;
}

.christmas-killstreak.unstoppable .christmas-killstreak-text {
  color: #00bfff; /* Xanh dương đậm - Shining Star */
  filter: brightness(1.3) saturate(1.5);
  animation: killstreakPulse 0.5s ease-in-out, killstreakRotate 0.5s ease-in-out;
}

.christmas-killstreak.godlike .christmas-killstreak-text {
  color: #ffff00; /* Vàng chanh đậm - Party Mode */
  filter: brightness(1.4) saturate(1.6);
  animation: killstreakPulse 0.5s ease-in-out, killstreakGlow 0.5s ease-in-out;
}

.christmas-killstreak.beyond-godlike .christmas-killstreak-text {
  color: #ffffff;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff8c00,
    #ffd700,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff,
    #ff1493
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.5) saturate(2);
  animation: killstreakPulse 0.5s ease-in-out, killstreakRainbow 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes killstreakShow {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes killstreakPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes killstreakSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes killstreakShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px) rotate(-2deg);
  }
  75% {
    transform: translateX(10px) rotate(2deg);
  }
}

@keyframes killstreakRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes killstreakGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(2);
  }
}

@keyframes killstreakRainbow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .christmas-game-hint {
    padding: 6px 10px;
    gap: 6px;
    top: -25px;
  }

  .christmas-game-hint-icon {
    font-size: 1rem;
  }

  .christmas-game-hint-text {
    font-size: 0.75rem;
  }

  .christmas-killstreak {
    top: -100px;
    max-width: 250px;
  }

  .christmas-killstreak-text {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  .christmas-killstreak-subtext {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .christmas-game-hint {
    padding: 5px 8px;
    gap: 5px;
    top: -22px;
  }

  .christmas-game-hint-icon {
    font-size: 0.9rem;
  }

  .christmas-game-hint-text {
    font-size: 0.7rem;
  }

  .christmas-killstreak {
    top: -90px;
    max-width: 200px;
  }

  .christmas-killstreak-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .christmas-killstreak-subtext {
    font-size: 0.7rem;
  }
}
