/* ── Jackpot (Limited-Time Jackpot Drop) Screen Style ──
 *
 * Same stage model as win2dao/reborn.css: 1024 × 1552 design px (bg.webp),
 * centered on #000. `.page-jackpot` is an inline-size container so layers
 * clamp to the visible width on narrow viewports.
 */

#screen-jackpot {
  overflow: hidden;
  height: var(--content-height, 932px) !important;
  background: #000 !important;

  --jp-frame-w: 1024;
  --jp-frame-h: 1552;

  /* Title PNG (995 × 585): art ends at y=494, so ~86 design px of transparent
     padding sits below it at 940 wide. Image bottom 1470 = art bottom ~1384. */
  --jp-title-bottom: 1470;
  --jp-title-w: 940;

  /* Date banner button (693 × 103, ~95 tall at 640 wide) center */
  --jp-btn-cy: 1460;
  --jp-btn-w: 640;
}

.page-jackpot {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000 !important;
  background-image: none !important;
  container-type: inline-size;
}

#screen-jackpot .page-jackpot::before,
#screen-jackpot .page-jackpot::after {
  display: none !important;
  content: none !important;
}

.jp-stage {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: calc(var(--content-height, 932px) * 1024 / 1552);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.jp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.jp-loc {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.jp-loc.is-ready {
  opacity: 1;
}

/* ── Title (bottom-anchored) ── */
.jp-title-wrap {
  position: absolute;
  left: 50%;
  top: calc(var(--jp-title-bottom) / var(--jp-frame-h) * 100%);
  width: min(calc(var(--jp-title-w) / var(--jp-frame-w) * 100%), 98cqw);
  transform: translate(-50%, -100%);
  z-index: 4;
  pointer-events: none;
}

.jp-title {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.85));
}

/* ── CTA (date banner) ── */
.jp-btn-wrap {
  position: absolute;
  left: 50%;
  top: calc(var(--jp-btn-cy) / var(--jp-frame-h) * 100%);
  width: min(calc(var(--jp-btn-w) / var(--jp-frame-w) * 100%), 86cqw);
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: auto;
}

.jp-action-btn {
  display: block;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: jp-pulse 2s infinite ease-in-out;
  transition: filter 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.jp-action-btn:hover {
  animation-play-state: paused;
  transform: scale(1.06);
  filter: brightness(1.15) drop-shadow(0 0 18px rgba(255, 200, 60, 0.65));
}

.jp-action-btn:active {
  animation-play-state: paused;
  transform: scale(0.95);
}

.jp-btn-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}

@keyframes jp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

#tab-jackpot.bottom-nav__card--active {
  outline: 2px solid #ffc83c !important;
  box-shadow:
    0 0 14px rgba(255, 200, 60, 0.45),
    0 0 30px rgba(255, 200, 60, 0.2) !important;
}
