/* Stripchat-parity Ticket Show stage invite (inside video host). */

.sl-ticket-stage {
  position: absolute;
  inset: 0;
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: auto;
}

.sl-ticket-stage[hidden] {
  display: none !important;
}

.sl-ticket-stage__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(88, 28, 135, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(8, 10, 18, 0.55) 0%, rgba(8, 10, 18, 0.82) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sl-ticket-stage__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  text-align: center;
  color: #f8fafc;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.sl-ticket-stage__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(250, 204, 21, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  background: #1e293b;
}

.sl-ticket-stage__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fbbf24;
}

.sl-ticket-stage__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1204;
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.sl-ticket-stage__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.sl-ticket-stage__timer {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.82);
  font-variant-numeric: tabular-nums;
}

.sl-ticket-stage__lede {
  margin: 0 auto 18px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.sl-ticket-stage__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(280px, 100%);
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.sl-ticket-stage__cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.sl-ticket-stage__cta:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.sl-ticket-stage__meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.95);
}

/*
 * Stripchat hierarchy: Private Show (1:1 / Spy) wins the MAIN LIVE WINDOW
 * over Ticket Show. Ticket invite only owns the stage when Private is not active.
 */
/* Offline premium stage wins over Ticket Show invite. */
body.sl-offline-room-active .sl-ticket-stage,
body.sl-offline-room-active #slTicketStage {
  display: none !important;
}

body.sl-ticket-stage-open:not(.sl-spy-stage-active) .sl-spy-stage {
  display: none !important;
}
body.sl-spy-stage-active .sl-ticket-stage {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 520px) {
  .sl-ticket-stage {
    padding: 12px;
    align-items: flex-end;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .sl-ticket-stage__avatar {
    width: 72px;
    height: 72px;
  }

  .sl-ticket-stage__cta {
    width: 100%;
    min-width: 0;
  }
}
