.hv-fj-wrap {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 90% at 50% 0%, #a86a34 0%, #6f4420 42%, #3b220f 100%);
  overflow-y: auto;
  font-family: "Balsamiq Sans", system-ui, sans-serif;
  color: #4b2c13;
}

.hv-fj-wrap[hidden] {
  display: none !important;
}

.hv-fj-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fbe6be, #f3d39a);
  border: 2px solid #511e00;
  box-shadow:
    0 18px 40px -18px #000000a6,
    inset 0 2px 0 #ffffffbf,
    inset 0 -2px 0 #00000026;
}

.hv-fj-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 4px 0 #00000033);
}

.hv-fj-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  -webkit-text-stroke: 0.7px #331b01;
  paint-order: stroke fill;
}

.hv-fj-sub {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #6a4320;
}

.hv-fj-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.hv-fj-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #432710;
  border: 1px solid #511e00;
  box-shadow: inset 0 1px 0 #a17346, inset 0 -1px 0 #00000040;
  color: #fbe6be;
}

.hv-fj-ava {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6f4420;
  border: 1px solid #f3d39a66;
}

.hv-fj-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-fj-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-fj-go {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #331b01;
  background: linear-gradient(180deg, #ffe08a, #f0b84a);
  box-shadow: inset 0 1px 0 #fff6, 0 2px 0 #00000033;
  cursor: pointer;
}

.hv-fj-go:active {
  transform: translateY(1px);
}

.hv-fj-nudge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #8a2f12;
  font-weight: 700;
}

.hv-fj-nudge.is-visible {
  display: flex;
}

.hv-fj-done {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #6cc45a, #3f9a3a);
  border: 1px solid #245c22;
  box-shadow: inset 0 1px 0 #ffffff55, 0 3px 0 #1d4a1c;
  cursor: pointer;
}

.hv-fj-done:disabled {
  opacity: 0.7;
  cursor: wait;
}

.hv-fj-done:active:not(:disabled) {
  transform: translateY(1px);
}

.hv-fj-phone {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 8px 6px 4px;
}

.hv-fj-phone .hv-fj-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.hv-fj-phone .hv-fj-title {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.hv-fj-phone .hv-fj-sub {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #f3d39a;
}

.hv-fj-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: block;
  object-fit: contain;
}

.hv-fj-scan {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: #fbe6be;
}

.hv-fj-open {
  display: block;
  width: 100%;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #6cc45a, #3f9a3a);
  border: 1px solid #245c22;
  box-shadow: inset 0 1px 0 #ffffff55, 0 3px 0 #1d4a1c;
}

.hv-fj-bot {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: #f3d39a;
}

body.hv-fj-locked #root {
  visibility: hidden !important;
  pointer-events: none !important;
}
