body {  
      margin: 0;
      overflow: hidden;
      cursor: none;
      background: url("asset/img/grid-background.jpg") no-repeat center center fixed;
      background-size: cover; 
    }

    #mainMenu{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:1000;
}

.modal-box{
  background:#111;
  padding:40px;
  border-radius:10px;
  text-align:center;
  color:white;
  width:320px;
}

.game-title{
  font-family:Orbitron;
  margin-bottom:20px;
}

.menu-section{
  margin:20px 0;
}

input[type=range]{
  width:100%;
}

#startGameBtn{
  margin-top:20px;
  padding:12px 30px;
  font-size:16px;
  cursor:pointer;
}

   #ui {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0px;
  z-index: 10;
  font-family: Arial, sans-serif;
}

/* HUD boxes */
.hud {
  background: linear-gradient(135deg, #1a1f3c, #2c3566);
  color: white;
  padding: 10px 20px;
  min-width: 120px;
  text-align: center;
  position: relative;
  font-weight: bold;
}

/* Angled edges */
.hud::before,
.hud::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  background: inherit;
}

.hud::before {
  left: -8px;
  transform: skewX(-20deg);
}

.hud::after {
  right: -8px;
  transform: skewX(20deg);
}

/* Center timer bigger */
.hud.center {
  font-size: 22px;
  padding: 10px 30px;
}

/* Label styling */
.label {
  font-size: 12px;
  opacity: 0.7;
  margin-right: 6px;
}

    #crosshair {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.crosshair-line {
  position: absolute;
  background: rgb(21, 255, 0);
}

.crosshair-outline {
  position: absolute;
  background: black;
}

#debugStats {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgb(0, 0, 0);
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12px;
  background-color: azure;
  
}

/* 🌑 Overlay */
#resultOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(-15px);
  background: rgba(0,0,0,0.7);

  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🚀 Modal box */
.modal-box {
  animation: popIn 0.3s ease-out;
  font-family: 'Rajdhani', sans-serif;
  background: rgba(10, 15, 40, 0.95);
  border: 2px solid #00ffff;
  padding: 40px 60px;
  border-radius: 16px;

  text-align: center;
  color: white;

  box-shadow: 
    0 0 20px #00ffff,
    0 0 60px rgba(0,255,255,0.3);

  min-width: 300px;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Title */
.modal-box h2 {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: #00ffff;
}

/* Stats */
.stat {
  margin: 12px 0;
  font-size: 18px;
}

/* Button */
#retryBtn {
  margin-top: 25px;
  padding: 12px 30px;
  font-size: 16px;

  background: linear-gradient(135deg, #00ffff, #00aaff);
  border: none;
  border-radius: 6px;

  color: black;
  font-weight: bold;
  cursor: pointer;

  transition: 0.2s;
}

#retryBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffff;
}

#menuBtn {
  margin-top: 25px;
  padding: 12px 30px;
  font-size: 16px;

  background: linear-gradient(135deg, #00ffff, #00aaff);
  border: none;
  border-radius: 6px;

  color: black;
  font-weight: bold;
  cursor: pointer;

  transition: 0.2s;
}

#menuBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffff;
}




#footer {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-family: Arial;
  letter-spacing: 1px;
  pointer-events: none;
  background: black;
}
