/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/galaga/galaga.module.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
.galaga_wrapper__OXCGp {
  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;
}

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

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

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

.galaga_statItem__ATJiN {
  text-align: center;
}

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

.galaga_statValue__mwpwB {
  font-size: 1.3rem;
  font-weight: 800;
  color: #60a5fa;
}

.galaga_lives__7M6TN {
  display: flex;
  gap: 4px;
  align-items: center;
}

.galaga_lifeIcon__QPjJb {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 10px solid #60a5fa;
  opacity: 0.9;
}

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

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

/* ── Controls ── */
.galaga_controls__R5P1X {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin: 6px auto 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 0 16px;
}

.galaga_controlBtn__O1i6t {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.06);
  color: rgba(96, 165, 250, 0.5);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.galaga_controlBtn__O1i6t:active {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

.galaga_controlSpacer__dTN3c {
  flex: 1;
}

.galaga_fireBtn__x_tNj {
  width: 64px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

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

.galaga_overlayTitle__s019e {
  font-size: 2.2rem;
  font-weight: 900;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.galaga_overlayBtn__U_iey {
  margin-top: 8px;
  padding: 12px 32px;
  border-radius: 10px;
  border: 2px solid #60a5fa;
  background: transparent;
  color: #60a5fa;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.galaga_overlayBtn__U_iey:hover {
  background: rgba(96, 165, 250, 0.1);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

/* ── Stage popup ── */
.galaga_stagePopup__ND5XM {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 900;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  animation: galaga_popIn__dE9ru 1.2s ease-out forwards;
}

@keyframes galaga_popIn__dE9ru {
  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) {
  .galaga_statValue__mwpwB {
    font-size: 1.1rem;
  }

  .galaga_controlBtn__O1i6t {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .galaga_fireBtn__x_tNj {
    width: 56px;
    font-size: 0.65rem;
  }

  .galaga_controls__R5P1X {
    gap: 6px;
  }
}

