.waitlist-ticket-slot {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100vw - 12px));
  margin: 24px 0 -92px 50%;
  transform: translateX(-50%);
}

.waitlist-ticket-fallback {
  display: grid;
  min-height: clamp(116px, 26vw, 265px);
  padding: clamp(20px, 4vw, 42px);
  color: #fff;
  background: linear-gradient(135deg, #3157ec, #5875ff 55%, #7b69ed);
  border: 5px solid #fff;
  border-radius: clamp(14px, 2vw, 24px);
  box-shadow: 0 24px 55px rgba(0, 30, 102, 0.28);
  align-content: space-between;
}

.waitlist-ticket-fallback span,
.waitlist-ticket-fallback small {
  font: 600 clamp(11px, 1.8vw, 16px)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.waitlist-ticket-fallback strong {
  overflow-wrap: anywhere;
  font-size: clamp(22px, 4.5vw, 42px);
  line-height: 1.05;
}

.ticket-scene {
  width: 100%;
  perspective: 75rem;
  perspective-origin: center;
}

.ticket-tilt {
  width: 100%;
  backface-visibility: hidden;
  transform: rotateX(0deg) rotateY(0deg);
  transform-origin: center;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.ticket-scene.is-active .ticket-tilt {
  transition: none;
}

.ticket {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  user-select: none;
}

.ticket-shadow {
  fill: #fff;
  filter: url(#ticket-shadow);
  pointer-events: none;
}

.ticket-paper { fill: #3f65f5; }
.ticket-topography { pointer-events: none; }

.ticket-edge {
  fill: none;
  stroke: #fff;
  stroke-linejoin: round;
}

.ticket-edge--outer { stroke-width: 14px; }
.ticket-edge--inner { stroke-width: 2px; }

.mask-text {
  fill: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.ticket-brand { font-size: 60px; }
.ticket-brand--inverted { font-size: 58px; }

.ticket-role,
.ticket-number,
.ticket-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
}

.ticket-role {
  font-size: 58px;
  letter-spacing: -0.045em;
}

.ticket-number {
  font-size: 70px;
  letter-spacing: -0.055em;
}

.ticket-meta {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.qr-code {
  fill: #fff;
  shape-rendering: geometricPrecision;
}

.ticket-qr-link { cursor: pointer; }

.ticket-qr-image {
  filter: none;
}

.holographic-base {
  filter: brightness(1.12) saturate(1.45) contrast(1.2);
}

.holographic-drift {
  animation: holographic-color-drift 4s ease-in-out infinite alternate;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

.holographic-rings {
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.holographic-bloom {
  mix-blend-mode: screen;
  opacity: 0.52;
}

.holographic-depth {
  mix-blend-mode: multiply;
  opacity: 0.44;
}

.holographic-sheen {
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out;
  will-change: opacity;
}

.ticket-scene.is-active .holographic-sheen { opacity: 0.78; }

.perforation line {
  fill: none;
  stroke-dasharray: 13 17;
  stroke-linecap: round;
}

.perforation-shadow {
  stroke: #7868ef;
  stroke-width: 8px;
  opacity: 0.24;
}

.perforation-face {
  stroke: url(#perforation-gradient);
  stroke-width: 5px;
  opacity: 0.82;
}

.perforation-highlight {
  stroke: #dfffff;
  stroke-width: 1.5px;
  opacity: 0.92;
}

@keyframes holographic-color-drift {
  from { transform: translate(-14%, -11%); }
  to { transform: translate(14%, 11%); }
}

@media (max-width: 480px) {
  .waitlist-ticket-slot {
    margin-top: 20px;
    margin-bottom: -58px;
  }
}

@media (max-height: 620px) {
  .waitlist-ticket-slot {
    width: min(560px, calc(100vw - 12px));
    margin-top: 14px;
    margin-bottom: -46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holographic-drift {
    animation: none;
    transform: none;
  }

  .holographic-sheen { transition: none; }
  .ticket-tilt { transition: none; }
}
