body.afc-tour-handoff-booting {
  opacity: 1 !important;
  overflow: hidden !important;
  background: #10110f !important;
}

body.afc-tour-handoff-booting > #app,
body:has(#afcTourHandoffBoot:target) > #app {
  opacity: 0 !important;
}

body:has(#afcTourHandoffBoot:target) {
  opacity: 1 !important;
  overflow: hidden !important;
  background: #10110f !important;
}

#afcTourHandoffBoot[hidden] {
  display: none !important;
}

#afcTourHandoffBoot:target {
  display: grid !important;
}

#afcTourHandoffBoot {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 42%, rgba(211, 174, 104, 0.17), transparent 38%), #10110f;
  color: #f4f4ef;
  font-family: "Segoe UI", Calibri, Arial, sans-serif;
  transition: opacity 180ms ease;
}

#afcTourHandoffBoot.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.afc-tour-handoff-card {
  width: min(360px, calc(100vw - 36px));
  padding: 28px 28px 24px;
  border: 1px solid rgba(211, 174, 104, 0.62);
  border-radius: 18px;
  background: #1b1c1a;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(211, 174, 104, 0.1);
  text-align: center;
  animation: afc-tour-handoff-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.afc-tour-handoff-mark {
  position: relative;
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(211, 174, 104, 0.58);
  border-radius: 50%;
  background: rgba(211, 174, 104, 0.12);
  color: #d3ae68;
  font-size: 28px;
}

.afc-tour-handoff-mark::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(211, 174, 104, 0.58);
  border-radius: inherit;
  animation: afc-tour-handoff-ring 1.15s ease-out infinite;
}

.afc-tour-handoff-kicker {
  display: block;
  margin-bottom: 7px;
  color: #d3ae68;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.afc-tour-handoff-card strong {
  display: block;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.2;
}

.afc-tour-handoff-card p {
  margin: 8px 0 18px;
  color: #b9bcb4;
  font-size: 12px;
  font-weight: 650;
}

.afc-tour-handoff-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a2c27;
}

.afc-tour-handoff-progress span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd9147, #eccb88);
  animation: afc-tour-handoff-progress 820ms ease-in-out infinite;
}

@keyframes afc-tour-handoff-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes afc-tour-handoff-ring {
  from {
    opacity: 0.8;
    transform: scale(0.88);
  }
  to {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes afc-tour-handoff-progress {
  from {
    transform: translateX(-115%);
  }
  to {
    transform: translateX(250%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .afc-tour-handoff-card,
  .afc-tour-handoff-mark::before,
  .afc-tour-handoff-progress span {
    animation: none !important;
  }
}
