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

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

/* Header */
.tictactoe_header__fiB_K {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.tictactoe_titleBlock__4JuzP h1 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.8rem;
  color: #00d9ff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.tictactoe_subtitle__hu0a1 {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* Score board */
.tictactoe_scoreBoard__KE6rM {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.tictactoe_scoreItem__NdleY {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-width: 80px;
}

.tictactoe_scoreSymbol__KmU_y {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.tictactoe_scoreX__XLX0y {
  color: #00d9ff;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.tictactoe_scoreO__YKq_B {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.tictactoe_scoreDraw__3a0a3 {
  color: #9b59b6;
  font-size: 1rem;
}

.tictactoe_scoreValue__FSbNG {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-top: 4px;
}

.tictactoe_scoreLabel__QefPZ {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Turn indicator */
.tictactoe_turnIndicator__fwQNq {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  margin-bottom: 1.5rem;
}

.tictactoe_turnSymbol__kdHE2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.tictactoe_turnText__HPHVn {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Thinking indicator */
.tictactoe_thinking__jSnZn {
  color: #ff6b6b;
}

.tictactoe_thinkingDots__gpyYR::after {
  content: '';
  animation: tictactoe_dots__0k_U0 1.5s infinite;
}

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

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

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

.tictactoe_difficultyBtn__9iYIB:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.tictactoe_difficultyBtnActive__21GCv {
  background: #00d9ff;
  border-color: #00d9ff;
  color: #1a1a2e;
}

/* Board */
.tictactoe_board__ozZjy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tictactoe_cell__Q7sXM {
  width: clamp(80px, 22vw, 100px);
  height: clamp(80px, 22vw, 100px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.tictactoe_cell__Q7sXM:hover:not(.tictactoe_cellDisabled___Fz4A) {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.tictactoe_cellDisabled___Fz4A {
  cursor: default;
}

/* X and O symbols */
.tictactoe_symbol__BIRXs {
  font-size: clamp(40px, 12vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.tictactoe_symbolX___QIam {
  color: #00d9ff;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
  animation: tictactoe_popIn__WOJzr 0.3s ease-out;
}

.tictactoe_symbolO__oKKhS {
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  animation: tictactoe_popIn__WOJzr 0.3s ease-out;
}

@keyframes tictactoe_popIn__WOJzr {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Winning cells */
.tictactoe_cellWinning__PxOwD {
  animation: tictactoe_winPulse__fEL00 0.6s ease-in-out infinite alternate;
}

@keyframes tictactoe_winPulse__fEL00 {
  0% {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }
  100% {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* Winning line */
.tictactoe_winLine__ObEdr {
  position: absolute;
  background: linear-gradient(90deg, #00d9ff, #ff6b6b);
  border-radius: 4px;
  z-index: 10;
  animation: tictactoe_drawLine__4IRUq 0.4s ease-out forwards;
}

@keyframes tictactoe_drawLine__4IRUq {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Controls */
.tictactoe_controls__pT_m_ {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.tictactoe_controlBtn__VJqEH {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tictactoe_controlBtn__VJqEH:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.tictactoe_controlIcon__4sjb_ {
  font-size: 1.1rem;
}

/* Game over overlay */
.tictactoe_overlay__JmTkS {
  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;
  animation: tictactoe_fadeIn__jBKKV 0.3s ease-out;
}

@keyframes tictactoe_fadeIn__jBKKV {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tictactoe_modal__6_f00 {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid rgba(0, 217, 255, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  animation: tictactoe_slideUp__JJ3sk 0.3s ease-out;
}

@keyframes tictactoe_slideUp__JJ3sk {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tictactoe_modalWin__uS4dm {
  border-color: rgba(0, 217, 255, 0.5);
}

.tictactoe_modalLose__2YmiK {
  border-color: rgba(255, 107, 107, 0.5);
}

.tictactoe_modalDraw__GT3Fw {
  border-color: rgba(155, 89, 182, 0.5);
}

.tictactoe_modalSymbol__IH2IA {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.tictactoe_modal__6_f00 h2 {
  font-family: var(--font-raleway, sans-serif);
  font-weight: 900;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 8px;
}

.tictactoe_modalWin__uS4dm h2 {
  color: #00d9ff;
}

.tictactoe_modalLose__2YmiK h2 {
  color: #ff6b6b;
}

.tictactoe_modalDraw__GT3Fw h2 {
  color: #9b59b6;
}

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

.tictactoe_btn__a_WSX {
  background: linear-gradient(145deg, #00d9ff, #0099cc);
  color: #1a1a2e;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tictactoe_btn__a_WSX:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

/* Responsive */
@media (max-width: 400px) {
  .tictactoe_wrapper__SNjY4 {
    padding: 0.5rem;
  }

  .tictactoe_titleBlock__4JuzP h1 {
    font-size: 1.5rem;
  }

  .tictactoe_scoreBoard__KE6rM {
    gap: 10px;
  }

  .tictactoe_scoreItem__NdleY {
    padding: 8px 16px;
    min-width: 65px;
  }

  .tictactoe_scoreSymbol__KmU_y {
    font-size: 1.2rem;
  }

  .tictactoe_scoreValue__FSbNG {
    font-size: 1.4rem;
  }

  .tictactoe_board__ozZjy {
    gap: 8px;
    padding: 12px;
  }

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

  .tictactoe_controlBtn__VJqEH {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}

