/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/match3/match3.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.match3_wrapper__ODyXP {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: linear-gradient(145deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%);
  overflow: hidden;
}

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

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

.match3_titleBlock__v76Q1 h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

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

/* Stats */
.match3_stats__8KLDj {
  display: flex;
  gap: 16px;
}

.match3_stat__8Uskw {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.match3_statValue__b2Enm {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd93d;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.5);
}

/* Score bar */
.match3_scoreBar__pOl9P {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.match3_scoreSection__M3OsY {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.match3_scoreValue__jins8 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffd93d;
  text-shadow: 0 0 15px rgba(255, 217, 61, 0.5);
}

.match3_comboDisplay__Baa3l {
  padding: 4px 12px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a0a2e;
  animation: match3_comboPulse__0yC_x 0.3s ease-out;
}

@keyframes match3_comboPulse__0yC_x {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Board */
.match3_boardContainer__npFeo {
  position: relative;
  padding: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.match3_board__OPBiN {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.match3_cell__dnPtD {
  width: clamp(36px, 9vw, 48px);
  height: clamp(36px, 9vw, 48px);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.match3_cell__dnPtD:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Gems */
.match3_gem__IsqdZ {
  width: 85%;
  height: 85%;
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 6vw, 28px);
  cursor: pointer;
  transition: transform 0.15s;
  position: relative;
  box-shadow:
    inset -3px -3px 6px rgba(0, 0, 0, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.match3_gem__IsqdZ:hover {
  transform: scale(1.1);
}

.match3_gemRed__FY_K2 {
  background: linear-gradient(145deg, #ff6b6b, #c0392b);
}

.match3_gemOrange__4wVIW {
  background: linear-gradient(145deg, #f39c12, #d68910);
}

.match3_gemYellow__lXPl0 {
  background: linear-gradient(145deg, #ffd93d, #f1c40f);
}

.match3_gemGreen__j_58N {
  background: linear-gradient(145deg, #6bcb77, #27ae60);
}

.match3_gemBlue__k873g {
  background: linear-gradient(145deg, #4d96ff, #2980b9);
}

.match3_gemPurple__KOAU8 {
  background: linear-gradient(145deg, #9b59b6, #8e44ad);
}

.match3_gemPink__XtGJe {
  background: linear-gradient(145deg, #fd79a8, #e84393);
}

/* Selected gem */
.match3_gemSelected__6Hket {
  animation: match3_selectedPulse__139oC 0.5s ease-in-out infinite alternate;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.5),
    inset -3px -3px 6px rgba(0, 0, 0, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.2);
  z-index: 10;
}

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

/* Matching animation */
.match3_gemMatching__Mbtjb {
  animation: match3_matchPop__32JJe 0.3s ease-out forwards;
}

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

/* Falling animation */
.match3_gemFalling__SjFlw {
  animation: match3_fallDown__3TriS 0.3s ease-in forwards;
}

@keyframes match3_fallDown__3TriS {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Swap animation */
.match3_gemSwapping__TX2hD {
  transition: transform 0.2s ease-in-out;
}

/* Invalid swap shake */
.match3_gemInvalid__kjoTs {
  animation: match3_shake__3kUme 0.3s ease-in-out;
}

@keyframes match3_shake__3kUme {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Hint animation */
.match3_gemHint__c_LUX {
  animation: match3_hintPulse__ysI_a 0.8s ease-in-out infinite;
}

@keyframes match3_hintPulse__ysI_a {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 217, 61, 0),
      inset -3px -3px 6px rgba(0, 0, 0, 0.3),
      inset 3px 3px 6px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(255, 217, 61, 0.5),
      inset -3px -3px 6px rgba(0, 0, 0, 0.3),
      inset 3px 3px 6px rgba(255, 255, 255, 0.2);
  }
}

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

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

.match3_controlBtn__k07GA:active {
  background: rgba(255, 255, 255, 0.1);
}

.match3_controlIcon__iDFsT {
  font-size: 1.2rem;
}

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

/* Score popup */
.match3_scorePopup__PzrQS {
  position: absolute;
  font-size: 1rem;
  font-weight: 800;
  color: #ffd93d;
  text-shadow: 0 0 10px rgba(255, 217, 61, 0.8);
  pointer-events: none;
  animation: match3_scoreFloat__oCmyM 0.8s ease-out forwards;
  z-index: 100;
}

@keyframes match3_scoreFloat__oCmyM {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(1.5);
  }
}

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

.match3_modal__GfV_J {
  background: linear-gradient(145deg, #2d1b4e, #1a0a2e);
  border: 2px solid rgba(255, 217, 61, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.match3_modal__GfV_J h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

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

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

.match3_modalStat__O8Plk {
  text-align: center;
}

.match3_modalStatValue__r330V {
  font-size: 2rem;
  font-weight: 800;
  color: #ffd93d;
}

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

.match3_btn__2_yNp {
  background: linear-gradient(145deg, #ffd93d, #f1c40f);
  color: #1a0a2e;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s;
}

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

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

  .match3_titleBlock__v76Q1 h1 {
    font-size: 1.2rem;
  }

  .match3_boardContainer__npFeo {
    padding: 6px;
  }

  .match3_board__OPBiN {
    gap: 3px;
    padding: 3px;
  }

  .match3_cell__dnPtD {
    border-radius: 6px;
  }

  .match3_gem__IsqdZ {
    border-radius: 15%;
  }

  .match3_scoreBar__pOl9P {
    padding: 8px 12px;
  }

  .match3_scoreValue__jins8 {
    font-size: 1.2rem;
  }

  .match3_controlBtn__k07GA {
    padding: 8px 12px;
    min-width: 60px;
  }

  .match3_controlIcon__iDFsT {
    font-size: 1rem;
  }

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

