/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/pacman/pacman.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.pacman_wrapper__2bW_9 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding: 0;
  color: white;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

.pacman_container__R0XK6 {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

/* ── HUD ── */
.pacman_hud__pJHgo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  z-index: 10;
  flex-shrink: 0;
}

.pacman_scoreBlock__4XRyj {
  display: flex;
  gap: 16px;
}

.pacman_statItem__bFxm3 {
  text-align: center;
}

.pacman_statLabel__wIVBo {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
}

.pacman_statValue__8xmwq {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f1c40f;
}

/* ── Canvas area ── */
.pacman_canvasArea__uloLQ {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  min-height: 0;
}

.pacman_canvas__S06NM {
  display: block;
  touch-action: none;
  cursor: default;
}

/* ── D-Pad ── */
.pacman_dpad__CmrBr {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  margin: 6px auto 10px;
}

.pacman_dpadBtn__W55zP {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.pacman_dpadBtn__W55zP:active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pacman_dpadUp__FrUNJ {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pacman_dpadDown__ka_Ii {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.pacman_dpadLeft__Vfel7 {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pacman_dpadRight__NJIk4 {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Overlay ── */
.pacman_overlay__Dg73D {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  gap: 12px;
  animation: pacman_fadeIn__3NA74 0.25s ease-out;
}

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

.pacman_overlayTitle__Ez0je {
  font-size: 2rem;
  font-weight: 900;
  color: #f1c40f;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
}

.pacman_overlaySubtitle__MUOmd {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.pacman_overlayBtn__MlejG {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #f1c40f, #f39c12);
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pacman_overlayBtn__MlejG:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(241, 196, 15, 0.4);
}

/* ── Level popup ── */
.pacman_levelPopup__Own8p {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 900;
  color: #f1c40f;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: pacman_levelPop__1vjCA 1.2s ease-out forwards;
  z-index: 20;
  white-space: nowrap;
}

@keyframes pacman_levelPop__1vjCA {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -60%) scale(1);
    opacity: 0;
  }
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .pacman_statValue__8xmwq {
    font-size: 1.1rem;
  }

  .pacman_dpad__CmrBr {
    width: 120px;
    height: 120px;
  }

  .pacman_dpadBtn__W55zP {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

