/* SARDENTOTO homepage visual refinement V4.5
   Only affects homepage classes. All images remain the original assets.
   No layout/card movement in section headings: animate the IMG only.
*/

/* 1. Progressive jackpot: slightly larger, lighter, and a little higher.
   The seven-segment font is a single regular face: remove artificial
   bolding/stroke and retain a small static glow for readability. */
.jackpot .jackpot__display {
  top: 46.5%;
  width: 74%;
  font-size: clamp(26px, 8.05vw, 41px);
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 0 transparent;
  text-shadow: 0 0 1px rgba(255, 255, 255, .54), 0 2px 2px rgba(0, 0, 0, .55);
}

/* 2. Category icons under the guest login / on the top category rail:
      soft muted-gold breathing glow, not movement or scaling. */
.category-shortcuts__item > img {
  filter: drop-shadow(0 0 3px rgba(124, 78, 11, .45));
  animation: st-v45-gold-breathe 5.7s ease-in-out infinite;
}
.category-shortcuts__item:nth-child(2n) > img { animation-delay: -1.15s; }
.category-shortcuts__item:nth-child(3n) > img { animation-delay: -2.25s; }
@keyframes st-v45-gold-breathe {
  0%, 14%, 56%, 100% {
    filter: drop-shadow(0 0 3px rgba(124, 78, 11, .45)) drop-shadow(0 0 5px rgba(125, 78, 12, .14));
  }
  31% {
    filter: drop-shadow(0 0 6px rgba(173, 110, 16, .85)) drop-shadow(0 0 12px rgba(173, 112, 14, .48));
  }
  43% {
    filter: drop-shadow(0 0 4px rgba(150, 94, 9, .66)) drop-shadow(0 0 8px rgba(138, 88, 11, .3));
  }
  74% {
    filter: drop-shadow(0 0 5px rgba(163, 106, 13, .75)) drop-shadow(0 0 9px rgba(163, 99, 10, .27));
  }
}

/* 3. Only the icon at the LEFT of each section header floats.
      Header/card rectangle, border, and category title remain stationary.
      Built-in pause at the beginning and end of each loop. */
.game-section__heading > img {
  animation: st-v45-icon-hover 5.8s ease-in-out infinite;
  transform-origin: center center;
}
#category-slot .game-section__heading > img { animation-delay: -.8s; }
#category-casino .game-section__heading > img { animation-delay: -1.8s; }
#category-sport .game-section__heading > img { animation-delay: -2.9s; }
#category-sabung .game-section__heading > img { animation-delay: -4.0s; }
#category-fish .game-section__heading > img { animation-delay: -1.4s; }
#category-virtual .game-section__heading > img { animation-delay: -2.4s; }
#category-crash .game-section__heading > img { animation-delay: -3.5s; }
@keyframes st-v45-icon-hover {
  0%, 17%, 69%, 100% { transform: translate3d(0, 0, 0); }
  35% { transform: translate3d(0, -4px, 0); }
  51% { transform: translate3d(0, 1px, 0); }
  61% { transform: translate3d(0, 0, 0); }
}

/* 4. Travelling yellow/white light ONLY on the button frame.
      The actual gold fill and existing non-animated drop shadow are kept.
      Typed custom property animates the conic-gradient around the perimeter. */
@property --st-v45-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.guest-login__actions > .gold-button--login {
  position: relative;
  isolation: isolate;
  border-color: #bb8520;
}
.guest-login__actions > .gold-button--login::before {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: 1;
  padding: 3px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--st-v45-border-angle),
    #c68c14 0deg,
    #f8cd57 45deg,
    #fff5c7 63deg,
    #ffffff 70deg,
    #fff0a7 78deg,
    #e1a422 94deg,
    #b77d12 155deg,
    #dbab3e 218deg,
    #fff8d9 239deg,
    #ffffff 247deg,
    #f3c64c 261deg,
    #c68c14 310deg,
    #c68c14 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: st-v45-border-chase 4.2s linear infinite;
}
.guest-login__actions > .gold-button--login:nth-child(2)::before {
  animation-delay: -2.1s;
}
@keyframes st-v45-border-chase {
  to { --st-v45-border-angle: 360deg; }
}

/* Accessibility and battery-friendly behavior. */
@media (prefers-reduced-motion: reduce) {
  .category-shortcuts__item > img,
  .game-section__heading > img,
  .guest-login__actions > .gold-button--login::before {
    animation: none !important;
  }
}


/* 5. Provider promo cards: same muted-gold breathing glow as the category icons.
      Keep the artwork still; only the outer glow pulses softly. */
.provider-card img {
  border-radius: 3px;
  filter: drop-shadow(0 0 3px rgba(124, 78, 11, .42));
  animation: st-v46-provider-breathe 5.9s ease-in-out infinite;
}
.provider-card:nth-child(2n) img { animation-delay: -1.4s; }
.provider-card:nth-child(3n) img { animation-delay: -2.6s; }
.provider-card:nth-child(4n) img { animation-delay: -3.5s; }
@keyframes st-v46-provider-breathe {
  0%, 16%, 58%, 100% {
    filter: drop-shadow(0 0 3px rgba(124, 78, 11, .42)) drop-shadow(0 0 6px rgba(125, 78, 12, .12));
  }
  33% {
    filter: drop-shadow(0 0 7px rgba(173, 110, 16, .78)) drop-shadow(0 0 13px rgba(173, 112, 14, .36));
  }
  45% {
    filter: drop-shadow(0 0 5px rgba(150, 94, 9, .62)) drop-shadow(0 0 9px rgba(138, 88, 11, .24));
  }
  74% {
    filter: drop-shadow(0 0 6px rgba(163, 106, 13, .70)) drop-shadow(0 0 10px rgba(163, 99, 10, .26));
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-card img {
    animation: none !important;
  }
}
