/* =========================================
   MARQUEE & JACKPOT
   ========================================= */
.marquee-wrap {
  background: var(--app-bg);
  padding: 0;
}
.marquee-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f0f0f;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
}
.marquee-left {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #0f0f0f;
  color: #d4af37;
  z-index: 2;
}
.marquee-left i {
  font-size: 18px;
  opacity: 0.95;
}
.marquee-track {
  width: 100%;
  padding-left: 44px;
  padding-right: 22px;
  white-space: nowrap;
  overflow: hidden;
}
.marquee-run {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-left: 100%;
  will-change: transform;
  animation: marqueeOnce 16s linear infinite;
}
@keyframes marqueeOnce {
  0% {
    transform: translateX(0);
  }
  6% {
    transform: translateX(0);
  }
  94% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.marquee-amount {
  color: #d4af37;
  font-weight: 800;
}
.marquee-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  width: 90px;
  height: 100%;
  background: linear-gradient(270deg, #0f0f0f 0%, rgba(15, 15, 15, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* =========================================
   JACKPOT V2 REDESIGN
   ========================================= */
.jackpot-v2 {
  position: relative;
  overflow: hidden;
  background-color: #090909;
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
  background-repeat: repeat;
  padding: 10px 0;
  /* Ensure border looks consistent with marquee */
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.jackpot-v2__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
}
.jackpot-v2__container {
  position: relative;
  z-index: 1;
  text-align: center;
  /* Default Desktop Padding */
  padding: 0 15px;
}

/* Title */
.jackpot-v2__title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(233, 205, 122, 0.8);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Wrapper */
.jackpot-v2__amountWrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glow Effect behind number */
.jackpot-v2__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 50px;
  background: rgba(212, 175, 55, 0.15);
  filter: blur(30px);
  border-radius: 50%;
  pointer-events: none;
}

/* Flex Container for Decoration + Number */
.jackpot-v2__amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* Desktop: Hide side decors or keep them minimal */
.jackpot-v2__decor {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.5;
}
.jackpot-v2__decor--left {
  flex-direction: row;
}
.jackpot-v2__decor--right {
  flex-direction: row;
}

/* Decoration lines (Gold) */
.decor-line {
  height: 2px;
  width: 60px; /* Short lines on desktop */
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d4af37 50%,
    transparent 100%
  );
}
.decor-diamond {
  width: 6px;
  height: 6px;
  background: #d4af37;
  transform: rotate(45deg);
  box-shadow: 0 0 8px #d4af37;
}

/* Text Group */
.jackpot-v2__value-group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.jackpot-v2__currency {
  font-weight: 900;
  font-size: 32px;
  color: #d4af37;
  font-family: monospace;
}

.jackpot-v2__number {
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    180deg,
    #fff2c6 0%,
    #f0d37a 30%,
    #d4af37 60%,
    #a9771b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0px rgba(0, 0, 0, 0.5));
  font-family: monospace;
  letter-spacing: -1px;
}

/* =========================================
   MOBILE / COMPACT VIEW (Max Width 480px)
   ========================================= */
@media (max-width: 480px) {
  .jackpot-v2 {
    padding: 6px 0; /* Minimal vertical padding */
  }

  .jackpot-v2__container {
    padding: 0; /* Full width, no gaps */
    width: 100%;
  }

  /* Compact Title */
  .jackpot-v2__title {
    font-size: 10px;
    letter-spacing: 0.3em;
    margin-bottom: 4px;
    opacity: 0.7;
  }

  /* Stretch Layout */
  .jackpot-v2__amount {
    display: flex;
    flex-direction: row; /* Force horizontal row */
    align-items: center;
    justify-content: space-between; /* Push items apart */
    width: 100%;
    gap: 0; /* Remove gap, handle spacing via flex-grow */
  }

  /* Decoration Logic: Fill Available Space */
  .jackpot-v2__decor {
    flex: 1; /* Grow to fill space */
    height: 30px; /* Height of the graphic area */
    display: flex;
    align-items: center;
    opacity: 1;
    position: relative;
  }

  /* Left Decor Styling */
  .jackpot-v2__decor--left {
    justify-content: flex-start; /* Align to left edge */
    padding-right: 4px;
  }
  .jackpot-v2__decor--left .decor-line {
    width: 100%; /* Stretch line */
    height: 1px;
    background: linear-gradient(
      90deg,
      #000 0%,
      #c9a227 100%
    ); /* Fade in from black */
    margin-right: -3px; /* Connect to diamond */
  }
  .jackpot-v2__decor--left .decor-diamond {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
  }

  /* Right Decor Styling */
  .jackpot-v2__decor--right {
    justify-content: flex-end; /* Align to right edge */
    padding-left: 4px;
  }
  .jackpot-v2__decor--right .decor-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      270deg,
      #000 0%,
      #c9a227 100%
    ); /* Fade in from black */
    margin-left: -3px;
    order: 2; /* Line after diamond */
  }
  .jackpot-v2__decor--right .decor-diamond {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    order: 1;
  }

  /* The Number Group */
  .jackpot-v2__value-group {
    flex-shrink: 0; /* Do not squish the number */
    display: flex;
    flex-direction: column; /* Stack currency above number? or hide currency? */
    align-items: center;
    justify-content: center;
    padding: 0 4px; /* Tiny padding between decors */
  }

  /* Hide Currency on Mobile for Maximum Compactness */
  .jackpot-v2__currency {
    display: none;
  }

  /* Massive Number */
  .jackpot-v2__number {
    font-size: clamp(
      24px,
      8.5vw,
      40px
    ); /* Aggressive sizing based on viewport width */
    letter-spacing: -0.03em; /* Tighten tracking */
    width: auto;
  }
}
