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



#loseScreen {
  display: none;
}



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); }
}


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

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

  #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 {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    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, 20vw) 1fr minmax(320px, 22vw);
  min-height: 100svh;    
  overflow-y: auto;        
  overflow-x: hidden;
}

.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(240px, 32vw, 480px);
  height: clamp(240px, 32vw, 480px);
  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 {
  padding: 30px 20px;
  background: linear-gradient(180deg, #080008, #000);
  box-shadow: inset 10px 0 40px rgba(255,0,80,0.25);
  color: white;

  display: flex;
  flex-direction: column;
  overflow: hidden;  
}

.updatesScroll {
flex: 1;
overflow-y: auto; 
padding-right: 6px;
}
.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: scale(1.03);
}


.menuRight {
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  background: linear-gradient(180deg, #080008, #000);
  box-shadow: inset 10px 0 40px rgba(255,0,80,0.25);
  color: white;
}

.menuRight h2 {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  color: #ff7aa2;
  text-shadow: 0 0 12px #ff3366;
  margin-bottom: 15px;
  display: block;
}

.updatesList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 6px;
}

.updateCard {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(255,0,100,0.25);
  animation: fadeIn 0.4s ease;
}

.updateCard h3 {
  margin: 0 0 6px;
  color: #ffccdd;
}

.updateCard .date {
  font-size: 13px;
  opacity: 0.7;
}

.updateCard p {
  font-size: 14px;
  line-height: 1.4;
  margin: 10px 0;
}

.stars {
  font-size: 20px;
  color: gold;
}
iframe[src*="accounts.google.com"] {
  display: none !important;
}
@media (max-height: 820px) {

.menuLayout {
  position: fixed;
  inset: 0;
  display: grid;

  grid-template-columns: minmax(260px, 22vw) 1fr minmax(300px, 24vw);

  min-height: 100svh;     
  overflow-y: auto;      
  overflow-x: hidden; 
}
  .menuCenter {
    justify-content: flex-start;
    padding-top: 20px;
  }

  #avatarContainer {
    width: clamp(310px, 22vw, 260px);  
    height: clamp(310px, 22vw, 260px);
  }

  .menuCenter .logo {
    width: 180px;
    margin-bottom: 8px;
  }

  .hint {
    font-size: 12px;
    margin-top: 4px;
  }

  .menuRight {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .updatesScroll {
    flex: 1;               
    min-height: 0;         
    overflow-y: auto;
    margin-bottom: 10px;
  }

  .menuBtn.download {
    flex-shrink: 0;        
    font-size: 15px;
    padding: 10px 10px;
    border-radius: 14px;
    margin-top: 8px;
  }

  .menuBtn.download span {
    font-size: 11px;
  }

  .menuLeft {
    padding: 20px 16px;
    gap: 8px;
  }

  .menuBtn {
    padding: 10px;
    font-size: 15px;
  }
}

#playerCountHud {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 20px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 0 15px rgba(255, 0, 80, 0.5);
  backdrop-filter: blur(6px);
}

.playerIcon {
  font-size: 22px;
}

#chatBox {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 320px;
  max-height: 220px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 50;
  box-shadow: 0 0 20px rgba(255,0,80,0.4);
}

#chatMessages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  color: white;
}

.chatMsg {
  margin-bottom: 4px;
  opacity: 0.9;
}

.chatPseudo {
  color: #ff7aa2;
  font-weight: bold;
}

#chatInput {
  border: none;
  outline: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 0 0 12px 12px;
  background: rgba(0,0,0,0.8);
  color: white;
}

#chatHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 13px;
  color: #ff7aa2;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#chatClose {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.7;
}

#chatClose:hover {
  opacity: 1;
  color: #ff4c4c;
}

#chatToastContainer {
  position: fixed;
  bottom: 20px;
  left: 20px; 
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.chatToast {
  min-width: 220px;
  max-width: 380px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(255,0,80,0.55);
  font-size: 14px;

  opacity: 0;
  transform: translateY(10px);
  animation: toastIn 0.2s ease forwards;
  text-align: left;
}

.chatToast .pseudo {
  color: #ff7aa2;
  font-weight: bold;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaderboardTitle {
  color: #ff7aa2;
  text-shadow: 0 0 15px #ff3366;
  margin-bottom: 20px;
}

.leaderboardRow:last-child {
  border-bottom: none;
}
#centerHome,
#centerLeaderboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leaderboardRow:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.03);
}

.leaderboardList {
  width: 460px;          
  max-height: 520px;
  overflow-y: auto;
  background: rgba(0,0,0,0.5);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 0 60px rgba(255,0,120,0.45);
  backdrop-filter: blur(10px);
}

.leaderboardRow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  transition: background 0.2s, transform 0.2s;
}

.lb-rank {
  width: 40px;
  font-size: 22px;
  text-align: center;
  flex-shrink: 0;
}

.lb-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255,0,120,0.6);
}

.lb-name {
  flex: 1;
  font-size: 20px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-kills {
  font-size: 22px;
  font-weight: bold;
  color: #ff7aa2;
  flex-shrink: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}
#betaModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.betaBox {
  background: #111;
  border-radius: 25px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  color: white;
  box-shadow: 0 0 50px #ff0055;
  animation: fadeIn 0.4s ease;
}

.betaBox h1 {
  color: #ff7aa2;
  text-shadow: 0 0 15px #ff3366;
  margin-bottom: 20px;
}

.betaBox p {
  font-size: 16px;
  margin-bottom: 15px;
}

.betaBox ul {
  text-align: left;
  margin: 20px 0;
  padding-left: 20px;
  font-size: 15px;
}

.betaBox li {
  margin-bottom: 8px;
}

.betaActions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
}

.betaActions button {
  padding: 12px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  background: linear-gradient(90deg, #ff0055, #ff9900);
  color: white;
  box-shadow: 0 0 15px #ff0055;
}

.betaActions button:hover {
  transform: scale(1.05);
}

#centerSettings {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.settingsTabs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.settingsTab {
  padding: 10px 16px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  cursor: pointer;
  border: none;
}

.settingsTab.active {
  background: #ff4d4d;
}

.settingsContent {
  background: #111;
  border-radius: 14px;
  padding: 20px;
  min-height: 260px;
}

.settingsPage {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.settingsPage.active {
  display: flex;
}

.settingRow {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 10px;
}

.keyRow {
  display: flex;
  justify-content: space-between;
  background: #1b1b1b;
  padding: 8px 12px;
  border-radius: 8px;
}

.keyRow span {
  background: #333;
  padding: 2px 8px;
  border-radius: 6px;
}

.accountBox {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accountAvatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #ff4d4d;
  object-fit: cover;
}

.accountHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.accountAvatarLarge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #ff4d4d;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(255,77,77,0.6);
}

.accountHeader h3 {
  font-size: 22px;
}

.accountCard {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.accountCard input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #111;
  color: white;
}
.popupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popupBox {
  background: #111;
  padding: 25px;
  color: white;
  border-radius: 14px;
  text-align: center;
  max-width: 320px;
}

.closeBtn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: 0.2s ease;
}

.closeBtn:hover {
  color: #ff4d4d;
  text-shadow: 0 0 12px #ff4d4d;
  transform: scale(1.15);
}
#voiceHud {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 50;
  font-size: 12px;
}

.voiceUser {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  padding: 4px 6px;
  border-radius: 6px;
  color: white;
}

.voiceUser img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.voiceUser.talking {
  box-shadow: 0 0 10px #00ff88;
}

.voiceUser span {
  color: white;
  font-size: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}
.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s, opacity 0.2s;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-container:hover img {
  filter: grayscale(100%);
  opacity: 0.7;
}

.avatar-container:hover .avatar-overlay {
  opacity: 1;
}
