.lsb-live-credit-giveaway-trigger {
  border: 0;
  cursor: pointer;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

.lsb-live-credit-giveaway-trigger:disabled {
  cursor: wait;
  opacity: .68;
}

.lsb-live-credit-giveaway-trigger--desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #f97316;
  color: #fff;
  padding: 8px 10px;
  font-size: .82rem;
  line-height: 1.15;
  white-space: nowrap;
}

.lsb-live-credit-giveaway-trigger--mobile {
  position: fixed;
  right: 10px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 360px);
  z-index: 92;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(253, 224, 71, .95);
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #431407;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(249, 115, 22, .38);
}

.lsb-live-credit-giveaway-trigger--control {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(253, 224, 71, .9);
  border-radius: 8px;
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #431407;
  padding: 5px 9px;
  font-size: 18px;
  line-height: 1;
}

.lsb-live-credit-giveaway-trigger:active {
  transform: scale(.96);
}

.lsb-credit-giveaway-backdrop {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(4px);
}

.lsb-credit-giveaway-backdrop[hidden] {
  display: none !important;
}

.lsb-credit-giveaway-card {
  width: min(430px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(251, 191, 36, .55);
  border-radius: 18px;
  background: #fff;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.lsb-credit-giveaway-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.lsb-credit-giveaway-eyebrow {
  color: #b45309;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lsb-credit-giveaway-title {
  margin-top: 3px;
  font-size: 23px;
  font-weight: 1000;
  line-height: 1.08;
}

.lsb-credit-giveaway-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lsb-credit-giveaway-body {
  padding: 17px 18px 19px;
}

.lsb-credit-giveaway-note {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.lsb-credit-giveaway-note strong {
  color: #111827;
}

.lsb-credit-giveaway-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.lsb-credit-giveaway-metric {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  text-align: center;
}

.lsb-credit-giveaway-metric span {
  display: block;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lsb-credit-giveaway-metric strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 25px;
  font-weight: 1000;
  line-height: 1;
}

.lsb-credit-giveaway-field {
  display: block;
  margin-bottom: 14px;
}

.lsb-credit-giveaway-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.lsb-credit-giveaway-money-input {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 2px solid #fbbf24;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.lsb-credit-giveaway-field > .lsb-credit-giveaway-money-input {
  display: grid;
  margin-bottom: 0;
}

.lsb-credit-giveaway-money-input > span {
  padding-left: 13px;
  color: #b45309;
  font-size: 22px;
  font-weight: 1000;
}

.lsb-credit-giveaway-money-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  padding: 12px 13px 12px 7px;
  font-size: 22px;
  font-weight: 1000;
}

.lsb-credit-giveaway-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.lsb-credit-giveaway-status.error {
  color: #b91c1c;
}

.lsb-credit-giveaway-status.success {
  color: #047857;
}

.lsb-credit-giveaway-submit,
.lsb-credit-giveaway-cancel {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 1000;
}

.lsb-credit-giveaway-submit {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #431407;
}

.lsb-credit-giveaway-submit:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.lsb-credit-giveaway-cancel {
  margin-top: 8px;
  background: #e5e7eb;
  color: #1f2937;
}

.lsb-credit-celebration {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(30, 64, 175, .24), rgba(2, 6, 23, .72));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: lsbCreditBackdropIn .3s ease-out both;
}

.lsb-credit-celebration-card {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  border: 2px solid rgba(254, 240, 138, .9);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #fffbeb);
  color: #111827;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 48px rgba(250, 204, 21, .35);
  animation: lsbCreditCardPop .55s cubic-bezier(.2, 1.45, .5, 1) both;
}

.lsb-credit-celebration-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f97316);
  color: #431407;
  font-size: 43px;
  font-weight: 1000;
  box-shadow: 0 14px 35px rgba(249, 115, 22, .34);
  animation: lsbCreditIconPulse 1.2s ease-in-out infinite alternate;
}

.lsb-credit-celebration h2 {
  margin: 0;
  color: #92400e;
  font-size: 29px;
  font-weight: 1000;
  line-height: 1.08;
}

.lsb-credit-celebration-amount {
  margin-top: 9px;
  color: #047857;
  font-size: 38px;
  font-weight: 1000;
  line-height: 1;
}

.lsb-credit-celebration p {
  margin: 10px 0 17px;
  color: #374151;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.lsb-credit-celebration button {
  min-width: 150px;
  min-height: 43px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 1000;
}

.lsb-credit-confetti {
  position: absolute;
  z-index: 1;
  top: -12vh;
  left: var(--x);
  width: var(--w);
  height: calc(var(--w) * 1.8);
  border-radius: 2px;
  background: var(--color);
  opacity: .95;
  transform: rotate(var(--rotate));
  animation: lsbCreditConfettiFall var(--duration) var(--delay) linear infinite;
}

@keyframes lsbCreditBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lsbCreditCardPop {
  from { opacity: 0; transform: translateY(35px) scale(.72) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes lsbCreditIconPulse {
  from { transform: rotate(-5deg) scale(.96); }
  to { transform: rotate(5deg) scale(1.06); }
}

@keyframes lsbCreditConfettiFall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0); }
  100% { transform: translate3d(var(--drift), 120vh, 0) rotate(760deg); }
}

@media (max-width: 760px) {
  #bigj-video-sync-control .lsb-live-credit-giveaway-trigger--desktop {
    width: 100%;
  }

  .lsb-credit-giveaway-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .lsb-credit-giveaway-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px 18px 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsb-credit-celebration,
  .lsb-credit-celebration-card,
  .lsb-credit-celebration-icon,
  .lsb-credit-confetti {
    animation: none !important;
  }
}
