body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(#0f0f0f, #000000);
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

header {
  padding: 20px;
}

.hud {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
  font-size: 1.2rem;
}

main {
  margin: 20px auto;
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid red;
  box-shadow: 0 0 20px red;
  position: relative;
}

#game {
  height: 100px;
  position: relative;
  margin-bottom: 15px;
  background-color: #111;
  border-radius: 8px;
}

#car {
  font-size: 32px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.1s linear;
}

#multiplier {
  font-size: 2rem;
  margin-bottom: 10px;
  color: lime;
}

button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background-color: crimson;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: darkred;
}

.history {
  margin-top: 40px;
}

.history ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.history li {
  margin-bottom: 5px;
  color: #ccc;
}

input[type="number"] {
  width: 80px;
  font-size: 1rem;
  padding: 5px;
  border
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
#game {
  position: relative;
  z-index: 1;
}
#graphCanvas {
  background: radial-gradient(#111 0%, #000 100%);
  box-shadow: 0 0 10px #0ff, 0 0 30px #0ff inset;
  border: 1px solid #0ff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  height: 300px;
  margin: 20px auto;
  display: block;
}

@keyframes pulseCrash {
  0%   { transform: scale(1); filter: brightness(2); }
  50%  { transform: scale(1.05); filter: brightness(4); }
  100% { transform: scale(1); filter: brightness(1); }
}
.win-pulse {
  animation: pulseCrash 0.4s ease-out;
}
  @keyframes pulseCrashFail {
  0%   { transform: scale(1); filter: brightness(1); }
  50%  { transform: scale(0.95); filter: brightness(0.4); }
  100% { transform: scale(1); filter: brightness(1); }
}

.crash-pulse {
  animation: pulseCrashFail 0.4s ease-out;
}
  /* Multiplier Pulse Animation */
@keyframes scaleUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#multiplier {
  animation: scaleUp 0.6s ease-in-out infinite;
  font-size: 2rem;
  margin-bottom: 10px;
  color: lime;
  font-weight: bold;
}

/* Car Shake Animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

#car {
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
  position: absolute;
  animation: shake 0.2s infinite;
}

/* Start Button Pulse */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#start {
  animation: pulse 1.2s ease-in-out infinite;
}
