body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: white;
  cursor: url('cursor.png'), auto;
}

/* NAVBAR */
nav {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  gap: 15px; /* 🔥 kontroluje odstępy */
}

/* logo */
.logo {
  display: flex;
  align-items: center;
}

/* licznik blisko logo */
.server-status {
  margin-left: 5px; /* 🔥 zmniejsz / zwiększ */
  white-space: nowrap;
  color: #00ffff;
}

/* menu zawsze po prawej */
.menu {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.server-status {
  flex: 1;
  text-align: center;
  color: #00ffff;
  font-size: 22px;
}

/* MENU */
nav ul {
  flex: 1;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin: 0;
  padding: 0;
}

/* PRZYCISKI */
.nav-btn {
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: #0b1220;
  border: 2px solid transparent;

  background-image: 
    linear-gradient(#0b1220, #0b1220),
    linear-gradient(135deg, #00ffff, #001f4d);

  background-origin: border-box;
  background-clip: padding-box, border-box;

  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: linear-gradient(135deg, #00ffff, #001f4d);
  transform: scale(1.05);
}

.nav-btn:active {
  transform: scale(0.95);
}

/* 🔥 KOPIUJ IP */
.copy-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  color: #00ffff;

  background: transparent;
  border: 2px solid #00ffff;

  transition: all 0.3s ease;
}

/* hover */
.copy-btn:hover {
  background: #00ffff;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00ffff;
}

/* kliknięcie */
.copy-btn.copied {
  background: limegreen;
  border-color: limegreen;
  color: black;
}

/* 🔥 BOX GRACZY */
.server-box {
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  color: #00ffff;

  border: 2px solid transparent;
  background-image:
    linear-gradient(#0b1220, #0b1220),
    linear-gradient(135deg, #00ffff, #001f4d);

  background-origin: border-box;
  background-clip: padding-box, border-box;

  transition: 0.3s;
}

.server-box:hover {
  background: linear-gradient(135deg, #00ffff, #001f4d);
  color: white;
  transform: scale(1.05);
}

.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #00ffae;
  border-radius: 50%;
  margin-right: 6px;

  animation: pulse 1.5s infinite;
  will-change: box-shadow;
}


/* 🔥 kontener listy */
#players-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
}

/* 🔥 kafelek gracza */
.player-card {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 12px;

  background: #0b1220;
  color: white;

  border: 1px solid rgba(0,255,255,0.3);

  transition: 0.3s;
}

/* 🔥 hover efekt */
.player-card:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px #00ffff;
}

/* 🔥 avatar */
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.player-card {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔥 BANNER GIF */
.hero-banner {
  height: 100vh; /* możesz zmienić */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)),
    url("background.gif"); /* 🔥 TWÓJ GIF */

  background-size: cover;
  background-position: center;
}

/* tekst */
.hero-content h1 {
  font-size: 42px;
  color: #00ffff;
  margin: 0;
}

.hero-content p {
  margin-top: 10px;
  color: #ccc;
}

/* 🔥 TŁO */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.7);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;
}

/* 🔥 TŁO POPUPA */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.7);

  display: none; /* ukryty na start */
  align-items: center;
  justify-content: center;

  z-index: 999;
}

/* 🔥 OKNO */
.popup-box {
  position: relative; /* 🔥 dzięki temu X jest w rogu */

  background: #0b1220;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;

  border: 2px solid rgba(0,255,255,0.4);
  box-shadow: 0 0 20px #00ffff;

  max-width: 400px;
  width: 90%;

  animation: popupFade 0.3s ease;
}

/* 🔥 X w rogu */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;

  cursor: pointer;
  font-size: 22px;
  color: white;

  transition: 0.2s;
}

.close-btn:hover {
  color: #00ffff;
  transform: scale(1.2);
  text-shadow: 0 0 10px #00ffff;
}

/* 🔥 tekst */
.popup-box h2 {
  margin-top: 10px;
  color: #00ffff;
}

.popup-box p {
  color: #ccc;
  margin-top: 10px;
}

/* 🔥 przycisk */
.popup-box button {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;

  background: linear-gradient(135deg, #00ffff, #001f4d);
  color: white;
  font-weight: bold;
  cursor: pointer;

  transition: 0.3s;
}

.popup-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffff;
}

/* 🔥 animacja */
@keyframes popupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.comments {
  margin-top: 40px;
}

.comment {
  background: #020617;
  padding: 15px;
  margin-top: 15px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.2);
}

.comment b {
  color: #00ffff;
}

.comment-date {
  font-size: 12px;
  color: #777;
  margin-left: 10px;
}

.comment p {
  margin-top: 5px;
}

.wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 40px;
}

.left {
  flex: 1;
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔥 SEKCJA */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

/* 🔥 KARTA */
.contact-box {
  width: 100%;
  max-width: 500px;
  padding: 30px;
  border-radius: 20px;

  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(0,255,255,0.2);
  box-shadow: 0 0 30px rgba(0,255,255,0.15);
}

/* 🔥 TYTUŁ */
.contact-box h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #00ffff;
}

/* 🔥 INPUT GROUP */
.input-group {
  position: relative;
  margin-top: 20px;
}

/* 🔥 INPUT */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,255,0.2);
  background: transparent;
  color: white;
  outline: none;
  transition: 0.3s;
}

/* 🔥 LABEL */
.input-group label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  transition: 0.3s;
}

/* 🔥 ANIMACJA LABEL */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -8px;
  font-size: 12px;
  color: #00ffff;
}

/* 🔥 GLOW */
.input-group input:focus,
.input-group textarea:focus {
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0,255,255,0.5);
}

/* 🔥 TEXTAREA */
.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 🔥 BUTTON */
.contact-btn {
  margin-top: 25px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: black;

  background: linear-gradient(135deg, #00ffff, #0077ff);
  transition: 0.3s;
}

/* 🔥 HOVER */
.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,255,0.8);
}

/* 🔥 CLICK */
.contact-btn:active {
  transform: scale(0.95);
}

/* 🔥 SUCCESS */
.success-msg {
  background: rgba(0,255,255,0.1);
  border: 1px solid #00ffff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
  text-align: center;
  color: #00ffff;
}

.rules-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
}

.rules-title {
  text-align: center;
  color: #22d3ee;
  margin: 40px 0 20px;
  font-size: 32px;
}

.rules-box {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;

  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(10px);
}

.rules-section {
  margin-bottom: 20px;
}

.rules-section h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.rules-section ul {
  padding-left: 18px;
}

.rules-section li {
  margin-bottom: 6px;
}

.rules-footer {
  text-align: center;
  margin-top: 40px;
  color: #6b7280;
  font-size: 14px;
}

.select-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.select-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #22d3ee;
}

.cards {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: 280px;
  height: 180px;
  text-decoration: none;
  color: white;

  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.3s;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
  border-color: #22d3ee;
}

.card-content {
  text-align: center;
  padding: 20px;
}

.card h2 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.card p {
  color: #9ca3af;
}


.rules-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;

  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(0,255,255,0.2);

  box-shadow: 0 0 40px rgba(0,255,255,0.15);
}

.rules-container h1 {
  text-align: center;
  color: #22d3ee;
  margin-bottom: 30px;
}

.rule-section {
  margin-bottom: 25px;
}

.rule-section h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.rule-section ul {
  padding-left: 18px;
}

.rule-section li {
  margin-bottom: 6px;
}

.back-btn {
  text-align: center;
  margin-top: 30px;
}

.back-btn a {
  color: #22d3ee;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero {
  height: 400px;

  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)),
    url('background.gif');

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  margin: 0;
  color: cyan;
}

.hero-content p {
  font-size: 20px;
  margin: 10px 0 20px;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: cyan;
  color: black;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #00cccc;
  transform: scale(1.05);
}

/* 🔥 SEKCJA GŁOSOWANIA */
.vote-section {
  text-align: center;
  padding: 80px 20px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 50px;
}

/* KONTENER */
.vote-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* 🔥 KAFELKI */
.vote-card {
  display: block;
  width: 260px;
  padding: 30px;

  background: rgba(255,255,255,0.05);
  border-radius: 20px;

  text-decoration: none !important;
  color: white !important;

  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

/* HOVER */
.vote-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* TEKST */
.vote-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

.vote-card p {
  font-size: 14px;
  opacity: 0.8;
  color: white;
}

/* 🔥 FORCE FIX KAFELKI */
.vote-section {
  text-align: center;
  padding: 80px 20px;
}

.vote-cards {
  display: flex !important;
  justify-content: center !important;
  gap: 30px !important;
  flex-wrap: wrap !important;
}

.vote-card {
  display: block !important;
  width: 260px !important;
  padding: 30px !important;

  background: #111827 !important; /* ciemne tło */
  border-radius: 20px !important;

  color: white !important;
  text-decoration: none !important;

  border: 1px solid rgba(255,255,255,0.15) !important;

  transition: 0.3s !important;
}

.vote-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  background: #1f2937 !important;
}

.vote-card h3,
.vote-card p {
  color: white !important;
  text-decoration: none !important;
}
