body {
  margin: 0;
  overflow: hidden;
  background: black;
  font-family: Arial;
}

#menu, #loseScreen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  text-align: center;
  z-index: 10;
}

#menu {
  display: block;
}

#loseScreen {
  display: none;
}


#menu h1, #loseScreen h1 {
  margin-top: 200px;
  font-size: 50px;
}

input, button {
  font-size: 20px;
  padding: 10px;
  margin: 10px;
}

#leaderboard {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px;
  z-index: 5;
  min-width: 160px;    
  font-size: 16px;     
  display: none;       
}

#hud {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 6;
}

.hearts {
  display: flex;
  gap: 10px;
  font-size: 32px;
}

.heart {
  filter: drop-shadow(0 0 6px red);
  transition: opacity 0.3s, transform 0.2s, filter 0.3s;
  display: inline-block;
}

.heart.off {
  opacity: 0.25;
  transform: scale(0.8);
  filter: grayscale(100%) drop-shadow(0 0 3px #555);
}

#pauseMenu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 20;
}

.pauseBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 40px black;
}

.pauseBox h1 {
  margin-bottom: 25px;
  font-size: 40px;
}

.pauseBox button {
  width: 260px;
  padding: 12px;
  margin: 8px 0;
  font-size: 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.pauseBox button:hover:not(:disabled) {
  background: #222;
  color: #0f0;
}

.pauseBox button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
  display: none; 
}


#crosshair::before,
#crosshair::after {
  content: "";
  position: absolute;
  background: white;
  box-shadow: 0 0 8px #fff, 0 0 14px #0ff;
}

#crosshair::before {
  width: 2px;
  height: 22px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

#crosshair::after {
  height: 2px;
  width: 22px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  text-align: center;
  z-index: 10;
}


@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
#mainMenu {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1b0010, #000);
  overflow: hidden;
  z-index: 999;
  font-family: 'Arial Black', Arial;
}

.bgFX {
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, #ff0055, #ff9900, #00ffd5);
  opacity: 0.15;
  animation: bgMove 12s infinite linear;
}

@keyframes bgMove {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.menuCenter {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.logo {
  width: clamp(220px, 35vw, 420px);
  max-width: 90%;
  filter: drop-shadow(0 0 40px #ff0055);
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.subtitle {
  opacity: 0.85;
  margin: 15px 0 30px;
  font-size: 18px;
  letter-spacing: 2px;
}

.pseudoInput {
  width: 280px;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  border-radius: 40px;
  border: 2px solid transparent;
  outline: none;
  margin-bottom: 20px;
  box-shadow: 0 0 20px #ff0055;
  transition: box-shadow 0.2s, border 0.2s;
}

.pseudoInput:focus {
  outline: none;
  border: 2px solid #ff0055;
  box-shadow: 0 0 30px #ff0055;
}

.btn {
  padding: 14px 34px;
  font-size: 20px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  margin: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
  background: linear-gradient(90deg, #ff0055, #ff9900);
  color: white;
  box-shadow: 0 0 25px #ff0055;
}

.btn.primary:hover {
  transform: scale(1.1);
}

.btn.ghost {
  background: rgba(255,255,255,0.08);
  color: white;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.18);
}

.btnRow {
  margin-top: 15px;
}

.pressEnter {
  margin-top: 40px;
  opacity: 0.6;
  animation: blink 1.5s infinite;
}

.pressEnter span {
  color: #ff0055;
  font-weight: bold;
}

@keyframes blink {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#deathScreen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #2a0000, #000);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.deathFX {
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, #ff0000, #ff0055, #000);
  opacity: 0.12;
  animation: deathRotate 10s linear infinite;
}

@keyframes deathRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.deathContent {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
}

.deathTitle {
  font-size: 70px;
  letter-spacing: 4px;
  text-shadow: 0 0 25px red;
  animation: glitch 1.5s infinite;
}

.deathSubtitle {
  margin: 20px 0 40px;
  opacity: 0.75;
  font-size: 20px;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 red, -2px 0 cyan; }
  50% { text-shadow: -2px 0 red, 2px 0 cyan; }
  100% { text-shadow: 2px 0 red, -2px 0 cyan; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#settingsPanel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 2000;
}

.settingsBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 40px;
  border-radius: 20px;
  color: white;
  text-align: center;
  box-shadow: 0 0 40px #ff0055;
}


@keyframes pulse {
  0% { box-shadow: 0 0 20px #ff0055; }
  50% { box-shadow: 0 0 60px #ff9900; }
  100% { box-shadow: 0 0 20px #ff0055; }
}

.sparkles::before, .sparkles::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,0,100,0.2) 0%, transparent 70%);
  animation: sparkleMove 10s linear infinite;
}

@keyframes sparkleMove {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: white;
  padding: 14px 30px;
  border-radius: 40px;
  box-shadow: 0 0 20px #ff0055;
  z-index: 5000;
  animation: fadeIn 0.3s;
}
#creditsPanel {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1a0000, #000);
  display: none;
  z-index: 3000;
  animation: fadeIn 0.4s ease;
}

.creditsBox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 50px;
  border-radius: 25px;
  text-align: center;
  color: white;
  box-shadow: 0 0 60px #ff0055;
}
  #mobileWarning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e2f, #3a3a5c);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 9999;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
  }

  #mobileWarning .container {
    max-width: 400px;
    border: 2px solid #fff;
    border-radius: 30px;
    padding: 40px 30px;
    background: rgba(255,255,255,0.05);
  }
  @keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 1;
  }
}

#mobileWarning .container {
  animation: zoomIn 0.8s ease-out forwards;
}


  #mobileWarning h1 {
    font-size: 1.8rem;
    color: #ff4c4c;
  }

  #mobileWarning p {
    font-size: 1.2rem;
  }

  #mobileWarning .creator {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 20px;
    font-style: italic;
  }

@media (max-width: 1100px) {
  .menuLayout {
    grid-template-columns: 1fr;
  }

  .menuLeft {
    max-width: 420px;
    margin: auto;
  }

  .menuCenter {
    display: none;
  }
}


.menuLayout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(260px, 22vw) 1fr minmax(220px, 18vw);
  background: radial-gradient(circle at top, #1b0010, #000);
  z-index: 999;
}

.menuLeft {
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: linear-gradient(180deg, #120008, #000);
  box-shadow: inset -10px 0 40px rgba(255,0,80,0.25);
}

.menuLeft h2 {
  color: #ff3366;
  text-shadow: 0 0 15px #ff3366;
  margin-bottom: 10px;
}

.menuLeft input {
  border-radius: 30px;
  border: none;
  text-align: center;
  width: 100%;
  padding: 18px;
  font-size: 20px;
}

.menuBtn {
  font-size: clamp(14px, 1.1vw, 20px);
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: 18px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.menuBtn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(6px);
}

.menuBtn.primary {
  background: linear-gradient(90deg, #ff0055, #ff9900);
  box-shadow: 0 0 25px #ff0055;
}

.menuCenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menuCenter .logo {
  width: 360px;
  filter: drop-shadow(0 0 40px #ff0055);
  margin-bottom: 20px;
}

#avatarContainer {
  width: clamp(260px, 45vw, 560px);
  height: clamp(260px, 45vw, 560px);
  border-radius: 50%;

  background: radial-gradient(circle, #111, #000);
  box-shadow: 0 0 90px rgba(255,0,100,0.9);

  cursor: grab;
  position: relative;
  z-index: 5;
  overflow: hidden;
}


.hint {
  margin-top: 12px;
  opacity: 0.7;
}

.menuRight {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 60px;
}
.menuBtn.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: white;

  padding: 18px 20px;
  font-size: 20px;
  border-radius: 18px;
  width: 100%;

  margin-top: auto;
  font-weight: bold;

  background: linear-gradient(270deg, #ff004c, #ff8a00, #00ffd5);
  background-size: 400% 400%;
  animation: gradientMove 6s ease infinite;

  box-shadow: 0 0 18px rgba(255,0,120,0.7);
}

.menuBtn.download:hover {
  transform: translateX(6px);
}

