:root {
  color-scheme: dark;
  --bg: #0a0614;
  --bg-mid: #15082a;
  --surface: rgba(28, 16, 48, 0.92);
  --surface-light: rgba(255, 255, 255, 0.06);
  --text: #f8f4ff;
  --muted: #b8a8d4;
  --line: rgba(255, 215, 120, 0.2);
  --gold: #f5c842;
  --gold-dark: #d4a017;
  --coral: #ff6b9d;
  --violet-bright: #c084fc;
  --success: #4ade80;
  --error: #fb7185;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168, 85, 247, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 107, 157, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(245, 200, 66, 0.1), transparent),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: rgba(168, 85, 247, 0.35);
}

.bg-glow--right {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: -60px;
  background: rgba(245, 200, 66, 0.2);
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, var(--gold) 1px, transparent 1px),
    radial-gradient(circle, var(--coral) 1px, transparent 1px),
    radial-gradient(circle, var(--violet-bright) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  background-position: 0 0, 40px 60px, 80px 20px;
  animation: confetti-drift 24s linear infinite;
}

@keyframes confetti-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(120px);
  }
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo__icon {
  flex-shrink: 0;
  font-size: 1.75rem;
  filter: drop-shadow(0 0 12px rgba(245, 200, 66, 0.6));
}

.logo__text {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.badge-live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero__copy {
  position: relative;
  padding: 12px 0;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(320px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--coral) 50%, var(--violet-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ticket {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.ticket__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%
  );
  pointer-events: none;
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.ticket__header {
  margin-bottom: 20px;
}

.ticket__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.ticket h2 {
  font-size: 1.35rem;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(184, 168, 212, 0.55);
}

.field input:focus {
  outline: none;
  border-color: rgba(245, 200, 66, 0.5);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.12);
}

.field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.consent {
  margin: 2px 0 14px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 40%, var(--coral) 100%);
  color: #1a0a2e;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(245, 200, 66, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-100%);
  animation: btn-gleam 3.5s ease-in-out infinite;
}

@keyframes btn-gleam {
  0%,
  70%,
  100% {
    transform: translateX(-100%);
  }
  85% {
    transform: translateX(100%);
  }
}

.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(245, 200, 66, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.submit__spark {
  font-size: 1rem;
  animation: spin-spark 2s linear infinite;
}

@keyframes spin-spark {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.status {
  min-height: 1.25rem;
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.status--success {
  color: var(--success);
}

.status--error {
  color: var(--error);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .hero__copy {
    text-align: center;
    padding: 8px 0 0;
  }

  .hero__glow {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .ticket {
    max-width: none;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }

  .logo {
    justify-content: center;
  }

  .badge-live {
    justify-content: center;
  }

  .ticket {
    padding: 20px;
    border-radius: 20px;
  }
}
