/* LittleScreen - site-wide ticker styles. */
:root {
  --ls-ticker-height: 26px;
  --ls-page-top-offset: 64px;
  --ls-page-bottom-offset: 56px;
  --ls-room-header-offset: 70px;
}
.ls-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* 2026-05-25 — bumped above the splash overlay (z-index 200) so the
     ticker shows on the home splash too, per D ask. */
  z-index: 250;
  height: var(--ls-ticker-height);
  background: linear-gradient(180deg, rgba(20,14,28,.92), rgba(14,9,20,.86));
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(244,238,248,.78);
  font-size: .72rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ls-ticker.ls-ticker-paused .ls-ticker-track,
.ls-ticker.ls-ticker-pause-hover:hover .ls-ticker-track {
  animation-play-state: paused;
}
.ls-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  padding-left: 100%;
  animation: lstickerSlide var(--ls-ticker-duration, 140s) linear infinite;
  will-change: transform;
}
.ls-ticker-speed-slow { --ls-ticker-duration: 190s; }
.ls-ticker-speed-normal { --ls-ticker-duration: 140s; }
.ls-ticker-speed-fast { --ls-ticker-duration: 90s; }
@keyframes lstickerSlide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ls-ticker-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ls-ticker-item a { color: var(--accent, #f0a050); text-decoration: none; border-bottom: 1px dotted rgba(240,160,80,.4); }
.ls-ticker-item a:hover { text-decoration: underline; }
.ls-ticker-tag {
  font-size: .58rem; font-weight: 800; letter-spacing: .14em;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.62);
}
.ls-ticker-announce .ls-ticker-tag { color: #b6e8ff; border-color: rgba(120,216,255,.35); background: rgba(120,216,255,.06); }
.ls-ticker-quote    .ls-ticker-tag { color: #ffd76b; border-color: rgba(255,215,107,.35); background: rgba(255,215,107,.06); }
.ls-ticker-fact     .ls-ticker-tag { color: #c0e9b3; border-color: rgba(140,210,120,.30); background: rgba(140,210,120,.06); }
.ls-ticker-link     .ls-ticker-tag { color: #d8c2ff; border-color: rgba(176,132,255,.35); background: rgba(176,132,255,.07); }
.ls-ticker-sep { opacity: .35; padding: 0 4px; }
.ls-ticker-pause {
  flex-shrink: 0;
  width: var(--ls-ticker-height);
  height: var(--ls-ticker-height);
  border: 0; background: transparent;
  color: rgba(244,238,248,.55); font-size: .62rem;
  cursor: pointer; border-left: 1px solid rgba(255,255,255,.06);
}
.ls-ticker-pause:hover { color: var(--accent, #f0a050); }
.ls-ticker.ls-ticker-reduced .ls-ticker-slot {
  flex: 1 1 auto; padding: 0 14px;
  text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ls-ticker-mode-fade,
.ls-ticker-mode-carousel {
  justify-content: center;
}
.ls-ticker-mode-fade .ls-ticker-pause,
.ls-ticker-mode-carousel .ls-ticker-pause {
  position: absolute;
  right: 0;
  top: 0;
}
.ls-ticker-rotator {
  position: relative;
  flex: 1 1 auto;
  width: min(920px, calc(100vw - 44px));
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 12px;
}
.ls-ticker-rotator-item {
  position: absolute;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity var(--ls-ticker-transition, 650ms) ease,
    transform var(--ls-ticker-transition, 650ms) ease;
}
.ls-ticker-rotator-item .ls-ticker-item {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-ticker-rotator-item.is-enter {
  opacity: 0;
  transform: translateX(48px);
}
.ls-ticker-rotator-item.is-leave {
  opacity: 0;
  transform: translateX(-48px);
}
.ls-ticker-rotator-item.is-fade-enter {
  opacity: 0;
  transform: translateY(2px) scale(.985);
}
.ls-ticker-rotator-item.is-fade-leave {
  opacity: 0;
  transform: translateY(-2px) scale(.985);
}
body.ls-has-ticker { padding-top: calc(var(--ls-page-top-offset) + var(--ls-ticker-height)); }
body.ls-has-ticker .ls-topnav { top: var(--ls-ticker-height); }
body.ls-has-ticker .ls-topnav-links { top: calc(var(--ls-page-top-offset) + var(--ls-ticker-height)); }
body.ls-has-ticker.ls-page-lobby,
body.ls-has-ticker.ls-page-room,
body.ls-has-ticker.ls-page-home-v2 {
  padding-top: calc(var(--ls-page-top-offset) + var(--ls-ticker-height));
}
body.chrome-hidden.ls-has-ticker {
  padding-top: var(--ls-ticker-height);
}
body.ls-has-ticker.ls-page-lobby .lobby-map {
  height: calc(100vh - var(--ls-page-top-offset) - var(--ls-page-bottom-offset) - var(--ls-ticker-height));
}
body.ls-has-ticker.ls-page-room .room-body {
  height: calc(100vh - var(--ls-page-top-offset) - var(--ls-page-bottom-offset) - var(--ls-room-header-offset) - var(--ls-ticker-height));
}
body.vr-mode.ls-has-ticker {
  --ls-page-top-offset: 78px;
  --ls-page-bottom-offset: 90px;
}
body.ls-no-ticker .ls-ticker { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ls-ticker-track { animation: none; transform: none; padding-left: 0; }
  .ls-ticker-rotator-item { transition: none; }
}
@media (max-width: 540px) {
  :root { --ls-ticker-height: 22px; }
  .ls-ticker { font-size: .66rem; }
  .ls-ticker-rotator { width: calc(100vw - 34px); padding: 0 8px; }
  .ls-ticker-tag { font-size: .52rem; padding-inline: 5px; }
}
