/* SPOT THE DIFFERENCE - GAME STYLES */

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.image-panel {
  background: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.panel-title {
  font-family: var(--font-headings);
  font-size: var(--font-size-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  text-align: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: crosshair;
}

.image-wrapper canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Difference Markers */
.difference-marker {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 3px solid var(--success-color);
  border-radius: var(--radius-full);
  background: rgba(76, 175, 80, 0.2);
  animation: markerPulse 1s infinite;
  pointer-events: none;
}

@keyframes markerPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.difference-found {
  background: var(--success-color);
  animation: foundAnimation 0.5s;
}

@keyframes foundAnimation {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Hint highlight */
.hint-highlight {
  position: absolute;
  border: 4px dashed var(--warning-color);
  border-radius: var(--radius-md);
  animation: hintBlink 1s infinite;
}

@keyframes hintBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Game Controls */
.game-controls {
  background: var(--bg-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.timer-display,
.hints-remaining {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.timer-display.urgent {
  color: var(--error-color);
  animation: pulse 1s infinite;
}

.timer-icon,
.hint-icon {
  font-size: var(--font-size-2xl);
}

/* Level Selection */
.level-card {
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-normal);
}

.level-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.level-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
}

/* Game Actions Bar */
.game-actions-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .image-wrapper {
    aspect-ratio: 1;
  }

  .difference-marker {
    width: 40px;
    height: 40px;
  }
}
