/* Animated Jackpot CTA — scoped styles */
.ajc-shortcode-wrap {
  --ajc-black: #080808;
  --ajc-panel: #171212;
  --ajc-yellow: #ffe100;
  --ajc-gold: #ffc400;
  --ajc-orange: #ff7b1f;
  --ajc-red: #ff3a24;
  --ajc-white: #fff8dd;
  width: 100%;
  box-sizing: border-box;
  line-height: 1;
  position: relative;
  z-index: 20;
}
.ajc-shortcode-wrap *,
.ajc-shortcode-wrap *::before,
.ajc-shortcode-wrap *::after { box-sizing: border-box; }

.ajc-align-left .ajc-bar { margin-left: 0; margin-right: auto; }
.ajc-align-center .ajc-bar { margin-left: auto; margin-right: auto; }
.ajc-align-right .ajc-bar { margin-left: auto; margin-right: 0; }

.ajc-sticky-top,
.ajc-sticky-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 6px 10px;
  background: transparent;
  backdrop-filter: none;
}
.ajc-sticky-top { top: 0; }
.ajc-sticky-bottom { bottom: 0; }

.ajc-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 72px;
  padding: 6px 9px;
  border-radius: 0 0 14px 14px;
  background: transparent;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}

.ajc-jackpot-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(168px, 1fr) 31px;
  align-items: center;
  width: 258px;
  height: 61px;
  padding: 5px 7px 5px 6px;
  border: 2px solid var(--ajc-yellow);
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 153, 0, .13), transparent 33%),
    linear-gradient(180deg, #2a1214 0%, #120b0e 58%, #190e10 100%);
  box-shadow:
    0 0 0 2px rgba(255, 53, 12, .68),
    0 0 10px 2px rgba(255, 222, 0, .85),
    0 0 22px rgba(255, 87, 16, .55),
    inset 0 0 16px rgba(255, 205, 0, .07);
  animation: ajc-card-breathe 1.9s ease-in-out infinite;
}

.ajc-jackpot-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 239, 111, .88);
  border-radius: 11px;
  pointer-events: none;
  opacity: .85;
}

.ajc-jackpot-card::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 140%;
  top: -20%;
  left: -80px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  animation: ajc-card-scan 3.1s ease-in-out infinite;
  pointer-events: none;
}

.ajc-slot-badge {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 40% 35%, #fff6c6 0 3%, #ffdb59 4% 15%, #ff7d00 36%, #8f0d0d 70%, #3a0507 100%);
  border: 2px solid #ffd800;
  box-shadow: 0 0 9px rgba(255, 211, 0, .95), inset 0 0 7px rgba(255,255,255,.35);
  animation: ajc-slot-float 1.55s ease-in-out infinite;
  z-index: 2;
}

.ajc-slot-badge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 58, 24, .5);
  animation: ajc-ring-pulse 1.6s ease-out infinite;
}

.ajc-slot-window {
  position: absolute;
  top: 15px;
  left: 7px;
  width: 30px;
  height: 16px;
  border-radius: 3px;
  padding: 2px 2px 1px;
  display: flex;
  gap: 1px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#fffcea, #ffd8a0);
  border: 1px solid #9b1608;
  box-shadow: 0 2px 0 #6e100b, inset 0 0 2px rgba(0,0,0,.25);
}
.ajc-slot-window b {
  flex: 1;
  color: #e01212;
  font: 900 10px/1 Arial, sans-serif;
  text-shadow: 0 1px 0 #fff;
}
.ajc-slot-crown {
  position: absolute;
  top: 7px;
  width: 25px;
  height: 7px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #fff387, #ffb300);
  box-shadow: 0 -1px 0 rgba(255,255,255,.7);
}
.ajc-slot-base {
  position: absolute;
  bottom: 7px;
  width: 27px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffcb22, #d84c08);
  box-shadow: 0 2px 0 #6d0a09;
}

.ajc-jackpot-copy {
  min-width: 0;
  padding: 0 2px 0 1px;
  z-index: 2;
}
.ajc-ticker {
  height: 15px;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 1px;
}
.ajc-ticker-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #77ffb4;
  font-size: 10px;
  line-height: 15px;
  font-weight: 800;
  letter-spacing: .1px;
  text-shadow: 0 0 5px rgba(55,255,164,.7);
  animation: ajc-ticker-neon 1.35s ease-in-out infinite;
}
.ajc-ticker-text.is-changing {
  animation: ajc-ticker-swap .42s ease both;
}

.ajc-amount-row {
  display: flex;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
}
.ajc-amount {
  display: inline-block;
  color: #ffc400;
  font-size: 20px;
  line-height: 22px;
  font-weight: 1000;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 0 #7d3200,
    0 2px 0 #5a2200,
    0 0 5px rgba(255, 213, 0, .8);
  transform-origin: center;
}
.ajc-amount.is-ticking {
  animation: ajc-number-pop .34s cubic-bezier(.2,.9,.3,1.35);
}
.ajc-currency {
  margin-left: 4px;
  color: #ffd77a;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 0 #6f2600, 0 0 4px rgba(255,171,0,.55);
}

.ajc-sound-toggle {
  position: relative;
  z-index: 12;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid rgba(255, 218, 0, .75);
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at 35% 32%, #2a2a2a, #060606 72%);
  box-shadow: 0 0 6px rgba(255,221,0,.55), inset 0 0 5px rgba(255,255,255,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: ajc-sound-pulse 2s ease-in-out infinite;
}
.ajc-sound-toggle:hover { transform: scale(1.08); box-shadow: 0 0 10px rgba(255,221,0,.9); }
.ajc-speaker::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 8px;
  left: 7px;
  top: 10px;
  border-radius: 2px 0 0 2px;
  background: #e9e9e9;
}
.ajc-speaker::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 0;
  border-left: 7px solid #e9e9e9;
}
.ajc-sound-toggle:not(.is-muted) .ajc-speaker {
  position: absolute;
  width: 7px;
  height: 13px;
  right: 4px;
  top: 7px;
  border-right: 2px solid #f1f1f1;
  border-radius: 0 50% 50% 0;
}
.ajc-sound-slash {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 2px;
  left: 3px;
  top: 13px;
  border-radius: 3px;
  background: #ff3a2c;
  box-shadow: 0 0 3px rgba(255,50,35,.8);
  transform: rotate(48deg);
  opacity: 0;
}
.ajc-sound-toggle.is-muted .ajc-sound-slash { opacity: 1; }

.ajc-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 105px;
  padding: 0 11px;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.26);
  font-size: 14px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.2px;
  transform: translateZ(0);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.ajc-btn span { position: relative; z-index: 2; white-space: nowrap; }
.ajc-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .45;
  background: radial-gradient(circle at 50% -40%, rgba(255,255,255,.95), transparent 52%);
}
.ajc-btn::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 36px;
  height: 140%;
  left: -58px;
  top: -20%;
  background: linear-gradient(100deg, transparent 0, rgba(255,255,255,.56) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: ajc-btn-shine 2.55s ease-in-out infinite;
}
.ajc-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.12) brightness(1.05);
}
.ajc-btn:active { transform: translateY(0) scale(.98); }

.ajc-btn-register {
  color: #171009 !important;
  background: linear-gradient(180deg, #fff75b 0%, #ffd721 33%, #ff9e20 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -2px 0 rgba(154,63,0,.25),
    0 0 11px rgba(255, 197, 0, .38);
  animation: ajc-register-breathe 1.65s ease-in-out infinite;
}
.ajc-btn-login {
  min-width: 101px;
  color: #fff !important;
  background: linear-gradient(180deg, #ff755f 0%, #ff6142 42%, #ff9c27 100%);
  text-shadow: 0 1px 0 rgba(112,20,0,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.64),
    inset 0 -2px 0 rgba(125,23,0,.2),
    0 0 10px rgba(255,73,33,.35);
}
.ajc-btn-login::after { animation-delay: .7s; }

.ajc-card-shine {
  position: absolute;
  right: 39px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff7a6;
  box-shadow: 0 0 7px 2px #ffd600;
  animation: ajc-spark 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ajc-card-breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,53,12,.58), 0 0 8px 1px rgba(255,222,0,.72), 0 0 17px rgba(255,87,16,.42), inset 0 0 15px rgba(255,205,0,.05); }
  50% { box-shadow: 0 0 0 2px rgba(255,53,12,.84), 0 0 13px 3px rgba(255,222,0,.98), 0 0 28px rgba(255,87,16,.64), inset 0 0 19px rgba(255,205,0,.1); }
}
@keyframes ajc-card-scan { 0%, 26% { left: -80px; opacity: 0; } 38% { opacity: .95; } 66%, 100% { left: 310px; opacity: 0; } }
@keyframes ajc-slot-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-2px) rotate(1deg); } }
@keyframes ajc-ring-pulse { 0% { transform: scale(.9); opacity: .8; } 80%,100% { transform: scale(1.2); opacity: 0; } }
@keyframes ajc-ticker-neon { 0%,100% { filter: brightness(.9); } 50% { filter: brightness(1.35); } }
@keyframes ajc-ticker-swap { 0% { opacity: 1; transform: translateY(0); } 45% { opacity: 0; transform: translateY(-8px); } 55% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes ajc-number-pop { 0% { transform: scale(1); filter: brightness(1); } 45% { transform: scale(1.055); filter: brightness(1.45); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes ajc-sound-pulse { 0%,100% { box-shadow: 0 0 5px rgba(255,221,0,.38), inset 0 0 5px rgba(255,255,255,.08); } 50% { box-shadow: 0 0 9px rgba(255,221,0,.72), inset 0 0 5px rgba(255,255,255,.08); } }
@keyframes ajc-btn-shine { 0%, 38% { left: -58px; opacity: 0; } 48% { opacity: .75; } 68%,100% { left: 150px; opacity: 0; } }
@keyframes ajc-register-breathe { 0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(154,63,0,.25), 0 0 8px rgba(255,197,0,.28); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(154,63,0,.25), 0 0 15px rgba(255,197,0,.58); } }
@keyframes ajc-spark { 0%,100% { transform: scale(.5); opacity: .15; } 40% { transform: scale(1.35); opacity: 1; } 70% { transform: scale(.75); opacity: .35; } }

@media (max-width: 640px) {
  .ajc-bar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 7px;
  }
  .ajc-jackpot-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 355px;
    justify-self: center;
    grid-template-columns: 51px minmax(0, 1fr) 31px;
  }
  .ajc-btn { width: 100%; min-width: 0; height: 48px; font-size: 13px; }
  .ajc-amount { font-size: clamp(18px, 6vw, 22px); }
  .ajc-currency { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ajc-shortcode-wrap *,
  .ajc-shortcode-wrap *::before,
  .ajc-shortcode-wrap *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   v1.3 — Reference-style jackpot win burst
   Normal counter -> red/gold flash -> RANDOM phrase + RANDOM reward
   in one line (e.g. HÚP ĐẬM +289TR) -> counter returns.
   ========================================================= */
.ajc-win-event {
  --ajc-win-ms: 900ms;
  position: absolute;
  z-index: 8;
  inset: 2px 36px 2px 2px;
  overflow: hidden;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.76);
  filter: blur(6px) brightness(1.6);
  transform-origin: 50% 54%;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255,247,83,.58) 0 6%, rgba(255,127,0,.36) 22%, transparent 49%),
    linear-gradient(180deg, #ff3042 0%, #e60028 42%, #ae0016 100%);
  box-shadow:
    inset 0 0 14px rgba(255,244,96,.55),
    inset 0 -8px 12px rgba(98,0,0,.24);
}

.ajc-win-event::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,235,90,.2) 20%, transparent 34% 66%, rgba(255,235,90,.18) 80%, transparent 94%),
    radial-gradient(circle at 18% 50%, rgba(255,245,140,.48), transparent 17%),
    radial-gradient(circle at 82% 50%, rgba(255,245,140,.42), transparent 16%);
  mix-blend-mode: screen;
  opacity: .75;
}

.ajc-win-rays {
  position: absolute;
  z-index: 2;
  inset: -95%;
  left: -62%;
  width: 220%;
  height: 265%;
  background:
    repeating-conic-gradient(
      from -8deg at 50% 50%,
      rgba(255,255,255,.33) 0 2deg,
      rgba(255,255,255,0) 2deg 9deg,
      rgba(255,229,69,.24) 9deg 12deg,
      rgba(255,255,255,0) 12deg 21deg
    );
  opacity: .72;
  transform: rotate(-10deg) scale(.72);
  mix-blend-mode: screen;
}

.ajc-win-mini {
  position: absolute;
  z-index: 5;
  top: 3px;
  left: 50%;
  width: 88%;
  transform: translateX(-50%);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: #57ffe0;
  font-size: 7.5px;
  line-height: 10px;
  font-weight: 900;
  letter-spacing: .15px;
  text-shadow:
    -1px 0 #ff1761,
    1px 0 #075e58,
    0 0 5px rgba(51,255,220,.95);
}

.ajc-win-text {
  position: absolute;
  z-index: 6;
  left: 4px;
  right: 4px;
  top: 13px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
  font-family: Arial, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 21px;
  line-height: .98;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -1px;
  transform: none;
  text-transform: uppercase;
  -webkit-text-stroke: .7px rgba(151,43,0,.92);
  text-shadow:
    0 1px 0 rgba(255,244,120,.82),
    0 2px 0 rgba(208,78,0,.70),
    0 3px 3px rgba(83,13,0,.38);
}

.ajc-win-main {
  display: block;
  max-width: 100%;
  background: linear-gradient(180deg, #fffba0 0%, #fff244 18%, #ffd000 49%, #ff9800 76%, #ff6a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(1.16) contrast(1.05);
}

.ajc-win-event.is-win-short .ajc-win-text { font-size: 22px; letter-spacing: -.9px; }
.ajc-win-event.is-win-medium .ajc-win-text { font-size: 19px; letter-spacing: -1px; }
.ajc-win-event.is-win-long .ajc-win-text { font-size: 17px; letter-spacing: -1.05px; }

.ajc-win-spark {
  position: absolute;
  z-index: 5;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  background: #fffbd0;
  box-shadow:
    0 0 3px 1px #fff,
    0 0 8px 3px #ffe000,
    0 0 15px 6px rgba(255,91,0,.75);
}
.ajc-win-spark::before,
.ajc-win-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255,255,255,.98);
  transform: translate(-50%,-50%);
}
.ajc-win-spark::before { width: 20px; height: 1px; }
.ajc-win-spark::after { width: 1px; height: 20px; }
.ajc-win-spark-a { left: 16%; top: 54%; }
.ajc-win-spark-b { right: 12%; top: 35%; transform: scale(.72); }

.ajc-win-flash {
  position: absolute;
  z-index: 8;
  top: -35%;
  left: -55%;
  width: 52px;
  height: 175%;
  opacity: 0;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.98), rgba(255,248,178,.98), transparent);
  filter: blur(.3px);
  mix-blend-mode: screen;
}

.ajc-win-particles {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
}

.ajc-win-particle {
  --ajc-x: 0px;
  --ajc-y: -28px;
  --ajc-r: 180deg;
  --ajc-delay: 0ms;
  position: absolute;
  left: 50%;
  top: 58%;
  width: 4px;
  height: 5px;
  border-radius: 1px;
  opacity: 0;
  background: #ffe500;
  box-shadow: 0 0 6px rgba(255,220,0,.9);
}
.ajc-win-particle:nth-child(4n + 1) {
  width: 4px;
  height: 7px;
  background: #ff2e8a;
  box-shadow: 0 0 5px rgba(255,46,138,.82);
}
.ajc-win-particle:nth-child(4n + 2) {
  border-radius: 50%;
  background: #79ffe0;
  box-shadow: 0 0 5px rgba(73,255,213,.9);
}
.ajc-win-particle:nth-child(4n + 3) {
  width: 6px;
  height: 3px;
  background: #fff7a1;
}

.ajc-jackpot-card.is-win {
  border-color: #fff5ac;
  animation: ajc-win-card-hit var(--ajc-win-ms, 900ms) cubic-bezier(.2,.82,.24,1) both !important;
}
.ajc-jackpot-card.is-win::before {
  border-color: rgba(255,255,255,.98);
  animation: ajc-win-inner-border var(--ajc-win-ms, 900ms) ease both;
}
.ajc-jackpot-card.is-win::after {
  animation: none;
  opacity: 0;
}
.ajc-jackpot-card.is-win .ajc-slot-badge,
.ajc-jackpot-card.is-win .ajc-jackpot-copy,
.ajc-jackpot-card.is-win .ajc-card-shine {
  animation: ajc-win-hide-normal var(--ajc-win-ms, 900ms) ease both;
}
.ajc-jackpot-card.is-win .ajc-win-event {
  animation: ajc-win-event-pop var(--ajc-win-ms, 900ms) cubic-bezier(.15,.86,.23,1) both;
}
.ajc-jackpot-card.is-win .ajc-win-rays {
  animation: ajc-win-rays-spin var(--ajc-win-ms, 900ms) ease-out both;
}
.ajc-jackpot-card.is-win .ajc-win-text {
  animation: ajc-win-text-hit var(--ajc-win-ms, 900ms) cubic-bezier(.1,.85,.23,1.18) both;
}
.ajc-jackpot-card.is-win .ajc-win-mini {
  animation: ajc-win-mini-hit var(--ajc-win-ms, 900ms) ease both;
}
.ajc-jackpot-card.is-win .ajc-win-flash {
  animation: ajc-win-flash-sweep var(--ajc-win-ms, 900ms) ease-out both;
}
.ajc-jackpot-card.is-win .ajc-win-spark-a {
  animation: ajc-win-spark-a var(--ajc-win-ms, 900ms) ease-out both;
}
.ajc-jackpot-card.is-win .ajc-win-spark-b {
  animation: ajc-win-spark-b var(--ajc-win-ms, 900ms) ease-out both;
}
.ajc-jackpot-card.is-win .ajc-win-particle {
  animation: ajc-win-particle-burst var(--ajc-particle-ms, 740ms) cubic-bezier(.1,.62,.2,1) var(--ajc-delay) both;
}

@keyframes ajc-win-card-hit {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 2px rgba(255,53,12,.58),
      0 0 8px 1px rgba(255,222,0,.72),
      0 0 17px rgba(255,87,16,.42),
      inset 0 0 15px rgba(255,205,0,.05);
  }
  8% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 3px rgba(255,255,255,.98),
      0 0 15px 6px rgba(255,50,42,1),
      0 0 34px 12px rgba(255,0,32,.88),
      inset 0 0 20px rgba(255,255,255,.48);
  }
  18%, 74% {
    transform: scale(1.016);
    background: linear-gradient(180deg, #ff1b36 0%, #cb001b 100%);
    box-shadow:
      0 0 0 2px rgba(255,244,189,.98),
      0 0 12px 5px rgba(255,31,30,.98),
      0 0 28px 10px rgba(255,0,35,.72),
      inset 0 0 22px rgba(255,230,63,.30);
  }
  88% {
    transform: scale(1.008);
    box-shadow:
      0 0 0 2px rgba(255,75,20,.85),
      0 0 12px 4px rgba(255,80,20,.75),
      inset 0 0 17px rgba(255,205,0,.10);
  }
  100% { transform: scale(1); }
}

@keyframes ajc-win-inner-border {
  0%, 7% { opacity: .85; filter: brightness(1); }
  12%, 68% { opacity: 1; filter: brightness(2.25); }
  100% { opacity: .85; filter: brightness(1); }
}

@keyframes ajc-win-hide-normal {
  0%, 6% { opacity: 1; transform: scale(1); filter: blur(0); }
  14%, 79% { opacity: 0; transform: scale(.86); filter: blur(6px); }
  92%, 100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes ajc-win-event-pop {
  0%, 4% { opacity: 0; transform: scale(.62); filter: blur(9px) brightness(2.3); }
  12% { opacity: 1; transform: scale(1.08); filter: blur(0) brightness(1.55); }
  20% { opacity: 1; transform: scale(.97); filter: blur(0) brightness(1.08); }
  28%, 75% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
  83% { opacity: .96; transform: scale(1.035); filter: blur(.5px) brightness(1.2); }
  93%, 100% { opacity: 0; transform: scale(.78); filter: blur(7px) brightness(1.7); }
}

@keyframes ajc-win-rays-spin {
  0% { opacity: 0; transform: rotate(-18deg) scale(.5); }
  16% { opacity: .95; transform: rotate(1deg) scale(.98); }
  72% { opacity: .70; transform: rotate(14deg) scale(1.08); }
  100% { opacity: 0; transform: rotate(26deg) scale(1.2); }
}

@keyframes ajc-win-text-hit {
  0%, 7% { opacity: 0; transform: scale(.22) rotate(-2deg); filter: blur(7px); }
  14% { opacity: 1; transform: scale(1.22) rotate(.8deg); filter: blur(0); }
  22% { transform: scale(.93) rotate(-.45deg); }
  29%, 72% { opacity: 1; transform: scale(1) rotate(0); }
  81% { transform: scale(1.06); }
  93%, 100% { opacity: 0; transform: scale(.45); filter: blur(5px); }
}

@keyframes ajc-win-mini-hit {
  0%, 10% { opacity: 0; transform: translate(-50%, -6px) scale(.82); }
  20%, 76% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  92%,100% { opacity: 0; transform: translate(-50%, -4px) scale(.9); }
}

@keyframes ajc-win-flash-sweep {
  0%, 5% { left: -55%; opacity: 0; }
  10% { opacity: 1; }
  34% { left: 115%; opacity: .94; }
  41%,100% { left: 126%; opacity: 0; }
}

@keyframes ajc-win-spark-a {
  0%, 10% { opacity: 0; transform: scale(.2) rotate(0); }
  20% { opacity: 1; transform: scale(1.25) rotate(35deg); }
  42% { opacity: .8; transform: scale(.8) rotate(80deg); }
  72% { opacity: .18; transform: scale(.5) rotate(125deg); }
  100% { opacity: 0; transform: scale(.2) rotate(170deg); }
}

@keyframes ajc-win-spark-b {
  0%, 18% { opacity: 0; transform: scale(.15) rotate(0); }
  31% { opacity: .95; transform: scale(.9) rotate(-25deg); }
  54% { opacity: .55; transform: scale(.65) rotate(-80deg); }
  82%,100% { opacity: 0; transform: scale(.2) rotate(-130deg); }
}

@keyframes ajc-win-particle-burst {
  0%, 8% { opacity: 0; transform: translate(0,0) rotate(0deg) scale(.3); }
  18% { opacity: 1; }
  70% { opacity: 1; transform: translate(var(--ajc-x), var(--ajc-y)) rotate(var(--ajc-r)) scale(1); }
  100% { opacity: 0; transform: translate(var(--ajc-x2), var(--ajc-y2)) rotate(var(--ajc-r2)) scale(.65); }
}

@media (max-width: 640px) {
  .ajc-win-event.is-win-short .ajc-win-text { font-size: clamp(19px, 5.5vw, 22px); }
  .ajc-win-event.is-win-medium .ajc-win-text { font-size: clamp(17px, 5vw, 19px); }
  .ajc-win-event.is-win-long .ajc-win-text { font-size: clamp(15px, 4.5vw, 17px); }
  .ajc-win-mini { font-size: 7px; }
}


/* =========================================================
   v1.4 — IMPORTANT: make the random win phrase unmistakably visible.
   Fixes two real-world issues seen in Flatsome/Customizer:
   1) gradient-clipped transparent text could disappear;
   2) flash/particles had a higher stacking layer than the phrase.
   ========================================================= */
.ajc-jackpot-card .ajc-win-event {
  inset: 2px 36px 2px 2px;
}

.ajc-jackpot-card .ajc-win-text {
  z-index: 20 !important;
  left: 6px !important;
  right: 6px !important;
  top: 11px !important;
  bottom: 2px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  visibility: visible !important;
  color: #ffe52a !important;
  -webkit-text-fill-color: #ffe52a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font-family: Impact, "Arial Black", Arial, sans-serif !important;
  font-style: italic !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  text-transform: uppercase !important;
  letter-spacing: -.75px !important;
  -webkit-text-stroke: .7px #9b1f00 !important;
  paint-order: stroke fill !important;
  text-shadow:
    0 1px 0 #fff7a8,
    0 2px 0 #ffb300,
    0 3px 0 #ef6a00,
    0 4px 0 #9f2100,
    1px 5px 2px rgba(70,0,0,.72),
    0 0 4px rgba(255,255,170,.98),
    0 0 10px rgba(255,188,0,.92) !important;
}

.ajc-jackpot-card .ajc-win-label,
.ajc-jackpot-card .ajc-win-reward {
  position: relative !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #ffe52a !important;
  -webkit-text-fill-color: #ffe52a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  font: inherit !important;
  line-height: inherit !important;
  text-shadow: inherit !important;
}

.ajc-jackpot-card .ajc-win-label {
  color: #fff02c !important;
  -webkit-text-fill-color: #fff02c !important;
}

.ajc-jackpot-card .ajc-win-reward {
  color: #ffd11a !important;
  -webkit-text-fill-color: #ffd11a !important;
  letter-spacing: -1px !important;
}

/* Phrase must stay above the sweep, sparkles and confetti. */
.ajc-jackpot-card .ajc-win-rays { z-index: 2 !important; }
.ajc-jackpot-card .ajc-win-particles { z-index: 7 !important; }
.ajc-jackpot-card .ajc-win-flash { z-index: 8 !important; opacity: .68; }
.ajc-jackpot-card .ajc-win-spark { z-index: 9 !important; }
.ajc-jackpot-card .ajc-win-mini { z-index: 10 !important; }

.ajc-win-event.is-win-short .ajc-win-text { font-size: 22px !important; }
.ajc-win-event.is-win-medium .ajc-win-text { font-size: 19px !important; }
.ajc-win-event.is-win-long .ajc-win-text { font-size: 17px !important; }

/* Keep the actual phrase readable for the central ~70% of the win event. */
.ajc-jackpot-card.is-win .ajc-win-text {
  animation: ajc-win-text-hit-v14 var(--ajc-win-ms, 900ms) cubic-bezier(.16,.82,.22,1.08) both !important;
}

@keyframes ajc-win-text-hit-v14 {
  0%, 6% {
    opacity: 0;
    transform: scale(.38) rotate(-2deg) skewX(-5deg);
    filter: blur(5px) brightness(1.8);
  }
  13% {
    opacity: 1;
    transform: scale(1.16) rotate(.7deg) skewX(-5deg);
    filter: blur(0) brightness(1.24);
  }
  21% {
    opacity: 1;
    transform: scale(.96) rotate(-.3deg) skewX(-5deg);
    filter: blur(0) brightness(1.05);
  }
  28%, 78% {
    opacity: 1;
    transform: scale(1) rotate(0) skewX(-5deg);
    filter: blur(0) brightness(1);
  }
  85% {
    opacity: 1;
    transform: scale(1.04) skewX(-5deg);
    filter: blur(0) brightness(1.12);
  }
  95%, 100% {
    opacity: 0;
    transform: scale(.62) skewX(-5deg);
    filter: blur(4px) brightness(1.55);
  }
}

@media (max-width: 640px) {
  .ajc-win-event.is-win-short .ajc-win-text { font-size: clamp(19px, 5.5vw, 22px) !important; }
  .ajc-win-event.is-win-medium .ajc-win-text { font-size: clamp(17px, 5vw, 19px) !important; }
  .ajc-win-event.is-win-long .ajc-win-text { font-size: clamp(15px, 4.5vw, 17px) !important; }
}

/* =========================================================
   v1.4.2 — Win message fills the jackpot face + visible shake.
   ========================================================= */
.ajc-jackpot-card .ajc-win-event {
  inset: 2px 36px 2px 2px !important;
}

/* Keep the small activity line, but reserve nearly the whole face for the win text. */
.ajc-jackpot-card .ajc-win-mini {
  top: 2px !important;
  left: 8px !important;
  right: 8px !important;
  font-size: 7px !important;
  line-height: 8px !important;
  opacity: .92 !important;
}

.ajc-jackpot-card .ajc-win-text {
  left: 4px !important;
  right: 4px !important;
  top: 7px !important;
  bottom: 0 !important;
  gap: 5px !important;
  min-height: 46px !important;
  font-size: 34px !important;
  line-height: .90 !important;
  letter-spacing: -1.45px !important;
  -webkit-text-stroke: 1px #8b1400 !important;
  transform-origin: center center !important;
  text-shadow:
    0 1px 0 #fff8ad,
    0 2px 0 #ffc31a,
    0 3px 0 #f07a00,
    0 4px 0 #a52700,
    1px 5px 2px rgba(70,0,0,.8),
    0 0 5px rgba(255,255,175,1),
    0 0 12px rgba(255,194,0,.98),
    0 0 20px rgba(255,78,0,.82) !important;
}

.ajc-win-event.is-win-short .ajc-win-text { font-size: 36px !important; }
.ajc-win-event.is-win-medium .ajc-win-text { font-size: 32px !important; }
.ajc-win-event.is-win-long .ajc-win-text { font-size: 28px !important; }

.ajc-jackpot-card.is-win .ajc-win-text {
  animation: ajc-win-text-hit-shake-v142 var(--ajc-win-ms, 900ms) linear both !important;
}

/* Strong initial hit, then a readable high-frequency shake, then punch-out. */
@keyframes ajc-win-text-hit-shake-v142 {
  0%, 5% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(.30) rotate(-3deg) skewX(-5deg);
    filter: blur(6px) brightness(2);
  }
  12% {
    opacity: 1;
    transform: translate3d(-2px,1px,0) scale(1.14) rotate(-1.2deg) skewX(-5deg);
    filter: blur(0) brightness(1.32);
  }
  18% {
    transform: translate3d(2px,-1px,0) scale(.98) rotate(1deg) skewX(-5deg);
    filter: blur(0) brightness(1.08);
  }
  24% { transform: translate3d(-2px,0,0) scale(1.02) rotate(-.9deg) skewX(-5deg); }
  30% { transform: translate3d(2px,1px,0) scale(1) rotate(.8deg) skewX(-5deg); }
  36% { transform: translate3d(-2px,-1px,0) scale(1.01) rotate(-.7deg) skewX(-5deg); }
  42% { transform: translate3d(2px,0,0) scale(1) rotate(.8deg) skewX(-5deg); }
  48% { transform: translate3d(-1px,1px,0) scale(1.015) rotate(-.6deg) skewX(-5deg); }
  54% { transform: translate3d(2px,-1px,0) scale(1) rotate(.7deg) skewX(-5deg); }
  60% { transform: translate3d(-2px,0,0) scale(1.01) rotate(-.7deg) skewX(-5deg); }
  66% { transform: translate3d(1px,1px,0) scale(1) rotate(.55deg) skewX(-5deg); }
  72% { transform: translate3d(-1px,-1px,0) scale(1.012) rotate(-.5deg) skewX(-5deg); }
  78% {
    opacity: 1;
    transform: translate3d(1px,0,0) scale(1.025) rotate(.45deg) skewX(-5deg);
    filter: blur(0) brightness(1.04);
  }
  86% {
    opacity: 1;
    transform: translate3d(-2px,0,0) scale(1.07) rotate(-.7deg) skewX(-5deg);
    filter: blur(0) brightness(1.2);
  }
  94%, 100% {
    opacity: 0;
    transform: translate3d(2px,0,0) scale(.68) rotate(1deg) skewX(-5deg);
    filter: blur(4px) brightness(1.6);
  }
}

@media (max-width: 640px) {
  .ajc-win-event.is-win-short .ajc-win-text { font-size: clamp(29px, 8.8vw, 36px) !important; }
  .ajc-win-event.is-win-medium .ajc-win-text { font-size: clamp(26px, 7.9vw, 32px) !important; }
  .ajc-win-event.is-win-long .ajc-win-text { font-size: clamp(23px, 7vw, 28px) !important; }
}

/* =========================================================
   v1.4.3 — Match reference video win-title timing/clarity.
   The title is a short punch: BIG zoom -> 2-3 shakes -> disappear.
   Red jackpot burst continues after the title is already gone.
   ========================================================= */
.ajc-jackpot-card .ajc-win-event {
  /* Cover the whole jackpot face. The sound button remains above it via z-index. */
  inset: 2px !important;
}

.ajc-jackpot-card .ajc-win-mini {
  z-index: 10 !important;
  top: 2px !important;
  left: 8px !important;
  right: 38px !important;
  width: auto !important;
  font-size: 7px !important;
  line-height: 8px !important;
  opacity: .92 !important;
  text-shadow: none !important;
}

.ajc-jackpot-card .ajc-win-text {
  z-index: 30 !important;
  left: 5px !important;
  right: 34px !important; /* leave the round sound control readable */
  top: 8px !important;
  bottom: 1px !important;
  min-height: 47px !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;

  /* Start huge. JS only reduces this when the exact phrase would clip. */
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", Arial, sans-serif !important;
  font-size: 46px !important;
  font-weight: 900 !important;
  font-style: italic !important;
  line-height: .86 !important;
  letter-spacing: -1.4px !important;
  text-transform: uppercase !important;

  /* CRISP text: explicitly remove all old glow/drop shadows. */
  color: #ffe600 !important;
  -webkit-text-fill-color: #ffe600 !important;
  -webkit-text-stroke: .65px #e87900 !important;
  paint-order: stroke fill !important;
  text-shadow: none !important;
  filter: none !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  transform-origin: 50% 55% !important;
  will-change: transform, opacity !important;
}

.ajc-jackpot-card .ajc-win-label,
.ajc-jackpot-card .ajc-win-reward {
  color: #ffe600 !important;
  -webkit-text-fill-color: #ffe600 !important;
  -webkit-text-stroke: inherit !important;
  text-shadow: none !important;
  filter: none !important;
  background: none !important;
  font: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Old short/medium/long rules must never force the phrase back to 17-36px. */
.ajc-win-event.is-win-short .ajc-win-text,
.ajc-win-event.is-win-medium .ajc-win-text,
.ajc-win-event.is-win-long .ajc-win-text {
  font-size: 46px !important;
}

/* Keep effects behind the title; the round sound control is a sibling at z-index 12. */
.ajc-jackpot-card .ajc-win-rays { z-index: 2 !important; }
.ajc-jackpot-card .ajc-win-particles { z-index: 6 !important; }
.ajc-jackpot-card .ajc-win-flash { z-index: 7 !important; }
.ajc-jackpot-card .ajc-win-spark { z-index: 8 !important; }

.ajc-jackpot-card.is-win .ajc-win-text {
  /* Independent short duration: reference video shows the title only briefly. */
  animation: ajc-win-title-punch-v143 var(--ajc-win-text-ms, 420ms) linear both !important;
}

@keyframes ajc-win-title-punch-v143 {
  0% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(.42) rotate(-2deg) skewX(-4deg);
    filter: none;
  }
  10% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.15) rotate(-.45deg);
    filter: none;
  }
  18% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.00) rotate(0deg) skewX(-4deg);
  }
  25% {
    transform: translate3d(-3px,1px,0) scale(1.02) rotate(-1.2deg) skewX(-4deg);
  }
  32% {
    transform: translate3d(3px,-1px,0) scale(1.02) rotate(1.1deg) skewX(-4deg);
  }
  39% {
    transform: translate3d(-2px,-1px,0) scale(1.01) rotate(-.8deg) skewX(-4deg);
  }
  46% {
    transform: translate3d(2px,1px,0) scale(1.01) rotate(.75deg) skewX(-4deg);
  }
  54% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1) rotate(0deg) skewX(-4deg);
  }
  70% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.02) rotate(0deg) skewX(-4deg);
  }
  86% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(1.04) rotate(0deg) skewX(-4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(1.04) rotate(0deg) skewX(-4deg);
  }
}

@media (max-width: 640px) {
  .ajc-win-event.is-win-short .ajc-win-text,
  .ajc-win-event.is-win-medium .ajc-win-text,
  .ajc-win-event.is-win-long .ajc-win-text {
    font-size: 46px !important;
  }
}


/* =========================================================
   v1.4.4 — Settings duration now means REAL title visibility.
   v1.4.3 capped the title at <=480ms even when admin selected 1200ms.
   Sequence: zoom in -> short shake -> readable hold -> clean exit.
   ========================================================= */
.ajc-jackpot-card.is-win .ajc-win-text {
  animation: ajc-win-title-readable-v144 var(--ajc-win-text-ms, 1200ms) linear both !important;
}

@keyframes ajc-win-title-readable-v144 {
  /* Fast punch-in, but become fully readable almost immediately. */
  0% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(.48) rotate(-2deg) skewX(-4deg);
  }
  5% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.16) rotate(-.7deg) skewX(-4deg);
  }
  10% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.00) rotate(0deg) skewX(-4deg);
  }

  /* A few obvious shakes, like the reference, without blurring the text. */
  15% { opacity: 1; transform: translate3d(-4px, 1px,0) scale(1.02) rotate(-1.4deg) skewX(-4deg); }
  20% { opacity: 1; transform: translate3d( 4px,-1px,0) scale(1.02) rotate( 1.3deg) skewX(-4deg); }
  25% { opacity: 1; transform: translate3d(-3px,-1px,0) scale(1.01) rotate(-1.0deg) skewX(-4deg); }
  30% { opacity: 1; transform: translate3d( 3px, 1px,0) scale(1.01) rotate( .9deg) skewX(-4deg); }
  35% { opacity: 1; transform: translate3d(-2px, 0,0) scale(1.005) rotate(-.6deg) skewX(-4deg); }
  40% { opacity: 1; transform: translate3d( 2px, 0,0) scale(1.005) rotate( .5deg) skewX(-4deg); }

  /* Hold crisp and still long enough to actually read the phrase + reward. */
  45%, 86% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1) rotate(0deg) skewX(-4deg);
  }

  /* Only fade at the very end of the configured duration. */
  94% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.025) rotate(0deg) skewX(-4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(1.08) rotate(0deg) skewX(-4deg);
  }
}


/* =========================================================
   v1.4.5 — Vietnamese-safe win font.
   Impact/Haettenschweiler do not contain a complete Vietnamese glyph set on
   many Windows/macOS/browser combinations. Browsers then mix two fonts inside
   one word (base letter from Impact + accent from fallback), which makes
   NỔ HŨ / HÚP ĐẬM / ĂN THẮNG look broken. Force one Unicode-capable family
   for the whole win message and normalize text to NFC in JS.
   ========================================================= */
.ajc-jackpot-card .ajc-win-text,
.ajc-jackpot-card .ajc-win-label,
.ajc-jackpot-card .ajc-win-reward {
  font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", system-ui, sans-serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-synthesis: none !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep Vietnamese marks inside the same glyph run and avoid over-tight
   tracking that can visually collide with Ư/Ă/Đ/Ổ/Ậ. */
.ajc-jackpot-card .ajc-win-text {
  letter-spacing: -1px !important;
  -webkit-text-stroke: .55px #e87900 !important;
}
.ajc-jackpot-card .ajc-win-label,
.ajc-jackpot-card .ajc-win-reward {
  letter-spacing: inherit !important;
}

/* =========================================================
   v1.4.6 — Center the small winner/ticker line above the win phrase.
   Older overrides changed left:50% to left:8px but kept translateX(-50%),
   which shifted the mini line toward the left edge. Keep it truly centered.
   ========================================================= */
.ajc-jackpot-card .ajc-win-mini {
  left: 50% !important;
  right: auto !important;
  width: calc(100% - 58px) !important;
  max-width: calc(100% - 58px) !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* =========================================================
   v1.4.7 — Never clip long win messages.
   The previous layout reserved the sound-button width twice:
   .ajc-win-event already ended 36px before the card edge, then .ajc-win-text
   reserved another 34px. Long strings therefore only had ~180px to render.
   The event now uses the whole card and only the text itself reserves the
   sound-button area. JS keeps the text tall and condenses it horizontally
   when needed so e.g. "ĂN THẮNG +888TR" remains fully visible.
   ========================================================= */
.ajc-jackpot-card .ajc-win-event {
  inset: 2px !important;
}

.ajc-jackpot-card .ajc-win-text {
  left: 4px !important;
  right: 35px !important;
  top: 12px !important;
  bottom: 1px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  gap: 5px !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 44px !important;
  line-height: .88 !important;
  letter-spacing: -.8px !important;
  transform-origin: 50% 52% !important;
  --ajc-fit-x: 1;
}

/* Do not allow older length classes to shrink the title before JS measures it. */
.ajc-win-event.is-win-short .ajc-win-text,
.ajc-win-event.is-win-medium .ajc-win-text,
.ajc-win-event.is-win-long .ajc-win-text {
  font-size: 44px !important;
  letter-spacing: -.8px !important;
}

/* Make both parts non-shrinking so JS can measure their true natural width. */
.ajc-jackpot-card .ajc-win-label,
.ajc-jackpot-card .ajc-win-reward {
  display: inline-block !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.ajc-jackpot-card.is-win .ajc-win-text {
  animation: ajc-win-title-fit-v147 var(--ajc-win-text-ms, 1200ms) linear both !important;
}

@keyframes ajc-win-title-fit-v147 {
  0% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(.46) scaleX(var(--ajc-fit-x, 1)) rotate(-2deg) skewX(-4deg);
  }
  6% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.02) scaleX(var(--ajc-fit-x, 1)) rotate(-.6deg) skewX(-4deg);
  }
  12% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate(0deg) skewX(-4deg);
  }
  17% { opacity: 1; transform: translate3d(-3px, 1px,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate(-1.2deg) skewX(-4deg); }
  22% { opacity: 1; transform: translate3d( 3px,-1px,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate( 1.1deg) skewX(-4deg); }
  27% { opacity: 1; transform: translate3d(-2px,-1px,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate(-.8deg) skewX(-4deg); }
  32% { opacity: 1; transform: translate3d( 2px, 1px,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate( .7deg) skewX(-4deg); }
  38%, 88% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x, 1)) rotate(0deg) skewX(-4deg);
  }
  95% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.01) scaleX(var(--ajc-fit-x, 1)) rotate(0deg) skewX(-4deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(.94) scaleX(var(--ajc-fit-x, 1)) rotate(0deg) skewX(-4deg);
  }
}


/* =========================================================
   v1.4.8 — full win-title overlay + continuous/mobile one-row polish
   1) Win title is outside the clipped red layer and may sit above the whole
      jackpot face/sound control, so first/last glyphs never disappear.
   2) Counter motion is continuous in JS (no idle wait).
   3) Mobile stays on ONE ROW: jackpot + register + login, like reference.
   ========================================================= */

/* The red FX remain clipped to the card, while the title is allowed to escape. */
.ajc-jackpot-card > .ajc-win-text {
  position: absolute !important;
  z-index: 220 !important;
  left: -8px !important;
  right: -8px !important;
  top: 11px !important;
  bottom: 1px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  opacity: 0;
  visibility: visible !important;
  pointer-events: none !important;
  font-size: 44px !important;
  line-height: .88 !important;
  letter-spacing: -.8px !important;
  transform-origin: 50% 52% !important;
  --ajc-fit-x: 1;
}

/* During a burst the whole jackpot becomes a higher stacking layer than the
   adjacent CTA buttons. This is deliberate: a long title may overlap a few
   pixels rather than lose a letter. */
.ajc-jackpot-card.is-win {
  overflow: visible !important;
  z-index: 80 !important;
}
.ajc-jackpot-card.is-win > .ajc-win-text {
  z-index: 999 !important;
  animation: ajc-win-title-fit-v148 var(--ajc-win-text-ms, 1200ms) linear both !important;
}

/* Let the win title cover the round speaker while it is on screen. */
.ajc-jackpot-card.is-win > .ajc-sound-toggle { z-index: 40 !important; }

/* The red/event layer itself stays neatly clipped to the jackpot rectangle. */
.ajc-jackpot-card > .ajc-win-event {
  inset: 2px !important;
  overflow: hidden !important;
  z-index: 60 !important;
}

/* Old length selectors target text inside .ajc-win-event; the new title is a
   sibling. Keep one large starting size and let JS measure/condense exactly. */
.ajc-jackpot-card > .ajc-win-text .ajc-win-label,
.ajc-jackpot-card > .ajc-win-text .ajc-win-reward {
  flex: 0 0 auto !important;
  display: inline-block !important;
  white-space: nowrap !important;
  max-width: none !important;
}

@keyframes ajc-win-title-fit-v148 {
  0% { opacity: 0; transform: translate3d(0,0,0) scale(.46) scaleX(var(--ajc-fit-x,1)) rotate(-2deg) skewX(-4deg); }
  6% { opacity: 1; transform: translate3d(0,0,0) scale(1.02) scaleX(var(--ajc-fit-x,1)) rotate(-.6deg) skewX(-4deg); }
  12% { opacity: 1; transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(0); }
  17% { opacity: 1; transform: translate3d(-3px,1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(-1.2deg) skewX(-4deg); }
  22% { opacity: 1; transform: translate3d(3px,-1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(1.1deg) skewX(-4deg); }
  27% { opacity: 1; transform: translate3d(-2px,-1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(-.8deg) skewX(-4deg); }
  32% { opacity: 1; transform: translate3d(2px,1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(.7deg) skewX(-4deg); }
  38%, 88% { opacity: 1; transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(0); }
  95% { opacity: 1; transform: translate3d(0,0,0) scale(1.01) scaleX(var(--ajc-fit-x,1)) rotate(0); }
  100% { opacity: 0; transform: translate3d(0,0,0) scale(.94) scaleX(var(--ajc-fit-x,1)) rotate(0); }
}

/* Keep the normal number stable; JS supplies the motion, not scale-pop. */
.ajc-amount {
  animation: none !important;
  transform: none !important;
}
.ajc-amount.is-ticking { animation: none !important; }

@media (max-width: 640px) {
  .ajc-shortcode-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .ajc-bar {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 62px !important;
    padding: 4px 3px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  /* Mobile reference omits the 777 badge to leave room for the large number. */
  .ajc-slot-badge { display: none !important; }

  .ajc-jackpot-card {
    flex: 1.85 1 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 4px 4px 4px 7px !important;
    grid-column: auto !important;
    grid-template-columns: minmax(0,1fr) 25px !important;
    border-radius: 13px !important;
  }

  .ajc-jackpot-copy { min-width: 0 !important; padding: 0 1px !important; }
  .ajc-ticker { height: 12px !important; margin-bottom: 1px !important; }
  .ajc-ticker-text {
    font-size: clamp(7px, 2.25vw, 9px) !important;
    line-height: 12px !important;
    max-width: 100% !important;
  }
  .ajc-amount-row { min-width: 0 !important; }
  .ajc-amount {
    font-size: clamp(14px, 4.45vw, 20px) !important;
    line-height: 21px !important;
    letter-spacing: -.45px !important;
  }
  .ajc-currency { display: none !important; }

  .ajc-sound-toggle {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
  }
  .ajc-sound-toggle .ajc-speaker::before { left: 5px !important; top: 8px !important; width: 5px !important; height: 7px !important; }
  .ajc-sound-toggle .ajc-speaker::after { left: 9px !important; top: 6px !important; border-top-width: 5px !important; border-bottom-width: 5px !important; border-left-width: 6px !important; }
  .ajc-sound-toggle:not(.is-muted) .ajc-speaker { right: 3px !important; top: 6px !important; height: 11px !important; }
  .ajc-sound-slash { width: 18px !important; left: 2px !important; top: 10px !important; }

  .ajc-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px !important;
    padding: 0 5px !important;
    border-radius: 9px !important;
    font-size: clamp(9px, 2.75vw, 12px) !important;
    letter-spacing: -.35px !important;
  }
  .ajc-btn-register { flex-grow: 1.00 !important; }
  .ajc-btn-login { flex-grow: .95 !important; }

  /* Full-height win title on mobile. It may extend a few px above adjacent
     controls, but never clips the leading/trailing Vietnamese glyph. */
  .ajc-jackpot-card > .ajc-win-text {
    left: -7px !important;
    right: -7px !important;
    top: 10px !important;
    bottom: 0 !important;
    min-height: 44px !important;
    font-size: 38px !important;
    line-height: .88 !important;
    gap: 4px !important;
  }
  .ajc-jackpot-card .ajc-win-mini {
    top: 2px !important;
    left: 50% !important;
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    font-size: 6.5px !important;
    line-height: 8px !important;
  }
}

/* =========================================================
   v1.4.9 — win stays inside jackpot + synchronized exit + CTA promo pills
   ========================================================= */

/* Keep the complete win phrase inside the jackpot rectangle. The title no
   longer floats over neighbouring CTA buttons. */
.ajc-jackpot-card.is-win {
  overflow: hidden !important;
  z-index: 1 !important;
}
.ajc-jackpot-card > .ajc-win-event {
  inset: 2px !important;
  z-index: 60 !important;
  overflow: hidden !important;
}
.ajc-jackpot-card > .ajc-win-text {
  z-index: 65 !important;
  left: 6px !important;
  right: 35px !important; /* reserve the speaker, still inside the card */
  top: 12px !important;
  bottom: 3px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 42px !important;
  line-height: .9 !important;
}
.ajc-jackpot-card.is-win > .ajc-sound-toggle {
  z-index: 70 !important;
}

/* Background and phrase now share the exact same end point. Previously the
   red win layer started disappearing before the title, leaving text floating
   on the normal jackpot for a moment. */
.ajc-jackpot-card.is-win > .ajc-win-event {
  animation: ajc-win-event-sync-v149 var(--ajc-win-ms, 1200ms) linear both !important;
}
.ajc-jackpot-card.is-win > .ajc-win-text {
  animation: ajc-win-title-sync-v149 var(--ajc-win-text-ms, 1200ms) linear both !important;
}
.ajc-jackpot-card.is-win .ajc-win-mini {
  animation: ajc-win-mini-sync-v149 var(--ajc-win-ms, 1200ms) linear both !important;
}
.ajc-jackpot-card.is-win .ajc-slot-badge,
.ajc-jackpot-card.is-win .ajc-jackpot-copy,
.ajc-jackpot-card.is-win .ajc-card-shine {
  animation: ajc-win-normal-sync-v149 var(--ajc-win-ms, 1200ms) linear both !important;
}

@keyframes ajc-win-event-sync-v149 {
  0%   { opacity: 0; transform: scale(.78); filter: blur(7px) brightness(1.8); }
  7%   { opacity: 1; transform: scale(1.035); filter: blur(0) brightness(1.35); }
  13%  { opacity: 1; transform: scale(1); filter: blur(0) brightness(1.08); }
  94%  { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); }
  100% { opacity: 0; transform: scale(.96); filter: blur(2px) brightness(1.15); }
}

@keyframes ajc-win-title-sync-v149 {
  0%   { opacity: 0; transform: translate3d(0,0,0) scale(.48) scaleX(var(--ajc-fit-x,1)) rotate(-2deg) skewX(-4deg); }
  6%   { opacity: 1; transform: translate3d(0,0,0) scale(1.035) scaleX(var(--ajc-fit-x,1)) rotate(-.7deg) skewX(-4deg); }
  12%  { opacity: 1; transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(0); }
  18%  { opacity: 1; transform: translate3d(-3px,1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(-1.1deg) skewX(-4deg); }
  23%  { opacity: 1; transform: translate3d(3px,-1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(.8deg); }
  28%  { opacity: 1; transform: translate3d(-2px,-1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(-.7deg) skewX(-4deg); }
  33%  { opacity: 1; transform: translate3d(2px,1px,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(.6deg) skewX(-4deg); }
  39%,94% { opacity: 1; transform: translate3d(0,0,0) scale(1) scaleX(var(--ajc-fit-x,1)) rotate(0); }
  100% { opacity: 0; transform: translate3d(0,0,0) scale(.94) scaleX(var(--ajc-fit-x,1)) rotate(0); }
}

@keyframes ajc-win-mini-sync-v149 {
  0%,8% { opacity: 0; transform: translate(-50%,-4px) scale(.9); }
  14%   { opacity: 1; transform: translate(-50%,0) scale(1); }
  94%   { opacity: 1; transform: translate(-50%,0) scale(1); }
  100%  { opacity: 0; transform: translate(-50%,-2px) scale(.96); }
}

@keyframes ajc-win-normal-sync-v149 {
  0%,5% { opacity: 1; transform: scale(1); filter: blur(0); }
  12%,94% { opacity: 0; transform: scale(.9); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Optional promotional badge above either CTA, e.g. "S8 +88K" / "HOÀN 2%". */
.ajc-btn.has-promo {
  overflow: visible !important;
}
.ajc-btn > .ajc-btn-label {
  position: relative;
  z-index: 3;
  white-space: nowrap;
}
.ajc-btn.has-promo > .ajc-btn-label {
  transform: translateY(3px);
}
.ajc-btn > .ajc-btn-promo {
  position: absolute !important;
  z-index: 8 !important;
  left: 50% !important;
  top: -9px !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: max-content !important;
  max-width: calc(100% - 10px) !important;
  padding: 3px 8px 2px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #fff !important;
  background: linear-gradient(180deg, #ff3650 0%, #e90027 100%) !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  box-shadow: 0 2px 5px rgba(80,0,10,.32), inset 0 1px 0 rgba(255,255,255,.28) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 9px !important;
  line-height: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .ajc-jackpot-card > .ajc-win-text {
    left: 5px !important;
    right: 29px !important;
    top: 11px !important;
    bottom: 2px !important;
    font-size: 34px !important;
    gap: 3px !important;
  }
  .ajc-btn > .ajc-btn-promo {
    top: -7px !important;
    max-width: calc(100% - 6px) !important;
    padding: 2px 5px 1px !important;
    font-size: clamp(7px, 2.05vw, 9px) !important;
    line-height: 11px !important;
  }
  .ajc-btn.has-promo > .ajc-btn-label {
    transform: translateY(3px);
  }
}
