:root {
  --color-item-power-up:rgb(0, 255, 255);
  --color-item-one-up:#0f0;
  --color-item-bomb:#fb8dff;
  --color-item-points:rgb(246, 255, 0);
  --color-bullet-1:#ffbe4e;
  --color-bullet-11:#ff8d2a;
  --color-bullet-2: #73ffb9;
  --color-bullet-22: #00ff99;
  --color-bullet-3:#ffbe4e;
  --color-bullet-33:#ff8d2a;
  --color-bullet-4:#8fffeb;
  --color-bullet-44:#00ddff;
  --color-bullet-5:#f2ccff;
  --color-bullet-55:#bf00ff;
  --color-bullet-6:#b2ffdb;
  --color-bullet-66:#0ac6ff;
  --color-bullet-7:#90ccf4;
  --color-bullet-77:#4763ff;
  --sprite_zindex:4;
  --bullet_zindex:5;
  --time-level-1: 100s;
  --time-level-2: 85s;
  --time-level-3: 100s;
  --time-level-4: 82s;
}
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
* {
  box-sizing: border-box;
}
@keyframes pulse-opacity {
  0% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes reactor-size {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.3); /* 11px ÷ 7px ≈ 1.57 */
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes reactor-size-inverse {
  0% {
    transform: scaleX(-1);
  }
  50% {
    transform: scaleX(-1.3); /* 11px ÷ 7px ≈ 1.57 */
  }
  100% {
    transform: scaleX(-1);
  }
}
@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
@keyframes explodePulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
    box-shadow: 0 0 10px 5px orange;
  }
  50% {
    transform: scale(2);
    box-shadow: 0 0 60px 30px yellow;
  }
  100% {
    transform: scale(3);
    opacity: 0;
    box-shadow: 0 0 100px 50px red;
  }
}

@keyframes flash {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes pulse {
  from {
    transform: scaleY(1);
    opacity: 1;
  }
  to {
    transform: scaleY(1.3);
    opacity: 0.7;
  }
}

@keyframes flicker {
  0% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  100% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

@keyframes bullet-move {
  0% { transform: translateX(0); }
  50% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes enemyHitFlash {
  0% { filter: brightness(2) drop-shadow(0 0 6px red); }
  100% { filter: none; }
}

@keyframes screenShake {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(5px, -5px); }
  50%  { transform: translate(-5px, 5px); }
  75%  { transform: translate(5px, 5px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes shake {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(3px, -3px); }
  50% { transform: translate(-3px, 3px); }
  75% { transform: translate(3px, 3px); }
  100% { transform: translate(0px, 0px); }
}

@keyframes bombGlow {
  from {
    transform: scale(1);
    box-shadow: 0 0 10px 5px rgba(0, 100, 255, 0.4);
  }
  to {
    transform: scale(1.2);
    box-shadow: 0 0 30px 15px rgba(0, 150, 255, 0.9);
  }
}

@keyframes fadeTrail {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    transform: translate(-50%, -80%) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -120%) scale(0.9);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0% {
    text-shadow:
      0 0 5px #ff0000,
      0 0 10px #ff0000,
      0 0 20px #ff3333,
      0 0 40px #ff6666;
    transform: scale(1);
  }
  50% {
    text-shadow:
      0 0 10px #ff6666,
      0 0 20px #ff3333,
      0 0 30px #ff0000,
      0 0 60px #ff0000;
    transform: scale(1.05);
  }
  100% {
    text-shadow:
      0 0 5px #ff0000,
      0 0 10px #ff0000,
      0 0 20px #ff3333,
      0 0 40px #ff6666;
    transform: scale(1);
  }
}

@keyframes pulseSize {
  0% {
    font-size: 1.4rem;
  }
  50% {
    font-size: 1.45rem;
  }
  100% {
    font-size: 1.4rem;
  }
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }


html, body {
  overflow: hidden !important;
  position: relative;
  background-color: #000 !important;
}

#bomb-explosion-svg {
  pointer-events: none;
  position: absolute;
}

#display {
  width: 100vw;   /* 100% de la largeur viewport */
  height: 100vh;  /* 100% de la hauteur viewport */
  position: relative;
  border: 1px solid #000;
  overflow: hidden;
}

#player-1 {
  position: absolute; 
  top: 0px;
  left: 0px;
  z-index: var(--sprite_zindex);
  transition: opacity 0.2s linear; /* bonus visuel */
}

#title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

#stage-clear {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#stage-clear-continue {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.text-pink {
  color: #eb85ff;
}

.hover-green:hover {
  color: #00ff00 !important;
}
.hide-cursor {
  cursor: none;
}

.bezel {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
}
.bezel-snes {
  background-image: url('../images/bezel/snes.webp');
}
.bezel-game {
  background-image: url('../images/bezel/game.webp');
}

.bomb {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, rgb(255, 145, 0), #fff86c);
  border-radius: 50%;
  box-shadow: 0 0 20px 10px rgb(255, 224, 152);
  animation: bombGlow 0.6s infinite alternate;
  position: absolute;
  z-index: var(--sprite_zindex);
}


.bomb-trail {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255, 145, 0, 0.312);
  border-radius: 50%;
  pointer-events: none;
  animation: fadeTrail 0.6s forwards;
}

.shake-bomb {
  animation: shake 0.3s linear;
}

.shake {
  animation: screenShake 0.5s ease-in-out;
}

@keyframes scoreChange {
  0% {
    transform: scale(1);
    color: #63ffe2ea;
    text-shadow: 1px 1px 2px pink;
  }
  50% {
    transform: scale(1.8);
    color: #ff58ff;
    text-shadow: 0 0 8px #ff00ff;
  }
  100% {
    transform: scale(1);
    color: #63ffe2ea;
    text-shadow: 1px 1px 2px pink;
  }
}

@keyframes scoreArcade {
  0% {
    font-size: 30px;
    color: #63ffe2ea;
    text-shadow: 1px 1px 2px pink;
  }

  60% {
    font-size: 32px;
    color: #ff8eff;
    text-shadow: 0 0 10px #ff8eff, 0 0 20px #ff8eff;
  }

  100% {
    font-size: 30px;
    color: #63ffe2ea;
    text-shadow: 1px 1px 2px pink;
  }
}

@keyframes comboArcade {
  0% {
    font-size: 30px;
    color: #e3ff8e;
    text-shadow: 1px 1px 2px pink;
  }

  60% {
    font-size: 32px;
    color: #e3ff8e;
    text-shadow: 0 0 10px #ff1919, 0 0 20px #ff1919;
  }

  100% {
    font-size: 30px;
    color: #e3ff8e;
    text-shadow: 1px 1px 2px pink;
  }
}


.score {
  z-index: 10 !important;
  position: absolute;
  top: 0.5rem;
  text-align: center;
  width: 100%;
  color: #63ffe2ea;
  text-shadow: 1px 1px 2px pink;
  opacity: 0.8;
  font-size: 30px;
  /* transition: transform 0.2s ease; */
}

.score-animate {
  animation: scoreArcade 0.5s ease-in-out;
}

.combo-display {
  position: absolute;
  bottom: 0.5rem;
  text-align: center;
  width: 100%;
  z-index: 10 !important;

}

.combo-display-text {
  font-family: 'Orbitron', sans-serif;
  color: #63ffe2ea;
  text-shadow: 0 0 5px #e3ff8e, 0 0 10px #e3ff8e;
  font-size: 30px;
  opacity: 0.8;
}

.combo-animate {
  animation: comboArcade 0.5s ease-in-out;
}

.combo-effect {
  font-family: 'Orbitron', sans-serif;
  color: #ffa033;
  letter-spacing: 4px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff3333,
    0 0 40px #ff6666;

  display: inline-block;
  white-space: nowrap;
  font-size: 2.5rem;
  font-weight: bold;
  pointer-events: none;

  /* 🔥 Ajoute ça pour que le texte soit parfaitement centré */
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  position: absolute;
  line-height: 1;           /* 👈 important pour centrage vertical */
  text-align: center;
}

@keyframes comboFlash {
  0% {
    transform: scale(0.2) rotate(-20deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.4) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes comboBounce {
  0% { transform: translate(-50%, -50%) scale(1); }
  30% { transform: translate(-50%, -60%) scale(1.1); }
  60% { transform: translate(-50%, -48%) scale(0.95); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.fade-out-combo {
  animation: fadeZoomOut 1.5s ease forwards;
  transform-origin: center center; /* ✅ essentiel pour rester centré */
}

@keyframes fadeZoomOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}
.combo-title {
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  color: #ffa033;
  animation: pulseGlow 1s infinite ease-in-out, pulseSize 1s infinite ease-in-out;
}

.combo-title-position {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  text-align: center;
}

.ath {
    color: #63ffe2ea;
    text-shadow: 1px 1px 2px pink;
    font-size: 24px;
    opacity: 0.8;
}

.ath-zindex {
  z-index: 10 !important;
}

.game-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  text-align: center;
  color: #ffa033;
  letter-spacing: 4px;
  /* text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff3333,
    0 0 40px #ff6666; */
  animation: pulseGlow 1.5s infinite ease-in-out;
  margin-top: 40px;
}

.text-paypal {
  color: #ffa033;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer; 
  position: absolute; 
  bottom: 1rem; 
  left: 3rem;
}

.press-a {
  font-family: 'Orbitron', sans-serif;
}

.score-clear {
  font-family: 'Orbitron', sans-serif;
  color: #33ffe7;
  letter-spacing: 4px;
  text-shadow:
    0 0 5px #0d06e7,
    0 0 10px #0546be,
    0 0 20px #154bb7,
    0 0 40px #2121ce;
}

.font-1 {
  font-family: "Doto", "sans-serif";
  font-optical-sizing: auto;
  font-weight: 20px;
  font-style: "normal";
  font-variation-settings: "ROND" 0;
}

.font-2 {
  font-family: "Audiowide", "sans-serif";
  font-weight: 400;
  font-style: "normal";
}

.font-3 {
  font-family: "Nova Script", "system-ui";
  font-weight: 400;
  font-style: "normal";
}

.pulse {
  animation: pulse-opacity 1.9s infinite;
  /* background-color: rgba(0, 0, 0, 0.5); */
  color: #ffa033;
  border-radius: 5px;
  padding: 10px 5px;
  /* border: solid 1px yellow; */
}

.pulse-start {
  animation: pulse-opacity 0.3s infinite;
  /* background-color: rgba(0, 0, 0, 0.5); */
  color: rgb(13, 255, 0);
  /* border: solid 1px rgb(13, 255, 0); */
}

.player-1 {
  background-image: url('../images/sprite/player/01.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100px;
  height: 50px;
}

.reactor-1 {
  z-index: 3;
  width: 4px;
  height: 7px;
  transform-origin: right center;  
  background-color: rgba(255, 255, 255, 1);
  animation: reactor-size 0.3s infinite;
  display: block;
  position: absolute;
  left: 13px;
  top: 23px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -webkit-box-shadow:0px 0px 10px 5px rgba(0, 242, 255, 0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgba(0, 242, 255, 0.8);
  box-shadow: 0px 0px 10px 5px rgba(0, 242, 255, 0.8);
}

.reactor-enemy-2 {
  z-index: 3;
  width: 28px;
  height: 36px;
  transform-origin: right center;
  background-color: rgba(255, 255, 255, 1);
  animation: reactor-size-inverse 0.3s infinite;
  display: block;
  position: absolute;
  left: 242px;
  top: 54px;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  -webkit-box-shadow:0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgbargba(255, 0, 4, 0.8);
  box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
}

.reactor-enemy-3 {
  z-index: 3;
  width: 4px;
  height: 8px;
  transform-origin: right center;
  background-color: rgba(255, 255, 255, 1);
  animation: reactor-size 0.3s infinite;
  display: block;
  position: absolute;
  left: 3px;
  top: 23px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -webkit-box-shadow:0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
}

.reactor-enemy-4 {
  z-index: 3;
  width: 4px;
  height: 8px;
  transform-origin: right center;
  background-color: rgba(255, 255, 255, 1);
  animation: reactor-size 0.3s infinite;
  display: block;
  position: absolute;
  left: 2px;
  top: 18px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -webkit-box-shadow:0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
}

.reactor-enemy-7 {
  z-index: 3;
  width: 4px;
  height: 12px;
  transform-origin: right center;  
  background-color: rgba(255, 255, 255, 1);
  animation: reactor-size-inverse 0.3s infinite;
  display: block;
  position: absolute;
  left: 92px;
  top: 16px;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -webkit-box-shadow:0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
  box-shadow: 0px 0px 10px 5px rgba(255, 0, 4, 0.8);
}

.explosion {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #fff200, #ff6600, #ff0000);
  border-radius: 50%;
  animation: explodePulse 0.6s ease-out forwards;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: var(--sprite_zindex);
}

.explosion::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: flash 0.4s ease-out forwards;
}

.home {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #1f0036 50%, #0a0a0a 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Press Start 2P', cursive;
  color: #fff;
  text-align: center;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Génération de petites étoiles en pseudo-élément */
.home::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.home .stars {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 2s infinite;
  opacity: 0.8;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.5); }
}

.lifes {
  position: absolute;
  top: 0.5rem;
  left: 2.5rem;
  color: #63ffe2ea;
  text-shadow: 1px 1px 2px pink;
  opacity: 0.8;
}

.bombs {
  position: absolute;
  top: 0.5rem;
  left: 6.5rem;
  color: #63ffe2ea;
  text-shadow: 1px 1px 2px pink;
  opacity: 0.8;
}

.stage-1 {
    background-image: url('../images/bg/1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-1) linear;
    animation-fill-mode:forwards;
}

.stage-11 {
    background-image: url('../images/bg/11.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-1) linear;
    animation-fill-mode:forwards;
    z-index: 2;
    position: fixed;
    top:0;
    left:0;
}

.stage-111 {
    background-image: url('../images/bg/111.webp');
    background-size: cover;
    background-position: left;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-1) linear;
    animation-fill-mode:forwards;
    z-index: 6 !important;
    position: fixed;
    top:0;
    left:0;
}

.stage-2 {
  background-image: url('../images/bg/2.webp');
  background-repeat: repeat-x;
  background-size: cover;
  background-position: 0 0;
  animation: animatedBackground var(--time-level-2) linear forwards;
}

.stage-22 {
    background-image: url('../images/bg/22.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-2) linear;
    animation-fill-mode:forwards;
    z-index: 2;
    position: fixed;
    top:0;
    left:0;
}

.stage-222 {
  background-image: url('../images/bg/222.webp');
  background-size: cover;
  background-position: left;
  background-repeat: repeat-x;
  overflow: hidden;
  animation: animatedBackground var(--time-level-2) linear;
  animation-fill-mode:forwards;
  z-index: 6 !important;
  position: fixed;
  top:0;
  left:0;
}

.stage-3 {
  background-image: url('../images/bg/3.webp');
  background-repeat: repeat-x;
  background-size: cover;
  background-position: 0 0;
  animation: animatedBackground var(--time-level-3) linear forwards;
}

.stage-33 {
    background-image: url('../images/bg/33.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-3) linear;
    animation-fill-mode:forwards;
    z-index: 2;
    position: fixed;
    top:0;
    left:0;
}

.stage-333 {
  background-image: url('../images/bg/333.webp');
  background-size: cover;
  background-position: left;
  background-repeat: repeat-x;
  overflow: hidden;
  animation: animatedBackground var(--time-level-3) linear;
  animation-fill-mode:forwards;
  z-index: 6 !important;
  position: fixed;
  top:0;
  left:0;
}

.stage-4 {
  background-image: url('../images/bg/4.webp');
  background-repeat: repeat-x;
  background-size: cover;
  background-position: 0 0;
  animation: animatedBackground var(--time-level-4) linear forwards;
}

.stage-44 {
    background-image: url('../images/bg/44.webp');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    overflow: hidden;
    animation: animatedBackground var(--time-level-4) linear;
    animation-fill-mode:forwards;
    z-index: 2;
    position: fixed;
    top:0;
    left:0;
}

.stage-444 {
  background-image: url('../images/bg/444.webp');
  background-size: cover;
  background-position: left;
  background-repeat: repeat-x;
  overflow: hidden;
  animation: animatedBackground var(--time-level-4) linear;
  animation-fill-mode:forwards;
  z-index: 6 !important;
  position: fixed;
  top:0;
  left:0;
}


.bullet {
  position: absolute;
  width: 10px;
  height: 5px;
  border-radius: 5px;
  animation: bullet-move 0.5s linear infinite;
  z-index: var(--bullet_zindex);
}

.bullet.level-1 {
  background: linear-gradient(to right, #fff, #fff); /* bleu ciel */
  box-shadow:
  0 0 3px 3px var(--color-bullet-1),
  0 0 5px 5px var(--color-bullet-11);
  width: 10px;
  height: 4px;
}

.bullet.level-2 {
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 3px 3px var(--color-bullet-2),
  0 0 5px 5px  var(--color-bullet-22);
  width: 10px;
  height: 5px;
}

.bullet.level-3 {
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 4px 4px var(--color-bullet-3),
  0 0 6px 6px  var(--color-bullet-33);
  width: 11px;
  height: 5px;
}

.bullet.level-4 {
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 5px 5px var(--color-bullet-4),
  0 0 7px 7px  var(--color-bullet-44);
  width: 12px;
  height: 6px;
}

.bullet.level-5 {
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 5px 5px var(--color-bullet-5),
  0 0 8px 8px  var(--color-bullet-55);
  width: 7px;
  height: 7px;
  border: 50%;
}

.bullet.level-6 {
  width: 8px;
  height: 8px;
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 5px 5px var(--color-bullet-6),
  0 0 10px 10px  var(--color-bullet-66);
}

.bullet.level-7 {
  width: 8px;
  height: 8px;
  background: linear-gradient(to right, #fff, #fff);
  box-shadow:
  0 0 5px 5px var(--color-bullet-7),
  0 0 10px 10px  var(--color-bullet-77);
}


/* enemies */
.enemy {
  position: absolute;
  right: 0;
  top:0;
  z-index: var(--sprite_zindex);
}

.enemy-1 {
  width: 110px;
  height: 110px;

}

.enemy-1-img {
  background-image: url('../images/sprite/enemy/01.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  -webkit-animation:spin 3s linear infinite;
  -moz-animation:spin 3s linear infinite;
  animation:spin 3s linear infinite;
}

.enemy-2 {
  width: 300px;
  height: 139px;
}

.enemy-2-img {
  background-image: url('../images/sprite/enemy/02.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

.enemy-3 {
  width: 100px;
  height: 55px;
  transform: scaleX(-1);
}

.enemy-3-img {
  background-image: url('../images/sprite/enemy/03.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.enemy-4 {
  width: 100px;
  height: 46px;
  transform: scaleX(-1);
}

.enemy-4-img {
  background-image: url('../images/sprite/enemy/04.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.enemy-5 {
  width: 90px;
  height: 90px;
}

.enemy-5-img {
  background-image: url('../images/sprite/enemy/05.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.enemy-7 {
  width: 98px;
  height: 47px;
}

.enemy-7-img {
  background-image: url('../images/sprite/enemy/07.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.enemy-8 {
  width: 100px;
  height: 100px;

}

.enemy-8-img {
  background-image: url('../images/sprite/enemy/08.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  -webkit-animation:spin 2s linear infinite;
  -moz-animation:spin 2s linear infinite;
  animation:spin 2s linear infinite;
}

.enemy-9 {
  width: 130px;
  height: 130px;

}

.enemy-9-img {
  background-image: url('../images/sprite/enemy/09.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.enemy-item {
  transform: scaleX(-1);
  width: 80px;
  height: 80px;
}

.enemy-item-img {
  background-image: url('../images/sprite/enemy/item.gif');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* Style de base commun à tous les tirs ennemis */
.enemy-bullet {
  position: absolute;
  background-color: rgb(255, 255, 255);
  box-shadow:
  0 0 5px 5px #fff,
  0 0 10px 10px rgb(255, 99, 255),
  0 0 15px 15px rgb(255, 135, 229);
  border-radius: 50%;
  z-index: var(--bullet_zindex);
}

/* Ligne droite (horizontal ou vertical) */
.enemy-bullet.straight {
  width: 10px;
  height: 10px;
}

/* Diagonales */
.enemy-bullet.diagonal {
  width: 10px;
  height: 10px;
}

/* Grosse boule explosive */
.enemy-bullet.big {
  width: 35px;
  height: 35px;
  background-color: #fff;
  box-shadow:
    0 0 60px 30px #fff,
    0 0 100px 60px #f0f,
    0 0 140px 90px #0ff;
}

/* Tirs secondaires après explosion */
.enemy-bullet.split {
  width: 15px;
  height: 15px;
  background-color: rgb(255, 255, 255);
  box-shadow:
  0 0 10px 10px #fff,
  0 0 15px 15px rgb(255, 99, 255),
  0 0 20px 20px rgb(255, 135, 229);
}

.enemy.hit {
  animation: enemyHitFlash 0.15s ease;
}

.boss.hit {
  animation: enemyHitFlash 0.15s ease;
}

.floating-score {
  position: absolute;
  color: #54ff54;
  font-weight: bold;
  font-size: 18px;
  pointer-events: none;
  animation: float-up 1s ease-out forwards;
  transform: translate(-50%, -50%);
  z-index: 9;
  font-family: "Nova Script", "system-ui";
  font-weight: 400;
  font-style: "normal";
}

.item-block {
  background-color: #cc00ff39;
  border: solid 4px #fff;
  padding: 5px;
  position: absolute;
  text-align: center;
  border-radius: 25%;
  z-index: 3;
  font-family: 'Press Start 2P', monospace;
  text-shadow: none;
}

.item-container {
  position: absolute;
  top: 100px;
  left: 100px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: white;
  padding: 8px 12px;
  /* background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff; */
  border-radius: 6px;
  text-align: center;
  min-width: 100px;
  text-shadow: 0 0 5px #fff, 0 0 10px #0ff;
  animation: floatUp 1s ease-out forwards;
  opacity: 0;
}

.item.power-up {
  border-color: var(--color-item-power-up);
  color: var(--color-item-power-up);
}
.item-power-up {
  border-color: var(--color-item-power-up);
  color:var(--color-item-power-up);
}

.item.one-up {
  border-color: var(--color-item-one-up);
  color: var(--color-item-one-up);
}

.item-one-up {
  border-color: var(--color-item-one-up);
  color: var(--color-item-one-up);
}

.item.points {
  border-color: var(--color-item-points);
  color: var(--color-item-points);
}

.item-points {
  border-color: var(--color-item-points);
  color: var(--color-item-points);
}

.item.item-pop-bomb {
  color: var(--color-item-bomb);
}

.item-bomb {
  border-color: var(--color-item-bomb);
  color: var(--color-item-bomb);
}


@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-40px);
    opacity: 0;
  }
}

.stage-clear {
  left: 0;
  text-align: center;
  width: 100%;
  z-index: 11;
  font-family: 'Orbitron', sans-serif;
  font-size: 5rem;
  position: absolute;
  text-align: center;
  color: #ffa033;
  letter-spacing: 4px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff3333,
    0 0 40px #ff6666;
    text-transform: uppercase;
}

.game-over {
  left: 0;
  text-align: center;
  width: 100%;
  height: 100%;
}

.game-over-text {
  z-index: 12;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 4.5rem;
  color: #ffa033;
  letter-spacing: 4px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff3333,
    0 0 40px #ff6666;
    text-transform: uppercase;
}

.intro-1 {
  z-index: 11;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.text-intro-1 {
  color: #fff;
  text-shadow: none;
  line-height: 2.5rem;
}

.end-1 {
  z-index: 11;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.end-1 .container-end {
  max-width: 100% !important;

}

.text-end-1 {
  color: #fff;
  text-shadow: none;
  line-height: 2.5rem;
}

.final-score {
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  text-align: center;
  color: #ffa033;
  letter-spacing: 4px;
  text-shadow:
    0 0 5px #ff0000,
    0 0 10px #ff0000,
    0 0 20px #ff3333,
    0 0 40px #ff6666;
    text-transform: uppercase;
}

.boss {
  z-index: var(--sprite_zindex);
}

.boss-1 {
  background-image: url('../images/sprite/boss/01.gif');
  background-repeat: no-repeat;
  background-size: cover;
}

.boss-2 {
  background-image: url('../images/sprite/boss/02.gif');
  background-repeat: no-repeat;
  background-size: cover;
}

.boss-3 {
  background-image: url('../images/sprite/boss/03.webp');
  background-repeat: no-repeat;
  background-size: cover;
}
.boss-4 {
  background-image: url('../images/sprite/boss/04.webp');
  background-repeat: no-repeat;
  background-size: cover;
}
.boss-4-animated {
    background-image: url('../images/sprite/boss/04.gif');
    background-repeat: no-repeat;
    background-size: cover;
}
.boss-bullet {
    z-index: var(--bullet_zindex);
    width: '35px';
    height: '35px';
    border-radius: '50%';
    background-color: rgb(255, 255, 255);
    box-shadow:
    0 0 5px 5px #fff,
    0 0 10px 10px rgb(255, 99, 99),
    0 0 15px 15px rgb(255, 2, 2);
}


  .stage-vortex {
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5, 36, 94, 0.6) 0%, rgba(0, 0, 3, 0.6) 70%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: flashIn 0.3s ease-out, fadeOut 1.5s ease-in 1.5s forwards;
  }

  .stage-text {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 8vw;
    font-weight: bold;
    text-align: center;
    color: #ffa033;
    background-size: 400% 400%;
    -webkit-background-clip: text;
    animation: pulseGlow 1.5s infinite ease-in-out, rotateZoom 1.5s ease-in-out;
  }

  @keyframes flashIn {
    0% { background-color: white; opacity: 0; }
    50% { background-color: white; opacity: 1; }
    100% { background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(0,0,0,0.9) 70%); opacity: 1; }
  }

  @keyframes fadeOut {
    to { opacity: 0; }
  }

  @keyframes pulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  @keyframes rotateZoom {
    0% { transform: scale(0.5) rotate(-720deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }

  .how-to-play {
    position: absolute;
    bottom: 1rem;
    right: 3rem;
    cursor: pointer;
  }

  .d-phone-only {
    display: none !important;
  }
  .d-desktop-only {
    display: block !important;
  }

  @media (max-width: 992px) {
    .game-title {
      font-size: 1.8rem;
    }
    .text-responsive {
      font-size: 0.5rem !important;
    }
    .text-responsive-2 {
      font-size: 0.8rem !important;
    }
    .text-paypal {
      font-size: 0.5rem;
      bottom: 0.5rem;
      left: 0.5rem;
    }
    .how-to-play {
      font-size: 0.5rem;
      bottom: 0.5rem;
      right: 0.5rem;
    }
    .d-phone-only {
      display: none !important;
    }
    .d-desktop-only {
      display: none !important;
    }
  }