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

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

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

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

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

.snake_scores__qfDhu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.snake_scoreRow__8ZYL_ {
  display: flex;
  align-items: center;
  gap: 6px;
}

.snake_scoreLabel__Gy_qR {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
}

.snake_scoreValue__fqeyg {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  min-width: 50px;
  text-align: right;
}

.snake_scoreBest__1t0n_ {
  color: #f0a000;
}

/* Board wrapper */
.snake_boardWrapper__nlAAY {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  border: 3px solid #333;
  border-radius: 4px;
  background: #1a1a2e;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
}

.snake_board__xTdVp {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 1px;
  width: 100%;
  height: 100%;
  background: #0f0f23;
  touch-action: none;
}

.snake_cell__BV4pZ {
  background: #1a1a2e;
  border-radius: 2px;
}

/* Snake */
.snake_snakeHead__AXEum {
  background: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
  border-radius: 3px;
}

.snake_snakeBody__uPU3_ {
  background: #22c55e;
  border-radius: 2px;
}

.snake_snakeTail__FAnuL {
  background: #16a34a;
  border-radius: 2px;
}

/* Food */
.snake_food__wPZ__ {
  background: #ef4444;
  border-radius: 50%;
  animation: snake_pulse__a4cAe 1s ease-in-out infinite;
}

@keyframes snake_pulse__a4cAe {
  0%, 100% { transform: scale(0.85); opacity: 1; }
  50% { transform: scale(1); opacity: 0.9; }
}

/* Pause overlay */
.snake_pauseOverlay__BoXYN {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

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

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

.snake_overlayStats__rRg3x {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
}

.snake_overlayStats__rRg3x strong {
  color: white;
  font-weight: 800;
}

.snake_newRecord__5a_cT {
  color: #ffd700 !important;
  font-weight: 700;
}

.snake_overlayBtn__5jY4J {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.snake_overlayBtn__5jY4J:hover {
  opacity: 0.85;
}

/* Start screen */
.snake_startScreen__Imbz1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  z-index: 10;
}

.snake_startScreen__Imbz1 p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  max-width: 280px;
}

.snake_startBtn__JJFPZ {
  background: #22c55e;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.snake_startBtn__JJFPZ:hover {
  opacity: 0.85;
}

/* Mobile hint */
.snake_mobileHint__ON4if {
  display: none;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 8px;
}

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

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

  .snake_scoreValue__fqeyg {
    font-size: 0.95rem;
  }

  .snake_mobileHint__ON4if {
    display: block;
  }
}

