/* Globális lobby gomb stílusok */
#copy-link-btn,
#pve-btn,
#couch-btn,
#mobile-remote-btn,
#forge-btn,
#leaderboard-btn,
#guide-btn,
#spectate-btn {
  position: relative !important;
  overflow: hidden !important;
  width: 100%;
  padding: 15px 25px;
  color: white;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  display: block !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important; /* Premium glossy glass reflection edge */
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important; /* Perfect readability */
}

/* Hover emelkedés és fényesítés */
#copy-link-btn:hover,
#pve-btn:hover,
#couch-btn:hover,
#mobile-remote-btn:hover,
#forge-btn:hover,
#leaderboard-btn:hover,
#guide-btn:hover,
#spectate-btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.3) !important;
}

/* Kattintás effekt */
#copy-link-btn:active,
#pve-btn:active,
#couch-btn:active,
#mobile-remote-btn:active,
#forge-btn:active,
#leaderboard-btn:active,
#guide-btn:active,
#spectate-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* Fénycsík sweep effekt */
#copy-link-btn::before,
#pve-btn::before,
#couch-btn::before,
#mobile-remote-btn::before,
#forge-btn::before,
#leaderboard-btn::before,
#guide-btn::before,
#spectate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

#copy-link-btn:hover::before,
#pve-btn:hover::before,
#couch-btn:hover::before,
#mobile-remote-btn:hover::before,
#forge-btn:hover::before,
#leaderboard-btn:hover::before,
#guide-btn:hover::before,
#spectate-btn:hover::before {
  left: 150%;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#copy-link-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 100, 130, 0.15) 30%,
    rgba(255, 45, 85, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(255, 75, 110, 0.15),
    0 0 20px rgba(255, 75, 110, 0.05);
}
#copy-link-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 100, 130, 0.28) 30%,
    rgba(255, 45, 85, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(255, 75, 110, 0.45),
    0 0 30px rgba(255, 75, 110, 0.25);
}
#copy-link-btn .btn-subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: bold;
  opacity: 0.9;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0.2px;
}

#pve-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 180, 50, 0.15) 30%,
    rgba(255, 120, 0, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(255, 120, 0, 0.15),
    0 0 20px rgba(255, 120, 0, 0.05);
}
#pve-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 180, 50, 0.28) 30%,
    rgba(255, 120, 0, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(255, 120, 0, 0.45),
    0 0 30px rgba(255, 120, 0, 0.25);
}

#couch-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(46, 204, 113, 0.15) 30%,
    rgba(39, 174, 96, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(46, 204, 113, 0.15),
    0 0 20px rgba(46, 204, 113, 0.05);
}
#couch-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(46, 204, 113, 0.28) 30%,
    rgba(39, 174, 96, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(46, 204, 113, 0.45),
    0 0 30px rgba(46, 204, 113, 0.25);
}

#mobile-remote-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(52, 152, 219, 0.15) 30%,
    rgba(41, 128, 185, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(52, 152, 219, 0.15),
    0 0 20px rgba(52, 152, 219, 0.05);
}
#mobile-remote-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(52, 152, 219, 0.28) 30%,
    rgba(41, 128, 185, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(52, 152, 219, 0.45),
    0 0 30px rgba(52, 152, 219, 0.25);
}

#forge-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(155, 89, 182, 0.15) 30%,
    rgba(142, 68, 173, 0.22) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(155, 89, 182, 0.15),
    0 0 20px rgba(155, 89, 182, 0.05);
}
#forge-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(155, 89, 182, 0.28) 30%,
    rgba(142, 68, 173, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(155, 89, 182, 0.45),
    0 0 30px rgba(155, 89, 182, 0.25);
}
#forge-btn .btn-subtext {
  display: block;
  font-size: 0.72rem;
  font-weight: bold;
  opacity: 0.9;
  margin-top: 5px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.player-names-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  position: absolute;
  top: 10px;
  left: 0;
  pointer-events: none;
  z-index: 10;
}
.player-name {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(10, 10, 20, 0.4);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(197, 160, 89, 0.6);
  border-left: 1.5px solid rgba(197, 160, 89, 0.4);
  padding: 4px 12px;
  border-radius: 10px;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 10px rgba(197, 160, 89, 0.15);
  max-width: 250px;
  display: flex;
  align-items: center;
}

.btn-blue {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(100, 210, 255, 0.15) 30%,
    rgba(30, 150, 255, 0.22) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  color: white !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(30, 150, 255, 0.15),
    0 0 20px rgba(30, 150, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer;
  border-radius: 12px;
}
.btn-blue:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(100, 210, 255, 0.28) 30%,
    rgba(30, 150, 255, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(30, 150, 255, 0.45),
    0 0 30px rgba(30, 150, 255, 0.25) !important;
  transform: translateY(-2px);
  filter: brightness(1.3) !important;
}
.btn-blue:active {
  transform: translateY(-0.5px);
}

.btn-red {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 100, 130, 0.15) 30%,
    rgba(255, 45, 85, 0.22) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  color: white !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(255, 75, 110, 0.15),
    0 0 20px rgba(255, 75, 110, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer;
  border-radius: 12px;
}
.btn-red:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 100, 130, 0.28) 30%,
    rgba(255, 45, 85, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(255, 75, 110, 0.45),
    0 0 30px rgba(255, 75, 110, 0.25) !important;
  transform: translateY(-2px);
  filter: brightness(1.3) !important;
}
.btn-red:active {
  transform: translateY(-0.5px);
}

.btn-purple {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(155, 89, 182, 0.15) 30%,
    rgba(142, 68, 173, 0.22) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  color: white !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(155, 89, 182, 0.15),
    0 0 20px rgba(155, 89, 182, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  cursor: pointer;
  border-radius: 12px;
}
.btn-purple:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(155, 89, 182, 0.28) 30%,
    rgba(142, 68, 173, 0.38) 100%
  ) !important;
  box-shadow:
    inset 0 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 0 0 rgba(255, 255, 255, 0.15),
    0 10px 25px rgba(155, 89, 182, 0.45),
    0 0 30px rgba(155, 89, 182, 0.25) !important;
  transform: translateY(-2px);
  filter: brightness(1.3) !important;
}
.btn-purple:active {
  transform: translateY(-0.5px);
}

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

@keyframes pulse-red-border {
  0% {
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.9),
      inset 0 0 30px rgba(57, 162, 219, 0.05),
      0 0 5px rgba(233, 69, 96, 0.2);
  }
  50% {
    border-color: rgba(233, 69, 96, 1);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.9),
      inset 0 0 30px rgba(57, 162, 219, 0.05),
      0 0 20px rgba(233, 69, 96, 0.6);
  }
  100% {
    border-color: rgba(233, 69, 96, 0.4);
    box-shadow:
      0 25px 50px rgba(0, 0, 0, 0.9),
      inset 0 0 30px rgba(57, 162, 219, 0.05),
      0 0 5px rgba(233, 69, 96, 0.2);
  }
}

/* TEST GOMB STÍLUS */
.test-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 9999;
  transition: color 0.3s;
}
.test-btn:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* PVP várakozás spinner animáció */
@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}
.btn-spinner {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  box-sizing: border-box;
}

/* Főmenü gomb ikonok balra igazítása */
.btn-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
