/*!************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/memory-match/memory.module.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************/
.memory_wrapper__MvCZE {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
}

.memory_container__EpgUs {
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.memory_header__vDE1b {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.memory_titleBlock__vOB8L h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.memory_subtitle__ZGW5m {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

/* Stats bar */
.memory_statsBar__VcOiN {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.memory_stat__Rt7gj {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.memory_statValue__KrTa7 {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.memory_statLabel__mR8DD {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Difficulty selector */
.memory_difficultySelector__q_UOF {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

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

.memory_difficultyBtn__knqkh:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.memory_difficultyBtnActive__u6VWc {
  background: white;
  border-color: white;
  color: #667eea;
}

/* Game board */
.memory_board___WsAa {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
}

.memory_boardEasy__zJ650 {
  grid-template-columns: repeat(4, 1fr);
}

.memory_boardMedium__4lrN0 {
  grid-template-columns: repeat(4, 1fr);
}

.memory_boardHard__etWuf {
  grid-template-columns: repeat(5, 1fr);
}

/* Card */
.memory_card__Ngj1o {
  aspect-ratio: 1;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.memory_cardInner__NdCoE {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.memory_cardFlipped__dhWps .memory_cardInner__NdCoE {
  transform: rotateY(180deg);
}

.memory_cardFace__C98ml {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.memory_cardBack__8pV95 {
  background: linear-gradient(145deg, #4facfe 0%, #00f2fe 100%);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.memory_cardBackPattern__5Qe1b {
  width: 70%;
  height: 70%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0px,
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  border-radius: 6px;
}

.memory_cardFront__6lEh8 {
  background: white;
  transform: rotateY(180deg);
  border: 3px solid #e0e0e0;
}

.memory_cardEmoji__nvv_k {
  font-size: clamp(28px, 10vw, 48px);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Matched card */
.memory_cardMatched__V3NVj .memory_cardFront__6lEh8 {
  background: linear-gradient(145deg, #a8edea 0%, #fed6e3 100%);
  border-color: #a8edea;
}

.memory_cardMatched__V3NVj {
  animation: memory_matchPulse__VF086 0.4s ease-out;
}

@keyframes memory_matchPulse__VF086 {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Shake animation for wrong match */
.memory_cardWrong__3m8Lj .memory_cardInner__NdCoE {
  animation: memory_shake__WX6BK 0.3s ease-in-out;
}

@keyframes memory_shake__WX6BK {
  0%, 100% { transform: rotateY(180deg) translateX(0); }
  25% { transform: rotateY(180deg) translateX(-5px); }
  75% { transform: rotateY(180deg) translateX(5px); }
}

/* Controls */
.memory_controls__6YTTc {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.memory_controlBtn__HpFoz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  flex: 1;
  min-width: 80px;
}

.memory_controlBtn__HpFoz:active {
  background: rgba(255, 255, 255, 0.2);
}

.memory_controlIcon__NQ95E {
  font-size: 1.3rem;
}

.memory_controlLabel__MsGOu {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Win overlay */
.memory_overlay__58MW9 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.memory_modal__px9oC {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.memory_modal__px9oC h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  color: white;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.memory_modal__px9oC p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.memory_modalStats__owTqx {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.memory_modalStat__umU53 {
  text-align: center;
}

.memory_modalStatValue__vXejX {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

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

.memory_newRecord__oSOsr {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 4px;
}

.memory_stars__DKFSC {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.memory_btn__Hg11P {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.memory_btn__Hg11P:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 500px) {
  .memory_wrapper__MvCZE {
    padding: 0.25rem;
  }

  .memory_titleBlock__vOB8L h1 {
    font-size: 1.3rem;
  }

  .memory_statsBar__VcOiN {
    gap: 12px;
    padding: 10px 16px;
  }

  .memory_statValue__KrTa7 {
    font-size: 1.2rem;
  }

  .memory_board___WsAa {
    padding: 10px;
    gap: 6px;
  }

  .memory_difficultyBtn__knqkh {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .memory_controlBtn__HpFoz {
    padding: 8px 12px;
    min-width: 70px;
  }

  .memory_controlIcon__NQ95E {
    font-size: 1.1rem;
  }

  .memory_controlLabel__MsGOu {
    font-size: 0.5rem;
  }
}

@media (max-width: 380px) {
  .memory_boardHard__etWuf {
    grid-template-columns: repeat(4, 1fr);
  }

  .memory_board___WsAa {
    gap: 4px;
    padding: 8px;
  }
}

