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

.minesweeper_container__rscbr {
  width: 100%;
  max-width: 600px;
}

/* Header */
.minesweeper_header__XF7Ci {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 8px;
}

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

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

/* Difficulty buttons */
.minesweeper_difficultyRow__Ya1bN {
  display: flex;
  gap: 6px;
  align-items: center;
}

.minesweeper_diffBtn__qaC3u {
  background: #e0e0e0;
  border: 2px solid transparent;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.minesweeper_diffBtn__qaC3u:hover {
  background: #d0d0d0;
}

.minesweeper_diffBtnActive__Gm0NW {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Info bar */
.minesweeper_infoBar__boxVa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 0.75rem;
  color: white;
  font-family: 'Courier New', monospace;
}

.minesweeper_mineCount__ZswTZ,
.minesweeper_timer__WVRs4 {
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  color: #ff4444;
}

.minesweeper_timer__WVRs4 {
  text-align: right;
}

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

.minesweeper_faceBtn__OdfTx {
  background: #e0e0e0;
  border: 2px solid #999;
  border-radius: 6px;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.minesweeper_faceBtn__OdfTx:active {
  transform: scale(0.9);
}

.minesweeper_flagToggle__pJbjP {
  background: #e0e0e0;
  border: 2px solid #999;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}

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

/* Grid wrapper for horizontal scroll on expert */
.minesweeper_gridWrapper__kGQzX {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}

/* Grid */
.minesweeper_grid__SjJBz {
  display: inline-grid;
  gap: 0;
  border: 3px solid #999;
  border-top-color: #7b7b7b;
  border-left-color: #7b7b7b;
  border-right-color: #fff;
  border-bottom-color: #fff;
  background: #bdbdbd;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

/* Cell */
.minesweeper_cell__gCMKz {
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(12px, 3.5vw, 16px);
  cursor: pointer;
  border: 2px solid;
  border-top-color: #fff;
  border-left-color: #fff;
  border-right-color: #7b7b7b;
  border-bottom-color: #7b7b7b;
  background: #c0c0c0;
  -webkit-tap-highlight-color: transparent;
  transition: none;
}

.minesweeper_cell__gCMKz:active:not(.minesweeper_cellRevealed__b2BQ1):not(.minesweeper_cellFlagged__YXsaJ) {
  border-color: #999;
  background: #b0b0b0;
}

.minesweeper_cellRevealed__b2BQ1 {
  border: 1px solid #999;
  background: #d8d8d8;
  cursor: default;
}

.minesweeper_cellFlagged__YXsaJ {
  font-size: clamp(14px, 4vw, 20px);
}

.minesweeper_cellMine__Fd8oc {
  font-size: clamp(14px, 4vw, 20px);
}

.minesweeper_cellExploded__rekzL {
  background: #ff4444;
}

.minesweeper_cellWrongFlag__T9IP6 {
  font-size: clamp(12px, 3.5vw, 16px);
}

/* Number colors */
.minesweeper_num1__jrNhu { color: #0000ff; }
.minesweeper_num2__eZBHC { color: #008000; }
.minesweeper_num3__SuJhs { color: #ff0000; }
.minesweeper_num4__s75sy { color: #000080; }
.minesweeper_num5__gp2sc { color: #800000; }
.minesweeper_num6__nDaiQ { color: #008080; }
.minesweeper_num7__VRMm2 { color: #000000; }
.minesweeper_num8__yP5fV { color: #808080; }

/* Game over overlay */
.minesweeper_overlay__7s3_o {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 100;
}

.minesweeper_overlayText__Z4X3d {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.minesweeper_overlayWin__FZ9oT {
  color: #ffd700;
}

.minesweeper_overlayStats___S2RQ {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-align: center;
}

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

.minesweeper_btn__0Vd_G:hover {
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 480px) {
  .minesweeper_wrapper__Lc9p1 {
    padding: 0.5rem;
  }

  .minesweeper_titleBlock__5jLYL h1 {
    font-size: 1.6rem;
  }

  .minesweeper_header__XF7Ci {
    margin-bottom: 0.5rem;
  }

  .minesweeper_infoBar__boxVa {
    padding: 6px 10px;
  }

  .minesweeper_mineCount__ZswTZ,
  .minesweeper_timer__WVRs4 {
    font-size: 1.1rem;
    min-width: 40px;
  }

  .minesweeper_faceBtn__OdfTx {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

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

