/* Polyh: Signal Ticker — layout skeleton + motion.
   Colours, sizes and durations come from widget controls; this file only
   carries structure so the widget is styleable from the Elementor panel. */

.polyh-ticker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.polyh-ticker__rail {
  position: relative;
  display: flex;
  overflow: hidden;
}

.polyh-ticker-fade-yes .polyh-ticker__rail {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.polyh-ticker__track {
  display: flex;
  flex: 0 0 auto;
  will-change: transform;
  animation-name: polyh-ticker-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.polyh-ticker__track--b {
  animation-direction: reverse;
}

.polyh-ticker-pause-yes .polyh-ticker__rail:hover .polyh-ticker__track {
  animation-play-state: paused;
}

@keyframes polyh-ticker-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---- Card ---- */
.polyh-sig {
  flex: 0 0 auto;
  perspective: 1000px;
}

.polyh-sig__inner {
  position: relative;
  height: 100%;
  width: 100%;
  transition: transform .5s;
  transform-style: preserve-3d;
}

.polyh-sig:hover .polyh-sig__inner,
.polyh-sig:focus-within .polyh-sig__inner {
  transform: rotateY(180deg);
}

.polyh-sig__face {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.polyh-sig__front {
  border: 1px solid rgba(255, 255, 255, .08);
}

.polyh-sig__back {
  border: 1px solid rgba(47, 211, 122, .25);
  transform: rotateY(180deg);
}

.polyh-sig__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.polyh-sig__bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.polyh-sig__match {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.polyh-sig__league {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.polyh-sig__min {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  padding: 2px 8px;
  font-size: 10px;
  line-height: 1.5;
}

.polyh-sig__dot {
  position: relative;
  display: inline-block;
  height: 6px;
  width: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.polyh-sig__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: inherit;
  animation: polyh-sig-pulse 2s cubic-bezier(.16, 1, .3, 1) infinite;
}

@keyframes polyh-sig-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 211, 122, .5); }
  50%      { box-shadow: 0 0 0 6px rgba(47, 211, 122, 0); }
}

.polyh-sig__market {
  font-size: 12px;
  line-height: 1.4;
}

.polyh-sig__odds {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.polyh-sig__label {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.4;
}

.polyh-sig__read {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.polyh-sig__score {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.polyh-sig__of {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1;
}

.polyh-sig__meter {
  height: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.polyh-sig__meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .polyh-ticker__track { animation: none !important; }
  .polyh-sig__dot::before { animation: none !important; }
  .polyh-sig__inner { transition: none !important; }
}
