:root{
  --ticker-h: 44px;
  --ticker-speed: 35s;
  
}





:root{
  --ticker-h: 44px;
  --ticker-gap: 12px;   /* matches .news-ticker bottom */
  --ticker-pad: 18px;   /* extra breathing room above ticker */
}

body{
  padding-bottom: calc(
    var(--ticker-h) +
    var(--ticker-gap) +
    var(--ticker-pad) +
    env(safe-area-inset-bottom)
  );
}

.news-ticker{
  bottom: var(--ticker-gap);
}


.news-ticker{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);   /* center it */

  width: min(1180px, 92vw);      /* match your nav container feel */
  bottom: 12px;                  /* float slightly above edge */

  z-index: 2000;
  background: var(--nav-bg);

 border:1px solid var(--line);
  border-radius: 18px;           /* 🔥 rounded corners */
  backdrop-filter: blur(10px);

  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);  /* floating card feel */
}

.news-ticker__inner{
  height: var(--ticker-h);
  border-radius: 18px;
}

.news-ticker__inner{
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}

/* Pill label */
.news-ticker__label{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  flex-shrink: 0;
}

/* Scrolling area */
.news-ticker__track{
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.news-ticker__content{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding-right: 24px;
  animation: ticker-scroll var(--ticker-speed) linear infinite;
}

.news-ticker:hover .news-ticker__content{
  animation-play-state: paused;
}

@keyframes ticker-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Items */
.news-ticker__item{
  color: var(--ticker-text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: .9;
}

.news-ticker__item:hover{
  text-decoration: underline;
  opacity: 1;
}

.news-ticker__sep{
  opacity: .35;
}

/* Close button */
.news-ticker__close{
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: white;
  border-radius: 10px;
  height: 30px;
  width: 34px;
  cursor: pointer;
}

.news-ticker__close:hover{
  background: rgba(255,255,255,.08);
}

/* subtle shine sweep */
.news-ticker::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: shine 8s linear infinite;
  pointer-events:none;
}

@keyframes shine{
  from{ transform: translateX(-100%); }
  to{ transform: translateX(100%); }
}

/* accessibility */
@media (prefers-reduced-motion: reduce){
  .news-ticker__content{ animation: none; }
}

