/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./app/games/jigsaw/jigsaw.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.jigsaw_wrapper__MyKF_ {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #2c3e50;
  overflow: hidden;
}

/* Header */
.jigsaw_header__P_sll {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 8px;
  z-index: 100;
}

.jigsaw_titleBlock__RW_jy h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.2rem;
  color: #e74c3c;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.jigsaw_stats__B0ap0 {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
}

.jigsaw_stat__86_QM {
  display: flex;
  align-items: center;
  gap: 4px;
}

.jigsaw_statLabel__2E6ls {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.jigsaw_buttons__OnClg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.jigsaw_btn__1R3a9 {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.jigsaw_btn__1R3a9:hover,
.jigsaw_btn__1R3a9:active {
  background: rgba(255, 255, 255, 0.25);
}

.jigsaw_btnActive___jX7B {
  background: rgba(231, 76, 60, 0.5);
  border-color: #e74c3c;
}

/* Game container */
.jigsaw_gameContainer__AppQn {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Puzzle area */
.jigsaw_puzzleArea__pXPiC {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at center, #34495e 0%, #2c3e50 100%);
  touch-action: none;
  cursor: grab;
}

.jigsaw_puzzleArea__pXPiC:active {
  cursor: grabbing;
}

.jigsaw_canvas__haQXJ {
  position: absolute;
  top: 0;
  left: 0;
}

/* Piece tray */
.jigsaw_tray__VSGmf {
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  touch-action: pan-x;
}

.jigsaw_trayInner__PkrGs {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 8px;
  touch-action: pan-x;
}

.jigsaw_trayLabel__URp1H {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Reference image overlay */
.jigsaw_referenceOverlay__vrrWM {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 60%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  pointer-events: none;
  z-index: 50;
}

/* Zoom indicator */
.jigsaw_zoomIndicator__vV73z {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  pointer-events: none;
}

/* Progress bar */
.jigsaw_progressBar__nAKYX {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.jigsaw_progressFill__qc9xu {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  transition: width 0.3s ease;
}

/* Image selection modal */
.jigsaw_overlay__csAGD {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.jigsaw_modal__qkvfx {
  background: #34495e;
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.jigsaw_modal__qkvfx h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: #e74c3c;
  margin-bottom: 16px;
  text-align: center;
}

.jigsaw_imageGrid__nBjI_ {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.jigsaw_imageOption__MrtxA {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.jigsaw_imageOption__MrtxA:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.jigsaw_imageOptionSelected___rwbK {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px #e74c3c;
}

.jigsaw_imageOption__MrtxA img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.jigsaw_difficultySection__UVKMJ {
  margin-bottom: 20px;
}

.jigsaw_difficultySection__UVKMJ h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-align: center;
}

.jigsaw_difficultyOptions___xsyL {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.jigsaw_difficultyBtn__3bvr1 {
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.jigsaw_difficultyBtn__3bvr1:hover {
  background: rgba(255, 255, 255, 0.2);
}

.jigsaw_difficultyBtnActive__KmhFI {
  background: #e74c3c;
  border-color: #e74c3c;
}

.jigsaw_startBtn__lTjgF {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.jigsaw_startBtn__lTjgF:hover {
  transform: scale(1.02);
}

.jigsaw_startBtn__lTjgF:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Win modal */
.jigsaw_winModal__Ih4iD {
  text-align: center;
}

.jigsaw_winModal__Ih4iD h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.jigsaw_winStats__1HkYa {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.jigsaw_winStat__ecGdf {
  text-align: center;
}

.jigsaw_winStatValue__OzanB {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.jigsaw_winStatLabel__aYHxE {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Loading */
.jigsaw_loading__pjaXy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.jigsaw_spinner__q9ial {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #e74c3c;
  border-radius: 50%;
  animation: jigsaw_spin__m9gom 1s linear infinite;
}

@keyframes jigsaw_spin__m9gom {
  to { transform: rotate(360deg); }
}

/* Touch hints */
.jigsaw_touchHints__HzEk2 {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  pointer-events: none;
}

.jigsaw_touchHint__YRPk9 {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .jigsaw_header__P_sll {
    padding: 6px 8px;
  }

  .jigsaw_titleBlock__RW_jy h1 {
    font-size: 1rem;
  }

  .jigsaw_stats__B0ap0 {
    gap: 10px;
    font-size: 0.7rem;
  }

  .jigsaw_btn__1R3a9 {
    padding: 5px 8px;
    font-size: 0.65rem;
  }

  .jigsaw_tray__VSGmf {
    height: 100px;
  }

  .jigsaw_imageGrid__nBjI_ {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .jigsaw_difficultyBtn__3bvr1 {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

