/* ═══════════════════════════════════════════════════════════════════════
   泊樂娛樂城 · mobisport 射門力量條彈窗  (prefix: shot-)
   self-contained · 運動藍綠 + 金 · 與其他站不共用 class / 配色 / 機制
   ═══════════════════════════════════════════════════════════════════════ */

.shot-promo-active {
  padding-bottom: clamp(86px, 17vw, 128px);
}

.shot-footer-promo,
.shot-backdrop {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}
.shot-footer-promo *,
.shot-backdrop * { box-sizing: border-box; }

/* ── Footer banner ────────────────────────────────────────────────── */
.shot-footer-promo {
  position: fixed;
  z-index: 2147483000;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(245, 210, 100, 0.45);
  border-radius: 10px;
  background: #04110f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44);
  overflow: hidden;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.shot-footer-promo.is-visible { transform: translateY(0); opacity: 1; }
.shot-footer-promo a { display: block; min-height: 64px; }
.shot-footer-promo img { display: block; width: 100%; height: auto; }

.shot-footer-text {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 46px 14px 16px;
  color: #fff; font-size: 15px; font-weight: 700; flex-wrap: wrap; text-decoration: none;
}
.shot-footer-badge {
  padding: 2px 8px; border-radius: 999px; background: #ff4444;
  color: #fff; font-size: 12px; font-weight: 800;
}
.shot-footer-cta-pill {
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe790, #ff9e2c);
  color: #160d05; font-size: 13px; font-weight: 900; white-space: nowrap;
}

.shot-footer-close,
.shot-close {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 999px;
  color: #fff; background: rgba(0, 0, 0, 0.62); cursor: pointer;
  font-size: 22px; line-height: 1;
}
.shot-footer-close { top: 6px; right: 6px; }

/* ── Backdrop ─────────────────────────────────────────────────────── */
.shot-backdrop {
  position: fixed; inset: 0; z-index: 2147483001;
  display: grid; place-items: center; padding: 18px;
  background: rgba(3, 14, 18, 0.68);
  opacity: 0; transition: opacity 180ms ease;
}
.shot-backdrop.is-visible { opacity: 1; }

/* ── Card ─────────────────────────────────────────────────────────── */
.shot-card {
  position: relative;
  width: min(94vw, 420px);
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  color: #fff;
  border: 1px solid rgba(245, 210, 100, 0.42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 6%, rgba(245, 210, 100, 0.22), transparent 30%),
    linear-gradient(160deg, #062a2c 0%, #0a4d5c 48%, #04181f 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 180ms ease;
}
.shot-backdrop.is-visible .shot-card { transform: translateY(0) scale(1); }
.shot-close { top: 10px; right: 10px; }

/* ── Sticky header ────────────────────────────────────────────────── */
.shot-head {
  flex: none;
  padding: 16px 18px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.shot-brand { font-size: 18px; font-weight: 900; letter-spacing: 0.5px; color: #ffe89b; }
.shot-sub   { margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

/* ── Scrollable body ──────────────────────────────────────────────── */
.shot-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px 8px;
}
.shot-cap {
  text-align: center; font-size: 13px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.82); margin-bottom: 12px;
}
.shot-cap b { color: #ffd84f; font-weight: 900; }
.shot-cap strong { color: #ffe89b; }

/* ── Shot-meter stage ─────────────────────────────────────────────── */
.shot-stage { position: relative; display: block; }

/* power bar = 100% of stage; indicator sized in % → scales on any phone */
.shot-meter-wrap {
  position: relative;
  width: 100%;
  padding: 4px 0 0;
}
.shot-meter {
  position: relative;
  width: 100%;
  height: clamp(26px, 8vw, 36px);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(245, 210, 100, 0.4);
  background:
    repeating-linear-gradient(90deg,
      rgba(19, 194, 163, 0.85) 0 6%,
      rgba(43, 177, 255, 0.85) 6% 12%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}
/* gold sweet-spot zone, centred */
.shot-zone {
  position: absolute; top: 0; bottom: 0;
  left: 42%; width: 16%;
  background: linear-gradient(180deg, #ffe790, #ff9e2c);
  box-shadow: 0 0 14px rgba(255, 200, 80, 0.7);
  z-index: 1;
}
.shot-zone::after {
  content: "金"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #3a2400; font-size: clamp(11px, 3.4vw, 14px); font-weight: 900;
}
/* sweeping indicator */
.shot-indicator {
  position: absolute; top: -3px; bottom: -3px;
  left: 0; width: 5px; margin-left: -2.5px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 4px #fff;
  z-index: 2;
  animation: shotSweep 1.05s linear infinite alternate;
}
@keyframes shotSweep {
  0%   { left: 2%; }
  100% { left: 98%; }
}
.shot-indicator.shot-locked {
  animation: none;
  transition: left 360ms cubic-bezier(0.22, 1, 0.36, 1);
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 216, 79, 0.95), 0 0 6px #ffd84f;
}

/* goal + ball visual */
.shot-pitch {
  position: relative;
  width: 100%;
  height: clamp(70px, 22vw, 92px);
  margin-top: 12px;
  display: grid; place-items: center;
}
.shot-goal {
  position: relative;
  width: min(62%, 220px);
  height: clamp(46px, 14vw, 62px);
  border: 3px solid #eef7f5;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.04);
}
.shot-goal-net {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 11px 11px;
}
.shot-keeper {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  font-size: clamp(20px, 6vw, 26px); line-height: 1;
}
.shot-ball {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(22px, 6.5vw, 28px); line-height: 1;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.shot-ball-goal {
  transform: translate(-50%, -42px) scale(0.82) rotate(360deg);
}

.shot-shoot {
  display: block;
  width: min(70%, 260px);
  margin: 14px auto 0;
  min-height: 46px;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  color: #3a2400; font-size: clamp(15px, 4.6vw, 18px); font-weight: 900;
  letter-spacing: 0.5px;
  background: radial-gradient(circle at 50% 30%, #ffe790, #ff9e2c);
  box-shadow: 0 6px 16px rgba(255, 158, 44, 0.5);
  transition: transform 120ms ease;
}
.shot-shoot:hover:not(:disabled) { transform: scale(1.04); }
.shot-shoot:disabled { cursor: default; opacity: 0.92; }

.shot-hint {
  margin-top: 8px; text-align: center;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.6);
  transition: opacity 200ms ease;
}

/* ── Prize reveal ─────────────────────────────────────────────────── */
.shot-prize {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; gap: 4px;
  background: radial-gradient(circle at 50% 45%, rgba(6, 42, 44, 0.96), rgba(4, 24, 31, 0.98));
  border-radius: 12px;
  opacity: 0; visibility: hidden; transform: scale(0.9);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
  z-index: 6;
}
.shot-prize.shot-shown { opacity: 1; visibility: visible; transform: scale(1); }
.shot-congrats { font-size: 16px; font-weight: 800; color: #ffe89b; }
.shot-amount {
  font-size: 64px; font-weight: 900; line-height: 1; color: #ffd84f;
  text-shadow: 0 4px 16px rgba(255, 216, 79, 0.4);
}
.shot-amount small { font-size: 22px; margin-left: 4px; }
.shot-prize-tag { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }

/* ── Confetti ─────────────────────────────────────────────────────── */
.shot-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 7; }
.shot-conf { position: absolute; top: -16px; border-radius: 2px; }
@keyframes shotFall {
  0%   { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(360px) rotate(540deg); opacity: 0; }
}

/* ── 活動總覽 ─────────────────────────────────────────────────────── */
.shot-list-title {
  margin: 18px 0 10px; text-align: center; font-size: 13px; font-weight: 800;
  color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em;
}
.shot-acts { display: grid; gap: 8px; }
.shot-act {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.shot-act.shot-feat { border-color: rgba(245, 210, 100, 0.5); background: rgba(245, 210, 100, 0.08); }
.shot-badge {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  font-size: 13px; font-weight: 800; color: #ffe89b;
}
.shot-act-main { flex: 1 1 auto; min-width: 0; }
.shot-act-label { font-size: 13.5px; font-weight: 800; }
.shot-tag {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 999px;
  background: #f5d264; color: #3a2400; font-size: 10.5px; font-weight: 800;
}
.shot-act-desc { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.shot-act-reward { flex: none; font-size: 22px; font-weight: 900; color: #ffd84f; }
.shot-act-reward small { font-size: 11px; color: rgba(255, 255, 255, 0.6); margin-left: 2px; }

/* ── Sticky footer ────────────────────────────────────────────────── */
.shot-foot {
  flex: none;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}
.shot-timer-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px; }
.shot-timer-label { font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.shot-timer { display: flex; gap: 6px; }
.shot-tunit {
  min-width: 38px; padding: 4px 0; border-radius: 8px; text-align: center;
  background: rgba(19, 194, 163, 0.16); border: 1px solid rgba(245, 210, 100, 0.3);
}
.shot-tnum { font-size: 17px; font-weight: 900; color: #ffe89b; line-height: 1.1; }
.shot-tlbl { font-size: 10px; color: rgba(255, 255, 255, 0.6); }
.shot-timer-done { font-size: 14px; font-weight: 800; color: #ff8a8a; }

.shot-cta {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 10px;
  color: #160d05; text-decoration: none;
  background: linear-gradient(180deg, #ffe790, #ff9e2c);
  box-shadow: 0 10px 24px rgba(255, 157, 43, 0.3);
  font-size: 17px; font-weight: 900;
}
.shot-pulse { animation: shotPulse 1.1s ease-in-out 3; }
@keyframes shotPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 10px 24px rgba(255, 157, 43, 0.3); }
  50%      { transform: scale(1.03); box-shadow: 0 14px 32px rgba(255, 157, 43, 0.55); }
}

.shot-terms { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.66); }
.shot-terms summary { cursor: pointer; color: rgba(255, 255, 255, 0.78); }
.shot-terms p { margin: 6px 0 0; line-height: 1.55; }
.shot-compliance { margin-top: 8px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* ── Mobile: bottom drawer ────────────────────────────────────────── */
@media (max-width: 520px) {
  .shot-promo-active { padding-bottom: clamp(72px, 23vw, 106px); }
  .shot-footer-promo { right: 8px; bottom: 8px; left: 8px; }
  .shot-backdrop { place-items: end center; padding: 0; }
  .shot-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  .shot-backdrop.is-visible .shot-card { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .shot-footer-promo, .shot-backdrop, .shot-card, .shot-prize, .shot-pulse, .shot-conf, .shot-indicator, .shot-ball { transition: none; animation: none; }
}
