body.verification-pending {
  overflow: hidden;
}

.verification-pending .page {
  opacity: 0;
  transform: scale(.992);
}

.page {
  transition: opacity .45s ease, transform .45s ease, background .25s ease, color .25s ease;
}

.verification-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98) 0 12%, rgba(255, 255, 255, .84) 34%, rgba(241, 243, 244, .97) 72%),
    #f1f3f4;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s linear 0s;
}

.verification-gate.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}

.gate-step {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(616px, calc(100vw - 32px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 18px)) scale(.975);
  transition: opacity .34s ease, transform .34s ease, visibility 0s linear .34s;
}

.gate-step.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}

.gate-robot-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #f9f9f9;
  box-shadow: 0 12px 38px rgba(32, 33, 36, .18);
  cursor: pointer;
  text-align: left;
  transition: box-shadow .22s ease, transform .15s ease;
}

.gate-robot-card:hover {
  box-shadow: 0 15px 44px rgba(32, 33, 36, .23);
}

.gate-robot-card:active {
  transform: scale(.995);
}

.gate-robot-card:focus-visible {
  outline: 3px solid rgba(26, 115, 232, .45);
  outline-offset: 5px;
}

.gate-robot-card img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.gate-check-feedback {
  position: absolute;
  left: 5.2%;
  top: 32.5%;
  display: grid;
  place-items: center;
  width: 8.4%;
  aspect-ratio: 1;
  border-radius: 4px;
  opacity: 0;
  background: #f9f9f9;
  transition: opacity .15s ease;
}

.gate-robot-card.is-checking .gate-check-feedback,
.gate-robot-card.is-checked .gate-check-feedback {
  opacity: 1;
}

.gate-check-spinner {
  width: 66%;
  height: 66%;
  border: 4px solid #d8eadf;
  border-top-color: #1aa260;
  border-radius: 50%;
  opacity: 0;
}

.is-checking .gate-check-spinner {
  opacity: 1;
  animation: gate-spin .65s linear infinite;
}

.gate-check-mark {
  position: absolute;
  width: 88%;
  height: 88%;
  opacity: 0;
  fill: none;
  stroke: #19a15f;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(25, 161, 95, .18));
}

.is-checked .gate-check-mark {
  opacity: 1;
  animation: gate-check-pop .36s cubic-bezier(.2, 1.55, .4, 1) both;
}

.gate-robot-card.is-checked {
  box-shadow: 0 0 0 3px rgba(25, 161, 95, .38), 0 15px 44px rgba(32, 33, 36, .2);
}

.gate-puzzle-step {
  width: min(390px, calc(100vw - 28px));
}

.pc-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(32, 33, 36, .27);
  color: #202124;
}

.pc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 15px 0 18px;
  border-bottom: 1px solid #eceff1;
  background: #fafafa;
}

.pc-title {
  font-size: 15px;
  font-weight: 600;
  color: #303134;
}

.pc-refresh {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #70757a;
  font-size: 23px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .25s ease;
}

.pc-refresh:hover {
  color: #1a73e8;
  background: #edf3fd;
  transform: rotate(45deg);
}

.pc-stage {
  position: relative;
  margin: 14px 14px 0;
  overflow: hidden;
  border-radius: 7px;
  background: #e6e9ed;
}

.pc-background {
  display: block;
  width: 100%;
  height: auto;
}

.pc-piece {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  touch-action: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .52));
}

.pc-piece:active,
.pc-handle:active {
  cursor: grabbing;
}

.pc-slider {
  position: relative;
  height: 46px;
  margin: 14px;
  overflow: hidden;
  border: 1px solid #dfe3e7;
  border-radius: 7px;
  background: #f1f3f4;
  user-select: none;
}

.pc-trail {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 6px;
  background: #dbeafe;
}

.pc-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 40px;
  color: #80868b;
  font-size: 13px;
  pointer-events: none;
  transition: opacity .15s ease, color .2s ease;
}

.pc-handle {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #1a73e8;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
  transition: background .18s ease;
}

.pc-card.is-dragging .pc-hint {
  opacity: 0;
}

.pc-card.is-success {
  box-shadow: 0 0 0 3px rgba(25, 161, 95, .22), 0 22px 70px rgba(32, 33, 36, .25);
}

.pc-card.is-success .pc-trail {
  background: #d7f3e4;
}

.pc-card.is-success .pc-handle {
  background: #1aa260;
}

.pc-card.is-success .pc-hint {
  color: #168a50;
  font-weight: 600;
  opacity: 1;
}

.pc-card.is-error .pc-trail {
  background: #fce8e6;
}

.pc-card.is-error .pc-handle {
  background: #d93025;
}

.pc-card.is-error .pc-hint {
  color: #c5221f;
  font-weight: 600;
  opacity: 1;
}

.pc-card.is-error .pc-stage {
  animation: gate-shake .38s ease;
}

.gate-done-step {
  width: min(360px, calc(100vw - 32px));
  text-align: center;
}

.gate-done-card {
  padding: 38px 28px 34px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 64px rgba(32, 33, 36, .2);
}

.gate-done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #1aa260;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 8px 22px rgba(26, 162, 96, .3);
}

.gate-done-card h1 {
  margin: 0 0 8px;
  color: #202124;
  font-size: 22px;
}

.gate-done-card p {
  margin: 0;
  color: #70757a;
  font-size: 14px;
}

@keyframes gate-spin {
  to { transform: rotate(360deg); }
}

@keyframes gate-check-pop {
  0% { transform: scale(.35); }
  100% { transform: scale(1); }
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

@media (max-width: 520px) {
  .gate-step {
    width: calc(100vw - 24px);
  }

  .gate-puzzle-step {
    width: min(390px, calc(100vw - 20px));
  }

  .pc-stage,
  .pc-slider {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .verification-gate,
  .gate-step,
  .gate-robot-card,
  .gate-check-feedback,
  .pc-refresh,
  .pc-hint,
  .pc-handle {
    transition-duration: .01ms !important;
  }
}
