@import url("//fonts.googleapis.com/css2?family=Spartan:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  margin-right: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff3c00;
}

.user-auth {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.player-card .card-left h2 {
  padding-top: 10px;
  font-family: 'Spartan', sans-serif;
  letter-spacing: 5.4px;
  word-spacing: -5px;
  top: -6px;
  border-width: 0px;
  height: 0px;
  width: 1250px;
}

.player-card .card-left img {
  padding-left: 0px;
  transform: translateX(0px) translateY(0px);
}

main .player-card {
  padding-left: 0px;
  height: 351px;
  transform: translateX(0px) translateY(0px);
  width: 1782px;
  margin-bottom: 20px;
}

html, body {
  height: 100%;
  margin: 0;
  overflow-y: auto;
}

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

header {
  background-color: #1a1a1a;
  padding: 0.5rem 2rem;
  border-bottom: 2px solid #ff3c00;
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.logo-image {
  height: 30px;
  width: auto;
}

.welcome-message {
  color: white;
  margin-right: 1rem;
}

.login-btn {
  background-color: #ff3c00;
  border: none;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  position: relative;
  z-index: 1;
  align-items: center;
}

.queue-status {
  color: #ccc;
  font-size: 0.8rem;
  margin-top: 10px;
  text-align: center;
}

.player-card {
  display: flex;
  width: 1567px;
  height: 262px;
  max-width: 1892px;
  margin: 2rem auto;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 60, 0, 0.2);
  overflow: hidden;
}

.card-left {
  width: 220px;
  background-color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 0.5rem;
  border-right: 1px solid #333;
  position: relative;
}

.queue-title {
  color: #ff3c00;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  margin: 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  top: 10px;
}

.custom-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ff3c00;
  margin-top: 10px;
}

.queue-btn {
  width: 90%;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s ease;
  margin-top: 10px;
}

.queue-btn.enter {
  background-color: #28a745;
}

.queue-btn.leave {
  background-color: #dc3545;
}

.queue-btn:hover {
  filter: brightness(1.1);
}

.card-right {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.player-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-left: 2rem;
  padding-top: 1rem;
}

.player-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #181818;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255, 60, 0, 0.3);
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff3c00;
}

.player-name {
  font-weight: 600;
  color: #fff;
}

.player-mmr {
  font-weight: bold;
  margin-left: auto;
}

.player-mmr[data-mmr]:after {
  content: attr(data-mmr);
}

.player-mmr.bronze { color: #cd7f32; }
.player-mmr.silver { color: #c0c0c0; }
.player-mmr.gold   { color: #ffd700; }
.player-mmr.diamond { color: #4fc3f7; }

footer {
  background-color: #000;
  color: #888;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
  display: flex;
  justify-content: center;
  border-top: 1px solid #333;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.footer-brand,
.footer-steam-group,
.footer-developer {
  flex: 1;
  text-align: center;
}

.footer-steam-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-steam-group img {
  height: 20px;
}

.footer-developer a,
.footer-steam-group a {
  color: #66b3ff;
  text-decoration: none;
}

.footer-developer a:hover,
.footer-steam-group a:hover {
  text-decoration: underline;
}

#loader-overlay {
  position: fixed;
  z-index: 9999;
  background: #1e1e1e;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner-container {
  position: relative;
  width: 160px;
  height: 160px;
}

#loader-gif {
  width: 180px;
  height: 180px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#loader-gif.loaded {
  opacity: 1;
}

.spinner-border {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 5px solid transparent;
  border-top: 5px solid #8B0000;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  box-sizing: border-box;
  z-index: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-confirm-overlay {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.login-confirm-box {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 60, 0, 0.3);
  border: 1px solid #333;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.login-confirm-box h2 {
  color: #ff3c00;
  margin-bottom: 0.5rem;
}

.login-confirm-box h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.login-confirm-box a {
  color: #66b3ff;
  text-decoration: none;
}

.login-confirm-box a:hover {
  text-decoration: underline;
}

.login-avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 2px solid #ff3c00;
}

.confirm-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.confirm-checklist li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.confirm-checklist input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

#confirm-accept,
#confirm-deny {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
}

#confirm-accept {
  background-color: #ff3c00;
  color: white;
}

#confirm-accept:disabled {
  background-color: #555;
  cursor: not-allowed;
}

#confirm-deny {
  background-color: #333;
  color: #ccc;
}

#confirm-deny:hover {
  background-color: #444;
}

#queue-ready-overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}


.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

#map-stage .stage-content,
#config-stage .stage-content {
    max-width: 1000px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.15);
    padding: 30px 20px;
    color: #fff;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#map-stage h3,
#config-stage h3 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}