/*!**********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/connect4/connect4.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************/
.connect4_wrapper__77CIR {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

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

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

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

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

/* Turn indicator */
.connect4_turnIndicator__YpkDV {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.connect4_turnDot__bWXn9 {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.connect4_turnText__Przyi {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Board */
.connect4_boardContainer__C3Hs2 {
  position: relative;
  padding: 8px;
  background: linear-gradient(145deg, #2980b9, #1a5276);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.connect4_board__qPzXL {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 8px;
  background: linear-gradient(145deg, #2471a3, #1a5276);
  border-radius: 8px;
}

.connect4_column__8jPwB {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.1s;
}

.connect4_column__8jPwB:hover:not(.connect4_columnDisabled__iCdo6) {
  transform: translateY(-2px);
}

.connect4_columnDisabled__iCdo6 {
  cursor: default;
}

.connect4_cell__MiXSo {
  width: clamp(38px, 10vw, 55px);
  height: clamp(38px, 10vw, 55px);
  border-radius: 50%;
  background: linear-gradient(145deg, #1a3a52, #0f2537);
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 -2px 4px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Pieces */
.connect4_piece__sJ_YV {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  box-shadow:
    inset -3px -3px 8px rgba(0, 0, 0, 0.3),
    inset 3px 3px 8px rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

/* Drop animation */
@keyframes connect4_dropPiece__nKvwb {
  0% {
    transform: translateY(-400px);
  }
  60% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-15px);
  }
  90% {
    transform: translateY(0);
  }
  95% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.connect4_pieceDropping__iKJrh {
  animation: connect4_dropPiece__nKvwb 0.5s ease-out forwards;
}

/* Winning pieces */
.connect4_pieceWinning__uXjg5 {
  animation: connect4_winPulse__QtZpd 0.6s ease-in-out infinite alternate;
}

@keyframes connect4_winPulse__QtZpd {
  0% {
    box-shadow:
      inset -3px -3px 8px rgba(0, 0, 0, 0.3),
      inset 3px 3px 8px rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow:
      inset -3px -3px 8px rgba(0, 0, 0, 0.3),
      inset 3px 3px 8px rgba(255, 255, 255, 0.2),
      0 0 0 4px rgba(255, 255, 255, 0.6);
  }
}

/* Column preview */
.connect4_columnPreview__L0u1F {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(32px, 8vw, 45px);
  height: clamp(32px, 8vw, 45px);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.connect4_column__8jPwB:hover .connect4_columnPreview__L0u1F {
  opacity: 0.7;
}

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

.connect4_difficultyBtn__cuLO6 {
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  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;
}

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

.connect4_difficultyBtnActive__JQlDM {
  background: #f39c12;
  border-color: #f39c12;
  color: #1a1a2e;
}

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

.connect4_controlBtn__mBvy5 {
  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.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;
}

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

.connect4_controlBtn__mBvy5:disabled {
  opacity: 0.4;
  cursor: default;
}

.connect4_controlIcon__FxBZu {
  font-size: 1.3rem;
}

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

/* Thinking indicator */
.connect4_thinking__yXXzp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(241, 196, 15, 0.2);
  border-radius: 20px;
  color: #f1c40f;
  font-size: 0.85rem;
  font-weight: 600;
}

.connect4_thinkingDots__BYmJd::after {
  content: '';
  animation: connect4_dots__s_AUq 1.5s infinite;
}

@keyframes connect4_dots__s_AUq {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Overlays */
.connect4_overlay__WzLeQ {
  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;
}

.connect4_modal__Nfpux {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid rgba(243, 156, 18, 0.4);
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  width: 90%;
  text-align: center;
}

.connect4_modal__Nfpux h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.connect4_modalWin___uGmL h2 {
  color: #2ecc71;
}

.connect4_modalLose__zvgKr h2 {
  color: #e74c3c;
}

.connect4_modalDraw__5RzVs h2 {
  color: #9b59b6;
}

.connect4_modal__Nfpux p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.connect4_winnerPiece__aBB_W {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow:
    inset -4px -4px 12px rgba(0, 0, 0, 0.3),
    inset 4px 4px 12px rgba(255, 255, 255, 0.2),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

.connect4_btn__1f_za {
  background: linear-gradient(145deg, #f39c12, #d68910);
  color: #1a1a2e;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s;
}

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

/* Score display */
.connect4_scoreBoard__BHtp4 {
  display: flex;
  gap: 24px;
  margin-bottom: 1rem;
}

.connect4_scoreItem__b0k60 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.connect4_scorePiece___aqmv {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3);
}

.connect4_scoreValue__ZpUtu {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}

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

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

  .connect4_boardContainer__C3Hs2 {
    padding: 6px;
  }

  .connect4_board__qPzXL {
    gap: 4px;
    padding: 6px;
  }

  .connect4_column__8jPwB {
    gap: 4px;
  }

  .connect4_difficultyBtn__cuLO6 {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

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

  .connect4_controlIcon__FxBZu {
    font-size: 1.1rem;
  }

  .connect4_controlLabel__17xQF {
    font-size: 0.5rem;
  }

  .connect4_scoreBoard__BHtp4 {
    gap: 16px;
  }

  .connect4_scoreItem__b0k60 {
    padding: 6px 12px;
  }
}

