* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #07133a 0%, #081b3d 35%, #0d4e57 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Courier New", monospace;
  color: white;
  overflow: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.25;
  z-index: 20;
}

.loading-container {
  text-align: left;
  transform: scale(1.4);
  position: relative;
  z-index: 2;
}

.entry-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-text {
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.progress-bar {
  width: 420px;
  height: 34px;
  border: 4px solid white;
  background-color: black;
  padding: 4px;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: white;
  transition: width 0.5s linear;
  position: relative;
  z-index: 2;
}

.progress-empty-effect {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  overflow: hidden;
  z-index: 1;
  opacity: 0.8;
}

.progress-empty-effect::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 14px,
    rgba(255, 255, 255, 0.35) 14px,
    rgba(255, 255, 255, 0.35) 20px
  );
  animation: loadingMoveDiagonal 0.8s linear infinite;
}

@keyframes loadingMoveDiagonal {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(28px);
  }
}

.percent-text {
  margin-top: 14px;
  font-size: 16px;
  opacity: 0.85;
  text-align: center;
}

.blurred {
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  transition: filter 1.2s ease, opacity 1.2s ease;
}

.blurred.removed {
  filter: blur(0);
  opacity: 1;
  pointer-events: auto;
}

.entry-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 1s ease, visibility 1s ease;
}

.entry-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.enter-button {
  background: black;
  color: white;
  border: 3px solid white;
  padding: 16px 42px;
  font-family: "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: 
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.enter-button:hover {
  background: white;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5);
}

.enter-button:active {
  transform: scale(0.96);
}

/* Effet écran rétro */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.25;
  z-index: 20;
}


.animated-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 70, 180, 0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 220, 0.10), transparent 35%),
    linear-gradient(180deg, #061235 0%, #0a1b40 40%, #0f5a61 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
  mix-blend-mode: screen;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 110, 255, 0.28);
  top: -100px;
  left: -80px;
  animation: float1 18s infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: rgba(0, 255, 220, 0.22);
  bottom: -100px;
  left: 80px;
  animation: float2 22s infinite;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: rgba(0, 210, 255, 0.20);
  right: 60px;
  bottom: 80px;
  animation: float3 20s infinite;
}

.blob-4 {
  width: 460px;
  height: 460px;
  background: rgba(10, 40, 150, 0.22);
  right: -120px;
  top: -60px;
  animation: float4 24s infinite;
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.08);
  }
  100% {
    transform: translate(20px, 90px) scale(0.96);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -40px) scale(1.05);
  }
  100% {
    transform: translate(-20px, -90px) scale(0.95);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-70px, 30px) scale(1.07);
  }
  100% {
    transform: translate(-20px, -60px) scale(0.97);
  }
}

@keyframes float4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50px, 60px) scale(1.04);
  }
  100% {
    transform: translate(30px, 100px) scale(0.94);
  }
}