/* HERO BANNER OTTIMIZZATO */
.hero-banner {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #181a20;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: blur(14px) brightness(0.7) saturate(1.1);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
}
.hero-logo {
  width: 120px;
  max-width: 40vw;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 16px #000c);
}
.hero-description {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 12px #000d;
  line-height: 1.4;
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .hero-banner {
    min-height: 100vh;
    height: 100dvh;
    padding: 0;
  }
  .hero-bg {
    width: 100vw;
    height: 100dvh;
    min-height: 320px;
    max-height: 100dvh;
    filter: blur(10px) brightness(0.7) saturate(1.1);
  }
  .hero-logo {
    width: 70px;
    max-width: 60vw;
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 95vw;
    padding: 0 0.5rem;
  }
  .hero-content {
    padding: 1.2rem 0.2rem;
  }
}

/* ACCESSIBILITÀ: Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  background: #23272a;
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  font-size: 1.1em;
  transition: left 0.2s, box-shadow 0.2s;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  box-shadow: 0 2px 12px #4ed0f2;
}

/* Immagini e video fluidi */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.responsive-media {
  max-width: 100vw;
  width: 100%;
  height: auto;
  display: block;
}

/* Disabilita selezione testo su tutta la pagina */
body,
body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ===== ValhMC - Viking Theme ===== */
:root {
  /* Discord/Steam inspired dark palette + viking accent */
  --primary: #4ed0f2;
  --primary-dark: #2b9ec6;
  --primary-light: #aeefff;
  --viking-gold: #d4af37;
  --viking-bronze: #cd7f32;
  --viking-silver: #c0c0c0;
  --viking-red: #8b0000;
  --background: linear-gradient(135deg, #23272a 0%, #181a20 100%);
  --surface: #2c2f34;
  --surface-glass: rgba(44, 47, 52, 0.92);
  --surface-hover: #31353b;
  --text: #f5f6fa;
  --text-secondary: #bfc9d1;
  --text-muted: #7a869a;
  --accent: #d4af37;
  --accent-secondary: #cd7f32;
  --warning: #ffb300;
  --success: #4caf50;
  --shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(78, 208, 242, 0.3);
  --radius: 20px;
  --radius-small: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #4ed0f2 0%, #2b9ec6 100%);
  --gradient-viking: linear-gradient(135deg, #d4af37 0%, #cd7f32 100%);
  --gradient-accent: linear-gradient(135deg, #d4af37 0%, #cd7f32 100%);
  --gradient-success: linear-gradient(135deg, #aeefff 0%, #4ed0f2 100%);
  --backdrop-blur: blur(18px);
  --viking-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M30 30l15-15v30l-15-15zm-15 0l15 15H0l15-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html,
body {
  overflow-x: hidden;
}
body {
  font-family: "Nunito", "Inter", "Segoe UI", "Roboto", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  transition: var(--transition);
  position: relative;
  /* Forcing dark mode */
}

/* Loading state */
body.loading {
  overflow: hidden;
}

body.loading > *:not(#valhmc-loader) {
  opacity: 0;
  visibility: hidden;
}

/* Loaded state with smooth transition */
body.loaded > * {
  animation: fadeInContent 0.8s ease-out forwards;
}

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

/* Stagger animation for different sections */
body.loaded .header {
  animation-delay: 0.1s;
}

body.loaded .hero {
  animation-delay: 0.2s;
}

body.loaded .how-to-join {
  animation-delay: 0.3s;
}

body.loaded .game-modes {
  animation-delay: 0.4s;
}

body.loaded .discord-section {
  animation-delay: 0.5s;
}

body.loaded .survey-announcement {
  animation-delay: 0.6s;
}

body.loaded .footer {
  animation-delay: 0.7s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", "Inter", "Segoe UI", "Roboto", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1.2px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.7em;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.section-title,
.hero-title {
  font-family: "Nunito", "Inter", "Segoe UI", "Roboto", Arial, sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  filter: none;
}

a,
.nav-link,
.footer-links a,
.footer-bottom-links a {
  color: #eaf6fb;
  transition: var(--transition), filter 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

a:hover,
.nav-link:hover,
.footer-links a:hover,
.footer-bottom-links a:hover {
  color: var(--primary);
  filter: brightness(1.2) drop-shadow(0 0 8px var(--primary));
}

button,
.cta-button,
.copy-ip-btn,
.store-button,
.discord-button {
  background: var(--gradient-primary);
  color: #eaf6fb;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 0 8px 0 var(--primary), var(--shadow);
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--transition), filter 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  border: 2px solid var(--primary);
}

button:hover,
.cta-button:hover,
.copy-ip-btn:hover,
.store-button:hover,
.discord-button:hover {
  background: var(--gradient-accent);
  color: #fff;
  filter: brightness(1.2) drop-shadow(0 0 12px var(--primary));
  box-shadow: 0 0 24px 0 var(--primary), 0 10px 20px 0 rgba(78, 208, 242, 0.12);
}

.server-card,
.feature-card,
.mode-card,
.join-steps,
.stat {
  border: 2px solid rgba(78, 208, 242, 0.18);
  box-shadow: 0 0 8px 0 var(--primary), var(--shadow);
}

body:not(.dark) {
  /* Forza la dark mode sempre */
  background: var(--background) !important;
  color: var(--text) !important;
}

body,
body.dark {
  --background: linear-gradient(135deg, #0a0a17 0%, #181828 100%);
  --surface: rgba(20, 22, 28, 0.98);
  --surface-glass: rgba(35, 39, 42, 0.35);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.47);
  --shadow-hover: 0 15px 35px 0 rgba(0, 0, 0, 0.6);
}

body.dark {
  /* Rimuovi override inutili, la dark è sempre attiva */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--viking-pattern),
    radial-gradient(
      circle at 20% 80%,
      rgba(30, 198, 182, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 107, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(78, 205, 196, 0.08) 0%,
      transparent 50%
    );
  z-index: -1;
  animation: vikingShift 25s ease-in-out infinite,
    bgPulse 12s ease-in-out infinite alternate;
  filter: brightness(0.8) saturate(1.15);
}

/* Ultra-Modern Header */
.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  padding: 0;
  animation: slideDown 0.6s ease-out;
  left: 0;
  top: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* <---- cambia da space-between a flex-start */
  padding: 1rem 0 1rem 1rem;
  position: relative;
  width: 100%;
  gap: 1.5rem; /* aggiungi gap se vuoi più spazio tra logo e nav */
}

.nav-container {
  display: flex;
  align-items: center;
  /* width: 100%; */
  position: relative;
}

.nav-logo {
  margin-right: 1.5rem;
  margin-left: 0;
  padding-left: 0;
}

.nav-logo .logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(var(--shadow-glow));
  transition: var(--transition);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-logo .logo-img:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(30, 198, 182, 0.6));
}

.nav-menu {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius);
  padding: 0.5rem;
  border: 1px solid rgba(78, 208, 242, 0.2);
  box-shadow: var(--shadow);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-small);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.nav-link.active,
.nav-link:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.08) rotate(-2deg);
  box-shadow: 0 0 18px 0 var(--primary), var(--shadow-hover);
  filter: brightness(1.1) drop-shadow(0 0 8px var(--primary));
}

.nav-link {
  transition: var(--transition), filter 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Store Link - Special Styling */
.nav-link.store-link {
  background: var(--gradient-viking);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  animation: storeGlow 3s ease-in-out infinite;
  border: 2px solid var(--viking-gold);
}

@keyframes storeGlow {
  0%,
  100% {
    box-shadow: var(--shadow-glow);
  }
  50% {
    box-shadow: 0 0 25px #37add4cc, var(--shadow-hover);
  }
}

.nav-link.store-link::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  left: -100%;
}

.nav-link.store-link:hover::before {
  left: 100%;
}

.nav-link.store-link:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 0 30px #37add4cc, var(--shadow-hover);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
  transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid rgba(78, 208, 242, 0.1);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateX(5px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.8rem;
  border-radius: var(--radius-small);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  transition: var(--transition);
  z-index: -1;
}

.theme-toggle:hover::before {
  left: 0;
}

.theme-toggle:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-small);
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--surface-glass);
  transform: scale(1.1);
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger:hover span {
  background: var(--accent);
}

/* Ultra-Modern Hero Section */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--background);
  overflow: hidden;
  padding: 0;
}

/* VIDEO SFONDO SFOCATO PIÙ GRANDE DI TUTTO */
.hero-bg-blur-video,
.hero-background-video {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 200vw;
  height: 117vh;
  object-fit: cover;
  transform: translate(-50%, 0) scale(1.18);
  filter: blur(15px) brightness(0.62) saturate(1.12);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Per compatibilità con classi diverse: */
.hero-background-video {
  filter: blur(18px) brightness(0.55) saturate(1.2);
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  transform: none;
}

/* Tutto quello che NON è il video blur è sopra */
.hero > *:not(.hero-bg-blur-video):not(.hero-background-video) {
  position: relative;
  z-index: 2;
}

/* Effetto bagliore/gradienti decorativi sopra lo sfondo blur */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  animation: heroShimmer 8s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes heroShimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* CARD NITIDA DAVANTI */
.hero-card {
  position: relative;
  z-index: 3;
  border-radius: 20px;
  width: 85vw;
  max-width: 1300px;
  aspect-ratio: 16/7.5;
  box-shadow: 0 8px 32px #000a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-top: 180px;
  margin-bottom: -90px;
}

.hero-card-elevated {
  position: relative;
  z-index: 4;
  margin-top: 270px;
  margin-bottom: -120px;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.18) 60%,
    rgba(10, 10, 10, 0.32) 100%
  );
  pointer-events: none;
}

.hero-waves {
  position: absolute;
  left: 0;
  bottom: -2px; /* Regola quanto vuoi farla scendere */
  width: 100vw;
  height: 140px; /* Come il "height" dello SVG */
  z-index: 11;
  pointer-events: none;
  overflow: visible;
  display: block;
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: #111;
  overflow: visible;
  padding-bottom: 0;
}

.how-to-join {
  margin-top: 0;
  padding-top: 120px;
  border-top: none;
}

/* Video NITIDO SOLO nella card */
.hero-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.08) brightness(1.05);
}

/* Overlay scura opzionale per contrasto testo */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.1) 60%,
    rgba(10, 10, 10, 0.22) 100%
  );
  pointer-events: none;
}

/* CONTENUTO CENTRALE */
.hero-card-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2vw;
}

.hero-card-logo {
  width: 140px;
  max-width: 18vw;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 16px #000c);
}

.hero-card-text {
  font-size: 1.2rem;
  font-weight: 500;
  text-shadow: 0 2px 12px #000d;
  margin-bottom: 36px;
}

.hero-card-btn {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 18px 48px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 20px #0007;
  transition: background 0.15s, color 0.15s;
}
.hero-card-btn:hover {
  background: #fff;
  color: #0f1e2e;
}

/* CONTENUTO HERO AVANZATO (TITLE, LOGO FLOAT ecc) */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-logo {
  width: 140px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 32px rgba(255, 255, 255, 0.3));
  animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.05);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
  }
  75% {
    transform: translateY(-15px) scale(1.08);
  }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 1rem 0;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, #f0f8ff 50%, #e6f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}
@keyframes titleGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
  }
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.player-count {
  font-weight: 800;
  color: var(--warning);
  background: rgba(254, 202, 87, 0.2);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-small);
  display: inline-block;
  animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cta-button {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  transition: var(--transition);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.08) rotate(-2deg);
  box-shadow: 0 0 32px 0 var(--primary), 0 20px 40px 0 rgba(78, 208, 242, 0.18);
  filter: brightness(1.1) drop-shadow(0 0 12px var(--primary));
}

.cta-button {
  transition: var(--transition), filter 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  animation: ctaPulse 2.5s infinite alternate cubic-bezier(0.4, 0.2, 0.2, 1);
}
@keyframes ctaPulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 0px var(--primary));
  }
  100% {
    filter: brightness(1.08) drop-shadow(0 0 16px var(--primary));
  }
}

/* Ultra-Modern How to Join Section */
.how-to-join {
  background: #181a20 !important;
  backdrop-filter: none !important;
  padding: 5rem 0 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  position: relative;
  min-height: 480px;
  z-index: 0;
}

.hero {
  overflow: hidden !important;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  /* 1) Rimuovo margin/padding top ereditati */
  section#main-content.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 2) Il container .hero diventa il reference per il video */
  .hero {
    position: relative !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  /* 3) Video sfocato di background = absolute dentro .hero */
  .hero-bg-blur-video {
    position: absolute !important;
    inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
    background: #181a20 !important;
    filter: blur(14px) brightness(0.7) saturate(1.1) !important;
  }

  /* 4) Card sospesa sopra il video */
  .hero-card {
    margin: 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 92vw !important;
    max-width: 99vw !important;
    aspect-ratio: 9/16 !important;
    min-height: 60vw !important;
    height: auto !important;
    background: rgba(18, 18, 25, 0.89) !important;
    box-shadow: 0 8px 32px #000a !important;
    z-index: 2 !important;
    overflow: hidden !important;
    display: block !important;
    border-radius: 18px !important;
    top: 0 !important;
  }

  /* 5) Video nitido dentro la card */
  .hero-card-video.hero-video-mobile {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 1 !important;
    filter: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
  }

  /* Overlay e contenuti card */
  .hero-card-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.18) 60%,
      rgba(10, 10, 10, 0.32) 100%
    ) !important;
    pointer-events: none !important;
  }

  .hero-card-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.2rem 0.2rem !important;
    text-align: center !important;
  }

  .hero-card-logo {
    width: 70px !important;
    max-width: 60vw !important;
    margin-bottom: 1rem !important;
    filter: drop-shadow(0 2px 16px #000c) !important;
  }

  .hero-card-text {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 10px #000b !important;
    color: #fff !important;
    max-width: 95vw !important;
    margin: 0 auto !important;
    padding: 0 0.5rem !important;
  }
}

@media (max-width: 768px) {
  /* Improved hamburger styling */
  .nav-actions .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; /* slightly wider for better finger tap */
    height: 24px; /* slightly taller */
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.08); /* subtle glass */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
  }
  .nav-actions .hamburger span {
    display: block;
    width: 100%;
    height: 2px; /* thin lines for modern look */
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
    margin: 2px 0; /* even spacing */
  }

  /* Lower store button slightly for visual alignment */
  .store-top-btn {
    position: absolute;
    top: 32px !important; /* moved down from 8px */
    right: 8px;
  }

  /* Menu hidden by default */
  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--surface-glass);
    backdrop-filter: var(--backdrop-blur);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-menu.active {
    display: flex;
  }

  /* Mobile nav items */
  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.8rem 1rem;
  }

  /* Dropdown mobile styles */
  .dropdown-toggle::after {
    margin-left: auto;
  }

  .nav-item.dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0 0 1rem;
    border-radius: var(--radius-small);
    box-shadow: none;
    border: 1px solid rgba(78, 208, 242, 0.1);
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: flex;
  }

  .nav-item.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Di default: mostra solo i video desktop */
.hero-video-desktop {
  display: block;
}
.hero-video-mobile {
  display: none;
}

/* Su schermi <= 600px: mostra solo i video mobile */
@media (max-width: 600px) {
  .hero-video-desktop {
    display: none !important;
  }
  .hero-video-mobile {
    display: block !important;
  }
  .hero-video-mobile,
  .hero-card-video.hero-video-mobile {
    width: 100vw !important;
    height: auto !important;
    aspect-ratio: 9/16 !important;
    object-fit: cover !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: relative !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: #181a20 !important;
  }
}

.how-to-join::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(30, 198, 182, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(255, 107, 107, 0.05) 0%,
      transparent 50%
    );
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-align: center;
  animation: titleSlideIn 0.8s ease-out;
}

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

.section-description {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.server-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.server-card {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.server-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-success);
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.server-card:hover::before {
  left: 0;
}

.server-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.server-ip-container {
  width: 100%;
  margin-bottom: 1.5rem;
}

.server-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.server-detail .label {
  font-weight: 700;
  color: var(--primary);
}

.server-detail .value {
  font-weight: 600;
  font-family: "Courier New", monospace;
  background: rgba(30, 198, 182, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-small);
}

.copy-ip-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-small);
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.copy-ip-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  transition: var(--transition);
}

.copy-ip-btn:hover::before {
  left: 100%;
}

.copy-ip-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.version-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--success);
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(72, 202, 228, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.join-steps {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.join-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.join-steps:hover::before {
  left: 0;
}

.join-steps:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.join-steps h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.join-steps ol {
  margin: 0;
  padding-left: 0;
  color: var(--text);
  font-size: 1.1rem;
  list-style: none;
  counter-reset: step-counter;
}

.join-steps ol li {
  counter-increment: step-counter;
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
  line-height: 1.5;
}

.join-steps ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Ultra-Modern Game Modes Section */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800;900&display=swap");

.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-card {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(78, 208, 242, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 420px;
  width: 100%;
  position: relative;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.slide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 208, 242, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(78, 208, 242, 0.15), var(--shadow-hover);
  border-color: rgba(78, 208, 242, 0.4);
}

.slide-card:hover::before {
  left: 100%;
}

.slide-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(1) contrast(1) saturate(1);
}

.slide-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.slide-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 2px 8px rgba(78, 208, 242, 0.3);
}

.slide-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
  letter-spacing: -0.3px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
}

.slide-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 400;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- FEATURE TAGS --- */
.slide-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: rgba(78, 208, 242, 0.1);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-small);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(78, 208, 242, 0.15);
  transition: all 0.3s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.1px;
}

.feature-tag:hover {
  background: rgba(78, 208, 242, 0.15);
  border-color: rgba(78, 208, 242, 0.25);
  transform: translateY(-1px);
}

/* --- DOTS DEL CAROUSEL --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 3rem 0 0 0;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(78, 208, 242, 0.3);
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}

.carousel-dots .dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-dots .dot:hover {
  border-color: rgba(78, 208, 242, 0.6);
  transform: scale(1.1);
}

.carousel-dots .dot:hover::before {
  width: 6px;
  height: 6px;
}

.carousel-dots .dot.active {
  border-color: var(--primary);
  background: rgba(78, 208, 242, 0.1);
}

.carousel-dots .dot.active::before {
  width: 8px;
  height: 8px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(88, 101, 242, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  outline: none;
  position: relative;
}

.carousel-dots .dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(88, 101, 242, 0.2);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s ease;
}

.carousel-dots .dot:hover::after {
  opacity: 1;
}

.carousel-dots .dot.active {
  background: #5865f2;
  transform: scale(1.2);
}

.carousel-dots .dot.active::after {
  opacity: 1;
  border-color: #5865f2;
}

@media (max-width: 768px) {
  .carousel-slide {
    padding: 0 1rem;
  }

  .slide-card {
    max-width: 100%;
  }

  .slide-card img {
    height: 200px;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }
}

.game-modes {
  background: var(--surface);
  padding: 6rem 0 6rem 0;
  position: relative;
  overflow: hidden;
  font-family: "Nunito", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 480px;
}

.game-modes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(88, 101, 242, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(88, 101, 242, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.game-modes::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 8%;
  width: 200px;
  height: 200px;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(88, 101, 242, 0.04) 50%,
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.section-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #2c2f36;
  letter-spacing: -1px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  line-height: 0.9;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #5865f2;
  border-radius: 2px;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #72767d;
  max-width: 650px;
  margin: 0 auto 5rem auto;
  line-height: 1.7;
  font-weight: 400;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.modes-grid {
  display: grid;
  place-items: center;
  margin-top: 0;
}

.mode-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.mode-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.mode-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(1.02) contrast(1.02);
}

.featured-mode {
  grid-column: 1 / -1;
  max-width: 800px;
  width: 100%;
}

@media (max-width: 768px) {
  .game-modes {
    padding: 5rem 0;
  }

  .mode-image {
    height: 260px;
  }

  .featured-mode {
    max-width: 100%;
  }
}

.featured-mode .mode-image {
  height: 320px;
}

.mode-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mode-features .feature {
  background: rgba(88, 101, 242, 0.1);
  color: #5865f2;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(88, 101, 242, 0.15);
  transition: all 0.3s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.1px;
}

.mode-features .feature:hover {
  background: rgba(88, 101, 242, 0.15);
  transform: translateY(-1px);
}

/* Viking Features Grid */
.viking-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-viking);
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover::before {
  left: 0;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.07) rotate(-1deg);
  box-shadow: 0 0 18px 0 var(--primary), var(--shadow-hover);
  border-color: var(--viking-gold);
  filter: brightness(1.08) drop-shadow(0 0 8px var(--primary));
}

.feature-card {
  transition: var(--transition), filter 0.3s cubic-bezier(0.4, 0.2, 0.2, 1);
  animation: cardFloat 4s infinite alternate cubic-bezier(0.4, 0.2, 0.2, 1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h4 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* Survey Announcement Section */
/* Survey Announcement Section */
.survey-announcement {
  background: linear-gradient(135deg, #1a1d23 0%, #23272a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(78, 208, 242, 0.1);
  border-bottom: 1px solid rgba(78, 208, 242, 0.1);
}

.survey-announcement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(212, 175, 55, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(78, 208, 242, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
  animation: surveyGlow 8s ease-in-out infinite;
}

@keyframes surveyGlow {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.survey-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.survey-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.survey-icon {
  font-size: 4rem;
  color: var(--viking-gold);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
  animation: surveyIconFloat 3s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

@keyframes surveyIconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.survey-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
  animation: surveyGlowPulse 2s ease-in-out infinite;
}

@keyframes surveyGlowPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.3;
  }
}

.survey-info {
  text-align: left;
}

.survey-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.survey-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.survey-description {
  font-size: 1.2rem;
  color: #b8c5d6;
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.survey-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.survey-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.survey-feature i {
  font-size: 1.2rem;
  color: var(--viking-gold);
}

.survey-button {
  background: linear-gradient(135deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.survey-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.survey-button:hover::before {
  left: 100%;
}

.survey-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.survey-button i {
  font-size: 1.2rem;
}

.button-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.survey-button:hover .button-arrow {
  transform: translateX(5px);
}

.survey-decoration {
  position: relative;
  width: 200px;
  height: 200px;
}

.survey-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--viking-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.particle-1 {
  top: 20%;
  left: 30%;
  animation: particleFloat1 4s ease-in-out infinite;
}

.particle-2 {
  top: 60%;
  right: 20%;
  animation: particleFloat2 5s ease-in-out infinite;
}

.particle-3 {
  bottom: 30%;
  left: 50%;
  animation: particleFloat3 6s ease-in-out infinite;
}

@keyframes particleFloat1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.5);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.8);
  }
}

@keyframes particleFloat2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 20px) scale(1.3);
  }
  66% {
    transform: translate(20px, -40px) scale(0.9);
  }
}

@keyframes particleFloat3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(25px, 35px) scale(1.4);
  }
  66% {
    transform: translate(-35px, -25px) scale(0.7);
  }
}

/* Responsive Survey Section */
@media (max-width: 992px) {
  .survey-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .survey-info {
    text-align: center;
  }

  .survey-title {
    justify-content: center;
  }

  .survey-features {
    justify-content: center;
  }

  .survey-icon-wrapper {
    margin: 0 auto;
  }

  .survey-decoration {
    display: none;
  }
}

@media (max-width: 768px) {
  .survey-announcement {
    padding: 3rem 0;
  }

  .survey-title {
    font-size: 2rem;
  }

  .survey-description {
    font-size: 1.1rem;
  }

  .survey-icon {
    font-size: 3rem;
  }

  .survey-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .survey-features {
    gap: 1rem;
  }

  .survey-feature {
    font-size: 0.9rem;
  }

  .survey-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .survey-features {
    flex-direction: column;
    align-items: center;
  }
}

/* Survey Notification Indicator */
.survey-notification {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 11000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: notificationSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.survey-notification.hiding {
  animation: notificationSlideOut 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes notificationSlideIn {
  0% {
    transform: translateX(-100px) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateX(10px) scale(1.1);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes notificationSlideOut {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-100px) scale(0);
    opacity: 0;
  }
}

.survey-notification:hover {
  transform: scale(1.1);
}

.notification-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4),
              0 0 40px rgba(212, 175, 55, 0.2);
  animation: notificationBounce 2s ease-in-out infinite;
}

.notification-icon i {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes notificationBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(3px);
  }
}

.notification-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--viking-gold) 0%, var(--viking-bronze) 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: notificationPulse 2s ease-out infinite;
}

@keyframes notificationPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.notification-text {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 27, 33, 0.95);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.notification-text::after {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(23, 27, 33, 0.95);
}

.survey-notification:hover .notification-text {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .survey-notification {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .notification-icon {
    width: 40px;
    height: 40px;
  }

  .notification-icon i {
    font-size: 1.2rem;
  }

  .notification-text {
    left: 50px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 600px) {
  .survey-notification {
    bottom: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
  }

  .notification-icon {
    width: 35px;
    height: 35px;
  }

  .notification-icon i {
    font-size: 1rem;
  }

  .notification-text {
    display: none;
  }
}

/* Ultra-Modern Discord Section */
.discord-section {
  background: linear-gradient(135deg, #1a2332 0%, #23272a 100%);
  color: #fff;
  padding: 5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

/* Effetto stelle subtle */
.discord-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(1px 1px at 40px 70px, rgba(0, 191, 255, 0.15), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(135, 206, 235, 0.1), transparent);
  background-repeat: repeat;
  background-size: 100px 100px;
  animation: starsShimmer 20s linear infinite;
  pointer-events: none;
}

@keyframes starsShimmer {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.3;
  }
}

.discord-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.discord-info {
  max-width: 600px;
}

/* Titolo in linea con il sito */
.discord-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #00bfff;
  text-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
  position: relative;
  line-height: 1.2;
}

.discord-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  color: #e6f7ff;
  font-weight: 400;
}

/* Stats ridimensionate */
.discord-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  background: rgba(0, 191, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.2);
  border-color: rgba(0, 191, 255, 0.4);
}

.stat i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #00bfff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #00bfff;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
  color: #b8e6ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bottone in stile del sito */
.discord-button {
  background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.discord-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.discord-button:hover::before {
  left: 100%;
}

.discord-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.discord-button i {
  font-size: 1.2rem;
}

/* Widget Discord */
.discord-widget {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  transition: all 0.3s ease;
}

.discord-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 191, 255, 0.2);
}

.discord-widget iframe {
  border-radius: 19px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .discord-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .discord-info h2 {
    font-size: 2.2rem;
  }

  .discord-stats {
    max-width: 500px;
    margin: 0 auto 2rem auto;
  }
}

@media (max-width: 768px) {
  .discord-section {
    padding: 3rem 0;
  }

  .discord-content {
    padding: 0 1rem;
  }

  .discord-info h2 {
    font-size: 1.8rem;
  }

  .discord-info p {
    font-size: 1rem;
  }

  .discord-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .discord-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .discord-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 1rem 0.5rem;
  }

  .stat i {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* Ultra-Modern Footer */
.footer {
  position: relative;
  background: #181a20;
  color: #e6e6f0;
  font-family: "Nunito", "Inter", Arial, sans-serif;
  padding: 4rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(30, 198, 182, 0.02) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  padding: 0;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.footer-logo {
  width: 64px;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-description {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(30, 198, 182, 0.1);
  border-color: rgba(30, 198, 182, 0.3);
  color: #1ec6b6;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: block;
}

.footer-links a:hover {
  color: #1ec6b6;
}

.footer-support p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: #9ca3af;
  line-height: 1.5;
}

.store-button {
  background: linear-gradient(135deg, #1ec6b6, #2389f1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(30, 198, 182, 0.2);
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 198, 182, 0.3);
}

.footer-madeby {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-madeby a {
  color: hwb(188 0% 17%);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-madeby a:hover {
  color: hwb(188 0% 17%);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-bottom-links a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #1ec6b6;
}

/* Responsive */
@media (max-width: 1050px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .footer {
    padding: 2rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Ultra-Modern Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  transform: translateY(100px) scale(0.97);
  background: linear-gradient(90deg, #68e8fd 0%, #4ed0f2 100%);
  color: #fff;
  padding: 1.1rem 2rem 1.1rem 2.8rem;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 #39e5ff45, 0 2px 6px 0 #4ed0f242;
  font-size: 1.14rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
  max-width: 96vw;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  border: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.toast .toast-icon {
  margin-right: 0.65em;
  font-size: 1.3em;
  color: #fff;
  background: none;
}

/* Ultra-Modern Responsive Design */
@media (max-width: 1200px) {
  .discord-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .discord-image img {
    width: 250px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .server-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .discord-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2rem 0;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-logo {
    width: 100px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .discord-info h2 {
    font-size: 2rem;
  }

  .discord-image img {
    width: 200px;
  }

  .modes-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

/* ===== Ultra-Modern Dark Mode ===== */
/* RIMOSSO: la dark mode è sempre attiva, non serve più la classe body.dark */

/* ===== Scrollbar Custom ===== */
::-webkit-scrollbar {
  width: 12px;
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--viking-gold) 100%
  );
  border-radius: 8px;
  border: 2px solid #181828;
  box-shadow: 0 0 8px var(--primary), 0 0 2px var(--viking-gold);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 100%
  );
  box-shadow: 0 0 16px var(--primary), 0 0 4px var(--viking-gold);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #181828;
}

/*RAFFA */
/* SEZIONE JOIN PRO ULTRA MODERNA */

.join-two-cols-pro {
  display: flex;
  gap: 5.2rem;
  align-items: stretch;
  justify-content: center;
  min-height: 420px;
  margin-bottom: 5rem;
}
.join-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.join-left {
  min-width: 330px;
  max-width: 390px;
  align-items: center;
  justify-content: center;
  padding-right: 2.3rem;
  z-index: 2;
}
.skin-mascotte-bg {
  position: relative;
  width: 190px;
  height: 225px;
  margin-bottom: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.skin-mascotte-img {
  width: 145px;
  height: 200px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 6px 40px #51caf7b2) drop-shadow(0 8px 30px #2a2a5a48);
  transform: rotate(-7deg); /* RIMOSSO scaleX(-1)! */
  user-select: none;
  pointer-events: none;
  position: relative;
}
.skin-mascotte-glow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, #39e5ffbb 0%, #0f1a1f00 75%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(10px);
  pointer-events: none;
}
.skin-mascotte-floor {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  background: radial-gradient(ellipse at center, #262c3a 55%, #18181d00 100%);
  opacity: 0.85;
  border-radius: 50%;
  filter: blur(0.5px);
  z-index: 0;
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.6em;
  text-align: center;
}
.accent-hero {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.join-desc {
  font-size: 1.13rem;
  font-weight: 500;
  opacity: 0.97;
  margin-bottom: 1.1em;
  text-align: center;
}
.join-right.join-box-pro {
  background: linear-gradient(135deg, #171e25e9 90%, #252d41e9 100%);
  border-radius: 28px;
  box-shadow: 0 8px 56px 0 rgba(44, 47, 52, 0.18), var(--shadow);
  padding: 2.5rem 2.3rem 2.3rem 2.3rem;
  border: 1.7px solid rgba(255, 255, 255, 0.13);
  min-width: 340px;
  max-width: 440px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}
.server-badge-pro {
  margin-bottom: 1.08em;
  margin-top: -1.3em;
}
.badge-version {
  display: inline-block;
  background: var(--gradient-success);
  color: #0b1222;
  font-weight: bold;
  font-size: 1.09rem;
  border-radius: 13px;
  padding: 8px 22px;
  box-shadow: 0 4px 16px 0 rgba(78, 208, 242, 0.14);
}
.ip-box-pro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 2.2em;
  margin-top: 0.4em;
  width: 100%;
}
.ip-label {
  color: var(--primary);
  margin-right: 0.35em;
}
.ip-value {
  font-family: "Courier New", monospace;
  background: #131e28;
  color: #fff;
  font-size: 1.17em;
  letter-spacing: 0.03em;
  padding: 4px 14px;
  border-radius: 7px;
  margin-right: 0.5em;
  border: 1.5px solid #4ed0f2cc;
  box-shadow: 0 2px 10px 0 #4ed0f220;
}
.copy-icon-btn {
  background: none;
  border: none;
  color: var(--primary);
  margin-left: 0.3em;
  font-size: 1.28em;
  cursor: pointer;
  padding: 0.19em 0.45em;
  border-radius: 8px;
  transition: background 0.18s, color 0.12s;
  box-shadow: 0 2px 12px 0 #4ed0f250;
}
.copy-icon-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 22px 0 var(--primary);
}
.join-steps-pro {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  width: 100%;
}
.join-steps-pro li {
  counter-increment: step;
  font-size: 1.13em;
  font-weight: 500;
  margin-bottom: 1.2em;
  display: flex;
  align-items: flex-start;
  gap: 0.18em; /* Molto più stretto */
  flex-wrap: wrap;
}
.join-steps-pro li::before {
  content: counter(step) ".";
  font-weight: bold;
  font-size: 1.22em;
  color: #4ed0f2;
  display: inline-block;
  min-width: 1.6em;
}
.step-accent {
  color: #4ed0f2;
  font-weight: 900;
  font-size: 1.02em;
  /* rimosso margin-left! */
  padding: 0;
  display: inline;
}
@media (max-width: 1050px) {
  .join-two-cols-pro {
    flex-direction: column;
    gap: 2.7rem;
  }
  .join-left {
    align-items: center;
    padding-right: 0;
  }
  .join-box-pro {
    width: 100%;
    min-width: 0;
  }
  .skin-mascotte-bg {
    margin: 0 auto 1.2rem auto;
  }
}

/* STORE BUTTON RAFFA */
.store-top-btn {
  position: fixed;
  top: 20px;
  right: 32px;
  margin-top: 14px;
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #23242a;
  border-radius: 999px;
  padding: 0.4em 1.28em 0.4em 0.95em;
  font-size: 1.02rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  height: 38px;
  min-width: 80px;
  box-shadow: 0 0 0 0 #ffe49d00;
  border: 2px solid #ffd86b45;
  transition: background 0.18s, box-shadow 0.18s, color 0.13s, border 0.15s;
}
.store-top-btn .cart-navbar-icon {
  font-size: 1.13em;
  color: #ffd86b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s;
}
.store-top-btn .store-navbar-text {
  font-weight: 900;
  font-size: 1em;
  letter-spacing: 1px;
  line-height: 1.03em;
  white-space: nowrap;
  transition: color 0.12s;
}
.store-top-btn:hover,
.store-top-btn:focus {
  background: #28292e;
  color: #ffd86b;
  box-shadow: 0 2px 16px 0 #ffe49d30;
  border: 2px solid #ffd86bcc;
}
.store-top-btn:hover .cart-navbar-icon,
.store-top-btn:focus .cart-navbar-icon {
  color: #ffd86b;
}
.store-top-btn:hover .store-navbar-text,
.store-top-btn:focus .store-navbar-text {
  color: #ffd86b;
}

@media (max-width: 900px) {
  .store-top-btn {
    font-size: 0.95rem;
    padding: 0.34em 0.8em 0.34em 0.58em;
    height: 31px;
    min-width: 64px;
    right: 8px;
    margin-top: 7px;
  }
  .store-top-btn .cart-navbar-icon {
    font-size: 0.99em;
  }
  .store-top-btn .store-navbar-text {
    font-size: 0.94em;
  }
}

/* --- VIKING PARTICLES --- */
.viking-particles-modern {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Particelle dietro ai contenuti */
  overflow: hidden;
  opacity: 0.62; /* più visibili per test */
  filter: blur(0.06px) saturate(1.11);
  mix-blend-mode: luminosity;
}

.viking-particle-svg {
  position: absolute;
  width: 9px;
  height: 9px;
  opacity: 0.89;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 4px #ffe49d32);
  animation: viking-chaos-move 6s linear infinite;
}
.viking-particle-svg.rune {
  filter: drop-shadow(0 0 7px #7cc3fd44);
}
.viking-particle-svg.gold {
  filter: drop-shadow(0 0 6px #ffd70066);
}
.viking-particle-svg.elmo {
  filter: drop-shadow(0 0 6px #b2a86b77);
}
.viking-particle-svg.cor {
  filter: drop-shadow(0 0 6px #efda9e66);
}
.viking-particle-svg.scudo {
  filter: drop-shadow(0 0 7px #ae864b77);
}
@keyframes viking-chaos-move {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  12% {
    opacity: 0.95;
  }
  33% {
    transform: translate(var(--dx1, 0), var(--dy1, 0)) scale(1.09)
      rotate(var(--rot1, 9deg));
  }
  62% {
    transform: translate(var(--dx2, 0), var(--dy2, 0)) scale(0.93)
      rotate(var(--rot2, -15deg));
  }
  80% {
    opacity: 0.93;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx3, 0), var(--dy3, 0)) scale(1.11)
      rotate(var(--rot3, 17deg));
  }
}

.hero-card,
.hero-card-content,
.container,
.section-title,
.section-description,
.footer {
  position: relative;
}

/* Copertura video su mobile: forza background opaco e z-index */
@media (max-width: 600px) {
  .how-to-join {
    background: #181a20 !important;
    z-index: 0 !important;
    position: relative !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
  .hero {
    position: relative !important;
    z-index: 1 !important;
  }
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .store-top-btn {
    font-size: 0.85rem;
    padding: 0.25em 0.6em 0.25em 0.45em;
    height: 28px;
    min-width: 54px;
    right: 4px;
    top: 8px;
  }
  .store-top-btn .cart-navbar-icon {
    font-size: 0.85em;
  }
  .store-top-btn .store-navbar-text {
    font-size: 0.82em;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.7rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .footer {
    padding: 1rem 0 0.7rem;
  }
  .hero-card-content {
    padding: 0.7rem;
  }
  button,
  .cta-button,
  .copy-ip-btn,
  .store-button,
  .discord-button {
    min-height: 44px;
    font-size: 1em;
  }
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    border-radius: 12px;
    background: var(--surface-glass);
    box-shadow: 0 2px 8px #0002;
    z-index: 10001;
  }
  .hamburger span {
    height: 4px;
    width: 28px;
  }
}

/* Migliora responsività per schermi molto piccoli */
@media (max-width: 600px) {
  .join-two-cols-pro {
    flex-direction: column;
    gap: 1.2rem;
    min-height: unset;
    margin-bottom: 2rem;
  }
  .join-left,
  .join-right.join-box-pro {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.5rem;
    align-items: center;
    justify-content: center;
  }
  .join-right.join-box-pro {
    padding: 1.2rem 0.7rem;
    border-radius: 18px;
  }
  .skin-mascotte-bg {
    width: 120px;
    height: 140px;
    margin: 0 auto 1rem auto;
  }
  .skin-mascotte-img {
    width: 90px;
    height: 120px;
  }
  .ip-box-pro {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  .join-steps-pro li {
    font-size: 1em;
    flex-wrap: wrap;
  }
}

/* PAGINA REGOLE -----------------------------------------------------------------------------------------------
/* ===== PAGINA REGOLE - DESIGN ULTRA MODERNO 2025 ===== */

/* Container principale con effetto glassmorphism */
.rules-section {
  background: linear-gradient(
    135deg,
    rgba(23, 27, 33, 0.95) 0%,
    rgba(35, 39, 47, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), 0 0 120px rgba(78, 208, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 10rem auto 5rem auto;
  padding: 0;
  position: relative;
  z-index: 2;
  max-width: 1600px;
  overflow: hidden;
  border: 1px solid rgba(78, 208, 242, 0.2);
}

/* Effetti di sfondo animati */
.rules-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(78, 208, 242, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    );
  animation: rulesGradientShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rulesGradientShift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

/* Layout principale con sidebar moderna */
.rules-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: auto;
  min-height: 600px;
  position: relative;
}

/* ===== SIDEBAR ULTRA MODERNA ===== */
.rules-sidebar {
  background: linear-gradient(
    180deg,
    rgba(30, 34, 40, 0.9) 0%,
    rgba(25, 28, 33, 0.95) 100%
  );
  backdrop-filter: blur(15px);
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(78, 208, 242, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

/* Pattern decorativo sidebar */
.rules-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(78, 208, 242, 0.03) 35px,
    rgba(78, 208, 242, 0.03) 70px
  );
  pointer-events: none;
}

/* Bottoni sidebar con effetto neon */
.rules-sidebar-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Effetto glow al hover */
.rules-sidebar-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(78, 208, 242, 0.4) 0%,
    transparent 70%
  );
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.rules-sidebar-btn:hover::before {
  width: 200%;
  height: 200%;
}

.rules-sidebar-btn:hover {
  color: #ffffff;
  transform: translateX(8px);
  border-color: rgba(78, 208, 242, 0.4);
  box-shadow: 0 8px 25px rgba(78, 208, 242, 0.2),
    inset 0 0 20px rgba(78, 208, 242, 0.1);
}

/* Stato attivo con effetto neon */
.rules-sidebar-btn.active {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2) 0%,
    rgba(46, 203, 255, 0.15) 100%
  );
  color: #4ed0f2;
  border-color: rgba(78, 208, 242, 0.5);
  box-shadow: 0 0 30px rgba(78, 208, 242, 0.3),
    inset 0 0 20px rgba(78, 208, 242, 0.1), 0 0 60px rgba(78, 208, 242, 0.1);
  transform: translateX(8px);
}

.rules-sidebar-btn.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, transparent, #4ed0f2, transparent);
  transform: translateY(-50%);
  box-shadow: 0 0 10px #4ed0f2;
}

/* Icone con animazione */
.rules-sidebar-btn i {
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px currentColor);
}

.rules-sidebar-btn:hover i,
.rules-sidebar-btn.active i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 8px currentColor);
}

/* ===== CONTENUTO PRINCIPALE ===== */
.rules-content {
  background: rgba(28, 32, 38, 0.6);
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  max-height: 800px;
}

/* Scrollbar personalizzata */
.rules-content::-webkit-scrollbar {
  width: 10px;
}

.rules-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
}

.rules-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4ed0f2, #2ecbff);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(78, 208, 242, 0.3);
}

/* Sezioni contenuto */
.rules-section-content {
  display: none;
  animation: contentReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rules-section-content.active {
  display: block;
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ===== TITOLI SEZIONI ===== */
.rules-section-content h1,
.rules-section-content h2 {
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ed0f2 0%, #ffffff 50%, #4ed0f2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(78, 208, 242, 0.5);
  animation: titleGradientFlow 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

@keyframes titleGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Linea decorativa sotto i titoli */
.rules-section-content h1::after,
.rules-section-content h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4ed0f2, transparent);
  animation: lineFlow 2s ease-in-out infinite;
}

@keyframes lineFlow {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* ===== SEZIONE HOME ===== */
#rules-home {
  text-align: center;
  padding: 3rem 2rem;
}

#rules-home h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

#rules-home .section-description {
  color: #b8c5d6;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
  opacity: 0.9;
}

/* Bottoni azione con effetto olografico */
.rules-btns-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.rules-btns-row a {
  background: linear-gradient(135deg, #4ed0f2 0%, #2ecbff 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(78, 208, 242, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

.rules-btns-row a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.rules-btns-row a:hover::before {
  left: 100%;
}

.rules-btns-row a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(78, 208, 242, 0.4),
    0 0 60px rgba(78, 208, 242, 0.2);
}

/* ===== LISTA REGOLE GAMING STYLE ===== */
.rules-gaming-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 2rem 0;
}

/* Card regola con effetto 3D */
.rule-item {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.2rem;
  border: 1px solid rgba(78, 208, 242, 0.15);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg);
}

/* Effetto olografico al hover */
.rule-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(78, 208, 242, 0.05);
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.rule-item:hover::before {
  opacity: 1;
}

.rule-item:hover::before {
  opacity: 0.6;
  animation: holographicRotate 2s linear infinite;
}

@keyframes holographicRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rule-item:hover {
  transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
  box-shadow: 0 20px 40px rgba(78, 208, 242, 0.3),
    0 0 60px rgba(78, 208, 242, 0.1);
  border-color: rgba(78, 208, 242, 0.3);
}

/* Icona con effetto pulse */
.rule-item-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #4ed0f2, #2ecbff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(78, 208, 242, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.rule-item-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: inherit;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.rule-item:hover .rule-item-icon {
  transform: scale(1.15) rotate(15deg);
  box-shadow: 0 12px 35px rgba(78, 208, 242, 0.5),
    0 0 40px rgba(78, 208, 242, 0.3);
}

/* Testo regola */
.rule-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rule-item-text p {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rule-item-text small {
  color: #94a3b8;
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Badge sanzione con effetto neon */
.rule-item-sanction {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

/* Effetto shimmer per sanzioni */
.rule-item-sanction::before {
  display: none;
}

/* Varianti sanzioni con glow */
.sanction-high {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.2) 100%
  );
  color: #ff6b6b;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3),
    inset 0 0 15px rgba(239, 68, 68, 0.1);
}

.sanction-medium {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.2) 0%,
    rgba(245, 158, 11, 0.2) 100%
  );
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3),
    inset 0 0 15px rgba(251, 191, 36, 0.1);
}

.sanction-low {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(22, 163, 74, 0.2) 100%
  );
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3),
    inset 0 0 15px rgba(34, 197, 94, 0.1);
}

.sanction-blacklist {
  background: linear-gradient(
    135deg,
    rgba(127, 29, 29, 0.3) 0%,
    rgba(153, 27, 27, 0.3) 100%
  );
  color: #ff4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4),
    inset 0 0 20px rgba(239, 68, 68, 0.2);
  animation: blacklistPulse 2s ease-in-out infinite;
}

@keyframes blacklistPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4),
      inset 0 0 20px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.6),
      inset 0 0 25px rgba(239, 68, 68, 0.3);
  }
}

.sanction-warning {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(79, 70, 229, 0.2) 100%
  );
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
    inset 0 0 15px rgba(99, 102, 241, 0.1);
}

.rule-item:hover .rule-item-sanction {
  transform: scale(1.05) translateX(-5px);
}

/* ===== SEZIONE DISCORD ===== */
#rules-discord .rule-item-icon {
  background: linear-gradient(135deg, #5865f2, #7289da);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

#rules-discord h2 {
  background: linear-gradient(135deg, #5865f2 0%, #ffffff 50%, #7289da 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SEZIONE SURVIVAL ===== */
#rules-survival .rule-item-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

#rules-survival h2 {
  background: linear-gradient(135deg, #22c55e 0%, #ffffff 50%, #16a34a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SEZIONE CLIENT ===== */
.rules-client-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

/* Card client con effetto vetro */
.rules-client-col {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(78, 208, 242, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Indicatore colorato in alto */
.rules-client-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4ed0f2, #2ecbff);
  box-shadow: 0 0 20px currentColor;
}

.rules-client-col:first-child::before {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.rules-client-col:last-child::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.rules-client-col:hover {
  transform: translateY(-8px) rotateX(-5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(78, 208, 242, 0.1);
}

/* Titoli colonne */
.rules-client-col h4 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.rules-client-col:first-child h4 {
  color: #22c55e;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.rules-client-col:last-child h4 {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Lista client */
.rules-client-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rules-client-col li {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Effetto hover shimmer */
.rules-client-col li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.rules-client-col li:hover::before {
  left: 100%;
}

/* Client ammessi */
.rules-client-col li.allowed {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2) 0%,
    rgba(22, 163, 74, 0.2) 100%
  );
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.1);
}

.rules-client-col li.allowed:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.3) 0%,
    rgba(22, 163, 74, 0.3) 100%
  );
  transform: scale(1.05) translateX(5px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3),
    inset 0 0 25px rgba(34, 197, 94, 0.15);
}

/* Client bannati */
.rules-client-col li.banned {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.2) 0%,
    rgba(220, 38, 38, 0.2) 100%
  );
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.1);
}

.rules-client-col li.banned:hover {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.3) 0%,
    rgba(220, 38, 38, 0.3) 100%
  );
  transform: scale(1.05) translateX(-5px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3),
    inset 0 0 25px rgba(239, 68, 68, 0.15);
}

/* Box avviso mod */
.rules-client-mod {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  color: #fbbf24;
  font-weight: 600;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2),
    inset 0 0 30px rgba(251, 191, 36, 0.1);
}

.rules-client-mod::before {
  content: "⚠️";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 5rem;
  opacity: 0.1;
  transform: rotate(15deg);
}

.rules-client-mod b {
  color: #fde047;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

/* ===== LISTA STANDARD PER DISCORD/SURVIVAL ===== */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rules-list li {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.8) 0%,
    rgba(35, 39, 47, 0.8) 100%
  );
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid rgba(78, 208, 242, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.05rem;
  line-height: 1.7;
}

.rules-list li::before {
  content: "▸";
  position: absolute;
  left: 1rem;
  color: #4ed0f2;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.rules-list li:hover {
  transform: translateX(10px);
  border-color: rgba(78, 208, 242, 0.3);
  box-shadow: 0 8px 25px rgba(78, 208, 242, 0.15),
    inset 0 0 20px rgba(78, 208, 242, 0.05);
}

.rules-list li:hover::before {
  transform: translateX(5px);
  color: #ffffff;
}

.rules-list li strong {
  color: #4ed0f2;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(78, 208, 242, 0.3);
}

/* Lista annidata */
.rules-list ul {
  margin-top: 1rem;
  margin-bottom: 0;
  padding-left: 2rem;
  list-style: none;
}

.rules-list ul li {
  background: rgba(30, 34, 40, 0.6);
  padding: 0.8rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid rgba(78, 208, 242, 0.05);
}

.rules-list ul li::before {
  content: "•";
  left: 0.8rem;
  font-size: 1rem;
}

/* ===== NOTE SPECIALI ===== */
.rules-note {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(196, 159, 39, 0.15) 100%
  );
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  padding: 2rem;
  margin: 3rem 0;
  color: #d4af37;
  font-size: 1.05rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2),
    inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.rules-note::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  animation: noteGlow 4s ease-in-out infinite;
}

@keyframes noteGlow {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.8;
  }
}

.rules-note strong {
  color: #ffd700;
  font-weight: 800;
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .rules-section {
    margin: 5rem 2rem 3rem 2rem;
  }

  .rules-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 1024px) {
  .rules-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .rules-sidebar {
    padding: 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(78, 208, 242, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .rules-sidebar-btn {
    text-align: center;
    justify-content: center;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .rules-sidebar-btn.active::after {
    display: none;
  }

  .rules-content {
    padding: 2rem;
  }

  .rule-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .rule-item-sanction {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .rules-section {
    margin: 4rem 1rem 2rem 1rem;
    padding: 0;
    border-radius: 24px;
  }

  .rules-sidebar {
    padding: 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .rules-sidebar-btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.9rem 0.8rem;
    gap: 0.6rem;
  }

  .rules-sidebar-btn i {
    font-size: 1.1rem;
  }

  .rules-content {
    padding: 1.5rem;
  }

  .rules-section-content h1,
  .rules-section-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  #rules-home h1 {
    font-size: 2.5rem;
  }

  #rules-home .section-description {
    font-size: 1.1rem;
  }

  .rule-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  .rule-item-icon {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .rule-item-text {
    text-align: center;
  }

  .rule-item-sanction {
    justify-self: center;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .rules-client-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rules-btns-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .rules-btns-row a {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .rules-list li {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
  }

  .rules-note {
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .rules-section {
    margin: 3rem 0.5rem 1.5rem 0.5rem;
    border-radius: 20px;
  }

  .rules-sidebar {
    padding: 1rem 0.8rem;
    gap: 0.5rem;
  }

  .rules-sidebar-btn {
    font-size: 0.75rem;
    padding: 0.7rem 0.5rem;
    min-width: 100px;
    gap: 0.4rem;
    letter-spacing: 0;
  }

  .rules-sidebar-btn i {
    font-size: 1rem;
  }

  .rules-content {
    padding: 1rem;
  }

  .rules-section-content h1,
  .rules-section-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  #rules-home h1 {
    font-size: 2rem;
  }

  #rules-home .section-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .rule-item {
    padding: 1.2rem;
    border-radius: 16px;
  }

  .rule-item-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    border-radius: 14px;
  }

  .rule-item-text p {
    font-size: 1rem;
  }

  .rule-item-text small {
    font-size: 0.85rem;
  }

  .rule-item-sanction {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  .rules-client-col {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .rules-client-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }

  .rules-client-col li {
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
  }

  .rules-client-mod {
    padding: 1.2rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .rules-btns-row a {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    gap: 0.6rem;
  }

  .rules-list li {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .rules-note {
    padding: 1.2rem;
    font-size: 0.9rem;
    border-radius: 16px;
  }

  .rules-note strong {
    font-size: 1rem;
  }
}

/* ===== ANIMAZIONI EXTRA ===== */
/* Effetto particelle fluttuanti */
@keyframes floatParticles {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) translateX(5px) rotate(270deg);
  }
}

/* Loader per cambio sezione */
.rules-section-content.loading {
  position: relative;
  min-height: 300px;
}

.rules-section-content.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(78, 208, 242, 0.2);
  border-top-color: #4ed0f2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

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

/* ===== MIGLIORAMENTI ACCESSIBILITÀ ===== */
/* Focus states */
.rules-sidebar-btn:focus,
.rule-item:focus-within,
.rules-btns-row a:focus,
.rules-client-col li:focus {
  outline: 3px solid #4ed0f2;
  outline-offset: 3px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .rule-item,
  .rules-client-col,
  .rules-note {
    border-width: 2px;
  }

  .rule-item-text p,
  .rules-section-content h1,
  .rules-section-content h2 {
    font-weight: 900;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FINE STILE PAGINA REGOLE ===== */

/* PAGINA WIKI -----------------------------------------------------------------------------------------------
/* ===== PAGINA WIKI - DESIGN ULTRA MODERNO 2025 ===== */

/* Container principale wiki - stesso stile delle regole */
.wiki-section {
  background: linear-gradient(
    135deg,
    rgba(23, 27, 33, 0.95) 0%,
    rgba(35, 39, 47, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), 0 0 120px rgba(78, 208, 242, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin: 10rem auto 5rem auto;
  padding: 0;
  position: relative;
  z-index: 2;
  max-width: 1600px;
  overflow: hidden;
  border: 1px solid rgba(78, 208, 242, 0.2);
}

/* Effetti di sfondo animati */
.wiki-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(78, 208, 242, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(212, 175, 55, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    );
  animation: wikiGradientShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes wikiGradientShift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

/* Layout principale */
.wiki-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: auto;
  min-height: 600px;
  position: relative;
}

/* Sidebar wiki */
.wiki-sidebar {
  background: linear-gradient(
    180deg,
    rgba(30, 34, 40, 0.9) 0%,
    rgba(25, 28, 33, 0.95) 100%
  );
  backdrop-filter: blur(15px);
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(78, 208, 242, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

/* Pattern decorativo sidebar */
.wiki-sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(78, 208, 242, 0.03) 35px,
    rgba(78, 208, 242, 0.03) 70px
  );
  pointer-events: none;
}

/* Bottoni sidebar */
.wiki-sidebar-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wiki-sidebar-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(78, 208, 242, 0.4) 0%,
    transparent 70%
  );
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.wiki-sidebar-btn:hover::before {
  width: 200%;
  height: 200%;
}

.wiki-sidebar-btn:hover {
  color: #ffffff;
  transform: translateX(8px);
  border-color: rgba(78, 208, 242, 0.4);
  box-shadow: 0 8px 25px rgba(78, 208, 242, 0.2),
    inset 0 0 20px rgba(78, 208, 242, 0.1);
}

.wiki-sidebar-btn.active {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2) 0%,
    rgba(46, 203, 255, 0.15) 100%
  );
  color: #4ed0f2;
  border-color: rgba(78, 208, 242, 0.5);
  box-shadow: 0 0 30px rgba(78, 208, 242, 0.3),
    inset 0 0 20px rgba(78, 208, 242, 0.1), 0 0 60px rgba(78, 208, 242, 0.1);
  transform: translateX(8px);
}

.wiki-sidebar-btn i {
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 3px currentColor);
}

/* Contenuto principale */
.wiki-content {
  background: rgba(28, 32, 38, 0.6);
  padding: 2.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  max-height: 800px;
}

/* Scrollbar personalizzata */
.wiki-content::-webkit-scrollbar {
  width: 10px;
}

.wiki-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
}

.wiki-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4ed0f2, #2ecbff);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(78, 208, 242, 0.3);
}

/* Sezioni contenuto */
.wiki-section-content {
  display: none;
  animation: contentReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wiki-section-content.active {
  display: block;
}

.wiki-section-content.fadein {
  animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Titoli sezioni */
.wiki-section-content h1,
.wiki-section-content h2 {
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ed0f2 0%, #ffffff 50%, #4ed0f2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-shadow: 0 0 40px rgba(78, 208, 242, 0.5);
  animation: titleGradientFlow 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}

/* Home grid */
.wiki-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.wiki-card {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(78, 208, 242, 0.15);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.wiki-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(78, 208, 242, 0.05);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wiki-card:hover::before {
  opacity: 1;
}

.wiki-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(78, 208, 242, 0.3),
    0 0 60px rgba(78, 208, 242, 0.1);
  border-color: rgba(78, 208, 242, 0.3);
}

.wiki-card i {
  font-size: 3rem;
  color: #4ed0f2;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px currentColor);
  transition: all 0.4s ease;
}

.wiki-card:hover i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 20px currentColor);
}

.wiki-card h3 {
  color: #4ed0f2;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.wiki-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Info boxes */
.wiki-info-box {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(78, 208, 242, 0.15);
  position: relative;
  overflow: hidden;
}

.wiki-info-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4ed0f2, #2ecbff);
  box-shadow: 0 0 20px rgba(78, 208, 242, 0.5);
}

.wiki-info-box h3 {
  color: #4ed0f2;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.wiki-info-box p {
  color: #b8c5d6;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wiki-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wiki-info-box ul li {
  color: #94a3b8;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.wiki-info-box ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #4ed0f2;
  font-weight: bold;
}

.wiki-info-box ul li strong {
  color: #4ed0f2;
  font-weight: 700;
}

/* Commands grid */
.wiki-commands {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.command-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(30, 34, 40, 0.6);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(78, 208, 242, 0.1);
  transition: all 0.3s ease;
}

.command-item:hover {
  transform: translateX(5px);
  border-color: rgba(78, 208, 242, 0.3);
  box-shadow: 0 4px 15px rgba(78, 208, 242, 0.2);
}

.command-item code {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2),
    rgba(46, 203, 255, 0.15)
  );
  color: #4ed0f2;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 150px;
}

.command-item span {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Jobs grid */
.wiki-jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.job-card {
  background: rgba(30, 34, 40, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(78, 208, 242, 0.1);
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: rgba(78, 208, 242, 0.3);
  box-shadow: 0 8px 20px rgba(78, 208, 242, 0.2);
}

.job-card i {
  font-size: 2rem;
  color: #4ed0f2;
  margin-bottom: 0.5rem;
  display: block;
}

.job-card h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.job-card p {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Items grid */
.wiki-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.item-card {
  background: rgba(30, 34, 40, 0.9);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid rgba(78, 208, 242, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.item-card.legendary {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.item-card.epic {
  border-color: #b45cff;
  box-shadow: 0 0 20px rgba(180, 92, 255, 0.3);
}

.item-card.rare {
  border-color: #5c9eff;
  box-shadow: 0 0 20px rgba(92, 158, 255, 0.3);
}

.item-card:hover {
  transform: translateY(-5px) scale(1.05);
}

.item-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  image-rendering: pixelated;
}

.item-card h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.item-card p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.item-rarity {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.item-card.legendary .item-rarity {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
}

.item-card.epic .item-rarity {
  background: linear-gradient(135deg, #b45cff, #d4a5ff);
  color: #fff;
}

.item-card.rare .item-rarity {
  background: linear-gradient(135deg, #5c9eff, #8bb8ff);
  color: #fff;
}

/* Recipe grid */
.wiki-recipe {
  background: rgba(30, 34, 40, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.wiki-recipe h4 {
  color: #4ed0f2;
  margin-bottom: 1rem;
  text-align: center;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(3, 50px);
  gap: 5px;
  margin: 0 auto 1rem auto;
  width: fit-content;
}

.recipe-slot {
  background: rgba(20, 24, 30, 0.9);
  border: 2px solid rgba(78, 208, 242, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #4ed0f2;
}

.recipe-result {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2),
    rgba(46, 203, 255, 0.15)
  );
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recipe-result i {
  font-size: 2rem;
  color: #4ed0f2;
}

.recipe-result span {
  color: #ffffff;
  font-weight: 700;
}

/* Boss grid */
.wiki-boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.boss-card {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 2px solid rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.boss-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.1) 0%,
    transparent 70%
  );
  animation: bossGlow 3s ease-in-out infinite;
}

@keyframes bossGlow {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.8;
  }
}

.boss-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.3);
}

.boss-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 15px currentColor);
}

.boss-card h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.boss-card p {
  color: #b8c5d6;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.boss-card p strong {
  color: #4ed0f2;
}

/* Class grid */
.wiki-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.class-card {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(78, 208, 242, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(78, 208, 242, 0.2);
  border-color: rgba(78, 208, 242, 0.3);
}

.class-card i {
  font-size: 2.5rem;
  color: #4ed0f2;
  margin-bottom: 1rem;
  display: block;
}

.class-card h4 {
  color: #4ed0f2;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.class-card p {
  color: #94a3b8;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.class-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.class-card ul li {
  color: #b8c5d6;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  padding-left: 1.2rem;
  position: relative;
}

.class-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4ed0f2;
}

/* Price table */
.wiki-price-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  background: rgba(30, 34, 40, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.wiki-price-table thead {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2),
    rgba(46, 203, 255, 0.15)
  );
}

.wiki-price-table th {
  padding: 1rem;
  text-align: left;
  color: #4ed0f2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiki-price-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(78, 208, 242, 0.1);
  color: #b8c5d6;
}

.wiki-price-table tbody tr:hover {
  background: rgba(78, 208, 242, 0.05);
}

.wiki-price-table td:first-child {
  font-weight: 600;
  color: #ffffff;
}

.wiki-price-table td i {
  margin-right: 0.5rem;
  color: #4ed0f2;
}

/* NPC grid */
.wiki-npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.npc-card {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.npc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #ffd700);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.npc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.npc-card i {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 0.8rem;
  display: block;
  filter: drop-shadow(0 0 10px currentColor);
}

.npc-card h4 {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.npc-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.npc-card p strong {
  color: #d4af37;
}

/* Wiki tips */
.wiki-tip {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  color: #fbbf24;
  font-weight: 600;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2),
    inset 0 0 30px rgba(251, 191, 36, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wiki-tip i {
  font-size: 1.5rem;
  color: #fde047;
  filter: drop-shadow(0 0 10px currentColor);
}

.wiki-tip p {
  margin: 0;
  flex: 1;
  text-align: left;
}

/* Responsive design */
@media (max-width: 1200px) {
  .wiki-section {
    margin: 8rem 2rem 3rem 2rem;
    max-width: 100%;
  }

  .wiki-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 1024px) {
  .wiki-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .wiki-sidebar {
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(78, 208, 242, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }

  .wiki-content {
    max-height: none;
    padding: 2rem;
  }

  .wiki-grid-home {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .wiki-boss-grid,
  .wiki-class-grid,
  .wiki-npc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wiki-section {
    margin: 6rem 1rem 2rem 1rem;
    border-radius: 24px;
  }

  .wiki-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .wiki-sidebar-btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.8rem 0.8rem;
    gap: 0.5rem;
  }

  .wiki-sidebar-btn i {
    font-size: 1rem;
  }

  .wiki-content {
    padding: 1.5rem;
  }

  .wiki-section-content h1,
  .wiki-section-content h2 {
    font-size: 1.5rem;
  }

  .wiki-info-box {
    padding: 1.5rem;
  }

  .wiki-info-box h3 {
    font-size: 1.2rem;
  }

  .command-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .command-item code {
    min-width: auto;
    width: 100%;
    text-align: center;
  }

  .wiki-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wiki-items-grid {
    grid-template-columns: 1fr;
  }

  .recipe-grid {
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(3, 40px);
  }

  .wiki-price-table {
    font-size: 0.85rem;
  }

  .wiki-price-table th,
  .wiki-price-table td {
    padding: 0.6rem 0.8rem;
  }

  .wiki-tip {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }

  .wiki-tip p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wiki-section {
    margin: 4rem 0.5rem 1.5rem 0.5rem;
    border-radius: 20px;
  }

  .wiki-sidebar {
    gap: 0.3rem;
    padding: 0.8rem;
  }

  .wiki-sidebar-btn {
    font-size: 0.7rem;
    padding: 0.6rem 0.5rem;
    min-width: 90px;
    letter-spacing: 0;
  }

  .wiki-content {
    padding: 1rem;
  }

  .wiki-section-content h1,
  .wiki-section-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  #wiki-home h1 {
    font-size: 1.8rem;
  }

  .wiki-grid-home {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wiki-card {
    padding: 1.5rem;
  }

  .wiki-card i {
    font-size: 2.5rem;
  }

  .wiki-card h3 {
    font-size: 1.1rem;
  }

  .wiki-info-box {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .wiki-info-box h3 {
    font-size: 1.1rem;
  }

  .wiki-jobs-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 1rem;
  }

  .boss-card,
  .class-card,
  .npc-card {
    padding: 1.5rem;
  }

  .wiki-tip {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .wiki-tip i {
    font-size: 1.2rem;
  }
}

/* Animazioni aggiuntive */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Focus states per accessibilità */
.wiki-sidebar-btn:focus,
.wiki-card:focus-within,
.command-item:focus-within,
.job-card:focus-within,
.item-card:focus-within,
.boss-card:focus-within,
.class-card:focus-within,
.npc-card:focus-within {
  outline: 3px solid #4ed0f2;
  outline-offset: 3px;
}

/* Scrollbar personalizzata per wiki content */
.wiki-content::-webkit-scrollbar {
  width: 8px;
}

.wiki-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.wiki-content::-webkit-scrollbar-thumb {
  background: rgba(78, 208, 242, 0.3);
  border-radius: 4px;
}

.wiki-content::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 208, 242, 0.5);
}

/* Transizioni fluide globali per wiki */
.wiki-section * {
  transition-property: transform, box-shadow, background-color, border-color,
    color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Disabilita animazioni per chi preferisce */
@media (prefers-reduced-motion: reduce) {
  .wiki-section *,
  .wiki-section *::before,
  .wiki-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Effetti hover aggiuntivi */
.wiki-info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(78, 208, 242, 0.15);
}

.wiki-items-grid .item-card:hover img {
  transform: scale(1.2) rotate(5deg);
}

.boss-card:hover i {
  animation: bossShake 0.5s ease-in-out;
}

@keyframes bossShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px) rotate(-5deg);
  }
  75% {
    transform: translateX(5px) rotate(5deg);
  }
}

/* Stili per contenuti mancanti (placeholder) */
.wiki-section-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wiki-section-content img[alt*="Mjolnir"],
.wiki-section-content img[alt*="Gungnir"],
.wiki-section-content img[alt*="Ascia"] {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2),
    rgba(46, 203, 255, 0.15)
  );
  padding: 1rem;
  display: block;
  margin: 0 auto;
}

/* Miglioramenti finali */
.wiki-section-content h3 {
  color: #4ed0f2;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.wiki-section-content h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Linea decorativa sotto i titoli h2 */
.wiki-section-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4ed0f2, transparent);
  border-radius: 2px;
}

/* Badge per versioni/update */
.wiki-update-badge {
  display: inline-block;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 1rem;
  vertical-align: middle;
}

/* Tooltip per info aggiuntive */
.wiki-tooltip {
  position: relative;
  display: inline-block;
  color: #4ed0f2;
  cursor: help;
  text-decoration: underline dotted;
}

.wiki-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 34, 40, 0.95);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  margin-bottom: 0.5rem;
}

/* Loading state per contenuti dinamici */
.wiki-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
}

.wiki-loading::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid rgba(78, 208, 242, 0.2);
  border-top-color: #4ed0f2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Breadcrumb per navigazione */
.wiki-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.wiki-breadcrumb a {
  color: #4ed0f2;
  text-decoration: none;
  transition: all 0.3s ease;
}

.wiki-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.wiki-breadcrumb span {
  color: #6b7280;
}

/* Search box (per future implementazioni) */
.wiki-search {
  position: relative;
  margin-bottom: 2rem;
}

.wiki-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  background: rgba(30, 34, 40, 0.8);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.wiki-search input:focus {
  outline: none;
  border-color: rgba(78, 208, 242, 0.5);
  box-shadow: 0 0 20px rgba(78, 208, 242, 0.2);
}

.wiki-search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #4ed0f2, #2ecbff);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wiki-search button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 15px rgba(78, 208, 242, 0.3);
}

/* Modal per dettagli mob */
.mob-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mob-modal-content {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(23, 27, 33, 0.98) 0%,
    rgba(35, 39, 47, 0.98) 100%
  );
  margin: 5% auto;
  padding: 3rem;
  width: 90%;
  max-width: 800px;
  border-radius: 24px;
  border: 2px solid rgba(78, 208, 242, 0.3);
  box-shadow: 0 20px 60px rgba(78, 208, 242, 0.3);
  animation: modalSlideIn 0.4s ease;
  overflow: hidden; /* Aggiungi questa riga */
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mob-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(239, 68, 68, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(239, 68, 68, 0.3);
}

.mob-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: rgba(239, 68, 68, 0.2);
}

.mob-modal-image {
  width: calc(100% + 6rem);
  height: 400px;
  object-fit: cover;
  margin: -3rem -3rem 2rem -3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px 24px 16px 16px;
}

.mob-modal-title {
  font-size: 3rem;
  color: #4ed0f2;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 30px rgba(78, 208, 242, 0.5);
}

.mob-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mob-stat-box {
  background: rgba(78, 208, 242, 0.1);
  border: 1px solid rgba(78, 208, 242, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.mob-stat-box h4 {
  color: #4ed0f2;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.mob-stat-box p {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

.mob-modal-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #b8c5d6;
  margin-bottom: 2rem;
}

/* Rendi le card cliccabili */
.wiki-boss-grid .boss-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.wiki-boss-grid .boss-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .mob-modal-content {
    width: 95%;
    padding: 2rem 1.5rem;
    margin: 10% auto;
  }

  .mob-modal-image {
    height: 250px;
    padding: 1rem;
  }

  .mob-modal-title {
    font-size: 2rem;
  }

  .mob-modal-stats {
    grid-template-columns: 1fr;
  }
}
/* ===== FINE STILE PAGINA WIKI ===== */

/* ===== PAGINA VOTA - DESIGN ULTRA MODERNO 2025 ===== */

.vote-section {
  min-height: 100vh;
  padding: 10rem 2rem 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.vote-section h1 {
  font-family: "Nunito", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ed0f2 0%, #ffffff 50%, #4ed0f2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(78, 208, 242, 0.5);
  animation: titleGradientFlow 3s ease-in-out infinite;
}

.vote-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #94a3b8;
  margin-bottom: 3rem;
}

/* Box Ricompense */
.vote-rewards-box {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(78, 208, 242, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.vote-rewards-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(78, 208, 242, 0.1) 0%,
    transparent 40%
  );
  animation: wikiGradientShift 20s ease-in-out infinite;
}

.vote-rewards-box h2 {
  color: #4ed0f2;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.vote-description {
  text-align: center;
  color: #b8c5d6;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Grid Ricompense */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.reward-card {
  background: rgba(30, 34, 40, 0.8);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(78, 208, 242, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reward-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reward-card:hover::before {
  opacity: 1;
}

.reward-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(78, 208, 242, 0.2);
  border-color: rgba(78, 208, 242, 0.3);
}

.reward-card i {
  font-size: 3rem;
  color: #4ed0f2;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 15px currentColor);
}

.reward-card h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.reward-card p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* Vote Tip */
.vote-tip {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  color: #fbbf24;
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.vote-tip i {
  font-size: 1.5rem;
  color: #fde047;
  filter: drop-shadow(0 0 10px currentColor);
}

/* Container Bottoni */
.vote-buttons-container {
  background: linear-gradient(
    135deg,
    rgba(40, 44, 52, 0.9) 0%,
    rgba(35, 39, 47, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(78, 208, 242, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.vote-buttons-container h2 {
  color: #4ed0f2;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.vote-instruction {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Bottoni Voto */
.vote-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vote-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.vote-btn:hover::before {
  width: 600px;
  height: 600px;
}

.vote-btn-primary {
  background: linear-gradient(135deg, #4ed0f2 0%, #2ecbff 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(78, 208, 242, 0.3);
}

.vote-btn-primary::before {
  background: rgba(255, 255, 255, 0.1);
}

.vote-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(78, 208, 242, 0.4);
}

.vote-btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(78, 208, 242, 0.2) 0%,
    rgba(46, 203, 255, 0.15) 100%
  );
  color: #4ed0f2;
  border: 2px solid rgba(78, 208, 242, 0.5);
  box-shadow: 0 10px 30px rgba(78, 208, 242, 0.2);
}

.vote-btn-secondary::before {
  background: rgba(78, 208, 242, 0.1);
}

.vote-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(78, 208, 242, 0.3);
  border-color: rgba(78, 208, 242, 0.8);
}

.vote-btn i:last-child {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Info Voto */
.vote-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.vote-info strong {
  color: #4ed0f2;
}

/* Leaderboard Preview */
.vote-leaderboard-preview {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(255, 215, 0, 0.1) 100%
  );
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.vote-leaderboard-preview h3 {
  color: #ffd700;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.vote-leaderboard-preview p {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.vote-cta {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.vote-cta p {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .vote-section {
    padding: 8rem 1rem 3rem 1rem;
  }

  .vote-section h1 {
    font-size: 2rem;
  }

  .vote-subtitle {
    font-size: 1.1rem;
  }

  .vote-rewards-box,
  .vote-buttons-container,
  .vote-leaderboard-preview {
    padding: 2rem;
  }

  .rewards-grid {
    grid-template-columns: 1fr;
  }

  .vote-btn {
    font-size: 1rem;
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 480px) {
  .vote-section h1 {
    font-size: 1.8rem;
  }

  .vote-rewards-box h2,
  .vote-buttons-container h2,
  .vote-leaderboard-preview h3 {
    font-size: 1.5rem;
  }

  .vote-btn {
    flex-direction: column;
    gap: 0.5rem;
  }

  .vote-btn i:last-child {
    display: none;
  }
}

/* ===== PAGINA STAFF ===== */
.staff-page-section {
  background: var(--background);
  padding: 8rem 0 5rem 0;
  min-height: 100vh;
  position: relative;
}

.staff-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.staff-page-section h1 {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
}

.staff-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-weight: 500;
}

/* Gruppi Staff */
.staff-group {
  margin-bottom: 4rem;
}

.staff-group-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.staff-group-title::before,
.staff-group-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  max-width: 200px;
}

/* Griglia Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Card Membro Staff */
.staff-member-card {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}

.staff-member-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(78, 208, 242, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.staff-member-card:hover::before {
  left: 100%;
}

.staff-member-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(78, 208, 242, 0.2), var(--shadow-hover);
  border-color: rgba(78, 208, 242, 0.4);
}

/* Avatar con skin Minecraft */
.staff-avatar {
  position: relative;
  width: 150px;
  height: 200px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-avatar img {
  width: auto;
  height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: auto;
  object-fit: contain;
}

.staff-member-card:hover .staff-avatar img {
  transform: scale(1.1) rotateY(20deg);
  filter: drop-shadow(0 12px 35px rgba(78, 208, 242, 0.3));
}

/* Badge Ruolo */
.staff-role-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.staff-role-badge.owner {
  background: var(--gradient-viking);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.staff-role-badge.staff {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(78, 208, 242, 0.4);
}

/* Nome Staff */
.staff-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

/* Social Links */
.staff-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.staff-socials a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.staff-socials a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(78, 208, 242, 0.3);
}

/* CTA Join Team */
.staff-join-cta {
  background: var(--surface-glass);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(78, 208, 242, 0.2);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.staff-join-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(78, 208, 242, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.staff-join-cta p {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.staff-apply-btn {
  background: var(--gradient-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(78, 208, 242, 0.3);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}

.staff-apply-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.staff-apply-btn:hover::before {
  left: 100%;
}

.staff-apply-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(78, 208, 242, 0.4),
    0 0 60px rgba(78, 208, 242, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .staff-page-section {
    padding: 6rem 0 3rem 0;
  }

  .staff-page-section h1 {
    font-size: 2.2rem;
  }

  .staff-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
  }

  .staff-group-title {
    font-size: 1.6rem;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .staff-member-card {
    padding: 1.5rem;
  }

  .staff-avatar {
    width: 120px;
    height: 160px;
  }

  .staff-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .staff-container {
    padding: 0 1rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-join-cta {
    padding: 2rem 1.5rem;
  }

  .staff-join-cta p {
    font-size: 1.1rem;
  }

  .staff-apply-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
