/* ランキングティッカー */
#ranking-ticker {
  display: none;
  box-sizing: border-box;
  width: min(960px, 92vw);
  margin: 12px auto 0;
  border: 1px solid #e3e3e3;
  background: #fafbfd;
  color: #111;
  padding: 8px 12px;
  overflow: hidden;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 14px;

  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

/* ランキングティッカーラベル */
#ranking-ticker .title {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

/* ランキングティッカーテキスト */
#ranking-ticker .marquee {
  white-space: nowrap;
  display: inline-block;
  animation: ticker-scroll 18s linear infinite;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  letter-spacing: 0.3px;
}

/* ランキングティッカー一時停止 */
#ranking-ticker.paused .marquee {
  animation-play-state: paused;
}

/* ランキングティッカーアニメーション */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* オーバーレイ配置用（シューティングで使用） */
#ranking-ticker.ticker-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
}
