/* Presale motion layer: a seat spotlight, a live rail and a small facts ticker.
   Everything shown is either static presale information or driven by the
   contract read in app.mjs; no invented sales numbers live here. */

.pulse {
  position: relative;
  overflow: hidden;
}

.pulse::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(234, 215, 163, .055), transparent);
  transform: skewX(-18deg);
  animation: pulseSweep 7s ease-in-out infinite;
}

.pulse-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 215, 163, .08);
  animation: presalePip 2.2s ease-in-out infinite;
  vertical-align: 1px;
}

.pulse-bar::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 215, 163, .09), 0 0 14px rgba(234, 215, 163, .45);
  transform: translate(-1px, -50%);
  animation: presalePip 2.2s ease-in-out infinite;
}

.presale-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.presale-primary {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 12px 16px;
  border-radius: 6px;
  background: linear-gradient(110deg, #e6cd8e, #f2e4be, #b3b394);
  color: #122015;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.presale-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 215, 163, .16);
}

.presale-primary span:last-child {
  font-size: 17px;
  font-weight: 400;
}

.presale-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(234, 215, 163, .25);
  border-radius: 999px;
  color: var(--gold);
  font: 8px/1.3 monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}

.presale-hero-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 215, 163, .08);
  animation: presalePip 2.2s ease-in-out infinite;
}

.presale-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 640px;
  margin-top: 12px;
}

.presale-reasons article {
  padding: 12px;
  border: 1px solid rgba(234, 215, 163, .14);
  border-radius: 9px;
  background: rgba(234, 215, 163, .025);
}

.presale-reasons span {
  color: var(--gold);
  font: 8px/1 monospace;
  letter-spacing: .1em;
}

.presale-reasons strong {
  display: block;
  margin: 6px 0 4px;
  color: #f3f2e8;
  font-size: 12px;
  font-weight: 600;
}

.presale-reasons p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.seat-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  max-width: 640px;
  margin: 18px 0 0;
  border: 1px solid rgba(234, 215, 163, .28);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(460px 300px at 88% 18%, rgba(234, 215, 163, .13), transparent 66%),
    linear-gradient(145deg, #1b2a1d, #0b1510);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.seat-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 242, 232, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 242, 232, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 72% 40%, black, transparent 70%);
}

.spotlight-copy {
  position: relative;
  z-index: 1;
  padding: 24px 0 22px 24px;
  min-width: 0;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font: 9px/1.5 monospace;
  letter-spacing: .14em;
}

.spotlight-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(234, 215, 163, .09);
  animation: presalePip 2.2s ease-in-out infinite;
}

.spotlight-copy h2 {
  margin: 14px 0 10px;
  color: #f3f2e8;
  font-size: clamp(29px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.spotlight-number {
  color: var(--gold);
  font-family: monospace;
  letter-spacing: -.03em;
  text-shadow: 0 0 22px rgba(234, 215, 163, .22);
}

.spotlight-copy h2 em {
  color: var(--gold);
  font-style: italic;
}

.spotlight-copy > p {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 11px 14px;
  border-radius: 6px;
  background: linear-gradient(110deg, #e6cd8e, #f2e4be, #b3b394);
  color: #122015;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.spotlight-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(234, 215, 163, .15);
}

.spotlight-cta span:last-child {
  font-size: 15px;
  font-weight: 400;
}

.spotlight-link {
  color: var(--gold);
  font: 10px/1.6 monospace;
  text-underline-offset: 4px;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.spotlight-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(234, 215, 163, .18);
  border-radius: 999px;
  color: #aeb8aa;
  font: 8px/1.3 monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

.spotlight-ticket {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 14px;
  border-left: 1px solid rgba(234, 215, 163, .14);
  background: rgba(5, 10, 7, .24);
  overflow: hidden;
}

.ticket-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(234, 215, 163, .24);
  border-radius: 50%;
}

.ticket-ring {
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(234, 215, 163, .2);
  border-radius: 50%;
  animation: ticketSpin 16s linear infinite;
}

.ticket-ring-two {
  inset: 29px;
  border-style: solid;
  border-color: rgba(234, 215, 163, .12);
  animation-direction: reverse;
  animation-duration: 11s;
}

.ticket-seat {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: monospace;
  font-size: 62px;
  line-height: .8;
  letter-spacing: -.08em;
  text-shadow: 0 0 34px rgba(234, 215, 163, .28);
}

.ticket-label {
  position: absolute;
  z-index: 1;
  top: 42%;
  color: #aeb8aa;
  font: 8px/1 monospace;
  letter-spacing: .28em;
  transform: translateY(34px);
}

.ticket-state {
  position: absolute;
  z-index: 1;
  bottom: 23px;
  padding: 4px 8px;
  border: 1px solid rgba(234, 215, 163, .26);
  border-radius: 999px;
  color: var(--gold);
  font: 7px/1.2 monospace;
  letter-spacing: .1em;
  white-space: nowrap;
}

.seat-rail {
  display: flex;
  gap: 4px;
  margin-top: 14px;
}

.seat-chip {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(234, 215, 163, .14);
  border-radius: 4px;
  color: #879487;
  font: 7px/1 monospace;
}

.seat-chip.is-next {
  border-color: var(--gold);
  background: rgba(234, 215, 163, .13);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(234, 215, 163, .1);
  animation: chipPulse 2.4s ease-in-out infinite;
}

.seat-chip.is-taken {
  border-color: rgba(198, 212, 195, .24);
  color: #c6d4c3;
}

.seat-chip.is-future {
  opacity: .42;
}

.ticket-scan {
  position: absolute;
  right: 20px;
  bottom: 44px;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 215, 163, .42), transparent);
  animation: ticketScan 4.5s ease-in-out infinite;
}

.presale-ticker {
  max-width: 640px;
  margin: 10px 0 0;
  border-top: 1px solid rgba(234, 215, 163, .18);
  border-bottom: 1px solid rgba(234, 215, 163, .18);
  overflow: hidden;
  background: rgba(234, 215, 163, .035);
}

.presale-ticker-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 7px 0;
  color: var(--gold);
  font: 8px/1.4 monospace;
  letter-spacing: .13em;
  white-space: nowrap;
  animation: presaleTicker 30s linear infinite;
}

.presale-ticker-track b {
  color: rgba(234, 215, 163, .38);
  font-weight: 400;
}

@keyframes presalePip {
  0%, 100% { opacity: .55; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes pulseSweep {
  0%, 30% { left: -35%; opacity: 0; }
  48% { opacity: 1; }
  72%, 100% { left: 115%; opacity: 0; }
}

@keyframes ticketSpin {
  to { transform: rotate(360deg); }
}

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(234, 215, 163, 0); }
  50% { box-shadow: 0 0 15px rgba(234, 215, 163, .14); }
}

@keyframes ticketScan {
  0%, 100% { opacity: .18; transform: translateY(0); }
  50% { opacity: .62; transform: translateY(-110px); }
}

@keyframes presaleTicker {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .seat-spotlight {
    grid-template-columns: 1fr;
  }

  .spotlight-copy {
    padding: 20px 20px 0;
  }

  .spotlight-ticket {
    min-height: 220px;
    border-top: 1px solid rgba(234, 215, 163, .14);
    border-left: 0;
  }

  .spotlight-copy h2 {
    font-size: 34px;
  }

  .presale-ticker {
    margin-top: 8px;
  }

  .presale-reasons {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after,
  .pulse-kicker::before,
  .pulse-bar::before,
  .spotlight-kicker i,
  .ticket-ring,
  .seat-chip.is-next,
  .ticket-scan,
  .presale-ticker-track,
  .presale-hero-badge i {
    animation: none;
  }
}
