:root {
  --scjt-scroll-distance: -50%;
}

@keyframes scjtTickerMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--scjt-scroll-distance));
  }
}

.scjt-ticker,
.scjt-ticker * {
  box-sizing: border-box;
}

.scjt-ticker {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.scjt-ticker__container {
  overflow: hidden;
}

.scjt-ticker__marquee {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: 70px;
  animation: scjtTickerMarquee var(--scjt-scroll-duration, 60s) linear infinite;
}

.scjt-ticker__marquee:hover {
  animation-play-state: paused;
}


.scjt-ticker__item {
  display: grid;
  grid-template-columns: auto minmax(96px, 1fr) auto;
  flex: 0 0 auto;
  align-items: center;
  column-gap: 14px;
  min-width: 280px;
  min-height: 60px;
  margin-left: 12px;
  padding: 9px 14px;
  border: 2px solid rgb(255 228 0 / 82%);
  border-radius: 8px;
  background: linear-gradient(90deg, #232323 42%, #b80909 70%, #e50539);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%);
}

.scjt-ticker__item--mega {
  background: linear-gradient(90deg, #232323 42%, #b80909 70%, #e50539);
}

.scjt-ticker__item--major {
  background: linear-gradient(90deg, #232323 42%, #d17900 70%, #fc6200);
}

.scjt-ticker__item--mini {
  background: linear-gradient(90deg, #232323 42%, #3b852b 70%, #1f8d32);
}

.scjt-ticker__pot,
.scjt-ticker__amount,
.scjt-ticker__player {
  font-weight: 950;
  line-height: 1;
}

.scjt-ticker__pot,
.scjt-ticker__player {
  color: #ffe400;
}

.scjt-ticker__pot,
.scjt-ticker__player {
  font-size: 21px;
}

.scjt-ticker__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scjt-ticker__player,
.scjt-ticker__time {
  display: block;
  white-space: nowrap;
}

.scjt-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.16em;
}

.scjt-amount__currency {
  font-size: 0.55em;
  line-height: 1;
}

.scjt-ticker__amount {
  justify-self: end;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.scjt-ticker__time {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.92;
}

.scjt-ticker__loading {
  padding: 14px 18px;
  color: #fff;
  background: #232323;
  border-radius: 6px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .scjt-ticker__item {
    grid-template-columns: auto minmax(76px, 1fr) auto;
    min-width: 230px;
    min-height: 54px;
    column-gap: 9px;
    padding: 7px 10px;
  }

  .scjt-ticker__amount {
    font-size: 21px;
  }

  .scjt-ticker__pot,
  .scjt-ticker__player {
    font-size: 14px;
  }

  .scjt-ticker__time {
    font-size: 11px;
  }
}
.scjt-ticker.is-scjt-celebrating .scjt-ticker__marquee {
  animation-play-state: paused;
}

.scjt-celebration {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  height: 100%;
  max-height: 100%;
  padding: 3px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgb(255 228 0 / 24%), rgb(229 5 57 / 92) 58%, #232323 100%);
  opacity: 1;
  transition: opacity 360ms ease, transform 360ms ease;
  pointer-events: none;
}

.scjt-celebration.is-hiding {
  opacity: 0;
  transform: scale(0.96);
}

.scjt-celebration__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  width: min(92%, 520px);
  max-width: 520px;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px 14px;
  border: 2px solid #ffe400;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, #232323 42%, #b80909 70%, #e50539);
  transform-origin: center;
  animation: scjtMegaWinnerCelebration 5.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 6px 16px rgb(0 0 0 / 34%), inset 0 2px 0 rgb(255 255 255 / 24%);
}


.scjt-celebration__pot {
  color: #ffe400;
  font-size: clamp(15px, 2.35vw, 21px);
  font-weight: 1000;
  line-height: 1;
  white-space: pre-line;
  text-align: center;
  text-shadow: 0 2px 0 rgb(0 0 0 / 34%);
}
.scjt-celebration__meta {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.scjt-celebration__meta .scjt-ticker__player {
  overflow: hidden;
  color: #ffe400;
  font-size: clamp(14px, 2.2vw, 19px);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
}

.scjt-celebration__meta .scjt-ticker__time {
  color: #fff;
  font-size: clamp(10px, 1.55vw, 13px);
  font-weight: 850;
  line-height: 1;
  opacity: 0.94;
}

.scjt-celebration__amount {
  justify-self: end;
  color: #fff;
  font-size: clamp(24px, 4.8vw, 40px);
  font-weight: 1000;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgb(0 0 0 / 34%);
}
@keyframes scjtMegaWinnerCelebration {
  0% {
    opacity: 0;
    transform: scale(0.28) rotate(0deg);
  }

  16% {
    opacity: 1;
    transform: scale(0.96) rotate(0deg);
  }

  24% {
    transform: scale(0.98) rotate(0deg);
  }

  32%, 44%, 56% {
    transform: scale(0.98) rotate(-0.8deg) translateX(-3px);
  }

  38%, 50%, 62% {
    transform: scale(0.99) rotate(0.8deg) translateX(3px);
  }

  70% {
    transform: scale(0.98) rotate(0deg) translateX(0);
  }

  88% {
    opacity: 1;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(0.88);
  }
}

@media (max-width: 640px) {
  .scjt-celebration__card {
    width: 100%;
    max-width: 100%;
    column-gap: 8px;
    padding: 4px 9px;
  }

  .scjt-celebration__amount {
    font-size: clamp(20px, 6vw, 28px);
  }
}
.scjt-ticker__pot-image {
  display: block;
  width: 68px;
  max-height: 34px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 34%));
}

.scjt-celebration__pot-image {
  display: block;
  width: 116px;
  max-height: 52px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 34%));
}

@media (max-width: 640px) {
  .scjt-ticker__pot-image {
    width: 56px;
    max-height: 28px;
  }

  .scjt-celebration__pot-image {
    width: 88px;
    max-height: 42px;
  }
}
