/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/2048/game2048.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.game2048_wrapper__PoDwm {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--background);
}

.game2048_container__v_LO1 {
  width: 100%;
  max-width: 500px;
}

/* Header */
.game2048_header__5LrQ0 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.game2048_titleBlock__rzk9m h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
}

.game2048_titleBlock__rzk9m p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.game2048_scores__sgFE_ {
  display: flex;
  gap: 8px;
}

.game2048_scoreBox__QIu_n {
  background: var(--primary);
  color: white;
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  min-width: 70px;
}

.game2048_scoreLabel__HS1D8 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.game2048_scoreValue__y2Jxz {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Buttons row */
.game2048_controls__6quNB {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.game2048_btn__14V6m {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.game2048_btn__14V6m:hover {
  opacity: 0.85;
}

/* Grid */
.game2048_grid__29LAK {
  background: #bbb3a9;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  aspect-ratio: 1;
  touch-action: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.game2048_cell__b0nKc {
  background: rgba(238, 228, 218, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  transition: transform 0.1s, background 0.15s;
  min-height: 0;
}

/* Tile colors — site theme palette */
.game2048_tile2__nR_ms {
  background: #eee4da;
  color: #776e65;
}

.game2048_tile4__yuneK {
  background: #ede0c8;
  color: #776e65;
}

.game2048_tile8__sDJQM {
  background: var(--primary-light);
  color: white;
}

.game2048_tile16__whwPZ {
  background: var(--primary);
  color: white;
}

.game2048_tile32__sIRKl {
  background: var(--primary-dark);
  color: white;
}

.game2048_tile64__0lMMS {
  background: #c41e3a;
  color: white;
}

.game2048_tile128__lnywX {
  background: var(--accent);
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.4rem);
}

.game2048_tile256__yFIp_ {
  background: #1a3a5c;
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.4rem);
}

.game2048_tile512__JxneN {
  background: #0f2a42;
  color: white;
  font-size: clamp(1.2rem, 5vw, 2.4rem);
}

.game2048_tile1024__v7uBS {
  background: #d4af37;
  color: white;
  font-size: clamp(1rem, 4vw, 2rem);
}

.game2048_tile2048__tnUrb {
  background: #ffd700;
  color: white;
  font-size: clamp(1rem, 4vw, 2rem);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game2048_tileSuper__AD_2Z {
  background: #1a1a1a;
  color: white;
  font-size: clamp(0.8rem, 3vw, 1.6rem);
}

.game2048_pop__pZAaf {
  animation: game2048_pop__pZAaf 0.15s ease-out;
}

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

/* Arrow buttons */
.game2048_arrows__UzHDg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
}

.game2048_arrowRow__Mt5gJ {
  display: flex;
  gap: 6px;
}

.game2048_arrowBtn__tyCbb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid #dee2e6;
  background: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.game2048_arrowBtn__tyCbb:hover {
  background: #f0f0f0;
}

.game2048_arrowBtn__tyCbb:active {
  transform: scale(0.92);
  background: #e8e8e8;
}

/* Game over overlay */
.game2048_gameOverOverlay__ju0ph {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(238, 228, 218, 0.7);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.game2048_gameOverText__hpmPP {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--text);
}

.game2048_gameOverWin__ebL6z {
  color: var(--primary);
}

/* Mobile */
@media (max-width: 480px) {
  .game2048_wrapper__PoDwm {
    padding: 0.5rem;
    justify-content: flex-start;
    padding-top: 1.5rem;
  }

  .game2048_titleBlock__rzk9m h1 {
    font-size: 2rem;
  }

  .game2048_scoreBox__QIu_n {
    padding: 6px 10px;
    min-width: 60px;
  }

  .game2048_scoreValue__y2Jxz {
    font-size: 1.1rem;
  }

  .game2048_grid__29LAK {
    padding: 8px;
    gap: 8px;
    border-radius: 10px;
  }

  .game2048_cell__b0nKc {
    border-radius: 6px;
  }

  .game2048_arrowBtn__tyCbb {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

