.grook-announcement-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, #050505, #101010, #181818, #111111, #050505);
  background-size: 400% 400%;
  animation: grookGradientMove 14s ease infinite;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.grook-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 80%);
  width: 40%;
  transform: translateX(-250%);
  animation: grookShine 10s linear infinite;
  pointer-events: none;
}

.grook-marquee {
  overflow: hidden;
  display: flex;
  width: 100%;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.grook-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  animation: grookScroll var(--grook-announcement-speed, 46s) linear infinite;
  will-change: transform;
}

.grook-announcement-bar:hover .grook-track {
  animation-play-state: paused;
}

.grook-track span {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #F3F3F3;
  padding: 12px 24px;
  flex-shrink: 0;
  transition: color .35s ease;
}

.grook-track span:hover {
  color: #D4AF37;
}

.grook-track strong {
  color: #D4AF37;
  font-weight: 600;
}

.grook-track .star {
  color: #D4AF37;
  font-size: 15px;
  line-height: 1;
  padding: 0 4px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  animation: grookTwinkle 3s ease infinite;
}

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

@keyframes grookShine {
  from { transform: translateX(-250%); }
  to { transform: translateX(500%); }
}

@keyframes grookScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes grookTwinkle {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 768px) {
  .grook-track {
    animation-duration: var(--grook-announcement-mobile-speed, 40s);
  }

  .grook-track span {
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 1px;
    padding: 5px 16px;
  }

  .grook-track .star {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grook-announcement-bar {
    animation: none;
  }
  .grook-shine,
  .grook-track,
  .grook-track .star {
    animation: none;
  }
}
