.stop-diff-page {
  display: flex;
}
.stop-diff-page .left {
  width: 100%;
  max-width: 768px;
}
.stop-diff-page .left .advert-wrap {
  margin-top: 20px !important;
}
.stop-diff-page .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 10px;
}
.stop-diff-page .title img {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  cursor: pointer;
}
.stop-diff-page .main {
  width: 100%;
  max-width: 768px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.stop-diff-page .main h1 {
  font-size: 30px;
  color: var(--mainColor);
  margin: 0;
  padding: 25px 0 25px 25px;
}
.stop-diff-page .main .game-content {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 20px;
  background-color: #d0ffd0;
}
.stop-diff-page .main .game-content .diff-image {
  position: relative;
  width: calc(50% - 5px);
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
  line-height: 0;
}
.stop-diff-page .main .game-content .diff-image.locked {
  pointer-events: none;
}
.stop-diff-page .main .game-content img {
  width: 100%;
  display: block;
}
.stop-diff-page .main .game-content .marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stop-diff-page .main .game-content .diff-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 3px solid #ff3b30;
  border-radius: 999px;
  box-sizing: border-box;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.stop-diff-page .main .game-content .diff-marker.animate {
  animation: stop-diff-marker-pop 0.2s ease-out;
}
.stop-diff-page .main .game-content .wrong-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  background: url('/imgs/stop-diff/wrong.svg') center/contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}
.stop-diff-page .main .game-content .wrong-marker.animate {
  animation: stop-diff-wrong-marker 1s ease forwards;
}
.stop-diff-page .progress {
  padding: 11px 0 25px 11px;
  font-size: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--mainColor);
}
.stop-diff-page .progress > span {
  margin-right: 10px;
  font-weight: bold;
}
.stop-diff-page .progress .progress-bar {
  width: 30px;
  height: 30px;
  border: 1px #000 solid;
  margin-right: 5px;
  margin-top: 6px;
  border-radius: 6px;
  background-color: #fff;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.stop-diff-page .progress .progress-bar.active {
  background-color: #ff3b30;
  border-color: #ff3b30;
  transform: scale(1.05);
}

.stop-diff-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.stop-diff-modal .stop-diff-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.stop-diff-modal .stop-diff-modal-panel {
  position: relative;
  width: min(100%, 420px);
  background-color: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  text-align: center;
}
.stop-diff-modal .stop-diff-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: #6b7280;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.stop-diff-modal .stop-diff-modal-close:hover {
  background-color: #f2f4f7;
}
.stop-diff-modal .stop-diff-modal-panel h2 {
  margin: 0 0 14px;
  color: var(--mainColor);
  font-size: 30px;
  line-height: 1.2;
}
.stop-diff-modal .stop-diff-modal-body {
  color: #333;
  font-size: 20px;
}
.stop-diff-modal .stop-diff-modal-body p {
  margin: 0 0 10px;
  white-space: pre-line;
}
.stop-diff-modal .stop-diff-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.stop-diff-modal .stop-diff-modal-actions .common-btn,
.stop-diff-modal .stop-diff-modal-actions .common-btn2 {
  min-width: 130px;
  font-size: 22px;
  padding: 12px 22px;
}
.stop-diff-modal .stop-diff-modal-actions a.common-btn,
.stop-diff-modal .stop-diff-modal-actions a.common-btn2 {
  display: inline-block;
  text-decoration: none;
}
.stop-diff-modal .stop-diff-modal-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.stop-diff-modal .stop-diff-modal-actions button:disabled:hover {
  background-color: #006aff;
}

@keyframes stop-diff-marker-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes stop-diff-wrong-marker {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

@media (max-width: 768px) {
  .stop-diff-page .main h1 {
    font-size: 24px;
    padding: 10px;
  }

  .stop-diff-page .main .game-content {
    flex-direction: column;
  }

  .stop-diff-page .main .game-content .diff-image {
    width: 100%;
  }

  .stop-diff-page .main .game-content .wrong-marker {
    width: 36px;
    height: 36px;
  }

  .stop-diff-page .progress {
    padding: 12px 15px 20px;
    font-size: 18px;
  }

  .stop-diff-modal .stop-diff-modal-panel {
    padding: 22px 18px 20px;
  }

  .stop-diff-modal .stop-diff-modal-panel h2 {
    font-size: 24px;
  }

  .stop-diff-modal .stop-diff-modal-close {
    top: 10px;
    right: 10px;
  }

  .stop-diff-modal .stop-diff-modal-body {
    font-size: 18px;
  }

  .stop-diff-modal .stop-diff-modal-actions {
    gap: 10px;
  }

  .stop-diff-modal .stop-diff-modal-actions .common-btn,
  .stop-diff-modal .stop-diff-modal-actions .common-btn2 {
    width: 100%;
    font-size: 20px;
  }
}
