:root {
  --navy: #1b365d;
  --navy-deep: #0f2240;
  --teal: #00a8b5;
  --teal-soft: #5ad4dc;
  --orange: #f39200;
  --orange-hot: #ffb347;
  --surface: rgba(255, 255, 255, 0.92);
  --text: #14233f;
  --muted: #5a6b84;
  --radius: 1.35rem;
  --shadow: 0 24px 60px -20px rgba(15, 34, 64, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: #071526;
  overflow-x: hidden;
}

.booth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(0, 168, 181, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(243, 146, 0, 0.18), transparent 50%),
    linear-gradient(165deg, #071526 0%, #0f2240 42%, #132a4d 100%);
}

.booth-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  animation: float 9s ease-in-out infinite;
}

.booth-orb--teal {
  width: 280px;
  height: 280px;
  background: var(--teal);
  top: 12%;
  left: -60px;
}

.booth-orb--orange {
  width: 220px;
  height: 220px;
  background: var(--orange);
  bottom: 8%;
  right: -40px;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

.booth-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.booth-brand {
  margin-bottom: 1.25rem;
  animation: rise 0.7s ease both;
}

.booth-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 14px 36px -12px rgba(0, 0, 0, 0.55);
}

.booth-logo {
  max-height: 68px;
  width: auto;
  display: block;
}

.booth-tagline {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.booth-panel {
  animation: rise 0.55s ease both;
}

.booth-panel-inner {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .booth-panel-inner {
    padding: 2.25rem 2rem;
  }
}

.booth-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.booth-title--sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.booth-lead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.35rem;
}

.booth-product {
  max-width: 100%;
  width: 260px;
  border-radius: 1rem;
  box-shadow: 0 18px 40px -18px rgba(27, 54, 93, 0.55);
  animation: productIn 0.9s ease both;
}

.booth-product--sm {
  width: 180px;
}

@keyframes productIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.88rem;
}

.form-control {
  border-radius: 0.75rem;
  border-color: #d5e0ef;
  padding: 0.7rem 1rem;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.2);
}

.btn-booth {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-booth:hover {
  transform: translateY(-1px);
}

.btn-booth-primary {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 45%, var(--teal));
  border: none;
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(27, 54, 93, 0.7);
}

.btn-booth-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.btn-booth-outline {
  background: #fff;
  border: 1.5px solid rgba(27, 54, 93, 0.25);
  color: var(--navy);
}

.btn-booth-outline:hover {
  border-color: var(--teal);
  color: var(--navy-deep);
  background: #f3fbfd;
}

.challenge-timer-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.challenge-timer {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #e07000);
  box-shadow: 0 12px 28px -10px rgba(243, 146, 0, 0.7);
  animation: pulseTimer 1s ease-in-out infinite;
}

.challenge-timer.is-urgent {
  background: linear-gradient(145deg, #e11d48, #be123c);
  animation-duration: 0.45s;
}

@keyframes pulseTimer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.challenge-progress {
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: #e8eef6;
}

.challenge-progress .progress-bar {
  background: linear-gradient(90deg, var(--teal), var(--orange));
  border-radius: 999px;
  transition: width 0.2s linear;
}

.challenge-timer-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.captcha-frame {
  position: relative;
  width: min(320px, 100%);
  background: linear-gradient(160deg, #0f2240, #1b365d 55%, #0b4f58);
  border-radius: 1.25rem;
  padding: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(90, 212, 220, 0.25), 0 16px 36px -18px rgba(15, 34, 64, 0.65);
}

#captcha-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  border-radius: 50%;
  background: #111;
  cursor: default;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.captcha-refresh {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
}

.captcha-refresh:hover {
  color: var(--orange-hot);
}

.challenge-form {
  width: fit-content;
  max-width: 100%;
}

.code-input {
  width: 9.5rem;
  font-size: 1.65rem !important;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: left;
  padding-left: 0.85rem !important;
  padding-right: 0.5rem !important;
}

.result-icon {
  width: 78px;
  height: 78px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #fff;
  animation: popIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.result-icon--success {
  background: linear-gradient(145deg, var(--teal), #007f8a);
  box-shadow: 0 14px 30px -12px rgba(0, 168, 181, 0.7);
}

.result-icon--fail {
  background: linear-gradient(145deg, #64748b, #334155);
  box-shadow: 0 14px 30px -12px rgba(51, 65, 85, 0.55);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

@media (max-width: 575.98px) {
  .booth-logo-plate {
    padding: 0.55rem 1rem;
    border-radius: 0.95rem;
  }

  .booth-logo {
    max-height: 52px;
  }

  .booth-shell {
    padding-top: 1rem;
  }
}
