.odd-one-out-page {
  display: flex;
}
.odd-one-out-page .main {
  width: 100%;
  max-width: 768px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.odd-one-out-page .main h1 {
  font-size: 30px;
  color: var(--mainColor);
  margin: 0;
  padding: 25px 0 25px 25px;
}
.odd-one-out-page .main .game-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 0 20px;
}
.odd-one-out-page .main .game-content .odd-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  line-height: 0;
  cursor: crosshair;
}
.odd-one-out-page .main .game-content .odd-image.locked {
  pointer-events: none;
}
.odd-one-out-page .main .game-content img {
  cursor: pointer;
  width: 100%;
  display: block;
  border-radius: 12px;
}
.odd-one-out-page .main .game-content .marker-layer,
.odd-one-out-page .main .answer-image .marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.odd-one-out-page .odd-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);
}
.odd-one-out-page .odd-marker.animate {
  animation: odd-marker-pop 0.2s ease-out;
}
.odd-one-out-page .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));
}
.odd-one-out-page .wrong-marker.animate {
  animation: odd-wrong-marker 1s ease forwards;
}
.odd-one-out-page .main .btn-wrap {
  display: flex;
  flex-flow: column;
  margin: 10px 0;
  align-items: center;
}
.odd-one-out-page .main .btn-wrap button {
  width: 100%;
  max-width: 500px;
  margin: 5px 0;
  font-weight: bold;
}
.odd-one-out-page .main .btn-wrap button:disabled {
  opacity: 0.7;
  cursor: default;
}
.odd-one-out-page .main .answer-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.25s ease,
    margin-top 0.25s ease;
  margin-top: 0;
}
.odd-one-out-page .main .answer-collapse.visible {
  opacity: 1;
  margin-top: 10px;
}
.odd-one-out-page .main .answer-content {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f6f9ff;
  border: 1px solid #dae2ff;
  border-radius: 16px;
  padding: 16px;
}
.odd-one-out-page .main .answer-head {
  font-size: 20px;
  font-weight: bold;
  color: var(--mainColor);
  margin-bottom: 12px;
}
.odd-one-out-page .main .answer-image {
  position: relative;
  width: 100%;
}
.odd-one-out-page .main .desc {
  padding: 20px 25px 30px;
  color: #333;
}

.odd-one-out-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.odd-one-out-modal .odd-one-out-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.odd-one-out-modal .odd-one-out-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;
}
.odd-one-out-modal .odd-one-out-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;
}
.odd-one-out-modal .odd-one-out-modal-close:hover {
  background-color: #f2f4f7;
}
.odd-one-out-modal .odd-one-out-modal-panel h2 {
  margin: 0 0 14px;
  color: var(--mainColor);
  font-size: 30px;
  line-height: 1.2;
}
.odd-one-out-modal .odd-one-out-modal-body {
  color: #333;
  font-size: 20px;
}
.odd-one-out-modal .odd-one-out-modal-body p {
  margin: 0 0 10px;
}
.odd-one-out-modal .odd-one-out-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.odd-one-out-modal .odd-one-out-modal-actions .common-btn,
.odd-one-out-modal .odd-one-out-modal-actions .common-btn2 {
  min-width: 130px;
  font-size: 22px;
  padding: 12px 22px;
}
.odd-one-out-modal .odd-one-out-modal-actions a.common-btn,
.odd-one-out-modal .odd-one-out-modal-actions a.common-btn2 {
  display: inline-block;
  text-decoration: none;
}
.odd-one-out-modal .odd-one-out-modal-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.odd-one-out-modal .odd-one-out-modal-actions button:disabled:hover {
  background-color: #006aff;
}

@keyframes odd-marker-pop {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes odd-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) {
  .odd-one-out-page .main {
    margin-top: 0;
  }
  .odd-one-out-page .main h1 {
    font-size: 24px;
    padding: 10px;
  }

  .odd-one-out-page .main .game-content {
    padding: 12px 12px 18px;
  }

  .odd-one-out-page .wrong-marker {
    width: 36px;
    height: 36px;
  }

  .odd-one-out-page .main .btn-wrap {
    padding: 0 12px;
  }

  .odd-one-out-page .main .answer-content {
    margin: 0 12px;
  }

  .odd-one-out-page .main .desc {
    padding: 18px 18px 24px;
  }

  .odd-one-out-modal .odd-one-out-modal-panel {
    padding: 22px 18px 20px;
  }

  .odd-one-out-modal .odd-one-out-modal-panel h2 {
    font-size: 24px;
  }

  .odd-one-out-modal .odd-one-out-modal-close {
    top: 10px;
    right: 10px;
  }

  .odd-one-out-modal .odd-one-out-modal-body {
    font-size: 18px;
  }

  .odd-one-out-modal .odd-one-out-modal-actions .common-btn,
  .odd-one-out-modal .odd-one-out-modal-actions .common-btn2 {
    width: 100%;
    font-size: 20px;
  }
}
