/*!**********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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/space-invaders/space-invaders.module.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************/
.space-invaders_wrapper__8BmFU {
  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;
}

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

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

.space-invaders_scoreBlock__rbqYz {
  display: flex;
  gap: 16px;
}

.space-invaders_statItem__nyfoD {
  text-align: center;
}

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

.space-invaders_statValue__jTlWf {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4ade80;
}

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

.space-invaders_lifeIcon__KeP_V {
  width: 14px;
  height: 8px;
  background: #4ade80;
  border-radius: 2px;
  opacity: 0.9;
}

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

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

/* ── Controls (left/right + fire) ── */
.space-invaders_controls__ltN8u {
  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;
}

.space-invaders_controlBtn__InVSa {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
  color: rgba(74, 222, 128, 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;
}

.space-invaders_controlBtn__InVSa:active {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.space-invaders_controlSpacer__x06pu {
  flex: 1;
}

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

/* ── Overlay ── */
.space-invaders_overlay__0Oagt {
  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: space-invaders_fadeIn__samiw 0.25s ease-out;
}

@keyframes space-invaders_fadeIn__samiw {
  from { opacity: 0; }
  to { opacity: 1; }
}

.space-invaders_overlayTitle__BeQ1v {
  font-size: 2rem;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.space-invaders_overlayBtn___zT_b:hover {
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* ── Level popup ── */
.space-invaders_levelPopup__S0e3H {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  animation: space-invaders_popIn__LzoEs 1.2s ease-out forwards;
}

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

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

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

  .space-invaders_controls__ltN8u {
    gap: 6px;
  }
}

