/* Live KYC verification popup (test players) */

.kyc-lv-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: kyc-lv-fade-in 0.2s ease;
}

@keyframes kyc-lv-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kyc-lv-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 18px;
  background: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.kyc-lv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}

.kyc-lv-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.kyc-lv-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.kyc-lv-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.kyc-lv-steps {
  display: flex;
  gap: 8px;
  padding: 0 18px 12px;
}

.kyc-lv-step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

.kyc-lv-step.is-active,
.kyc-lv-step.is-done {
  background: linear-gradient(90deg, #9e6752, #fed7a5);
}

.kyc-lv-instruction {
  margin: 0 18px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.kyc-lv-camera-wrap {
  position: relative;
  margin: 0 18px 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

.kyc-lv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.kyc-lv-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.kyc-lv-zone {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.kyc-lv-zone--face {
  left: 4%;
  top: 12%;
  width: 42%;
  height: 76%;
  border-radius: 50%;
  border-style: solid;
  border-width: 3px;
  border-color: rgba(255, 255, 255, 0.35);
}

.kyc-lv-zone--passport {
  right: 4%;
  top: 18%;
  width: 44%;
  height: 64%;
}

.kyc-lv-zone.is-active {
  border-color: #fed7a5;
  box-shadow: 0 0 0 2px rgba(254, 215, 165, 0.25), inset 0 0 24px rgba(254, 215, 165, 0.08);
}

.kyc-lv-zone-label {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.kyc-lv-zone-label--face {
  left: 8%;
  bottom: 6%;
}

.kyc-lv-zone-label--passport {
  right: 8%;
  bottom: 6%;
}

.kyc-lv-foot {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kyc-lv-status {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.2em;
}

.kyc-lv-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.35);
  color: #ffcdd2;
  font-size: 0.84rem;
}

.kyc-lv-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(254, 215, 165, 0.1);
  border: 1px solid rgba(254, 215, 165, 0.25);
  font-size: 0.82rem;
  color: #fed7a5;
}

.kyc-lv-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 560px) {
  .kyc-lv-zone--face {
    left: 2%;
    width: 46%;
  }

  .kyc-lv-zone--passport {
    right: 2%;
    width: 46%;
  }
}
