    body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('image.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;

}

.account-head {
  width: 380px; 
background: linear-gradient(to bottom, #800080, #a64ca6);
  z-index: 2;
  position: relative;
  overflow: hidden;       
  display: flex;          
  justify-content: center;
  align-items: center;
}
.account-head img {
  width: 100%;
  height: 100%;
  object-fit: contain;  
}

@media (max-width: 600px) {
  .account-head {
    width: 100%;          
    padding: 10px 0;      
  }

}

@media (max-width: 600px) {
  .account-head {
    width: 100%;
  }
  .account-form {
    flex-direction: column; 
  }
}




   #startScreen {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
}

.game-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: #fff;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
}

.button-container button {
  padding: 1rem;
  font-size: 1.2rem;
  border: none;
  background-color: navy;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s, background-color 0.3s;
}

.button-container button:hover {
  transform: scale(1.05);
  background-color: #0033aa;
}



    
    #snake-wrapper {
  transition: all 0.3s ease;
}

#snake-wrapper:not(.start-mode) {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 30px 20px;
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
}

    h1 {
      font-size: 40px;
      font-weight: 700;
      text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
      margin-bottom: 8px;
    }

    .subheading {
      font-size: 16px;
      color: #ccc;
      margin-bottom: 30px;
    }

    h2 {
      font-size: 32px;
      font-weight: 600;
      text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    }

    #score, #special-bug, #keyboard-hint, #level-label, #feedback-message, #final-score {
      font-size: 18px;
      font-weight: 500;
      margin: 8px 0;
      text-shadow: 1px 1px 2px #000;
    }

 .btn, button, select {
  background: #ff0057;
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(255, 0, 87, 0.6),  
    0 8px 20px rgba(0, 0, 0, 0.3);      
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); 
  transform: translateY(0);
  position: relative;

}
select {
  position: relative;
  z-index: 10; /* higher than Start button */
}

.btn:hover, button:hover, select:hover {
  background: #ff2e7a;
  box-shadow:
    0 6px 18px rgba(255, 0, 87, 0.8),
    0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px) scale(1.03);
}

.btn:active, button:active, select:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 3px 12px rgba(255, 0, 87, 0.5),
    0 6px 10px rgba(0, 0, 0, 0.2);
}
.arrow-container {
      display: grid;
      grid-template-columns: 80px 80px 80px;
      grid-template-rows: 80px 80px;
      gap: 10px;
    }

    .arrow-container button {
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 10px;
      background: linear-gradient(180deg, #ff0066, #cc0052);
      box-shadow:
        inset -8px 0 8px rgba(0, 0, 0, 0.15),
        inset 0 -8px 8px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(0, 0, 0, 0.75),
        10px 20px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 0, 87, 0.8);
      overflow: hidden;
      transition: transform 0.1s ease, box-shadow 0.1s ease;
      border: none;
      cursor: pointer;
    }

    .arrow-container button:active {
      transform: translateY(4px);
      box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.05),
        0 0 0 2px rgba(0, 0, 0, 0.75);
    }

    .arrow-container button::before {
      content: '';
      position: absolute;
      top: 3px;
      left: 4px;
      bottom: 14px;
      right: 12px;
      background: linear-gradient(90deg, #ff3366, #ff0055);
      border-radius: 10px;
      box-shadow:
        -10px -10px 10px rgba(255, 255, 255, 0.25),
        10px 5px 10px rgba(0, 0, 0, 0.15);
      border-left: 1px solid #0004;
      border-bottom: 1px solid #0004;
      border-top: 1px solid #0009;
      z-index: 0;
    }

    .arrow-container button i {
      position: relative;
      color: #fff;
      font-style: normal;
      font-size: 2em;
      z-index: 1;
    }
     
#start-footer {
  position: absolute;
  bottom: 20px;
  left: 65%;
transform: translate(-50%, 0);
  width: auto;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(255, 0, 87, 0.6);  
  font-style: italic;
  z-index: 999;
  animation: fadeInFooter 1s ease-in;
}

@keyframes fadeInFooter {
  from { opacity: 0; transform: translate(-50%, 10px); }
to { opacity: 1; transform: translate(-50%, 0); }

}

#main-heading {
  font-size: 60px;
  font-weight: 900;
  color: white;
  text-align: center;
  margin-top: 40px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 0, 87, 0.8),
    0 0 20px rgba(255, 0, 87, 0.6);
  display: none;
  animation: fadeInHeading 1s ease;
}
@keyframes fadeInHeading {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




    canvas {
      background: #ffffff;
      border: 2px solid #000;
      margin-top: 20px;
    }

    #controls {
      display: grid;
      grid-template-columns: 60px 60px 60px;
      grid-template-rows: 60px 60px;
      gap: 10px;
      justify-content: center;
      margin-top: 20px;
    }

    #game-screen {
      display: none;
      flex-direction: column;
      align-items: center;
    }

    #game-over-screen {
      display: none;
    }

    #game-over-screen h2 {
  color: white;
  font-weight: bold;
  font-size: 48px;
  text-align: center;
  text-shadow:
    0 0 5px #ff0077,
    0 0 10px #ff0077,
    0 0 20px #ff0077,
    0 0 40px #ff0077;
}
#start-button {
  position: relative;
  z-index: 1;
}

#level-label{
  color: white;
   font-weight: bold;
   text-align: center;
   font-size: 34px;
   text-shadow:
    0 0 5px #ff0077,
    0 0 10px #ff0077,
    0 0 20px #ff0077,
    0 0 40px #ff0077;
}
.custom-select-wrapper {
  position: relative;
  width: 220px;
  margin: 20px auto;
  font-family: 'Segoe UI', sans-serif;
}

.custom-select {
  background-color: #ff0055;
  color: white;
  font-weight: bold;
  padding: 16px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 160px;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.6), 0 0 30px rgba(255, 0, 85, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}



.custom-options {
  background-color: #ff0055;
  color: white;
  border-radius: 0 0 16px 16px;
  margin-top: 2px;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5), 0 0 20px rgba(255, 0, 85, 0.4);
  display: none;
  position: absolute;
  width: 100%;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-option {
  padding: 14px 0;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-option:hover {
  background-color: #e6004c;
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.custom-options.show {
  display: block;
}


@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4), 0 0 20px rgba(255, 0, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.7), 0 0 40px rgba(255, 0, 85, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4), 0 0 20px rgba(255, 0, 85, 0.2);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



  .custom-options.show {
    display: block;
  }
  .account-form-inner {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 600px) {
  .account-form-inner {
    padding: 10px;
  }
  .custom-select-wrapper {
    width: 100%;
  }
  .custom-select {
    font-size: 16px;
    padding: 12px 16px;
  }
  .custom-option {
    font-size: 16px;
    padding: 12px 0;
  }
  .btn {
    font-size: 15px;
    padding: 10px 14px;
  }
}
#main-heading, #start-footer {
  display: none !important;
}