/* =============================================
   LASTMC – STYLE.CSS  (tema ROSSO)
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Colori principali ROSSO ── */
  --accent:        #ff2a2a;
  --accent-dark:   #cc1c1c;
  --accent-light:  #ff5555;
  --accent-glow:   rgba(255, 42, 42, 0.28);
  --accent-glow-sm:rgba(255, 42, 42, 0.14);

  /* ── Backgrounds ── */
  --bg-deep:       #0a0808;
  --bg-card:       rgba(18, 10, 10, 0.88);
  --bg-card-border:rgba(255, 42, 42, 0.14);

  /* ── Testo ── */
  --text-primary:  #f0e8e8;
  --text-secondary:#9a8888;
  --text-muted:    #5a4444;

  /* ── Extra colori ── */
  --yellow:        #f5c518;
  --green:         #00e676;
  --discord-color: #5865f2;

  /* ── UI ── */
  --font-title:    'Rajdhani', sans-serif;
  --font-body:     'Inter', sans-serif;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===========================
   VIDEO BACKGROUND
   =========================== */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.75);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 5, 5, 0.55)  0%,
    rgba(10, 5, 5, 0.28)  40%,
    rgba(10, 5, 5, 0.78)  80%,
    rgba(10, 5, 5, 1.00) 100%
  );
}

/* ===========================
   TYPOGRAPHY & UTILS
   =========================== */
.accent { color: var(--accent); }

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

.section { padding: 100px 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 0 42px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-store {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-store:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}

.btn-discord {
  background: var(--discord-color);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn-copy {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  flex: 1;
  justify-content: center;
  box-shadow: 0 0 22px var(--accent-glow);
}
.btn-copy:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-copy.copied {
  background: var(--green);
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.3);
  color: #000;
}

.btn-done {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.13);
  flex: 1;
  justify-content: center;
}
.btn-done:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 5, 5, 0.94);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom-color: rgba(255, 42, 42, 0.1);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}


.logo-nav-wrap {
  width: 44px;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  flex: 1;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}

.hero-content { max-width: 800px; }

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-logo {
  max-width: 280px;       /* ← più piccolo (era 420px) */
  width: 100%;
  height: auto;
  object-fit: contain;

  /* glow rosso */
  filter: drop-shadow(0 0 24px rgba(255, 42, 42, 0.5))
          drop-shadow(0 0 60px rgba(255, 42, 42, 0.2));

  /* animazioni combinate */
  animation:
    fadeInUp   0.8s  0.4s  ease forwards,
    logoPulse  3.5s  1.2s  ease-in-out infinite,
    logoFloat  5s    1.2s  ease-in-out infinite;

  will-change: transform, filter;
}

/* ── Glow pulsante ── */
@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 24px rgba(255, 42, 42, 0.5))
            drop-shadow(0 0 60px rgba(255, 42, 42, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 42px rgba(255, 42, 42, 0.85))
            drop-shadow(0 0 100px rgba(255, 42, 42, 0.4));
  }
}

/* ── Levitazione su/giù ── */
@keyframes logoFloat {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-logo { max-width: 180px; }
}
.hero-subtitle {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  text-shadow: 0 0 100px rgba(255, 42, 42, 0.25);
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.6s forwards;
}
.hero-desc strong { color: var(--accent-light); }

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.8s forwards;
}
.hero-btns .btn { padding: 14px 32px; font-size: 16px; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 42, 42, 0.12);
  border-radius: var(--radius);
  padding: 20px 40px;
  opacity: 0;
  animation: fadeInUp 0.8s 1s forwards;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.stat-num {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 18px;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* ===========================
   GAMEMODES
   =========================== */
.gamemodes {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10,5,5,0.65) 30%,
    rgba(10,5,5,0.65) 70%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.mode-card:hover {
  border-color: rgba(255, 42, 42, 0.38);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 32px var(--accent-glow);
}
.mode-card:hover::before { opacity: 1; }

.mode-card.featured {
  border-color: rgba(255, 42, 42, 0.32);
  background: rgba(255, 42, 42, 0.05);
}
.mode-card.featured::before { opacity: 0.6; }

.mode-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-title);
}

.mode-icon {
  width: 56px; height: 56px;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--transition);
}

.mode-card:hover .mode-icon {
  background: rgba(255, 42, 42, 0.2);
  box-shadow: 0 0 20px var(--accent-glow);
}

.mode-card h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.mode-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.mode-badge {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.mode-badge.coming {
  background: rgba(245, 197, 24, 0.1);
  color: var(--yellow);
  border-color: rgba(245, 197, 24, 0.2);
}

/* ===========================
   JOIN SECTION
   =========================== */
.join-section {
  background: rgba(10,5,5,0.55);
  backdrop-filter: blur(4px);
}

.join-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.join-left .section-label,
.join-left .section-title { text-align: left; }

.join-left .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 40px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step { display: flex; gap: 20px; align-items: flex-start; }

.step-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
}

.step-num.accent-num {
  background: rgba(255, 42, 42, 0.12);
  border-color: rgba(255, 42, 42, 0.35);
  color: var(--accent);
}

.step-content h4 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.step-content p strong { color: var(--text-primary); }

.join-right { position: relative; }

.version-badge {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.server-card {
  background: rgba(12, 6, 6, 0.94);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.55);
}

.server-card h3 {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}

.input-group { margin-bottom: 16px; }

.input-group label {
  display: block;
  font-size: 11px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-wrapper input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: var(--transition);
  cursor: default;
}

.input-wrapper input:focus {
  border-color: rgba(255, 42, 42, 0.45);
  background: rgba(255, 42, 42, 0.04);
}

.server-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ===========================
   COMMUNITY
   =========================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

.community-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 42, 0.32);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.community-card > i { font-size: 36px; margin-bottom: 4px; }

.discord-card > i { color: var(--discord-color); }
.forum-card   > i { color: var(--accent); }
.store-card   > i { color: var(--yellow); }

.community-card h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.community-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  transition: var(--transition);
}
.community-card:hover .community-cta { gap: 12px; }

/* ===========================
   STAFF
   =========================== */
.staff-section {
  background: rgba(10,5,5,0.45);
  backdrop-filter: blur(2px);
}

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

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  width: 200px;
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,42,42,0.32);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.staff-skin {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 42, 42, 0.25);
}

.staff-skin img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.staff-card h4 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.staff-role {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.staff-role.owner {
  background: rgba(255, 42, 42, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(255, 42, 42, 0.3);
}
.staff-role.dev {
  background: rgba(88, 101, 242, 0.12);
  color: #818cf8;
  border: 1px solid rgba(88,101,242,0.3);
}
.staff-role.admin {
  background: rgba(245, 197, 24, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.2);
}
.staff-role.mod {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  border: 1px solid rgba(0,230,118,0.2);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: rgba(6, 3, 3, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 42, 42, 0.08);
  padding: 60px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: rgba(255, 42, 42, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.footer-links h5 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ===========================
   TOAST
   =========================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(14, 6, 6, 0.96);
  border: 1px solid rgba(255, 42, 42, 0.32);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--green); font-size: 18px; }

/* ===========================
   GLOW DIVIDER (decorativo)
   =========================== */
.section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,42,42,0.3), transparent);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .join-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .community-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0; top: 70px;
    background: rgba(10, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; }
  .hamburger { display: flex; }
  .btn-store, .btn-discord { display: none; }

  .hero-title { letter-spacing: -1px; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px 32px; }
  .stat-divider { width: 60px; height: 1px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .join-left .section-label,
  .join-left .section-title { text-align: center; }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
  .staff-grid { gap: 16px; }
  .server-actions { flex-direction: column; }
}

/* ===========================
   PARTICELLE ROSSE FLUTTUANTI
   =========================== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;

  /* IMMAGINE DI SFONDO (fallback se il video non carica) */
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===========================
   STAFF MODAL
   =========================== */
.staff-card { cursor: pointer; }

.staff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 2, 2, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}
.staff-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.staff-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 0 80px rgba(255, 42, 42, 0.12);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
}
.staff-modal-overlay.open .staff-modal {
  transform: translateY(0) scale(1);
}

.staff-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.staff-modal-close:hover {
  background: rgba(255, 42, 42, 0.15);
  color: #fff;
  border-color: rgba(255,42,42,0.3);
}

.staff-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.staff-modal-avatar {
  width: 80px; height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 42, 42, 0.3);
  flex-shrink: 0;
}
.staff-modal-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.staff-modal-info h3 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.staff-modal-body p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.staff-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.staff-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.staff-stat span {
  display: block;
  font-size: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.staff-stat strong {
  color: #fff;
  font-size: 14px;
  font-family: var(--font-title);
}

.staff-modal-socials {
  display: flex;
  gap: 10px;
}
.staff-modal-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}
.staff-modal-socials a:hover {
  color: #fff;
  border-color: rgba(255,42,42,0.3);
  background: rgba(255,42,42,0.08);
}
